:root {
  --bg: #070b16;
  --bg-elev: #0b1122;
  --card: #10172a;
  --card2: #162038;
  --card3: #1d2947;
  --border: rgba(148, 163, 184, 0.14);
  --border-hi: rgba(148, 163, 184, 0.26);
  --tx: #f1f5f9;
  --tx-soft: #cbd5e1;
  --mut: #94a3b8;
  --tre: #4f8cff;
  --tre-bg: rgba(79, 140, 255, 0.14);
  --tre-tx: #9ec5ff;
  --tas: #10b981;
  --tas-hi: #22c58b;
  --tas-bg: rgba(34, 197, 139, 0.14);
  --tas-tx: #7ef0c1;
  --both: #8b6cff;
  --both-bg: rgba(139, 108, 255, 0.16);
  --both-tx: #d4c6ff;
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.15);
  --warn-tx: #fcd34d;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 6px 18px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 15% -8%, rgba(79, 140, 255, 0.14), transparent 65%),
    radial-gradient(800px 440px at 88% -5%, rgba(139, 108, 255, 0.13), transparent 65%);
  background-attachment: fixed;
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 56px;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
}

.ver-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--both-bg);
  color: var(--both-tx);
  border: 1px solid rgba(139, 108, 255, 0.35);
}

.top small {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--mut);
  line-height: 1.3;
}

.space-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(136, 39, 75, 0.55), rgba(90, 24, 50, 0.65));
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.space-btn:hover {
  border-color: rgba(251, 113, 133, 0.75);
  transform: translateY(-1px);
}

/* Primary 4-Tab Sticky Nav — Stacked Icon + Label for Zero Mobile Overlap */
.tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 16px 10px;
  background: rgba(7, 11, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--mut);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
}

.tabs button .t-ic {
  font-size: 1.05rem;
  line-height: 1;
}

.tabs button .t-lb {
  display: block;
  white-space: nowrap;
}

.tabs button.on {
  background: linear-gradient(180deg, #9678ff 0%, #7353e5 100%);
  color: #ffffff;
  border-color: rgba(212, 198, 255, 0.4);
  box-shadow: 0 8px 20px -6px rgba(139, 108, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
  .tabs button {
    flex-direction: row;
    gap: 8px;
    padding: 11px 12px;
    font-size: 0.9rem;
  }
}

main {
  padding: 16px;
}

/* Typography & Section Headers */
h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #ffffff;
}

h3 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mut);
  margin-bottom: 4px;
}

small, .mut {
  color: var(--mut);
  line-height: 1.4;
}

p {
  margin: 6px 0;
  line-height: 1.55;
}

/* Cards & Depth */
.card {
  background: linear-gradient(180deg, rgba(22, 32, 56, 0.72) 0%, rgba(16, 23, 42, 0.94) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
}

.card-sub {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--mut);
}

/* Hero Focus Card (Next Lever) */
.card.next {
  background: linear-gradient(135deg, rgba(35, 29, 66, 0.92) 0%, rgba(16, 23, 42, 0.96) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 5px solid var(--warn);
}

.next-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.next ol {
  margin: 10px 0 12px;
  padding-left: 20px;
  color: var(--tx-soft);
}

.next li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.ns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(11, 17, 34, 0.75);
  border: 1px solid rgba(139, 108, 255, 0.25);
}

.ns span {
  background: var(--both-bg);
  color: var(--both-tx);
  border: 1px solid rgba(139, 108, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.ns em {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--both-tx);
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

/* Segmented Controls & Filter Bars — ZERO SQUISHING / OVERLAP */
.seg-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
}

.seg-bar.seg-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.on {
  background: var(--card2);
  color: #ffffff;
  border-color: var(--border-hi);
  box-shadow: var(--shadow-sm);
}

/* Filter rail / wrapping pills — never flex:1 squish */
.filt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filt button,
.filt .pill {
  flex: 0 0 auto;
  min-width: auto;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--card2);
  color: var(--tx-soft);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.filt button.on,
.filt .pill.on {
  background: var(--both);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 108, 255, 0.4);
}

/* General Pills (Forms, Pickers) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-hi);
  background: var(--card2);
  color: var(--tx);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill.on {
  background: var(--accent, var(--both));
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5);
}

/* 5x2 Number Stepper Grid for Check-In */
.num-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.num-grid .pill {
  width: 100%;
  min-height: 46px;
  padding: 10px 4px;
  text-align: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.num-grid.half-grid .pill {
  min-height: 38px;
  font-size: 0.84rem;
  color: var(--mut);
  background: rgba(22, 32, 56, 0.6);
}

.num-grid.half-grid .pill.on {
  color: #ffffff;
  background: var(--accent, var(--both));
}

/* Bento Metric Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 359px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 680px) {
  .grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(29, 41, 71, 0.65) 0%, rgba(22, 32, 56, 0.9) 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, var(--both));
  border-radius: 15px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.metric small {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--mut);
  line-height: 1.35;
}

.metric b {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.metric em {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--both-tx);
  font-style: normal;
  font-weight: 600;
}

.tasha-m { --accent: var(--tas-hi); }
.trevor-m { --accent: var(--tre); }
.both-m { --accent: var(--both); }
.warn-m { --accent: var(--warn); }

/* Sub-score & Privacy Strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.strip-chip {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--card2);
  border: 1px solid var(--border-hi);
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tx-soft);
}

.strip-chip b {
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Clickable affordance */
.click {
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.click:hover {
  border-color: rgba(139, 108, 255, 0.55);
  transform: translateY(-1px);
}

/* Check-in Role Cards */
.roles {
  display: grid;
  gap: 12px;
}

.role {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 15px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, rgba(29, 41, 71, 0.65), rgba(22, 32, 56, 0.92));
  color: var(--tx);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.role span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.83rem;
  color: var(--mut);
  line-height: 1.4;
}

.role.tasha { border-left: 5px solid var(--tas-hi); }
.role.trevor { border-left: 5px solid var(--tre); }
.role.both { border-left: 5px solid var(--both); }

/* Progress & Question Stepper */
.prog {
  height: 7px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.prog i {
  display: block;
  height: 100%;
  background: var(--accent, var(--both));
  transition: width 0.25s ease;
}

.q {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 14px;
}

/* Inputs & Buttons */
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: var(--bg-elev);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--both);
  border-color: transparent;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.row > * {
  flex: 1 1 130px;
}

button.primary, button.ghost, button.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  cursor: pointer;
  transition: all 0.15s ease;
}

button.primary {
  background: linear-gradient(180deg, var(--accent, #9678ff) 0%, #6d4ce3 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px -4px rgba(139, 108, 255, 0.45);
}

button.ghost {
  background: rgba(22, 32, 56, 0.75);
  border: 1px solid var(--border-hi);
  color: var(--tx);
}

button.btn-sm {
  padding: 7px 12px;
  font-size: 0.78rem;
  border-radius: 9px;
  white-space: nowrap;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

/* Status & Who Badges */
.who {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.who.trevor { background: var(--tre-bg); color: var(--tre-tx); }
.who.tasha { background: var(--tas-bg); color: var(--tas-tx); }
.who.both { background: var(--both-bg); color: var(--both-tx); }

.st {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #283552;
  color: #e2e8f0;
  white-space: nowrap;
  line-height: 1.3;
}

.st-AGREED { background: var(--tas-bg); color: var(--tas-tx); border: 1px solid rgba(34, 197, 139, 0.3); }
.st-TO, .st-OPEN, .st-PROPOSED, .st-UNKNOWN { background: var(--warn-bg); color: var(--warn-tx); border: 1px solid rgba(245, 158, 11, 0.3); }
.st-NEGOTIATING, .st-EMERGING { background: var(--both-bg); color: var(--both-tx); border: 1px solid rgba(139, 108, 255, 0.3); }
.st-DAILY { background: var(--tre-bg); color: var(--tre-tx); border: 1px solid rgba(79, 140, 255, 0.3); }

/* Multi-column layouts */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .cols {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.col {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.col h3 {
  margin-top: 0;
}

/* Daily Bar Checklist */
.bar {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.bar li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.bar li.ok { border-left: 4px solid var(--tas-hi); }
.bar li.miss { border-left: 4px solid var(--warn); }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

td, th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

th {
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mut);
}

th.trevor { color: var(--tre-tx); }
th.tasha { color: var(--tas-tx); }

/* List Items & Practice Cards */
.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 10px 0;
}

.item.done {
  opacity: 0.6;
}

.item-main {
  flex: 1;
  min-width: 0;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
}

.tg {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 700;
}

/* Callouts & Split Cards */
.callout {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-left: 4px solid var(--tas-hi);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.callout.warn-callout {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
  border-left-color: var(--warn);
}

/* Agenda Card in Therapist Hub */
.agenda-card {
  background: linear-gradient(135deg, rgba(29, 41, 71, 0.88), rgba(16, 23, 42, 0.96));
  border: 1px solid rgba(139, 108, 255, 0.35);
  border-left: 5px solid var(--both);
}

.agenda-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(11, 17, 34, 0.65);
  border: 1px solid var(--border);
  margin-top: 8px;
}

/* Feed & Ledger */
.feed {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feed li {
  padding: 13px 14px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ledger {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ledger:last-child {
  border-bottom: 0;
}

.rb {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.rb small {
  display: block;
}

details {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tx);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow: auto;
}

/* Modal & Sheet */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.sheet {
  background: var(--card);
  border: 1px solid var(--border-hi);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 20px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
}

@media (min-width: 700px) {
  .modal {
    align-items: center;
    padding: 20px;
  }
  .sheet {
    border-radius: 20px;
  }
}

.mh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.mh h2 {
  margin: 0;
}

.mh-close {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 10px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tas-hi);
  color: #031c12;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.tog {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.tog input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.timer {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  align-self: center;
  text-align: center;
  color: var(--tas-tx);
}

audio {
  width: 100%;
  margin-top: 8px;
}

svg text {
  fill: var(--mut);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
}

a {
  color: var(--tre-tx);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
