/* A quiet field notebook: foliage, white work surfaces and a brass upgrade marker. */
:root {
  --paper:#f3f6f4; --white:#fff; --ink:#263d34; --muted:#607269;
  --deep:#32664f; --soft:#e8efe9; --line:#dce5de; --gold:#95682c;
  --raw:#a4c88e; --process:#acc7d9; --cold:#9ec7df; --heat:#e8b18b; --light:#e8d598;
  --body:"Microsoft JhengHei","PingFang TC",sans-serif;
  --display:"Microsoft JhengHei UI","Microsoft JhengHei",sans-serif;
  --numbers:"Bahnschrift","Trebuchet MS",var(--body);
  font-family:var(--body); color:var(--ink); font-size:14px; line-height:1.65;
  font-synthesis:none;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--paper); }
button,input,select { font:inherit; }
button { cursor:pointer; color:inherit; }
button,input,select { -webkit-tap-highlight-color:transparent; }
button { border:1px solid var(--line); background:var(--white); border-radius:8px; padding:8px 13px; min-height:40px; }
button:hover { background:var(--soft); }
button:disabled { opacity:.55; cursor:wait; }
:focus-visible { outline:3px solid #5888a4; outline-offset:4px; }
a { color:var(--deep); text-underline-offset:3px; }
p { margin:8px 0 16px; color:var(--muted); }
h1,h2,h3,h4 { color:var(--ink); line-height:1.4; }
h2 { font-family:var(--display); font-size:20px; margin:0; font-weight:700; }
h3 { font-size:17px; margin:0 0 12px; }
h4 { font-size:14px; margin:22px 0 10px; }
small { font-size:12px; }
strong { font-weight:700; }
.shell { max-width:1440px; padding:0 48px; margin:auto; }
.site-header { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; }
.brand-mark { width:44px; height:44px; color:var(--deep); }
.brand-copy { display:grid; gap:3px; }
.brand-copy strong { font-size:17px; letter-spacing:.08em; }
.brand-copy>span { font:10px var(--numbers); letter-spacing:.16em; color:var(--muted); }
.level-picker { display:flex; align-items:center; gap:16px; }
.level-picker>span { font-size:12px; color:var(--muted); }
.level-switch { display:flex; gap:4px; border:1px solid var(--line); background:#e9eeea; padding:4px; border-radius:10px; }
.level-switch button { border:0; min-width:82px; background:transparent; font:500 15px var(--numbers); }
.level-switch button[aria-pressed=true] { background:var(--white); color:var(--deep); box-shadow:0 2px 5px #233e3512; }
.level-switch .level14-link { display:flex; align-items:center; justify-content:center; min-width:68px; padding:8px 12px; text-decoration:none; font:500 15px var(--numbers); }
@media(max-width:600px){.site-header{flex-wrap:wrap;padding-block:12px}.site-header .level-picker{margin-left:auto}.level-switch .level14-link{min-width:50px;padding:6px 8px;font-size:13px}}
@media(max-width:420px){.site-header .level-picker{width:100%;justify-content:flex-end}}
.intro { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:40px 0 30px; }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:.14em; color:var(--deep); }
h1 { font-family:var(--display); font-size:clamp(27px,3vw,40px); font-weight:700; letter-spacing:.035em; margin:8px 0 12px; }
h1 span { color:var(--deep); }
.intro p { margin:0; font-size:14px; }
.plan-status { display:flex; align-items:flex-start; gap:9px; color:var(--deep); font-size:12px; flex-shrink:0; }
.plan-status small { display:block; margin-top:6px; font-size:11px; color:var(--muted); }
.status-dot { width:7px; height:7px; border-radius:50%; background:#668c50; margin-top:7px; }
.priority-strip { display:grid; grid-template-columns:1fr 2fr 1fr; align-items:center; gap:24px; background:#fff; border:1px solid var(--line); border-left:4px solid #b28b49; border-radius:12px; padding:22px 26px; }
.priority-intro .eyebrow { color:var(--gold); }
.priority-intro h2 { font-size:17px; margin-top:4px; }
.priority-intro p { font-size:11px; margin:6px 0 0; }
.upgrade-targets { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.upgrade-target { display:flex; gap:12px; align-items:center; }
.upgrade-target img { width:46px; height:46px; object-fit:contain; padding:4px; border-radius:10px; background:#f4f5ee; }
.upgrade-target>div { display:grid; }
.upgrade-target span { font-size:12px; color:var(--muted); }
.upgrade-target strong { font:500 25px/1.5 var(--numbers); }
.upgrade-target strong small { font:12px var(--body); color:var(--muted); }
.upgrade-target>div>small { font-size:11px; color:var(--muted); }
.upgrade-time { border-left:1px solid var(--line); padding-left:26px; display:grid; }
.upgrade-time>span { font-size:11px; color:var(--muted); }
.upgrade-time strong { font:500 25px/1.6 var(--numbers); color:var(--gold); }
.upgrade-time small { font-size:10px; color:var(--muted); }
.upgrade-cost { display:grid; gap:2px; border-top:1px solid var(--line); margin-top:12px; padding-top:10px; }
.upgrade-cost>span { font-size:11px; color:var(--muted); }
.upgrade-cost strong { font:600 21px/1.35 var(--numbers); color:var(--deep); white-space:nowrap; }
.upgrade-cost small { font-size:10px; line-height:1.4; margin-left:0; }
.workspace-nav { position:sticky; top:0; z-index:20; display:flex; gap:30px; margin:22px 0 26px; background:var(--paper); border-bottom:1px solid var(--line); }
.workspace-nav button { border:0; border-radius:0; padding:17px 2px 15px; background:transparent; color:var(--muted); position:relative; font-size:14px; white-space:nowrap; }
.workspace-nav button[aria-selected=true] { color:var(--deep); font-weight:700; }
.workspace-nav button[aria-selected=true]::after { content:""; position:absolute; height:3px; border-radius:3px 3px 0 0; background:var(--deep); left:0; right:0; bottom:-1px; }
.workspace-nav button:hover { color:var(--deep); }
.workspace-view { min-width:0; }
.overview-heading,.section-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px; }
.overview-heading p { font-size:12px; margin:5px 0 0; }
.quiet-badge { flex-shrink:0; color:var(--deep); font-size:11px; border-radius:5px; padding:6px 10px; background:var(--soft); }
.summary { display:grid; grid-template-columns:1.2fr 1.2fr 1fr 1fr; border:1px solid var(--line); border-radius:12px; background:var(--white); overflow:hidden; margin:20px 0; }
.summary article { display:flex; flex-direction:column; justify-content:center; padding:20px 24px; border-right:1px solid var(--line); min-width:0; }
.summary article:last-child { border:0; }
.summary article>span { font-size:12px; color:var(--muted); }
.summary article>strong { font:500 28px/1.5 var(--numbers); margin:5px 0; }
.summary article>strong>small { font:13px var(--body); color:var(--muted); }
.summary article>small { font-size:10px; color:var(--muted); }
.summary .summary-money { background:#edf3ed; }
.summary-money>strong { color:var(--deep); }
.crop-strip { display:flex; align-items:center; gap:26px; margin:0 0 24px; padding:0 6px; flex-wrap:wrap; }
.crop-item { display:flex; align-items:center; gap:9px; }
.crop-item img { width:35px; height:35px; object-fit:contain; }
.crop-item>div { display:grid; gap:1px; }
.crop-item strong { font-size:12px; font-weight:500; }
.crop-item span { font-size:11px; color:var(--muted); }
.panel,.map-section { background:var(--white); border:1px solid var(--line); border-radius:12px; padding:26px; margin-bottom:20px; min-width:0; }
.section-heading h2 { font-size:18px; }
.section-heading p { margin:5px 0 0; font-size:12px; }
.section-note { font-size:11px; color:var(--muted); }
.view-heading { margin:4px 0 26px; }
.view-heading h2 { font-size:25px; }
.view-heading p { font-size:13px; margin:7px 0 0; }
.primary-button { color:#fff; background:var(--deep); border-color:var(--deep); font-size:12px; flex-shrink:0; }
.primary-button:hover { background:#264f3c; }
.map-toolbar { display:flex; align-items:center; gap:8px; justify-content:space-between; margin-bottom:14px; }
.map-controls { display:flex; align-items:center; gap:6px; }
.map-controls button,.environment-button { font-size:12px; min-height:36px; padding:5px 10px; }
.map-controls button:first-child,.map-controls button:nth-child(3) { min-width:36px; font-size:17px; }
#zoom-value { width:44px; text-align:center; font:12px var(--numbers); color:var(--muted); }
.control-divider { width:1px; height:18px; background:var(--line); margin:0 6px; }
.environment-button[aria-pressed=true] { background:var(--soft); border-color:var(--deep); color:var(--deep); }
.spatial-layout { display:block; }
.spatial-main { min-width:0; }
.map-wrap { height:570px; min-height:400px; border-radius:10px; overflow:hidden; position:relative; background-color:#a9c998; background-image:linear-gradient(#ffffff20 1px,transparent 1px),linear-gradient(90deg,#ffffff20 1px,transparent 1px); background-size:20px 20px; }
#map { width:100%; height:100%; display:block; touch-action:none; }
.map-selection { position:absolute; bottom:10px; left:10px; max-width:calc(100% - 20px); background:#f8faf4ed; border:1px solid #819c7480; border-radius:6px; padding:6px 10px; color:#365333; font-size:11px; pointer-events:none; }
.map-bottom { display:flex; justify-content:space-between; gap:12px; margin-top:12px; flex-wrap:wrap; }
.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:10px; color:var(--muted); }
.legend span { display:flex; align-items:center; gap:5px; }
.legend-swatch { display:inline-block; width:9px; height:9px; border-radius:2px; }
.legend-swatch.raw { background:var(--raw); }.legend-swatch.process { background:var(--process); }.legend-swatch.storage { background:#bb946f; }.legend-swatch.cold { background:var(--cold); }
.map-scale { font-size:10px; color:var(--muted); }
.manager-detail { border:1px solid var(--line); border-radius:9px; padding:18px; max-height:570px; overflow:auto; font-size:12px; scrollbar-width:thin; }
.manager-detail h3 { margin:9px 0 16px; font-size:16px; }
.detail-tags { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:15px; }
.detail-tags span { font-size:10px; background:var(--soft); padding:3px 6px; border-radius:4px; color:var(--deep); }
.detail-recipe { background:#f3f6f2; border-radius:7px; padding:14px; margin-bottom:16px; }
.detail-recipe h4 { margin:10px 0 8px; font-size:14px; }.detail-recipe p { margin:8px 0; }
.detail-recipe small { color:var(--muted); font-size:10px; }
.detail-empty { padding:18px 0 30px; color:var(--muted); }
.selection-icon { display:block; font-size:44px; font-weight:400; color:#879f89; margin-bottom:20px; }
.detail-empty p { line-height:1.9; }
.detail-empty small { font-size:11px; }
.manager-detail details { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
.temperature-instruction { padding:12px; background:#edf4f8; border-radius:6px; margin-bottom:12px; color:#416782; }
.temperature-settings,.map-districts { display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; margin-top:16px; color:var(--muted); font-size:11px; }
.temperature-setting { font-size:11px; padding:5px 10px; }
.map-districts strong { color:var(--deep); margin-right:6px; }
.map-footnote { margin:12px 0 18px; }
.map-footnote p { font-size:11px; margin:4px 0; }
.map-footnote p:empty { display:none; }#map-export-status { color:var(--deep); }#map-export-status.error { color:#a04334; }
details>summary { cursor:pointer; color:var(--deep); font-weight:500; font-size:13px; }
details>summary:hover { color:#173c29; }
details>summary::marker { font-size:10px; }
details>summary>span { float:right; color:var(--muted); font-weight:400; font-size:11px; margin-left:15px; }
details[open]>summary { margin-bottom:18px; }
.management-list,.map-notes { padding-top:16px; border-top:1px solid var(--line); margin-top:16px; }
.map-notes p { font-size:12px; }
.disclosure-panel { padding:20px 26px; }
.disclosure-panel>summary { font-size:14px; font-weight:600; }
.notes-panel li { margin-bottom:10px; color:var(--muted); font-size:13px; line-height:1.8; }
.notes-panel ul { padding-left:20px; }
.table-wrap { width:100%; overflow:auto; overscroll-behavior-x:contain; }
.data-table { border-collapse:collapse; width:100%; font-size:13px; line-height:1.65; }
.data-table th { text-align:left; font-size:11px; color:var(--muted); white-space:nowrap; padding:12px 14px; border-bottom:1px solid var(--line); background:#f5f8f5; }
.data-table td { vertical-align:top; padding:15px 14px; border-bottom:1px solid #e9eeea; min-width:100px; }
.data-table td:first-child { min-width:150px; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:#f9fbf8; }
.data-table small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.data-table .num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.data-table details { font-size:12px; margin-top:10px; }
.data-table details[open] { min-width:240px; }
.data-table details p,.data-table details ul { margin:10px 0; }
.data-table summary { font-size:11px; }
.table-wrap+p,.panel>div>p { font-size:12px; margin-top:16px; line-height:1.8; }
.goal-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.goal-row { border-top:1px solid var(--line); padding:16px 0 0; }
.goal-row>strong { font-size:16px; }
.target-chain { margin-top:12px; font-size:12px; }
.target-chain ul { padding-left:20px; }
.material-priority { border-left:3px solid #b28b49; background:#f8f6f0; padding:12px 18px; margin:0 0 22px; }
.material-priority>strong { color:var(--gold); }
.material-priority p { margin:5px 0 0; font-size:12px; }
#materials>details,#flow>details { margin:22px 0; border-top:1px solid var(--line); padding-top:16px; }
.revenue-totals { display:flex; justify-content:space-between; gap:20px; margin-top:18px; padding:18px; border-radius:7px; background:var(--soft); font-size:13px; }
.revenue-totals strong { color:var(--deep); }.revenue-note { font-size:12px; margin:18px 0 0; }
.sale-batches { margin:20px 0; }
.purchase-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 30px; }
.purchase-row { display:grid; grid-template-columns:1fr auto; gap:5px; border-top:1px solid var(--line); padding:12px 0; font-size:13px; }
.purchase-row small { grid-column:1/-1; color:var(--muted); font-size:11px; }
.processing-controls { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:18px; background:#f4f7f4; border-radius:8px; padding:18px; margin:20px 0; }
.processing-controls label { display:block; font-size:12px; color:var(--muted); margin-bottom:7px; }
input[type=search],select { width:100%; min-height:44px; border:1px solid #cbd8ce; border-radius:7px; padding:9px 12px; color:var(--ink); background:#fff; }
.processing-active,.nature-pill { display:inline-block; font-size:10px; font-weight:600; color:var(--deep); background:var(--soft); border-radius:4px; padding:2px 6px; margin:4px 0 4px 6px; }
.processing-chain ol { padding-left:20px; }.processing-panel .data-table { min-width:850px; }
.empty-copy { padding:30px 14px; color:var(--muted); }
.shared-pool>h3 { font-size:17px; }.shared-pool>p { font-size:13px; }
.staffing-evidence { margin-top:26px; }.staffing-evidence>p { font-size:12px; }
.staffing-evidence>details { margin:22px 0; padding-top:16px; border-top:1px solid var(--line); }
.shared-roster { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.shared-roster article { border:1px solid var(--line); padding:18px; border-radius:8px; display:grid; align-content:start; gap:12px; font-size:12px; }
.shared-roster article>strong { font-size:14px; }.shared-roster article>small,.shared-roster article>span { color:var(--muted); font-size:12px; }
.recommendation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.rec-card { min-width:0; border:1px solid var(--line); border-radius:9px; padding:18px; font-size:12px; }
.rec-heading,.zone-heading { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.rec-heading h3,.zone-heading h3 { font-size:14px; margin:0; }.rec-heading small,.zone-heading small { font-size:10px; color:var(--muted); }
.zone-icon img { width:34px; height:34px; object-fit:contain; }.rec-heading .nature-pill { margin-left:auto; white-space:nowrap; }
.pet-count,.family-notice { font-size:11px; background:var(--soft); color:var(--deep); padding:8px 10px; border-radius:5px; margin:8px 0; }
.family-notice { background:#f7f1e5; color:var(--gold); }
.nature-reason { font-size:11px; }.match-result { border-top:1px solid var(--line); padding:10px 0; font-size:12px; margin-top:10px; }
.best-pet-list { list-style:none; padding:0; margin:10px 0; }.best-pet-list li { padding:9px 0; border-bottom:1px solid #edf0ec; }
.best-pet-list strong { display:block; font-size:12px; }.best-pet-list small { font-size:10px; color:var(--muted); }.pet-catch { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.pet-tier-primary>b { font-size:11px; font-weight:400; color:var(--muted); }.pet-upgrade,.more-pets,.pet-more { margin:10px 0; }.pet-upgrade summary,.more-pets summary { font-size:11px; }
.residence-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }.residence-space { border:1px dashed #a8bfa9; background:#edf3e9; border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:25px; text-align:center; }.residence-space strong { font:30px/1.5 var(--numbers); margin:10px 0; }.residence-space small,.residence-space p { font-size:12px; }.residence-info { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.residence-info span,.residence-info strong { display:block; }.residence-info span { font-size:12px; color:var(--muted); }.residence-info strong { font-size:22px; }.residence-info p { grid-column:1/-1; font-size:12px; }
.management-board { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }.board-bucket { display:grid; gap:18px; }.manage-zone { min-width:0; background:#f6f8f4; padding:14px; border-radius:8px; }.zone-heading>b { margin-left:auto; font-size:12px; }.zone-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:6px; }
.manage-tile { position:relative; display:flex; flex-direction:column; align-items:center; min-height:138px; padding:20px 6px 36px; border:1px solid #d2ded0; background:white; border-radius:5px; }.manage-tile.selected { border-color:var(--deep); background:#edf4e9; }.tile-corner,.fixed-dot { position:absolute; top:5px; font-size:9px; }.tile-corner { left:5px; color:var(--muted); }.fixed-dot { right:5px; background:#f4e9cf; padding:1px 3px; color:var(--gold); border-radius:3px; }.tile-icon img { width:34px; height:34px; object-fit:contain; }.manage-tile>strong { font:10px var(--numbers); }.manage-tile>small { font-size:10px; line-height:1.5; text-align:center; margin-top:4px; }.tile-product { position:absolute; bottom:4px; display:flex; gap:3px; }.tile-product img { width:24px; height:24px; object-fit:contain; }
footer { border-top:1px solid var(--line); padding:24px 0 30px; margin-top:34px; display:flex; justify-content:space-between; gap:20px; font-size:11px; color:var(--muted); }
.skip-link { position:fixed; top:10px; left:10px; z-index:100; background:white; padding:12px; transform:translateY(-150%); }.skip-link:focus { transform:translateY(0); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* The map gets the full width; crews live in the open facility list below. */
.map-section .map-wrap { height:auto; min-height:0; aspect-ratio:4/3; }
.map-section .manager-detail { max-height:none; overflow:visible; margin:20px 0; padding:20px; }
.manager-detail #detail { display:grid; grid-template-columns:1fr 1fr; gap:12px 28px; align-items:start; }
.manager-detail .detail-tags { grid-column:1/-1; margin:0; }
.manager-detail #detail>p,.manager-detail .detail-recipe { margin:0; }
#recommendations-title { scroll-margin-top:92px; }
.facility-team .catch-note { font-size:12px; max-width:960px; margin-bottom:26px; }
.facility-recommendations { display:grid; gap:22px; }
.facility-rec { border:1px solid var(--line); border-radius:10px; overflow:hidden; min-width:0; }
.facility-rec-heading { display:flex; align-items:center; gap:12px; padding:18px 22px; background:#f2f6f2; }
.facility-rec-heading>img { flex-shrink:0; object-fit:contain; background:#758279; border-radius:50%; padding:6px; }
.facility-rec-heading>div { min-width:0; }
.facility-rec-heading h3 { margin:0; font-size:18px; }
.facility-rec-heading h3>span { margin-left:8px; font:12px var(--body); color:var(--muted); white-space:nowrap; }
.facility-rec-heading p { font-size:12px; margin:3px 0 0; }
.facility-rec-heading .nature-pill { margin-left:auto; font-size:12px; flex-shrink:0; }
.facility-role { display:grid; grid-template-columns:minmax(140px,.7fr) minmax(0,2fr) minmax(0,1fr); gap:20px; padding:20px 22px; }
.facility-role+.facility-role { border-top:1px solid var(--line); }
.shared-crew { grid-column:1/-1; min-width:0; border:1px solid #d6e2d3; border-radius:7px; padding:14px 16px; background:#f4f8f1; }
.shared-crew-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 12px; }
.shared-crew-heading>strong { font-size:16px; color:var(--deep); }
.shared-crew-heading>span { font-size:12px; color:var(--muted); }
.shared-crew-facilities { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; padding:0; }
.shared-crew-facilities>li { min-width:0; padding:8px 11px; border:1px solid var(--line); border-radius:5px; background:white; }
.shared-crew-facilities>li.is-current { border-color:#9cb890; background:#eaf2e4; }
.shared-crew-facilities span { display:flex; flex-wrap:wrap; align-items:center; gap:5px 8px; font-size:13px; }
.shared-crew-facilities em { font-style:normal; font-size:10px; color:var(--deep); }
.shared-crew-facilities small { display:block; margin-top:3px; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.shared-crew>p { margin:0; font-size:12px; color:var(--muted); }
.role-summary { display:flex; flex-direction:column; align-items:flex-start; gap:6px; font-size:13px; padding-top:2px; }
.role-summary>strong { font-size:15px; }
.role-summary>small { font-size:12px; color:var(--muted); }
.role-nature { color:var(--deep); background:var(--soft); border-radius:4px; padding:2px 6px; font-size:12px; }
.tier-label { color:var(--muted); font-size:12px; margin-bottom:10px; }
.role-upgrade { border-left:1px solid var(--line); padding-left:20px; }
.role-upgrade>.tier-label { color:var(--gold); }
.pet-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.pet-pick { display:flex; gap:10px; align-items:flex-start; min-width:0; }
.pet-portrait { width:84px; height:84px; flex-shrink:0; object-fit:contain; background:#e9edf0; border-radius:12px; }
.pet-pick-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.pet-pick-copy>strong { font-size:16px; }
.pet-form { color:var(--muted); font-size:12px; }
.pet-skills { font:12px var(--body); color:var(--deep); }
.pet-pick-copy>small { color:var(--muted); font-size:12px; line-height:1.6; }
.pet-pick-copy>.pet-condition { color:var(--gold); }
.pet-unavailable { color:var(--muted); font-size:12px; margin:0; }
.pet-unavailable small { display:block; font-size:12px; margin-top:5px; }
.facility-rec-note { border-top:1px solid #edf1ed; padding:10px 22px; margin:0; font-size:12px; }
@media(max-width:1100px) {
  .facility-role { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
  .role-summary { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px 14px; }
  .role-summary>small { flex-basis:100%; }
}
@media(max-width:680px) {
  .facility-team .section-heading { display:block; }
  .facility-team .quiet-badge { display:inline-block; margin-top:12px; }
  .facility-rec-heading { padding:15px; gap:8px; flex-wrap:wrap; }
  .facility-rec-heading .nature-pill { margin-left:50px; }
  .facility-rec-heading h3 { font-size:15px; }
  .facility-role { grid-template-columns:1fr; padding:16px 15px; gap:16px; }
  .role-upgrade { border-left:0; border-top:1px dashed var(--line); padding:14px 0 0; }
  .pet-options { grid-template-columns:1fr; gap:16px; }
  .pet-portrait { width:72px; height:72px; }
  .facility-rec-note { padding:12px 15px; }
  .manager-detail #detail { grid-template-columns:1fr; }
}

/* SVG geometry and label sizes stay in game-coordinate units. */
.map-object { cursor:pointer; }.map-object text { font:700 10px var(--body); fill:#354d34; text-anchor:middle; dominant-baseline:middle; pointer-events:none; }
.ground-zone { fill:#d7eeb7; fill-opacity:.035; stroke:#e9f7dc; stroke-opacity:.62; stroke-width:1.3; pointer-events:none; }.ground-zone.early { fill-opacity:.075; stroke-opacity:.82; }
.ground-zone-label { font:700 13px var(--body); fill:#40744a; fill-opacity:.38; text-anchor:middle; dominant-baseline:middle; pointer-events:none; }.ground-zone-label.early { fill-opacity:.62; }
.map-gridline { stroke:#edf7e354; stroke-width:1; }.axis-label { font:11px var(--numbers); fill:#416d50; }.north { font:700 14px var(--numbers); fill:#376147; }
.plot-card .plot-bg { fill:#f8faf4; stroke:#9bbb85; stroke-width:.65; }.plot-card:hover .plot-bg { fill:#edf5e8; }.plot-card.selected .plot-bg,.plot-card:focus-visible .plot-bg { fill:#e0f0dd; stroke:#267968; stroke-width:1.7; }
.plot-card .plot-icon-bg { fill:#6c707d; }.plot-card .plot-title { fill:#526248; font:700 3.4px var(--body); text-anchor:middle; }.plot-card .plot-signal { fill:#748477; font:700 2.7px var(--numbers); text-anchor:start; }.plot-card .plot-level { font:700 2.6px var(--numbers); fill:#5e6757; }
.plot-card .plot-temperature { font:800 5px var(--numbers); text-anchor:middle; dominant-baseline:alphabetic; }.plot-temperature.heat { fill:#a14816; }.plot-temperature.cold { fill:#226193; }
.env-overlay,.power-overlay { pointer-events:none; }#map .env-overlay,#map .power-overlay { display:none; }#map.show-environment .env-overlay,#map.show-power .power-overlay { display:inline; }
.district-label { font:700 4.2px var(--body); fill:#49663c; text-anchor:middle; dominant-baseline:middle; pointer-events:none; }
.district-label-badge { pointer-events:none; }
.district-label-badge>rect { fill:#edf4e5; fill-opacity:.95; stroke:#8eae7b; stroke-width:.45; }

@media(min-width:1500px) { .map-wrap { height:650px; }.manager-detail { max-height:650px; } }
@media(max-width:1150px) {
  .shell { padding:0 28px; }.intro { gap:18px; }.priority-strip { grid-template-columns:1fr 2fr; }.upgrade-time { grid-column:1/-1; border:0; border-top:1px solid var(--line); padding:12px 0 0; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }.upgrade-time>strong { font-size:18px; }.upgrade-time>small { margin-left:auto; }.upgrade-cost { flex-basis:100%; margin-top:0; }.upgrade-cost strong { font-size:20px; }
  .spatial-layout { grid-template-columns:minmax(0,1fr) 240px; }.map-wrap { height:500px; }.manager-detail { max-height:500px; padding:15px; }.summary article { padding:18px; }.summary article>strong { font-size:25px; }.shared-roster,.recommendation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.plan-status { max-width:280px; }.plan-status small { line-height:1.8; }
}
@media(max-width:820px) {
  .intro { display:block; padding:28px 0 22px; }.plan-status { max-width:none; margin-top:22px; }.plan-status small { display:inline; margin-left:10px; }.summary { grid-template-columns:1fr 1fr; }.summary article:nth-child(-n+2) { border-bottom:1px solid var(--line); }.summary article:nth-child(2) { border-right:0; }.spatial-layout { grid-template-columns:1fr; }.map-wrap { height:auto; aspect-ratio:4/3; min-height:0; }.manager-detail { max-height:420px; }.detail-empty { padding:0; display:flex; align-items:center; gap:20px; }.selection-icon { font-size:30px; margin:0; }.detail-empty small { display:none; }.detail-empty p { margin:0; }.manager-detail h3 { margin:5px 0 12px; }.management-board { grid-template-columns:1fr; }.purchase-grid { grid-template-columns:1fr 1fr; }.priority-strip { gap:20px; }.upgrade-targets { gap:16px; }.upgrade-target { gap:6px; }.upgrade-target img { width:36px; height:36px; }.upgrade-target strong { font-size:22px; }.overview-heading { align-items:flex-start; }.quiet-badge { font-size:10px; }.overview-heading p { max-width:370px; }
}
@media(max-width:560px) {
  .shell { padding:0 16px; }.site-header { min-height:78px; gap:8px; }.brand-mark { width:36px; height:36px; }.brand { gap:6px; }.brand-copy strong { font-size:14px; letter-spacing:.02em; }.brand-copy>span { font-size:8px; letter-spacing:.07em; }.level-picker>span { display:none; }.level-switch { padding:3px; gap:1px; }.level-switch button { min-width:59px; min-height:36px; padding:6px 8px; font-size:13px; }
  .intro h1 { font-size:27px; letter-spacing:0; }.intro>.eyebrow { font-size:10px; }.intro p { font-size:12px; }.plan-status { font-size:11px; margin-top:18px; }.plan-status small { display:block; margin:3px 0 0; font-size:10px; }.status-dot { margin-top:6px; }
  .priority-strip { grid-template-columns:1fr; padding:18px; gap:17px; }.priority-intro { display:grid; grid-template-columns:1fr auto; align-items:center; }.priority-intro .eyebrow { grid-column:2; grid-row:1; }.priority-intro h2 { grid-column:1; grid-row:1; margin:0; font-size:16px; }.priority-intro p { grid-column:1/-1; margin-top:4px; }.upgrade-targets { gap:12px; }.upgrade-target { gap:9px; }.upgrade-target img { width:37px; height:37px; }.upgrade-target strong { font-size:24px; }.upgrade-target>div>small { font-size:10px; }.upgrade-time { flex-wrap:wrap; gap:6px 10px; padding-top:12px; }.upgrade-time>span { font-size:10px; }.upgrade-time small { font-size:9px; }.upgrade-time>strong { font-size:17px; }.upgrade-cost strong { font-size:20px; }
  .workspace-nav { gap:0; justify-content:space-between; margin:14px 0 22px; }.workspace-nav button { font-size:12px; padding:15px 4px; min-height:48px; }.overview-heading h2 { font-size:18px; }.overview-heading { gap:10px; }.overview-heading p { font-size:11px; }.quiet-badge { display:none; }
  .summary { margin:16px 0 20px; }.summary article { padding:15px 14px; }.summary article>span { font-size:11px; }.summary article>strong { font-size:25px; margin:3px 0; }.summary article>small { font-size:9px; }.summary article>strong>small { font-size:11px; }.crop-strip { display:grid; grid-template-columns:1fr 1fr; gap:14px 10px; padding:0 3px; }.crop-item img { width:31px; height:31px; }.crop-item strong { font-size:11px; }
  .panel,.map-section { padding:18px 15px; border-radius:10px; margin-bottom:16px; }.section-heading { align-items:flex-start; gap:12px; flex-wrap:wrap; }.section-heading h2 { font-size:17px; }.section-heading p { font-size:11px; }.map-section>.section-heading { flex-wrap:nowrap; }.primary-button { padding:8px; font-size:10px; min-height:36px; }.map-toolbar { gap:4px; }.map-controls { gap:3px; }.map-controls button,.environment-button { font-size:10px; padding:5px 7px; min-height:38px; }.map-controls button:first-child,.map-controls button:nth-child(3) { min-width:30px; padding:5px; }.control-divider { margin:0 3px; }#zoom-value { width:34px; font-size:10px; }.map-wrap { aspect-ratio:1/1; }.map-selection { font-size:9px; bottom:6px; left:6px; max-width:calc(100% - 12px); padding:4px 6px; }.spatial-layout { gap:16px; }.map-scale { font-size:9px; }.map-districts { gap:8px 14px; font-size:10px; }.map-footnote p { font-size:10px; }.map-notes summary,.management-list>summary { font-size:12px; }details>summary>span { float:none; display:block; margin:4px 0 0 14px; font-size:10px; }
  .view-heading h2 { font-size:21px; }.view-heading p { font-size:12px; }.goal-grid { grid-template-columns:1fr; }.data-table { font-size:12px; }.data-table td { padding:13px 10px; }.data-table th { padding:10px; }.revenue-totals { flex-direction:column; gap:8px; font-size:12px; }.processing-controls { grid-template-columns:1fr; padding:14px; gap:13px; }.recommendation-grid,.shared-roster,.residence-grid,.purchase-grid { grid-template-columns:1fr; }.shared-roster article { padding:15px; }.disclosure-panel>summary { font-size:13px; }footer { display:grid; gap:6px; padding:22px 0; margin-top:26px; font-size:10px; }
}
.wood-calculator .section-heading h3 { margin:0; }
.wood-target { color:var(--gold); font-weight:600; font-size:13px; }
.wood-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 24px; }
.wood-field { min-width:0; }
.wood-field label,.wood-field legend { display:block; font-size:13px; font-weight:600; margin-bottom:8px; padding:0; }
.wood-field small { display:block; color:var(--muted); font-size:11px; margin-top:7px; }
.wood-field input,.wood-field select { width:100%; min-width:0; height:46px; border:1px solid var(--line); border-radius:7px; padding:9px 12px; background:var(--white); color:var(--ink); }
.wood-field input { font-family:var(--numbers); font-size:17px; }
.wood-field input[aria-invalid=true] { border-color:#ad5141; }
.wood-field select { font-size:14px; }
.wood-unit-input { display:flex; align-items:center; position:relative; }
.wood-unit-input input { padding-right:48px; }
.wood-unit-input>span { position:absolute; right:30px; pointer-events:none; font-size:12px; color:var(--muted); }
.wood-time { margin:0; border:0; padding:0; }
.wood-time-inputs { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wood-stocks { border-top:1px solid var(--line); margin-top:24px; padding-top:17px; }
.wood-stocks summary { font-size:13px; }
.wood-stocks summary>span:last-child { color:var(--muted); font-size:11px; margin-left:8px; }
.wood-stock-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:580px; margin-top:18px; }
.wood-stock-fields-beam { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:900px; }
.wood-stocks p { font-size:12px; margin-bottom:0; }
.wood-calculator .wood-formula { background:var(--soft); color:var(--deep); font-size:12px; padding:12px 16px; margin:22px 0; border-radius:7px; }
.wood-calculator .wood-message { padding:24px 0; margin:0; text-align:center; font-size:13px; }
.wood-chain { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:24px 0 10px; }
.wood-chain-beam { grid-template-columns:repeat(4,minmax(0,1fr)); }
.wood-chain>div { border-left:3px solid var(--raw); padding-left:16px; }
.wood-chain dt { color:var(--muted); font-size:12px; }
.wood-chain dd { display:flex; align-items:baseline; flex-wrap:wrap; column-gap:8px; margin:2px 0 0; }
.wood-chain strong { font-family:var(--numbers); font-size:30px; line-height:1.5; overflow-wrap:anywhere; }
.wood-chain dd span { font-size:12px; color:var(--muted); }
.wood-calculator .wood-deductions { font-size:11px; margin:8px 0 24px; }
.wood-paths { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.wood-path { border:1px solid var(--line); border-radius:10px; padding:24px; min-width:0; }
.wood-path h4 { margin:8px 0 10px; font-size:15px; }
.wood-result-number { display:block; font-family:var(--numbers); font-size:30px; line-height:1.45; color:var(--deep); overflow-wrap:anywhere; }
.wood-path p { font-size:12px; margin:10px 0 0; }
.wood-path .wood-result-detail { font-weight:600; color:var(--ink); font-size:13px; }
.wood-path-growth { background:var(--paper); }
.wood-path .wood-growth-note { border-top:1px solid var(--line); padding-top:16px; margin-top:22px; }
.wood-last-batch { margin-top:22px; }
.wood-last-batch>span,.wood-last-batch>small { font-size:11px; color:var(--muted); }
.wood-plot-grid { display:grid; grid-template-columns:repeat(7,24px); gap:5px; margin:9px 0 5px; }
.wood-plot { width:24px; height:24px; border:1px dashed var(--line); border-radius:4px; background:var(--paper); }
.wood-plot.planted { border:1px solid var(--deep); background:var(--raw); }
.wood-calculator .wood-assumptions { margin:20px 0 0; font-size:11px; color:var(--muted); line-height:1.9; }
@media(max-width:900px) { .wood-fields { grid-template-columns:1fr 1fr; }.wood-result-number { font-size:26px; } }
@media(max-width:560px) {
  .wood-fields { grid-template-columns:1fr; gap:18px; }.wood-time-inputs { max-width:300px; }.wood-target { font-size:12px; }
  .wood-paths { grid-template-columns:1fr; gap:14px; }.wood-path { padding:18px; }.wood-chain { gap:10px; }.wood-chain>div { padding-left:8px; border-left-width:2px; }.wood-chain strong { font-size:23px; }.wood-chain dt { font-size:10px; }.wood-chain dd { column-gap:4px; }
  .wood-chain-beam { grid-template-columns:1fr 1fr; row-gap:16px; }
  .wood-stock-fields { gap:12px; }.wood-stock-fields-beam { grid-template-columns:1fr; }.wood-stocks summary>span:last-child { display:block; margin:4px 0 0 14px; }
  .wood-calculator .wood-formula { padding:10px 12px; font-size:11px; }.wood-calculator .wood-message { text-align:left; }
}
@media(prefers-reduced-motion:no-preference) { button { transition:background-color .15s,color .15s; }.workspace-view { animation:enter .18s ease-out; }@keyframes enter { from { opacity:.6; transform:translateY(3px); }to { opacity:1; transform:translateY(0); } } }
