/* ================================================================
   climate-inline.css — extracted verbatim from html/climate.html's inline
   <style> block on 30 October 2026 (the parked sweep of 29 October,
   redone on the page as it then stood). Moves only: no selector, property
   or value was changed. The page links this sheet exactly where the block
   stood, so the cascade is unchanged.
   ================================================================ */

    /* ── Drop zone ── */
    .climate-drop-zone {
      border: 2px dashed #d0d5dd;
      border-radius: 10px;
      padding: 2.5rem 2rem;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      background: #fafafa;
      margin-bottom: 1.25rem;
    }
    .climate-drop-zone:hover,
    .climate-drop-zone.drag-over {
      border-color: #4a9c75;
      background: color-mix(in srgb, #4a9c75 5%, transparent);
    }
    .climate-drop-zone p { margin: 0.25rem 0; color: #6b7280; font-size: 0.9rem; }
    .climate-drop-zone .climate-drop-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .climate-drop-zone .btn { pointer-events: none; }
    /* Waiting while an upload stores and shares its days (climate-upload.js _holdUpload). */
    .climate-drop-zone.is-held { opacity: 0.55; cursor: progress; }
    .climate-gh-held { font-size: 0.8rem; color: var(--text-secondary, #93a48d); margin: 0.25rem 0 0; }

    /* ── Claude's summary on the Dagrapport tab ── */
    .brief-gen-time { font-size:0.75rem; color:var(--text-secondary,#93a48d); white-space:nowrap; }
    .brief-summary { background:rgba(26,122,74,0.16); border-top:1px solid rgba(167,215,184,0.2); padding:0.9rem 1.25rem; }
    .brief-summary-label { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--accent,#c9a45c); margin-bottom:0.3rem; }
    .brief-summary-text { font-size:0.9rem; line-height:1.6; color:var(--text-primary,#f3f0e7); margin:0; }
    .brief-section-title { font-size:1rem; font-weight:700; padding:0.9rem 1.25rem 0.5rem; border-top:1px solid var(--border,rgba(243,240,231,0.12)); color:var(--text-primary,#f3f0e7); }
    /* The evidence under a card, "Uw uitgangspunten" and "Berekende parameters".
       In --text-secondary, like every other secondary line: #c3cebd was set for
       the dark theme (26 Jul) and stayed when the cards turned white (16 Aug),
       1.6:1 — the numbers behind a card were the hardest text on the page (BRIEF-12). */
    .brief-bullets { margin:0; padding:0.6rem 1rem 0.8rem 2.25rem; font-size:0.85rem; color:var(--text-secondary,#93a48d); line-height:1.85; border-top:1px solid var(--border,rgba(243,240,231,0.1)); }
    .brief-bullets li { color:inherit; }
    /* What Claude's summary is, right under it (climate-brief.js, 25 October 2026). */
    .brief-ai-note { font-size:0.75rem; color:var(--text-secondary,#93a48d); font-style:italic; margin:0.5rem 0 0; }
    /* Claude's summary in the Dagrapport tab: room kept while it loads, so the
       day below does not jump when it arrives (27 October 2026). */
    .climate-brief-slot { min-height: 3.5rem; margin: 0 0 1rem; }
    .brief-summary-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-bottom: 0.4rem; }
    .brief-summary-head .btn { font-size: 0.82rem; margin-left: auto; }
    /* The folds under the day: the calculated values, and "Ask Claude about this day". */
    .climate-derived, .climate-ask-claude { margin-top: 1rem; }
    .climate-ask-claude .brief-feedback-block { padding-left: 0; padding-right: 0; }
    .brief-feedback-block { padding:0.4rem 1.25rem 0.6rem; }
    .brief-feedback-hint { font-size:0.78rem; color:var(--text-secondary,#93a48d); margin:0 0 0.4rem; }
    .brief-feedback-text { width:100%; box-sizing:border-box; font-size:0.85rem; font-family:inherit; padding:0.5rem 0.6rem; border-radius:6px; border:1px solid var(--border,rgba(243,240,231,0.2)); background:var(--surface-elev,#0b1a11); color:var(--text-primary,#f3f0e7); margin-bottom:0.45rem; resize:vertical; }
    .brief-feedback-status { font-size:0.78rem; color:var(--accent,#c9a45c); margin-left:0.6rem; }
    /* The conversation about a day (climate-brief-chat.js). */
    .brief-chat-thread { display:flex; flex-direction:column; gap:0.6rem; margin:0.6rem 0; }
    .brief-chat-msg { max-width:46rem; border:1px solid var(--border,rgba(243,240,231,0.15)); border-radius:8px; padding:0.55rem 0.8rem; }
    .brief-chat-msg--user { align-self:flex-end; background:var(--surface-elev,#0b1a11); }
    .brief-chat-msg--claude { align-self:flex-start; }
    .brief-chat-who { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-secondary,#93a48d); margin-bottom:0.2rem; }
    .brief-chat-text { white-space:pre-wrap; font-size:0.86rem; line-height:1.55; color:var(--text-primary,#f3f0e7); }
    .brief-chat-actions { display:flex; flex-wrap:wrap; align-items:center; gap:0.45rem; margin-top:0.45rem; }
    .brief-chat-count { font-size:0.78rem; color:var(--text-secondary,#93a48d); }
    /* Fields in an LLM-drafted rule the grower should confirm. */
    .needs-confirm { border:1.5px solid var(--accent-mid,#d8bd84) !important; box-shadow:0 0 0 2px rgba(216,189,132,0.18); }

    /* ── "Plot this day in Psychro": under Today's metrics and in the
          Dagrapport's calculated parameters ── */
    .climate-psychro-link { margin:-0.25rem 0 1rem; font-size:0.85rem; }
    .climate-psychro-link a { display:inline-flex; align-items:center; gap:0.4rem; }

    /* ── Outdoor strip ── */
    .climate-outdoor-strip { display:flex; align-items:baseline; gap:0.5rem; padding:0.55rem 0.8rem; background:#f0f9ff; border:1px solid #bae6fd; border-radius:7px; margin-bottom:1rem; font-size:0.88rem; flex-wrap:wrap; }
    .climate-outdoor-label { font-weight:600; color:#0369a1; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.04em; flex-shrink:0; }

    /* ── Control panel ── */
    .climate-control-panel { background:#fafafa; border:1px solid #e5e7eb; border-radius:8px; padding:0.9rem 1rem; margin-bottom:1.25rem; }
    .climate-control-row { display:flex; flex-wrap:wrap; align-items:center; gap:0.4rem; margin-bottom:0.5rem; }
    .climate-control-lbl { font-size:0.73rem; font-weight:600; color:#6b7280; text-transform:uppercase; letter-spacing:0.04em; min-width:90px; flex-shrink:0; }
    .climate-setpoint-chip { font-size:0.8rem; padding:0.15rem 0.5rem; background:#e0f2fe; color:#0369a1; border-radius:4px; font-weight:500; }
    .climate-actuator-chip { font-size:0.8rem; padding:0.15rem 0.5rem; background:#f3f4f6; color:#374151; border-radius:4px; }

    /* ── Band bar ── */
    .climate-band-bar-wrap { margin-top:0.75rem; }
    .climate-band-bar { display:flex; height:16px; border-radius:4px; overflow:hidden; background:#e5e7eb; margin:0.35rem 0; }
    .climate-band-seg--below { background:#ef4444; }
    .climate-band-seg--dead  { background:#4a9c75; }
    .climate-band-seg--above { background:#f97316; }
    .climate-band-seg--unknown { background:#d1d5db; }
    .climate-band-legend { display:flex; gap:0.75rem; font-size:0.75rem; flex-wrap:wrap; color:#6b7280; }
    .climate-conflict-chip { display:inline-block; margin-top:0.5rem; padding:0.25rem 0.65rem; background:#fee2e2; color:#991b1b; border-radius:5px; font-size:0.8rem; font-weight:600; }

    /* ── Duration bar list ── */
    .climate-duration-bar-list { margin-top:0.5rem; }
    .climate-duration-bar-row { display:grid; grid-template-columns:160px 1fr 60px; align-items:center; gap:0.5rem; padding:0.3rem 0; border-bottom:1px solid #f0f0f0; font-size:0.83rem; }
    .climate-duration-bar-row:last-child { border-bottom:none; }
    .climate-duration-bar-track { height:8px; background:#e5e7eb; border-radius:4px; overflow:hidden; }
    .climate-duration-bar-fill { height:100%; border-radius:4px; }
    .climate-duration-bar-val { text-align:right; font-weight:600; font-size:0.82rem; white-space:nowrap; }

    /* ── Greenhouse selector ──
       Only the Model tab's picker, out in the page (climate-model-ui.js); the
       rail's two are plain sections styled by tool-workspace.css. */
    .climate-gh-select { display: flex; align-items: center; gap: 0.5rem; }
    .climate-gh-select label { font-size: 0.82rem; font-weight: 600; color: #6b7280; white-space: nowrap; }
    .climate-gh-select select { font-size: 0.85rem; padding: 0.3rem 0.6rem; border-radius: 6px; border: 1px solid #d0d5dd; background: #fff; }

    /* ── Preview ── */
    .climate-preview-section { margin-top: 1.5rem; }
    .climate-preview-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
    .climate-preview-group { margin-bottom: 1rem; }
    .climate-preview-group label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary, #93a48d); display: block; margin-bottom: 0.4rem; }
    .climate-preview-date-val { font-family: var(--font-mono, monospace); font-size: 0.95rem; color: #111; }
    /* Mapping review table — what will be stored + destination */
    /* A rule's condition in words (climate-rules-ui.js _ruleConditionText). */
    .climate-rule-condition { font-family: var(--font-mono, monospace); font-size: 0.78rem; color: var(--text-secondary, #93a48d); margin: 0.25rem 0; }
    .climate-rule-composite-note { font-size: 0.8rem; margin: 0 0 0.35rem; }
    /* A Dagrapport written from older inputs (climate-brief.js). */
    .brief-stale { margin: 0.4rem 0 0; font-size: 0.8rem; color: #b45309; }
    /* Rules this greenhouse can switch on (climate-rule-catalogue.js). */
    .climate-rule-catalogue { margin-top: 1.5rem; }
    .climate-rule-catalogue > summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
    .climate-rule-catalogue-note { font-size: 0.82rem; color: var(--text-secondary, #93a48d); margin: 0.5rem 0 0.75rem; }
    .climate-rule-item--available { border-style: dashed; }
    /* The entry a report on a day was sent to (climate-rule-catalogue.js, 8 November 2026). */
    .climate-rule-item--wanted { border-style: solid; border-color: #b45309; }
    .climate-rule-evidence { font-size: 0.8rem; color: var(--text-secondary, #93a48d); margin: 0.25rem 0 0.5rem; }
    .climate-rule-adopt { font-size: 0.8rem; padding: 0.25rem 0.8rem; }
    .climate-review-dest { font-size: 0.82rem; margin: 0 0 0.55rem; color: var(--text-secondary, #93a48d); }
    .climate-review-dest strong { color: var(--accent, #c9a45c); font-weight: 600; }
    .climate-review-dest--warn { color: #b45309; }
    .climate-review-scroll { overflow-x: auto; border: 1px solid var(--border, rgba(243,240,231,0.12)); border-radius: 8px; }
    .climate-review-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
    .climate-review-table th { text-align: left; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--text-muted, #7e8e79); padding: 0.5rem 0.7rem; background: var(--surface-elev, #0b1a11); border-bottom: 1px solid var(--border, rgba(243,240,231,0.12)); white-space: nowrap; }
    .climate-review-table td { padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--border, rgba(243,240,231,0.07)); vertical-align: top; }
    .climate-review-table tr:last-child td { border-bottom: none; }
    .climate-review-raw { font-family: var(--font-mono, monospace); color: var(--text-primary, #f3f0e7); word-break: break-word; }
    .climate-review-src { color: var(--text-secondary, #93a48d); }
    .climate-review-arrow { color: var(--accent, #c9a45c); text-align: center; padding-left: 0; padding-right: 0; }
    .climate-review-field strong { color: var(--text-primary, #f3f0e7); font-weight: 600; }
    .climate-review-val { font-family: var(--font-mono, monospace); color: var(--accent, #c9a45c); text-align: right; white-space: nowrap; }
    .climate-review-muted { color: var(--text-muted, #7e8e79); font-size: 0.72rem; }
    .climate-review-badge { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.05rem 0.35rem; border-radius: 4px; background: var(--accent-tint-12, rgba(201,164,92,0.14)); color: var(--accent, #c9a45c); }
    .climate-review-tip { font-size: 0.76rem; color: var(--text-muted, #7e8e79); margin: 0 0 0.55rem; }
    .climate-review-fieldwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
    .climate-review-field .climate-map-select { min-width: 190px; }
    .climate-review-row--pending td { background: rgba(201,164,92,0.05); }
    .climate-review-badge--pending { background: rgba(224,164,88,0.16); color: #b45309; }
    .climate-review-apply { padding: 0.24rem 0.6rem; font-size: 0.72rem; }
    /* The columns that can go to one field, drawn together (climate-upload-mapping.js). */
    .climate-review-group td { padding-top: 0.6rem; font-size: 0.76rem; color: var(--text-secondary, #93a48d); background: var(--surface-elev, #0b1a11); }
    .climate-review-group strong { color: var(--text-primary, #f3f0e7); font-weight: 600; }
    .climate-review-row--grouped td:first-child { box-shadow: inset 3px 0 0 var(--accent, #c9a45c); padding-left: 1.1rem; }
    .climate-review-badge--stored { background: rgba(21,128,61,0.14); color: #166534; }
    .climate-review-note { display: block; margin-top: 0.3rem; font-size: 0.72rem; color: var(--text-muted, #7e8e79); }
    .climate-review-result { margin: 0 0 0.55rem; font-size: 0.82rem; color: #166534; }
    .climate-review-result--warn { color: #b45309; }
    /* A table that maps every column as last time, folded to one line (climate-upload-mapping.js). */
    .climate-review-fold > summary { cursor: pointer; font-size: 0.82rem; margin-bottom: 0.55rem; }
    .climate-stored-columns { margin: 0.6rem 0 0; font-size: 0.82rem; }
    .climate-stored-columns summary { cursor: pointer; }
    .climate-stored-columns-title { margin: 0.5rem 0 0.2rem; font-weight: 600; }
    .climate-stored-columns ul { margin: 0; padding-left: 1.1rem; overflow-wrap: anywhere; }
    .climate-map-newfield-row td { padding: 0 0.7rem 0.6rem; border-bottom: 1px solid var(--border, rgba(243,240,231,0.07)); }
    #climate-preview-review.is-remapping { opacity: 0.55; pointer-events: none; transition: opacity 0.12s; }
    .climate-field-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .climate-field-tag { font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 4px; font-family: var(--font-mono, monospace); }
    .climate-field-tag--ok      { background: #d1fae5; color: #065f46; }
    .climate-field-tag--missing { background: #f3f4f6; color: #4b5563; } /* a missing field still has to be read; #9ca3af was 2.3:1 */
    .climate-field-tag--warn    { background: #fef3c7; color: #92400e; }
    .climate-field-tag--calc    { background: #e0f2fe; color: #075985; }
    .climate-warning-item { font-size: 0.85rem; color: #92400e; padding: 0.2rem 0; }

    /* ── Column-mapping UI (near-match + unrecognised) — dark-theme aware ── */
    .climate-map-section { flex: 1 1 100%; width: 100%; margin-top: 0.25rem; }
    .climate-map-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.9rem 0 0.55rem; }
    .climate-map-title--suggest { color: var(--accent, #c9a45c); }
    .climate-map-title--unrec { color: var(--text-secondary, #93a48d); }
    .climate-map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.6rem; align-items: start; }
    .climate-map-card { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.7rem 0.8rem; border-radius: 8px; background: var(--bg-card, #0f2117); border: 1px solid var(--border, rgba(243,240,231,0.12)); }
    .climate-map-card--suggest { border-left: 3px solid var(--accent, #c9a45c); }
    .climate-map-card--unrec { border-left: 3px solid var(--text-muted, #7e8e79); }
    .climate-map-raw-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
    .climate-map-raw { font-family: var(--font-mono, monospace); font-size: 0.82rem; color: var(--text-primary, #f3f0e7); word-break: break-word; }
    .climate-map-source { font-size: 0.72rem; color: var(--text-muted, #7e8e79); line-height: 1.35; display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: baseline; }
    .climate-map-source-label { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.62rem; font-weight: 600; color: var(--text-secondary, #93a48d); }
    .climate-map-source span:last-child { color: var(--text-primary, #f3f0e7); }
    .climate-map-suggest-line { font-size: 0.8rem; color: var(--text-secondary, #93a48d); line-height: 1.4; }
    .climate-map-suggest-line strong { color: var(--text-primary, #f3f0e7); font-weight: 600; }
    .climate-map-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
    .climate-map-btn { font-size: 0.78rem; padding: 0.32rem 0.7rem; border-radius: 6px; cursor: pointer; border: 1px solid transparent; font-family: inherit; transition: background 0.12s, border-color 0.12s, color 0.12s; }
    .climate-map-btn--primary { background: var(--accent, #c9a45c); color: #fff; font-weight: 600; }
    .climate-map-btn--primary:hover { background: var(--accent-dark, #14532d); }
    .climate-map-btn--ghost { background: transparent; border-color: var(--border, rgba(243,240,231,0.16)); color: var(--text-secondary, #93a48d); }
    .climate-map-btn--ghost:hover { color: var(--text-primary, #f3f0e7); border-color: var(--border-hover, rgba(243,240,231,0.24)); }
    .climate-map-alt { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
    .climate-map-select { flex: 1; min-width: 150px; font-size: 0.8rem; padding: 0.32rem 0.5rem; border-radius: 6px; border: 1px solid var(--border, rgba(243,240,231,0.2)); background: var(--surface-elev, #0b1a11); color: var(--text-primary, #f3f0e7); }
    .climate-new-field-form { width: 100%; margin-top: 0.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.6rem; background: var(--surface-elev, #0b1a11); border: 1px solid var(--border, rgba(243,240,231,0.14)); border-radius: 6px; }
    .climate-new-field-form label { font-size: 0.72rem; font-weight: 600; display: block; margin-bottom: 0.2rem; color: var(--text-secondary, #93a48d); }
    .climate-new-field-form input { width: 100%; font-size: 0.82rem; padding: 0.32rem 0.5rem; border-radius: 5px; border: 1px solid var(--border, rgba(243,240,231,0.2)); background: var(--bg-card, #0f2117); color: var(--text-primary, #f3f0e7); box-sizing: border-box; }

    /* ── Status ── */
    .climate-status { font-size: 0.88rem; padding: 0.6rem 0.9rem; border-radius: 6px; margin: 0.75rem 0; }
    .climate-status:empty { display: none; }
    .climate-status--error   { background: #fee2e2; color: #991b1b; }
    .climate-status--success { background: #d1fae5; color: #065f46; }
    .climate-status--loading { background: #f3f4f6; color: #4b5563; }

    /* ── Replace-day warning ── */
    .climate-replace-warning { margin: 0.75rem 0; padding: 0.75rem 0.9rem; border: 1px solid #d97706; border-left-width: 4px; border-radius: 8px; background: rgba(217,119,6,0.08); }
    .climate-replace-warning.hidden { display: none; }
    .climate-replace-warning p { margin: 0 0 0.6rem; font-size: 0.86rem; line-height: 1.5; }
    .climate-replace-warning-actions { display: flex; gap: 0.6rem; }

    /* ── Multi-day upload summary ── */
    .climate-upload-summary { margin: 1rem 0; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 8px; overflow: hidden; }
    .climate-upload-summary table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
    .climate-upload-summary th, .climate-upload-summary td { padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
    .climate-upload-summary th { font-weight: 600; color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
    .climate-upload-summary tr:last-child td { border-bottom: none; }
    .climate-upload-summary-status--new { color: #166534; }
    .climate-upload-summary-status--replaced { color: #b45309; }
    .climate-upload-summary-status--failed { color: #dc2626; }

    /* ── Check before storing (climate-preview.js) ──
       The page is light (modern-neutral.css); status colours are the AA-safe
       shades the imports card uses. */
    .climate-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
    .climate-strip-item { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.4rem 0.65rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 7px; min-width: 0; max-width: 100%; }
    .climate-strip-item span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary, #93a48d); }
    .climate-strip-item strong { font-size: 0.86rem; font-weight: 600; overflow-wrap: anywhere; }
    .climate-strip-item--warn { border-color: #d97706; }
    .climate-strip-item--warn strong { color: #b45309; }
    .climate-days-table { overflow-x: auto; margin-bottom: 1rem; }
    .climate-days-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
    .climate-days-table th, .climate-days-table td { padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
    .climate-days-table th { font-weight: 600; color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
    .climate-days-table tr.climate-day-row { cursor: pointer; }
    .climate-days-table tr.climate-day-row:hover td { background: rgba(201,164,92,0.06); }
    .climate-days-table tr.is-selected td { background: rgba(201,164,92,0.12); }
    .climate-days-table tr.is-skipped td { color: var(--text-secondary, #93a48d); }
    .climate-day-badge { display: inline-block; font-size: 0.68rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: #fef3c7; color: #b45309; font-weight: 600; }
    .climate-day-status { font-weight: 600; }
    .climate-day-status--ok { color: #15803d; }
    .climate-day-status--warn { color: #b45309; }
    .climate-day-status--muted { color: var(--text-secondary, #93a48d); font-weight: 500; }
    .climate-confirm-unstored, .climate-preview-date-note { font-size: 0.82rem; color: #92400e; margin: 0.6rem 0 0.4rem; }
    .climate-confirm-note { font-size: 0.8rem; color: var(--text-secondary, #93a48d); margin: 0.75rem 0 0.4rem; }
    #climate-confirm-status { margin: 0 0 0.5rem; }
    .climate-upload-open { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
    .climate-upload-marked { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0; font-size: 0.82rem; color: var(--text-secondary, #93a48d); }
    .climate-upload-fill { margin: 0 0 0.75rem; padding: 0.6rem 0.85rem; border: 1px solid #d97706; border-left-width: 4px; border-radius: 8px; background: rgba(217,119,6,0.08); font-size: 0.86rem; line-height: 1.5; }
    .climate-upload-fill[hidden] { display: none; }
    .climate-switch { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
    .climate-switch:empty { display: none; }
    .climate-switch-btn, .climate-readings-chip { font: inherit; font-size: 0.78rem; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--border, rgba(243,240,231,0.25)); background: transparent; color: inherit; cursor: pointer; }
    .climate-switch-btn.is-on, .climate-readings-chip.is-on { background: #15803d; border-color: #15803d; color: #fff; }
    .climate-review-val .climate-spark { vertical-align: middle; margin-right: 0.45rem; }
    .climate-spark path { fill: none; stroke: #4a9c75; stroke-width: 1.5; }
    #climate-preview-missing summary { cursor: pointer; font-size: 0.82rem; }
    #climate-preview-missing details .climate-field-tags { margin-top: 0.4rem; }
    /* The upload's files (climate-upload-files.js): several exports of one greenhouse. */
    .climate-upload-files { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
    .climate-upload-files:empty { display: none; }
    .climate-file-chip { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; padding: 0.25rem 0.3rem 0.25rem 0.65rem; border: 1px solid var(--border, rgba(243,240,231,0.25)); border-radius: 999px; font-size: 0.8rem; overflow-wrap: anywhere; }
    .climate-file-span { color: var(--text-secondary, #93a48d); font-size: 0.72rem; }
    .climate-file-no { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #15803d; color: #fff; font-size: 0.68rem; font-weight: 600; }
    .climate-file-remove { font: inherit; line-height: 1; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: none; background: transparent; color: inherit; cursor: pointer; }
    .climate-file-remove:hover { background: rgba(201,164,92,0.15); }
    .climate-file-add { font-size: 0.8rem; padding: 0.25rem 0.75rem; }
    .climate-review-file { display: block; font-size: 0.7rem; color: var(--text-muted, #7e8e79); white-space: nowrap; }
    .climate-drop-several { font-size: 0.78rem; }
    /* Which export to make, folded under the drop zone, not in it: on a phone
       a list inside the zone would push it off the first screen (GAP3-1). */
    .climate-export-help { margin: -0.5rem 0 1.25rem; font-size: 0.84rem; line-height: 1.5; color: var(--text-secondary, #93a48d); }
    .climate-export-help > summary { cursor: pointer; font-weight: 600; color: var(--text-primary, #f3f0e7); }
    .climate-export-help p { margin: 0.45rem 0 0; }
    .climate-export-help ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
    .climate-export-help li { margin: 0.15rem 0; }
    /* What a tab is for, one line under its heading (ARR-7). */
    .climate-tab-sub { font-size: 0.82rem; color: var(--text-secondary, #93a48d); margin: -0.35rem 0 0.9rem; line-height: 1.5; }
    /* The name over the tabs that are set up once (ARR-7). In the first tab's
       top padding rather than an element of its own: every child of the
       tablist stays a tab (tab_system_test). The words are climate-lang.js's
       tab_group_setup, put on the tab by climate-ui.js _labelTabGroup. Its
       alternative text is empty, so the tab's name stays "Uitgangspunten",
       not "INSTELLEN Uitgangspunten" (the review of D1); a browser that does
       not know "/ alt" keeps the first line. */
    /* And a line before it, so the daily tabs and the set-up ones read as two
       groups (27 October 2026, clearer-climate step 7): the label alone sat
       in a tab's padding and was easily missed. A pseudo-element, so the
       tablist still holds only tabs. */
    .tab-nav .tab-button[data-group-label] { position: relative; margin-left: 0.85rem; }
    .tab-nav .tab-button[data-group-label]::after {
      content: ""; position: absolute; left: -0.45rem; top: 22%; bottom: 22%;
      border-left: 1px solid var(--border, rgba(243,240,231,0.2)); pointer-events: none;
    }
    .tab-nav .tab-button[data-group-label]::before {
      content: attr(data-group-label);
      content: attr(data-group-label) / "";
      position: absolute; top: 0.15rem; left: 1rem;
      font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--text-secondary, #93a48d); white-space: nowrap; pointer-events: none;
    }
    /* A shared weather station (climate-upload-station.js). */
    .climate-station-share { margin: 0.75rem 0; padding: 0.6rem 0.75rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 7px; font-size: 0.84rem; }
    .climate-station-share p { margin: 0 0 0.4rem; }
    .climate-station-fields { color: var(--text-secondary, #93a48d); }
    .climate-station-targets { list-style: none; margin: 0 0 0.4rem; padding: 0; display: grid; gap: 0.3rem; }
    .climate-station-target { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
    .climate-station-days { color: var(--text-secondary, #93a48d); }
    .climate-station-note { font-size: 0.8rem; color: var(--text-secondary, #93a48d); }
    .climate-station-from { margin: 0.75rem 0 0; font-size: 0.84rem; font-weight: 600; }
    .climate-station-live { margin: 0.5rem 0 0; font-size: 0.84rem; }
    .climate-station-result { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.84rem; }
    .climate-station-result li { margin: 0.2rem 0; }
    .climate-station-retry { margin-left: 0.25rem; padding: 0.15rem 0.6rem; font-size: 0.8rem; }
    /* Several compartments in one upload (climate-upload-route.js). */
    .climate-route { margin: 0.75rem 0 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 8px; font-size: 0.86rem; }
    .climate-route p { margin: 0 0 0.5rem; }
    .climate-route-rows { display: grid; gap: 0.4rem; margin-bottom: 0.6rem; }
    .climate-route-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; padding: 0.35rem 0.5rem; border-radius: 6px; }
    .climate-route-row.is-current { background: rgba(21,128,61,0.08); }
    .climate-route-row strong { min-width: 5.5rem; }
    .climate-route-files { color: var(--text-secondary, #93a48d); font-size: 0.78rem; }
    .climate-route-row select { font: inherit; font-size: 0.84rem; padding: 0.25rem 0.4rem; max-width: 100%; }
    .climate-route-status { font-size: 0.82rem; }
    .climate-route-warn { color: #b45309; }
    .climate-route-end { margin: 0.4rem 0 0; color: #15803d; font-weight: 600; }

    /* ── Readings viewer (climate-readings.js) ── */
    .climate-readings-summary { font-size: 0.84rem; margin: 0 0 0.4rem; }
    .climate-readings-note { font-size: 0.8rem; color: #b45309; margin: 0 0 0.4rem; }
    .climate-readings-warnings { margin: 0 0 0.5rem; padding-left: 1rem; font-size: 0.8rem; color: #92400e; }
    .climate-readings-none { font-size: 0.84rem; color: var(--text-secondary, #93a48d); }
    .climate-readings-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0; }
    .climate-readings-chart { min-height: 2rem; }
    .climate-readings-tablehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
    .climate-readings-tablehead h4 { font-size: 0.9rem; margin: 0; }
    .climate-readings-calc { font-size: 0.78rem; display: inline-flex; align-items: center; gap: 0.3rem; }
    .climate-readings-switches { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
    /* A day value entered or corrected by hand (climate-day-values.js). */
    .climate-day-values { margin-top: 0.6rem; font-size: 0.82rem; }
    .climate-day-values summary { cursor: pointer; font-weight: 600; }
    .climate-day-values-hint { font-size: 0.78rem; color: var(--text-secondary, #93a48d); margin: 0.4rem 0; }
    .climate-day-values-list { margin: 0.3rem 0; padding-left: 1.1rem; }
    .climate-day-values-was { font-size: 0.75rem; color: var(--text-secondary, #93a48d); margin: 0 0.4rem; }
    .climate-day-values-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
    .climate-day-values-form .climate-map-select { flex: 0 1 auto; max-width: 100%; }
    .climate-day-values-input { width: var(--field-w-num, 7rem); }
    .climate-day-values-status { font-size: 0.78rem; margin: 0.3rem 0 0; }
    .climate-stored-manual { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: #b45309; margin-left: 0.3rem; }
    /* Every reading on one scroll in a box of its own, the header and time column held (climate-day-window.js _readingsGrid). */
    .climate-readings-scroll { overflow: auto; overscroll-behavior: contain; max-width: 100%; max-height: 26rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 8px; margin-top: 0.4rem; }
    /* overflow: visible — the shared table rule's hidden made the table its own scroll box, and nothing in it could stick. */
    .climate-readings-table { border-collapse: collapse; font-size: 0.78rem; font-variant-numeric: tabular-nums; overflow: visible; }
    .climate-readings-table th, .climate-readings-table td { padding: 0.3rem 0.55rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border, rgba(243,240,231,0.12)); }
    .climate-readings-table thead th { font-size: 0.68rem; font-weight: 600; color: var(--text-secondary, #93a48d); vertical-align: bottom; white-space: normal; min-width: 4.5rem; }
    .climate-readings-table th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--bg-card, #fff); }
    /* The header stays while the rows scroll under it (on the th: Safari ignores a sticky thead). */
    .climate-readings-table thead th { position: sticky; top: 0; z-index: 2; }
    .climate-readings-table thead th:first-child { z-index: 3; }
    .climate-readings-pad td { padding: 0; border: 0; }
    .climate-readings-table td.is-mark, .climate-readings-table td.is-mark.climate-readings-empty { background: #fef3c7; color: #78350f; font-weight: 600; }
    /* A reading changed by hand (climate-reading-edit.js): its title says what it replaced. */
    .climate-readings-table td.is-hand { font-style: italic; text-decoration: underline dotted #b45309; text-underline-offset: 3px; }
    .climate-dw-scroll .climate-readings-table td { cursor: default; }
    /* The readings typed in like a workbook (climate-sheet.js, 9 November 2026): a change not saved yet, the cell cursor, its editor and the bar above. */
    .climate-dw-scroll .climate-readings-table[role="grid"] td { cursor: cell; }
    .climate-readings-table td.is-pending { background: #dbeafe; color: #1e3a8a; font-weight: 600; }
    .climate-readings-table td.is-cursor { outline: 2px solid #15803d; outline-offset: -2px; }
    .climate-sheet-input { width: 5.5rem; font: inherit; text-align: right; padding: 0 0.2rem; border: 0; background: var(--bg-card, #fff); color: inherit; }
    .climate-sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: 0.8rem; }
    .climate-sheet-hint, .climate-sheet-status { margin: 0; color: var(--text-secondary, #6b7a67); }
    .climate-sheet-status:empty, .climate-sheet-actions[hidden] { display: none; }
    .climate-sheet-actions { display: flex; gap: 0.4rem; }
    .climate-sheet-actions .btn { padding: 0.2rem 0.75rem; font-size: 0.8rem; }
    .climate-readings-unit { display: block; font-weight: 500; text-transform: none; }
    .climate-readings-calcmark { font-weight: 500; font-style: italic; }
    .climate-readings-empty { color: var(--text-secondary, #93a48d); }
    .climate-readings-removed { color: #b91c1c; font-style: italic; }

    /* ── Uploaded data (climate-readings.js) ── */
    .climate-upload-views { margin-bottom: 1rem; }
    .climate-upload-views .climate-switch-btn { font-size: 0.9rem; padding: 0.4rem 1rem; }
    /* "Open punten in de data" (climate-data-issues.js, 29 October 2026, plan L6): above both views. */
    .climate-data-issues { margin: 0 0 1rem; padding: 0.6rem 0.85rem; border: 1px solid #d97706; border-left-width: 4px; border-radius: 8px; background: rgba(217,119,6,0.08); font-size: 0.86rem; line-height: 1.5; }
    .climate-data-issues[hidden] { display: none; }
    .climate-data-issues h3 { margin: 0 0 0.25rem; font-size: 0.95rem; }
    .climate-data-issues-intro { margin: 0 0 0.4rem; font-size: 0.8rem; }
    .climate-data-issues-list { margin: 0; padding-left: 1.1rem; }
    .climate-data-issue + .climate-data-issue { margin-top: 0.5rem; }
    .climate-data-issue p { margin: 0.1rem 0; }
    .climate-data-issue-n { font-size: 0.78rem; }
    .climate-data-issue-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
    .climate-data-issue-link { font-size: 0.8rem; padding: 0.2rem 0.6rem; }
    .climate-stored { margin-top: 0.5rem; }
    .climate-stored h3:focus { outline: none; }
    .climate-stored h3 { font-size: 1rem; margin: 0 0 0.25rem; }
    .climate-stored-gh { color: var(--text-secondary, #93a48d); font-weight: 500; }
    .climate-stored-intro, .climate-stored-empty { font-size: 0.82rem; color: var(--text-secondary, #93a48d); margin: 0 0 0.6rem; }
    .climate-stored-table { overflow-x: auto; }
    .climate-stored-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
    .climate-stored-table th, .climate-stored-table td { padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
    .climate-stored-table th { font-weight: 600; color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
    .climate-stored-table tr.is-new td { background: rgba(74,156,117,0.1); }
    .climate-stored-by { font-size: 0.74rem; color: var(--text-secondary, #93a48d); }
    .climate-stored-view { padding: 0.25rem 0.65rem; font-size: 0.78rem; }
    .climate-stored-more { margin-top: 0.6rem; }
    .climate-stored-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.25rem 0 0.6rem; font-size: 0.82rem; }
    .climate-stored-tools:empty { display: none; }
    .climate-stored-filter { margin: 0; }
    .climate-stored-field, .climate-stored-goto label { display: inline-flex; align-items: center; gap: 0.35rem; width: auto; margin: 0; font-size: 0.82rem; }
    .climate-stored-field select { width: auto; max-width: 14rem; }
    .climate-stored-goto { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; width: auto; }
    .climate-stored-goto input { width: auto; padding: 0.25rem 0.4rem; font-size: 0.82rem; }
    .climate-stored-goto .btn, .climate-stored-note .btn { padding: 0.25rem 0.65rem; font-size: 0.78rem; }
    .climate-stored-note { flex-basis: 100%; margin: 0; color: var(--text-secondary, #93a48d); }
    .climate-stored-note:empty { display: none; }
    .climate-stored-daily { margin-top: 0.75rem; font-size: 0.8rem; }
    .climate-stored-daily summary { cursor: pointer; }
    .climate-stored-daily dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.3rem 1rem; margin: 0.5rem 0 0; }
    .climate-stored-daily dt { color: var(--text-secondary, #93a48d); font-size: 0.72rem; }
    .climate-stored-daily dd { margin: 0; font-variant-numeric: tabular-nums; }

    /* ── A day in a window over the page (climate-day-window.js) ──
       Insets, not vw/vh: the desktop pages' 0.9 zoom shrinks viewport units
       (app_zoom_test), and an inset stretches to the real window. */
    .climate-dw { position: fixed; inset: 1rem; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 1px solid var(--border, rgba(15,23,20,0.15)); border-radius: 12px; background: var(--bg-card, #fff); color: var(--text-primary, #1f2a1f); box-shadow: 0 20px 60px rgba(15,23,20,0.25); }
    .climate-dw[open] { display: flex; flex-direction: column; overflow: hidden; }
    .climate-dw::backdrop { background: rgba(15,23,20,0.45); }
    .climate-dw-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border, rgba(15,23,20,0.12)); }
    .climate-dw-head h3 { flex: 1; margin: 0; font-size: 1.05rem; min-width: 0; }
    .climate-dw-sub { color: var(--text-secondary, #6b7a67); font-weight: 500; font-size: 0.85rem; }
    .climate-dw-close { font: inherit; font-size: 1.5rem; line-height: 1; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0.1rem 0.45rem; border-radius: 6px; }
    .climate-dw-close:hover { background: rgba(15,23,20,0.08); }
    .climate-dw-wait { padding: 1rem; }
    .climate-dw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 18rem minmax(0, 1fr); }
    .climate-dw-side { overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.9rem; border-right: 1px solid var(--border, rgba(15,23,20,0.12)); font-size: 0.82rem; }
    /* Always open beside the table; on a phone folded above it, behind its summary. */
    .climate-dw-side > summary { display: none; cursor: pointer; font-weight: 600; }
    .climate-dw-search { width: 100%; box-sizing: border-box; margin: 0 0 0.25rem; }
    .climate-dw-note { min-height: 1em; margin: 0 0 0.4rem; color: #b45309; font-size: 0.78rem; }
    .climate-dw-checks, .climate-dw-topics > div { display: flex; flex-direction: column; gap: 0.25rem; }
    .climate-dw-topics { border: 0; padding: 0; margin: 0.75rem 0; }
    .climate-dw-topics legend, .climate-dw-blanks h4 { font-weight: 600; font-size: 0.82rem; margin: 0 0 0.3rem; padding: 0; }
    .climate-dw-step { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
    .climate-dw-step:empty { display: none; }
    .climate-dw-blank { margin: 0 0 0.6rem; }
    .climate-dw-blank-field, .climate-dw-fix { font: inherit; border: 0; background: transparent; color: #15803d; cursor: pointer; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
    .climate-dw-blank-field { font-weight: 600; }
    .climate-dw-removed { display: block; color: #b91c1c; }
    .climate-dw-upload { margin-top: 0.3rem; padding: 0.15rem 0.6rem; font-size: 0.76rem; }
    .climate-dw-runs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
    .climate-dw-more, .climate-dw-none, .climate-dw-absent { color: var(--text-secondary, #6b7a67); font-size: 0.78rem; }
    .climate-dw-dayvalues, .climate-dw-readedit:not(:empty) { margin-top: 0.75rem; border-top: 1px solid var(--border, rgba(15,23,20,0.12)); padding-top: 0.5rem; }
    .climate-reading-edit summary { cursor: pointer; font-weight: 600; }
    .climate-reading-edit-form { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.4rem; }
    .climate-reading-edit .re-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
    .climate-reading-edit .re-row[hidden] { display: none; }
    .climate-reading-edit input[type="time"] { width: auto; padding: 0.2rem 0.3rem; }
    .climate-reading-edit .re-value { width: var(--field-w-num, 7rem); }
    .climate-reading-edit .re-count, .climate-reading-edit .re-status { margin: 0; font-size: 0.78rem; color: var(--text-secondary, #6b7a67); }
    .climate-reading-edit .re-save { align-self: flex-start; padding: 0.25rem 0.75rem; font-size: 0.8rem; }
    .climate-reading-edit h4 { font-size: 0.8rem; margin: 0.6rem 0 0.25rem; }
    .climate-reading-edit ul { margin: 0; padding-left: 1rem; }
    .climate-reading-edit li { margin-bottom: 0.25rem; }
    .climate-dw-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0.6rem 0.9rem 0.9rem; gap: 0.35rem; }
    .climate-dw-main > details > summary { cursor: pointer; font-size: 0.82rem; }
    /* What a readings save did, until closed (climate-reading-change.js _handSavedText). */
    .climate-dw-saved { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid #15803d; border-left-width: 4px; border-radius: 8px; background: rgba(21,128,61,0.08); font-size: 0.84rem; }
    .climate-dw-saved p { flex: 1; margin: 0; line-height: 1.45; }
    .climate-dw-saved-close { font: inherit; font-size: 1.2rem; line-height: 1; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 0.3rem; border-radius: 6px; }
    .climate-dw-scroll { flex: 1; min-height: 8rem; max-height: none; margin-top: 0.2rem; }
    .climate-readings-large { padding: 0.2rem 0.65rem; font-size: 0.78rem; }
    .climate-readings-table thead th .climate-dw-fix, .climate-dw-dayval { display: block; font-size: 0.66rem; font-weight: 500; margin-top: 0.15rem; }
    @media (max-width: 768px) {
      .climate-dw { inset: 0; border: 0; border-radius: 0; }
      .climate-dw-side > summary { display: list-item; }
      .climate-dw-head { flex-wrap: wrap; }
      .climate-dw-body { display: flex; flex-direction: column; }
      .climate-dw-side { flex: 0 1 auto; max-height: 45%; border-right: 0; border-bottom: 1px solid var(--border, rgba(15,23,20,0.12)); }
      .climate-dw-main { flex: 1; }
    }

    @media (max-width: 768px) {
      .climate-days-table thead, .climate-stored-table thead { display: none; }
      .climate-days-table tr, .climate-stored-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
      .climate-days-table td, .climate-stored-table td { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 0.6rem; border-bottom: none; padding: 0.15rem 0; }
      .climate-days-table td[data-label]::before, .climate-stored-table td[data-label]::before { content: attr(data-label); color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
    }

    /* The automatic import's card (climate-imports.js). The page is light
       (modern-neutral.css); the three status colours are the AA-safe shades of
       the upload summary's green/amber/red. */
    .climate-imports-card { margin: 0 0 1.25rem; padding: 0.9rem 1rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 8px; }
    .climate-imports-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
    .climate-imports-intro { margin: 0 0 0.6rem; font-size: 0.82rem; color: var(--text-secondary, #93a48d); }
    .climate-imports-sources { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.35rem; }
    .climate-imports-source { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
    .climate-imports-source-sender { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }
    .climate-imports-source-arrow { color: var(--text-secondary, #93a48d); }
    .climate-imports-source-gh { font-weight: 600; }
    .climate-imports-source-scope,
    .climate-imports-source-meta { color: var(--text-secondary, #93a48d); font-size: 0.78rem; }
    .climate-imports-badge { font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; }
    .climate-imports-badge--muted { background: var(--surface, #f1f5f2); color: var(--text-secondary, #475569); }
    .climate-imports-badge--warn { background: #fef3c7; color: #b45309; }
    .climate-imports-badge--bad { background: #fee2e2; color: #b91c1c; }
    .climate-imports-empty { margin: 0; font-size: 0.82rem; color: var(--text-secondary, #93a48d); }
    .climate-imports-table { overflow-x: auto; }
    .climate-imports-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
    .climate-imports-table th, .climate-imports-table td { padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
    .climate-imports-table th { font-weight: 600; color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
    .climate-imports-table tr:last-child td { border-bottom: none; }
    .climate-imports-table td:first-child { white-space: nowrap; }
    .climate-imports-table td:nth-child(2) { min-width: 9rem; }
    .climate-imports-file { overflow-wrap: anywhere; }
    .climate-imports-status { font-weight: 600; white-space: nowrap; }
    .climate-imports-status--ok { color: #15803d; }
    .climate-imports-status--warn { color: #b45309; }
    .climate-imports-status--bad { color: #b91c1c; }
    .climate-imports-status--muted { color: var(--text-secondary, #93a48d); }
    .climate-imports-error, .climate-imports-hint { margin-top: 0.2rem; font-size: 0.75rem; color: var(--text-secondary, #93a48d); max-width: 32rem; }
    .climate-imports-action { min-width: 9rem; }
    .climate-imports-gh { display: block; font-size: 0.8rem; padding: 0.25rem 0.4rem; margin-bottom: 0.3rem; max-width: 100%; }
    .climate-imports-btn { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
    /* A run's sender and subject under its file, its days one per line with
       [Open], and the worded reason with the poller's own text folded away. */
    .climate-imports-sub { display: block; font-size: 0.72rem; color: var(--text-secondary, #93a48d); overflow-wrap: anywhere; }
    .climate-imports-days { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.2rem; font-size: 0.75rem; color: var(--text-secondary, #93a48d); }
    .climate-imports-days-more summary, .climate-imports-detail summary { cursor: pointer; }
    .climate-imports-detail summary { font-size: 0.72rem; color: var(--text-secondary, #93a48d); }
    .climate-imports-open { margin-left: 0.3rem; min-height: 2rem; padding: 0.2rem 0.6rem; font-size: 0.72rem; border: 1px solid var(--border, rgba(243,240,231,0.3)); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
    .climate-imports-reason { margin-top: 0.2rem; font-size: 0.78rem; max-width: 32rem; }
    .climate-imports-source .climate-imports-hint { flex-basis: 100%; margin-top: 0; }
    @media (max-width: 768px) {
      .climate-imports-table thead { display: none; }
      .climate-imports-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
      /* Label in the first column, every child of the cell stacked in the second —
         a status pill with a hint under it stays one column, not two. */
      .climate-imports-table td { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 0.6rem; row-gap: 0.15rem; border-bottom: none; padding: 0.15rem 0; }
      .climate-imports-table td[data-label]::before { content: attr(data-label); grid-column: 1; color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
      .climate-imports-table td > * { grid-column: 2; }
      .climate-imports-table td:nth-child(2) { min-width: 0; }
      .climate-imports-table td:first-child { white-space: normal; }
    }

    /* ── Advice cards ── */
    .climate-advice-section { margin-top: 1.5rem; }
    .climate-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
    .climate-advice-card { border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 0.85rem; border-left: 4px solid; background: #fafafa; }
    .climate-advice-card--info    { border-color: #6b9fd4; background: #eff6ff; }
    .climate-advice-card--warning { border-color: #f5b942; background: #fffbeb; }
    .climate-advice-card--alert   { border-color: #e05c5c; background: #fef2f2; }
    .climate-advice-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
    /* Severity, age and source sit under the finding now, not above it. What
       happened leads; how serious we think it is is context for that. */
    .climate-advice-meta {
      display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
      margin-top: 0.6rem; padding-top: 0.5rem;
      border-top: 1px solid var(--border, rgba(243,240,231,0.08));
    }
    .climate-advice-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 4px; }
    .climate-advice-badge--info    { background: #dbeafe; color: #1e40af; }
    .climate-advice-badge--warning { background: #fef3c7; color: #92400e; }
    .climate-advice-badge--alert   { background: #fee2e2; color: #991b1b; }
    .climate-advice-source { font-size: 0.75rem; color: #6b7280; }
    .climate-advice-text { margin: 0 0 0.75rem; font-size: 0.92rem; line-height: 1.5; }
    /* A standard card's own step, beside its action (one card since 27 October 2026). */
    .climate-advice-step { margin: 0 0 0.4rem; font-size: 0.86rem; }
    .climate-advice-step > span { font-weight: 600; }
    .climate-advice-chart-row { margin: 0.2rem 0 0.4rem; }
    .climate-advice-none { color: #6b7280; font-size: 0.9rem; font-style: italic; }

    /* Theme heading — groups a day's cards into a few stories instead of a flat
       list of equal alarms. Sits on the page background, so it uses the dark
       theme's own variables rather than the light fallbacks the cards carry. */
    .climate-advice-theme { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary, #93a48d); margin: 1.1rem 0 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border, rgba(243,240,231,0.12)); }
    .climate-advice-theme:first-child { margin-top: 0; }
    .climate-advice-theme-summary { font-size: 0.8rem; color: var(--text-secondary, #93a48d); margin: 0 0 0.5rem; }
    /* "new today" vs "day 5" — the fact that most changes the decision. Lives
       inside an advice card, which is a light surface, so it stays light. */
    .climate-advice-age { font-size: 0.72rem; font-weight: 600; color: #4b5563; background: rgba(107,114,128,0.12); padding: 0.12rem 0.45rem; border-radius: 4px; }
    .climate-advice-age--new { color: #14663d; background: rgba(26,122,74,0.14); }
    .climate-advice-show-more { display: block; margin: 0 0 0.85rem; font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 4px; border: 1px dashed var(--border, rgba(243,240,231,0.2)); background: transparent; color: var(--text-secondary, #93a48d); cursor: pointer; }
    .climate-advice-show-more:hover { border-color: var(--accent, #c9a45c); color: var(--accent, #c9a45c); }

    /* ── The card short (climate-advice-short.js, 9 November 2026) ──
       The rule and its run, what against the line, when, a few readings, the
       step; the rest behind "More information", the comments on one line. */
    .climate-advice-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.45rem; margin: 0 0 0.3rem; font-size: 0.95rem; color: #1f2937; }
    .climate-advice-sev { font-weight: 700; }
    .climate-advice-what { margin: 0 0 0.2rem; font-size: 0.9rem; font-weight: 600; color: #1f2937; }
    .climate-advice-when { margin: 0 0 0.3rem; font-size: 0.84rem; color: #374151; }
    .climate-advice-others { list-style: none; margin: 0 0 0.5rem; padding: 0 0 0 0.75rem; font-size: 0.8rem; color: #4b5563; }
    .climate-advice-more > summary, .climate-remark-fold > summary { cursor: pointer; margin: 0.4rem 0 0; font-size: 0.8rem; font-weight: 600; color: #1a7a4a; }
    .climate-advice-more[open] > summary { margin-bottom: 0.6rem; }

    /* ── Structured action: which knob, from what to what ──
       Advice that names a control and a number can be acted on and checked;
       prose cannot. Sits inside the light advice card. */
    .climate-action { margin: 0 0 0.6rem; padding: 0.5rem 0.65rem; border-radius: 6px; background: rgba(26,122,74,0.07); border-left: 3px solid #1a7a4a; }
    .climate-action-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
    .climate-action-param { font-size: 0.8rem; font-weight: 700; color: #14663d; }
    .climate-action-move { font-family: var(--font-mono, monospace); font-size: 0.85rem; font-weight: 600; color: #14663d; }
    .climate-action-dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #4b5563; }
    .climate-action-move--words { font-family: inherit; }
    .climate-action-measured { margin: 0.25rem 0 0; font-size: 0.8rem; color: #14663d; }
    .climate-action-effect { margin: 0.3rem 0 0; font-size: 0.8rem; line-height: 1.45; color: #374151; }
    /* What Setup says the house can do (Setup part 3, 12 November 2026). */
    .climate-action-capacity { margin: 0.3rem 0 0; font-size: 0.78rem; line-height: 1.45; color: #4b5563; }

    /* ── "In those hours" (climate-advice-situation.js) ──
       What the levers did in the hours a card's condition held, against their
       setpoints: small, under the observation. On a phone a row is two lines,
       the lever's name above its figures. */
    /* ── Comments on a card (climate-remark.js) ──
       Everyone's comments under the rating row, each with what Claude
       understood of it; the box to add one folded until asked. */
    .climate-remarks { margin-top: 0.5rem; font-size: 0.8rem; }
    .climate-remark-list { list-style: none; margin: 0; padding: 0; }
    .climate-remark { position: relative; margin: 0 0 0.45rem; padding: 0.4rem 1.6rem 0.4rem 0.6rem; border-left: 2px solid #d1d5db; background: #f9fafb; border-radius: 4px; }
    .climate-remark p { margin: 0.1rem 0; }
    .climate-remark-who { font-weight: 600; color: #4b5563; }
    .climate-remark-reading { margin-top: 0.25rem; color: #14663d; }
    .climate-remark-reading--failed { color: #4b5563; }
    /* Where Claude's check of the comment got (29 October 2026): under way, failed, tomorrow. */
    .climate-remark-check { margin-top: 0.2rem; color: #4b5563; }
    .climate-remark-check--busy { font-style: italic; }
    /* What the check found, the verified numbers, and the writer's answer (29 October 2026, plan L2). */
    .climate-remark-answer { margin-top: 0.3rem; padding: 0.3rem 0.45rem; border-radius: 4px; background: #fff; border: 1px solid #e5e7eb; color: #1f2937; }
    .climate-remark-answer--right { border-color: #9fd4b8; }
    .climate-remark-answer--not_right { border-color: #f0c48a; }
    .climate-remark-verdict { font-weight: 600; }
    .climate-remark-basis, .climate-remark-unverified { color: #4b5563; font-size: 0.72rem; }
    .climate-remark-evidence { margin: 0.15rem 0; padding-left: 1.1rem; }
    .climate-remark-card-issue { color: #374151; }
    /* A verified data issue on the card, and the way to the Upload tab's list (29 October 2026, plan L6). */
    .climate-remark-data-issue { color: #92400e; }
    .climate-remark-data-issue a { color: #92400e; text-decoration: underline; }
    .climate-remark-disputed { margin: 0 0 0.35rem; color: #14663d; font-weight: 600; }
    /* Agreed on growing knowledge alone: no rating, said plainly (8 November 2026, improved advice flow step 23). */
    .climate-remark-disputed--knowledge { color: #4b5563; font-weight: 400; }
    /* "Ik blijf erbij" and Get2grow's answer (climate-remark-dispute.js). */
    .climate-remark-dispute { margin-top: 0.3rem; color: #1f2937; }
    .climate-remark-dispute--ask summary { display: inline-block; cursor: pointer; font-size: 0.75rem; padding: 0.1rem 0.45rem; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; color: #1f2937; }
    .climate-remark-dispute--ask textarea { display: block; width: 100%; margin: 0.3rem 0; box-sizing: border-box; }
    .climate-remark-dispute--open { color: #4b5563; font-style: italic; }
    .climate-remark-dispute--right, .climate-remark-dispute--readings { padding: 0.25rem 0.4rem; border-radius: 4px; background: #f3f4f6; }
    .climate-remark-dispute--right { border-left: 3px solid #1a7a4a; }
    .climate-remark-dispute--readings { border-left: 3px solid #b45309; }
    .climate-remark-dispute-reply { white-space: pre-line; }
    /* What a right comment changed of the greenhouse's advice, or proposed (29 October 2026, plan L4). */
    .climate-remark-lesson { margin-top: 0.3rem; padding: 0.25rem 0.45rem; border-radius: 4px; background: #e6f2ec; color: #14532d; }
    .climate-remark-lesson--proposed { background: #fef6e7; color: #713f12; }
    .climate-remark-lesson--reverted, .climate-remark-lesson--declined { background: #f3f4f6; color: #374151; }
    .climate-day-route-act, .climate-lesson-act { font: inherit; font-size: 0.75rem; padding: 0.1rem 0.45rem; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; color: #1f2937; cursor: pointer; }
    /* The cards the greenhouse's own change held back, folded under the day's cards. */
    .climate-held-back { margin: 0.5rem 0 1rem; font-size: 0.82rem; color: #374151; }
    .climate-held-back > summary { cursor: pointer; font-weight: 600; color: #374151; }
    .climate-held-back-hint { margin: 0.3rem 0; color: #4b5563; }
    .climate-held-back-list { list-style: none; margin: 0; padding: 0; }
    .climate-held-back-card { margin: 0 0 0.45rem; padding: 0.4rem 0.6rem; border-left: 2px solid #d1d5db; background: #f9fafb; border-radius: 4px; }
    .climate-held-back-card p { margin: 0.1rem 0; }
    .climate-held-back-why, .climate-held-back-said { color: #4b5563; font-size: 0.75rem; }
    /* "Hier had advies moeten staan" under the day's cards (8 November 2026, improved advice flow step 11). */
    .climate-day-report { margin: 0.25rem 0 1rem; }
    .climate-remark-kind { display: inline-block; padding: 0 0.35rem; border-radius: 3px; background: #e6f2ec; font-size: 0.72rem; font-weight: 600; }
    .climate-remark-change { color: #374151; }
    .climate-remark-state { color: #4b5563; font-size: 0.72rem; }
    .climate-remark-acts { display: inline-flex; gap: 0.35rem; margin-top: 0.2rem; }
    .climate-remark-act { font: inherit; font-size: 0.75rem; padding: 0.1rem 0.45rem; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; color: #1f2937; cursor: pointer; }
    .climate-remark-delete { position: absolute; top: 0.25rem; right: 0.25rem; border: 0; background: none; font-size: 1rem; line-height: 1; color: #4b5563; }
    .climate-remark-question { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.3rem; color: #1f2937; }
    .climate-remark-question p { flex-basis: 100%; }
    .climate-remark-question input { flex: 1 1 12rem; min-width: 0; }
    .climate-remark-edit { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: end; margin-top: 0.35rem; color: #1f2937; }
    .climate-remark-edit label { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.72rem; }
    .climate-remark-edit input[type="number"] { width: var(--field-w-num, 8rem); }
    .climate-remark-edit-summary { flex: 1 1 16rem; }
    .climate-remark-add summary { cursor: pointer; color: #1a7a4a; font-weight: 600; }
    .climate-remark-add textarea { display: block; width: 100%; margin: 0.35rem 0; box-sizing: border-box; }
    .climate-remark-hint { margin: 0.25rem 0 0; color: #4b5563; font-size: 0.72rem; }
    /* ── What was said about each rule (climate-rule-remarks.js) ── */
    .climate-rule-remarks { margin-bottom: 0.6rem; border-left: 3px solid #1a7a4a; }
    .climate-rule-remarks-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
    .climate-rule-remarks-name { font-weight: 600; font-size: 0.9rem; }
    .climate-rule-remarks-total { margin: 0.2rem 0 0.35rem; font-size: 0.78rem; color: #4b5563; }
    .climate-rule-remarks-groups { margin: 0 0 0.4rem; padding-left: 1rem; font-size: 0.82rem; }
    .climate-rule-remarks-groups li { margin-bottom: 0.25rem; }
    .climate-rule-remarks-n { font-weight: 700; color: #14663d; }
    .climate-rule-remarks-says { color: #374151; }
    .climate-proposal { margin: 0.35rem 0 0.2rem; padding: 0.45rem 0.6rem; border-radius: 6px; background: rgba(26,122,74,0.07); border-left: 3px solid #1a7a4a; color: #1f2937; }
    .climate-proposal p { margin: 0.15rem 0; }
    .climate-proposal-why, .climate-proposal-replay { font-size: 0.78rem; color: #374151; }
    /* ── What the comments changed, per greenhouse, and its watch (climate-adjustments.js, step L5) ── */
    .climate-adj-gh { margin-bottom: 0.6rem; border-left: 3px solid #166534; }
    .climate-adj-gh-name { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.3rem; }
    .climate-adj-list { margin: 0; padding-left: 1rem; font-size: 0.82rem; }
    .climate-adj-item { margin-bottom: 0.5rem; }
    .climate-adj-item p { margin: 0.1rem 0; }
    .climate-adj-meta, .climate-adj-day { font-size: 0.78rem; color: #4b5563; }
    .climate-adj-from { margin: 0 0 0.2rem; padding-left: 1rem; font-size: 0.78rem; color: #374151; }
    .climate-adj-review { margin: 0.2rem 0; padding: 0.2rem 0.45rem; border-radius: 4px; background: #f3f4f6; color: #1f2937; }
    .climate-adj-review--keep { background: #e6f2ec; color: #14532d; }
    .climate-adj-review--doubt { background: #fef6e7; color: #713f12; }
    .climate-adj-review--undo_suggested { background: #fdecec; color: #7f1d1d; }
    .climate-adj-why { font-size: 0.78rem; color: #374151; }
    .climate-adj-reopen { margin: 0.25rem 0; padding: 0.25rem 0.45rem; border-radius: 4px; background: #fdecec; color: #7f1d1d; }
    .climate-adj-held { margin: 0.1rem 0 0.2rem; padding-left: 1rem; font-size: 0.78rem; }
    .climate-proposal-done { margin: 0.25rem 0 0; font-size: 0.78rem; color: #4b5563; }
    .climate-proposal-ask { margin-top: 0.3rem; }
    /* ── "Voor alle kassen" (climate-promotion.js, 30 October 2026) ── */
    .climate-promotion-section { margin-bottom: 1.5rem; }
    .climate-promotion { margin-bottom: 0.6rem; border-left: 3px solid #1a7a4a; font-size: 0.85rem; }
    .climate-promotion p { margin: 0.15rem 0; }
    .climate-promotion-rule { font-weight: 600; font-size: 0.9rem; }
    .climate-promotion-where, .climate-promotion-tested { font-size: 0.78rem; color: #4b5563; }
    .climate-promotion-replays { margin: 0.2rem 0; padding-left: 1rem; font-size: 0.78rem; color: #374151; }
    .climate-promotion-ask { margin-top: 0.3rem; }
    .climate-feedback-earlier { flex-basis: 100%; margin: 0.15rem 0 0; font-size: 0.75rem; color: #4b5563; }
    .climate-situation { width: 100%; margin: 0.1rem 0 0.6rem; border-collapse: collapse; font-size: 0.8rem; }
    .climate-situation th, .climate-situation td { padding: 0.2rem 0.5rem 0.2rem 0; text-align: left; vertical-align: top; }
    .climate-situation thead th { font-weight: 600; color: #4b5563; border-bottom: 1px solid #e5e7eb; }
    .climate-situation tbody th { font-weight: 600; white-space: nowrap; }
    .climate-situation-day th, .climate-situation-day td { color: #4b5563; }
    @media (max-width: 600px) {
      .climate-situation thead { display: none; }
      .climate-situation tr { display: block; padding: 0.25rem 0; border-bottom: 1px solid #e5e7eb; }
      .climate-situation th, .climate-situation td { display: inline; padding: 0 0.5rem 0 0; }
      .climate-situation tbody th { display: block; }
    }

    /* ── Which crop this day belonged to ──
       Above the day's own numbers, because the same humidity reading means
       different things in week 3 and week 34. Quiet by default; the clash state
       is the only one that asks for attention, because it is the only one the
       grower has to act on. */
    .climate-cult-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
                        margin: 0 0 0.9rem; padding: 0.4rem 0.7rem; border-radius: 7px;
                        background: rgba(255,255,255,0.04); font-size: 0.85rem; }
    .climate-cult-swatch { width: 14px; height: 14px; border-radius: 4px;
                           border: 1px solid rgba(0,0,0,0.2); }
    .climate-cult-week, .climate-cult-crop { font-size: 0.78rem; opacity: 0.72; }
    .climate-cult-bar--clash { background: rgba(180,83,9,0.10); border-left: 3px solid #b45309; }
    .climate-cult-bar--clash a { margin-left: auto; }

    /* ── What became of the control ──
       Deliberately quiet, and deliberately the same weight whichever way it
       went. A grower who read the card and decided against it has made a
       judgement; styling that as a failure would be both accusatory and wrong,
       since the data cannot tell a considered decision from an unread card.
       The only difference between followed and unchanged is the marker colour,
       which reads as "moved" versus "did not" rather than good versus bad. */
    .climate-outcome { margin: -0.3rem 0 0.6rem; padding: 0.3rem 0.65rem 0.3rem 0.6rem;
                       font-size: 0.78rem; line-height: 1.45; color: #4b5563;
                       border-left: 3px solid #cbd5e1; }
    .climate-outcome--followed { border-left-color: #1a7a4a; }
    .climate-outcome--moved_against { border-left-color: #b45309; }
    /* Which question the line answers (8 November 2026, improved advice flow step 4). */
    .climate-outcome-lead { font-weight: 600; }

    /* ── Energy cost ──
       "Direct energy loss" moves nobody; a euro figure does. Marked as an
       estimate wherever it appears — it is order-of-magnitude, not metered. */
    .climate-cost { margin: 0 0 0.6rem; padding: 0.45rem 0.65rem; border-radius: 6px; background: rgba(194,65,12,0.07); border-left: 3px solid #c2410c; }
    .climate-cost-figure { font-family: var(--font-mono, monospace); font-size: 0.9rem; font-weight: 700; color: #9a3412; }
    .climate-cost-approx { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9a3412; opacity: 0.75; margin-left: 0.4rem; }
    .climate-cost-basis { font-size: 0.75rem; color: #6b7280; margin-top: 0.15rem; line-height: 1.4; }

    /* ── Needs attention ──
       Sits on the page background, above the day's content. */
    .climate-attention { margin-bottom: 1.1rem; border: 1px solid var(--border, rgba(243,240,231,0.16)); border-radius: 8px; overflow: hidden; background: var(--bg-card, #0f2117); }
    .climate-attention-head { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.55rem 0.85rem; color: var(--accent, #c9a45c); border-bottom: 1px solid var(--border, rgba(243,240,231,0.12)); }
    .climate-attention-row { display: flex; align-items: baseline; gap: 0.75rem; width: 100%; text-align: left; padding: 0.55rem 0.85rem; background: transparent; border: 0; border-top: 1px solid var(--border, rgba(243,240,231,0.08)); border-left: 3px solid transparent; cursor: pointer; color: var(--text-primary, #f3f0e7); font-size: 0.85rem; flex-wrap: wrap; }
    .climate-attention-row:first-of-type { border-top: 0; }
    .climate-attention-row:hover { background: rgba(243,240,231,0.04); }
    .climate-attention-row--alert   { border-left-color: #e05c5c; }
    .climate-attention-row--warning { border-left-color: #f5b942; }
    .climate-attention-row--info    { border-left-color: #6b9fd4; }
    /* Opened this week, cards still to rate (5 November 2026): quieter than an unread day. */
    .climate-attention-row--to-rate { color: var(--text-secondary, rgba(243,240,231,0.72)); border-left-style: dashed; }
    .climate-attention-date { font-weight: 600; }
    /* "No data for 22 Oct yet — showing 21 Oct", "Today runs until 07:55 … [Show]" (climate-day-notes.js). */
    .climate-date-note { margin: 0 0 0.8rem; padding: 0.45rem 0.7rem; border-left: 3px solid var(--accent, #c9a227); font-size: 0.85rem; }
    .climate-date-note-btn { font-size: 0.8rem; margin-left: 0.25rem; }
    /* "Advice for Sun 18 Oct · 6 days ago": the age, amber when older than yesterday. */
    .climate-day-age { font-weight: 400; color: var(--text-secondary, #93a48d); }
    .climate-day-age--old { color: #b45309; }
    /* The attention list folded to its three worst days: "3 more". */
    .climate-attention-more { color: var(--text-secondary, #93a48d); font-size: 0.8rem; }
    .climate-attention-row[hidden] { display: none; }
    .climate-attention-gh { font-size: 0.78rem; color: var(--text-secondary, #93a48d); }
    .climate-attention-counts { margin-left: auto; font-size: 0.75rem; color: var(--text-muted, #7e8e79); }
    .climate-attention-none { display: none; }


    /* ── Coverage: what this day could NOT be judged on ──
       Deliberately quiet — it reports the limits of the advice, not an alarm. But
       it must be present: a rule whose column is missing evaluates to false
       exactly like one whose condition was not met, so without this a
       half-assessable day looks like a clean one. */
    /* The Targets tab (climate-targets.js). Its two tables look like the stored
       days'; on a phone a row wraps: the name on a line, value and period under it. */
    .climate-targets-table { overflow-x: auto; }
    .climate-targets-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
    .climate-targets-table th, .climate-targets-table td { padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
    .climate-targets-table thead th { font-weight: 600; color: var(--text-secondary, #93a48d); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
    @media (max-width: 768px) {
      .climate-targets-table thead { display: none; }
      .climate-targets-table tr { display: flex; flex-wrap: wrap; column-gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border, rgba(243,240,231,0.15)); }
      .climate-targets-table td, .climate-targets-table th { border-bottom: none; padding: 0.1rem 0; }
      .climate-targets-table td:first-child { flex-basis: 100%; }
    }
    .climate-targets-intro, .climate-targets-hint { font-size: 0.82rem; color: var(--text-secondary, #93a48d); margin: 0 0 0.75rem; line-height: 1.5; }
    .climate-targets-now, .climate-targets-periods { margin: 0 0 1.5rem; }
    .climate-targets-now h3, .climate-targets-periods h3, .climate-targets-form h3, .climate-targets-prefs h3 { font-size: 1rem; margin: 0 0 0.5rem; }
    .climate-targets-prefs { margin-top: 1.5rem; }
    .climate-targets-grouprow th { padding-top: 0.8rem; color: var(--text-primary, #f3f0e7); font-size: 0.78rem; text-transform: none; letter-spacing: 0; }
    .climate-targets-unset { color: var(--text-secondary, #93a48d); }
    /* Change, and the number changed under its row (climate-targets-inline.js). */
    .climate-targets-change { padding: 0.15rem 0.55rem; font-size: 0.76rem; margin-left: 0.4rem; }
    .climate-targets-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
    .climate-targets-inline input[type="number"] { width: var(--field-w-num, 7rem); max-width: 100%; }
    .climate-targets-inline select { width: auto; max-width: 100%; }
    .climate-targets-inline .btn { width: auto; }
    /* The two dates only while "own dates" is chosen. */
    .climate-targets-inline-dates { display: none; flex-wrap: wrap; gap: 0.5rem; }
    .climate-targets-inline:has(option[value="custom"]:checked) .climate-targets-inline-dates { display: inline-flex; }
    .climate-targets-inline input[type="date"] { width: auto; }
    /* The rule under a target, and its switch (climate-targets-rules.js). */
    .climate-targets-rule td { font-size: 0.8rem; padding-top: 0; color: var(--text-secondary, #93a48d); }
    .climate-targets-rule--off td { color: #b45309; }
    .climate-targets-rule .btn { padding: 0.15rem 0.55rem; font-size: 0.76rem; margin-left: 0.4rem; }
    .climate-targets-actions { white-space: nowrap; }
    .climate-targets-progress { margin: 0 0 1rem; font-size: 0.84rem; }
    .climate-targets-progress .btn { margin-left: 0.5rem; padding: 0.25rem 0.65rem; font-size: 0.78rem; }
    /* "There are already targets for …; you are changing them": the missing-data notice's amber. */
    .climate-targets-found { margin: 0 0 0.75rem; padding: 0.5rem 0.8rem; border: 1px solid #d97706; border-left-width: 4px; border-radius: 8px; background: rgba(217,119,6,0.08); font-size: 0.84rem; }
    .climate-targets-add { margin: 0 0 1.5rem; }
    .climate-targets-form { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 8px; }
    .climate-targets-shortcuts, .climate-targets-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
    .climate-targets-period { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 0.5rem; }
    /* The fields of a group side by side, as many as fit: three on a desktop, one on a phone. */
    .climate-targets-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); column-gap: 1.5rem; margin: 0 0 1rem; padding: 0.6rem 0.9rem 0.3rem; border: 1px solid var(--border, rgba(243,240,231,0.15)); border-radius: 6px; }
    .climate-targets-group legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.3rem; }
    .climate-targets-group > .climate-targets-hint { grid-column: 1 / -1; }
    .climate-targets-field { margin: 0 0 0.7rem; }
    .climate-targets-shortcuts .btn { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
    .climate-targets-none, .climate-targets-copy { font-size: 0.78rem; color: var(--text-secondary, #93a48d); display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.2rem 1rem 0.2rem 0; }
    .climate-targets-group > .climate-targets-copy-all { grid-column: 1 / -1; color: var(--text-primary, #f3f0e7); }
    /* "Show on the stored days" after a rule changes (climate-rule-rejudge.js). */
    .climate-rule-rejudge { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0 0 1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--border, rgba(243,240,231,0.2)); border-radius: 8px; font-size: 0.84rem; }
    .climate-rule-rejudge .btn { padding: 0.25rem 0.65rem; font-size: 0.78rem; }
    /* Today's "Your targets" (climate-today-targets.js). */
    .climate-today-targets { margin: 1rem 0; }
    .climate-today-targets p { margin: 0 0 0.3rem; font-size: 0.84rem; line-height: 1.5; }
    .climate-today-targets-pending { color: #b45309; }
    .climate-today-targets-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
    .climate-today-targets-actions .btn, .climate-coverage-row .btn { padding: 0.25rem 0.65rem; font-size: 0.78rem; }
    /* What the day's readings miss (climate-missing.js): the replace-day warning's amber. */
    .climate-missing { margin: 0.75rem 0; padding: 0.7rem 0.9rem; border: 1px solid #d97706; border-left-width: 4px; border-radius: 8px; background: rgba(217,119,6,0.08); }
    .climate-missing-title { display: block; font-size: 0.86rem; margin-bottom: 0.3rem; }
    .climate-missing p { margin: 0 0 0.35rem; font-size: 0.84rem; line-height: 1.5; }
    .climate-missing-line { margin: 0.5rem 0; font-size: 0.8rem; color: #b45309; }
    .climate-missing-fill { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-secondary, #93a48d); }
    .climate-coverage { margin-top: 1rem; border: 1px dashed var(--border, rgba(243,240,231,0.2)); border-radius: 8px; padding: 0.6rem 0.9rem; background: var(--bg-card, #0f2117); }
    .climate-coverage > summary { cursor: pointer; font-size: 0.8rem; color: var(--text-secondary, #93a48d); font-weight: 600; list-style: none; }
    .climate-coverage > summary::-webkit-details-marker { display: none; }
    .climate-coverage > summary::before { content: '▸ '; }
    .climate-coverage[open] > summary::before { content: '▾ '; }
    .climate-coverage-row { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border, rgba(243,240,231,0.12)); }
    .climate-coverage-why { font-size: 0.8rem; font-weight: 600; color: var(--text-primary, #f3f0e7); }
    .climate-coverage-rules { font-size: 0.75rem; color: var(--text-muted, #7e8e79); line-height: 1.45; margin-top: 0.15rem; }

    /* ── Feedback buttons ── */
    .climate-feedback-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .climate-feedback-btn { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 4px; border: 1px solid #d0d5dd; background: white; cursor: pointer; transition: all 0.12s; color: #6b7280; }
    .climate-feedback-btn:hover { border-color: #166534; color: #166534; }
    /* The chosen verdict: filled, and aria-pressed says so without the colour
       (X-31). White on the old #4a9c75 was 3.5:1. */
    .climate-feedback-btn--active { border-color: #166534; background: #166534; color: white; }
    /* The row's question, "Klopt dit advies?" (8 November 2026, improved advice flow step 4). */
    .climate-feedback-ask { align-self: center; font-size: 0.75rem; font-weight: 600; color: #4b5563; }
    /* What the four mean, one line under them (TODAY-14). */
    .climate-feedback-legend { flex-basis: 100%; margin: 0; font-size: 0.75rem; line-height: 1.4; color: #4b5563; }
    /* After a rating (climate-rating.js): what it counted towards, and "Why?",
       which opens the card's comment (no note box since 5 November 2026). */
    .climate-feedback-after { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; }
    .climate-feedback-explain,
    .climate-advice-link { font: inherit; font-size: 0.75rem; background: none; border: none; padding: 0; color: #166534; cursor: pointer; text-decoration: underline; }
    .climate-feedback-note-old { flex-basis: 100%; margin: 0; font-size: 0.75rem; color: #4b5563; }
    /* "Why not?" after Klopt niet (5 November 2026): four optional chips. */
    .climate-feedback-reasons { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: #4b5563; }
    .climate-feedback-reason { font: inherit; font-size: 0.75rem; padding: 0.15rem 0.5rem; border: 1px solid #d0d5dd; border-radius: 999px; background: none; color: inherit; cursor: pointer; }
    .climate-feedback-reason--active { border-color: #166534; background: #166534; color: white; }
    .climate-feedback-count { margin: 0; font-size: 0.75rem; color: #6b7280; }

    /* ── Metric cards ── */
    .climate-metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.85rem; margin-bottom: 1.5rem; }
    .climate-metric-card { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.9rem 1rem; }
    .climate-metric-label { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3rem; }
    .climate-metric-value { font-size: 1.5rem; font-weight: 700; color: #111; line-height: 1.1; }
    .climate-metric-unit { font-size: 0.8rem; font-weight: 400; margin-left: 0.2rem; }
    .climate-metric-basis { text-transform: none; letter-spacing: 0; }
    .climate-metric-beside { font-size: 0.8rem; color: #374151; margin-top: 0.15rem; }
    /* Grey, unless a target says which way is good (climate-today.js _metricTone). */
    .climate-metric-delta { font-size: 0.75rem; margin-top: 0.25rem; color: #6b7280; }
    .climate-metric-delta--good { color: #047857; }
    .climate-metric-delta--bad  { color: #dc2626; }
    .climate-metric-hand { font-size: 0.75rem; margin-top: 0.25rem; color: #92400e; font-style: italic; }

    /* ── History ── */
    .climate-chart-wrap { margin-bottom: 1.5rem; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.5rem; background: white; }
    /* Divider between the measured charts and the program-calculated ones. */
    .climate-chart-section { margin: 0.5rem 0 1rem; }
    .climate-chart-section .brief-section-title { padding-left: 0; padding-right: 0; }
    .climate-chart-note { margin: 0 0 0.25rem; font-size: 0.82rem; color: var(--text-secondary, #9aa79f); }

    /* ── Rate events ── */
    .climate-incidents { margin-top: 2rem; }
    .climate-hist-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
    .climate-incident-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
    .climate-incident-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
    .climate-incident { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 6px; }
    .climate-incident[open] { border-color: #e05c5c; }
    .climate-incident-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.55rem 0.8rem; cursor: pointer; font-size: 0.86rem; list-style: none; }
    .climate-incident-summary::-webkit-details-marker { display: none; }
    .climate-incident-summary::before { content: '▸'; color: #b91c1c; flex-shrink: 0; }
    .climate-incident[open] .climate-incident-summary::before { content: '▾'; }
    .climate-incident-when { font-family: var(--font-mono, monospace); color: #6b7280; white-space: nowrap; }
    .climate-incident-what { font-weight: 600; flex: 1; min-width: 10rem; }
    .climate-incident-peak { font-variant-numeric: tabular-nums; font-weight: 600; color: #b91c1c; white-space: nowrap; }
    .climate-incident-dur { font-variant-numeric: tabular-nums; color: #6b7280; white-space: nowrap; }
    .climate-incident-body { padding: 0 0.8rem 0.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
    .climate-incident-block { border-top: 1px solid #e5e7eb; padding-top: 0.6rem; }
    /* The verdict is a judgement, not an observation, so it is set apart from
       the four blocks of fact above it. */
    .climate-incident-block--verdict { border-top-width: 2px; border-top-color: #e05c5c; }
    .climate-incident-heading { margin: 0 0 0.4rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; font-weight: 700; }
    .climate-incident-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.35rem 0.9rem; }
    .climate-incident-pair { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; }
    .climate-incident-key { color: #6b7280; }
    .climate-incident-val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
    .climate-incident-note { margin: 0 0 0.3rem; font-size: 0.84rem; line-height: 1.5; }
    .climate-incident-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; font-size: 0.78rem; margin-top: 0.4rem; }
    .climate-incident-step { font-variant-numeric: tabular-nums; background: #eef0f2; border-radius: 4px; padding: 0.1rem 0.4rem; white-space: nowrap; }
    /* Physics above, control below. What arrived from outside is nobody's
       fault; what the house did about it is the part with an opinion in it. */
    .climate-incident-block--physics { border-top: none; padding-top: 0.6rem; border-left: 3px solid #f5b942; padding-left: 0.6rem; }
    .climate-incident-control { border-left: 3px solid #6b9fd4; padding-left: 0.6rem; margin-top: 0.6rem; }
    .climate-incident-control .climate-incident-block:first-child { border-top: none; padding-top: 0; }
    .climate-incident-excess { color: #6b7280; font-size: 0.78rem; margin-top: 0.2rem; }
    /* The evidence under a finding: present, quiet, one click away. */
    .climate-advice-incident { margin: 0.5rem 0 0; border-top: 1px dashed #e5e7eb; padding-top: 0.4rem; }
    .climate-advice-incident-summary { font-size: 0.78rem; color: #6b7280; cursor: pointer; }
    .climate-advice-incident[open] .climate-advice-incident-summary { margin-bottom: 0.4rem; }
    .climate-advice-incident .climate-incident-body { padding: 0; gap: 0.6rem; }
    /* Who does what — the rules, Claude, the model — in the fold, under the model's word. */
    .climate-advice-roles { margin: 0.3rem 0; font-size: 0.75rem; line-height: 1.45; color: #4b5563; }

    /* ── Tonight and tomorrow, at the top of Today ── */
    .climate-fa { margin-bottom: 2rem; }
    .climate-fa-card { background: #fafafa; border: 1px solid #e5e7eb; border-left: 3px solid #6b9fd4; border-radius: 6px; padding: 0.7rem 0.9rem; margin-top: 0.5rem; }
    .climate-fa-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin-bottom: 0.3rem; }
    .climate-fa-when { font-size: 0.8rem; font-weight: 600; color: #4b6584; font-variant-numeric: tabular-nums; }
    .climate-fa-title { font-size: 0.92rem; }
    .climate-fa-why { margin: 0 0 0.3rem; font-size: 0.86rem; line-height: 1.5; overflow-wrap: anywhere; }
    /* Quieter than the reason above it, like the look-ahead's: the forecast is
       a number, what to do about it is inferred. */
    .climate-fa-act { margin: 0; font-size: 0.84rem; line-height: 1.5; color: #6b7280; }
    /* The house's own response time, where its record has one: inferred, so
       quieter than the forecast it rides on. */
    .climate-fa-lag { margin: 0.3rem 0 0; font-size: 0.8rem; line-height: 1.5; color: #6b7280; font-style: italic; }
    .climate-fa-controls { display: block; font-weight: 600; color: #374151; }
    .climate-fa-none { margin: 0.4rem 0 0; font-size: 0.86rem; color: #6b7280; }

    /* ── Rules ── */
    .climate-rules-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
    .climate-rules-filter-chips { display: contents; }
    .climate-rules-filter-group { display: flex; flex-wrap: wrap; gap: 0.35rem; }
    .climate-rules-filter-search { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.6rem; border-radius: 6px; border: 1px solid var(--border, rgba(243,240,231,0.25)); background: transparent; color: inherit; min-width: 12rem; }
    @media (max-width: 600px) { .climate-rules-filter-search { width: 100%; } }
    .climate-rule-item { background: var(--bg-card, #0f2117); border: 1px solid var(--border, rgba(243,240,231,0.12)); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.75rem; }
    .climate-rule-item--inactive { opacity: 0.5; }
    /* The rule just saved (climate-rule-form.js _markSavedRule), in the gold of a field to confirm. */
    .climate-rule-item--saved { border-color: var(--accent-mid, #d8bd84); box-shadow: 0 0 0 2px rgba(216,189,132,0.18); }
    .climate-rule-header { display: flex; align-items: flex-start; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
    .climate-rule-name { font-weight: 600; font-size: 0.92rem; flex: 1; color: var(--text-primary, #f3f0e7); }
    .climate-rule-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .climate-rule-advice { font-size: 0.85rem; color: var(--text-secondary, #93a48d); margin: 0 0 0.6rem; }
    .climate-rule-actions { display: flex; align-items: center; gap: 0.75rem; }
    .climate-badge { font-size: 0.7rem; padding: 0.15rem 0.45rem; border-radius: 4px; font-weight: 600; }
    .climate-badge--system  { background: #e0e7ff; color: #3730a3; }
    .climate-badge--info    { background: #dbeafe; color: #1e40af; }
    .climate-badge--warning { background: #fef3c7; color: #92400e; }
    .climate-badge--alert   { background: #fee2e2; color: #991b1b; }
    .climate-badge--cat     { background: #f3f4f6; color: #374151; }
    .climate-badge--stat    { background: #d1fae5; color: #065f46; }
    .climate-badge--gh      { background: #fef3c7; color: #92400e; }
    .climate-toggle { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: 0.82rem; color: var(--text-secondary, #93a48d); }
    .climate-toggle input { accent-color: var(--accent, #c9a45c); }

    /* ── Rule form ── */
    .climate-rule-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
    .climate-rule-form-grid label { font-size: 0.82rem; font-weight: 600; display: block; margin-bottom: 0.25rem; color: var(--text-secondary, #93a48d); }
    .climate-rule-form-grid select,
    .climate-rule-form-grid textarea,
    .climate-rule-form-grid input { width: 100%; font-size: 0.88rem; padding: 0.4rem 0.6rem; border-radius: 6px; border: 1px solid var(--border, rgba(243,240,231,0.2)); background: var(--surface-elev, #0b1a11); color: var(--text-primary, #f3f0e7); }
    /* A field is as wide as what goes in it (theme.css's --field-w-*): a day
       count is not half the form. The rule name keeps the row up to a ceiling;
       a select takes the width of its longest option. */
    .climate-rule-form-grid input[type='number'] { width: var(--field-w-num); max-width: 100%; }
    .climate-rule-form-grid input[type='text'] { max-width: var(--field-w-text); }
    .climate-rule-form-grid select { width: auto; max-width: 100%; }
    .climate-rule-form-full { grid-column: 1 / -1; }
    /* Advice runs to 200–300 characters: a box that shows it whole (SET-25). */
    .climate-rule-form-grid textarea { font-family: inherit; line-height: 1.45; resize: vertical; }
    /* One column on a phone: in two, each half was 160 px and its labels wrapped (SET-25). */
    @media (max-width: 600px) { .climate-rule-form-grid { grid-template-columns: minmax(0, 1fr); } }
    /* "(%, day mean)" beside the Value label (climate-rule-form.js _updateRuleValueUnit). */
    .climate-rule-value-unit { font-weight: 400; }
    /* A trend's change, in the field's unit or %, beside its number. */
    .climate-rule-form-grid .climate-rule-change-unit { margin-left: 0.25rem; }
    .climate-rule-hint { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted, #7e8e79); }
    .climate-rule-form-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
    /* A draft's note at the top of the form (climate-rule-draft.js): the gold of its marked fields. */
    .climate-rule-draft-note { margin: 0 0 1rem; padding: 0.55rem 0.8rem; border-left: 3px solid var(--accent-mid, #d8bd84); border-radius: 4px; background: rgba(216,189,132,0.08); font-size: 0.85rem; line-height: 1.5; }
    .climate-rule-draft-note p { margin: 0; }
    .climate-rule-draft-note p + p { margin-top: 0.3rem; }

    /* ── Earlier uploads (climate-upload-kept.js) ── */
    .climate-kept-uploads { margin: 1rem 0; }
    .climate-kept-uploads summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
    .climate-kept-list { list-style: none; margin: 0.5rem 0 0.75rem; padding: 0; }
    .climate-kept-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; font-size: 0.85rem; }
    .climate-kept-list label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 0; }
    .climate-kept-name { overflow-wrap: anywhere; }
    .climate-kept-days { color: var(--text-secondary, #93a48d); }

    /* ── Column mapping: the links and own fields as the upload's check table (11 November 2026) ── */
    .climate-col-gh { margin: 0 0 0.6rem; max-width: 320px; }
    .climate-col-saved { color: var(--text-muted, #7e8e79); font-size: 0.76rem; white-space: nowrap; }
    .climate-col-scope { color: var(--text-secondary, #93a48d); white-space: nowrap; }
    .climate-col-scope strong { color: var(--text-primary, #f3f0e7); font-weight: 600; }
    /* "Wijzigingen gelden voor" above the check table, with several greenhouses (climate-column-links.js). */
    .climate-link-scope { border: 0; padding: 0; margin: 0.35rem 0 0.55rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; font-size: 0.82rem; }
    .climate-link-scope legend { float: left; padding: 0; margin-right: 0.25rem; font-weight: 600; color: var(--text-secondary, #93a48d); }
    .climate-link-scope label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
    /* No values column here: the dropdown as wide as its field, the Group keeps the room. */
    #climate-col-list .climate-map-select { flex: 0 1 auto; }
    #climate-col-list .climate-review-src { min-width: 10rem; }
    .climate-col-fields-title { font-size: 0.95rem; font-weight: 600; margin: 1.75rem 0 0.4rem; color: var(--text-primary, #f3f0e7); }
    .climate-col-remove { border: none; background: none; color: var(--text-muted, #7e8e79); cursor: pointer; font-size: 1rem; padding: 0 0.3rem; }
    .climate-col-remove:hover:not(:disabled) { color: #dc2626; }
    .climate-col-remove:disabled { opacity: 0.35; cursor: not-allowed; }

    /* ── Duration summary ── */
    .climate-duration-summary { margin-top: 1.25rem; }
    .climate-night-note { grid-column: 1 / -1; margin: 0.5rem 0 0; font-size: 0.8rem; color: #6b7280; }
    .climate-duration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
    .climate-duration-item { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0.6rem 0.8rem; }
    .climate-duration-label { font-size: 0.75rem; color: #6b7280; display: block; margin-bottom: 0.2rem; }
    .climate-duration-value { font-size: 1.3rem; font-weight: 700; color: #111; }
    .climate-duration-unit { font-size: 0.78rem; font-weight: 400; }

    /* ── Shared utils ── */
    .climate-loading { color: #6b7280; font-size: 0.9rem; padding: 1rem 0; }
    .climate-error   { color: #991b1b; background: #fee2e2; border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.88rem; }
    /* A failure in the page's words, Try again, and what the server said folded
       under it; what the tab showed stays below (climate-refusals.js). */
    .climate-error > p { margin: 0 0 0.4rem; }
    .climate-error:has(+ *) { margin-bottom: 0.9rem; }
    .climate-error-raw { margin-top: 0.4rem; font-size: 0.8rem; overflow-wrap: anywhere; }
    .climate-error-raw summary { cursor: pointer; }
    .climate-empty   { color: #6b7280; font-size: 0.9rem; font-style: italic; padding: 0.5rem 0; text-align: center; }
    /* The Learning tab's notes, and the lines the Rules list takes from it:
       a threshold moved there, and the rule's flag (COLMOD-23, COLMOD-24). */
    .climate-model-note { color: #6b7280; font-size: 0.85rem; line-height: 1.5; margin: 0.4rem 0; }
    .climate-rule-calibration,
    .climate-rule-insight { font-size: 0.8rem; color: var(--text-secondary, #93a48d); margin: 0.25rem 0; }
    /* What a greenhouse changed of the rule for itself (29 October 2026). */
    .climate-rule-adjusted { font-size: 0.8rem; color: #166534; margin: 0.25rem 0; }
    /* Tier 2: the physical fact, no euro figure. Quieter than the costed
       version because it is an observation, not a headline number. */
    .climate-cost--fact { opacity: 0.92; }
    .climate-cost--fact .climate-cost-figure { font-weight: 600; }
    /* Whether this rule's number was ever measured here. */
    .climate-threshold-origin {
      font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em;
      padding: 0.05rem 0.35rem; border-radius: 3px; cursor: help;
      color: var(--text-secondary, #93a48d);
      border: 1px dashed var(--border, rgba(243,240,231,0.25));
    }
    .climate-threshold-origin--calibrated {
      border-style: solid; color: #166534;
    }
    .hidden { display: none !important; }

    /* ── Phone ──
       A grower reads the Brief and the Today tab standing in the greenhouse,
       on a phone, over 4G, in gloves. Everything else on this page is a desk
       job; these two are not, so this block is scoped to them rather than
       being a whole-product responsive pass.

       Most of the layout above already wraps — flex-wrap and auto-fill minmax
       degrade fine on their own. What does not are the places with fixed
       pixel columns, and an eight-tab bar that wraps into three rows and eats
       half the screen before any content appears.

       At 600 px, one of the allowed widths, since 26 October 2026 (D5); it was
       640. The rail above the tabs is one line from 900 px down
       (tool-workspace.css, .hh-rail--compact). */
    @media (max-width: 600px) {
      /* Eight tabs wrapping to three rows pushes the brief below the fold.
         One scrolling row keeps the content where a thumb expects it. Its
         scrollbar is hidden, so the strip fades at an edge with more tabs
         behind it (tab-system.js marks which), and a tab opened by a button
         elsewhere is scrolled into view (X-29, ARR-18). */
      .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
      }
      .tab-nav::-webkit-scrollbar { display: none; }
      .tab-nav.tab-nav--more-end {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
      }
      .tab-nav.tab-nav--more-start {
        -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent);
        mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent);
      }
      .tab-nav.tab-nav--more-start.tab-nav--more-end {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
        mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
      }
      .tab-nav .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding-inline: 0.85rem;
        font-size: 0.85rem;
      }

      /* A rating in gloves: 44 px buttons with room between them, so "Klopt"
         is not "Klopt niet" by a fingertip (X-30, TODAY-14). Wrong ratings
         feed the learning. */
      .climate-feedback-row { gap: 0.5rem; }
      .climate-feedback-btn { min-height: 2.75rem; padding: 0.5rem 0.85rem; font-size: 0.85rem; }
      .climate-feedback-reason { min-height: 2.5rem; padding: 0.4rem 0.75rem; font-size: 0.85rem; }

      /* Read in daylight on a phone: muted text is the secondary grey here,
         #475569 on white (7.6:1) instead of #94a3b8 (2.6:1) — in the
         workspace and in the stored day's window, which opens on <body>. */
      .climate-workspace, .climate-dw { --text-muted: var(--text-secondary, #93a48d); }

      /* 160px of label plus 60px of value leaves about 130px of bar on a
         375px screen — the bar becomes decoration. Stacked, the label gets
         the full width and the bar is worth looking at. */
      .climate-duration-bar-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "label value" "bar bar";
        row-gap: 0.25rem;
        padding: 0.45rem 0;
      }
      .climate-duration-bar-label { grid-area: label; }
      .climate-duration-bar-val { grid-area: value; }
      .climate-duration-bar-track { grid-area: bar; }


      /* Reclaim the horizontal space the cards spend on padding. Advice text
         is the payload; the chrome around it is not. */
      .climate-advice-card { padding: 0.7rem 0.85rem; }
      .climate-advice-header { gap: 0.35rem; }
      .climate-advice-meta { font-size: 0.72rem; }

      /* The mapping review is a wide table and stays a wide table — it is an
         Upload-tab job nobody does in the greenhouse. It already scrolls in
         its own container, which is the right answer at any width. */
    }

    /* The Learning tab's threshold proposals: a grower who reads "Klopt
       meestal niet" in the greenhouse reaches the fix there too. Six columns
       with Preview and Apply in the last sat off the screen, so on a phone
       each row is a card, each figure under its column's name (COLMOD-26). */
    @media (max-width: 600px) {
      .climate-suggest-table thead { display: none; }
      .climate-suggest-table,
      .climate-suggest-table tbody,
      .climate-suggest-table tr,
      .climate-suggest-table td { display: block; width: 100%; }
      .climate-suggest-table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #6b7280;
      }
    }
