/* Current panel-clone is authoritative for colours; inherit its Day/Night tokens.
   This file loads after the presentation styles. No status/model logic changes. */
html body{--mp-bg:var(--g1);--mp-card:var(--glass);--mp-border:var(--border);--mp-mint:var(--accent);--mp-muted:var(--text2);--mp-blue:var(--blue);color:var(--text);background:linear-gradient(135deg,var(--g1),var(--g2),var(--g3));background-attachment:fixed}
html[data-theme="day"] body{background:linear-gradient(135deg,var(--g1),var(--g2),var(--g3))!important;background-attachment:fixed}
html body .app-side,html body .app-top{background:var(--g1);border-color:var(--border)}
html[data-theme="day"] body .app-side,html[data-theme="day"] body .app-top{background:#f8fbfd!important;border-color:var(--border)}
html body .brand,html body .side-foot{border-color:var(--border);color:var(--text2)}
html body .brand b,html body .side-foot b,html body .mp-heading h1{color:var(--text)}
html body .brand b span,html body .side-foot b span{color:var(--accent)}
html body .brand small,html body .mp-heading p,html body .mp-tools summary,html body .mp-tools button,html body .side-foot>button{color:var(--text2)}
html body .mp-primary>button{color:var(--text)}
html body .mp-primary>button.active{background:var(--accent-dim);border-color:var(--border-h);border-left-color:var(--accent);color:var(--accent)}
html body .mp-primary>button:hover:not(:disabled){background:var(--glass2);color:var(--accent)}
html body .mp-primary>button:disabled{background:var(--glass3);color:var(--text-dim)}
html body .app-top .top-select:first-child,html body .app-top .mp-variety,html body .app-top .panel-theme-switch{background:var(--glass);border-color:var(--border);color:var(--text)}
html body .app-top .top-select span,html body .app-top .panel-theme-switch button{color:var(--text2)}
html body .app-top .top-select select option{background:var(--g1);color:var(--text)}
html[data-theme="day"] body .app-top .top-select select option{background:#fff}
html body .app-top .panel-theme-switch button[aria-pressed="true"]{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body .mp-location,html body .mp-heading>.ov-icon,html body .mp-section-title>.ov-icon,html body .mp-quick-grid .ov-icon{color:var(--accent)}
html body #view-overview .mp-overview-grid .ov-panel,html body .mp-reading:not([data-mp-hardware-tone]),html body .mp-reading[data-mp-hardware-tone="normal"],html body .mp-crop-stage,html body .mp-crop-values>div,html body .mp-quick-grid>button,html body .mps-panel,html body .mps-card:not([data-mp-hardware-tone]),html body #view-crops .ov-panel,html body #view-crops .cv-card,html body #view-crops .cal-month,html body #view-reports .rep-type,html body .mp-model-notes .mp-crop-notes{background:var(--glass)!important;border-color:var(--border)!important;color:var(--text)}
html body .mp-reading>b,html body .mp-crop-values b{color:var(--text)}
html body .mp-reading p,html body .mp-crop-stage p,html body .mp-crop-values small,html body .mp-quick-grid small,html body .mp-text-button,html body .mp-section-meta,html body .mp-crop-notes,html body .mps-panel p,html body .mps-card p,html body .mps-period,html body .mps-details dt{color:var(--text2)}
html body .mp-icon-disc{background:var(--glass2);border-color:var(--border);color:var(--blue)}
html body .mp-temperature .mp-icon-disc,html body #view-forecast .mpf-sun>.mp-icon-disc{color:var(--amber)}
html body .mp-crop-stage .mp-icon-disc,html body .mp-hardware-grid .mp-icon-disc{color:var(--accent)}
html body .mp-badge,html body .top-live{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h);box-shadow:none}
html body .mp-computed{background:var(--blue-dim);color:var(--blue);border-color:var(--blue)}
html body .mp-export{color:var(--text);border-color:var(--border-h)}
html body .mps-tabs>button[aria-selected="true"],html body .mps-crop-nav>button[aria-selected="true"],html body .mps-action{background:var(--accent-dim);color:var(--accent)}
html body .mps-table th{background:var(--glass2);color:var(--text2)}
html body .mps-table tr:nth-child(even){background:var(--glass3)}
html body #mpsOpenMeteoForm input,html body #mpsOpenMeteoForm select{background:var(--glass);color:var(--text);border-color:var(--border)}
html body #mpcProtection [data-prot-filter]:hover,html body #mpcProtection [data-prot-filter][aria-pressed="true"]{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body #mpcProtectionDetail h3,html body .mpc-protection-summary b{color:var(--accent)}
html body #mpcProtection [data-prot-tone="high"],html body #mpcProtectionDialog [data-prot-tone="high"]{--prot-colour:var(--red);--prot-bg:var(--red-dim)}
html body #mpcProtection [data-prot-tone="watch"],html body #mpcProtectionDialog [data-prot-tone="watch"]{--prot-colour:var(--amber);--prot-bg:var(--amber-dim)}
html body #mpcProtection [data-prot-tone="low"],html body #mpcProtectionDialog [data-prot-tone="low"]{--prot-colour:var(--accent);--prot-bg:var(--accent-dim)}
html body #mpcProtection [data-prot-tone="info"],html body #mpcProtectionDialog [data-prot-tone="info"]{--prot-colour:var(--blue);--prot-bg:var(--blue-dim)}
html body #mpcProtection [data-prot-tone="unknown"],html body #mpcProtectionDialog [data-prot-tone="unknown"]{--prot-colour:var(--text2);--prot-bg:var(--glass2)}
/* Summary above all twelve months, full task text without clipping. */
.mpc-calendar-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.mpc-calendar-metrics .mps-card{min-width:0;padding:16px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px 12px;align-content:start}
.mpc-calendar-metrics .mp-icon-disc{grid-row:1/3;width:40px;height:40px}.mpc-calendar-metrics .mp-icon-disc .ov-icon{width:24px;height:24px}
.mpc-calendar-metrics h3{font-size:14px;margin:0}.mpc-calendar-metrics b{font-size:24px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mpc-calendar-metrics p{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5}
.mpc-calendar-month{align-items:flex-start;min-height:0;padding:16px;position:relative;background:var(--glass3)}
.mpc-calendar-month:hover{background:var(--glass2)}
.mpc-calendar-month>.mp-icon-disc{width:32px;height:32px}.mpc-calendar-month>.mp-icon-disc .ov-icon{width:20px;height:20px}
.mpc-calendar-month-body>strong{text-transform:capitalize;color:var(--text);margin:4px 0 8px}
.mpc-calendar-month-tasks{display:grid;gap:12px}.mpc-calendar-month-task{display:grid;gap:5px;padding-top:10px;border-top:1px solid var(--border);white-space:normal;overflow:visible;line-height:1.6}
.mpc-calendar-month-task strong{color:var(--text);font-size:13px}.mpc-calendar-month-task small{font-size:11px;color:var(--text2)}
.mpc-calendar-arrow{font-size:20px}.mpc-calendar-months{align-items:stretch}
/* Same five forecast readings as the reference, with clearer row hierarchy. */
#view-forecast .mpf-table{border-collapse:separate;border-spacing:0 6px;width:100%}
#view-forecast .mpf-table td,#view-forecast .mpf-table tbody th{padding:16px 14px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}
#view-forecast .mpf-table tbody th{background:var(--glass2);color:var(--text);font-weight:700;text-align:left;border-left:1px solid var(--border);border-radius:9px 0 0 9px}
#view-forecast .mpf-table tbody td:last-child{border-right:1px solid var(--border);border-radius:0 9px 9px 0}
#view-forecast .mpf-temperature{font-weight:700;color:var(--text)}#view-forecast .mpf-rain{color:var(--blue)}#view-forecast .mpf-etc{color:var(--accent);font-weight:700}
#view-forecast .mpf-table tbody tr:hover{background:var(--glass2)}
@media(max-width:1100px){.mpc-calendar-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mpc-calendar-months{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mpc-calendar-months{grid-template-columns:1fr}.mpc-calendar-metrics{gap:8px}.mpc-calendar-metrics .mps-card{padding:12px;grid-template-columns:1fr}.mpc-calendar-metrics .mp-icon-disc{grid-row:auto}.mpc-calendar-metrics b{font-size:21px}#view-forecast .mpf-table td,#view-forecast .mpf-table tbody th{padding:12px 8px;font-size:12px}#view-forecast .mpf-table{min-width:500px}}
/* Remaining measurement, index, irrigation and phenology surfaces. */
html body .mp-m-panel,html body .mp-measurements select,html body .mp-m-quality select,html body #mpcIrrigation .mpc-irrigation-data-grid>article,html body #mpcPhenology .stage-track .stage>.ic,html body #mps-indices-micro .mcm-reading,html body #mps-indices-micro .mcm-method-grid{background:var(--glass);border-color:var(--border);color:var(--text)}
html body .mp-measurements button:not(.mp-m-tabs>button),html body .mp-m-quality button:not(.mp-m-tabs>button),html body .mp-m-tabs>button[aria-selected="true"]{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body .mp-m-table th,html body .mp-m-history-table th{background:var(--glass2);color:var(--text2)}
html body .mp-m-table td,html body .mp-m-table th,html body .mp-m-station>div{border-color:var(--border)}
html body .mp-m-muted,html body .mp-m-station small,html body .mp-m-summary small,html body .mp-m-criteria p,html body #mps-indices-micro .mcm-reading p,html body #mps-indices-micro .mcm-method p,html body #mpsCropSummary .mpc-summary-card>p,html body #mpsCropSummary .mpc-summary-card>footer,html body #mpsCropSummary .mpc-management-link>p,html body #mpsCropSummary .mpc-summary-source{color:var(--text2)}
html body #mps-indices-micro .mcm-reading h3,html body #mps-indices-micro .mcm-reading>b,html body #mpsCropSummary .mpc-management-link{color:var(--text)}
html body #mps-indices-micro .mcm-blue{color:var(--blue)}html body #mps-indices-micro .mcm-green{color:var(--accent)}html body #mps-indices-micro .mcm-amber{color:var(--amber)}
html body #mpcIrrigation .mpc-irrigation-result,html body #mpcNutritionPlan .mpc-nutrition-current,html body #mpcPhenology .stage-track .stage.now>.ic{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body #mpcNutritionPlan .mpc-nutrition-current td:first-child{border-color:var(--border-h)}
html body .mp-m-summary .mp-m-unavailable,html body #mpMeasureParameter option:disabled{background:var(--glass2);color:var(--text-dim)}

/* Current clone calendar layout and icons; mypanel background only. */
#mpcCalendarClone{--cal-bg:#102a36;--cal-line:#294b58;--cal-text:#e8f2f6;--cal-muted:#9fb7c2;--cal-green:#67cda7;--cal-model:#d6aa69;max-width:1320px;margin:auto;color:var(--cal-text);font:inherit}
#mpcCalendarClone *{box-sizing:border-box}
#mpcCalendarClone .cal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
#mpcCalendarClone .cal-heading h1{font-size:25px;margin:6px 0}
#mpcCalendarClone .cal-heading p{font-size:12px;color:var(--cal-muted);margin:0;line-height:1.6}
#mpcCalendarClone .cal-heading .cal-eyebrow{color:var(--cal-green);font-size:10px;letter-spacing:1.4px;font-weight:700}
#mpcCalendarClone .cal-badge{font-size:10px;padding:6px 9px;background:rgba(213,171,94,.12);color:#e3c790;border:1px solid rgba(213,171,94,.3);border-radius:6px;white-space:nowrap}
#mpcCalendarClone .cal-intro{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}
#mpcCalendarClone .cal-crop-card,#mpcCalendarClone .cal-how,#mpcCalendarClone .cal-stats>section{background:var(--cal-bg);border:1px solid var(--cal-line);border-radius:12px;padding:16px}
#mpcCalendarClone .cal-crop-card{display:flex;align-items:center;gap:20px;background:linear-gradient(120deg,rgba(92,177,134,.18),transparent 60%),var(--cal-bg)}
#mpcCalendarClone .cal-crop-icon{width:100px;height:100px;flex-shrink:0;color:var(--cal-green);background:rgba(102,194,146,.06);border:1px solid rgba(102,194,146,.13);border-radius:50%;display:grid;place-items:center}
#mpcCalendarClone .cal-crop-icon svg{width:74px;height:74px}
#mpcCalendarClone .cal-crop-card h2{font-size:20px;margin:0 0 9px}
#mpcCalendarClone .cal-crop-card p,#mpcCalendarClone .cal-how p{font-size:12px;line-height:1.65;color:var(--cal-muted);margin:6px 0}
#mpcCalendarClone .cal-how h2{font-size:14px;margin:0 0 10px}
#mpcCalendarClone .cal-stats{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:14px;margin:18px 0 24px}
#mpcCalendarClone .cal-stats h2{font-size:11px;color:var(--cal-muted);font-weight:500;margin:3px 0 10px}
#mpcCalendarClone .cal-stats strong{font-size:21px;line-height:1.3;display:block}
#mpcCalendarClone .cal-stats small{display:block;font-size:10px;color:var(--cal-muted);line-height:1.5;margin-top:7px}
#mpcCalendarClone .cal-year{display:flex;align-items:center;gap:12px}
#mpcCalendarClone .cal-year>svg{width:90px;height:90px;flex-shrink:0}
#mpcCalendarClone .cal-ring-bg{fill:none;stroke:var(--cal-line);stroke-width:6}
#mpcCalendarClone #mpcCloneRing{fill:none;stroke:var(--cal-green);stroke-width:6;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}
#mpcCalendarClone #mpcClonePercent{fill:var(--cal-text);font-size:18px;font-weight:700}
#mpcCalendarClone .cal-year p{font-size:12px;line-height:1.6;margin:0}
#mpcCalendarClone .cal-year h2{font-weight:700;color:var(--cal-text);margin-bottom:8px}
#mpcCalendarClone .cal-stat-icon{height:23px;color:var(--cal-green);margin-bottom:8px}
#mpcCalendarClone .cal-stat-icon svg{height:23px;width:23px}
#mpcCalendarClone .cal-grid-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}
#mpcCalendarClone .cal-grid-heading h2{font-size:16px;margin:0}
#mpcCalendarClone .cal-grid-heading>span{font-size:11px;color:var(--cal-muted)}
#mpcCalendarClone .cal-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#mpcCalendarClone .cal-month{position:relative;border:1px solid var(--cal-line);border-radius:12px;background:var(--cal-bg);display:flex;flex-direction:column;min-width:0;overflow:hidden}
#mpcCalendarClone .cal-month[data-current=true]{border-color:var(--cal-green);box-shadow:0 0 0 1px rgba(85,202,162,.12);background:linear-gradient(160deg,rgba(75,174,135,.12),transparent 55%),var(--cal-bg)}
#mpcCalendarClone .cal-month-head{display:flex;align-items:center;gap:11px;padding:14px 14px 12px;border-bottom:1px solid var(--cal-line)}
#mpcCalendarClone .cal-month-symbol{display:grid;place-items:center;width:38px;height:38px;background:rgba(173,197,204,.06);border-radius:8px;color:var(--month-color,var(--cal-green));flex-shrink:0}
#mpcCalendarClone .cal-month-symbol svg{width:26px;height:26px}
#mpcCalendarClone .cal-month-head h3{font-size:14px;margin:0 0 4px}
#mpcCalendarClone .cal-month-head small{font-size:10px;color:var(--cal-muted)}
#mpcCalendarClone .cal-current{font-size:8px;color:var(--cal-green);position:absolute;top:7px;right:7px}
#mpcCalendarClone .cal-gdd{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--cal-muted);padding:10px 14px}
#mpcCalendarClone .cal-gdd strong{font-size:11px;color:var(--cal-text)}
#mpcCalendarClone .cal-gdd[data-source=model] strong,#mpcCalendarClone .cal-gdd[data-source=mixed] strong{color:var(--cal-model)}
#mpcCalendarClone .cal-month ul{list-style:none;margin:0;padding:0 14px 9px}
#mpcCalendarClone .cal-month li{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;margin:8px 0}
#mpcCalendarClone .cal-task-icon{width:16px;flex-shrink:0;color:var(--cal-green);padding-top:2px}
#mpcCalendarClone .cal-task-icon svg{width:16px;height:16px}
#mpcCalendarClone .cal-month details{margin-top:auto;border-top:1px solid var(--cal-line);padding:10px 14px;font-size:11px}
#mpcCalendarClone .cal-month summary{color:var(--cal-green);cursor:pointer}
#mpcCalendarClone .cal-month details>p{font-size:10px;line-height:1.6;color:var(--cal-muted);margin:10px 0}
#mpcCalendarClone .cal-month details ul{padding:0}
#mpcCalendarClone .cal-source-links{display:flex;flex-direction:column;gap:6px;margin-top:10px}
#mpcCalendarClone .cal-source-links a{color:var(--cal-muted);font-size:10px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
#mpcCalendarClone svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#mpcCalendarClone .cal-year>svg{stroke:none}
#mpcCalendarClone .cal-footer{border-top:1px solid var(--cal-line);padding-top:15px;margin-top:20px}
#mpcCalendarClone .cal-footer p{font-size:10px;line-height:1.6;color:var(--cal-muted);margin:7px 0}
#mpcCalendarClone .cal-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 5px 0 12px}
#mpcCalendarClone .cal-dot:first-child{margin-left:0}
#mpcCalendarClone .cal-dot.station{background:var(--cal-green)}
#mpcCalendarClone .cal-dot.model{background:var(--cal-model)}
#mpcCalendarClone .cal-dot.unverified{background:var(--cal-muted)}
html[data-theme="day"] #mpcCalendarClone{--cal-bg:#fff;--cal-line:#cbdde3;--cal-text:#173542;--cal-muted:#506e7d;--cal-green:#21845f;--cal-model:#916326}
html[data-theme="day"] #mpcCalendarClone .cal-badge{color:#865006}
@media(max-width:1060px){#mpcCalendarClone .cal-months{grid-template-columns:repeat(2,minmax(0,1fr))}
#mpcCalendarClone .cal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#mpcCalendarClone .cal-months,#mpcCalendarClone .cal-intro{grid-template-columns:1fr}
#mpcCalendarClone .cal-stats{grid-template-columns:1fr 1fr;gap:9px}
#mpcCalendarClone .cal-year{flex-direction:column;align-items:flex-start}
#mpcCalendarClone .cal-crop-card h2{font-size:18px}
#mpcCalendarClone .cal-crop-icon{height:74px;width:74px}
#mpcCalendarClone .cal-crop-icon svg{width:52px;height:52px}
#mpcCalendarClone .cal-heading{align-items:flex-start;flex-direction:column}
#mpcCalendarClone .cal-heading h1{font-size:21px}
#mpcCalendarClone .cal-grid-heading{align-items:flex-start;flex-direction:column}
#mpcCalendarClone .cal-stats>section{padding:12px}
#mpcCalendarClone .cal-stats strong{font-size:18px}}
#mpcCalendarClone .cal-provenance{font-size:9px;color:var(--cal-muted);padding:0 14px 5px}
#mpcCalendarClone .cal-gdd[data-source=model]+.cal-provenance,#mpcCalendarClone .cal-gdd[data-source=mixed]+.cal-provenance{color:var(--cal-model)}
#mpcCalendarClone #mpcCloneTemperature[data-source=model],#mpcCalendarClone #mpcCloneTemperature[data-source=mixed]{color:var(--cal-model)}
#mpcCalendarClone .cal-source-breakdown[data-source="model"]{color:#ddbd73}
html[data-theme="day"] #mpcCalendarClone .cal-source-breakdown[data-source="model"]{color:#7a570a}
#mpcCalendarClone #calendarSun[data-source="model"],#mpcCalendarClone #calendarDayLength[data-source="model"]{color:var(--cal-model)}
#mpcCalendarClone .cal-loading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin:0 0 12px;color:var(--cal-muted);font-size:12px}
#mpcCalendarClone .cal-loading button{font:inherit;padding:7px 12px;border:1px solid var(--cal-line);border-radius:7px;color:var(--cal-green);background:var(--cal-bg);cursor:pointer}
#mpcCalendarClone .cal-loading button:hover{border-color:var(--cal-green)}
#mpcCalendarClone .cal-loading [role="alert"]{color:var(--cal-model)}
#mpcCalendarClone .cal-crop-icon[data-photo="true"]{width:160px;height:132px;border-radius:9px;background-size:cover;background-position:center;position:relative;overflow:hidden}
#mpcCalendarClone .cal-crop-icon[data-photo="true"] svg{position:absolute;bottom:6px;left:6px;width:34px;height:34px;padding:5px;border-radius:6px;background:rgba(0,35,40,.82);color:#67cda7}
@media(max-width:640px){#mpcCalendarClone .cal-crop-icon[data-photo="true"]{width:100px;height:110px}
#mpcCalendarClone .cal-crop-card{gap:12px}}
html body #mpcCalendarClone{--cal-bg:var(--glass);max-width:1320px}

/* Requested fifth guide card follows the latest-temperature card. */
#mpcCalendarClone .cal-stats{grid-template-columns:minmax(170px,1.1fr) repeat(3,minmax(150px,1fr)) minmax(260px,1.6fr);gap:14px;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain;padding-bottom:8px;align-items:stretch}
#mpcCalendarClone .cal-stats>section{min-width:0;grid-column:auto;grid-row:1;overflow-wrap:anywhere}
#mpcCalendarClone .cal-stats>.cal-reading-guide h2{font-size:14px;font-weight:700;color:var(--cal-text);line-height:1.4}
#mpcCalendarClone .cal-stats>.cal-reading-guide p{font-size:12px;line-height:1.65;margin:8px 0;color:var(--cal-muted)}

/* Overview water cards: explicit tracks, no inherited absolute offsets. */
html body #view-overview .mp-water-grid>.mp-reading{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:minmax(32px,auto) minmax(36px,auto) minmax(44px,auto) auto;gap:8px;align-content:start;align-items:start;justify-content:normal;min-width:0;min-height:0;padding:12px;text-align:left}
html body #view-overview .mp-water-grid>.mp-reading>.mp-icon-disc{position:static;inset:auto;grid-column:1;grid-row:1;align-self:center;width:32px;height:32px;margin:0}
html body #view-overview .mp-water-grid>.mp-reading>.mp-icon-disc .ov-icon{width:22px;height:22px}
html body #view-overview .mp-water-grid>.mp-reading>.mp-badge{position:static;inset:auto;display:block;grid-column:2;grid-row:1;justify-self:start;align-self:center;min-width:0;max-width:100%;font-size:9px;line-height:1.4;padding:2px 5px;margin:0;white-space:normal;overflow-wrap:anywhere}
html body #view-overview .mp-water-grid>.mp-reading>h3{position:static;grid-column:1/-1;grid-row:2;order:initial;width:auto;min-width:0;min-height:0;margin:0;padding:0;font-size:12px;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere}
html body #view-overview .mp-water-grid>.mp-reading>b{position:static;grid-column:1/-1;grid-row:3;min-width:0;margin:0;font-size:clamp(24px,2.1vw,32px);line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:left}
html body #view-overview .mp-water-grid>.mp-reading>p{position:static;grid-column:1/-1;grid-row:4;min-width:0;max-width:100%;margin:0;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:left}

/* Overview columns: equipment/actions under water, forecast under cultivation. */
html body #view-overview .mp-overview-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-areas:"current current" "annual annual" "water crop" "equipment forecast" "quick forecast";align-items:start}
html body #view-overview .mp-current{grid-area:current}html body #view-overview .mp-annual{grid-area:annual}html body #view-overview .mp-water{grid-area:water}html body #view-overview .mp-crop{grid-area:crop}html body #view-overview .mp-equipment{grid-area:equipment}html body #view-overview .mp-quick{grid-area:quick}html body #view-overview .mp-overview-forecast{grid-area:forecast;align-self:start;background:var(--glass)}
html body #view-overview .mp-equipment .mp-reading{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px 8px;min-width:0;min-height:0;padding:10px}
html body #view-overview .mp-equipment .mp-icon-disc{position:static;inset:auto;grid-column:1;grid-row:1/3;width:32px;height:32px;align-self:center}html body #view-overview .mp-equipment .mp-icon-disc .ov-icon{width:22px;height:22px}
html body #view-overview .mp-equipment .mp-reading h3{grid-column:2;grid-row:1;font-size:12px;line-height:1.4;margin:0;min-width:0;overflow-wrap:anywhere}html body #view-overview .mp-equipment .mp-reading>b{grid-column:2;grid-row:2;font-size:20px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;min-width:0}html body #view-overview .mp-equipment .mp-reading>p{grid-column:1/-1;grid-row:3;margin:0;font-size:10px;line-height:1.5}
html body #view-overview .mp-quick-grid{gap:8px}html body #view-overview .mp-quick-grid>button{gap:8px;padding:9px;min-height:52px;min-width:0}html body #view-overview .mp-quick-grid .ov-icon{width:24px;height:24px}html body #view-overview .mp-quick-grid strong{font-size:12px}html body #view-overview .mp-quick-grid small{font-size:10px;line-height:1.4}html body #view-overview .mp-quick-grid>button>span{min-width:0;overflow-wrap:anywhere}
html body #view-overview .mp-overview-forecast .ov-forecast-scroll{overflow-x:auto}html body #view-overview .mp-overview-forecast .forecast-table{background:var(--glass)}html body #view-overview .mp-overview-forecast .forecast-table thead th{background:var(--glass2)}
@media(max-width:900px){html body #view-overview .mp-overview-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"current" "annual" "water" "equipment" "quick" "crop" "forecast"}}

/* Overview shared row heights; content remains unconstrained. */
@media(min-width:901px){
 html body #view-overview .mp-overview-grid{align-items:stretch}
 html body #view-overview .mp-water,html body #view-overview .mp-crop,html body #view-overview .mp-equipment,html body #view-overview .mp-quick,html body #view-overview .mp-overview-forecast{align-self:stretch}
}

/* Current reading detail lines: secondary, inside the existing four tiles. */
html body #view-overview .mp-current .mp-reading-detail{display:block;position:static;color:var(--text2);font-size:12px;font-weight:400;line-height:1.4;margin:4px 0 0;overflow-wrap:anywhere}

html body #mpMeasureSensorBattery[data-mp-hardware-tone="warning"]{color:#f59e0b}

html body #mpSensorBattery[data-mp-hardware-tone="warning"]{color:#f59e0b}
html body #view-overview .mp-hardware-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:600px){html body #view-overview .mp-hardware-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

html body #mpSensorBattery{white-space:normal;font-size:15px;line-height:1.3}
html body #mps-indices-micro .mcm-season .mcm-reading{grid-template-rows:18px minmax(21px,auto) minmax(36px,auto) auto auto}
html body #mcmChill{font-size:clamp(18px,2vw,30px)}
html body #mcmChillNote~button{grid-column:2;grid-row:5;justify-self:start;font-size:12px;white-space:normal}

/* Reviewed crop actions and export surfaces: current panel Day/Night tokens. */
html body #view-forecast #mpsForecast .mpf-spray-period{background:var(--glass2);border-color:var(--border)}
html body #view-forecast #mpsForecast .mpf-spray-period button{background:var(--glass2);color:var(--text);box-shadow:none}
html body #view-forecast #mpsForecast .mpf-spray-period button:hover:not(:disabled){background:var(--glass3);color:var(--accent)}
html body #view-forecast #mpsForecast .mpf-spray-period button[aria-pressed="true"]{background:var(--accent-dim);color:var(--accent);box-shadow:inset 0 0 0 1px var(--border-h)}
html body #view-forecast #mpsForecast .mpf-spray-period button[aria-pressed="true"]:hover:not(:disabled){background:var(--accent-dim);color:var(--accent)}
html body #view-forecast #mpsForecast .mpf-spray-period button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
html body #view-forecast #mpsForecast .mpf-spray-period button:disabled{background:var(--glass3);color:var(--text-dim);box-shadow:none;opacity:1}

html body #view-crops #mpsCropSummary .mpc-management-link{background:var(--glass2);color:var(--text);border-color:var(--border);box-shadow:none}
html body #view-crops #mpsCropSummary .mpc-management-link>p{color:var(--text2)}
html body #view-crops #mpsCropSummary .mpc-management-link .mpc-link-action{color:var(--accent)}
html body #view-crops #mpsCropSummary .mpc-management-link:hover:not(:disabled),
html body #view-crops #mpsCropSummary .mpc-management-link[aria-pressed="true"],
html body #view-crops #mpsCropSummary .mpc-management-link[aria-selected="true"],
html body #view-crops #mpsCropSummary .mpc-management-link[aria-current="page"]{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body #view-crops #mpsCropSummary .mpc-management-link:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
html body #view-crops #mpsCropSummary .mpc-management-link:disabled{background:var(--glass3);color:var(--text-dim);border-color:var(--border);opacity:1}
html body #view-crops #mpsCropSummary .mpc-management-link:disabled>p,
html body #view-crops #mpsCropSummary .mpc-management-link:disabled .mpc-link-action,
html body #view-crops #mpsCropSummary .mpc-management-link:disabled .ov-icon{color:var(--text-dim)}

/* Shared .cd-export exists in the legacy form and the installed template clone. */
html body #view-crops .cd-export{--cd-bg:var(--glass);--cd-line:var(--border);--cd-text:var(--text);--cd-muted:var(--text2);--cd-green:var(--accent);background:var(--glass);border-color:var(--border);color:var(--text)}
html body #view-crops .cd-export h2{color:var(--text)}
html body #view-crops .cd-export p,html body #view-crops .cd-export .cd-controls label>span{color:var(--text2)}
html body #view-crops .cd-export .cd-symbol{color:var(--accent)}
html body #view-crops .cd-export .cd-controls input,html body #view-crops .cd-export .cd-controls select{background:var(--glass2);color:var(--text);border-color:var(--border);color-scheme:inherit}
html body #view-crops .cd-export .cd-controls select option{background:var(--g1);color:var(--text)}
html body #view-crops .cd-export .cd-controls button{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body #view-crops .cd-export .cd-controls button:hover:not(:disabled){background:var(--glass2);color:var(--accent);border-color:var(--border-h)}
html body #view-crops .cd-export .cd-controls :focus-visible{outline:2px solid var(--blue);outline-offset:3px}
html body #view-crops .cd-export .cd-controls button:disabled,html body #view-crops .cd-export .cd-controls input:disabled,html body #view-crops .cd-export .cd-controls select:disabled{background:var(--glass3);color:var(--text-dim);border-color:var(--border);opacity:1}
html body #view-crops .cd-export [data-error="true"]{color:var(--red)}

/* Data/report controls: override only their legacy colour declarations. */
html body #view-reports #mps-data-reports{--rep-accent:var(--accent);--rep-blue:var(--blue);--rep-muted:var(--text2);--rep-border:var(--border);--rep-surface:var(--glass2);--rep-text:var(--text);color:var(--text);color-scheme:inherit}
html body #view-reports #mps-data-reports .rep-panel{background:var(--glass)!important;border-color:var(--border)!important;color:var(--text);box-shadow:none!important}
html body #view-reports #mps-data-reports .rep-filters{border-top-color:var(--border)!important}
html body #view-reports #mps-data-reports .rep-table-wrap{border-color:var(--border)!important}
html body #view-reports #mps-data-reports .rep-table th{background:var(--glass2)!important;color:var(--text2)!important;border-color:var(--border)!important}
html body #view-reports #mps-data-reports .rep-table td{color:var(--text);border-color:var(--border)}
html body #view-reports #mps-data-reports .rep-empty b{color:var(--text)!important}
html body #view-reports #mps-data-reports select,
html body #view-reports #mps-data-reports input:not([type="checkbox"]){background:var(--glass2)!important;color:var(--text)!important;border-color:var(--border)!important;color-scheme:inherit!important}
html body #view-reports #mps-data-reports option{background:var(--g1);color:var(--text)}
html body #view-reports #mps-data-reports input[type="checkbox"]{accent-color:var(--accent)}
html body #view-reports #mps-data-reports #reportMetrics label{background:var(--glass2)!important;color:var(--text2)!important;border-color:var(--border)}
html body #view-reports #mps-data-reports #reportMetrics label:has(input:checked){background:var(--accent-dim)!important;color:var(--accent)!important;border-color:var(--border-h)}
html body #view-reports #mps-data-reports #reportMetrics legend{color:var(--text)!important}
html body #view-reports #mps-data-reports .rep-summary{background:var(--accent-dim)!important;color:var(--text)!important;border-color:var(--border-h)}
html body #view-reports #mps-data-reports .rep-error{color:var(--red)!important}
html body #view-reports #mps-data-reports .rep-icon{color:var(--blue)}
html body #view-reports #mps-data-reports .rep-heading>.rep-icon{color:var(--accent)!important}
html body #view-reports #mps-data-reports .rep-format.pdf .rep-icon{color:var(--red)!important}
html body #view-reports #mps-data-reports .rep-format.csv .rep-icon,
html body #view-reports #mps-data-reports .rep-format.xlsx .rep-icon{color:var(--accent)}
html body #view-reports #mps-data-reports :is(.rep-primary,.rep-outline,.rep-type,.rep-format){background:var(--glass2)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none}
html body #view-reports #mps-data-reports .rep-primary,
html body #view-reports #mps-data-exports .mps-action,
html body #view-reports #mpsOpenMeteoForm .mps-action{background:var(--accent-dim)!important;color:var(--accent)!important;border-color:var(--border-h)!important}
html body #view-reports #mps-data-reports :is(.rep-primary,.rep-outline,.rep-type,.rep-format):hover:not(:disabled),
html body #view-reports #mps-data-exports .mps-action:hover:not(:disabled),
html body #view-reports #mpsOpenMeteoForm .mps-action:hover:not(:disabled){background:var(--glass2)!important;color:var(--accent)!important;border-color:var(--border-h)!important}
html body #view-reports #mps-data-reports :is(.rep-type,.rep-format).selected,
html body #view-reports #mps-data-reports :is(.rep-type,.rep-format)[aria-pressed="true"],
html body #view-reports #mps-data-reports :is(.rep-type,.rep-format)[aria-pressed="true"]:hover:not(:disabled){background:var(--accent-dim)!important;color:var(--accent)!important;border-color:var(--border-h)!important;box-shadow:inset 0 0 0 1px var(--border-h)}
html body #view-reports #mps-data-reports :is(button,input,select):focus-visible,
html body #view-reports #mps-data-exports .mps-action:focus-visible,
html body #view-reports #mpsOpenMeteoForm .mps-action:focus-visible{outline:2px solid var(--blue)!important;outline-offset:3px}
html body #view-reports #mps-data-reports :is(button,input,select):disabled,
html body #view-reports #mps-data-reports :is(.rep-type,.rep-format)[aria-pressed="true"]:disabled,
html body #view-reports #mps-data-exports .mps-action:disabled,
html body #view-reports #mpsOpenMeteoForm .mps-action:disabled{background:var(--glass3)!important;color:var(--text-dim)!important;border-color:var(--border)!important;box-shadow:none;opacity:1}

/* Scientific documentation: same card surfaces as Overview, existing tone accents. */
html body #view-crops #crop-data .crop-data{--cd-bg:var(--glass);--cd-line:var(--border);--cd-text:var(--text);--cd-muted:var(--text2);--cd-green:var(--accent);color:var(--text);background:transparent}
html body #view-crops #crop-data .cd-heading,html body #view-crops #crop-data .cd-source-bar,html body #view-crops #crop-data .cd-science-grid{background:transparent;color:var(--text)}
html body #view-crops #crop-data .cd-card{background:var(--glass);border-color:var(--border);color:var(--text)}
html body #view-crops #crop-data .cd-card h3{color:var(--accent);border-color:var(--border)}
html body #view-crops #crop-data .cd-card[data-kind="pests"] h3{color:var(--red)}
html body #view-crops #crop-data .cd-card[data-kind="diseases"] h3,html body #view-crops #crop-data .cd-card[data-kind="sources"] h3{color:var(--amber)}
html body #view-crops #crop-data .cd-card[data-kind="physiology"] h3,html body #view-crops #crop-data .cd-card[data-kind="water"] h3{color:var(--blue)}
html body #view-crops #crop-data .cd-card-body,html body #view-crops #crop-data .cd-heading h2{color:var(--text)}
html body #view-crops #crop-data .cd-card-body b,html body #view-crops #crop-data .cd-card-body strong{color:var(--accent)}
html body #view-crops #crop-data .cd-card-body i,html body #view-crops #crop-data .cd-card-body em{color:var(--text2)}
html body #view-crops #crop-data .cd-card-body a{color:var(--blue)}
html body #view-crops #crop-data .cd-card-body th{background:var(--glass2);color:var(--text2);border-color:var(--border)}
html body #view-crops #crop-data .cd-card-body td{border-color:var(--border)}
html body #view-crops #crop-data .cd-source-bar button{background:var(--accent-dim);color:var(--accent);border-color:var(--border-h)}
html body #view-crops #crop-data .cd-source-bar button:hover:not(:disabled){background:var(--glass2);color:var(--accent);border-color:var(--border-h)}
html body #view-crops #crop-data .cd-source-bar button:disabled{background:var(--glass3);color:var(--text-dim);border-color:var(--border);opacity:1}
html body #view-crops #crop-data :focus-visible{outline:2px solid var(--blue);outline-offset:3px}
html body #view-crops #crop-data .cd-status[data-error="true"]{color:var(--red)}
html body[data-mps-crop="cropData"] #view-crops #installedCropView{--panel:var(--glass);--line:var(--border);--muted:var(--text2);background:transparent;color:var(--text)}
html body[data-mps-crop="cropData"] #view-crops #installedCropView .cv-card,
html body[data-mps-crop="cropData"] #view-crops #installedCropView .cv-message{background:var(--glass)!important;border-color:var(--border)!important;color:var(--text)}
html body[data-mps-crop="cropData"] #view-crops #installedCropView .cv-notes{background:transparent}
html body[data-mps-crop="cropData"] #view-crops #installedCropView .cv-note,
html body[data-mps-crop="cropData"] #view-crops #installedCropView .cv-source{color:var(--text2)}
html body[data-mps-crop="cropData"] #view-crops #installedCropView .cv-source a{color:var(--blue)}
html body[data-mps-crop="cropData"] #view-crops #installedCropView :focus-visible{outline:2px solid var(--blue);outline-offset:3px}
