/* ─────────────────────────────────────────────────────────────────────────
   Shell: header, platform switcher, the impact console and its results.
   Same look and the same phone behaviour as the sibling UmaTerra platforms:
   desktop = controls | map | results; phone = map on top, a scrolling sheet
   below it (results first), with a toggle that gives the sheet more room.
   Tokens come from app.css :root.
   ───────────────────────────────────────────────────────────────────────── */

svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.model-strip, .model-strip * { stroke-linecap: round; }
.hide-xs { display: none; }
@media (min-width: 420px) { .hide-xs { display: inline; } }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: inline; } }

/* ── Header ── */
.topbar {
  height: 56px; padding: 0 12px; gap: 12px; background: var(--panel);
  border-bottom: 1px solid var(--border); position: relative; z-index: 1200;
}
.brand { align-items: center; gap: 8px; color: var(--fg); flex-shrink: 0; }
.brand-icon { width: 22px; height: 22px; color: var(--accent); }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.brand-sub { display: none; color: var(--muted); font-size: 0.8rem; line-height: 1.25; max-width: 210px; }
@media (min-width: 1680px) { .brand-sub { display: block; } }

.nav-main { display: none; gap: 2px; }
@media (min-width: 1100px) { .nav-main { display: flex; } }
@media (min-width: 1280px) and (max-width: 1479px) { .nav-main a:not(.active):not(:first-child) { display: none; } }
.nav-main a { color: var(--muted); padding: 6px 9px; border-radius: 6px; font-size: 0.88rem; }
.nav-main a.active { color: var(--accent-ink); background: var(--accent-soft); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-right > * { flex-shrink: 0; }

.icon-btn, .btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--panel); color: var(--fg);
  border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.85rem; white-space: nowrap;
}
.icon-btn { width: 34px; height: 34px; padding: 0; font-size: 1.2rem; line-height: 1; }
.icon-btn-sm { width: 26px; height: 26px; font-size: 1rem; border-color: transparent; }
.btn-soft { height: 32px; padding: 0 10px; background: var(--panel-2); border-color: transparent; }
.btn-soft:hover, .icon-btn:hover { background: var(--panel-2); border-color: var(--border); }
.icon-btn svg, .btn-soft svg { width: 16px; height: 16px; }
summary.icon-btn, summary.btn-soft { list-style: none; }
summary.icon-btn::-webkit-details-marker, summary.btn-soft::-webkit-details-marker { display: none; }

.lang-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-seg a { padding: 5px 9px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.lang-seg a:hover { text-decoration: none; background: var(--panel-2); }
.lang-seg a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }

/* menus (<details>) */
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; z-index: 1300;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column;
}
.menu-pop a { color: var(--fg); padding: 8px 10px; border-radius: 6px; font-size: 0.9rem; }
.menu-pop a:hover { background: var(--panel-2); text-decoration: none; }
.menu-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }
.menu-pop-wide { width: min(86vw, 330px); }
.nav-burger { display: block; }
@media (min-width: 1100px) and (max-width: 1279px), (min-width: 1480px) { .nav-burger { display: none; } }

/* platform switcher */
.suite-chips {
  display: none; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--border); border-radius: 8px;
}
.suite-menu { display: block; }
@media (min-width: 1280px) { .suite-chips { display: flex; } .suite-menu { display: none; } }
.suite-sep { width: 1px; height: 16px; background: var(--border); margin: 0 2px; }
.suite-chip {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: var(--muted);
}
.suite-chip svg { width: 14px; height: 14px; }
.suite-chip:hover, .suite-chip:focus-visible { background: var(--panel-2); color: var(--fg); text-decoration: none; }
.suite-chip.is-here { background: var(--accent-soft); color: var(--accent-ink); }
.suite-tip {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 260px; padding: 8px 10px; border-radius: 6px; background: #1c2024; color: #fff;
  font-size: 0.78rem; font-weight: 400; line-height: 1.4; white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity 0.12s 0.2s; z-index: 1300;
}
.suite-chip:hover .suite-tip, .suite-chip:focus-visible .suite-tip { opacity: 1; }
.suite-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 6px; color: var(--fg); }
.suite-item strong { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.suite-item strong svg { width: 14px; height: 14px; }
.suite-item span { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.suite-item.is-here { opacity: 0.75; }
a.suite-item:hover { background: var(--panel-2); text-decoration: none; }
.badge { font-size: 0.68rem; background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 1px 5px; font-weight: 500; }

/* buttons */
.btn-primary-sm {
  height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--accent);
  color: #fff; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.btn-primary-sm:hover { background: var(--accent-hover); }
.btn-link { border: 0; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-size: 0.82rem; padding: 5px 10px; border-radius: 6px; cursor: pointer; }

/* console sub-nav (secondary tools) on light */
.console-tabs { background: var(--panel); }

/* ── Console layout ── */
body.map-body > main { display: flex; flex-direction: column; }
.console {
  flex: 1; min-height: 0; display: grid; position: relative;
  grid-template-columns: 330px minmax(0, 1fr);
  grid-template-areas: "side map";
}
.console.has-results { grid-template-columns: 330px minmax(0, 1fr) 440px; grid-template-areas: "side map results"; }
@media (max-width: 1199px) {
  .console { grid-template-columns: 300px minmax(0, 1fr); }
  .console.has-results { grid-template-columns: 300px minmax(0, 1fr) 380px; }
}
.sheet { display: contents; }
.results[hidden], .sheet-toggle[hidden] { display: none !important; }
.sheet-toggle { display: none; }
.mapcol { grid-area: map; position: relative; min-height: 0; }
.mapcol .map { position: absolute; inset: 0; }
.side {
  grid-area: side; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--border);
  padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 4px;
}
.results {
  grid-area: results; overflow-y: auto; background: var(--panel);
  border-left: 1px solid var(--border); display: flex; flex-direction: column;
}

/* phone + small tablet: map on top, sheet below */
@media (max-width: 899px) {
  .console { display: flex; flex-direction: column; --map-h: 46vh; }
  .console.sheet-up { --map-h: 24vh; }
  .mapcol { flex: 0 0 var(--map-h); transition: flex-basis 0.2s ease; }
  .sheet {
    display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto;
    background: var(--panel); border-top: 1px solid var(--border);
    border-radius: 14px 14px 0 0; margin-top: -12px; position: relative; z-index: 5;
    box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  }
  .sheet-toggle {
    display: flex; align-self: center; align-items: center; justify-content: center;
    width: 56px; height: 22px; margin: 6px 0 2px; border: 0; border-radius: 11px;
    background: var(--accent); color: #fff; cursor: pointer; flex-shrink: 0;
  }
  .sheet-toggle svg { width: 18px; height: 18px; transition: transform 0.2s; }
  .console.sheet-up .sheet-toggle svg { transform: rotate(180deg); }
  .side, .results { border: 0; overflow: visible; }
  .results { border-bottom: 8px solid var(--panel-2); }
}

/* ── Side panel ── */
.side-sec { padding: 10px 0 12px; border-bottom: 1px solid var(--border); }
.side-sec:last-of-type { border-bottom: 0; }
.side-title {
  margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.side-fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; margin: 0; }
.side-fold > summary::after { content: "▸"; }
.side-fold[open] > summary::after { content: "▾"; }
.side-fold[open] > summary { margin-bottom: 8px; }
.field-label { font-size: 0.8rem; font-weight: 600; margin: 10px 0 6px; }
.search-row { display: flex; gap: 6px; }
.search-row input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px; font: inherit; font-size: 0.9rem;
  border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--fg);
}
.search-row input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search-results { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.search-results button {
  text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 6px; cursor: pointer;
  font: inherit; color: var(--fg); display: flex; flex-direction: column; gap: 1px;
}
.search-results button:hover { background: var(--panel-2); }
.search-results .sr-sub { font-size: 0.78rem; color: var(--muted); }
.search-results .sr-note { font-size: 0.78rem; color: var(--muted); padding: 4px 8px; }

.seg { display: flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--panel-2); padding: 2px; gap: 2px; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: 6px 4px; border-radius: 5px;
  font: inherit; font-size: 0.82rem; color: var(--muted); cursor: pointer; line-height: 1.2;
}
.seg button[aria-checked="true"] { background: var(--panel); color: var(--fg); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.seg-sub { display: block; font-size: 0.7rem; font-weight: 400; color: var(--muted); }
.tool-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.ee-status { font-size: 0.8rem; color: var(--error); background: #feebec; border-radius: 6px; padding: 8px 10px; }
.layer-row { padding: 6px 0; }
.layer-toggle { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; cursor: pointer; }
.opacity-slider { width: 100%; accent-color: var(--accent); }

/* layer groups from /v1/sources */
.layer-group-hdr {
  width: 100%; display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  padding: 6px 0; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--fg);
}
.lg-count { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.layer-select { font: inherit; font-size: 0.82rem; padding: 3px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); color: var(--fg); }

/* ── On-map elements ── */
.map-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2;
  background: rgba(28, 32, 36, 0.82); color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: 0.82rem; pointer-events: none; white-space: nowrap;
}
.map-hint.is-hidden { display: none; }
.qs-card {
  position: absolute; top: 12px; right: 56px; z-index: 3; width: min(340px, calc(100% - 70px));
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 14px 16px 12px; font-size: 0.86rem; line-height: 1.45;
}
@media (max-width: 899px) { .qs-card { top: 8px; left: 50px; right: 8px; width: auto; max-height: calc(var(--map-h) - 16px); overflow-y: auto; } }
.qs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qs-head svg { width: 18px; height: 18px; color: var(--accent); }
.qs-head strong { font-size: 1rem; }
.qs-head .icon-btn { margin-left: auto; }
.qs-steps { margin: 0; padding: 0; list-style: none; counter-reset: qs; display: flex; flex-direction: column; gap: 8px; }
.qs-steps li { counter-increment: qs; position: relative; padding-left: 28px; }
.qs-steps li::before {
  content: counter(qs); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center;
}
.qs-note { color: var(--muted); font-size: 0.78rem; margin: 10px 0; }
.qs-foot { display: flex; justify-content: space-between; align-items: center; }

.map-legend {
  position: absolute; left: 10px; bottom: 30px; z-index: 2; max-width: 240px; max-height: 45%; overflow-y: auto;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 6px 10px; font-size: 0.78rem;
}
.map-legend summary { cursor: pointer; font-weight: 600; }
.map-legend ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.lg-circle { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1c2024; background: rgba(28,32,36,.08); flex-shrink: 0; }
.lg-cell { width: 14px; height: 14px; border: 2px dashed #2a78d6; flex-shrink: 0; }
.lg-sw { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.lg-sub { margin-top: 6px; font-weight: 600; }
@media (max-width: 899px) { .map-legend { bottom: 18px; max-height: 60%; } .map-hint { bottom: 58px; } }

/* ── Results ── */
.res-head { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px 8px; }
.res-head-text { flex: 1; min-width: 0; }
.res-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); }
.res-title { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.res-sub { font-size: 0.8rem; color: var(--muted); }
.res-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; flex-shrink: 0; }
.res-tabs button {
  border: 0; background: none; padding: 9px 10px; font: inherit; font-size: 0.86rem; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.res-tabs button[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }
.res-body { padding: 12px 16px 24px; }
.res-h { font-size: 0.86rem; margin: 6px 0 8px; }
.res-loading { padding: 32px 16px; color: var(--muted); display: flex; gap: 10px; align-items: center; font-size: 0.9rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.callout { margin: 0 16px 8px; padding: 8px 10px; border-radius: 6px; font-size: 0.82rem; }
.callout-warn { background: #fff7e6; color: #8a4a00; border: 1px solid #f5d9a8; }

.hz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.hz-tile { border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.hz-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.hz-name { font-weight: 600; font-size: 0.84rem; }
.hz-level { display: inline-flex; align-items: center; gap: 2px; font-size: 0.7rem; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.hz-level svg { width: 12px; height: 12px; }
.hz-2 .hz-level { background: #feebec; color: #b3262b; }
.hz-1 .hz-level { background: #fff4d5; color: #8a5300; }
.hz-value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hz-value small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.hz-pct { font-size: 0.76rem; color: var(--muted); }
.hz-groups { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sw-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--muted); }
.sw-chip i, .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sw { margin-right: 6px; vertical-align: -1px; }
.story p { line-height: 1.6; font-size: 0.92rem; margin: 0 0 12px; }
.deeper { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.deeper-title { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.deeper-link { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); color: var(--fg); }
.deeper-link:hover { text-decoration: none; background: var(--accent-soft); }
.deeper-link span { font-size: 0.8rem; color: var(--muted); }

.stackbar { display: flex; gap: 2px; height: 18px; margin: 4px 0 12px; }
.stackbar span { min-width: 2px; border-radius: 2px; }
.stackbar span:first-child { border-radius: 4px 2px 2px 4px; }
.stackbar span:last-child { border-radius: 2px 4px 4px 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-bottom: 8px; }
.data-table th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); padding: 5px 4px; }
.data-table td { border-bottom: 1px solid var(--panel-2); padding: 5px 4px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fold { margin-top: 8px; }
.fold summary { cursor: pointer; font-size: 0.84rem; font-weight: 600; padding: 4px 0; }

.ind-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ind { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px 6px; }
.ind-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ind-name { font-weight: 600; font-size: 0.86rem; }
.ind-change { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ind-vals { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ind-strip svg { width: 100%; max-width: 320px; height: auto; display: block; margin-top: 4px; }
.ind-meta { font-size: 0.74rem; color: var(--muted); }
.prose-sm { font-size: 0.86rem; line-height: 1.55; }
.prose-sm ul { padding-left: 18px; }
.src-list { font-size: 0.82rem; padding-left: 18px; }

/* how-to dialog */
.howto { border: 0; border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 24px)); box-shadow: var(--shadow); color: var(--fg); }
.howto::backdrop { background: rgba(16, 24, 40, 0.4); }
.howto-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.howto-head h2 { margin: 0; font-size: 1.1rem; }
.howto-body { padding: 6px 18px 16px; line-height: 1.6; font-size: 0.92rem; max-height: 70vh; overflow-y: auto; }

/* MapLibre controls sit under the header menus */
.maplibregl-ctrl-top-right { z-index: 2; }

/* Very small phones (320 px): the longer "muda-clima" name no longer fits next to
   the four header buttons, so drop the brand icon and tighten the gaps. */
@media (max-width: 359px) {
  .topbar { gap: 6px; padding: 0 8px; }
  .brand-icon { display: none; }
  .brand-name { font-size: 1.02rem; }
  .topbar-right, .topbar-right > * { gap: 4px; }
}

/* ── Base map picker ── */
.fold-current { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--accent-ink); margin-left: 6px; font-size: 0.78rem; }
.bm-list { display: flex; flex-direction: column; gap: 2px; }
.bm-group { margin: 8px 0 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.bm-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none;
  padding: 6px 8px; border-radius: 6px; font: inherit; font-size: 0.86rem; color: var(--fg); cursor: pointer;
}
.bm-item:hover { background: var(--panel-2); }
.bm-item[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.bm-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); flex-shrink: 0; }
.bm-item[aria-checked="true"] .bm-dot { background: var(--accent); border-color: var(--accent); }
.bm-dot-ee { border-radius: 2px; }   /* a square marks a mosaic computed in Earth Engine */
#basemap-note { min-height: 1.2em; margin: 8px 0 0; }
.lg-ramp { height: 10px; border-radius: 3px; margin: 4px 0 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.lg-ramp-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); }
.bm-overlay { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ── Terrain tab, observed section, hazard notes ── */
.hz-note { margin: 6px 0 0; font-size: 0.76rem; line-height: 1.4; color: var(--fg); }
.obs-h { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.obs-card { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px 8px; margin-bottom: 10px; }
.obs-card svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.obs-trend { margin: 4px 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.obs-trend.is-clear strong { color: var(--accent-ink); }
.obs-station { margin: 6px 0 4px; font-size: 0.82rem; }
.obs-callout { margin: 4px 0; }
.obs-tag { font-size: 0.68rem; background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 1px 6px; }
.ter-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.ter-stat { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ter-stat b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ter-stat span { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }
.obs-trend.is-disputed { color: #8a4a00; }
