/* Meridian — Psychology Clinic Platform
   Editorial & human aesthetic */

:root {
  --accent-h: 160;
  --accent-c: 0.07;
  --accent-l: 0.52;
  --accent: oklch(var(--accent-l) var(--accent-c) var(--accent-h));
  --accent-soft: oklch(0.94 0.03 var(--accent-h));
  --accent-ink: oklch(0.32 0.06 var(--accent-h));

  --warn: oklch(0.62 0.14 40);
  --warn-soft: oklch(0.95 0.035 40);
  --danger: oklch(0.55 0.18 25);

  --bg: oklch(0.985 0.006 80);
  --paper: oklch(0.965 0.01 80);
  --paper-2: oklch(0.945 0.012 80);
  --line: oklch(0.89 0.012 80);
  --line-strong: oklch(0.82 0.015 80);
  --ink: oklch(0.22 0.013 60);
  --ink-2: oklch(0.38 0.013 60);
  --ink-3: oklch(0.55 0.013 60);
  --ink-4: oklch(0.72 0.012 70);

  --gap: 16px;
  --gap-sm: 10px;
  --gap-lg: 24px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-card: 0 1px 0 oklch(0.95 0.01 80), 0 1px 2px oklch(0.78 0.02 80 / 0.15);
  --shadow-pop: 0 12px 32px -12px oklch(0.3 0.04 80 / 0.22), 0 2px 6px oklch(0.3 0.04 80 / 0.08);

  /* Theme: sage (default) */
  --theme: sage;
}

[data-theme="clay"]   { --accent-h: 40;  --accent-c: 0.09; --accent-l: 0.58; }
[data-theme="indigo"] { --accent-h: 265; --accent-c: 0.08; --accent-l: 0.48; }
[data-theme="rose"]   { --accent-h: 15;  --accent-c: 0.08; --accent-l: 0.58; }
[data-theme="ink"]    { --accent-h: 230; --accent-c: 0.02; --accent-l: 0.28; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

/* WP admin bar offset */
body.admin-bar .app { padding-top: 32px; }
body.admin-bar .sidebar { top: 32px; }
body.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .app { padding-top: 46px; }
  body.admin-bar .sidebar { top: 46px; }
  body.admin-bar .topbar { top: 46px; }
}

button, input, textarea, select { font: inherit; color: inherit; }

.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); }
.eyebrow {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

/* ─── App shell ─── */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 22px; margin-bottom: 4px;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent) 0%, var(--accent-ink) 85%);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--paper);
}
.brand-mark::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  z-index: 1;
}
.brand-name { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; }
.brand-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: -3px; }

.nav-section { margin-top: 14px; }
.nav-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); padding: 0 8px 6px; font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; cursor: pointer;
  border: none; background: transparent; width: 100%; text-align: left;
  transition: background 0.12s; text-decoration: none;
}
.nav-item:hover { background: var(--paper-2); color: var(--ink); }
.nav-item.active { background: var(--ink); color: var(--bg); }
.nav-item.active .nav-ico { color: var(--bg); }
.nav-ico { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.nav-item .badge {
  margin-left: auto; font-size: 10.5px; padding: 1px 6px;
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 20px;
  font-weight: 500;
}
.nav-item.active .badge { background: var(--bg); color: var(--ink); }
.nav-badge-live {
  margin-left: auto; font-size: 10.5px; padding: 1px 6px;
  background: var(--danger); color: white; border-radius: 20px;
  font-weight: 500;
}

.sidebar-foot {
  margin-top: auto; padding: 10px 8px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}

/* ─── Main ─── */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { color: var(--ink-3); font-size: 12.5px; }
.topbar .crumb strong { color: var(--ink); font-weight: 500; }
.topbar-spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line);
  min-width: 180px; max-width: 340px; flex: 1;
  color: var(--ink-3); font-size: 12.5px;
}
.search > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.topbar .btn { white-space: nowrap; flex-shrink: 0; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.iconbtn:hover { background: var(--paper); border-color: var(--line); }

/* ─── Page ─── */
.page { padding: 24px 28px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; }
.page-title { font-family: var(--font-display); font-size: 40px; line-height: 1.05; letter-spacing: -0.015em; margin: 0; white-space: nowrap; }
.page-sub { color: var(--ink-3); margin-top: 6px; }

/* ─── Cards ─── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-pad { padding: 16px; }
.card-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-title { font-weight: 500; font-size: 13px; }
.card-head .eyebrow { font-size: 10px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.12s; text-decoration: none;
}
.btn:hover { background: var(--paper); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: oklch(0.15 0.015 60); }
.btn-accent { background: var(--accent); color: white; border-color: var(--accent); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--paper); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ─── Pills ─── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 500;
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.pill.warn   { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.live   { background: var(--danger); color: white; border-color: transparent; }
.pill.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: white; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ─── Avatars ─── */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.02em;
  flex-shrink: 0; border: 1px solid transparent;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 92px; height: 92px; font-size: 30px; font-family: var(--font-display); font-weight: 400; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { margin-left: -8px; border-color: var(--bg); }
.avatar-stack .avatar:first-child { margin-left: 0; }

.av-1 { background: oklch(0.92 0.04 160); color: oklch(0.32 0.06 160); }
.av-2 { background: oklch(0.92 0.05 40);  color: oklch(0.36 0.08 40); }
.av-3 { background: oklch(0.92 0.04 265); color: oklch(0.34 0.07 265); }
.av-4 { background: oklch(0.92 0.04 340); color: oklch(0.36 0.07 340); }
.av-5 { background: oklch(0.92 0.04 80);  color: oklch(0.36 0.06 80); }
.av-6 { background: oklch(0.92 0.04 200); color: oklch(0.34 0.07 200); }

/* ─── Tables ─── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 500; color: var(--ink-3);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--paper); cursor: pointer; }
.tbl tr:last-child td { border-bottom: none; }

/* ─── Striped placeholder ─── */
.ph-stripes {
  background: repeating-linear-gradient(45deg,
    oklch(0.94 0.01 80) 0 8px,
    oklch(0.96 0.01 80) 8px 16px);
  color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}

/* ─── Utilities ─── */
.row   { display: flex; align-items: center; gap: var(--gap); }
.col   { display: flex; flex-direction: column; gap: var(--gap); }
.gap-sm { gap: var(--gap-sm); }
.gap-lg { gap: var(--gap-lg); }
.spread { justify-content: space-between; }
.grow  { flex: 1; }
.divider  { height: 1px; background: var(--line); }
.vdivider { width: 1px; background: var(--line); align-self: stretch; }

/* ─── Video / live session ─── */
.video-grid {
  background: oklch(0.18 0.01 60);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}
.video-tile {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: oklch(0.85 0.01 80);
}
.video-tile.self {
  position: absolute; right: 12px; bottom: 12px; inset: auto;
  width: 170px; aspect-ratio: 4/3; border-radius: 8px;
  border: 2px solid oklch(0.22 0.01 60);
  background: oklch(0.24 0.01 60);
  z-index: 2;
}
.video-meta {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: oklch(0.18 0.01 60 / 0.7);
  backdrop-filter: blur(8px);
  color: oklch(0.95 0.005 80);
  padding: 6px 10px; border-radius: 20px; font-size: 12px;
}
.video-controls {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
  background: oklch(0.18 0.01 60 / 0.75);
  backdrop-filter: blur(8px);
  padding: 6px; border-radius: 100px;
}
.vc-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: oklch(0.3 0.01 60); color: oklch(0.95 0 0);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.vc-btn.end { background: var(--danger); }
.vc-btn.off { background: oklch(0.55 0.08 25); }

.faux-face {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, oklch(0.55 0.05 50) 0%, oklch(0.32 0.04 50) 70%);
}
.faux-face.warm { background: radial-gradient(circle at 40% 35%, oklch(0.58 0.06 40) 0%, oklch(0.34 0.05 40) 70%); }
.faux-face.cool { background: radial-gradient(circle at 40% 35%, oklch(0.48 0.04 220) 0%, oklch(0.28 0.03 220) 70%); }

/* daily.co iframe placeholder */
.daily-iframe-wrap {
  position: absolute; inset: 0;
  background: oklch(0.12 0.01 60);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: oklch(0.7 0.01 80);
}
.daily-iframe-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

/* ─── Engagement curve ─── */
.curve-wrap { padding: 8px 4px; }
.eng-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--ink-3); }
.eng-legend .k { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* ─── Transcript ─── */
.tx-line { padding: 6px 0; display: grid; grid-template-columns: 60px 1fr; gap: 10px; font-size: 12.5px; }
.tx-line .tx-time { color: var(--ink-4); font-family: var(--font-mono); font-size: 10.5px; padding-top: 2px; }
.tx-line .tx-speaker { font-weight: 600; font-size: 11px; color: var(--ink-2); margin-right: 6px; }
.tx-line.therapist .tx-speaker { color: var(--accent-ink); }
.tx-line.client .tx-speaker    { color: oklch(0.45 0.09 30); }
.tx-line.ai-flag { background: var(--accent-soft); border-radius: 6px; padding: 6px 8px; }

/* ─── Calendar ─── */
.cal-grid { display: grid; grid-template-columns: 60px repeat(7, 1fr); border-left: 1px solid var(--line); }
.cal-hd {
  padding: 10px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 11px; color: var(--ink-3); text-align: center;
}
.cal-hd strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-top: 2px; }
.cal-hd.today { background: var(--accent-soft); }
.cal-hd.today strong { color: var(--accent-ink); }
.cal-slot { height: 52px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.cal-time { padding: 4px 8px; font-size: 10.5px; color: var(--ink-4); font-family: var(--font-mono); text-align: right; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 52px; }
.cal-evt {
  position: absolute; left: 3px; right: 3px;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; line-height: 1.25;
  border-left: 3px solid var(--accent);
  overflow: hidden; cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cal-evt:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px oklch(0 0 0 / 0.08);
  z-index: 2;
}
.cal-evt.warn  { background: var(--warn-soft); color: var(--warn); border-left-color: var(--warn); }
.cal-evt.ghost { background: var(--paper-2); color: var(--ink-3); border-left-color: var(--ink-4); font-style: italic; }
.cal-evt.ghost .cal-evt-av { opacity: 0.6; }

.cal-evt-av {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
}
.cal-evt-body {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 1px;
}
.cal-evt-body strong {
  display: block; font-weight: 600; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-evt-body .et {
  font-family: var(--font-mono); font-size: 10px; opacity: 0.8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Compact for 30-min slots — drop the time line, tighten paddings */
.cal-evt.compact { padding: 3px 6px; gap: 5px; }
.cal-evt.compact .cal-evt-body strong { font-size: 10.5px; }

/* ─── Progress bars ─── */
.bar { height: 6px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar.warn > i { background: var(--warn); }

/* ─── Milestones ─── */
.ms-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ms-item:last-child { border-bottom: none; }
.ms-check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ms-check.done     { background: var(--accent); border-color: var(--accent); color: white; }
.ms-check.progress {
  border-color: var(--accent);
  background: conic-gradient(var(--accent) 0 60%, transparent 60% 100%);
}

/* ─── Note card ─── */
.note-card {
  background: oklch(0.975 0.028 80);
  border: 1px solid oklch(0.88 0.035 80);
  padding: 12px 14px; border-radius: 8px;
  font-size: 12.5px;
}

/* ─── Session grid ─── */
.session-grid {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  gap: 16px;
  align-items: start;
}

/* ─── AI cards ─── */
.ai-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, oklch(0.99 0.008 80) 0%, var(--bg) 100%);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.ai-card:hover { border-color: var(--accent); }
.ai-card .ai-kind {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600;
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.ai-pin { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.ai-pulse {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-pulse::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--accent); opacity: 0.3;
  animation: ping 1.8s infinite;
}
@keyframes ping {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ai-actions { margin-top: 8px; display: flex; gap: 6px; }

/* ─── Profile hero ─── */
.profile-hero {
  display: flex; gap: 28px; align-items: center;
  padding: 28px; background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* ─── Tabs ─── */
.tabbar {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabbar button, .tabbar a {
  padding: 8px 14px; border: none; background: transparent;
  color: var(--ink-3); cursor: pointer; position: relative; font-size: 13px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none; display: inline-block;
}
.tabbar button.active, .tabbar a.active { color: var(--ink); border-bottom-color: var(--ink); }
.tabbar button:hover, .tabbar a:hover   { color: var(--ink); }

/* ─── Segmented control ─── */
.seg {
  display: inline-flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px; width: 100%;
}
.seg button {
  flex: 1; padding: 5px 8px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--ink-2); font-size: 11.5px;
}
.seg button.active { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-card); }

/* ─── Form ─── */
.field       { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.input, select.input, textarea.input {
  padding: 9px 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--bg); font-size: 13px;
  width: 100%;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* ─── KPI ─── */
.kpi       { padding: 14px 16px; }
.kpi-val   { font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: -0.02em; }
.kpi-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.kpi-delta { font-size: 11px; font-family: var(--font-mono); }
.kpi-delta.up   { color: var(--accent); }
.kpi-delta.down { color: var(--warn); }

/* ─── Timeline ─── */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
}
.tl-item.accent::before { border-color: var(--accent); background: var(--accent); }

/* ─── SVG icons ─── */
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }

/* ─── Rupture / rapport gauge ─── */
.gauge-wrap { position: relative; width: 72px; height: 72px; }
.gauge-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}

/* ─── Timer ─── */
#session-timer { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ─── Back button row ─── */
.back-row {
  padding: 12px 28px 0;
  display: flex; gap: 6px; align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* ─── Sparkline SVG (inline) ─── */
.spark { display: inline-block; vertical-align: middle; }
