*{box-sizing:border-box} :root{--ink:#35483b;--paper:#f7efdc;--line:#d5cbb3;--green:#365b46;--gold:#e8bc70}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 Arial,sans-serif;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff8e9;color:var(--ink);padding:10px 13px;border-radius:6px;min-height:40px}button:hover{background:#eee0be}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,.hotspot:focus-visible{outline:3px solid #bb793c;outline-offset:3px}.primary,button[aria-pressed=true],button[aria-current=page]{background:var(--green);color:#fff4da;border-color:var(--green)}header{display:flex;align-items:center;gap:22px;padding:12px 20px;background:#355345;color:#fff2d7;flex:none;border-bottom:4px solid #d5b478}header>a{color:inherit;text-decoration:none;font:20px Georgia;border-right:1px solid #ffffff30;padding-right:18px}.brand strong{font:24px Georgia;letter-spacing:1px}.brand small,header small{display:block;font-size:9px;letter-spacing:2px;color:#dfd5b9}header b{font:22px Georgia}.funds{margin-left:auto}.clock{text-align:right;font-size:11px;white-space:nowrap}#speeds{display:flex;gap:3px;margin-top:3px}#speeds button{padding:3px 9px;min-height:28px;font-size:11px;background:#416351;color:#fff2d7;border-color:#ffffff30}#speeds button[aria-pressed=true]{background:#e8bc70;color:#35483b}.command{display:flex;gap:10px;padding:8px 16px;background:#ebe3cf;flex:none;border-bottom:1px solid var(--line)}#guide{flex:1;text-align:left;background:#d7e1cb;font-weight:600}#result{white-space:nowrap;font-size:12px}main{display:flex;min-height:0;flex:1}#business{flex:1;min-width:0;display:flex;flex-direction:column;background:#e1e7d6;overflow:hidden}.world-title{padding:17px 25px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.world-title small{font-size:9px;letter-spacing:2px}h1{font:30px Georgia;margin:3px 0}#status{font-size:10px;border:1px solid #69847260;border-radius:20px;padding:5px 9px;white-space:nowrap}#world{min-height:0;flex:1;display:flex;justify-content:center}#world svg{width:100%;height:100%;max-height:100%;display:block}.scene-label{font:10px Arial;letter-spacing:1px;fill:#66513c}.hotspot{cursor:pointer}.hotspot:hover{filter:brightness(1.08)}.steam{opacity:.5;animation:steam 2s infinite alternate}.customer{animation:sway 3s infinite alternate;transform-box:fill-box;transform-origin:bottom}.paused .customer,.paused .steam{animation-play-state:paused}@keyframes steam{to{opacity:.1;translate:0 -7px}}@keyframes sway{to{translate:3px -2px}}.ledger{display:flex;justify-content:space-around;gap:12px;padding:12px 20px;background:#f8f1dbbb;border-top:1px solid #b6c5a9}.ledger small{display:block;font-size:9px;letter-spacing:1px}.ledger b{font:22px Georgia}.hint{font-size:11px;text-align:center;margin:5px;padding:2px}aside{width:390px;max-width:42%;background:var(--paper);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}aside[hidden]{display:none}.panel-head{padding:12px 17px;border-bottom:1px solid var(--line);flex:none}.panel-head button{font-size:11px;min-height:28px;padding:5px 10px}h2{font:25px Georgia;margin:10px 0 0}#panel-body{overflow:auto;padding:16px;min-height:0}.card{border:1px solid var(--line);background:#fff8e8;border-radius:8px;padding:15px;margin-bottom:12px}.card h3{font:21px Georgia;margin:0 0 8px}.card p{font-size:12px;margin:8px 0}.card button{width:100%;margin-top:7px}.card label{display:block;font-size:12px;margin-top:9px}.card select,.card input{width:100%;padding:9px;border:1px solid var(--line);background:white;color:var(--ink);border-radius:4px}.row{display:flex;justify-content:space-between;gap:10px;margin:7px 0;font-size:12px}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}.tabs button{flex:1;padding:7px;min-width:55px;font-size:12px}.muted{color:#746e5b;font-size:12px}.pill{display:inline-block;background:#e5e8ce;padding:2px 8px;border-radius:12px;font-size:11px}progress{width:100%;accent-color:var(--green);height:9px}footer{padding:4px 15px;font-size:10px;display:flex;gap:20px;border-top:1px solid var(--line);flex:none;min-height:24px}#journal{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#dock{height:62px;flex:none;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:6px 10px;background:#eee5ce;border-top:1px solid var(--line);padding-bottom:max(6px,env(safe-area-inset-bottom))}#dock button{font-size:12px;font-weight:bold}#more-panel{position:fixed;right:12px;bottom:70px;z-index:40;width:min(360px,calc(100vw - 24px));background:var(--paper);padding:18px;box-shadow:0 5px 40px #0004;border:1px solid var(--line);border-radius:12px;max-height:75dvh;overflow:auto}#more-panel h2{margin:0 0 14px}#more-panel button{width:100%;margin-bottom:7px}dialog{border:1px solid #d8c8a7;border-radius:15px;background:var(--paper);color:var(--ink);width:min(440px,calc(100% - 28px));max-height:90dvh;padding:26px;box-shadow:0 20px 100px #0004}dialog::backdrop{background:#1d3329aa}dialog h1{font-size:39px}dialog small{font-size:9px;letter-spacing:1.5px}dialog label{display:block;margin:12px 0;font-size:12px}dialog input,dialog select{display:block;width:100%;margin-top:5px;padding:10px;font-size:16px;background:#fffaf0;border:1px solid var(--line);border-radius:5px;color:var(--ink)}dialog button{width:100%;margin-top:7px}.intro-art{font-size:62px;float:right;margin-top:-18px}#toast{position:fixed;bottom:76px;left:50%;transform:translateX(-50%);background:#345542;color:white;box-shadow:0 5px 20px #0003;padding:12px 18px;border-radius:8px;z-index:80;max-width:90%;font-size:13px;pointer-events:none}#toast.error{background:#8e4539}.negative{color:#a04633}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:9px 4px;border-bottom:1px solid var(--line);text-align:right}th:first-child,td:first-child{text-align:left}#welcome-error{color:#9b3e32;font-size:12px}
@media(max-width:760px){header{padding:8px 10px;gap:10px}.brand strong{font-size:17px}.brand small{display:none}header>a{font-size:15px;padding-right:8px}.funds b{font-size:19px}.reputation{display:none}.clock{font-size:9px}#speeds{gap:2px}#speeds button{padding:3px 6px;min-height:28px;font-size:10px}.command{padding:6px 8px;gap:5px;flex-wrap:wrap}#guide{font-size:11px;padding:7px;min-height:32px;flex-basis:100%}#result{min-height:26px;padding:3px 8px;width:100%;font-size:10px}.world-title{padding:12px 14px 0}.world-title h1{font-size:24px}.world-title small{font-size:8px}aside{position:fixed;left:0;right:0;bottom:62px;height:53dvh;width:100%;max-width:none;z-index:20;border:1px solid var(--line);border-radius:14px 14px 0 0;box-shadow:0 -5px 30px #0002}.panel-head{padding:8px 14px;display:flex;align-items:center;gap:15px;justify-content:space-between}.panel-head h2{font-size:20px;margin:0}#panel-body{padding:12px}.panel-open #business{max-height:calc(47dvh - 150px);min-height:90px}.panel-open .world-title,.panel-open .ledger,.panel-open .hint{display:none}.ledger{padding:9px 10px;gap:6px}.ledger small{font-size:7px}.ledger b{font-size:19px}.hint{font-size:10px}#save-status{display:none}footer{font-size:9px;min-height:22px}#dock{gap:4px;padding:6px}#dock button{padding:5px;font-size:10px}#toast{bottom:72px;width:max-content;max-width:92%}.card h3{font-size:19px}}
@media(max-height:500px){header{padding:5px 12px}.brand strong{font-size:18px}.command{padding:4px 10px;flex-wrap:nowrap}#guide{flex-basis:auto}#result{width:auto}aside{position:fixed;left:auto;right:0;bottom:62px;top:106px;width:43%;max-width:43%;height:auto;z-index:20}.panel-open #business{max-height:none;width:57%;flex:none}.world-title{padding-top:4px}.world-title h1{font-size:18px}.world-title small,.hint{display:none}.ledger{padding:4px}.ledger b{font-size:16px}footer{display:none}}
@media(prefers-reduced-motion:reduce){.customer,.steam{animation:none}}

body[data-view=supplies] .card{display:grid;grid-template-columns:1fr 1fr;column-gap:10px;padding:12px}body[data-view=supplies] .card h3{grid-column:1;font-size:19px;margin:0}body[data-view=supplies] .card .row{grid-column:1;display:block;margin:3px 0;font-size:11px}body[data-view=supplies] .card .row strong{margin-left:6px}body[data-view=supplies] .card button{grid-column:2;grid-row:1/3;margin:0;font-size:12px}body[data-view=supplies] .card p{grid-column:1/-1;margin-bottom:0}
:root{--ink:#294a40;--paper:#f1efdf;--line:#ccd2bc;--green:#315d50;--gold:#d5b66a}header{background:#264d44;border-color:#a7b997}.brand strong{font-size:22px}#business{background:#cbdcc9}.ledger{background:#eaf0dd}.gardener{animation:sway 3s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:bottom}.rain{animation:rain 1s linear infinite}.paused .gardener,.paused .rain{animation-play-state:paused}@keyframes rain{to{translate:-5px 20px}}.crop-icon{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:7px}.stock-note{padding:9px;background:#e4e8cf;border-radius:5px}.grow-meter{height:10px;margin:8px 0}#panel-body .selected-crop{border-left:4px solid #8ba46d}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mini-grid button{margin:0;font-size:12px}.intro-art{float:none;font:60px Georgia;color:#597c50;text-align:center;margin:5px}.ready{background:#eed9a4!important}@media(max-width:760px){.brand strong{font-size:15px}.brand{max-width:130px}.panel-open #business{max-height:calc(47dvh - 150px)}#panel-title{font-size:18px}}@media(prefers-reduced-motion:reduce){.gardener,.rain{animation:none}}
@media(max-height:500px){header{height:50px;min-height:50px;box-sizing:border-box}.brand small{display:none}.brand strong{font-size:17px}.command{height:42px;min-height:42px;box-sizing:border-box}.command button{min-height:30px;padding:5px 8px}aside{top:92px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px}.panel-head h2{font-size:17px;margin:0}.panel-head button{font-size:10px;padding:4px 7px}#panel-body{padding:10px}.tabs{margin-bottom:8px}.card{padding:12px}}
:root{--ink:#2e5147;--paper:#f6f0df;--line:#cdd4bd;--green:#315f50;--gold:#e8aa62}body{font-family:Arial,sans-serif}header{background:#315b4f;border-color:#e49264}.brand strong{font:800 21px Arial;letter-spacing:1px}.funds b{font-family:monospace}#business{background:#e7e7d6}.world-title h1{font-family:Georgia}.command{background:#eee6cf}#guide{background:#e1e8d3}.ledger{background:#f3eedb}.ledger b{font-family:monospace}.card h3{font:700 20px Arial}.panel-head h2{font:700 22px Arial}.intro-art{font:60px Georgia;color:#cf8052;text-align:center;height:100px;display:flex;justify-content:center;align-items:center}.intro-art svg{width:140px;height:90px}.stats-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.stats-two>div{background:#e9edda;border:1px solid #d0d8bd;padding:10px;border-radius:5px}.stats-two small{display:block;font-size:9px;color:#6a796a;letter-spacing:.5px}.stats-two b{font:21px monospace}.wide-select{width:100%;font-size:16px;padding:10px;margin:6px 0 13px;background:#fffaf0;border:1px solid #b5c4a9;border-radius:5px;color:var(--ink)}.price-form{display:flex;gap:8px;margin-top:7px}.price-form input{height:42px;min-width:0;font-size:16px}.price-form button{flex:none;width:auto;margin:0;white-space:nowrap;font-size:12px;padding:7px 11px}.disclosure summary{cursor:pointer;font-size:12px;padding:12px 0;color:#5e7662}.stock-bar{height:9px}.status-label{font:10px monospace;color:#7a7f65;text-transform:uppercase;letter-spacing:.8px}.queue-strip{display:flex;gap:5px;margin:10px 0}.queue-strip i{width:13px;height:21px;border-radius:6px 6px 2px 2px;background:#d28c69}.negative{color:#ad4f32}.card .primary{background:#315f50;color:#fff9e6;border-color:#315f50;font-weight:bold}.product-art{height:90px;border-radius:6px;display:grid;place-items:center;margin:10px 0;font-size:38px;background:#e7ead5}.empty-note{padding:12px;background:#f0e4c4;border-radius:5px}.reorder-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.reorder-row button{font-size:11px;padding:7px 4px}.supply-card{border-left:4px solid #87a883}.pill{background:#e8dbc1}.stock-note{background:#e7ebd7}@media(max-width:760px){.brand strong{font-size:14px}.brand{max-width:122px}.funds b{font-size:16px}.panel-head h2{font-size:18px}.card h3{font-size:18px}.world-title h1{font-size:24px}.product-art{height:65px}.stats-two b{font-size:19px}}@media(max-height:500px){.brand strong{font-size:16px}.brand small{display:none}.panel-head h2{font-size:16px}.product-art{display:none}.world-title h1{font-size:18px}}
