.need-shell {margin:12px 0; background:#f8f3e6; border:1px solid #ab9879; color:#2d2a21}
.game-shell .need-toggle {display:flex; align-items:center; gap:10px; width:100%; padding:9px 13px; border:0; border-left:5px solid #b63923; border-radius:0; text-align:left; background:#302d25; color:#fff3da; font:700 21px/1.2 'Barlow Condensed',sans-serif}
.need-toggle>span {margin-left:auto; font:700 23px/1 sans-serif}
#need-panel {padding:clamp(10px,1.6vw,21px); scroll-margin-top:12px; font-size:15px}
.need-goal {display:flex; align-items:end; flex-wrap:wrap; gap:9px 19px}
.need-goal>div:first-child {margin-right:auto}
.need-goal h4,.need-route h5 {font:700 23px/1.1 'Barlow Condensed',sans-serif; margin:0; color:#322a20}
.need-goal p,.need-step p,.need-route>p,.need-leontief {margin:4px 0; line-height:1.35}
.need-goal label {display:block; font-weight:700; font-size:13px; color:#443a2d}
.need-goal select,.need-amount input {font:700 16px 'PT Sans',Arial,sans-serif; color:#29271f; background:#fffdf6; border:1px solid #8f8874; border-radius:0; height:40px}
.need-goal select {display:block; max-width:100%; padding:3px 6px; margin-top:3px}
.need-amount {display:flex; align-items:center; margin-top:3px}
.need-amount input {width:65px; min-width:0; text-align:center; appearance:textfield; -moz-appearance:textfield}
.need-amount input::-webkit-inner-spin-button {appearance:none}
.game-shell .need-amount button {height:40px; min-height:40px; min-width:37px; font-size:21px; padding:0 5px; background:#eae2cf; color:#382f20; border:1px solid #8f8874; border-radius:0}
.need-count,.need-met {padding:7px 10px; background:#e8e0cc; margin:10px 0; color:#433a2a; font-weight:700; font-size:14px}
.need-met {background:#dcebd9; color:#21543b}
.need-routes {display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:12px}
.need-route {min-width:0; border:1px solid #cabea7; background:#fffaf0; padding:11px 13px}
.need-route h5 {display:flex; align-items:center; gap:6px; text-transform:uppercase; color:#463722}
.need-route:nth-child(2) h5 {color:#2c525c}
.need-route p.need-status {display:inline-block; font-size:12px; font-weight:700; padding:1px 5px; background:#f3dfbc; color:#694222; margin:4px 0 0}
.need-route p.ready {background:#d8eedb; color:#264b31}
.need-route ol {list-style:none; padding:0; margin:11px 0}
.need-step {display:grid; grid-template-columns:26px minmax(0,1fr); gap:7px; position:relative; padding:0 0 11px}
.need-step:not(:last-child)::before {content:""; position:absolute; left:12px; top:25px; bottom:1px; border-left:2px solid #cbbb9d}
.need-icon {display:grid; place-items:center; width:26px; height:26px; background:#eae3cc; color:#554726}
.need-icon svg {width:19px; height:19px}
.need-step strong {display:block; font-size:15px; line-height:1.24}.need-step p,.need-leontief,.need-commitments p {font-size:14px}
.need-step.blocked .need-icon {background:#f1d1c4; color:#772e1c}
.game-shell .need-route button,.game-shell .need-commitments button,.game-shell .need-return button {background:#eee7d5; border:1px solid #b3a17d; color:#493a27; border-radius:0; padding:4px 7px; margin:2px 4px 2px 0; font-size:13px; min-height:33px; line-height:1.16}
.game-shell .need-route>button {background:#483a28; color:white; font-weight:700; min-height:38px}
.game-shell .need-route:nth-child(2)>button {background:#31545b}
.game-shell .need-commitments {padding:9px 0; border-bottom:1px solid #d7cdb7}
.need-commitments summary {color:#57452c}.need-leontief {margin:9px 0 0; color:#514838}
.need-return {margin:4px 0 9px}
.need-delivery {display:flex; align-items:center; justify-content:space-between; gap:6px; background:#ece2c7; border-left:4px solid #9c4d2b; padding:10px; margin:10px 0}
.need-delivery>span {display:grid; place-items:center; gap:3px; text-align:center; flex:1; min-width:0}
.need-delivery small {font-size:13px; line-height:1.2}
.need-delivery b {font:700 30px/1 'Barlow Condensed',sans-serif}
.need-delivery>i {font-style:normal; color:#887446}
.need-delivery .io-icon {width:26px; height:26px}
.need-delivery .need-future {color:#2e563a}
.need-methods {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0}
.game-shell .need-methods>button {display:flex; flex-direction:column; align-items:flex-start; gap:5px; background:#fff9eb; color:#4a3f2b; border:1px solid #ad9d80; padding:12px; border-radius:0; text-align:left; text-transform:none; letter-spacing:0}
.game-shell .need-methods>button[aria-pressed=true] {border:2px solid #79412b; padding:11px; background:#f2dfb6; color:#512e1d}
.need-methods strong {font:700 23px/1.1 'Barlow Condensed',sans-serif}
.need-methods span {font:700 15px/1.2 'PT Sans',sans-serif}
.need-methods small {font:13px/1.2 'PT Sans',sans-serif}
.need-production-chain {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:10px 0}
.need-production-chain>div {display:grid; grid-template-rows:26px auto auto 1fr; align-items:start; justify-items:center; gap:4px; background:#e9efdb; color:#34533e; border:1px solid #aeb79c; padding:9px 5px; text-align:center; min-width:0}
.need-production-chain>div.to-prepare {background:#f5e8c9; color:#624422; border-color:#bc975a}
.need-production-chain .io-icon {width:25px; height:25px}
.need-production-chain span {font:700 15px/1.15 'PT Sans',sans-serif}
.need-production-chain b {font:700 25px/1 'Barlow Condensed',sans-serif}
.need-production-chain small {font:12px/1.2 'PT Sans',sans-serif}
.need-coach {border:2px solid #8b4e2d; border-left:6px solid #8b4e2d; background:#fff8e8; padding:13px 15px; margin:12px 0}
.need-coach.is-blocked {border-color:#9e6b40}
.need-coach h5 {font:700 27px/1.1 'Barlow Condensed',sans-serif; color:#58351f; margin:0 0 8px; text-transform:none; letter-spacing:0}
.need-coach p {font:15px/1.35 'PT Sans',sans-serif; margin:7px 0}
.need-effects {display:flex; flex-wrap:wrap; gap:5px 16px}
.need-effects span {font:14px/1.3 'PT Sans',sans-serif}
.need-effects b {white-space:nowrap; color:#3c5339}
.game-shell .need-coach .need-act {background:#8a3d25; color:#fff7e2; border:1px solid #70301e; border-radius:1px; padding:10px 14px; min-height:44px; font:700 17px/1.2 'PT Sans',sans-serif; margin:0; text-align:left; text-transform:none; letter-spacing:0}
.need-analysis {background:#f4eddc; padding:8px 10px; border:1px solid #c7b99d; margin:12px 0}
.need-analysis>summary {cursor:pointer; font:700 15px/1.2 'PT Sans',sans-serif; color:#5c492b; min-height:30px}
.need-analysis[open]>summary {margin-bottom:10px}
@media(max-width:500px){
  .need-methods {grid-template-columns:1fr}
  .need-production-chain {grid-template-columns:repeat(2,minmax(0,1fr))}
  .need-coach {padding:10px}
  .need-delivery {gap:4px; padding:8px 5px}
  .need-delivery small {font-size:11px}
  .need-delivery b {font-size:27px}
}
.landing .landing-leontief {min-height:40px; margin-top:6px; padding:4px 0; border:0; background:transparent; color:#692e20; box-shadow:none; font:700 17px/1.2 'PT Sans',sans-serif; text-decoration:underline; text-underline-offset:.2em; text-transform:none; letter-spacing:0}
.game-shell .matrix-entry,.game-shell .matrix-grain {display:inline-flex; align-items:center; gap:7px; margin:6px 0; padding:7px 12px; min-height:40px; background:#663828; color:#fff6df; border:1px solid #583222; font:700 16px/1.2 'PT Sans',sans-serif; border-radius:2px}
.delivery-matrix {margin:12px 0 16px; padding:9px clamp(6px,1.3vw,15px); border:1px solid #baab90; background:#fffbef}
.delivery-matrix table {display:table; width:100%; table-layout:fixed; border-collapse:collapse; color:#302d25}
.delivery-matrix caption {padding:2px 0 8px; text-align:left; font:700 21px/1.15 'Barlow Condensed',sans-serif; color:#402d24}
.delivery-matrix :is(th,td) {padding:3px; text-align:center; border:1px solid #cbbfa7; background:#fffcf4; overflow-wrap:anywhere; font:15px/1.2 'PT Sans',sans-serif}
.delivery-matrix th[scope=row] {text-align:left; font-weight:700}
.delivery-matrix thead th {background:#4c4b3e; color:#fff9e7; font-weight:700}
.delivery-matrix thead .io-icon {width:16px; height:16px; margin-right:4px; vertical-align:middle}
.delivery-matrix tfoot :is(th,td) {background:#ede8d7; font-weight:700}
.game-shell .delivery-matrix td button {display:block; width:100%; margin:0; padding:4px 0; min-height:36px; background:#eeeada; color:#494536; border:1px solid #b4aa91; border-radius:2px; font:16px/1.2 'PT Sans',sans-serif; white-space:nowrap}
.game-shell .delivery-matrix td .matrix-increase {background:#f5dfb2; border:2px solid #935420; color:#502e14}
.delivery-matrix #matrix-key {margin:8px 0 0; font:14px/1.35 'PT Sans',sans-serif}
@media(max-width:500px){
  .delivery-matrix :is(th,td) {font-size:13px; padding:2px}
  .delivery-matrix thead .io-icon {display:block; margin:2px auto}
  .game-shell .delivery-matrix td button {min-height:42px; font-size:14px}
}
@media(max-width:760px) {
  .need-routes {grid-template-columns:minmax(0,1fr)}
  .need-goal {display:grid; grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr); gap:7px}
  .need-goal>div:first-child {grid-column:1/-1}
  .need-amount input {width:45px}
  .game-shell .need-amount button {min-width:30px}
  .need-goal select {width:100%}.need-route {padding:9px}
  .game-shell .need-route button,.game-shell .need-commitments button {min-height:38px}
}
.io-heading .inv-shortcut {
  display:flex; align-items:center; gap:9px; padding:7px 12px; margin:0 0 10px auto;
  background:#e6ece0; border:1px solid #99ae99; color:#284737; text-align:left; border-radius:4px;
}
.inv-shortcut span {display:grid; gap:2px}
.inv-shortcut strong {font-size:14px}
.inv-shortcut small {font-size:11px; font-weight:500}
.inv-shortcut .inv-arrivals {color:#385744; font-weight:700}
.inv-shortcut b {align-self:center; color:#537156; margin-left:3px}
.io-heading .io-date {margin-left:auto}
.io-table .io-import-head {background:#294854}
.game-shell .io-import-jump, .game-shell .io-invest-jump {
  display:block; width:100%; height:100%; color:inherit; background:transparent; border:0; border-radius:0;
  padding:4px 1px; font:inherit; text-align:center; line-height:1.15;
}
.game-shell .io-import-jump:hover, .game-shell .io-invest-jump:hover {background:#ffffff16; box-shadow:inset 0 -2px #dcb977}
.io-import-jump .io-sector-icon {color:#c8e4ea}
.io-table .io-incoming {color:#294f5d; background:#e3eef0; font-size:11px}
.io-incoming .io-import-jump small {display:block; margin-top:3px}
.io-incoming .io-import-jump strong {font:600 22px 'Barlow Condensed',sans-serif}
.io-table tfoot .io-future-out {background:#294854}
.io-table .io-import-na {background:#e9edeb; color:#849594}
.inv-planner {--amber:#ba8139; --blue:#518192; --green:#527566; margin-top:20px; border-top:3px solid #586d5e; padding-top:19px; color:#283b34; scroll-margin-top:12px}
.game-shell .inv-disclosure {margin:16px 0 0; padding:12px 0 0; border-top:2px solid #586d5e; background:none}
.inv-disclosure>summary {font:560 clamp(24px,2.4vw,33px)/1.15 'Barlow Condensed',Arial,sans-serif; letter-spacing:-.012em; color:#233a32; text-transform:none; cursor:pointer}
.inv-disclosure>.inv-planner {border:0; margin-top:12px; padding-top:0}
.inv-planner:focus:not(:focus-visible), .inv-table tr:focus:not(:focus-visible) {outline:none}
.inv-heading, .inv-tutorial, .inv-migration {display:flex; align-items:center; justify-content:space-between; gap:8px 20px; flex-wrap:wrap}
.inv-heading {align-items:start}
.inv-heading>div {flex:1 1 360px}
.inv-heading h3 {font:560 clamp(24px,2.4vw,33px)/1.15 'Barlow Condensed',Arial,sans-serif; margin:0 0 4px; letter-spacing:-.012em; color:#233a32; text-transform:none}
.inv-heading p, .inv-migration p, .inv-tutorial p {margin:2px 0; font-size:14px; line-height:1.4; color:#44564b}
.game-shell .inv-back, .game-shell .inv-migration button, .game-shell .inv-warning button, .game-shell .inv-tutorial button {
  background:transparent; color:#275442; border:0; padding:5px 0; min-height:32px; text-decoration:underline; text-underline-offset:3px; font-size:13px;
}
.inv-budgets {display:grid; grid-template-columns:1fr 1.18fr 1fr; gap:1px; border:1px solid #bfc9bb; background:#c7cfbf; border-radius:5px; overflow:hidden; margin:13px 0 7px}
.inv-budget {background:#e6ecdf; padding:9px 12px; display:flex; gap:9px; align-items:center; min-width:0}
.inv-budget>.io-icon {width:22px; height:22px; color:#52694d}
.inv-budget strong, .inv-budget small {display:block}
.inv-budget strong {color:#284836; font-size:14px; line-height:1.2}
.inv-budget b {font:600 20px/1 'Barlow Condensed',Arial,sans-serif; font-variant-numeric:tabular-nums}
.inv-budget small {margin-top:3px; font-size:12px; line-height:1.3; color:#4b594e}
.inv-money {background:#e0e9e7}
.inv-budget.inv-over {background:#f3d9ca}
.inv-budget.inv-over strong {color:#8a3628}
.inv-planner details.inv-sales {border:1px solid #c6c7b6; background:#eeeee3; padding:8px 11px; margin:8px 0 10px; border-radius:3px}
.inv-sales summary {font-size:14px; color:#354d41}
.inv-sales summary small {color:#586756; font-weight:400; margin-left:6px; font-size:12px}
.inv-sales>div {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:10px 0 3px}
.inv-sale {padding:8px 10px; border-left:2px solid #ab996e; background:#faf8ee}
.inv-sale>span {display:flex; align-items:center; gap:5px; font-size:15px}
.inv-sale>span .io-icon {width:19px; height:19px}
.inv-sale>small {display:block; margin:3px 0 6px; font-size:12px; color:#4f5d51}
.inv-table {width:100%; margin:0; border-spacing:0; border-collapse:separate; table-layout:fixed; font-variant-numeric:tabular-nums}
.inv-table th, .inv-table td {text-align:center; padding:6px 8px; vertical-align:middle; line-height:1.22; border:0}
.inv-table thead th {background:#34493e; color:#fbf7e9; font-size:14px; height:40px}
.inv-table thead th:first-child {width:30%; text-align:left; border-radius:4px 0 0 0}
.inv-table thead th:nth-child(2) {width:12%}
.inv-table thead th:last-child {border-radius:0 4px 0 0}
.inv-table thead th small {display:block; font-size:11px; color:#e2e6db; font-weight:400; margin-top:2px}
.inv-table thead .io-icon {width:17px; height:17px; vertical-align:-3px}
.inv-table thead .inv-make {background:#655137}
.inv-table thead .inv-buy {background:#365c69}
.inv-table thead .inv-future {background:#345846}
.inv-table tbody :is(td,th) {border-bottom:1px solid #d3d2c1; border-right:1px solid #dad9c9; background:#fcfaf1; color:#304237}
.inv-table tbody th {text-align:left; border-left:1px solid #d3d2c1; background:#ecebdf}
.inv-item-name {display:flex; align-items:center; gap:6px; font-size:15px; line-height:1.15; font-weight:700}
.inv-item-name .io-icon {width:20px; height:20px; color:#536d53}
.inv-table tbody th>small, .inv-spent {display:block; font-weight:400; color:#546357; font-size:11px; line-height:1.35; margin-top:3px}
.inv-table tbody .inv-make {background:#f5efdf}
.inv-table tbody .inv-buy {background:#eaf1f0}
.inv-table tbody .inv-future {background:#e0ecde}
.inv-table tr.inv-selected th {box-shadow:inset 3px 0 #ad873f}
.inv-table [data-active="true"] {box-shadow:inset 0 -2px #a18149}
.inv-planner[data-mode="imp"] thead .inv-buy, .inv-planner[data-mode="prod"] thead .inv-make {box-shadow:inset 0 -3px #e1ba69}
.inv-now b, .inv-future-amount b {font:600 22px/1.05 'Barlow Condensed',Arial,sans-serif}
.inv-now b {color:#4c5c4e}
.inv-future-amount {display:inline-flex; align-items:center; gap:4px}
.inv-future-amount b {color:#2d573d}
.inv-future-amount em {font:700 11px/1 'PT Sans',Arial,sans-serif; border:1px solid #91b19b; color:#315840; padding:2px 4px; border-radius:3px}
.inv-stock-bar {display:flex; width:74%; height:5px; border-radius:1px; margin:5px auto 1px; overflow:hidden; background:#ccd8c9}
.inv-seg-0, .inv-legend span:first-child i {background:var(--green)}
.inv-seg-1, .inv-legend span:nth-child(2) i {background:var(--amber)}
.inv-seg-2, .inv-legend span:nth-child(3) i {background:var(--blue)}
.inv-legend {display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px 12px; margin:5px 0 10px; font-size:11px; color:#4e6153}
.inv-legend i {display:inline-block; width:9px; height:6px; margin-right:3px; vertical-align:1px}
.inv-stepper {display:inline-flex; border-radius:4px; border:1px solid #979e8e; overflow:hidden; vertical-align:middle; max-width:100%}
.inv-stepper output {display:grid; place-items:center; min-width:25px; padding:0 2px; font:600 17px/1 'Barlow Condensed',Arial,sans-serif; background:#fffaf0; color:#293f33}
.game-shell .inv-stepper button {width:32px; height:33px; min-height:0; border:0; border-radius:0; padding:0; font:700 18px/1 sans-serif; background:#e6e7db; color:#314638}
.game-shell .inv-stepper button:last-child {background:#76603d; color:#fff}
.game-shell .inv-buy .inv-stepper button:last-child {background:#386272}
.game-shell .inv-stepper button:disabled {opacity:.42; cursor:default}
.inv-rate {display:block; font-size:11px; color:#566255; margin:3px 0 0}
.inv-unavailable span {font-size:12px; color:#617068}
.inv-warning {color:#7a3925; background:#f9e3cf; font-size:12px; line-height:1.3; margin:5px 0 0; padding:5px; text-align:left}
.game-shell .inv-warning button {color:#763d25; font-size:12px}
.inv-mobile-label {display:none}
.inv-migration, .inv-tutorial {padding:9px 12px; background:#e7e9da; border-left:3px solid #8a946a; margin:10px 0 0}
.inv-migration>div, .inv-tutorial>div {flex:1 1 200px}
.inv-migration strong, .inv-tutorial strong {font-size:14px; color:#3f5040}
.inv-migration p, .inv-tutorial p {font-size:13px}
.inv-tutorial {background:#ebe4cc; border-color:#927a46}
.decision-content .inv-dossier-link {background:#e3ebdc; color:#345942; border-color:#acbda6; font-size:14px}
@media (max-width:760px) {
  .io-heading .inv-shortcut {margin:3px 0 8px; width:100%; padding:6px 9px}
  .inv-shortcut b {margin-left:auto}
  .inv-planner {margin-top:14px; padding-top:13px}
  .inv-heading {gap:0}
  .inv-heading h3 {font-size:25px}
  .inv-budgets {grid-template-columns:1fr 1fr; margin-top:6px}
  .inv-budget {align-items:start; padding:7px 6px; gap:4px}
  .inv-budget>.io-icon {width:15px; height:15px}
  .inv-budget b {font-size:18px}
  .inv-budget small {font-size:11px}
  .inv-budget:last-child {grid-column:1/-1; align-items:center}
  .inv-budget:last-child>div {display:flex; align-items:baseline; gap:8px}
  .inv-budget:last-child strong {flex:none}
  .inv-sales summary small {display:none}
  .inv-sales>div {display:grid; grid-template-columns:1fr}
  .inv-sale {display:grid; grid-template-columns:1fr auto; align-items:center}
  .inv-sale>.inv-stepper {grid-column:2; grid-row:1/3}
  .inv-sale>.inv-warning {grid-column:1/-1}
  .inv-table, .inv-table tbody {display:block}
  .inv-table thead {position:absolute; overflow:hidden; width:1px; height:1px; clip-path:inset(50%)}
  .inv-table tbody tr {display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); margin:0 0 7px; border:1px solid #c4c8b9; border-radius:4px; overflow:hidden}
  .inv-table tbody :is(td,th) {padding:7px 4px; border:0}
  .inv-table tbody th {grid-column:1/5; grid-row:1; padding:7px}
  .inv-table .inv-now {grid-column:5; grid-row:1}
  .inv-table .inv-future {grid-column:6; grid-row:1}
  .inv-table .inv-make {grid-column:1/4; grid-row:2}
  .inv-table .inv-buy {grid-column:4/7; grid-row:2}
  .inv-table .inv-mobile-label {display:block; line-height:1; font-size:10px; font-weight:700; color:#4d6156; margin-bottom:3px}
  .inv-item-name {font-size:14px}
  .inv-item-name .io-icon {width:17px; height:17px}
  .inv-table .inv-selected th {box-shadow:inset 3px 0 #ad873f}
  .inv-stock-bar {width:90%}
  .inv-future-amount {flex-wrap:wrap; justify-content:center; gap:1px}
  .inv-future-amount em {font-size:9px; padding:1px 2px}
  .inv-spent {font-size:9px}
  .inv-stepper output {min-width:29px}
  .game-shell .inv-stepper button {width:36px; height:36px}
  .inv-migration, .inv-tutorial {gap:4px 8px}
}
