/* PropSense components: the score dial, the hazard radar, level chips, the
   report page, forms and lists. Colours come from app.css tokens only. */

/* ---- level chips: colour is never the only signal, the word and the shape
   (circle, diamond, triangle, square) carry the level too ---- */
.lvl { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.lvl svg { width: 10px; height: 10px; fill: currentColor; stroke: none; flex: none; }
.lvl-low { color: var(--r-low-ink); background: var(--r-low-soft); }
.lvl-moderate { color: var(--r-mod-ink); background: var(--r-mod-soft); }
.lvl-high { color: var(--r-high-ink); background: var(--r-high-soft); }
.lvl-severe { color: #fff; background: var(--r-sev); }
:root[data-theme="dark"] .lvl-severe { color: #1a0507; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lvl-severe { color: #1a0507; } }
.lvl-unknown { color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line-2); }
.lvl-unknown svg { fill: none; stroke: currentColor; stroke-width: 2; }

/* grade chip: indigo lightness scale, the letter is always printed */
.grade { display: inline-grid; place-items: center; min-width: 2.3em; padding: 2px 8px; border-radius: 9px; font-weight: 800; font-size: .86rem; letter-spacing: -.01em; color: #fff; background: var(--s-2); font-variant-numeric: tabular-nums; }
.grade.g-a { background: var(--s-1); } .grade.g-b { background: var(--s-2); } .grade.g-c { background: var(--s-3); } .grade.g-d { background: var(--s-4); color: var(--navy); } .grade.g-e { background: var(--s-5); color: var(--navy); }
:root[data-theme="dark"] .grade { color: #0f1020; }
:root[data-theme="dark"] .grade.g-d, :root[data-theme="dark"] .grade.g-e { color: #e9eaf8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grade { color: #0f1020; } :root:not([data-theme="light"]) .grade.g-d, :root:not([data-theme="light"]) .grade.g-e { color: #e9eaf8; } }
.grade.lg { font-size: 1.4rem; padding: 4px 14px; border-radius: 12px; }
.none-yet { color: var(--muted); }

/* ---- score dial ---- */
.dial { display: grid; justify-items: center; gap: 6px; }
.dial svg { display: block; width: min(100%, 220px); height: auto; overflow: visible; }
.dial .track { stroke: var(--dial-track); }
.dial .fill { stroke: var(--accent); stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--off); animation: dial-sweep .6s cubic-bezier(.2,.7,.2,1) both; }
.dial .tick { stroke: var(--line-2); stroke-width: 1.5; }
.dial .pin { fill: var(--surface-solid); stroke: var(--brass); stroke-width: 4; }
.dial .num { fill: var(--ink); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dial .of { fill: var(--muted); font-size: 11px; }
.dial .grd { fill: var(--accent-ink); font-weight: 800; }
@keyframes dial-sweep { from { stroke-dashoffset: var(--len); } }
.dial.sm svg { width: 92px; }

/* ---- hazard radar ---- */
.radar { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar .ring.t { stroke-dasharray: 2 3; }
.radar .spoke { stroke: var(--line); stroke-width: 1; }
.radar .poly { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar .lab { fill: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.radar .val { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.radar .rl { fill: var(--faint); font-size: 9px; }
.radar .vx.low { fill: var(--r-low); } .radar .vx.moderate { fill: var(--r-mod); } .radar .vx.high { fill: var(--r-high); } .radar .vx.severe { fill: var(--r-sev); }
.radar .vx { stroke: var(--surface-solid); stroke-width: 1.6; }
.radar .vx.unk { fill: var(--surface-solid); stroke: var(--faint); stroke-dasharray: 2 2; }
.lvl-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---- hazard cards ---- */
.hz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hz { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-solid); border-left: 4px solid var(--line-2); }
.hz.low { border-left-color: var(--r-low); } .hz.moderate { border-left-color: var(--r-mod); } .hz.high { border-left-color: var(--r-high); } .hz.severe { border-left-color: var(--r-sev); }
.hz.unknown { border-left-style: dashed; }
.hz-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hz-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.hz-title svg { color: var(--muted); }
.hz-score { display: flex; align-items: baseline; gap: 6px; }
.hz-score b { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hz-bar { position: relative; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.hz-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink-2); }
.hz.low .hz-bar i { background: var(--r-low); } .hz.moderate .hz-bar i { background: var(--r-mod); } .hz.high .hz-bar i { background: var(--r-high); } .hz.severe .hz-bar i { background: var(--r-sev); }
.hz-bar::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent calc(25% - 1px), var(--surface-solid) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), var(--surface-solid) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), var(--surface-solid) calc(75% - 1px) 75%, transparent 75%); }
.hz dl { margin: 0; display: grid; gap: 4px; }
.hz dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.hz dt { color: var(--muted); } .hz dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hz dd.none { color: var(--r-low-ink); font-weight: 600; } .hz dd.unk { color: var(--muted); font-style: italic; font-weight: 500; }
.hz .note { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---- energy band scale ---- */
.bands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; position: relative; padding-top: 28px; }
.band { position: relative; text-align: center; padding: 8px 0 6px; border-radius: 8px; font-weight: 800; font-size: .95rem; color: #fff; }
.band small { display: block; font-weight: 600; font-size: .62rem; opacity: .9; letter-spacing: 0; }
.band.b1 { background: var(--s-1); } .band.b2 { background: #3a33a8; } .band.b3 { background: var(--s-2); } .band.b4 { background: var(--s-3); } .band.b5 { background: var(--s-4); color: var(--navy); } .band.b6 { background: var(--s-5); color: var(--navy); } .band.b7 { background: var(--s-6); color: var(--navy); border: 1px solid var(--line-2); }
:root[data-theme="dark"] .band.b5, :root[data-theme="dark"] .band.b6, :root[data-theme="dark"] .band.b7 { color: #e9eaf8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band.b5, :root:not([data-theme="light"]) .band.b6, :root:not([data-theme="light"]) .band.b7 { color: #e9eaf8; } }
.band .mark { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; font-size: .66rem; font-weight: 700; color: var(--brass-ink); white-space: nowrap; line-height: 1.1; }
.band .mark::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-top-color: var(--brass); border-bottom: 0; margin-top: 2px; }
.band .mark.after-mark { color: var(--accent-ink); } .band .mark.after-mark::after { border-top-color: var(--accent); }

/* ---- scenarios ---- */
.scn-list { display: grid; gap: 12px; }
.scn { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 14px 22px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-solid); }
.scn.best { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.scn h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scn .sub { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.scn-fig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fig { min-width: 0; } .fig .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.fig .v { font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fig .v small { font-size: .78rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.fig .v.act { color: var(--brass-ink); } .fig .v.nope { color: var(--muted); font-weight: 650; font-size: .95rem; }
.scn-bar { grid-column: 1 / -1; display: grid; gap: 4px; }
.scn-bar .track { position: relative; height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.scn-bar .track i { position: absolute; inset: 0 auto 0 0; background: var(--normal); border-radius: 5px; }
.scn-bar .track i.after { background: var(--accent); }
.scn-bar .cap { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.cmp { display: grid; gap: 8px; }
.cmp-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .86rem; }
.cmp-row .track { height: 14px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.cmp-row .track i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); }
.cmp-row .track i.base { background: var(--normal); }
.cmp-row b { font-variant-numeric: tabular-nums; }

/* ---- solar and climate bars (drawn by charts/bars.js; this is the table
   alternative) ---- */
.sr-table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---- badges used on the report ---- */
.badge.brass { background: var(--brass-soft); color: var(--brass-ink); border-color: transparent; }
.badge.written { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- report page ---- */
.rep-head { position: sticky; top: 60px; z-index: 15; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.rep-head h1 { font-size: 1.25rem; overflow-wrap: anywhere; }
.rep-head .addr { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.rep-head .dial svg { width: 74px; }
.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 440px; }
.rep-wrap { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rep-sentinel { height: 1px; margin-bottom: -22px; }
.rep-head.stuck .addr, .rep-head.stuck .chips, .rep-head.stuck .crumbs { display: none; }
.rep-head.stuck { padding-block: 6px; } .rep-head.stuck .dial svg { width: 52px; } .rep-head.stuck h1 { font-size: 1.05rem; }
.rep-nav { position: sticky; top: calc(68px + var(--rep-head-h, 90px)); z-index: 14; display: flex; gap: 2px; overflow-x: auto; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 94%, transparent); backdrop-filter: blur(10px); scrollbar-width: none; }
.rep-nav::-webkit-scrollbar { display: none; }
.rep-nav a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.rep-nav a:hover { text-decoration: none; color: var(--ink); background: var(--accent-soft); }
.rep-nav a[aria-current="true"] { color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.rep-sec { scroll-margin-top: calc(68px + var(--rep-head-h, 90px) + 64px); display: grid; gap: 16px; }
.sec-h h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.sec-h h2 .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; }
.brief { font-size: 1.04rem; line-height: 1.6; color: var(--ink); max-width: 72ch; }
.headline { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.25; max-width: 40ch; }
.recs { display: grid; gap: 10px; counter-reset: rec; }
.rec { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-solid); counter-increment: rec; }
.rec::before { content: counter(rec); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brass-soft); color: var(--brass-ink); font-weight: 800; }
.rec b { display: block; } .rec span { color: var(--ink-2); font-size: .92rem; }
.banner.partial { background: var(--warn-soft); border-color: color-mix(in srgb, var(--brass) 55%, transparent); align-items: flex-start; }
.banner.partial svg { color: var(--brass-ink); margin-top: 2px; }
.banner.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.banner.ok svg { color: var(--ok); }
.banner.fail svg { color: var(--bad); }
.note-fine { font-size: .82rem; color: var(--muted); max-width: 80ch; }
.check-row .mk svg { width: 12px; height: 12px; stroke-width: 3.2; }
.check-row .t { font-weight: 600; }
.check-row .n { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--muted); }
.checks.cols { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.src-table td code { overflow-wrap: anywhere; }
.rep-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cert-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cert-box { flex-wrap: nowrap; } .cert-box .input { width: 150px; min-height: 36px; padding: 6px 10px; }

/* ---- preview panel (property form, property page, dashboard) ---- */
.pv { display: grid; gap: 14px; }
.pv-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.pv-top .dial svg { width: 132px; }
.pv-hz { display: grid; gap: 8px; }
.pv-hz-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 10px; align-items: center; font-size: .88rem; }
.pv-locked { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed var(--line-2); }
.pv-locked ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.pv-locked li { display: flex; gap: 8px; align-items: center; } .pv-locked li svg { color: var(--faint); width: 14px; height: 14px; }
.pv-stale { opacity: .55; transition: opacity .15s; }
.pv-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* ---- forms ---- */
.pf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.pf-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.fs { display: grid; gap: 14px; } .fs > legend, .fs-t { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.suggest { position: relative; }
.suggest ul { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.suggest li { display: grid; gap: 1px; padding: 9px 11px; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-soft); }
.suggest li small { color: var(--muted); }
.suggest .st { padding: 10px 12px; color: var(--muted); font-size: .86rem; cursor: default; }
.pin-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.pin-card svg.pin-art { width: 74px; height: 74px; }
.pin-card .none { color: var(--muted); }
.pin-card b { overflow-wrap: anywhere; }
.pin-art .p-ring { fill: none; stroke: var(--line-2); } .pin-art .p-ring.t { stroke-dasharray: 2 3; } .pin-art .p-roof { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .pin-art .p-dot { fill: var(--surface-solid); stroke: var(--brass); stroke-width: 3; }
.seg-field { display: grid; gap: 6px; }
.seg-field .seg { display: flex; flex-wrap: wrap; width: 100%; }
.seg.wrap button { flex: 1 1 auto; text-align: center; }
.seg button[role="radio"][aria-checked="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow), inset 0 -2px 0 var(--accent); }
.seg button:focus-visible { position: relative; z-index: 1; }
.seg-hint { font-size: .8rem; color: var(--muted); min-height: 1.3em; }
.num-in { display: flex; align-items: center; gap: 8px; } .num-in .input { text-align: right; font-variant-numeric: tabular-nums; } .num-in .u { color: var(--muted); font-size: .86rem; white-space: nowrap; }

/* ---- lists: properties, watch list, recent reports ---- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input { max-width: 280px; }
.toolbar .grow { flex: 1; }
.filter-chip { border: 1px solid var(--line-2); background: var(--surface-solid); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .84rem; cursor: pointer; }
.filter-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.p-name { display: grid; gap: 1px; min-width: 0; } .p-name b { overflow-wrap: anywhere; } .p-name > span { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.watch { display: grid; gap: 0; }
.watch-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); color: inherit; }
.watch-row:last-child { border-bottom: 0; } .watch-row:hover { background: var(--accent-soft); text-decoration: none; }
.watch-row .sc { text-align: center; min-width: 44px; } .watch-row .sc b { display: block; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.watch-row .hzs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.mini-lvl { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: 1px 7px 1px 5px; border-radius: 999px; }
.mini-lvl svg { width: 8px; height: 8px; fill: currentColor; stroke: none; }
.gbar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; gap: 2px; }
.gbar > div { display: grid; place-items: center; min-width: 26px; color: #fff; font-weight: 800; font-size: .8rem; }
.gbar-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.gbar-key span { display: inline-flex; align-items: center; gap: 6px; } .gbar-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.trial { display: grid; gap: 12px; }
.try-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* ---- property page ---- */
.ph { display: grid; gap: 10px; }
.ph h1 { overflow-wrap: anywhere; }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); color: inherit; }
.hist-row:last-child { border-bottom: 0; } .hist-row:hover { text-decoration: none; background: var(--accent-soft); }
.spark-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spark-wrap svg { max-width: 100%; }

/* ---- portfolio: import ---- */
.drop { display: grid; gap: 8px; place-items: center; text-align: center; padding: 30px 18px; border-radius: var(--radius); border: 2px dashed var(--line-2); background: var(--surface-2); color: var(--muted); transition: border-color .15s, background .15s; }
.drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop b { color: var(--ink); } .drop svg { width: 28px; height: 28px; color: var(--accent-ink); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.err-row td { color: var(--bad); }
.sel-bar { position: sticky; bottom: 76px; z-index: 12; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .sel-bar { background: #26245f; }
.sel-bar .btn { border: 0; } .sel-bar .muted { color: #c3c5ea; }
.ck { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---- job progress (a report running) ---- */
.jp { display: grid; gap: 10px; min-width: 0; }
.jp-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jp-text { display: grid; gap: 1px; min-width: 0; flex: 1; } .jp-text b { font-size: .95rem; }
.jp-spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: jp-spin .8s linear infinite; }
@keyframes jp-spin { to { transform: rotate(360deg); } }
.jp-bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.jp-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--brass)); transition: width .4s ease; }
.jp.ok .jp-spin { animation: none; border-color: var(--ok); background: var(--ok); }
.jp.bad .jp-spin { animation: none; border-color: var(--bad); background: var(--bad); } .jp.bad .jp-text b { color: var(--bad); }
.jp.bad .jp-bar i { background: var(--bad); }
.jp-rows { display: grid; gap: 6px; }
.jp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .88rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.jp-row:last-child { border-bottom: 0; }

/* ---- alerts timeline ---- */
.timeline { display: grid; gap: 4px; }
.tl { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; } .tl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--info); }
.tl.warning .dot { background: var(--r-mod); } .tl.critical .dot { background: var(--r-sev); }
.type-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.type-chip[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- developers ---- */
.snip-grid { display: grid; gap: 14px; }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .pf, .prop-grid, .rep-split { grid-template-columns: minmax(0, 1fr); }
  .pf-side { position: static; }
  .scn { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .rep-head { position: static; grid-template-columns: auto minmax(0, 1fr); }
  .rep-head .rep-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .rep-nav { top: 60px; }
  .rep-sec { scroll-margin-top: 120px; }
  .rep-head.stuck .addr, .rep-head.stuck .chips, .rep-head.stuck .crumbs { display: block; }
  .rep-head.stuck { padding-block: 12px; } .rep-head.stuck .dial svg { width: 74px; }
  .scn-fig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-grid { grid-template-columns: minmax(0, 1fr); }
  .sel-bar { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto; } .cmp-row .track { grid-column: 1 / -1; order: 3; }
  .pv-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .pv-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .try-box { grid-template-columns: minmax(0, 1fr); }
  .cert-box .input { width: 100%; flex: 1; }
  .bands .band small { display: none; }
  .watch-row { grid-template-columns: auto minmax(0, 1fr); } .watch-row > :last-child { grid-column: 1 / -1; }
}

/* ---- print: the report prints to a clean A4 ---- */
@media print {
  @page { size: A4; margin: 14mm; }
  :root, :root[data-theme="dark"] { color-scheme: light; --bg: #fff; --surface: #fff; --surface-solid: #fff; --surface-2: #fff; --ink: #14152e; --ink-2: #34365a; --muted: #4a4d6a; --line: #cfd2e4; --line-2: #b9bdd6; --bg-2: #eef0f8; --accent: #4338ca; --accent-ink: #3730a3; --dial-track: #e3e5f4; }
  body { background: #fff !important; font-size: 11pt; }
  .sidebar, .topbar, .tabbar, .toasts, .rep-nav, .rep-actions, .nav-scrim, #banners, .no-print, .skip-link { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  .card, .hz, .scn, .rec { box-shadow: none !important; backdrop-filter: none !important; break-inside: avoid; }
  .rep-head { position: static; box-shadow: none; backdrop-filter: none; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; padding-left: 0; }
  .rep-sec { break-inside: auto; scroll-margin-top: 0; }
  .sec-h h2 { break-after: avoid; }
  .dial .fill { animation: none; }
  a { color: inherit; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
