:root {
  --bg0: #071018;
  --bg1: #0c1a28;
  --bg2: #122536;
  --line: rgba(146, 196, 214, 0.18);
  --text: #e7f1f6;
  --muted: #8aa3b3;
  --accent: #3ecfbf;
  --ok: #4caf7a;
  --gated: #6b8798;
  --warn: #d4a017;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --pad: 1rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  min-height: 100vh;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(62, 207, 191, 0.14), transparent 55%),
    linear-gradient(180deg, #08141f 0%, #071018 100%);
}

.top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: calc(0.85rem + env(safe-area-inset-top)) var(--pad) 0.7rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.82);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.brand { margin: 0; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: 0.06em; line-height: 1; }
.product { margin: 0.15rem 0 0; font-size: 0.72rem; letter-spacing: 0.28em; font-weight: 600; color: var(--accent); }
.top-meta { display: none; }

.wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0.85rem var(--pad) 3rem;
  display: grid;
  gap: 0.85rem;
}

.hero-status { padding: 0.15rem 0 0.25rem; }
.run-row { display: flex; align-items: center; gap: 0.55rem; }
.dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px rgba(76,175,122,0.2);
  flex-shrink: 0;
}
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(212,160,23,0.2); }
.dot.off { background: var(--gated); box-shadow: none; }
.run-label { font-weight: 700; letter-spacing: 0.12em; font-size: 0.95rem; }
.mode-line {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.headline-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.hcard {
  background: linear-gradient(160deg, rgba(62,207,191,0.12), rgba(18,37,54,0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  min-height: 4.6rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hl { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.hn { font-size: 1.85rem; font-weight: 700; font-family: var(--mono); line-height: 1.05; }
.hn.sm { font-size: 0.95rem; word-break: break-word; }

.panel {
  background: rgba(12, 26, 40, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 0.9rem 1rem;
}
.panel h2, .disc > summary {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.subh {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.finds { display: grid; gap: 0.65rem; }
.find-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.85rem 0.8rem;
}
.find-card:active { transform: scale(0.99); }
.find-name { margin: 0; font-size: 1.2rem; font-weight: 700; word-break: break-word; }
.find-symbol { margin: 0.1rem 0 0.35rem; color: var(--accent); font-family: var(--mono); font-weight: 600; }
.find-mint { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 0.45rem; }
.find-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem;
  font-family: var(--mono); font-size: 0.8rem;
}
.find-meta span { color: var(--text); }
.find-meta .k { color: var(--muted); margin-right: 0.25rem; }

.ready-status {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 0.55rem;
}
.ready-text { letter-spacing: 0.04em; }
.why-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem 0.65rem;
  background: var(--bg1);
}
.why-box summary {
  cursor: pointer; font-weight: 600; color: var(--muted);
  list-style: none; font-size: 0.88rem;
}
.why-box summary::-webkit-details-marker { display: none; }
.infra-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.infra-strip strong { color: var(--text); font-weight: 600; }
.why-list { margin: 0.4rem 0 0.2rem; padding-left: 1.1rem; color: var(--text); }
.why-list li { margin: 0.2rem 0; }
.readiness-panel.ready-highlight {
  border-color: rgba(76,175,122,0.55);
  box-shadow: 0 0 0 1px rgba(76,175,122,0.25);
}
.jev-role-panel .blocker-text {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.35;
}
.jev-role-panel .kv-grid.compact {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.disc {
  background: rgba(12, 26, 40, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.disc > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0.9rem;
  margin: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 3rem;
  display: flex; align-items: center;
}
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary::before {
  content: "⌄";
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.disc[open] > summary::before { transform: rotate(-180deg); }
.disc-body { padding: 0 0.9rem 1rem; border-top: 1px solid var(--line); }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.pipeline li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem;
  padding: 0.5rem 0.6rem; border-radius: 10px; background: var(--bg1);
}
.pipeline .arrow {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  font-size: 0.75rem; background: transparent; padding: 0;
}
.product-panel .product-note { margin: 0 0 0.75rem; font-size: 0.82rem; }
.product-stages {
  list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.25rem;
}
.product-stages li {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.55rem; border-radius: 10px; background: var(--bg1);
  align-items: center;
}
.product-stages .stage { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; word-break: break-word; }
.product-stages .stage-note {
  grid-column: 1 / -1; font-size: 0.72rem; line-height: 1.35;
}
.product-stages .arrow {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  font-size: 0.7rem; background: transparent; padding: 0;
}
.product-meta { margin-bottom: 0.75rem; font-size: 0.78rem; }
.state-pill.working { color: var(--ok); border-color: rgba(76,175,122,0.45); }
.state-pill.partial { color: #c9a227; border-color: rgba(201,162,39,0.45); }
.state-pill.dormant, .state-pill.pending { color: var(--muted); }
.state-pill.failed, .state-pill.missing, .state-pill.blocked { color: #c45c5c; border-color: rgba(196,92,92,0.45); }
.state-pill {
  font-family: var(--mono); font-size: 0.72rem;
  padding: 0.2rem 0.45rem; border-radius: 999px; border: 1px solid var(--line);
}
.state-pill.active, .state-pill.collecting { color: var(--ok); border-color: rgba(76,175,122,0.45); }
.state-pill.gated { color: var(--gated); }

.kv-grid, .health-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem;
}
.kv, .health-item {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.6rem;
}
.kv .k, .health-item .k {
  display: block; font-size: 0.65rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase;
}
.kv .v, .health-item .v { font-family: var(--mono); font-size: 0.82rem; word-break: break-word; }

.funnel { display: grid; gap: 0.2rem; }
.funnel-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem;
  padding: 0.4rem 0.5rem; background: var(--bg1); border-radius: 8px; font-size: 0.86rem;
}
.funnel-row .n { font-family: var(--mono); color: var(--accent); }
.funnel .down { text-align: center; color: var(--muted); font-size: 0.75rem; }
.recon {
  margin-top: 0.65rem; padding: 0.65rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg1); font-size: 0.84rem;
}
.recon.warn { border-color: rgba(212,160,23,0.5); color: var(--warn); }

.ladders { display: grid; gap: 0.75rem; }
.ladder-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem;
}
.ladder-card .title { font-weight: 700; margin-bottom: 0.45rem; word-break: break-word; }
.ladder-steps { display: grid; gap: 0.15rem; font-family: var(--mono); font-size: 0.75rem; }
.ladder-steps .step { color: var(--gated); }
.ladder-steps .step.current { color: var(--accent); font-weight: 700; }
.ladder-steps .step.done { color: var(--ok); }
.ladder-steps .arrow { color: var(--muted); text-align: center; font-size: 0.7rem; }

.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.activity li {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 0.65rem; font-size: 0.86rem;
}
.activity .when { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }

.meta-strip {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.2rem;
  color: var(--muted); font-size: 0.72rem;
}
.mono { font-family: var(--mono); }
.back a { color: var(--accent); text-decoration: none; font-weight: 600; }
.back { margin: 0 0 0.5rem; }

.event-detail { display: grid; gap: 0.85rem; }
.block {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.8rem;
}
.block h3 {
  margin: 0 0 0.45rem; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.block dl {
  margin: 0; display: grid; grid-template-columns: 8rem 1fr; gap: 0.28rem 0.45rem; font-size: 0.86rem;
}
.block dt { color: var(--muted); }
.block dd { margin: 0; font-family: var(--mono); font-size: 0.78rem; word-break: break-word; }
.evidence-grid { display: grid; gap: 0.45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-cell { background: var(--bg0); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem; }
.ev-cell .dim { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--muted); }
.ev-cell .disp { font-family: var(--mono); font-size: 0.76rem; margin-top: 0.2rem; }
.timeline { display: grid; gap: 0; }
.tl-item {
  position: relative; padding: 0.4rem 0 0.4rem 1.05rem;
  border-left: 2px solid rgba(62,207,191,0.35);
}
.tl-item::before {
  content: ""; position: absolute; left: -5px; top: 0.65rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem var(--pad) calc(1.2rem + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 0.72rem; border-top: 1px solid var(--line);
  align-items: center;
}
.foot-report, .top-report {
  color: var(--accent); text-decoration: none; font-weight: 600; letter-spacing: 0.04em;
}
.foot-report:hover, .top-report:hover { text-decoration: underline; }
.top-report {
  display: inline-block; margin-bottom: 0.2rem;
  font-family: var(--font); font-size: 0.78rem;
}


.desktop-only { display: none; }

/* —— Control Room V3 scientific progress —— */
.muted { color: var(--muted); }
.as-of { margin: 0.25rem 0 0; font-size: 0.72rem; letter-spacing: 0.04em; }
.hb-age { font-size: 0.75rem; font-weight: 500; letter-spacing: 0; }
.hcard .hd {
  display: block; margin-top: 0.2rem; font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.progress-panel h2,
.milestone-panel h2,
.watch-panel h2 { margin: 0 0 0.65rem; font-size: 0.92rem; letter-spacing: 0.08em; }
.sci-pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.15rem;
}
.sci-pipeline > li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; padding: 0.35rem 0.15rem;
  border-bottom: 1px solid rgba(146, 196, 214, 0.1);
}
.sci-pipeline .sp-label { font-weight: 600; font-size: 0.88rem; }
.sci-pipeline .sp-count {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600; color: var(--accent);
}
.sci-pipeline .sp-count.ny { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.sci-pipeline .sp-arrow {
  list-style: none;
  justify-content: center; color: var(--muted); border: 0; padding: 0;
  font-size: 0.85rem;
}
.funnel-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 42rem;
}
.milestone-text {
  margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 600; line-height: 1.35;
}
.blocker-label {
  margin: 0; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted);
  text-transform: uppercase;
}
.milestone-panel .blocker-text,
.watch-panel .blocker-text { margin: 0.35rem 0 0; font-size: 0.92rem; line-height: 1.4; }
.watch-list {
  margin: 0; padding-left: 1.15rem; font-size: 0.9rem; line-height: 1.45;
}
.watch-list li { margin: 0.35rem 0; }
.finds-note { margin: -0.35rem 0 0.55rem; font-size: 0.75rem; }
.find-expand {
  display: block; text-decoration: none; color: inherit;
}
.find-expand > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 1fr auto; gap: 0.15rem 0.75rem;
  align-items: baseline; padding: 0.15rem 0;
}
.find-expand > summary::-webkit-details-marker { display: none; }
.find-expand .find-name { font-weight: 650; font-size: 0.95rem; grid-column: 1; }
.find-expand .find-symbol { color: var(--accent); font-size: 0.8rem; grid-column: 1; }
.find-expand .find-mint {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted); grid-column: 1;
}
.find-expand .find-age {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.find-link { margin: 0.45rem 0 0; font-size: 0.8rem; }
.find-link a { color: var(--accent); }
.tech-id { color: var(--muted); font-family: var(--mono); font-size: 0.78em; }
.horizon-grid {
  display: grid; gap: 0.45rem; margin-top: 0.6rem;
  grid-template-columns: 1fr;
}
.horizon-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.65rem; display: grid; gap: 0.15rem; font-size: 0.8rem;
}
.horizon-card strong { font-size: 0.85rem; }
.exp-list { display: grid; gap: 0.55rem; }
.exp-row {
  display: grid; gap: 0.15rem; padding: 0.55rem 0.65rem;
  background: var(--bg1); border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.82rem;
}
.exp-row .exp-st { font-family: var(--mono); color: var(--muted); }

@media (min-width: 820px) {
  .headline-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desktop-only { display: block; }
  .top-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem;
    font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  }
  .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0.85rem 1rem;
    align-items: start;
  }
  .hero-status, .headline-cards { grid-column: 1 / -1; }
  .explorer-panel { grid-column: 1 / -1; }
  .progress-panel { grid-column: 1; }
  .readiness-panel, .milestone-panel, .watch-panel { grid-column: 2; }
  .jev-role-panel { grid-column: 1 / -1; }
  .finds-panel { grid-column: 1 / -1; }
  .disc, .meta-strip { grid-column: 1 / -1; }
  .sci-pipeline {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
  }
  .sci-pipeline > li:not(.sp-arrow) {
    flex-direction: column; align-items: flex-start;
    min-width: 5.5rem; border: 1px solid var(--line); border-radius: 10px;
    padding: 0.45rem 0.55rem; background: rgba(18,37,54,0.65);
  }
  .sci-pipeline .sp-arrow { border: 0; padding: 0 0.1rem; }
  .horizon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kv-grid, .health-grid, .evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .conditions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.75rem;
  }
  .cond {
    background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }
  .cond .st { font-family: var(--mono); float: right; }
  .finds {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem;
  }
}

.report-page { grid-column: 1 / -1; display: grid; gap: 0.85rem; }
.report-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.85rem; align-items: flex-start;
}
.report-kicker {
  margin: 0; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--accent); font-weight: 650;
}
.report-title {
  margin: 0.25rem 0 0.2rem; font-size: clamp(1.15rem, 4.2vw, 1.55rem); line-height: 1.2;
}
.report-file { margin: 0; font-size: 0.78rem; color: var(--muted); word-break: break-all; }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.btn-copy, .btn-raw, .btn-back {
  appearance: none; border-radius: 10px; padding: 0.55rem 0.85rem;
  font: inherit; font-size: 0.85rem; font-weight: 650; text-decoration: none;
  border: 1px solid var(--line); cursor: pointer;
}
.btn-copy {
  background: var(--accent); color: #041018; border-color: transparent;
}
.btn-raw, .btn-back {
  background: var(--bg2); color: var(--text);
}
.report-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.report-nav-link {
  font-size: 0.75rem; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.65rem;
}
.report-nav-link.is-active {
  color: var(--text); border-color: rgba(62, 207, 191, 0.45);
  background: rgba(62, 207, 191, 0.1);
}
.report-hint { margin: 0; font-size: 0.82rem; }
.report-body {
  margin: 0; padding: 0.9rem 1rem; max-height: min(70vh, 900px); overflow: auto;
  background: var(--bg1); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word; user-select: text;
}
.report-status { min-height: 1.2em; margin: 0; font-size: 0.8rem; }

/* —— V4 Event Explorer —— */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.explorer-panel { padding-bottom: 0.35rem; }
.explorer-head h2 { margin: 0 0 0.15rem; }
.explorer-controls {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.55rem 0 0.45rem;
}
.explorer-search { flex: 1 1 14rem; }
.explorer-search input {
  width: 100%; box-sizing: border-box;
  background: var(--bg1); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.85rem;
}
.explorer-sort select {
  background: var(--bg1); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.5rem 0.65rem; font: inherit; font-size: 0.85rem;
}
.ex-filters {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0.55rem;
}
.ex-chip {
  appearance: none; cursor: pointer;
  background: var(--bg1); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.28rem 0.65rem; font: inherit; font-size: 0.72rem;
  font-weight: 650; letter-spacing: 0.03em;
}
.ex-chip.is-active {
  color: var(--text); border-color: rgba(62, 207, 191, 0.45);
  background: rgba(62, 207, 191, 0.12);
}
.ex-meta { font-size: 0.75rem; margin: 0 0 0.45rem; font-family: var(--mono); }
.ex-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ex-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.ex-table th {
  text-align: left; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted);
  padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line); font-weight: 650;
  white-space: nowrap;
}
.ex-table td {
  padding: 0.42rem 0.55rem; border-bottom: 1px solid rgba(146, 196, 214, 0.1);
  vertical-align: middle;
}
.ex-row { cursor: pointer; }
.ex-row:hover { background: rgba(62, 207, 191, 0.06); }
.ex-tok { font-weight: 650; }
.ex-mint { color: var(--muted); font-size: 0.7rem; margin-top: 0.1rem; }
.ex-stage {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.1rem 0.35rem;
  color: var(--accent);
}
.hz-ok { color: var(--ok); font-weight: 700; }
.hz-fail { color: #d97b6c; font-weight: 650; font-size: 0.72rem; }
.hz-miss { color: var(--warn); font-weight: 650; font-size: 0.72rem; }
.hz-pend { color: var(--muted); }
.hz-other { color: var(--muted); font-size: 0.72rem; }
.ex-open { color: var(--accent); font-size: 1.1rem; text-align: right; }
.ex-pager { margin: 0.65rem 0 0.2rem; }
.ex-btn {
  appearance: none; cursor: pointer;
  background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.5rem 0.85rem; font: inherit; font-size: 0.82rem; font-weight: 650;
}
.ex-btn:disabled { opacity: 0.45; cursor: default; }
.ex-mobile { display: grid; gap: 0.45rem; }
.ex-mrow {
  display: grid; gap: 0.25rem; text-align: left; width: 100%;
  background: var(--bg1); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.65rem 0.75rem; color: var(--text); font: inherit; cursor: pointer;
}
.ex-mrow-top { display: flex; justify-content: space-between; align-items: center; }
.ex-mrow-sub { color: var(--muted); font-size: 0.75rem; }
.ex-mrow-hz { display: flex; flex-wrap: wrap; gap: 0.55rem; font-size: 0.78rem; font-family: var(--mono); }
.ex-mrow-meta { color: var(--muted); font-size: 0.75rem; }

.ex-drawer[hidden] { display: none !important; }
.ex-drawer {
  position: fixed; inset: 0; z-index: 80;
}
.ex-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55);
}
.ex-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(440px, 100%); background: var(--bg0);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.35);
}
.ex-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--line);
}
.ex-drawer-head h2 { margin: 0; font-size: 1.05rem; }
.ex-close { font-size: 1.25rem; line-height: 1; padding: 0.25rem 0.55rem; }
.ex-drawer-body {
  flex: 1; overflow: auto; padding: 0.75rem 1rem 1.25rem;
}
.ex-drawer-foot {
  border-top: 1px solid var(--line); padding: 0.65rem 1rem;
}
.ex-drawer-foot a { color: var(--accent); font-size: 0.85rem; font-weight: 650; }
body.ex-drawer-open { overflow: hidden; }

@media (max-width: 819px) {
  .ex-table-wrap.desktop-only { display: none !important; }
  .ex-drawer-panel {
    width: 100%; border-left: 0;
  }
}
@media (min-width: 820px) {
  .ex-mobile { display: none; }
  .ex-table-wrap.desktop-only { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
