/* Weekly shop: decisions, capital, commitments and technical reference. */
.main-nav{gap:4px}.main-nav .nav-button{padding:11px 12px}
.business-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:18px;margin:20px 0 29px;align-items:stretch}
.weekly-finance,.weekly-lab{border:1px solid #d9dfce;background:#fffef9;border-radius:12px;padding:23px;min-width:0}
.weekly-section-heading{display:flex;align-items:center;justify-content:space-between;gap:17px;margin-bottom:18px}.weekly-section-heading>div{min-width:0}
.weekly-section-heading h2,.weekly-lab h2{font-size:25px;line-height:1.2;color:#3d5732;letter-spacing:-.7px;margin-top:6px}
.weekly-section-heading>button{flex-shrink:0;min-height:40px}.weekly-section-heading .eyebrow{font-size:9px}
.finance-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:17px 0;border-top:1px solid #e3e7db;border-bottom:1px solid #e3e7db}
.finance-overview>div{display:flex;flex-direction:column;gap:6px;min-width:0}.finance-overview>div+div{border-left:1px solid #e2e6da;padding-left:19px}
.finance-overview small{font-size:12px;line-height:1.45;color:#66775b}.finance-overview strong{font:500 32px/1.2 var(--display);color:#405d31;letter-spacing:-1px}
.finance-overview span{font-size:12px;line-height:1.5;color:#69795d}.negative,.risk-text{color:#a4593e!important}
.finance-breakdown{margin-top:12px;font-size:12px;color:#61734f}.finance-breakdown summary{cursor:pointer;padding:5px 0;line-height:1.5}.finance-breakdown>div{display:flex;justify-content:space-between;gap:15px;padding:6px 0;border-bottom:1px solid #edf0e6}.finance-breakdown strong{font-weight:600}
.workshop-capacity{margin-top:18px;padding:14px;background:#f2f5eb;border:1px solid #dfe6d3;border-radius:8px}.workshop-capacity strong{display:block;font-size:13px;color:#526d40}.workshop-capacity span{display:block;font-size:12px;line-height:1.5;color:#69795b;margin-top:4px}.workshop-track{display:flex;gap:5px;margin-top:12px}.workshop-track i{height:8px;flex:1;border-radius:3px;background:#9bb77e}.workshop-track i.used{background:#d7dccf}
.business-warnings{margin-top:12px}.business-warnings p{display:flex;gap:6px;font-size:12px;line-height:1.55;color:#936745;background:#fbf1e3;border:1px solid #e9d5bb;border-radius:6px;padding:8px 10px;margin-top:6px}.business-warnings .icon{width:15px;height:15px;flex-shrink:0;margin-top:2px}
.weekly-lab{background:#f1ecf7;border-color:#d8cbe4;display:flex;flex-direction:column}.weekly-lab .eyebrow{color:#8b6fa3}.weekly-lab h2{color:#65497d;font-size:25px;margin:10px 0}.weekly-lab>p{font-size:13px;line-height:1.65;color:#765e89;margin-bottom:15px}.weekly-lab>button{align-self:flex-start;margin-top:8px;min-height:36px}.weekly-lab>small{font-size:12px;line-height:1.55;color:#7b6290;margin-top:9px}.weekly-lab .text-button{font-size:12px;color:#715389;text-decoration:underline;padding:8px 0;line-height:1.4;text-align:left}
.debt-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #dacfe4;padding-top:15px;margin-top:auto;font-size:12px;color:#7b648d}.debt-summary strong{font:500 21px var(--display);color:#705085}
.agenda-section{margin:0 0 28px}.agenda-section>.weekly-section-heading{margin-bottom:14px}.agenda-section .count{min-width:25px;width:auto;max-width:none;padding:0 7px}.agenda-filters{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding-bottom:8px;scrollbar-width:thin}
.agenda-filters button{white-space:nowrap;flex-shrink:0;min-height:36px;border:1px solid #d8dfca;border-radius:6px;padding:8px 12px;background:#f8f9f1;color:#687c54;font-size:12px}.agenda-filters button.active{color:#3f622b;background:#e4edd7;border-color:#aac08b}
.agenda-explainer{font-size:12px;line-height:1.65;color:#6d7b60;margin:4px 0 17px;max-width:940px}
.agenda-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.agenda-card{display:flex;flex-direction:column;min-width:0;border:1px solid #d8e0cc;border-radius:11px;background:#fffef8;padding:18px}.agenda-card.needs-research{border-color:#d1c3df;background:#faf7fd}.agenda-card.urgent{border-top:3px solid #c68b63;padding-top:16px}
.agenda-card-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.agenda-card-heading .avatar{width:34px;height:34px;flex-shrink:0;font-size:12px}.agenda-card-heading>div{flex:1;min-width:90px}.agenda-card-heading strong{display:block;color:#425d34;font-size:14px;line-height:1.3}.agenda-card-heading small{display:block;color:#778767;font-size:11px;line-height:1.4;margin-top:3px}.agenda-status{padding:4px 6px;border:1px solid #d8e2cb;background:#f0f5e8;color:#637d4e;border-radius:4px;font-size:10px;line-height:1.3}
.agenda-quote{font-size:12px;line-height:1.65;color:#6e7c61;margin:12px 0}.agenda-deadline{display:flex;gap:5px;align-items:flex-start;min-height:32px;font-size:11px;line-height:1.5;color:#758467;margin-bottom:9px}.agenda-deadline .icon{width:13px;height:13px;flex-shrink:0;margin-top:2px}
.agenda-economics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px 0;border-top:1px solid #e1e6d8;border-bottom:1px solid #e1e6d8}.agenda-economics small{display:block;font-size:10px;line-height:1.45;color:#7b8a6d}.agenda-economics strong{display:block;font:500 19px var(--display);color:#516f3c;margin-top:5px;letter-spacing:-.5px}
.agenda-tech{margin:13px 0 15px;min-height:95px}.agenda-tech>strong{display:flex;gap:6px;align-items:center;font-size:12px;color:#5d7d43}.agenda-tech>strong .icon{width:15px;height:15px}.agenda-tech p{font-size:12px;line-height:1.55;color:#70825f;margin:7px 0}.agenda-tech>span{font-size:11px;line-height:1.5;display:block;color:#7d6b8e}.agenda-tech.future>strong{color:#77548f}.agenda-tech.future p{color:#7c648d}
.agenda-actions{display:flex;gap:7px;margin-top:auto}.agenda-actions button{min-height:38px;justify-content:center;font-size:12px}.agenda-actions button:first-child{flex:1}.agenda-commitments{display:flex;justify-content:space-between;gap:6px;padding-top:12px;margin-top:12px;border-top:1px solid #e3e6db}.agenda-commitments button{font-size:11px;color:#70805e;text-decoration:underline;text-underline-offset:3px;min-height:26px;text-align:left}.agenda-commitments button:last-child{color:#986f55}
.agenda-empty{padding:25px;border:1px dashed #cbd8b7;border-radius:9px;background:#f3f6eb;grid-column:1/-1}.agenda-empty h3{font-size:23px;color:#536d40}.agenda-empty p{font-size:13px;color:#738560;line-height:1.6;margin-top:7px}
.weekly-history{margin-top:27px}.weekly-history>.section-heading button{font-size:12px;color:#6b8056;text-decoration:underline}.weekly-history>div:last-child{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.weekly-history article{display:flex;flex-direction:column;gap:6px;padding:13px;border:1px solid #dbe2d0;border-radius:8px;background:#fafbf5}.weekly-history article span,.weekly-history article small{font-size:11px;line-height:1.4;color:#7c8b6d}.weekly-history article strong{font-size:13px;color:#5d754b}.weekly-history article b{font:500 20px var(--display);color:#5c7b44}
.bench-business-note{display:flex;flex-direction:column;gap:9px;padding:15px;margin-top:15px;border:1px solid #dce3d0;border-radius:8px;background:#f3f6ec;font-size:12px;color:#667e53}.bench-business-note button{font-size:12px;text-align:left;text-decoration:underline;color:#6e5681}.bench-research-warning{display:flex;align-items:flex-start;gap:12px;padding:14px;margin:10px 0;border:1px solid #d7c7e4;border-radius:8px;background:#f0e8f6;color:#735087}.bench-research-warning>.icon{width:20px;height:20px;flex-shrink:0}.bench-research-warning>div{flex:1;min-width:0}.bench-research-warning strong{font-size:13px}.bench-research-warning p{font-size:12px;line-height:1.5;margin-top:5px}.bench-research-warning button{font-size:12px;min-height:34px}
.part-choice{display:flex;flex-direction:column;min-width:0}.part-choice .part-card{width:100%;flex:1;border-radius:7px 7px 0 0}.part-info{display:flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:7px;background:#f5f7ee;border:1px solid #dbe3ce;border-top:0;border-radius:0 0 7px 7px;color:#657c52;font-size:11px}.part-info .icon{width:13px;height:13px}.part-info:hover{background:#e8efdc;color:#42602f}.part-choice:has(.selected) .part-info{border-color:#a4bb88;background:#e7f0db}
.research-spec-link{display:flex;align-items:center;gap:6px;text-align:left;font-size:12px;text-decoration:underline;color:#746080;padding-top:11px}.research-spec-link .icon{width:14px;height:14px}.research-node.frontier-node{border-color:#b6c6cc;background:#f3f8f8}.frontier-node .research-status{background:#e5eff1;border-color:#bdd2d8;color:#5a7781}
.prototype-panel{padding:12px;margin:12px 0;background:#edf4f3;border:1px solid #c1d5d1;border-radius:8px}.prototype-panel>strong{display:block;color:#446a62;font-size:13px}.prototype-panel>p{font-size:12px;line-height:1.6;color:#5b7971;margin-top:7px}.prototype-panel button{display:inline-flex;gap:5px;align-items:center;min-height:30px;margin:7px 6px 0 0;font-size:11px;color:#527267;background:#e0ede9;border:1px solid #bad0c6;border-radius:5px;padding:5px 8px}.prototype-panel .icon{width:13px;height:13px}

dialog.business-dialog,dialog.order-plan-dialog{max-width:650px;width:calc(100% - 34px);max-height:88dvh;overflow:auto;padding:31px}dialog.component-spec-dialog{max-width:780px;width:calc(100% - 30px);max-height:90dvh;overflow:auto;padding:32px}
.component-spec-heading{padding:4px 25px 18px 0}.component-spec-heading .eyebrow{font-size:10px;line-height:1.5;color:#81966f}.component-spec-heading h2{font-size:32px;line-height:1.13;color:#3e5931;letter-spacing:-.9px;margin:9px 0 12px}.component-spec-heading p{font-size:13px;color:#617751;line-height:1.7}
.component-spec-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;color:#465d3b;overflow:hidden;border:1px solid #d6dfc9;border-radius:8px}.component-spec-table caption{font-size:12px;color:#81946e;text-align:left;margin:0 0 8px}.component-spec-table th,.component-spec-table td{padding:11px 13px;line-height:1.55;vertical-align:top;border-bottom:1px solid #e1e7d7}.component-spec-table th{width:36%;background:#f1f5e9;font-weight:600;text-align:left;color:#637e4f}.component-spec-table td{background:#fffef8}.component-spec-table tr:last-child>*{border-bottom:0}
.component-spec-notes{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.component-spec-notes h3,.component-spec-sources h3,.modal-subheading{font-size:18px;line-height:1.3;color:#4d683d;margin:5px 0 10px}.component-spec-notes ul{padding-left:17px}.component-spec-notes li{font-size:12px;line-height:1.65;color:#657b55;margin-top:7px}.component-spec-sources{border-top:1px solid #dce4d0;padding-top:16px}.component-spec-sources a{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #cbdab9;border-radius:5px;background:#f0f5e7;color:#5c7e43;font-size:12px;text-decoration:none;margin:0 5px 7px 0}.component-spec-sources .icon{width:12px;height:12px}.component-spec-game{padding:10px 12px;border-left:3px solid #b9c99e;background:#f4f6ed;color:#788568!important;font-size:11px!important;line-height:1.6;margin:16px 0}
.plan-numbers,.week-close-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0}.week-close-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-numbers>span,.week-close-totals>span{padding:13px;border:1px solid #d8e2cb;border-radius:7px;background:#f3f6ec;font-size:12px;color:#788968;line-height:1.4}.plan-numbers strong,.week-close-totals strong{display:block;font:500 24px/1.2 var(--display);color:#506d3d;margin-top:7px;letter-spacing:-.5px}.plan-requirements{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0 18px}.plan-requirements li{display:flex;align-items:center;gap:7px;font-size:12px;color:#87977a;border:1px solid #e0e7d6;padding:8px;border-radius:5px;background:#f8f9f3}.plan-requirements li.met{color:#53723e;background:#ebf3df;border-color:#ccdeb5}.plan-requirements .icon{height:14px;width:14px;flex-shrink:0}.plan-research{display:grid;gap:6px;margin:12px 0 15px}.plan-research>button{display:flex;align-items:center;gap:8px;font-size:12px;color:#745889;padding:10px 11px;background:#f1eaf6;border:1px solid #d7c5e5;border-radius:6px;text-align:left}.plan-research>button .icon{width:14px;height:14px;flex-shrink:0}.plan-research>button .icon:last-child{margin-left:auto}.plan-risk{font-size:12px!important;padding:10px 12px;background:#faf0e2;color:#916849!important;border:1px solid #e8d4b5;border-radius:6px;margin:17px 0}
.cashflow-option{border:1px solid #d7e0ca;background:#f5f8ee;border-radius:8px;padding:16px;margin:14px 0}.cashflow-option h3{font-size:21px;color:#526c3f;margin-bottom:8px}.cashflow-option p{font-size:12px;color:#6a7e5a;line-height:1.65;margin-bottom:12px}.cashflow-option button{min-height:36px;font-size:12px}.business-dialog>.text-button{font-size:12px;color:#6b8156;text-decoration:underline}.calendar-weeks>section{margin:14px 0}.calendar-weeks h3{font-size:20px;color:#526f3e;margin-bottom:8px}.calendar-weeks h3 small{display:block;font-size:11px;font-weight:400;line-height:1.5;margin-top:4px;color:#899a78}.calendar-weeks section>button{width:100%;display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dce4d0;border-radius:6px;margin-top:6px;background:#f5f8ee;text-align:left}.calendar-weeks strong{font-size:12px;color:#597646}.calendar-weeks span{margin-left:auto;font-size:11px;color:#7d8e6d}.calendar-weeks .icon{height:13px;width:13px;color:#81956f}.ledger-table{margin:17px 0;max-height:360px;overflow:auto}.ledger-table>div{display:grid;grid-template-columns:35px 1fr 88px;gap:10px;padding:10px 2px;border-bottom:1px solid #e2e9d8;align-items:start;font-size:12px;color:#657c53}.ledger-table small{font-size:10px;color:#8a9c7a}.ledger-table strong{text-align:right;white-space:nowrap;font-weight:600}
.week-expiry-warning{padding:14px;border:1px solid #e0b596;border-radius:7px;background:#faeadb;margin:16px 0;color:#9b6743}.week-expiry-warning strong{display:block;font-size:13px}.week-expiry-warning p{font-size:12px;line-height:1.5;margin-top:7px}.week-no-expiry{padding:10px 12px;border:1px solid #d1dfbb;background:#edf5e2;color:#648047;font-size:12px!important;border-radius:6px}
@media(max-width:1150px){.agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.business-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:13px}.weekly-finance,.weekly-lab{padding:19px}.weekly-section-heading{align-items:flex-start;gap:12px}.weekly-section-heading h2,.weekly-lab h2{font-size:23px}.weekly-section-heading>button{font-size:11px;padding:9px 10px}.main-nav .nav-button{padding:10px 9px}}
@media(max-width:850px){.business-layout{grid-template-columns:1fr}.weekly-lab{display:grid;grid-template-columns:1fr auto;column-gap:16px}.weekly-lab>.eyebrow,.weekly-lab>h2,.weekly-lab>p{grid-column:1}.weekly-lab>button{grid-column:2;align-self:start;max-width:220px}.weekly-lab>small{grid-column:2}.weekly-lab .debt-summary{grid-column:1/-1;margin-top:15px}.weekly-lab>p{margin-bottom:0}.weekly-history>div:last-child{grid-template-columns:repeat(3,minmax(0,1fr))}.main-nav .nav-button{padding:9px 8px;font-size:11px}.main-nav{gap:2px}}
@media(max-width:650px){.main-nav{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.main-nav .nav-button{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:52px;padding:6px 3px;font-size:10px;gap:4px}.main-nav .nav-button .icon{height:17px;width:17px}.business-layout{margin:14px 0 23px;gap:12px}.weekly-finance,.weekly-lab{padding:17px;border-radius:10px}.weekly-section-heading{flex-direction:column;align-items:stretch}.weekly-section-heading h2{font-size:25px}.weekly-section-heading>button{align-self:flex-start;font-size:12px;min-height:37px}.finance-overview{gap:12px}.finance-overview>div+div{padding-left:13px}.finance-overview small{font-size:11px}.finance-overview strong{font-size:28px}.finance-overview span{font-size:11px;line-height:1.5}.weekly-lab{display:flex}.weekly-lab h2{font-size:25px}.weekly-lab>p{font-size:12px;line-height:1.6;margin-bottom:9px}.weekly-lab>button{max-width:100%}.weekly-lab>small{font-size:12px}.debt-summary{margin-top:14px}.agenda-grid{grid-template-columns:minmax(0,1fr);gap:12px}.agenda-card{padding:17px}.agenda-quote,.agenda-tech p{font-size:12px}.agenda-economics strong{font-size:22px}.agenda-explainer{font-size:12px}.agenda-actions button{min-height:41px}.agenda-commitments button{min-height:34px;font-size:12px}.agenda-filters button{font-size:12px}.weekly-history>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}.bench-research-warning{flex-wrap:wrap}.bench-research-warning>button{margin-left:32px}.bench-business-note{margin-bottom:12px}.part-info{min-height:35px}.week-close-totals{grid-template-columns:1fr}.week-close-totals>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px}.week-close-totals strong{margin:0;font-size:23px}.plan-numbers{gap:8px}.plan-numbers>span{padding:11px;font-size:11px}.plan-numbers strong{font-size:22px}.plan-requirements{grid-template-columns:1fr}.calendar-weeks section>button{flex-wrap:wrap}.calendar-weeks span{margin-left:0}.ledger-table>div{grid-template-columns:26px 1fr 75px;gap:6px;font-size:11px}dialog.business-dialog,dialog.order-plan-dialog,dialog.component-spec-dialog{padding:23px 19px;max-height:90dvh}.component-spec-heading h2{font-size:28px}.component-spec-heading p{font-size:12px;line-height:1.65}.component-spec-table{font-size:12px}.component-spec-table th,.component-spec-table td{padding:9px}.component-spec-table th{width:39%}.component-spec-notes{grid-template-columns:1fr;gap:10px;margin:17px 0}.component-spec-sources a{font-size:12px}.component-spec-game{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.agenda-card,.weekly-finance,.weekly-lab{scroll-behavior:auto}}

.market-link{display:flex;gap:5px;align-items:center;font-size:11px;line-height:1.5;color:#738961;text-decoration:underline;margin:7px 0 2px}.market-link .icon{width:13px;height:13px}.business-rules{padding-left:18px;margin:15px 0}.business-rules li{font-size:12px;line-height:1.7;color:#627a50;margin:8px 0}

.ledger-debt{display:block;font-size:10px;margin-top:3px;color:#87698f}.market-link:focus-visible,.agenda-commitments button:focus-visible{outline:2px solid #91a975;outline-offset:3px}

.receipt-footnote{font-size:11px!important;line-height:1.6;color:#7d8b70!important;margin:12px 0}.agenda-card .agenda-tech>span{font-size:11px;line-height:1.55}

/* A tall receipt must keep its action inside the modal and scrollable. */
dialog{overflow-y:auto;overflow-x:hidden;max-height:calc(100dvh - 32px);scrollbar-gutter:stable}
dialog.sale-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden}
@media(max-height:780px){dialog.sale-dialog{padding-top:22px;padding-bottom:22px}.sale-dialog .sale-celebration{margin-bottom:16px}.sale-dialog .receipt{margin-top:18px;margin-bottom:14px}.sale-dialog .sale-quote{margin-top:14px;margin-bottom:17px}}
