/* ============================================================================
   BULWARK — APP LAYER
   Built ONLY on the custom properties in tokens.css. No hex values, no font
   families, no pixel radii are declared here that are not tokens.
   ========================================================================== */

/* --------------------------------------------------------------- app shell */
.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-void);
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-4) var(--space-6);
  padding-bottom: calc(var(--tabbar-h) + var(--space-6));
}

.screen--plain { padding-bottom: var(--space-6); }

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface-void) 88%, transparent);
  backdrop-filter: blur(16px);
}

.appbar__brand { display: flex; align-items: center; gap: var(--space-2); }
.appbar__word {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-semibold, 600);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-light, 300);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tracking-heading);
  margin: var(--space-5) 0 var(--space-1);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-3);
}

.stack-tight > * + * { margin-top: var(--space-2); }
.stack-gap > * + * { margin-top: var(--space-4); }

/* ------------------------------------------------------------------ tabbar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  max-width: 430px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--surface-void) 92%, transparent);
  backdrop-filter: blur(18px);
}

.tabbar__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------ tiles */
.tile-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile {
  display: block;
  padding: 11px 10px;
  background: var(--surface-ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.tile:hover { border-color: var(--line-strong); }
.tile__n {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: var(--weight-semi, 600);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.tile__l {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: var(--weight-med, 500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}
.tile--brand { border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
.tile--brand .tile__n { color: var(--brand); }

/* ------------------------------------------------------------ hero button */
.hero-action {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 62px;
  padding: 15px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--brand) 46%, transparent);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    var(--surface-ink-2);
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.hero-action__plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  color: var(--on-brand);
  font-size: 19px;
  font-weight: var(--weight-semi, 600);
  line-height: 1;
}
.hero-action__t {
  flex: 1;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: var(--weight-med, 500);
  letter-spacing: -0.01em;
}
.hero-action__s {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-label);
  font-family: var(--font-mono);
}
.hero-action__arrow { color: var(--text-ghost); font-size: 15px; }

/* ---------------------------------------------------------------- rows+ring */
.claim-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-ink);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.claim-row:hover { border-color: var(--line-strong); }
.claim-row__body { flex: 1; min-width: 0; }
.claim-row__name {
  font-size: 13px;
  font-weight: var(--weight-semi, 600);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.claim-row__project { font-size: 10.5px; color: var(--text-tertiary); margin-top: 1px; }
.claim-row__meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.4px;
  letter-spacing: 0.02em;
  color: var(--text-label);
}
.claim-row__right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

/* --------------------------------------------------------------- filter bar */
.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: var(--weight-med, 500);
  text-decoration: none;
  white-space: nowrap;
}
.filter[aria-current="true"] {
  border-color: color-mix(in srgb, var(--brand) 46%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-light);
}

/* ------------------------------------------------------------------- forms */
.form-card {
  background: var(--surface-ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 58px; }

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%),
                    linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.step-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.step-bar__dot {
  height: 2px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
}
.step-bar__dot[data-on="true"] { background: var(--brand); }

/* -------------------------------------------------------------------- otp */
.otp { display: flex; gap: 7px; justify-content: center; }
.otp__box {
  flex: 1;
  max-width: 44px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--surface-slate);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: var(--weight-med, 500);
  color: var(--text-primary);
  text-align: center;
  caret-color: var(--brand);
  border-width: 1px;
  padding: 0;
}
.otp__box:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.otp__box[data-error="true"] { border-color: color-mix(in srgb, var(--state-lost) 55%, transparent); }

/* ---------------------------------------------------------------- outcomes */
.outcome-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--state-active) 50%, transparent);
  background: color-mix(in srgb, var(--state-active) 12%, transparent);
  color: var(--state-active);
  font-size: 21px;
  margin-bottom: var(--space-4);
}
.outcome-mark--clash {
  border-color: color-mix(in srgb, var(--state-competing) 50%, transparent);
  background: color-mix(in srgb, var(--state-competing) 12%, transparent);
  color: var(--state-competing);
}
.outcome-mark--provisional {
  border-color: color-mix(in srgb, var(--state-provisional) 50%, transparent);
  background: color-mix(in srgb, var(--state-provisional) 12%, transparent);
  color: var(--state-provisional);
}
.outcome-mark--neutral {
  border-color: var(--line-strong);
  background: var(--surface-slate);
  color: var(--text-tertiary);
}

.stamp {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-slate);
}
.stamp__v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: var(--weight-med, 500);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stamp__l {
  display: block;
  margin-bottom: 5px;
  font-size: 9.4px;
  font-weight: var(--weight-semi, 600);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
}

/* ---------------------------------------------------------------- viewfinder */
.viewfinder {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
}
.viewfinder video, .viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.viewfinder__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid color-mix(in srgb, var(--brand) 70%, transparent);
}
.viewfinder__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.viewfinder__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.viewfinder__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.viewfinder__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.watermark {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 9.6px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--brand-light);
  font-variant-numeric: tabular-nums;
}
.watermark b { display: block; font-weight: var(--weight-med, 500); color: var(--text-primary); }

.capture-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-5);
}
.shutter {
  width: var(--shutter);
  height: var(--shutter);
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand) 60%, transparent);
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--on-brand);
}
.shutter:active { transform: scale(0.97); }
.shutter__inner {
  width: calc(var(--shutter) - 22px);
  height: calc(var(--shutter) - 22px);
  border-radius: 50%;
  border: 2px solid var(--on-brand);
  opacity: 0.5;
}

/* ----------------------------------------------------------------- timeline */
.timeline__body { flex: 1; min-width: 0; }
.timeline__title { font-size: 12px; font-weight: var(--weight-semi, 600); line-height: 1.35; }
.timeline__text { margin-top: 2px; font-size: 11px; line-height: 1.55; color: var(--text-tertiary); }
.timeline__ts { margin-top: 4px; }

/* ------------------------------------------------------------------ sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 430px;
  background: var(--surface-ink-2);
  border-top-left-radius: var(--radius-sheet);
  border-top-right-radius: var(--radius-sheet);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  padding: var(--space-5) var(--space-4) var(--space-7);
  box-shadow: var(--shadow-sheet);
}
.sheet__grab {
  width: 38px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  margin: 0 auto var(--space-4);
}

/* ------------------------------------------------------------------ banner */
.banner__link { color: var(--brand); text-decoration: none; font-weight: var(--weight-semi, 600); }

/* -------------------------------------------------------------- leaderboard */
.lb-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lb-row:last-child { border-bottom: 0; }
.lb-rank {
  width: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-label);
  font-variant-numeric: tabular-nums;
}
.lb-name { flex: 1; font-size: 11.5px; color: var(--text-secondary); }
.lb-val { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-primary); }
.lb-row--self { background: color-mix(in srgb, var(--brand) 7%, transparent); border-radius: var(--radius-sm); }

/* ============================================================================
   ADMIN CONSOLE — desktop-first
   ========================================================================== */
.admin {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.admin__side {
  border-right: 1px solid var(--line);
  background: var(--surface-ink);
  padding: var(--space-4) var(--space-3);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin__brand { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-2) var(--space-5); }
.admin__brandname {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: var(--weight-med, 500);
  letter-spacing: -0.01em;
}
.admin__brandsub {
  font-family: var(--font-mono);
  font-size: 8.6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-top: 2px;
}
.nav-group {
  margin-bottom: var(--space-4);
  font-size: 8.8px;
  font-weight: var(--weight-semi, 600);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--text-ghost);
  padding: 0 var(--space-2);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-item:hover { background: var(--surface-ink-2); color: var(--text-primary); }
.nav-item[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 11%, transparent);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand-light);
}
.nav-badge {
  margin-left: auto;
  min-width: 19px;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--state-expiring) 18%, transparent);
  color: var(--state-expiring);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.admin__main { min-width: 0; display: flex; flex-direction: column; }
.admin__top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px var(--space-6);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-void) 92%, transparent);
  backdrop-filter: blur(14px);
}
.admin__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--weight-med, 500);
  letter-spacing: -0.01em;
  margin: 0;
}
.admin__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-top: 3px;
}
.admin__content { padding: var(--space-5) var(--space-6) var(--space-10); max-width: var(--content-max); width: 100%; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-ink);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-ink-2);
}
.panel__title {
  font-size: 11px;
  font-weight: var(--weight-semi, 600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
}
.panel__body { padding: var(--space-4); }

.table-wrap { overflow-x: auto; }
.table a { color: var(--brand-light); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
.table tr[data-overdue="true"] td { background: color-mix(in srgb, var(--state-lost) 7%, transparent); }

.mono-cell { font-family: var(--font-mono); font-size: 10.2px; letter-spacing: 0.02em; color: var(--text-label); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.kpi-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
a.kpi { text-decoration: none; display: block; transition: border-color var(--dur-fast) var(--ease-out); }
a.kpi:hover { border-color: color-mix(in srgb, var(--brand) 42%, transparent); }

.drill-hint {
  display: block;
  margin-top: 5px;
  font-size: 8.8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

.cards-2 { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; }
}

.claim-compare { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .claim-compare { grid-template-columns: 1fr; } }
.claim-col {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--surface-ink-2);
}
.claim-col--winner { border-color: color-mix(in srgb, var(--state-active) 44%, transparent); }

.kv { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 4px var(--space-3); font-size: 11.4px; }
.kv dt { color: var(--text-ghost); font-size: 9.6px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; color: var(--text-secondary); }
.kv dd.mono-cell { color: var(--text-primary); }

.evidence-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(135deg, var(--surface-slate) 0 8px, var(--surface-ink) 8px 16px);
  display: grid;
  place-items: center;
  color: var(--text-ghost);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}
.evidence-thumb img { width: 100%; height: 100%; object-fit: cover; }

.reason-box textarea {
  width: 100%;
  min-height: 78px;
  padding: 11px 13px;
  background: var(--surface-slate);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
}
.reason-box textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.sla-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 9.2px;
  letter-spacing: 0.04em;
  border: 1px solid;
}
.sla-chip--ok { color: var(--state-active); border-color: color-mix(in srgb, var(--state-active) 40%, transparent); }
.sla-chip--warn { color: var(--state-expiring); border-color: color-mix(in srgb, var(--state-expiring) 42%, transparent); }
.sla-chip--over { color: var(--state-lost); border-color: color-mix(in srgb, var(--state-lost) 44%, transparent); }

.diff { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.diff__col {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 9.6px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff__col--before { background: color-mix(in srgb, var(--state-lost) 9%, transparent); border: 1px solid color-mix(in srgb, var(--state-lost) 26%, transparent); }
.diff__col--after { background: color-mix(in srgb, var(--state-active) 9%, transparent); border: 1px solid color-mix(in srgb, var(--state-active) 26%, transparent); }

.empty-state { padding: var(--space-8) var(--space-4); text-align: center; }
.empty-state__t {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-med, 500);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}
.empty-state__b { font-size: 12px; line-height: 1.7; color: var(--text-tertiary); max-width: 42ch; margin: 0 auto; }

.brand-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-9) 0 var(--space-7);
  text-align: center;
}
.brand-cover__word {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: var(--weight-med, 500);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.brand-cover__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

.divider-soft { height: 1px; background: var(--line); border: 0; margin: var(--space-4) 0; }

.link-quiet { color: var(--brand); text-decoration: none; font-size: 11.5px; font-weight: var(--weight-med, 500); }
.link-quiet:hover { text-decoration: underline; }

.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn-row--stack { flex-direction: column; }
.btn-row > .btn { flex: 1; }

.toast {
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--state-active) 40%, transparent);
  background: color-mix(in srgb, var(--state-active) 10%, transparent);
  color: var(--text-primary);
  font-size: 11.5px;
  line-height: 1.55;
}
.toast--stop {
  border-color: color-mix(in srgb, var(--state-lost) 42%, transparent);
  background: color-mix(in srgb, var(--state-lost) 10%, transparent);
}

.note-inline { font-size: 10.5px; line-height: 1.6; color: var(--text-ghost); }

@media (max-width: 560px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
