@font-face{font-family:FarmSans;src:local('Segoe UI')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:FarmSans,Inter,Arial,sans-serif;color:#263c2d;background:#f8f6ee}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid #d9dfd3;background:#fbfcf7;color:#304c38;border-radius:9px;min-height:42px;padding:9px 14px;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#eaf0e4}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b38d3f;outline-offset:3px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}.skip{position:fixed;left:10px;top:-100px;z-index:100;padding:12px;background:white}.skip:focus{top:10px}.topbar{height:68px;padding:0 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dfe3d5;background:#fbfaf5}.brand{font-size:23px;letter-spacing:-1px;font-weight:750}.brand span{color:#6e8a47}.brand i{font-style:normal;font-size:12px;font-weight:450;letter-spacing:.2px;color:#84907b;margin-left:10px}.top-actions{display:flex;align-items:center;gap:18px;font-size:12px}.top-actions select{border:0;background:none;font-size:12px;padding:8px}.top-actions button{min-height:36px;width:38px;padding:5px;font-size:21px}.top-actions a{color:#6c7d60}#app{display:grid;grid-template-columns:minmax(0,1fr) 320px;height:calc(100dvh - 68px);min-height:470px}.world-shell{position:relative;overflow:hidden;background:#d6dfc5}#world{position:absolute;inset:0}#world canvas{width:100%;height:100%;display:block;outline-offset:-4px}.world-heading{position:absolute;top:30px;left:30px;pointer-events:none;text-shadow:0 1px 14px #e9eed7}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;line-height:1.6;margin:0 0 12px;color:#758565}.world-heading h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(26px,3vw,48px);line-height:1.05;font-weight:500;margin:0;letter-spacing:-1.5px;color:#2c4834}.world-heading>p:last-child{font-size:12px;margin:12px 0 0;color:#5c7257}.resources{position:absolute;top:24px;right:24px;display:flex;gap:0;background:#fcfbf3e8;backdrop-filter:blur(10px);border:1px solid #ffffffb0;border-radius:12px;box-shadow:0 4px 20px #33452709;padding:12px 0}.resources>div{padding:0 17px;border-right:1px solid #dfe5d3;min-width:60px}.resources>div:last-child{border:0}.resources span{display:block;font-size:8px;letter-spacing:1.2px;color:#879176;margin-bottom:5px}.resources strong{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}.camera-tools{position:absolute;right:23px;top:120px;display:flex;flex-direction:column;background:#fafbf3e8;padding:4px;border:1px solid #fff8;border-radius:12px;gap:2px}.camera-tools button{min-height:36px;width:36px;padding:0;border:0;background:transparent;font-size:20px}.camera-tools button:hover{background:#dfe9d7}.world-bottom{position:absolute;bottom:17px;left:24px;right:24px;display:flex;justify-content:space-between;gap:15px;align-items:center;pointer-events:none}.world-bottom p{font-size:10px;color:#4f6947;background:#f8faefbe;border-radius:6px;padding:7px 10px;margin:0}.location{font-size:9px;letter-spacing:1.5px;display:flex;gap:7px;align-items:center;color:#526a41;background:#f8faefbe;padding:7px 10px;border-radius:6px}.live-dot{background:#789452;border-radius:50%;width:5px;height:5px}.destinations{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);display:flex;background:#fcfcf5f2;backdrop-filter:blur(12px);border:1px solid #fff;border-radius:15px;padding:6px;gap:4px;box-shadow:0 10px 30px #30432819}.destinations button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:73px;border:0;background:transparent;padding:9px 14px}.destinations button span{font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:24px}.destinations button b{font-size:9px;white-space:nowrap;font-weight:650}.destinations button.active{background:#e4ecd9;color:#425e30}.destinations button:last-child{border-left:1px solid #e4e9dc;border-radius:0 9px 9px 0}.care-panel{display:flex;flex-direction:column;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:27px 25px 16px;border-left:1px solid #e1e4d9;background:#fbfaf4}.panel-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.panel-top .eyebrow{margin:0}.panel-symbol{font-size:23px;color:#a4b08c}.care-panel h2{font-family:Georgia,serif;letter-spacing:-.6px;font-size:29px;line-height:1.08;font-weight:500;margin:0 0 14px}.care-panel p{font-size:12px;line-height:1.75;color:#7d8974}.care-panel .intro-note{font-size:11px;border-left:2px solid #b9cba1;padding-left:13px;margin:22px 0}.care-panel h3{font-size:10px;letter-spacing:1.1px;text-transform:uppercase;margin:25px 0 13px;color:#72815f}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:17px 0}.actions>button{font-size:11px;min-height:42px;padding:10px 8px}.actions>button.wide{grid-column:1/-1}.primary{background:#425f38!important;border-color:#425f38!important;color:#fff!important}.primary:hover{background:#344d2c!important}.stat-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;padding:11px 0;border-bottom:1px solid #e7eadf;color:#7b8972}.stat-row strong{color:#364f31;font-weight:600;text-align:right}.care-panel select{width:100%;padding:10px;border:1px solid #dde3d3;border-radius:7px;background:#fffdf7;color:#49613f;font-size:12px}.need-meter{height:5px;background:#e7ebdf;border-radius:5px;overflow:hidden;margin-top:8px}.need-meter span{display:block;background:#8da16c;height:100%;border-radius:5px}.stock-row{padding:13px 0;border-bottom:1px solid #e5e9dc;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.stock-row button{font-size:10px;min-height:34px;padding:7px 9px}.clock{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:7px;margin-top:auto;padding-top:26px;border-top:1px solid #e2e7d8}.clock .eyebrow{font-size:8px;letter-spacing:1.1px;display:block;margin:0 0 5px}.clock strong{display:block;font-size:11px;font-weight:550}.clock button{font-size:10px;min-height:35px;padding:7px 9px}.save-note{font-size:9px!important;line-height:1.6!important;color:#98a08b!important;padding-top:8px;margin-bottom:0}.loading{position:absolute;inset:0;z-index:10;display:grid;place-items:center;background:linear-gradient(140deg,#e2e9d5ee,#d4dfc1f5);backdrop-filter:blur(8px)}.loading-card{text-align:center;max-width:360px;padding:30px}.leaf-mark{display:block;color:#718958;font-size:55px;margin-bottom:20px}.loading-card h2{font-family:Georgia,serif;font-weight:400;font-size:30px;line-height:1.2;margin:15px 0}.loading-card>p:not(.eyebrow){font-size:12px;color:#738365;line-height:1.6}.loading progress{width:220px;height:5px;accent-color:#69834f;margin-top:16px}#toast{position:absolute;bottom:154px;left:50%;transform:translateX(-50%);max-width:min(500px,90%);background:#fcfcf5f5;border:1px solid #dce4d2;color:#42613b;padding:12px 20px;border-radius:9px;font-size:12px;line-height:1.5;box-shadow:0 5px 25px #20351616;z-index:15;pointer-events:none;opacity:0;transition:opacity .2s}#toast.visible{opacity:1}dialog{width:min(650px,calc(100vw - 28px));padding:26px;border:1px solid #e5e9df;border-radius:16px;background:#fbfaf4;color:#304b36;max-height:85dvh;overflow:auto;box-shadow:0 30px 100px #17261133}dialog::backdrop{background:#263a3044;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;gap:15px;margin-bottom:14px}.dialog-heading h2{font-family:Georgia,serif;font-weight:400;font-size:29px;letter-spacing:-.6px;margin:0}.dialog-heading .eyebrow{margin-bottom:8px}.dialog-heading button{border:0;background:none;font-size:24px;padding:0;min-width:36px;align-self:flex-start}dialog>p{font-size:12px;color:#7c8872;line-height:1.7}#build-catalog{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.catalog-card{text-align:left;display:block;padding:17px;min-height:95px}.catalog-card strong{display:block;font-size:13px;margin-bottom:8px}.catalog-card small{display:block;color:#8b967e;font-size:10px;line-height:1.5;font-weight:400}.placement-panel{position:fixed;left:24px;bottom:30px;z-index:30;background:#fcfbf5;padding:22px;width:min(355px,calc(100vw - 28px));border:1px solid #dbe2d3;border-radius:13px;box-shadow:0 12px 50px #283d2426}.placement-panel h2{font-family:Georgia,serif;font-weight:400;font-size:24px;margin:0 0 10px}.placement-panel>p:not(.eyebrow){font-size:11px;line-height:1.6;color:#78896e}.coordinate-inputs{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:9px}.coordinate-inputs label{font-size:10px;color:#7e8a74}.coordinate-inputs input,.coordinate-inputs select{width:100%;min-width:0;padding:10px 8px;margin-top:6px;border:1px solid #dce3d4;border-radius:6px;background:#fffdf8;color:#405a35}.placement-actions{display:flex;gap:8px}.placement-actions button{flex:1;font-size:11px}textarea{width:100%;resize:vertical;padding:12px;border:1px solid #dce3d4;border-radius:7px;background:#fffdf8;color:#405a35;font-family:monospace;font-size:11px;margin:10px 0}.data-actions{display:flex;flex-wrap:wrap;gap:8px}.data-actions button{font-size:11px}#data-dialog label{font-size:11px}#data-status{min-height:20px}#care-content{padding-bottom:24px}.caret-link{display:block;text-align:center;font-size:10px;color:#7e9071;margin:13px 0}.notice{padding:12px;background:#eef1e6;border-radius:8px;font-size:11px!important}.danger{color:#9c553b!important}.care-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px}.care-subhead button{min-height:30px;padding:5px 9px;font-size:10px}.ready{color:#8b9a54}.plot-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:14px 0}.plot-grid button{min-width:0;min-height:32px;padding:4px;font-size:9px;border-radius:5px}.plot-grid button.current{background:#dee8cf;border-color:#829b65}.plot-grid button.growing{border-bottom:3px solid #9da877}.plot-grid button.harvest-ready{background:#e5e9b9}.keyboard-help{font-size:9px!important}.feature-list{list-style:none;padding:0;margin:22px 0}.feature-list li{padding:10px 0;border-bottom:1px solid #e7ebdf;font-size:11px;color:#7d8c70}.feature-list li span{color:#8da475;margin-right:10px}#import-data.confirming{background:#8a563b!important}
@media(min-width:1600px){#app{grid-template-columns:minmax(0,1fr) 355px}.care-panel{padding:34px 30px}.world-heading{left:40px;top:38px}.resources{right:32px;top:32px}}
@media(max-width:1100px){.world-heading{top:22px;left:22px}.world-heading h1{font-size:31px}.resources{top:auto;bottom:140px;left:20px;right:auto;padding:10px 0}.resources>div{padding:0 12px}.camera-tools{top:22px;right:17px}.world-heading>p:last-child{max-width:200px}.location{display:none}#app{grid-template-columns:minmax(0,1fr) 285px}.care-panel{padding:24px 20px}.destinations button{min-width:61px;padding:8px 11px}}
@media(max-width:760px){.topbar{height:57px;padding:0 16px}.brand{font-size:20px}.brand i{display:none}.top-actions{gap:10px;font-size:10px}.top-actions button{width:34px}.top-actions select{font-size:11px}#app{height:auto;min-height:calc(100dvh - 57px);display:flex;flex-direction:column}.world-shell{height:66dvh;min-height:430px;flex:none}.world-heading{top:20px;left:19px}.world-heading .eyebrow{font-size:8px;letter-spacing:1.1px;max-width:190px;margin-bottom:10px}.world-heading h1{font-size:29px}.world-heading>p:last-child{font-size:10px}.camera-tools{top:17px;right:13px}.camera-tools button{min-height:34px;width:34px}.resources{bottom:139px;left:16px;padding:9px 0;border-radius:9px}.resources>div{padding:0 12px;min-width:51px}.resources span{font-size:7px;letter-spacing:.8px}.resources strong{font-size:12px}.destinations{bottom:53px;max-width:calc(100% - 24px);gap:0;padding:5px}.destinations button{min-width:56px;padding:7px 10px;gap:4px}.destinations button span{font-size:21px}.destinations button b{font-size:8px}.world-bottom{bottom:12px;left:16px;right:16px}.world-bottom p{font-size:8px;padding:6px 8px}.care-panel{padding:23px;border-left:0;border-top:1px solid #dfe6d4;overflow:visible}.panel-top{margin-bottom:20px}.care-panel h2{font-size:28px}.clock{margin-top:15px}.care-panel .actions{grid-template-columns:1fr 1fr}.care-panel button{min-height:44px}.plot-grid button{min-height:37px}.placement-panel{left:14px;bottom:14px;padding:18px}.care-panel .save-note{font-size:10px!important}.clock strong{font-size:12px}.clock button{font-size:11px}.top-actions a{max-width:92px;text-align:right}.world-shell:has(+.care-panel:focus){outline:0}}
@media(max-height:600px) and (min-width:761px){#app{min-height:420px}.world-heading h1{font-size:28px}.resources{bottom:130px}.world-bottom{bottom:10px}.destinations{bottom:45px}.camera-tools button{min-height:30px;width:32px}.care-panel{padding:20px}.panel-top{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.world-heading.compact{background:#fcfbf1dc;backdrop-filter:blur(8px);border:1px solid #fff8;border-radius:10px;padding:12px 16px;max-width:330px;text-shadow:none}.world-heading.compact .eyebrow{font-size:8px;margin-bottom:5px}.world-heading.compact h1{font-size:22px;letter-spacing:-.5px;line-height:1.2}.world-heading.compact>p:last-child{display:none}.care-panel{overflow:hidden}#care-content{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;padding-right:4px}.panel-top,.clock,.save-note{flex-shrink:0}.clock{margin-top:0}@media(max-width:760px){.care-panel{overflow:visible}#care-content{overflow:visible;min-height:auto;flex:none}.world-heading.compact{max-width:230px;padding:10px 12px}.world-heading.compact h1{font-size:19px}.world-heading.compact .eyebrow{font-size:7px}}
.top-actions .quality select{border:1px solid #dce3d3;border-radius:7px;max-width:95px}.destinations button{min-width:55px;padding:8px 11px}.destinations button:last-child{border:0;border-radius:9px}.floating-build{position:absolute;right:24px;bottom:143px;display:flex;align-items:center;gap:7px;background:#f9fbf0ed;font-size:11px;box-shadow:0 4px 20px #33452715}.floating-build span{font-size:22px}.area-list{display:grid;gap:8px;margin:15px 0}.area-card{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:12px}.area-card strong{display:block;font-size:12px}.area-card small{display:block;font-size:10px;color:#859178;font-weight:400;margin-top:5px}.area-card>span{font-size:17px;color:#93a277}.business-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:15px 0}.business-summary div{padding:11px 7px;background:#eef1e5;border-radius:8px;min-width:0}.business-summary span{display:block;font-size:8px;color:#7b896e;margin-bottom:7px}.business-summary strong{font-size:13px;word-break:break-word}.order-card{border:1px solid #dce4d3;border-radius:10px;padding:13px;margin:9px 0}.order-card h4{font-size:12px;margin:0 0 9px}.order-card p{font-size:10px;margin:5px 0}.order-card button{font-size:10px;width:100%;margin-top:7px}.need-label{display:flex;justify-content:space-between;font-size:11px;color:#728267;margin-top:14px}.need-label strong{color:#405b35}.need-meter{height:6px;border-radius:5px;background:#e5eadc;margin-top:7px;overflow:hidden}.need-meter>span{height:100%;display:block;background:#8a9e69;max-width:100%}.need-meter.low>span{background:#bd9763}.herd-list{display:grid;gap:7px;margin:13px 0}.animal-row{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid #e3e8db;padding:8px 0;font-size:11px}.animal-row small{display:block;color:#89957c;font-size:9px;margin-top:4px}.animal-row button{font-size:9px;min-height:33px;padding:6px 8px}.ledger{font-size:10px;list-style:none;padding:0}.ledger li{display:flex;justify-content:space-between;gap:9px;padding:9px 0;border-bottom:1px solid #e6eadf}.ledger .expense{color:#ac7653}.ledger .income{color:#66874b}.clock{grid-template-columns:1fr auto auto}.clock #advance-day{grid-column:2/4;min-height:27px;padding:4px 8px;font-size:9px}.clock>div{grid-row:1/3}.farm-tutorial{padding:13px;background:#eaf0df;border-radius:10px;border-left:3px solid #99ae7c}.farm-tutorial strong{font-size:11px}.farm-tutorial p{margin:5px 0 0;font-size:11px}.world-heading{max-width:245px}.world-heading h1{font-size:clamp(25px,2.6vw,40px)}.resources>div{padding:0 13px}.panel-top{margin-bottom:22px}#app{grid-template-columns:minmax(0,1fr) 342px}.resource-error{padding:12px;background:#f4e7db;border-radius:8px}.data-actions button{flex:1 1 190px}.read-only{background:#f4e8d9;padding:12px;border-radius:8px}.facility-select{margin-bottom:17px}.unit{font-size:10px;font-weight:400;color:#849178}
@media(min-width:1600px){#app{grid-template-columns:minmax(0,1fr) 370px}}
@media(max-width:1100px){#app{grid-template-columns:minmax(0,1fr) 305px}.destinations{gap:0;padding:5px}.destinations button{min-width:49px;padding:8px 9px}.floating-build{right:20px;bottom:140px}.world-heading{max-width:220px}.resources>div{padding:0 10px}.world-heading h1{font-size:29px}}
@media(max-width:760px){#app{display:flex;grid-template-columns:none}.world-shell{min-height:455px;height:66dvh}.destinations{max-width:calc(100% - 20px);width:max-content;gap:0;padding:5px;bottom:53px}.destinations button{min-width:43px;padding:7px 6px}.destinations button b{font-size:7px}.destinations button span{font-size:19px}.resources{bottom:136px;left:14px}.resources>div{padding:0 9px;min-width:46px}.floating-build{right:14px;bottom:197px;font-size:10px;padding:6px 10px;min-height:38px}.top-actions{gap:5px}.top-actions .quality select{font-size:10px;max-width:78px;padding:6px}.world-heading{max-width:215px}.world-heading h1{font-size:28px}.world-heading>p:last-child{max-width:175px}.world-heading.compact{max-width:235px}.care-panel{padding:23px}.clock>div{grid-row:1/3}.area-card{min-height:60px}.data-actions{gap:8px}}
@media(max-width:355px){.destinations button{min-width:38px;padding:7px 4px}.brand{font-size:18px}.resources>div{padding:0 8px}.world-heading h1{font-size:26px}.top-actions .quality select{max-width:66px}}
.recovery-page{max-width:780px;margin:45px auto;padding:25px}.recovery-page h1{font-family:Georgia,serif;font-weight:400;font-size:38px}.recovery-page>.eyebrow{margin-top:35px}.recovery-page p{font-size:13px;line-height:1.7;color:#76866b}.recovery-page label{font-size:12px}.recovery-page #recovery-summary{padding:15px;background:#e8efdd;border-radius:9px;margin:20px 0;font-size:13px}.recovery-link{display:block;padding:13px;font-size:12px;text-decoration:underline}@media(max-width:760px){.recovery-page{margin:15px auto;padding:20px}.recovery-page h1{font-size:30px}}
.pan-tools{position:absolute;right:75px;top:170px;display:grid;grid-template-columns:repeat(3,32px);grid-template-rows:repeat(3,32px);padding:4px;gap:2px;background:#fcfcf2ed;border:1px solid #fff;border-radius:10px}.pan-tools button{min-height:32px;padding:3px;border:0;background:transparent}.pan-tools [data-pan=up]{grid-column:2}.pan-tools [data-pan=left]{grid-row:2;grid-column:1}.pan-tools [data-pan=right]{grid-row:2;grid-column:3}.pan-tools [data-pan=down]{grid-row:3;grid-column:2}@media(max-width:1100px){.pan-tools{top:95px;right:69px}}@media(max-width:760px){.pan-tools{top:90px;right:62px}}

@media(min-width:1101px){.world-heading{max-width:350px}.world-heading h1{font-size:36px}}

/* Keep the 3D viewport clear. Every persistent control lives below it. */
#app {
 height:auto;
 min-height:calc(100dvh - 68px);
 align-items:start;
}
.world-shell {
 display:flex;
 flex-direction:column;
 min-width:0;
 min-height:calc(100dvh - 68px);
 overflow:visible;
 background:#f3f5ec;
}
.world-heading,.world-heading.compact {
 position:static;
 flex:none;
 max-width:none;
 padding:16px 24px 14px;
 border:0;
 border-radius:0;
 background:#f8f8f0;
 backdrop-filter:none;
 text-shadow:none;
}
.world-heading .eyebrow,.world-heading.compact .eyebrow {
 max-width:none;
 margin:0 0 5px;
 font-size:8px;
 letter-spacing:1.3px;
}
.world-heading h1,.world-heading.compact h1 {
 margin:0;
 font-size:25px;
 line-height:1.15;
 letter-spacing:-.6px;
}
.world-heading>p:last-child {
 max-width:none;
 margin:6px 0 0;
 font-size:11px;
}
.world-viewport {
 position:relative;
 flex:1 0 320px;
 min-height:320px;
 overflow:hidden;
 background:#d6dfc5;
 border-block:1px solid #dce3d3;
}
.farm-controls {
 display:grid;
 gap:12px;
 flex:none;
 min-width:0;
 padding:16px 24px 12px;
 background:#fbfaf4;
}
.resources {
 position:static;
 inset:auto;
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 width:100%;
 padding:10px 0;
 border:1px solid #dfe5d7;
 border-radius:10px;
 background:#f1f4e9;
 backdrop-filter:none;
 box-shadow:none;
}
.resources>div {min-width:0;padding:0 14px;}
.resources span {font-size:8px;letter-spacing:.9px;}
.resources strong {font-size:14px;overflow-wrap:anywhere;}
.destinations {
 position:static;
 inset:auto;
 transform:none;
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 gap:4px;
 width:100%;
 max-width:none;
 padding:4px;
 border:1px solid #dfe5d7;
 border-radius:12px;
 background:#f7f8f1;
 backdrop-filter:none;
 box-shadow:none;
}
.destinations button {
 min-width:0;
 min-height:50px;
 padding:7px 4px;
 gap:4px;
 border-radius:8px;
}
.destinations button span {font-size:21px;line-height:22px;}
.destinations button b {font-size:10px;}
.world-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;}
.camera-tools {
 position:static;
 inset:auto;
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 gap:4px;
 flex:1 1 320px;
 padding:4px;
 border:1px solid #dfe5d7;
 border-radius:10px;
 background:#f4f6ed;
}
.camera-tools button {width:auto;min-width:0;min-height:44px;padding:5px;font-size:21px;}
.floating-build {
 position:static;
 inset:auto;
 justify-content:center;
 flex:0 1 auto;
 min-height:52px;
 padding:10px 16px;
 background:#e6eddb;
 border-color:#cad7ba;
 box-shadow:none;
 font-size:12px;
}
.floating-build span {font-size:23px;}
.pan-tools {
 position:static;
 inset:auto;
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 grid-template-rows:none;
 gap:6px;
 padding:5px;
 border:1px solid #dfe5d7;
 background:#f1f4e9;
}
.pan-tools [data-pan] {grid-column:auto;grid-row:auto;min-height:44px;}
.world-bottom {
 position:static;
 inset:auto;
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:8px 14px;
 pointer-events:auto;
}
.world-bottom p {flex:1 1 230px;padding:0;font-size:10px;line-height:1.5;background:none;}
.location {display:flex;margin-left:auto;padding:0;background:none;font-size:8px;letter-spacing:.9px;}
.farm-controls #toast {
 position:static;
 inset:auto;
 transform:none;
 max-width:none;
 min-height:18px;
 padding:0;
 border:0;
 border-radius:0;
 background:none;
 box-shadow:none;
 font-size:11px;
}
.placement-panel {
 position:static;
 inset:auto;
 width:100%;
 padding:16px;
 box-shadow:none;
 background:#f0f4e7;
}
.care-panel {position:sticky;top:0;height:calc(100dvh - 68px);min-height:560px;}
@media(max-width:1000px) {
 #app {display:flex;flex-direction:column;min-height:calc(100dvh - 68px);}
 .world-shell {width:100%;min-height:0;}
 .world-viewport {flex:none;height:clamp(260px,46dvh,560px);min-height:260px;}
 .care-panel {position:static;width:100%;height:auto;min-height:0;overflow:visible;border-left:0;border-top:1px solid #dfe6d4;}
 #care-content {overflow:visible;min-height:auto;flex:none;}
 .clock {margin-top:15px;}
}
@media(max-width:760px) {
 #app {min-height:calc(100dvh - 57px);}
 .world-shell {height:auto;min-height:0;}
 .world-heading,.world-heading.compact {padding:13px 16px 12px;max-width:none;}
 .world-heading h1,.world-heading.compact h1 {font-size:22px;}
 .world-heading .eyebrow,.world-heading.compact .eyebrow {font-size:7px;}
 .world-heading>p:last-child {font-size:10px;}
 .world-viewport {height:clamp(260px,42dvh,500px);}
 .farm-controls {padding:12px 14px 10px;gap:10px;}
 .resources>div {padding:0 10px;}
 .resources strong {font-size:13px;}
 .resources span {font-size:7px;}
 .destinations button b {font-size:9px;}
 .floating-build {flex:1 0 100%;min-height:44px;}
 .world-actions {gap:8px;}
 .world-bottom p {font-size:9px;}
}
@media(max-width:480px) {
 .destinations {grid-template-columns:repeat(4,minmax(0,1fr));}
 .destinations button {flex-direction:row;gap:6px;min-height:44px;padding:8px 4px;}
 .destinations button span {font-size:19px;line-height:20px;}
 .camera-tools {gap:2px;padding:3px;}
 .resources>div {padding:0 8px;}
 .resources strong {font-size:12px;}
 .location {margin-left:0;}
}

/* A single disclosure bar leaves the freed space to the farm viewport. */
.farm-controls {padding:8px 16px;gap:6px;}
.toolbar-disclosure {min-width:0;border:1px solid #dfe5d7;border-radius:11px;background:#f7f8f0;}
.toolbar-summary {display:flex;align-items:center;gap:14px;min-height:50px;padding:7px 12px;cursor:pointer;list-style:none;touch-action:manipulation;}
.toolbar-summary::-webkit-details-marker {display:none;}
.toolbar-summary::marker {content:'';}
.toolbar-summary:focus-visible {outline:3px solid #b38d3f;outline-offset:3px;border-radius:10px;}
#toolbar-title {font-size:12px;font-weight:650;}
.toolbar-preview {display:flex;align-items:center;justify-content:flex-end;gap:22px;flex:1;min-width:0;}
.toolbar-preview>span {display:grid;gap:2px;min-width:0;}
.toolbar-preview small {font-size:7px;letter-spacing:.8px;color:#7c8c70;}
.toolbar-preview strong {font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.toolbar-toggle {display:flex;align-items:center;gap:7px;font-size:11px;font-weight:650;color:#49613a;white-space:nowrap;}
.toolbar-chevron {font-size:19px;line-height:1;transition:transform .15s;}
.toolbar-disclosure[open]>.toolbar-summary {border-bottom:1px solid #e0e6d6;}
.toolbar-disclosure:not([open]) .toolbar-collapse-label,.toolbar-disclosure[open] .toolbar-expand-label {display:none;}
.toolbar-disclosure[open] .toolbar-chevron {transform:rotate(180deg);}
.toolbar-content {display:grid;gap:8px;min-width:0;padding:10px;}
.toolbar-disclosure:not([open])>.toolbar-content {display:none;}
.toolbar-content .resources {padding:7px 0;}
.toolbar-content .resources strong {font-size:12px;}
.toolbar-content .resources span {margin-bottom:3px;}
.toolbar-content .destinations {grid-template-columns:repeat(7,minmax(44px,1fr));gap:2px;padding:3px;overflow-x:auto;}
.toolbar-content .destinations button {min-height:44px;padding:5px 2px;gap:2px;}
.toolbar-content .destinations button span {font-size:18px;line-height:18px;}
.toolbar-content .destinations button b {font-size:9px;}
.toolbar-content .camera-tools {gap:2px;padding:2px;}
.camera-reset,.camera-undo,.camera-redo {display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 1 auto;min-height:44px;padding:7px 10px;font-size:12px;white-space:nowrap;}
.camera-reset>span[aria-hidden],.camera-undo>span[aria-hidden],.camera-redo>span[aria-hidden] {font-size:20px;line-height:1;}
.toolbar-content .floating-build {min-height:44px;padding:7px 12px;}
.toolbar-content .world-actions {gap:8px;}
.toolbar-content .world-bottom {gap:5px 10px;}
.toolbar-content .world-bottom p {font-size:9px;}
.farm-controls #toast {min-height:0;}
.farm-controls #toast:not(.visible) {height:0;overflow:hidden;}
@media(max-width:1000px) {
 .world-shell {min-height:calc(100dvh - 68px);}
 .world-viewport {flex:1 0 clamp(260px,46dvh,560px);height:auto;}
}
@media(max-width:760px) {
 .world-shell {min-height:calc(100dvh - 57px);}
 .world-viewport {flex-basis:clamp(260px,42dvh,500px);height:auto;}
 .farm-controls {padding:7px 10px;}
 .toolbar-summary {gap:10px;padding:7px 10px;}
 .toolbar-preview {gap:14px;}
 #toolbar-title {font-size:11px;}
 .toolbar-content {padding:8px;gap:7px;}
 .toolbar-content .destinations button {flex-direction:column;}
 .toolbar-content .camera-tools {flex:1 1 100%;}
 .toolbar-content .camera-reset,.toolbar-content .camera-undo,.toolbar-content .camera-redo,.toolbar-content .floating-build {flex:1 1 0;min-width:0;flex-direction:column;gap:2px;padding:5px 3px;font-size:10px;}
 .toolbar-content .floating-build span {font-size:20px;line-height:20px;}
}
@media(max-width:355px) {
 .toolbar-content .camera-reset,.toolbar-content .camera-undo,.toolbar-content .camera-redo,.toolbar-content .floating-build {font-size:9px;padding-inline:2px;}
 .toolbar-summary {gap:8px;padding-inline:8px;}
 .toolbar-preview {gap:10px;}
 .toolbar-preview strong {font-size:11px;}
 .toolbar-toggle {font-size:10px;gap:4px;}
}

.gesture-settings {
 display:grid;
 gap:8px;
 padding:12px 14px 2px;
 background:#eef2e6;
 border-radius:9px;
}
.gesture-settings-heading {
 display:flex;
 flex-wrap:wrap;
 align-items:baseline;
 justify-content:space-between;
 gap:4px 12px;
}
.gesture-settings h3 {font-size:13px;margin:0;}
.gesture-settings p {font-size:11px;line-height:1.5;margin:0;}
.gesture-settings-heading p {
 flex:0 0 min(100%,12em);
 color:#304b36;
 font-weight:600;
 text-align:end;
}
#gesture-active-source {display:block;color:#536751;font-weight:400;}
.gesture-reset-region {position:relative;}
.gesture-reset-toggle {
 position:absolute;
 inset:0;
 width:100%;
 min-height:0;
 padding:0;
 border:0;
 background:transparent;
 transition:none;
}
.gesture-reset-toggle:hover {background:transparent;}
.gesture-reset-toggle:active {transform:none;}
.gesture-reset-feedback {display:block;}
.gesture-reset-feedback:is([data-confirmation="entering"],[data-confirmation="finished"]) {opacity:0;}
.gesture-reset-help-slot {display:grid;}
.gesture-reset-help-slot > span {grid-area:1 / 1;min-width:0;}
.gesture-reset-help-slot > [aria-hidden="true"] {visibility:hidden;}
.gesture-reset-countdown {
 display:flex;
 align-items:center;
 gap:6px;
 inline-size:min(100%,16rem);
 block-size:10px;
 visibility:hidden;
}
.gesture-reset-progress-track {
 flex:1;
 min-inline-size:0;
 block-size:2px;
 border-radius:1px;
 background:#bfceb4;
 overflow:hidden;
}
.gesture-reset-progress {
 display:block;
 block-size:100%;
 border-radius:inherit;
 background:#6c8559;
 transform-origin:left center;
}
.gesture-reset-seconds {
 flex:0 0 1em;
 color:#425c3b;
 font-size:10px;
 font-weight:600;
 line-height:1;
 font-variant-numeric:tabular-nums;
 text-align:center;
}
.gesture-reset-feedback[data-confirmation] .gesture-reset-countdown {visibility:visible;}
.gesture-reset-pause-notes {
 display:grid;
 color:#425c3b;
 font-size:10px;
 font-weight:600;
 line-height:12px;
}
.gesture-reset-pause-notes > span {
 grid-area:1 / 1;
 visibility:hidden;
 opacity:0;
 transition:opacity 160ms ease-out,visibility 0s linear 160ms;
}
.gesture-reset-pause-notes > span::before {
 content:"";
 display:inline-block;
 box-sizing:border-box;
 inline-size:7px;
 block-size:8px;
 margin-inline-end:5px;
 border-inline:2px solid currentColor;
 vertical-align:-1px;
}
.gesture-reset-pause-notes > .gesture-reset-resumed-note,
.gesture-reset-pause-notes > .gesture-reset-completed-note {transition:none;}
.gesture-reset-pause-notes > .gesture-reset-resumed-note::before {
 border-block:4px solid transparent;
 border-inline:0;
 border-inline-start:7px solid currentColor;
}
.gesture-reset-pause-notes > .gesture-reset-completed-note::before {
 inline-size:5px;
 margin-inline-start:1px;
 margin-inline-end:6px;
 border:0;
 border-inline-end:2px solid currentColor;
 border-block-end:2px solid currentColor;
 transform:rotate(45deg);
}
.gesture-reset-feedback[data-resumed] .gesture-reset-resumed-note {
 animation:gesture-reset-note 960ms ease-out 160ms;
}
.gesture-reset-feedback[data-completed="visible"] .gesture-reset-completed-note {
 animation:gesture-reset-note 960ms ease-out;
}
.gesture-reset-feedback[data-completed="outgoing"] .gesture-reset-completed-note {
 visibility:visible;
 opacity:1;
}
@keyframes gesture-reset-note {
 0% {visibility:visible;opacity:0;}
 16.667%,83.333% {visibility:visible;opacity:1;}
 100% {visibility:hidden;opacity:0;}
}
.gesture-reset-feedback:not([data-confirmation="visible"]) .gesture-reset-pause-notes > span {transition:none;}
.gesture-reset-paused-note {display:none;}
.gesture-reset-feedback[data-hover-paused] .gesture-reset-hover-note,
.gesture-reset-region:has(.gesture-reset-toggle[aria-pressed="true"]:not([hidden])) .gesture-reset-paused-note {
 visibility:visible;
 opacity:1;
 transition-delay:0s;
}
.gesture-settings + #data-help {margin-block-start:0;}
@media (max-width:760px),(any-pointer:coarse) {
 .gesture-reset-paused-note {display:block;}
}
@media (max-width:760px) {
 .gesture-reset-hover-note {display:none;}
}
/* Keep one caption legible when the pause method changes on a hybrid device. */
@media (min-width:761px) and (any-pointer:coarse) {
 .gesture-reset-feedback[data-hover-paused] .gesture-reset-paused-note,
 .gesture-reset-region:has(.gesture-reset-toggle[aria-pressed="true"]:not([hidden])) .gesture-reset-hover-note {transition:none;}
}
@media (prefers-reduced-motion:reduce) {
 .gesture-reset-pause-notes > span {transition:none;}
 .gesture-reset-feedback[data-resumed] .gesture-reset-resumed-note,
 .gesture-reset-feedback[data-completed="visible"] .gesture-reset-completed-note {
  animation:gesture-reset-note-reduced 800ms step-end;
 }
 @keyframes gesture-reset-note-reduced {
  0% {visibility:visible;opacity:1;}
  100% {visibility:hidden;opacity:0;}
 }
}
.gesture-settings-actions {display:flex;flex-wrap:wrap;gap:8px;}
.gesture-settings-actions select,.gesture-settings-actions button {font-size:12px;min-height:44px;}
.gesture-settings-actions select {
 flex:1 1 92px;
 max-width:100%;
 padding:7px 10px;
 color:#304b36;
 background:#fbfcf7;
 border:1px solid #cdd7c6;
 border-radius:9px;
}
