/* SAF Planner V3 — neutral, system-font workspace. Botanical colors belong to the drawing. */
:root{--paper:#f5f6f3;--ink:#202823;--muted:#5e6b62;--green:#386c49;--line:#dce2da;--g900:#263a2d;--g800:#315840;--g700:#386c49;--g600:#52845f;--g500:#72a078;--g100:#e6efe5;--g50:#f2f7f0;--n900:#202823;--n800:#303b33;--n700:#46544a;--n600:#617066;--n500:#748177;--n400:#9ca8a0;--n300:#cbd5cd;--n200:#e1e6e0;--n100:#edf0ec;--n50:#f8faf7;--blue:#4e8178;--ff:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,"Helvetica Neue",Arial,sans-serif;--shadow-2:0 12px 34px #26382a12}
html body{background:var(--paper);color:var(--ink);font-family:var(--ff);font-size:14px;letter-spacing:-.01em}
html body :is(h1,h2,h3,h4,.login-copy h1,.login-form-wrap h2,.hub-main header h1,.hero h2,.section-tools h2,.card h3,.settings-card h2,dialog h2){font-family:var(--ff);font-weight:650;letter-spacing:-.045em}
html body :is(button,input,select,textarea){font-family:var(--ff)}
html body :is(button,.btn,.primary,.secondary,.btn-head,.btn-ghost){border-radius:11px;box-shadow:none;transition:background .16s,border-color .16s,transform .16s}
html body :is(.primary,.btn-green,button.primary){background:#386c49;color:#fff;border-color:#386c49;box-shadow:none;font-weight:650}
html body :is(.primary,.btn-green,button.primary):hover{background:#2c5b3b}
html body :is(.secondary,.btn-ghost,.btn-head){background:#f8faf7;color:#35483a;border:1px solid #dce4db}
html body :is(.secondary,.btn-ghost,.btn-head):hover{background:#edf4ec}
html body :is(input:not([type=range]),select,textarea){background:#fff;color:#243129;border:1px solid #cdd8ce;border-radius:10px;box-shadow:0 1px 2px #314c3310}
html body :is(input,select,textarea):focus-visible,html body :is(button,a):focus-visible{outline:3px solid #7ca78c!important;outline-offset:2px!important}
html :focus-visible{outline-color:#7ca78c!important}
html body .eyebrow{color:#567861;font-weight:700;letter-spacing:.11em}
html body :is(.hint,.muted,small){color:#607067}
html body .brand{color:#26382c;letter-spacing:-.05em;font-weight:650}
html body .brand b{color:#648a6b;font-weight:500}
/* A animação 3D deixa os controles de produção recolhidos até serem usados. */
.three-world.night-mode::before,.three-world .exp-note{display:none!important}
.growth-video{position:absolute;z-index:4;left:25px;bottom:112px;width:min(315px,calc(100vw - 35px));border:1px solid #ffffffd9;border-radius:14px;background:#f7f9eff0;color:#3f573c;box-shadow:0 6px 30px #18322118;overflow:hidden}
.growth-video summary{padding:13px 16px;cursor:pointer;font-size:12px;font-weight:650;list-style:none}
.growth-video summary::after{content:'⌄';float:right}
.growth-video[open] summary::after{content:'⌃'}
.growth-video-body{padding:0 16px 14px;display:grid;gap:10px;font-size:11px}
.growth-video-body>label{display:flex;justify-content:space-between}
.growth-video input[type=range]{width:100%;accent-color:#66844e}
.growth-video-row,.growth-video-actions{display:flex;gap:8px}
.growth-video-row>*{flex:1;display:grid;gap:4px}
.growth-video select,.growth-video button{width:100%;padding:7px;border:1px solid #d7e1d1;border-radius:8px;background:#fff;color:#344b39}
.growth-video-actions button:last-child{background:#386c49;color:#fff}
.growth-video p{margin:0;color:#66775f;line-height:1.4}
@media(max-width:760px){.growth-video{left:12px;bottom:90px;width:245px}.growth-video summary{padding:9px 12px}.growth-video-body{padding:0 12px 10px}}
html body .brand .saf-logo{color:#4d7c59!important}
/* Welcome and project hub */
html body #login-screen{background:#f5f6f3}
html body .login-landscape{background:radial-gradient(circle at 72% 24%,#f3f1dc 0,#f3f1dc00 31%),linear-gradient(145deg,#e8eee4,#d9e6d7 67%,#ebeee5);color:#263a2d}
html body .login-landscape::after{background-image:linear-gradient(#628a6412 1px,transparent 1px),linear-gradient(90deg,#628a6412 1px,transparent 1px);opacity:.6}
html body .login-copy h1{color:#233b2b;font-size:clamp(42px,4.8vw,72px);font-weight:700}
html body .login-copy>p:last-child{color:#58705d}
html body .login-landscape .eyebrow,html body .login-footer{color:#54765b}
html body .garden-art{opacity:1;filter:saturate(.95)}
html body .garden-art .island{background:#b5d390;box-shadow:-12px 15px #aa9d78;border-color:#eff1d9}
html body .garden-art .tree{background:#3d7950}
html body .garden-art .row{background:#b29e6b66}
html body .login-form-wrap{background:#f5f6f3}
html body .login-form-wrap form{background:#fff;border:1px solid #e0e7df;box-shadow:0 26px 70px #24392c12;border-radius:24px;padding:clamp(28px,4vw,46px)}
html body .login-form-wrap h2{font-size:36px;color:#25352a}
html body .sidebar{background:#f0f3ee;color:#26372a;border-color:#dce3db;width:248px}
html body .sidebar .brand,html body .sidebar .brand b{color:#294b32}
html body .sidebar>.eyebrow{color:#76917b}
html body .sidebar nav button{color:#5b6d5e;border:1px solid transparent;border-radius:12px;font-weight:580}
html body .sidebar nav button:hover{background:#e6eee5;color:#274b34}
html body .sidebar nav button.active{background:#dcebdd;color:#214d32;border-color:#cbdccc}
html body .sidebar nav b{background:#f8faf7;color:#456e4f}
html body .sidebar-note,html body .sidebar-note>span{color:#788b7b}
html body .seed-icon{color:#7aa385}
html body .user-block{border-color:#d8e0d8}
html body .user-block>span{background:#d6e8d9;color:#2b6840}
html body .user-block :is(strong,small,button){color:#2e4535}
html body .hub-main{background:#f5f6f3;margin-left:248px}
html body .hub-main>header{border-color:#dde4dc}
html body .hub-main header h1{font-size:clamp(32px,3vw,44px)}
html body .hero{background:linear-gradient(115deg,#e8f0e5,#f5f7ee);color:#264530;border-color:#d6e2d2;border-radius:22px;box-shadow:0 8px 32px #3148340c}
html body .hero .eyebrow{color:#4f835d}
html body .hero h2{font-size:clamp(31px,3vw,44px);color:#294431}
html body .hero p{color:#536c58}
html body .hero button{color:#356a46;text-decoration:none;font-weight:700}
html body .hero-circle,html body .hero-circle::before{border-color:#9fc2a074}
html body .hero-circle span{color:#6eaa71}
html body .hero-circle i{color:#6e8c72}
html body .section-tools h2{font-size:24px}
html body .card{background:#fff;border:1px solid #dce4dc;border-radius:18px;box-shadow:0 4px 18px #263b2a0a}
html body .card:hover{box-shadow:0 16px 34px #263b2a1b;transform:translateY(-3px)}
html body .card-preview{background-color:#edf2e7;background-image:linear-gradient(#fff7 1px,transparent 1px),linear-gradient(90deg,#fff7 1px,transparent 1px);border-color:#dce5d7}
html body .card h3{font-size:19px}
html body .card-content p,html body .card .metrics{color:#5c6e61}
html body .card .actions .open{color:#316642}
html body .card .actions button{text-decoration:none;font-weight:600}
html body .tags span{background:#f4f8f3;border-color:#dce8db;color:#4b7654;border-radius:7px}
html body .settings-card,html body dialog{background:#fff;color:#26352a;border:1px solid #dbe5dc;border-radius:20px;box-shadow:0 15px 40px #20382616}
html body dialog::backdrop{background:#17261bbb}
html body .access-action{background:#eff5ef;color:#315c3c;border-color:#d2e2d4}
html body .setup-notice{background:#fcf6e8;border-color:#e7d7af}
/* Technical editor: pale chrome lets botanical symbols carry visual emphasis. */
html body>header{background:#f9fbf8!important;color:#283a2d!important;border-bottom:1px solid #d8e2d9!important;box-shadow:0 3px 14px #213d2710!important}
html body>header :is(.brand h1,.brand h1 small,.head-title,.head-title small,.save-status){color:#2d4734!important}
html body>header .brand .saf-logo{color:#477b54!important}
html body>header :is(.btn,.btn-head,.btn-ghost){background:#f4f8f3!important;color:#34513a!important;border-color:#d5e1d5!important}
html body>header :is(.btn-green,.primary){background:#386c49!important;color:#fff!important;border-color:#386c49!important}
html body :is(aside,.side-scroll,.side-tabs,.insight-panel,.timeline,.side-foot){background:#f8faf7!important;color:#26372a}
html body .side-tabs button[aria-selected=true],html body .side-tabs button.active{background:#e4f0e5!important;color:#285f39!important;border-radius:10px 10px 0 0}
html body .side-tabs,html body .timeline,html body .insight-panel{border-color:#dae5da!important}
html body .workspace{background:#e8eee6}
html body .workspace main{background:linear-gradient(135deg,#e9efe7,#dfead9)}
html body .technical .workspace main{background:#ecf0e9}
html body :is(.species-card,.scenario-card,.metric,.callout,.wide-note,.sequence,.explore-card){background:#fff;color:#26372c;border-color:#dbe5d9;border-radius:13px}
html body .species-card svg.botanical-icon{width:72px;height:72px;flex:none;background:#f2f7ef;border-radius:11px;margin:0 6px 0 0;overflow:visible}
html body .species-card strong{font-size:14px;font-weight:680}
html body .species-card small{font-size:12px;line-height:1.4}
html body .species-card small{color:#607366}
html body :is(.catalog-filter button.active,.segmented button.active,.tool.active){background:#386c49;color:#fff}
html body .tool-rail,html body .float,html body .segmented{background:#ffffffed;border-color:#dce6dc;box-shadow:0 7px 22px #2c49300f;border-radius:15px}
html body :is(.exp-controls,.world-controls,.exp-detail,.exp-back,.exp-capsule){background:#f9fcf7f2;color:#304638;border-color:#dce9dd;border-radius:17px;box-shadow:0 10px 28px #29442a19}
html body :is(.world-controls button,.exp-orbit button,.editor-figures button,.saf-preferences button,.saf-preferences select){background:#eff5ee;color:#3b6343;border-color:#d4e1d3}
html body :is(.world-controls button[aria-pressed=true],.exp-orbit button[aria-pressed=true],.editor-figures button[aria-pressed=true]){background:#3b704a;color:white}
html body .world-controls input[type=range],html body .exp-control input[type=range]{accent-color:#4f8a5d}
/* Preserve the existing theme control with the new neutral dark palette. */
html[data-theme=dark]{color-scheme:dark;--paper:#161b18;--ink:#edf3ec;--muted:#acb9ae;--green:#81ad84;--line:#3b493e;--n50:#1c241f;--n100:#263028;--n200:#38483b;--n300:#506252;--n400:#829888;--n500:#afc0b0;--n600:#c0cfc1;--n700:#d2dfd2;--n800:#e3ece2;--n900:#f0f5ef}
html[data-theme=dark] body,html[data-theme=dark] .hub-main,html[data-theme=dark] .login-form-wrap{background:#161b18;color:#ecf3ec}
html[data-theme=dark] .sidebar,html[data-theme=dark] :is(aside,.side-scroll,.side-tabs,.insight-panel,.timeline,.side-foot){background:#202922!important;color:#edf4eb;border-color:#3d4d40!important}
html[data-theme=dark] .sidebar :is(.brand,.brand b,.user-block strong,.user-block small,.user-block button){color:#e4f0e3}
html[data-theme=dark] .sidebar nav button{color:#becdbf}
html[data-theme=dark] .sidebar nav button.active{background:#36513c;color:#edf7ed;border-color:#527258}
html[data-theme=dark] .hero,html[data-theme=dark] .login-landscape{background:linear-gradient(135deg,#263a2b,#1b2c20);color:#edf5e8;border-color:#3b6044}
html[data-theme=dark] .hero :is(h2,p,.eyebrow,button),html[data-theme=dark] .login-copy :is(h1,p){color:#dbeadd}
html[data-theme=dark] :is(.card,.settings-card,dialog,.login-form-wrap form,.species-card,.scenario-card,.metric,.callout,.wide-note,.sequence,.explore-card){background:#242e26;color:#eff5ed;border-color:#405244;box-shadow:none}
html[data-theme=dark] .card-preview{background-color:#374a38}
html[data-theme=dark] body>header{background:#222c25!important;color:#e8f1e6!important;border-color:#405343!important}
html[data-theme=dark] body>header :is(.brand h1,.brand h1 small,.head-title,.head-title small,.save-status){color:#e5f1e3!important}
html[data-theme=dark] body>header :is(.btn,.btn-head,.btn-ghost){background:#304033!important;color:#e2f0e0!important;border-color:#516a54!important}
html[data-theme=dark] body>header :is(.btn-green,.primary){background:#477e52!important}
html[data-theme=dark] .species-card svg.botanical-icon{background:#334436}
html[data-theme=dark] :is(.exp-controls,.world-controls,.exp-detail,.exp-back,.exp-capsule,.tool-rail,.float,.segmented){background:#26372bec;color:#e8f2e5;border-color:#4c684f}
html[data-theme=dark] :is(.world-controls button,.exp-orbit button,.editor-figures button,.saf-preferences button,.saf-preferences select){background:#344b38;color:#e1f0e0;border-color:#547658}
html[data-theme=dark] :is(.world-controls button[aria-pressed=true],.exp-orbit button[aria-pressed=true],.editor-figures button[aria-pressed=true]){background:#588e60;color:#fff}
html[data-theme=dark] body :is(input:not([type=range]):not([type=color]):not([type=checkbox]),select,textarea){background:#1d2820!important;color:#eef6ed!important;border-color:#526b55!important}
html[data-theme=dark] :is(.muted,.hint,.eyebrow,small,.card-content p,.card .metrics,.species-card small,.exp-heading p){color:#b3c7b6}
@media(max-width:760px){html body .sidebar{position:relative;width:100%}html body .hub-main{margin-left:0}html body .login-landscape{min-height:275px}html body .login-copy h1{font-size:36px}html body .species-card svg.botanical-icon{width:60px;height:60px}}
@media(prefers-reduced-motion:reduce){html body :is(button,.btn,.card){transition:none!important}}
.project-shape-fields{margin:20px 0 8px;padding:16px 18px;border:1px solid #d8e4d8;border-radius:14px;background:#f5f9f4}
.project-shape-fields label{margin:0 0 12px}
.project-shape-fields select{display:block;width:100%;margin-top:8px;padding:11px 12px}
.project-shape-fields .hint{margin:4px 0 0}
.area-dimensions.is-circular{grid-template-columns:minmax(0,1fr)}
#in-shape{width:100%;margin:7px 0 12px}
html[data-theme=dark] .project-shape-fields{background:#243228;border-color:#46614a}
#project-dialog{max-height:min(90dvh,780px);overflow:auto}
/* Soil workspace keeps long laboratory records readable inside the planning rail. */
.soil-head{padding:24px 20px 14px}.soil-head small{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#5d8062;font-weight:700}.soil-head h2{font-size:26px;letter-spacing:-.04em;margin:7px 0 8px}.soil-head p{font-size:13px;line-height:1.55;color:#5d6c60;margin:0}.soil-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 15px 18px}.soil-summary>div{border:1px solid #dce6d9;border-radius:13px;background:#fff;padding:10px 8px;display:flex;flex-direction:column;gap:2px;text-align:center}.soil-summary b{font-size:20px;color:#3e7049}.soil-summary span{font-size:10px;color:#627466}.soil-card,.soil-guide{margin:0 14px 15px;padding:16px;border:1px solid #dbe6db;border-radius:16px;background:#fff}.soil-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:14px}.soil-card h3{font-size:17px;letter-spacing:-.02em;margin:0}.soil-card-head span{font-size:10px;color:#6d806f;white-space:nowrap}.soil-card form{display:grid;gap:11px}.soil-card label{font-size:11px;font-weight:650;color:#536457;display:grid;gap:5px;min-width:0}.soil-card input,.soil-card select,.soil-card textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d4e0d4;border-radius:9px;padding:9px 10px;background:#f9fbf8;color:#24392a;font:inherit;font-size:12px}.soil-card textarea{resize:vertical}.soil-card input:focus-visible,.soil-card select:focus-visible,.soil-card textarea:focus-visible{outline:2px solid #4b8a59;outline-offset:1px}.soil-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.soil-footnote{margin:0;color:#69766b;font-size:10px;line-height:1.45}.soil-actions{display:flex;gap:8px;flex-wrap:wrap}.soil-actions button{font-size:11px;min-height:36px}.soil-list{display:grid;gap:8px;margin-top:14px;color:#738075;font-size:11px}.soil-entry{border:1px solid #dce6d9;background:#f8faf6;border-radius:10px;padding:11px}.soil-entry strong{font-size:12px;color:#2b4933}.soil-entry p{font-size:11px;line-height:1.5;margin:5px 0;color:#627266;overflow-wrap:anywhere}.soil-entry-actions{display:flex;gap:8px}.soil-entry-actions button{border:0;background:none;padding:4px 0;color:#386a45;font:inherit;font-weight:650;cursor:pointer}.soil-entry-actions button:hover{text-decoration:underline}.soil-guide{font-size:11px;line-height:1.55;color:#5e6f61}.soil-guide summary{cursor:pointer;font-weight:700;color:#31543a}.soil-guide ul{padding-left:18px}.soil-guide a{display:block;color:#356f45;margin:6px 0;overflow-wrap:anywhere}html[data-theme=dark] .soil-head p,html[data-theme=dark] .soil-entry p,html[data-theme=dark] .soil-footnote{color:#b5c8b8}html[data-theme=dark] :is(.soil-summary>div,.soil-card,.soil-guide){background:#263229;color:#edf5eb;border-color:#465c4a}html[data-theme=dark] .soil-entry{background:#202b22;border-color:#455a49}html[data-theme=dark] .soil-card label,html[data-theme=dark] .soil-entry strong,html[data-theme=dark] .soil-guide summary{color:#dceade}html[data-theme=dark] .soil-card :is(input,select,textarea){background:#1d2820;color:#eef6ed;border-color:#526b55}

/* Keep project actions in the editor header instead of a second fixed row. */
html body:has(>.shell){padding-top:0!important}
html body:has(>.shell)>header{gap:14px;min-height:72px;height:auto;flex-wrap:wrap}
html body #hosted-bar{position:static;inset:auto;width:auto;height:auto;z-index:auto;flex:0 1 auto;min-width:0;gap:7px;padding:0;margin-left:auto;background:transparent;border:0;box-shadow:none}
html body #hosted-bar .btn{min-height:35px;padding:7px 9px;font-size:10px;white-space:nowrap}
html body #hosted-state{flex:0 1 auto;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.server-ready #save-status{display:none}
html body #hosted-loading{inset:0}

/* Five planning tabs must remain inside the left rail at every interface scale. */
html body .side-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:100%;box-sizing:border-box;overflow:hidden;gap:1px;padding:8px 5px 0}
html body .side-tabs button{min-width:0;width:100%;box-sizing:border-box;padding:10px 1px;font-size:10px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:clip}

/* The plan stays diagrammatic. Sun, clouds and Moon belong to the separate landscape view. */
html body .workspace main>.clouds,html body .workspace main>.sunlight,html body .workspace main>.editor-sun,html body .workspace main>.editor-figures,html body #atmosphere{display:none!important}
html body .side-foot{display:none!important}
html body .map-topbar{align-items:flex-start;left:18px;right:18px;gap:12px}
html body .map-topbar .segmented{pointer-events:auto;flex:none}
html body .map-file-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;pointer-events:auto;padding:5px;background:#ffffffed;border:1px solid #dce6dc;border-radius:13px;box-shadow:0 7px 22px #2c49300f}
html body .map-file-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;width:auto;white-space:nowrap;padding:6px 9px;font-size:10px;background:#f5f9f4;color:#385542;border:1px solid #d8e5d8;border-radius:9px}
html body .map-file-actions .btn:hover{background:#e6f0e6;border-color:#a9c5ad}
html body .map-file-actions #btn-print{background:#e8f2e9;color:#2c6540;border-color:#c6ddc9;font-weight:700}
html body #explore-shortcut,html body #open-landscape{background:#386c49!important;color:#fff!important;border:1px solid #386c49!important;font-weight:700;box-shadow:0 8px 20px #214b2b2b}
html body #explore-shortcut:hover,html body #open-landscape:hover{background:#2c5b3b!important;transform:translateY(-1px)}
html[data-theme=dark] body #hosted-bar{background:transparent;color:#e5f1e3}
html[data-theme=dark] body .map-file-actions{background:#26372bec;border-color:#4c684f}
html[data-theme=dark] body .map-file-actions .btn{background:#344b38;color:#e1f0e0;border-color:#547658}
html[data-theme=dark] body .map-file-actions #btn-print{background:#365d40;color:#e9f6e9;border-color:#568260}
html[data-theme=dark] body #explore-shortcut,html[data-theme=dark] body #open-landscape{background:#477e52!important;border-color:#659e6e!important}
@media(max-width:1500px){html body #hosted-bar a{display:none}html body #hosted-state{max-width:115px}html body>header .head-title{display:none}}
@media(max-width:1200px){html body #hosted-state{display:none}html body .map-file-actions .btn{font-size:0;width:36px;min-width:36px;padding:6px}html body .map-file-actions .btn svg,html body .map-file-actions .btn .icon-sm{width:17px;height:17px}}
@media(max-width:760px){html body:has(>.shell)>header{padding:8px 12px;gap:8px}html body #hosted-bar{order:3;width:100%;justify-content:space-between;overflow-x:auto}html body .map-topbar{left:10px;right:10px;gap:5px}html body .map-topbar .segmented button{font-size:9px;padding:8px 5px}html body .map-file-actions{gap:2px;padding:3px}html body .map-file-actions .btn{width:31px;min-width:31px;min-height:31px}html body .side-tabs button{font-size:9px}}

/* Editor focused on the drawing: compact header, contextual panels and open canvas. */
html body:has(>.shell){padding-top:0;height:calc(100dvh / var(--ui-scale,.8));overflow:hidden}
html body:has(>.shell)>header{height:60px;min-height:60px;flex-wrap:nowrap;padding:0 28px;gap:24px;position:relative;z-index:60}
html body:has(>.shell)>header .brand h1{font-size:22px;white-space:nowrap}
html body:has(>.shell)>header .brand h1 small,html body:has(>.shell)>header .head-title small{display:none}
html body:has(>.shell)>header .head-title{display:block;min-width:0;padding-left:22px;max-width:260px}
html body:has(>.shell)>header .head-title strong{font-size:14px;max-width:240px}
html body:has(>.shell)>header .save-status{display:inline-flex;align-items:center;margin:0 auto 0 0;font-size:11px}
html body:has(>.shell)>header .head-actions{margin-left:auto;position:static;gap:10px}
html body:has(>.shell)>header .head-actions #btn-help{display:inline-flex;align-items:center;gap:6px}
html body:has(>.shell)>header #editor-file-toggle{font-size:12px;min-height:38px;padding:7px 13px}
html body:has(>.shell) #editor-file-menu{position:absolute;top:calc(100% + 8px);right:20px;width:min(330px,calc(100vw - 28px));max-height:calc(100vh - 85px);overflow:auto;display:flex;flex-direction:column;gap:11px;padding:16px;background:#fff;border:1px solid #d9e4d8;border-radius:18px;box-shadow:0 18px 48px #213d2730;z-index:90}
html body:has(>.shell) #editor-file-menu[hidden]{display:none!important}
html body:has(>.shell) #editor-file-menu .editor-menu-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px}
html body:has(>.shell) #editor-file-menu .editor-menu-help{display:none}
html body:has(>.shell) #editor-file-menu .editor-menu-nav .btn,html body:has(>.shell) #editor-file-menu>#btn-project,html body:has(>.shell) #editor-file-menu>.btn{width:100%;min-height:36px;text-align:left;justify-content:flex-start;padding:8px 11px;font-size:12px}
html body:has(>.shell) #editor-file-menu>.segmented{box-shadow:none;border:0;background:#f2f6f0;width:100%;justify-content:stretch}
html body:has(>.shell) #editor-file-menu>.segmented button{flex:1;font-size:11px}
html body:has(>.shell) #editor-file-menu .map-file-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0;border:0;background:transparent;box-shadow:none}
html body:has(>.shell) #editor-file-menu .map-file-actions .btn{font-size:11px;width:100%;min-width:0;min-height:38px;white-space:normal;justify-content:flex-start}
html body:has(>.shell) #editor-file-menu .rail-extra{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;border:0;padding:0;margin:0}
html body:has(>.shell) #editor-file-menu .rail-extra button{min-height:36px;border:1px solid #dbe5dc;background:#f6f9f5;border-radius:9px}
html body:has(>.shell) #editor-file-menu #editor-preferences-slot{border-top:1px solid #dfe7df;padding-top:10px}
html body:has(>.shell) #editor-file-menu .saf-preferences{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap}
html body:has(>.shell) #editor-file-menu #hosted-bar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%;height:auto;padding:10px 0 0;margin:0;border:0;border-top:1px solid #dfe7df;background:transparent;box-shadow:none;z-index:auto}
html body:has(>.shell) #editor-file-menu #hosted-bar .btn{display:block;width:100%;min-height:36px;font-size:11px;padding:7px 8px}
html body:has(>.shell) #editor-file-menu #hosted-state{display:block;grid-column:1/-1;max-width:none;order:-1;font-size:11px}
html body:has(>.shell) #editor-file-menu #hosted-bar a{display:block;grid-column:1/-1;font-size:11px}
html body:has(>.shell) #hosted-loading{inset:0}
html body:has(>.shell) .shell{min-height:0;flex:1;position:relative}
html body:has(>.shell) .workspace{width:100%;min-width:0;flex:1}
html body:has(>.shell) aside{position:absolute;left:115px;top:48px;bottom:auto;width:310px;height:min(650px,calc(100% - 145px));min-height:260px;z-index:30;transform:none;border:1px solid #d8e3d7;border-radius:17px;background:#ffffffed!important;box-shadow:0 15px 40px #28412b26;overflow:hidden}
html body:has(>.shell).panel-closed aside{display:none}
html body:has(>.shell) aside .context-head{height:55px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #e3ebe1;font-size:15px}
html body:has(>.shell) aside .context-head button,html body:has(>.shell) #close-insights{border:0;background:transparent;color:#5e7163;font-size:25px;line-height:1;padding:3px 7px;min-height:30px}
html body:has(>.shell) aside .side-tabs,html body:has(>.shell) aside .side-foot{display:none}
html body:has(>.shell) aside .side-scroll{background:#ffffffed!important;min-height:0}
html body:has(>.shell) aside .panel-intro{display:none}
html body:has(>.shell) aside .catalog-grid{padding-top:14px}
html body:has(>.shell) aside .species-card{min-height:70px}
html body:has(>.shell) aside .species-card svg.botanical-icon{width:58px;height:58px}
html body:has(>.shell) .tool-rail{top:48px;left:26px;width:77px;padding:6px;border-radius:18px}
html body:has(>.shell) .tool-rail .tools{gap:3px}
html body:has(>.shell) .tool-rail .tool{width:64px;height:74px;min-height:74px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:11px}
html body:has(>.shell) .tool-rail .tool .l{font-size:10px;line-height:1.2;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
html body:has(>.shell) .tool-rail .tool .l svg{width:22px;height:22px}
html body:has(>.shell) #map-caption,html body:has(>.shell) #statusbar{display:none}
html body:has(>.shell) #zoomctl{left:24px;bottom:20px}
html body:has(>.shell) .timeline{height:78px;padding:11px 24px;gap:18px;box-shadow:0 -6px 20px #263e2810}
html body:has(>.shell) .timeline .timeline-label{width:145px}
html body:has(>.shell) .timeline .timeline-label small{display:none}
html body:has(>.shell) .timeline .time-years{display:none}
html body:has(>.shell) .timeline .time-value{font-size:15px;min-width:70px;padding:7px 10px}
html body:has(>.shell) .timeline .time-value small{font-size:10px}
html body:has(>.shell) .timeline #explore-shortcut{position:static;flex:none;font-size:12px;min-height:46px;padding:10px 16px;margin-left:8px}
html body:has(>.shell) .insight-panel{display:none;position:absolute;right:22px;top:58px;bottom:auto;width:315px;max-height:calc(100% - 140px);overflow:auto;z-index:28;padding:18px;background:#fff!important;border:1px solid #dce6dc;border-radius:17px;box-shadow:0 14px 38px #28412b24}
html body:has(>.shell).inspector-visible:not(.inspector-closed) .insight-panel,html body:has(>.shell).insights-summary .insight-panel{display:block}
html body:has(>.shell) #close-insights{position:absolute;top:10px;right:10px}
html body:has(>.shell).inspector-visible:not(.insights-summary) .insight-panel>:is(.eyebrow,h2,.metric-grid,.insight-section,.explore-card){display:none}
html body:has(>.shell) .insight-panel #inspector{padding-top:12px}
html[data-theme=dark] body:has(>.shell) #editor-file-menu,html[data-theme=dark] body:has(>.shell) aside,html[data-theme=dark] body:has(>.shell) .insight-panel{background:#243128!important;color:#e8f1e7;border-color:#4b614e}
html[data-theme=dark] body:has(>.shell) aside .side-scroll{background:#243128!important}
html[data-theme=dark] body:has(>.shell) #editor-file-menu #hosted-bar{border-color:#4b614e}
@media(max-width:1100px){html body:has(>.shell)>header{padding:0 14px;gap:12px}html body:has(>.shell)>header .head-title{max-width:180px}html body:has(>.shell) aside{left:94px;width:280px}html body:has(>.shell) .tool-rail{left:12px}html body:has(>.shell) .insight-panel{right:12px;width:285px}}
@media(max-width:760px){html body:has(>.shell)>header{height:56px;min-height:56px;padding:0 10px}html body:has(>.shell)>header .head-title,html body:has(>.shell)>header .save-status,html body:has(>.shell)>header #btn-help{display:none}html body:has(>.shell)>header .brand h1{font-size:17px}html body:has(>.shell)>header #editor-file-toggle{font-size:11px;padding:6px 9px}html body:has(>.shell) aside{display:none;left:91px;top:54px;width:calc(100% - 103px);height:calc(100% - 140px);min-height:240px;transform:none}html body:has(>.shell).nav-open:not(.panel-closed) aside{display:flex}html body:has(>.shell) .tool-rail{left:9px;top:54px;width:69px}html body:has(>.shell) .tool-rail .tool{width:55px;height:65px;min-height:65px}html body:has(>.shell) .timeline{height:80px;padding:8px 10px;gap:7px}html body:has(>.shell) .timeline .timeline-label{display:none}html body:has(>.shell) .timeline #explore-shortcut{font-size:10px;min-height:38px;padding:7px}html body:has(>.shell) .timeline #all-years{display:none}html body:has(>.shell) .insight-panel{display:none!important}html body:has(>.shell) #zoomctl{left:12px}}
@media(max-width:760px){html body:has(>.shell)>header .head-actions #btn-help{display:none}html body:has(>.shell) #editor-file-menu .editor-menu-help{display:flex}html body:has(>.shell) .mobile-edit:not([hidden]){display:block}html body:has(>.shell).insights-summary .insight-panel{display:block!important;left:91px;right:10px;top:54px;width:auto;max-height:calc(100% - 145px)}html body:has(>.shell) #mobile-inspector-slot{padding:16px}}

/* Navegação sempre visível; Arquivo reúne somente ações auxiliares. */
html body:has(>.shell)>header .brand #btn-sidebar{display:none}
html body:has(>.shell)>header #editor-back-projects{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid #dae5d8;border-radius:9px;background:#f6f9f4;color:#425b46}
html body:has(>.shell)>header #editor-back-projects .icon{width:19px;height:19px}
html body:has(>.shell)>header .head-title{margin-right:0;padding-left:14px;max-width:175px}
html body:has(>.shell)>header .save-status{margin:0;font-size:10px}
html body:has(>.shell)>header .editor-section-nav{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none}
html body:has(>.shell)>header .editor-section-nav::-webkit-scrollbar{display:none}
html body:has(>.shell)>header .editor-section-nav button{flex:none;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:#637465;font-size:12px;font-weight:600;white-space:nowrap}
html body:has(>.shell)>header .editor-section-nav button:hover,html body:has(>.shell)>header .editor-section-nav button[aria-selected=true]{background:#e7efe5;color:#2f6446}
html body:has(>.shell)>header .head-actions{margin-left:0;flex:none}
html body:has(>.shell) #editor-file-menu{right:118px;width:min(330px,calc(100vw - 135px))}
html body:has(>.shell) #compass{top:14px;right:18px;bottom:auto;left:auto;transform:scale(.82);transform-origin:top right;z-index:20}
html body:has(>.shell) .insight-panel{top:128px;max-height:calc(100% - 210px)}
html body:has(>.shell) .tool-rail .tool .l{font-size:11px;font-weight:600;gap:6px;line-height:1.1}
html body:has(>.shell) .tool-rail .tool[data-tool="infra"] .l{font-size:9.5px;letter-spacing:-0.02em}
html body:has(>.shell) .tool-rail .tool .l svg{width:28px;height:28px;stroke-width:1.7}
@media(max-width:1100px){html body:has(>.shell)>header .head-title,html body:has(>.shell)>header .save-status{display:none}html body:has(>.shell)>header .editor-section-nav{justify-content:flex-start}}
@media(max-width:760px){html body:has(>.shell)>header{gap:6px}html body:has(>.shell)>header .brand h1{font-size:16px}html body:has(>.shell)>header #editor-back-projects{width:29px;height:29px}html body:has(>.shell)>header .editor-section-nav button{padding:8px 9px;font-size:10px}html body:has(>.shell) #compass{top:8px;right:9px;transform:scale(.7)}html body:has(>.shell) .tool-rail .tool .l{font-size:10px}html body:has(>.shell).insights-summary .insight-panel{top:120px;max-height:calc(100% - 210px)}}
html[data-theme=dark] body:has(>.shell)>header #editor-back-projects{background:#304234;border-color:#4b614e;color:#dcebdc}
html[data-theme=dark] body:has(>.shell)>header .editor-section-nav button{color:#c0d0c1}
html[data-theme=dark] body:has(>.shell)>header .editor-section-nav button[aria-selected=true],html[data-theme=dark] body:has(>.shell)>header .editor-section-nav button:hover{background:#35523d;color:#f1f8ed}

/* Modo 3D - Tela cheia limpa (HUD oculto, mantém apenas logo e botão de voltar) */
.expedition.fullscreen-clean .exp-controls,
.expedition.fullscreen-clean .landscape-time,
.expedition.fullscreen-clean .landscape-time-panel,
.expedition.fullscreen-clean .world-controls,
.expedition.fullscreen-clean .landscape-video,
.expedition.fullscreen-clean .growth-control-panel,
.expedition.fullscreen-clean .exp-note,
.expedition.fullscreen-clean .exp-tip,
.expedition.fullscreen-clean .exp-heading,
.expedition.fullscreen-clean .exp-capsule,
.expedition.fullscreen-clean .exp-top a.exp-back,
.expedition.fullscreen-clean .exp-top #capture-landscape,
.expedition.fullscreen-clean #exp-walk-exit,
.expedition.fullscreen-clean #exp-walk-hud {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.expedition.fullscreen-clean .exp-top {
  pointer-events: none;
}
html body .expedition.fullscreen-clean .exp-top #leave-landscape,
html body .expedition.fullscreen-clean .exp-top .exp-brand {
  display: inline-flex !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html body .expedition.fullscreen-clean .exp-detail:not([hidden]) {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  bottom: 26px;
  right: 26px;
  z-index: 10;
}
@media (max-width: 760px) {
  html body .expedition.fullscreen-clean .exp-detail:not([hidden]) {
    bottom: 14px;
    right: 14px;
    width: calc(100% - 28px);
    max-width: 320px;
  }
}

/* Complete Dark Mode Overrides for Editor, 2D Chrome, Modals, and 3D Expedition HUD */
html[data-theme=dark] body .workspace {
  background: #141c17 !important;
}
html[data-theme=dark] body .workspace main,
html[data-theme=dark] body.technical .workspace main {
  background: linear-gradient(135deg, #162019, #121a15) !important;
}
html[data-theme=dark] body:has(>.shell)>header {
  background: #18221b !important;
  color: #e8f1e6 !important;
  border-bottom-color: #2d3e31 !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme=dark] body:has(>.shell)>header .head-title {
  border-left-color: #2f4234 !important;
}
html[data-theme=dark] body:has(>.shell)>header #editor-back-projects {
  background: #233127 !important;
  border-color: #384d3d !important;
  color: #dcebdc !important;
}
html[data-theme=dark] body:has(>.shell)>header #editor-back-projects:hover {
  background: #2d4032 !important;
}
html[data-theme=dark] body:has(>.shell)>header .editor-section-nav button {
  color: #b5c7b7 !important;
}
html[data-theme=dark] body:has(>.shell)>header .editor-section-nav button:hover,
html[data-theme=dark] body:has(>.shell)>header .editor-section-nav button[aria-selected=true] {
  background: #2c4433 !important;
  color: #f1f8ed !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu {
  background: #1c271f !important;
  color: #e8f1e7 !important;
  border-color: #344939 !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu>.segmented {
  background: #151e18 !important;
  border: 1px solid #2c3e30 !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu>.segmented button {
  color: #b5c7b7 !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu>.segmented button.active {
  background: #386c49 !important;
  color: #ffffff !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu .rail-extra button {
  background: #243328 !important;
  border-color: #384e3d !important;
  color: #dceadd !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu .rail-extra button:hover {
  background: #2e4233 !important;
}
html[data-theme=dark] body:has(>.shell) #editor-file-menu #editor-preferences-slot,
html[data-theme=dark] body:has(>.shell) #editor-file-menu #hosted-bar {
  border-top-color: #2e4032 !important;
}
html[data-theme=dark] body:has(>.shell) aside,
html[data-theme=dark] body:has(>.shell) aside .side-scroll,
html[data-theme=dark] body:has(>.shell) .insight-panel {
  background: #1b251ee8 !important;
  color: #e8f1e7 !important;
  border-color: #324637 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.42) !important;
}
html[data-theme=dark] body:has(>.shell) aside .context-head {
  border-bottom-color: #2c3e30 !important;
  color: #eef6ec !important;
}
html[data-theme=dark] body:has(>.shell) aside .context-head button,
html[data-theme=dark] body:has(>.shell) #close-insights {
  color: #a9bdb0 !important;
}
html[data-theme=dark] body:has(>.shell) aside .context-head button:hover,
html[data-theme=dark] body:has(>.shell) #close-insights:hover {
  background: #28382c !important;
  color: #ffffff !important;
}
html[data-theme=dark] body:has(>.shell) .tool-rail {
  background: #1b251ee8 !important;
  border-color: #324637 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38) !important;
}
html[data-theme=dark] body:has(>.shell) .tool-rail .tool {
  color: #c2d4c5 !important;
}
html[data-theme=dark] body:has(>.shell) .tool-rail .tool:hover {
  background: #26362b !important;
  color: #eef6ec !important;
}
html[data-theme=dark] body:has(>.shell) .tool-rail .tool.active {
  background: #386c49 !important;
  color: #ffffff !important;
}
html[data-theme=dark] body:has(>.shell) .timeline {
  background: #18221b !important;
  border-top-color: #2d3e31 !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme=dark] body .timeline .time-value {
  background: #233127 !important;
  border-color: #364b3b !important;
  color: #eef6ec !important;
}
html[data-theme=dark] body #compass-svg circle {
  fill: #1f2b22 !important;
  stroke: #3c5241 !important;
}
html[data-theme=dark] body #compass-svg text {
  fill: #e8f1e7 !important;
}
html[data-theme=dark] body #zoomctl,
html[data-theme=dark] body #compass {
  background: #1b251ee8 !important;
  border-color: #324637 !important;
  color: #e8f1e7 !important;
}
html[data-theme=dark] body #zoomctl button,
html[data-theme=dark] body #compass button {
  color: #d4e4d6 !important;
}
html[data-theme=dark] body #zoomctl button:hover,
html[data-theme=dark] body #compass button:hover {
  background: #28382c !important;
}
html[data-theme=dark] body .sec {
  border-bottom-color: #2a3a2e !important;
}
html[data-theme=dark] body .sec-h,
html[data-theme=dark] body .panel-intro h2,
html[data-theme=dark] body .insight-panel h2,
html[data-theme=dark] body .insight-section h3 {
  color: #eef6ec !important;
}
html[data-theme=dark] body .lbl {
  color: #c7d9ca !important;
}
html[data-theme=dark] body .btn,
html[data-theme=dark] body .btn-ghost,
html[data-theme=dark] body .secondary {
  background: #243328 !important;
  border-color: #384e3d !important;
  color: #e2f0e4 !important;
}
html[data-theme=dark] body .btn:hover,
html[data-theme=dark] body .btn-ghost:hover,
html[data-theme=dark] body .secondary:hover {
  background: #2e4133 !important;
  border-color: #49654f !important;
}
html[data-theme=dark] body :is(.btn-green,.primary,button.primary) {
  background: #386c49 !important;
  border-color: #49855b !important;
  color: #ffffff !important;
}
html[data-theme=dark] body :is(.btn-green,.primary,button.primary):hover {
  background: #427d55 !important;
}
html[data-theme=dark] body #catalog-search,
html[data-theme=dark] body .search-box {
  background: #151f18 !important;
  border-color: #35493a !important;
  color: #eef6ec !important;
}
html[data-theme=dark] body .catalog-filter button,
html[data-theme=dark] body .chip {
  background: #233127 !important;
  border-color: #35493a !important;
  color: #c2d4c5 !important;
}
html[data-theme=dark] body .catalog-filter button.active,
html[data-theme=dark] body .chip.on {
  background: #386c49 !important;
  border-color: #4c895f !important;
  color: #ffffff !important;
}
html[data-theme=dark] body .species-card .add {
  background: #2d4232 !important;
  color: #d6ead9 !important;
}
html[data-theme=dark] body .lrow:hover {
  background: #243328 !important;
}
html[data-theme=dark] body .lrow.active {
  background: #293e2f !important;
  border-color: #4b7556 !important;
}
html[data-theme=dark] body .lname {
  color: #e6f0e7 !important;
}
html[data-theme=dark] body .lname:hover,
html[data-theme=dark] body .lname:focus {
  background: #17211a !important;
  border-color: #3d5442 !important;
}
html[data-theme=dark] body .lbtn {
  color: #9ab09f !important;
}
html[data-theme=dark] body .lbtn:hover {
  background: #2c3e30 !important;
  color: #eef6ec !important;
}
html[data-theme=dark] body .suggest {
  background: #1c271f !important;
  border-color: #35493a !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme=dark] body .suggest-item {
  border-bottom-color: #28382c !important;
  color: #e2ece4 !important;
}
html[data-theme=dark] body .suggest-item:hover,
html[data-theme=dark] body .suggest-item.hi {
  background: #27382b !important;
}
html[data-theme=dark] body .plant-game-card {
  background: #202c23 !important;
  border-color: #35493a !important;
}
html[data-theme=dark] body .pgc-name,
html[data-theme=dark] body .pgc-stat-val {
  color: #eef6ec !important;
}
html[data-theme=dark] body .pgc-role,
html[data-theme=dark] body .pgc-stat-lbl {
  color: #9bb0a0 !important;
}
html[data-theme=dark] body .pgc-frame {
  background: radial-gradient(circle at 50% 35%, #2b3d30, #1a241c) !important;
  border-color: #344939 !important;
}
html[data-theme=dark] body .pgc-stat {
  background: #18221b !important;
  border-color: #2d3e31 !important;
}
html[data-theme=dark] body .stratum-meter .meter-track {
  background: #161f18 !important;
}
html[data-theme=dark] body .insight-note {
  background: #2a2419 !important;
  border-color: #4d4027 !important;
  color: #f0dfb8 !important;
}
html[data-theme=dark] body .insight-note.clean {
  background: #1e2d23 !important;
  border-color: #334d3b !important;
  color: #cbe0cf !important;
}
html[data-theme=dark] body .task-row {
  border-bottom-color: #2a3a2e !important;
  color: #dceadd !important;
}
html[data-theme=dark] body .soil-summary b {
  color: #82c690 !important;
}
html[data-theme=dark] body .soil-summary span,
html[data-theme=dark] body .soil-card-head span,
html[data-theme=dark] body .soil-guide {
  color: #a8bdb0 !important;
}
html[data-theme=dark] body .soil-entry-actions button,
html[data-theme=dark] body .soil-guide a {
  color: #82c690 !important;
}
html[data-theme=dark] body .modal {
  background: #1c271f !important;
  border-color: #344939 !important;
  color: #e8f1e7 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme=dark] body :is(.modal-h,.modal-head) {
  border-bottom-color: #2b3c2f !important;
}
html[data-theme=dark] body :is(.modal-h h2,.modal-head h2,.modal-head h3) {
  color: #eef6ec !important;
}
html[data-theme=dark] body :is(.modal-f,.modal-foot) {
  background: #172019 !important;
  border-top-color: #2b3c2f !important;
}
html[data-theme=dark] body .shape-opt {
  background: #223026 !important;
  border-color: #35493a !important;
  color: #d6e6d8 !important;
}
html[data-theme=dark] body .shape-opt.on {
  background: #2b4432 !important;
  border-color: #548c63 !important;
  color: #ffffff !important;
}
html[data-theme=dark] body .logo-slot {
  background: #161f18 !important;
  border-color: #35493a !important;
  color: #a8bdb0 !important;
}
html[data-theme=dark] body .summary-table th,
html[data-theme=dark] body .summary-table td {
  border-bottom-color: #2b3c2f !important;
  color: #e2ece4 !important;
}
html[data-theme=dark] body .budget-total {
  background: #223126 !important;
  border-color: #35493a !important;
  color: #eef6ec !important;
}
html[data-theme=dark] body .toast {
  background: #1d2920 !important;
  border-color: #384e3d !important;
  color: #eef6ec !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme=dark] body #restore,
html[data-theme=dark] body .infobox {
  background: #1e2d23 !important;
  border-color: #36523e !important;
  color: #d4e8d8 !important;
}
html[data-theme=dark] body #warnbar,
html[data-theme=dark] body .warnbox {
  background: #2d2418 !important;
  border-color: #544328 !important;
  color: #f2dfb6 !important;
}
html[data-theme=dark] body #hosted-loading {
  background: #141c17 !important;
  color: #d8e8da !important;
}
html[data-theme=dark] body #hosted-loading a {
  color: #86c995 !important;
}

/* 3D Expedition / Landscape HUD in Dark Mode */
html[data-theme=dark] body #m-explore :is(.exp-heading,.exp-capsule,.exp-back,.exp-controls,.world-controls,.landscape-time,.landscape-time-panel,.growth-video,.growth-control-panel,.exp-detail) {
  background: #1a241de8 !important;
  color: #e8f1e7 !important;
  border-color: #344939 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme=dark] body #m-explore :is(.exp-heading h2,.exp-detail h3,.world-title label,#exp-clock) {
  color: #eef6ec !important;
}
html[data-theme=dark] body #m-explore :is(.exp-control,.world-status,.world-ticks,.growth-video p,.exp-detail .metrics small) {
  color: #abc0af !important;
}
html[data-theme=dark] body #m-explore :is(.exp-back:hover,.world-controls button:hover,.exp-orbit button:hover,.growth-video button:hover) {
  background: #2a3c2f !important;
  color: #ffffff !important;
}
html[data-theme=dark] body #m-explore :is(.exp-tip,.exp-note) {
  background: #161f19d9 !important;
  color: #d2e3d5 !important;
  border: 1px solid #314536 !important;
}
