.farm-expanded .farm-progress-open{text-align:left;cursor:pointer;font:inherit;transition:border-color .2s,box-shadow .2s}.farm-expanded .farm-progress-open:hover{border-color:#a38a4c;box-shadow:0 0 0 2px #dbc6965c}.farm-expanded .farm-progress-open:focus-visible{outline:3px solid #9f78b7;outline-offset:2px}.farm-progress-open strong{display:block}.farm-progress-open:disabled{cursor:wait}
.farm-progression-sheet{position:absolute;inset:0;z-index:75;display:flex;align-items:center;justify-content:center;padding:22px;background:#253e35cf;isolation:isolate}.farm-progression-sheet[hidden]{display:none}
.farm-progression-panel{position:relative;display:flex;flex-direction:column;gap:13px;width:min(1150px,100%);max-height:100%;min-height:0;overflow:hidden;padding:23px;border:1px solid #b99a64;border-radius:23px;background:radial-gradient(ellipse at top left,#ffefcb,transparent 55%),linear-gradient(135deg,#fbf6e6,#eff2e4);color:#385540;box-shadow:0 24px 65px #142f2590}
.farm-progression-header{display:flex;align-items:center;gap:15px;flex:0 0 auto;min-width:0}.farm-board-emblem{display:block;width:63px;height:63px;flex:0 0 auto}.farm-board-emblem svg{width:100%;height:100%}.farm-progression-header>div{flex:1;min-width:0}.farm-progression-header h2{margin:3px 0;font:700 clamp(1.4rem,2.5vw,2rem) Georgia,serif;color:#38533b}.farm-progression-header .eyebrow{color:#8a8157}.farm-progression-close{min-height:42px;padding:8px 12px;border:1px solid #c9d1b1;border-radius:10px;background:#f5f5e7;color:#697950;font-size:.77rem;font-weight:750;flex:0 0 auto}
.farm-level-summary{display:flex;align-items:center;gap:17px;flex:0 0 auto;padding:13px 18px;background:#fffdf1bf;border:1px solid #dbd9b8;border-radius:15px}.farm-level-badge{display:grid;place-items:center;width:58px;height:58px;flex:0 0 auto;border:3px double #d0b36d;border-radius:50%;background:linear-gradient(140deg,#f9e7b6,#dac184);box-shadow:0 3px 8px #9d7e4126;font:700 1.55rem Georgia,serif;color:#6c683b}.farm-level-info{flex:1;min-width:0}.farm-level-info strong{display:block;font:700 1.18rem Georgia,serif;margin:3px 0}.farm-level-info small,.farm-level-counts small{font-size:.72rem;color:#7c8662}.farm-level-info progress{display:block;width:100%;height:7px;margin:7px 0 3px;accent-color:#8fa271;appearance:none;border:0;border-radius:6px}.farm-level-info progress::-webkit-progress-bar{border-radius:6px;background:#e3e8d3}.farm-level-info progress::-webkit-progress-value{border-radius:6px;background:linear-gradient(90deg,#8ba67b,#d1b77b)}.farm-level-counts{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.farm-level-counts strong{font:700 1.3rem Georgia,serif}.farm-level-counts span{font-size:.78rem;color:#a57b36;margin-top:5px}
.farm-progression-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:0 0 auto}.farm-progression-tab{min-width:0;min-height:42px;padding:9px 5px;border:1px solid #cbd2b9;border-radius:10px;background:#eef1e4;color:#76835c;font-size:.8rem;font-weight:750}.farm-progression-tab[aria-pressed=true]{background:#59755c;color:#fff8e3;border-color:#59755c;box-shadow:0 3px 8px #455b392b}.farm-progression-status{margin:0;flex:0 0 auto;min-height:1.4em;font-size:.75rem;line-height:1.45;color:#6b7b56;overflow-wrap:anywhere}.farm-progression-content{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:5px 5px 8px 1px;scrollbar-color:#b6bd8f #f0eedf}.farm-progression-content h3{font:700 1.3rem Georgia,serif;margin:3px 0 8px}.farm-progression-note{font-size:.77rem;line-height:1.5;color:#7b8865}.farm-orders-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.farm-orders-caption p{font-size:.74rem;color:#839064;margin:4px 0}.farm-orders-reset{font-size:.71rem;color:#8f865d;text-align:right;max-width:220px}
.farm-order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:start;padding-top:6px}.farm-order-card{position:relative;display:flex;flex-direction:column;min-width:0;gap:11px;padding:17px 15px 14px;border:1px solid #d7c9a6;border-radius:8px 17px 12px 15px;background:linear-gradient(155deg,#fffbee,#f7f0d9);box-shadow:0 5px 13px #79624213}.farm-order-card::before{content:'';position:absolute;top:-5px;left:calc(50% - 5px);width:10px;height:10px;border-radius:50%;background:#b77968;border:2px solid #e7bda3;box-shadow:0 2px 3px #694b382c}.farm-order-card:nth-child(2n)::before{background:#829a73;border-color:#cdd9b7}.farm-order-card.is-quality{background:linear-gradient(150deg,#fff9ed,#eee8f5);border-color:#c5b5d4}.farm-order-card.is-delivered{background:linear-gradient(150deg,#f5f8e9,#e5edd9);border-color:#bfcfac}.farm-order-customer{display:flex;align-items:center;gap:11px;min-width:0}.farm-order-customer>.farm-cat-art{width:68px;height:91px;flex:0 0 auto;filter:drop-shadow(0 3px 3px #5f68451a)}.farm-order-customer>div{min-width:0}.farm-order-customer small{font-size:.65rem;color:#8b9270;text-transform:uppercase;letter-spacing:.05em}.farm-order-customer h4{font:700 1.1rem Georgia,serif;margin:5px 0 7px;overflow-wrap:anywhere}.farm-order-type{display:inline-block;font-size:.64rem;line-height:1.4;color:#6e8361;background:#e6eacfa6;border-radius:6px;padding:4px 6px}.is-quality .farm-order-type{color:#9274a9;background:#e7dcf1}.farm-order-quote{font:italic .76rem/1.55 Georgia,serif;color:#8a7e5e;margin:0;min-height:3.2em}.farm-order-goods{display:flex;flex-direction:column;gap:8px;margin-top:2px}.farm-order-line{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #dcd7b7;background:#fffef2b3;border-radius:10px;min-width:0}.farm-order-plant{width:54px;height:54px;flex:0 0 auto}.farm-order-line:not(.farm-chip-common) .farm-order-plant{filter:drop-shadow(0 0 4px var(--quality-color))}.farm-order-line>div{min-width:0}.farm-order-line strong{display:block;font-size:.81rem;line-height:1.35;overflow-wrap:anywhere}.farm-order-line small{display:block;font-size:.66rem;margin-top:3px}.farm-order-grade{font-weight:750;color:var(--quality-color,#73865c)}.farm-order-available{color:#899273}.farm-order-rewards{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px;border-top:1px dashed #d9c9a6}.farm-order-rewards strong{color:#a27d35;font:700 1.12rem Georgia,serif}.farm-order-rewards span{color:#7e779b;font-size:.78rem;font-weight:700}.farm-order-actions{display:flex;flex-direction:column;gap:6px;margin-top:auto}.farm-order-deliver,.farm-level-claim{min-height:42px;padding:9px 7px;border:1px solid #6f8c64;border-radius:10px;background:linear-gradient(135deg,#7e996e,#608267);color:#fffcef;font-family:inherit;font-weight:700;font-size:.8rem}.farm-order-deliver:disabled,.farm-level-claim:disabled{color:#8e997e;background:#e8ecd8;border-color:#d1d9b8;opacity:1}.farm-order-reroll{min-height:32px;padding:4px;border:0;background:none;color:#9c8c62;font-size:.68rem;text-decoration:underline;text-underline-offset:3px}.farm-order-reroll:disabled{opacity:.45}.farm-order-backpack{min-height:40px;font-size:.77rem}.farm-progression-content .farm-delivery-heading{margin-top:23px}.farm-delivery-history{display:flex;flex-direction:column;gap:7px}.farm-delivery-history>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border:1px solid #d5ddbd;border-radius:10px;background:#f7f8e8;font-size:.73rem}.farm-delivery-history>div span{min-width:0;line-height:1.45}.farm-delivery-history strong{flex:0 0 auto;color:#9a803c;font-size:.75rem}
.farm-level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.farm-level-card{display:flex;flex-direction:column;gap:11px;min-width:0;padding:16px;border:1px solid #d5d9bd;border-radius:14px;background:#f9f8eb}.farm-level-card.is-reached{border-color:#c5aa69;background:linear-gradient(135deg,#fff4d8,#f4efd4);box-shadow:0 3px 10px #b6985020}.farm-level-card.is-claimed{background:#edf2e2;border-color:#c7d4b5}.farm-level-card-head{display:flex;align-items:center;gap:10px}.farm-level-small-badge{display:grid;place-items:center;flex:0 0 auto;width:37px;height:37px;border-radius:50%;border:2px solid #c3c79c;background:#e8ecd5;color:#718257;font-weight:800}.is-reached .farm-level-small-badge{border-color:#c7ab6c;background:#efdfad;color:#998143}.farm-level-card-head h4{font:700 .98rem/1.3 Georgia,serif;margin:0 0 3px;overflow-wrap:anywhere}.farm-level-card-head small{font-size:.65rem;color:#88916e}.farm-level-unlock{font-size:.7rem;line-height:1.45;color:#8c7948;margin:0}.farm-level-rewards>strong{display:block;color:#a5803f;font-size:.85rem;margin-bottom:7px}.farm-level-reward-item{display:flex;align-items:center;gap:7px;font-size:.7rem;line-height:1.4;margin-bottom:5px;min-width:0}.farm-level-reward-art{display:block;width:36px;height:36px;flex:0 0 auto}.farm-level-reward-art svg{width:100%;height:100%}.farm-level-card>.farm-level-claim{margin-top:auto}
.farm-progress-milestones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.farm-progress-milestone{display:flex;align-items:center;gap:15px;min-width:0;padding:16px;border:1px solid #d4dabf;border-radius:14px;background:#f8f8ed}.farm-progress-milestone.is-unlocked{background:linear-gradient(140deg,#fff1cf,#edf1dd);border-color:#cbb576}.farm-progress-milestone img{width:72px;height:72px;flex:0 0 auto}.farm-progress-milestone>div{min-width:0;flex:1}.farm-progress-milestone small{font-size:.66rem;color:#88916e}.farm-progress-milestone.is-unlocked small{color:#a18b46}.farm-progress-milestone h4{font:700 1.02rem/1.3 Georgia,serif;margin:5px 0 7px}.farm-progress-milestone p{font-size:.73rem;line-height:1.5;color:#82906a;margin:0 0 8px}.farm-progress-milestone progress{display:block;width:100%;height:5px;margin:5px 0;accent-color:#9aa575;appearance:none;border:0;border-radius:6px}
.farm-progress-milestone progress::-webkit-progress-bar{background:#e3e8d3;border-radius:6px}.farm-progress-milestone progress::-webkit-progress-value{background:linear-gradient(90deg,#8ba67b,#d1b77b);border-radius:6px}.farm-level-info progress::-moz-progress-bar,.farm-progress-milestone progress::-moz-progress-bar{background:linear-gradient(90deg,#8ba67b,#d1b77b);border-radius:6px}
.farm-order-float{position:absolute;left:50%;bottom:24px;z-index:2;max-width:90%;white-space:nowrap;pointer-events:none;padding:13px 18px;border-radius:14px;background:#fff2ceef;color:#927634;box-shadow:0 4px 18px #856b382b;border:1px solid #dbc087;font:700 1.1rem Georgia,serif;animation:farm-order-rise 2.8s ease-out forwards}@keyframes farm-order-rise{0%{opacity:0;transform:translate(-50%,10px)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-80px)}}
.farm-commerce-entry.reward{border-color:#d8c58e;background:#faf2d9}.farm-commerce-entry.reward .farm-commerce-amount{color:#a38239}
@media(max-width:1000px){.farm-progression-sheet{padding:12px}.farm-progression-panel{padding:17px;gap:11px}.farm-order-grid,.farm-level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.farm-progression-sheet{padding:5px}.farm-progression-panel{height:100%;padding:12px 10px;gap:9px;border-radius:14px}.farm-progression-header{gap:7px}.farm-progression-header h2{font-size:1.25rem}.farm-progression-header .eyebrow{font-size:.52rem;letter-spacing:.03em}.farm-board-emblem{width:40px;height:40px}.farm-progression-close{font-size:.68rem;padding:6px 8px;min-height:40px}.farm-level-summary{gap:10px;padding:10px}.farm-level-badge{width:40px;height:40px;font-size:1.2rem}.farm-level-info strong{font-size:1rem}.farm-level-info small,.farm-level-counts small{font-size:.6rem}.farm-level-counts strong{font-size:1rem}.farm-level-counts span{font-size:.68rem}.farm-progression-tab{min-height:40px;font-size:.72rem}.farm-progression-status{font-size:.67rem}.farm-progression-content h3{font-size:1.15rem}.farm-orders-caption{align-items:flex-start;gap:7px;margin-bottom:10px}.farm-orders-caption p{font-size:.65rem}.farm-orders-reset{max-width:95px;font-size:.6rem;line-height:1.5}.farm-order-grid,.farm-level-grid,.farm-progress-milestones{grid-template-columns:1fr;gap:12px}.farm-order-card{padding:13px;gap:9px}.farm-order-customer>.farm-cat-art{width:60px;height:80px}.farm-order-quote{min-height:0;font-size:.75rem}.farm-order-actions{flex-direction:row;align-items:center;gap:8px}.farm-order-deliver{flex:1}.farm-order-reroll{max-width:90px;min-height:40px;font-size:.65rem}.farm-progression-note{font-size:.71rem}.farm-delivery-history>div{flex-direction:column;align-items:flex-start;gap:6px;padding:10px}.farm-progress-milestone{padding:13px;gap:11px}.farm-progress-milestone img{width:52px;height:52px}.farm-progress-milestone h4{font-size:.95rem}.farm-order-float{font-size:.9rem}.farm-level-card{padding:13px}}
@media(min-width:621px) and (max-height:700px){.farm-progression-panel{padding:14px;gap:8px}.farm-board-emblem{width:43px;height:43px}.farm-progression-header h2{font-size:1.5rem}.farm-level-summary{padding:8px 13px}.farm-level-badge{width:43px;height:43px;font-size:1.3rem}.farm-level-info strong{font-size:1rem}.farm-progression-status{font-size:.7rem}.farm-order-customer>.farm-cat-art{width:55px;height:73px}.farm-order-card{padding:13px 12px;gap:8px}.farm-order-quote{font-size:.72rem}.farm-orders-caption{margin-bottom:9px}}
@media(prefers-reduced-motion:reduce){.farm-progress-open{transition:none}.farm-order-float{animation:none;transform:translateX(-50%)}}

.farm-orders-preview{padding:12px;border:1px solid #d5d9bd;background:#faf5e4;border-radius:12px;margin:9px 0}.farm-orders-preview>strong{font:700 .85rem Georgia,serif}.farm-orders-preview>small{font-size:.7rem;color:#9c7f40}

/* Keep focus scrolling inside the board; contain decorative SVG overflow. */
.farm-expanded.farm-progression-open{overflow:clip!important}
.farm-cozy .farm-progression-content .farm-order-grid{overflow:clip}
.farm-cozy .farm-order-card.is-large{display:flex!important;flex-direction:column;border-color:#9a7c3a}
.farm-order-card.is-large .farm-order-type{display:inline-block!important}

.farm-order-card.is-large{grid-column:1/-1}
.farm-order-card.is-large .farm-order-goods{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px}
