#navStatus,.app-top .top-sync{display:none!important}
/* mypanel reference shell and first completed section: Overview. */
/* Shared defaults for reviewed sections. Native Settings keeps its own styles. */
body{--mp-font-family:var(--panel-font);--mp-font-body:14px;--mp-font-page:28px;--mp-font-section:20px;--mp-font-title:15px;--mp-font-value:30px;--mp-font-note:12px;--mp-font-control:12px;--mp-font-badge:9px;--mp-icon-tab:18px;--mp-nav-icon-color:var(--mp-mint);--mp-icon-card:24px;--mp-icon-disc:40px;--mp-icon-heading:24px;--mp-icon-method:22px;--mp-icon-method-disc:36px}
[hidden],#mainTabs[hidden]{display:none!important}
body{--mp-bg:#00291f;--mp-card:#00372d;--mp-border:#00695b;--mp-mint:#00edb2;--mp-muted:#b6d0c8;--mp-blue:#50d5ff;background:radial-gradient(ellipse at 72% 35%,#003a2b 0,#002a20 60%,#002219 100%);color:#f3faf7}
body .bg-blobs{display:none}
.app-side{width:200px;background:linear-gradient(180deg,#002a20,#00271e);border-right:1px solid #006454;padding:19px 8px;z-index:120}
.brand{padding:0 14px 18px;border-bottom:1px solid #005a4b;margin-bottom:13px}.brand b{font-size:34px;letter-spacing:-1.2px;color:#fff}.brand b span,.side-foot b span{color:#00c99b}.brand small{font-size:14px;line-height:1.45;max-width:145px;display:block;margin-top:7px;color:#c2d6ce}
.mp-primary{display:flex;flex-direction:column;gap:7px;overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}.mp-primary>button{font:500 14px var(--panel-font);display:flex;gap:17px;align-items:center;text-align:left;color:#f2faf6;background:transparent;border:1px solid transparent;border-left:4px solid transparent;border-radius:7px;padding:14px 12px;min-height:58px;line-height:1.5;cursor:pointer}.mp-primary>button.active{border-color:#005e4d;border-left-color:#00f6b8;background:linear-gradient(90deg,#004a37,#003427);color:#00f6ba}.mp-primary>button .ov-icon{width:27px;height:29px;flex:none}.mp-primary>button:disabled{color:#658b7d;cursor:not-allowed;background:#00271f;opacity:.65}.mp-primary>button:hover:not(:disabled){background:#004333}.mp-primary>button:focus-visible,button.mp-text-button:focus-visible{outline:2px solid #58deff;outline-offset:2px}
.side-foot{border-top:1px solid #005848;padding:12px 12px 0;margin-top:auto;color:#e7f4ee;font-size:11px;line-height:1.5}.side-foot b{font-size:18px}.side-foot>button{font-size:13px;color:#e6f6ee}.mp-tools{font-size:11px;margin:4px 0}.mp-tools summary{cursor:pointer;color:#a2c7b8}.mp-tools button{background:none;color:#bcdace;border:0;display:block;text-align:left;font-size:12px;padding:7px 0;cursor:pointer}
.app-top{left:200px;height:96px;background:rgba(0,38,29,.97);border-bottom:1px solid #006252;padding:16px 22px;gap:15px;overflow:visible}.app-top .top-select:first-child{width:365px;max-width:31vw;border:1px solid #006c59;background:#003c2e;padding:8px 14px 8px 48px;position:relative;border-radius:10px}.mp-location{position:absolute;left:12px;top:14px;width:27px;height:34px;color:#00efb0;fill:none;stroke:currentColor;stroke-width:1.7}.app-top .top-select span{font-size:11px;color:#c5d9ce}.app-top .top-select select{font-size:15px;min-height:25px;line-height:1.3}.app-top .top-select select option{background:#00362b}.app-top .mp-category{display:none!important}.app-top .mp-variety{min-width:150px!important;max-width:220px;width:16vw;background:transparent;border-color:#005948;padding:7px 10px}.app-top .mp-variety select{font-size:12px}.app-top .top-sync{border-left:1px solid #006253;padding-left:16px;font-size:0;color:#e9f5ef}.app-top .top-sync b{font-size:13px;white-space:nowrap}.app-top .top-user,.app-top .panel-theme-switch{display:none}.top-live{font-size:10px;background:#004334;color:#00f4b4;padding:8px}.station-usage-badge{font-size:9px;max-width:148px}.mp-export{display:flex;gap:10px;align-items:center;padding:13px 17px;background:transparent;color:#edf9f3;border:1px solid #9bd8cc;border-radius:8px;font:500 14px var(--panel-font);white-space:nowrap;cursor:pointer}.mp-export .ov-icon{width:23px}.mp-snapshot{display:none}
.page{margin-left:200px;padding:113px 17px 32px;max-width:none}
body.overview-active #cropHeader{display:none!important}
.mp-heading{display:flex;gap:24px;align-items:center;margin:0 6px 17px}.mp-heading>.ov-icon{width:65px;height:68px;color:#00f0b5}.mp-heading h1{font-size:42px;line-height:1.2;letter-spacing:-.4px;margin:0 0 7px;font-weight:750}.mp-heading p{margin:0;font-size:21px;line-height:1.35;color:#e1eee7}
.mp-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:11px}
#view-overview .mp-overview-grid .ov-panel{margin:0;padding:12px 11px;border:1px solid var(--mp-border);border-radius:9px;background:linear-gradient(115deg,rgba(0,51,40,.83),rgba(0,40,30,.93));min-width:0}
#view-overview .mp-current,#view-overview .mp-equipment,#view-overview .mp-quick{grid-column:1/-1}.mp-section-title{display:flex;align-items:center;gap:13px;margin:1px 9px 11px;min-height:27px}.mp-section-title>.ov-icon{width:28px;height:28px;color:#00e9b0}.mp-section-title h2{font-size:20px;line-height:1.3;margin:0;font-weight:700}.mp-section-meta,.mp-text-button{margin-left:auto;font-size:12px;line-height:1.4;color:#d0e3db}.mp-text-button{border:0;background:transparent;cursor:pointer;white-space:nowrap;padding:3px 0}
.mp-reading-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.mp-reading{position:relative;min-width:0;border:1px solid #006859;border-radius:8px;background:linear-gradient(125deg,#003f32aa,#00392aaa);padding:17px 12px 14px 98px;min-height:136px;display:flex;flex-direction:column;justify-content:center}
.mp-icon-disc{display:grid;place-items:center;border:1px solid #005e59;background:linear-gradient(130deg,#003f39,#004131);border-radius:50%;width:82px;height:82px;flex:none;color:#4ed8ff}.mp-icon-disc .ov-icon{width:48px;height:48px;stroke-width:1.8}.mp-reading>.mp-icon-disc{position:absolute;left:12px;top:15px}.mp-temperature .mp-icon-disc{color:#ffae12}.mp-reading h3{font-size:16px;line-height:1.35;margin:0 0 5px;font-weight:700;padding-right:0}.mp-reading>b{font-size:37px;letter-spacing:-.6px;line-height:1.25;white-space:nowrap;font-weight:750;color:#fbfffd}.mp-reading p{font-size:12px;color:#d6e6de;line-height:1.6;margin:3px 0 0}.mp-badge{border:1px solid #009c76;color:#00f7ba;box-shadow:inset 0 0 7px #003226;border-radius:20px;font-size:10px;line-height:1.5;padding:2px 9px;white-space:nowrap;background:#00392c;font-weight:500}.mp-reading>.mp-badge{align-self:flex-start;margin:0 0 5px}.mp-computed{color:#59dcff;border-color:#008caa;background:#003344}
.mp-water-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mp-water-grid .mp-reading{padding:62px 10px 16px;min-height:185px;text-align:center;align-items:center;justify-content:flex-end}.mp-water-grid .mp-reading>.mp-icon-disc{left:12px;top:12px;width:65px;height:65px}.mp-water-grid .mp-icon-disc .ov-icon{width:39px;height:39px}.mp-water-grid .mp-reading h3{order:-2;margin-bottom:4px;padding-left:63px;text-align:left;width:100%;min-height:35px;font-size:14px}.mp-water-grid .mp-reading>.mp-badge{position:absolute;right:7px;top:48px;font-size:9px;padding:1px 7px}.mp-water-grid .mp-reading>b{font-size:38px}.mp-water-grid .mp-reading p{max-width:100%;font-size:11px;line-height:1.65;margin-top:7px}
.mp-crop-stage{display:flex;gap:12px;align-items:center;border:1px solid #006454;background:#003b2e;padding:9px 11px;border-radius:7px;margin-bottom:7px;min-height:80px}.mp-crop-stage .mp-icon-disc{width:62px;height:62px;color:#00f2b3}.mp-crop-stage .ov-icon{width:38px;height:38px}.mp-crop-stage strong{font-size:20px;line-height:1.3}.mp-crop-stage p{color:#bfd6c9;margin:3px 0 0;font-size:14px}.mp-crop-values{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mp-crop-values>div{border:1px solid #006859;background:#003a2d;border-radius:7px;padding:9px 10px;position:relative;min-width:0}.mp-crop-values>div>span:first-child{font-size:14px;font-weight:700}.mp-crop-values .mp-badge{display:block;width:max-content;font-size:8px;margin:4px 0}.mp-crop-values b{font-size:31px;line-height:1.15;display:block;white-space:nowrap}.mp-crop-values small{font-size:11px;color:#c2d9cd;display:block;margin-top:3px}.mp-crop-notes{font-size:11px;line-height:1.5;color:#bbd4c6;margin-top:8px;white-space:pre-line}
.mp-hardware-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mp-hardware-grid .mp-reading{min-height:107px;padding-top:13px;padding-bottom:10px}.mp-hardware-grid .mp-icon-disc{width:72px;height:72px;color:#00efb3;top:15px}.mp-hardware-grid .mp-icon-disc .ov-icon{width:42px;height:42px}.mp-hardware-grid .mp-reading h3{font-size:14px}.mp-hardware-grid .mp-reading>b{font-size:29px}.mp-hardware-grid .mp-reading p{font-size:10px}
.mp-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mp-quick-grid>button{display:flex;gap:17px;align-items:center;text-align:left;background:linear-gradient(110deg,#00433477,#00362a);border:1px solid #006c5b;border-radius:7px;padding:11px 20px;color:#edf9f1;min-height:66px;cursor:pointer;font:inherit}.mp-quick-grid .ov-icon{width:38px;height:38px;flex:none;color:#00edb2}.mp-quick-grid strong{font-size:14px}.mp-quick-grid small{display:block;font-size:12px;margin-top:4px;color:#c3d9cd}.mp-quick-grid>button>span:last-child{margin-left:auto}.mp-quick-grid>button:hover{background:#00503d}
.mp-error{border:1px solid #d49b3d;background:#443b1c;color:#ffdc86;padding:12px;border-radius:7px;font-size:13px}.mp-preview-note{font-size:10px;color:#80b19b;text-align:right;margin-top:9px}
.mp-snapshot{display:flex;align-items:center;gap:8px;flex:none;border:1px solid #295c49;background:#052d22;color:#77978a;border-radius:8px;padding:11px 13px;font:500 13px var(--panel-font);cursor:not-allowed;opacity:.7}.mp-snapshot .ov-icon{width:22px;height:22px}
@media(min-width:1450px){.mp-reading-grid .mp-reading{padding-left:101px;padding-top:27px}.mp-reading-grid .mp-reading>.mp-badge{position:absolute;right:12px;top:16px;font-size:9px}.mp-reading-grid .mp-reading h3{font-size:15px}.mp-reading-grid .mp-reading>b{font-size:39px}.mp-reading-grid .mp-reading>.mp-icon-disc{top:16px}.mp-reading-grid .mp-reading h3{padding-right:0}}
@media(max-width:1350px){.app-top{gap:9px;padding:12px}.app-top .mp-variety{max-width:165px}.app-top .station-usage-badge,.mp-snapshot{display:none}.mp-heading h1{font-size:35px}.mp-reading{padding-left:75px}.mp-reading>.mp-icon-disc{width:55px;height:55px;left:9px}.mp-reading>.mp-icon-disc .ov-icon{width:35px;height:35px}.mp-reading>b{font-size:29px}.mp-reading h3{font-size:14px}.mp-reading p{font-size:10px}.mp-water-grid .mp-reading>b{font-size:30px}.mp-section-title h2{font-size:17px}.mp-hardware-grid .mp-reading{padding-left:84px}.mp-hardware-grid .mp-reading>b{font-size:25px}.mp-water-grid .mp-reading h3{font-size:12px}}
@media(max-width:1100px){.mp-overview-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.mp-reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-reading-grid .mp-reading{min-height:115px}.mp-water-grid{grid-template-columns:1fr}.mp-water-grid .mp-reading{padding:12px 10px 12px 84px;min-height:95px;align-items:flex-start;text-align:left}.mp-water-grid .mp-reading h3{padding-left:0;min-height:0;order:0}.mp-water-grid .mp-reading>.mp-badge{display:none}.mp-water-grid .mp-reading p{margin-top:2px}.mp-hardware-grid .mp-reading{padding-left:65px}.mp-hardware-grid .mp-icon-disc{width:45px;height:45px}.mp-hardware-grid .mp-reading>b{font-size:20px}.mp-hardware-grid .mp-reading p{font-size:9px}.mp-quick-grid>button{gap:8px;padding:10px}.mp-quick-grid strong{font-size:12px}.mp-quick-grid small{font-size:10px}.mp-export{padding:10px}.mp-export>span{display:none}.app-top .top-live{display:none}}
@media(max-width:760px){.app-side{width:65px;padding:12px 5px}.brand{padding:0 0 12px;text-align:center}.brand b{font-size:0}.brand b:first-letter{font-size:29px}.brand small,.mp-primary>button>span,.side-foot{display:none}.mp-primary>button{padding:12px 9px;gap:0;min-height:51px}.mp-primary>button .ov-icon{width:26px}.app-top{left:65px;height:78px;gap:7px;overflow-x:auto;padding:8px}.app-top .top-select:first-child{width:185px;max-width:none;min-width:185px!important;padding:7px 8px 7px 32px}.mp-location{left:5px;width:22px}.app-top .top-select select{font-size:11px}.app-top .mp-variety{min-width:145px!important;max-width:160px}.app-top .top-sync{display:none}.page{margin-left:65px;padding:95px 10px 30px}.mp-heading{gap:12px;margin:0 0 16px}.mp-heading>.ov-icon{width:39px;height:43px}.mp-heading h1{font-size:25px;line-height:1.25}.mp-heading p{font-size:13px}.mp-overview-grid{grid-template-columns:1fr;gap:10px}.mp-water,.mp-crop{grid-column:1/-1}.mp-reading-grid .mp-reading{padding:61px 9px 10px;min-height:156px}.mp-reading-grid .mp-reading .mp-icon-disc{width:43px;height:43px;left:9px;top:10px}.mp-reading-grid .mp-reading .mp-icon-disc .ov-icon{width:29px;height:29px}.mp-reading-grid .mp-reading .mp-badge{position:absolute;right:7px;top:15px;font-size:8px;padding:2px 5px}.mp-reading-grid .mp-reading>b{font-size:26px}.mp-reading-grid .mp-reading h3{font-size:12px}.mp-reading-grid .mp-reading p{font-size:10px;line-height:1.4}.mp-section-title{gap:8px;margin-left:2px}.mp-section-title h2{font-size:16px}.mp-section-title>.ov-icon{width:24px}.mp-section-meta{font-size:9px;max-width:100px}.mp-text-button{font-size:9px}.mp-water-grid .mp-reading{min-height:102px}.mp-water-grid .mp-reading>b{font-size:31px}.mp-crop-values .mp-badge{display:inline-block;font-size:8px;margin-left:5px}.mp-hardware-grid{grid-template-columns:1fr}.mp-hardware-grid .mp-reading{padding-left:75px;min-height:87px}.mp-hardware-grid .mp-icon-disc{width:50px;height:50px;top:17px}.mp-hardware-grid .mp-reading>b{font-size:25px}.mp-quick-grid{grid-template-columns:1fr}.mp-quick-grid strong{font-size:14px}.mp-quick-grid small{font-size:12px}.mp-primary{overflow-x:hidden}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* Preserve the working General → Day preference as well. */
html[data-theme="day"] .mp-primary>button{color:#24473a}html[data-theme="day"] .mp-primary>button.active{background:#dcf1e7;color:#006e51}html[data-theme="day"] .mp-primary>button:disabled{color:#7c9c8d;background:#e8f1eb}
html[data-theme="day"] .mp-primary>button:hover:not(:disabled){background:#cdebdc;color:#005c45}
html[data-theme="day"] .mp-overview-grid .ov-panel,html[data-theme="day"] .mp-reading,html[data-theme="day"] .mp-crop-stage,html[data-theme="day"] .mp-crop-values>div,html[data-theme="day"] .mp-quick-grid>button{background:#f5fbf7!important;border-color:#abcfc0!important;color:#183d2d}
html[data-theme="day"] .mp-reading b,html[data-theme="day"] .mp-reading h3,html[data-theme="day"] .mp-section-title h2,html[data-theme="day"] .mp-heading h1,html[data-theme="day"] .mp-crop-stage strong,html[data-theme="day"] .mp-crop-values b,html[data-theme="day"] .mp-crop-values>div>span:first-child{color:#14392b}
html[data-theme="day"] .mp-reading p,html[data-theme="day"] .mp-heading p,html[data-theme="day"] .mp-crop-stage p,html[data-theme="day"] .mp-crop-values small,html[data-theme="day"] .mp-quick-grid small,html[data-theme="day"] .mp-text-button,html[data-theme="day"] .mp-section-meta,html[data-theme="day"] .mp-crop-notes{color:#486d5a}
html[data-theme="day"] .mp-icon-disc{background:#e2f1e9;border-color:#badbca;color:#007b72}html[data-theme="day"] .mp-temperature .mp-icon-disc{color:#a96900}html[data-theme="day"] .mp-badge{background:#e2f5eb;color:#00674d;border-color:#7bbb9e;box-shadow:none}html[data-theme="day"] .mp-computed{background:#e5f4fa;color:#006a88;border-color:#83bdce}html[data-theme="day"] .mp-export{color:#164e3a;border-color:#569d81}

.mp-crop-stage>div{min-width:0;overflow-wrap:anywhere}.mp-heading p{overflow-wrap:anywhere}
/* Existing persisted theme controls, shared across every section and variety. */
.app-top .panel-theme-switch{display:flex;flex:none;gap:3px;padding:3px;border:1px solid var(--mp-border);border-radius:8px;background:#00362a}
.app-top .panel-theme-switch button{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 8px;background:transparent;border:1px solid transparent;border-radius:5px;color:var(--mp-muted);font:inherit;font-size:11px;cursor:pointer}
.app-top .panel-theme-switch button[aria-pressed="true"]{border-color:#00b98a;background:#00543a;color:#00f4b6}
.app-top .panel-theme-switch .ov-icon{width:19px;height:19px}
.app-top .panel-theme-switch button:focus-visible{outline:2px solid var(--mp-blue);outline-offset:2px}
@media(max-width:1650px){.app-top .panel-theme-switch button span{display:none}.app-top .panel-theme-switch button{padding:7px}.app-top .top-select:first-child{max-width:26vw}.app-top .top-sync{padding-left:8px}.app-top .top-sync b{font-size:11px}}
@media(max-width:760px){.app-top .panel-theme-switch{order:-1;padding:2px}.app-top .panel-theme-switch button{padding:5px}.app-top .panel-theme-switch .ov-icon{width:17px;height:17px}.app-top .top-select:first-child{max-width:none}}
html[data-theme="day"] .app-top .panel-theme-switch{background:#e5f3eb;border-color:#abcfc0}
html[data-theme="day"] .app-top .panel-theme-switch button{color:#355e4a}
html[data-theme="day"] .app-top .panel-theme-switch button[aria-pressed="true"]{background:#cdebdc;color:#006e51;border-color:#62aa8b}
.mp-forecast-view .ov-forecast{padding:16px;border:1px solid var(--mp-border);border-radius:9px;background:var(--mp-card)}
.mp-model-notes{position:relative;margin-top:5px;font-size:11px;color:var(--mp-muted)}
.mp-model-notes>summary{cursor:pointer;width:max-content;max-width:100%}
.mp-model-notes .mp-crop-notes{padding:10px;border:1px solid var(--mp-border);border-radius:7px;background:var(--mp-bg)}
/* Desktop density follows viewport height; content remains scrollable at zoom. */
@media(min-width:1000px){
 body.overview-active .app-top{height:68px;padding:8px 14px}
 body.overview-active .app-top .top-select:first-child{padding-top:4px;padding-bottom:4px}
 body.overview-active .mp-location{top:7px;height:30px}
 body.overview-active .page{padding:80px 14px 12px}
 .app-side{padding-top:12px;padding-bottom:10px}
 .brand{padding-bottom:10px;margin-bottom:8px}.brand b{font-size:29px}.brand small{font-size:12px;margin-top:3px}
 .mp-primary{gap:3px}.mp-primary>button{padding:8px 12px;min-height:40px;font-size:13px;gap:12px}
 .mp-primary>button .ov-icon{width:24px;height:24px}.side-foot{padding-top:6px;font-size:10px}
 #view-overview .mp-heading{gap:14px;margin:0 4px 9px}
 #view-overview .mp-heading>.ov-icon{width:40px;height:44px}
 #view-overview .mp-heading h1{font-size:clamp(24px,3.1vh,34px);margin-bottom:3px}
 #view-overview .mp-heading p{font-size:14px;line-height:1.25}
 #view-overview .mp-overview-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:clamp(5px,.8vh,10px)}
 #view-overview .mp-overview-grid .ov-panel{padding:clamp(5px,.8vh,10px) 8px}
 #view-overview .mp-section-title{margin:0 2px 5px;gap:9px;min-height:20px}
 #view-overview .mp-section-title>.ov-icon{width:22px;height:22px}
 #view-overview .mp-section-title h2{font-size:clamp(14px,1.9vh,18px)}
 #view-overview .mp-section-meta{font-size:10px}
 #view-overview .mp-reading-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 #view-overview .mp-reading-grid .mp-reading{padding:8px 8px 8px 64px;min-height:clamp(76px,11vh,116px)}
 #view-overview .mp-reading-grid .mp-icon-disc{width:46px;height:46px;left:8px;top:12px}
 #view-overview .mp-icon-disc .ov-icon{width:30px;height:30px}
 #view-overview .mp-reading-grid .mp-badge{position:static;font-size:8px;padding:0 6px;margin-bottom:3px}
 #view-overview .mp-reading h3{font-size:12px;line-height:1.2;margin-bottom:3px}
 #view-overview .mp-reading>b{font-size:clamp(23px,3.2vh,34px);line-height:1.1}
 #view-overview .mp-reading p{font-size:9px;line-height:1.35;margin-top:4px}
 #view-overview .mp-reading-grid [data-mp-time]{display:none}
 #view-overview .mp-water-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #view-overview .mp-water-grid .mp-reading{padding:49px 6px 8px;min-height:clamp(125px,18vh,180px);text-align:center;align-items:center;justify-content:flex-end}
 #view-overview .mp-water-grid .mp-icon-disc{width:39px;height:39px;left:7px;top:7px}
 #view-overview .mp-water-grid .mp-icon-disc .ov-icon{width:26px;height:26px}
 #view-overview .mp-water-grid .mp-reading h3{order:-2;padding-left:44px;min-height:29px;text-align:left;font-size:11px}
 #view-overview .mp-water-grid .mp-badge{display:block;top:39px;right:6px;font-size:7px;padding:0 4px}
 #view-overview .mp-water-grid .mp-reading p{font-size:9px}
 #view-overview .mp-crop{position:relative}
 #view-overview .mp-crop-stage{min-height:43px;padding:5px 7px;margin-bottom:5px;gap:8px}
 #view-overview .mp-crop-stage .mp-icon-disc{width:35px;height:35px}
 #view-overview .mp-crop-stage .ov-icon{width:25px;height:25px}
 #view-overview .mp-crop-stage strong{font-size:14px;line-height:1.2}
 #view-overview .mp-crop-stage p{font-size:11px;line-height:1.25;margin-top:2px}
 #view-overview .mp-crop-values{gap:5px}
 #view-overview .mp-crop-values>div{padding:5px 7px}
 #view-overview .mp-crop-values>div>span:first-child{font-size:11px}
 #view-overview .mp-crop-values .mp-badge{display:inline-block;font-size:7px;padding:0 4px;margin:0 0 3px 4px}
 #view-overview .mp-crop-values b{font-size:clamp(22px,3vh,30px)}
 #view-overview .mp-crop-values small{font-size:9px;margin-top:2px}
 #view-overview .mp-model-notes .mp-crop-notes{position:absolute;right:0;top:100%;width:min(420px,70vw);z-index:130;box-shadow:0 8px 25px #0008}
 #view-overview .mp-hardware-grid{gap:7px}
 #view-overview .mp-hardware-grid .mp-reading{padding:7px 8px 7px 57px;min-height:clamp(59px,8.5vh,88px)}
 #view-overview .mp-hardware-grid .mp-icon-disc{width:37px;height:37px;left:9px;top:11px}
 #view-overview .mp-hardware-grid .mp-icon-disc .ov-icon{width:24px;height:24px}
 #view-overview .mp-hardware-grid .mp-reading>b{font-size:clamp(20px,2.8vh,28px)}
 #view-overview .mp-quick-grid>button{padding:8px 12px;min-height:clamp(42px,6.5vh,64px);gap:10px}
 #view-overview .mp-quick-grid .ov-icon{width:27px;height:27px}
 #view-overview .mp-quick-grid strong{font-size:12px}
 #view-overview .mp-quick-grid small{font-size:10px;margin-top:2px}
}

.mp-forecast-view .ov-forecast-scroll{overflow-x:auto}
.mp-forecast-view .forecast{display:block;overflow:visible}
.mp-forecast-view .forecast-table{width:100%;min-width:520px;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:1.5}
.mp-forecast-view .forecast-table th,.mp-forecast-view .forecast-table td{padding:10px 5px;text-align:center;border:1px solid var(--mp-border)}
.mp-forecast-view .forecast-table th:first-child{text-align:left;width:100px}
.mp-forecast-view .forecast-table small{display:block;font-size:11px;color:var(--mp-muted)}
.mp-forecast-view .weather-code{display:block;font-size:25px}
.mp-forecast-view .forecast-source{font-size:12px;color:var(--mp-muted)}
html[data-theme="day"] .mp-model-notes .mp-crop-notes{background:#f5fbf7;border-color:#abcfc0}

/* Keep the theme switch within the existing single-row desktop header. */
@media(min-width:761px) and (max-width:1800px){.app-top .mp-snapshot{display:none}}
@media(min-width:761px) and (max-width:1650px){.app-top .mp-export{padding:9px}.app-top .mp-export>span{display:none}.app-top .top-select:first-child{width:24vw;max-width:320px}.app-top .mp-variety{width:160px;max-width:160px}.app-top .top-sync{flex-shrink:0}}
/* Telemetry tones: the communication Normal appearance stays unchanged. */
[data-mp-hardware-tone="warning"]{--mp-hardware-tone:#ffcca2}
[data-mp-hardware-tone="interrupted"]{--mp-hardware-tone:#fff1a3}
[data-mp-hardware-tone="critical"]{--mp-hardware-tone:#ffb4bd}
[data-mp-hardware-tone="unknown"]{--mp-hardware-tone:#92aba2}
.mp-reading[data-mp-hardware-tone]:not([data-mp-hardware-tone="normal"]){border-color:var(--mp-hardware-tone)!important}
.mp-reading[data-mp-hardware-tone]:not([data-mp-hardware-tone="normal"]) .mp-icon-disc{color:var(--mp-hardware-tone);border-color:var(--mp-hardware-tone)}
b[data-mp-hardware-tone]:not([data-mp-hardware-tone="normal"]),dd[data-mp-hardware-tone]:not([data-mp-hardware-tone="normal"]){color:var(--mp-hardware-tone)!important}
b[data-mp-hardware-tone="normal"][data-mp-hardware-kind="battery"],b[data-mp-hardware-tone="normal"][data-mp-hardware-kind="signal"],dd[data-mp-hardware-tone="normal"]:not([data-mp-hardware-kind="communication"]){color:var(--mp-mint)!important}
html[data-theme="day"] [data-mp-hardware-tone="warning"]{--mp-hardware-tone:#97520b;--mp-hardware-tint:#fff0df}
html[data-theme="day"] [data-mp-hardware-tone="interrupted"]{--mp-hardware-tone:#786000;--mp-hardware-tint:#fff8cc}
html[data-theme="day"] [data-mp-hardware-tone="critical"]{--mp-hardware-tone:#ad3045;--mp-hardware-tint:#ffe7eb}
html[data-theme="day"] [data-mp-hardware-tone="unknown"]{--mp-hardware-tone:#5c7268;--mp-hardware-tint:#edf2ef}
html[data-theme="day"] .mp-reading[data-mp-hardware-tone]:not([data-mp-hardware-tone="normal"]){background:var(--mp-hardware-tint)!important}
html[data-theme="day"] b[data-mp-hardware-tone="normal"][data-mp-hardware-kind="battery"],html[data-theme="day"] b[data-mp-hardware-tone="normal"][data-mp-hardware-kind="signal"],html[data-theme="day"] dd[data-mp-hardware-tone="normal"]:not([data-mp-hardware-kind="communication"]){color:#00744e!important}
#mpCommunication{font-size:clamp(18px,2.6vh,27px);line-height:1.15;overflow-wrap:anywhere}
/* Shared compact banner controls; identity is always last on the right. */
.app-top{--mp-toolbar-height:38px;--mp-toolbar-width:144px;align-items:center;gap:8px;height:68px;padding:8px 14px}
.app-top .top-spacer{order:1;flex:1;min-width:0}
.app-top .station-usage-badge{order:1}
.app-top .panel-theme-switch,.app-top .mp-snapshot,.app-top .mp-export,.app-top .top-user{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 var(--mp-toolbar-width);width:var(--mp-toolbar-width);height:var(--mp-toolbar-height);min-height:var(--mp-toolbar-height);padding:0 9px;margin:0;gap:7px;border:1px solid var(--mp-border);border-radius:7px;font:500 12px var(--mp-font-family);line-height:1.2}
.app-top .panel-theme-switch{order:2;padding:2px;gap:2px}
.app-top .panel-theme-switch button{flex:1;min-width:0;height:32px;min-height:0;padding:0 4px;gap:4px;font-size:11px}
.app-top .panel-theme-switch button span,.app-top .mp-export>span{display:inline}
.app-top .mp-snapshot{order:3}.app-top .mp-export{order:4;white-space:normal}.app-top .mp-export>span:last-child{display:none}
.app-top .top-user{order:5;justify-content:flex-start;background:transparent;color:var(--mp-text)}
.app-top .top-user .avatar{width:24px;height:24px;flex:0 0 24px;font-size:12px;display:flex;align-items:center;justify-content:center}
.app-top #topUser{min-width:0;font-size:11px;line-height:1.25;overflow-wrap:anywhere}.app-top #topUser small{font-size:10px;line-height:1.2}
.app-top .panel-theme-switch .ov-icon,.app-top .mp-snapshot .ov-icon,.app-top .mp-export .ov-icon{width:18px;height:18px;flex:0 0 18px}
@media(min-width:1201px){.app-top .top-select:first-child{width:280px;max-width:25vw;min-width:180px!important}.app-top .mp-variety{width:175px;min-width:145px!important}.app-top .top-select select{max-width:100%}}
@media(max-width:1200px){.app-top{flex-wrap:wrap;overflow:visible;height:104px;gap:6px;padding:6px 10px}.app-top .top-spacer{display:none}.app-top .top-select:first-child,.app-top .mp-variety{box-sizing:border-box;flex:1 1 40%;width:auto;min-width:0!important;max-width:none;height:44px}.app-top .station-usage-badge{display:none}.app-top .panel-theme-switch,.app-top .mp-snapshot,.app-top .mp-export,.app-top .top-user{flex-basis:calc((100% - 18px)/4);width:calc((100% - 18px)/4)}.app-top .panel-theme-switch{order:2}body.overview-active .app-top{height:104px;padding:6px 10px}body .page,body.overview-active .page{padding-top:120px}}

/* Shared subtab icon colour, independent of selected text colour. */
html[data-theme="day"] body{--mp-nav-icon-color:#007b72}

/* User-authorized local view snapshot: same compact toolbar geometry. */
.app-top .mp-snapshot:not(:disabled){opacity:1;cursor:pointer;color:var(--mp-mint);background:#003c2d;border-color:var(--mp-border)}
.app-top .mp-snapshot:not(:disabled):hover{background:#00503d}
.app-top .mp-snapshot:focus-visible{outline:2px solid var(--mp-blue);outline-offset:2px}
.app-top .mp-snapshot:disabled{cursor:not-allowed;opacity:.5}
.mp-snapshot-status{position:fixed;right:16px;bottom:16px;z-index:2000;max-width:min(360px,calc(100vw - 32px));padding:11px 14px;background:#003c2d;color:#edf9f3;border:1px solid var(--mp-border);border-radius:7px;font:13px/1.4 var(--mp-font-family)}
html[data-theme="day"] .app-top .mp-snapshot:not(:disabled){color:#006e51;background:#dff3e9}
html[data-theme="day"] .app-top .mp-snapshot:not(:disabled):hover{background:#cdebdc}
html[data-theme="day"] .mp-snapshot-status{background:#f5fbf7;color:#183d2d}

/* Annual station summary below current readings, common compact scale. */
#view-overview .mp-annual{grid-column:1/-1}
#view-overview .mp-annual-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#view-overview .mp-annual-reading{min-height:94px;padding:12px 9px 12px 59px;align-items:flex-start;text-align:left}
#view-overview .mp-annual-reading>.mp-icon-disc{width:40px;height:40px;left:9px;top:12px}
#view-overview .mp-annual-reading .mp-icon-disc .ov-icon{width:24px;height:24px}
#view-overview .mp-annual-reading h3{font-size:var(--mp-font-title);line-height:1.35;margin:0 0 6px;min-height:40px}
#view-overview .mp-annual-reading>b{font-size:var(--mp-font-value);line-height:1.2;white-space:nowrap}
#view-overview .mp-annual-note{font-size:var(--mp-font-note);color:var(--mp-muted);line-height:1.4;margin:8px 0 0}
html[data-theme="day"] #view-overview .mp-annual-note{color:#486d5a}
@media(max-width:1200px){#view-overview .mp-annual-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#view-overview .mp-annual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#view-overview .mp-annual-grid{grid-template-columns:1fr}}

/* User-authorized read-only columns in the existing station directory. */
#settingsStationsPanel .ss-table .mp-station-last{min-width:115px;font-variant-numeric:tabular-nums;overflow-wrap:normal}
#settingsStationsPanel .ss-table .mp-station-health{min-width:125px}
#settingsStationsPanel .mp-station-health .ss-badge{white-space:normal;line-height:1.45}

/* Station pencil action: more room for the existing two-panel form. */
#stationDetailsDialog{width:min(1180px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:92vh;max-height:92dvh;padding:24px;overflow-y:auto;box-sizing:border-box}
#stationDetailsDialog #stationSettingsForm .ss-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}
#stationDetailsDialog #stationSettingsForm .ss-grid>.set-card{min-width:0;padding:20px}
#stationDetailsDialog #stationSettingsForm .ss-details-grid{gap:14px}
#stationDetailsDialog .set-actions{flex-wrap:wrap;gap:10px}
#stationDetailsDialog .set-status-row{gap:14px;flex-wrap:wrap}
@media(max-width:1100px){#stationDetailsDialog #stationSettingsForm .ss-grid{grid-template-columns:minmax(0,1fr);gap:16px}}
@media(max-width:600px){#stationDetailsDialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:14px;max-height:94dvh}#stationDetailsDialog #stationSettingsForm .ss-grid>.set-card{padding:14px}#stationDetailsDialog #stationSettingsForm .ss-details-grid,#stationDetailsDialog #stationSettingsForm .ss-installation-options{grid-template-columns:minmax(0,1fr)}}
