/* ────────────────────────────────────────────────────────────────
   Sage — design system
   Structure and scale follow the platform convention measured from the
   live reference (56px sticky header, 280px rail, 16/24px base type,
   20px/600 headings with −0.03em tracking, 3–16px radii, 4–48px spacing).
   The palette stays Sage's own: Unity indigo for action, the reference's
   green for live/success. Dark is the default; light is a full peer.
   ──────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  /* neutral surfaces: near-black, warm-neutral, layered */
  --bg: #080b12;
  --bg-elev: #0b1019;
  --surface: #111823;
  --surface-2: #16202d;
  --surface-3: #1c2836;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #f0f2f7;
  --text-2: #c2c9d6;
  --muted: #838d9f;
  --faint: #5a6373;

  /* action + state */
  --brand: #38bdf8;
  --brand-2: #6ee7b7;
  --brand-ink: #04121c;
  --brand-soft: rgba(56, 189, 248, 0.14);
  --live: #2f9e6b;
  --live-bright: #34d399;
  --live-soft: rgba(52, 211, 153, 0.12);
  --info: #7dd3fc;
  --warn: #fbbf24;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  /* space */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 40px;
  --s8: 48px;

  /* radius */
  --r1: 4px;
  --r2: 6px;
  --r3: 8px;
  --r4: 12px;
  --r5: 16px;
  --r6: 24px;
  --r-full: 999px;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.5);

  --rail: 280px;
  --topbar: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --surface-3: #e9edf4;
  --line: rgba(16, 24, 40, 0.1);
  --line-strong: rgba(16, 24, 40, 0.2);
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --brand: #0369a1;
  --brand-2: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: rgba(3, 105, 161, 0.1);
  --live: #218358;
  --live-bright: #1a7f55;
  --live-soft: rgba(33, 131, 88, 0.1);
  --info: #0b7bb5;
  --warn: #b45309;
  --danger: #d92d20;
  --danger-soft: rgba(217, 45, 32, 0.08);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, 0.1);
  --shadow-3: 0 24px 64px rgba(16, 24, 40, 0.16);
}

/* ── reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
.hidden { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
p { margin: 0; }
kbd {
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: 3px 5px;
}
code { font: 400 0.875em/1.4 var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: var(--r1); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r2);
}

.skip-link {
  position: fixed;
  left: -999px;
  top: var(--s3);
  z-index: 200;
  padding: var(--s2) var(--s4);
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--r3);
  font-weight: 600;
}
.skip-link:focus { left: var(--s4); }

/* ── connection banner ─────────────────────────────────────────── */
.net-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  padding-top: calc(var(--s2) + var(--safe-t));
  font-size: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--warn) 16%, var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.net-dot {
  width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--warn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent);
  flex: none;
}
.net-banner #netText { flex: 1; }
.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--text); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

/* ── shell ─────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  height: 100dvh;
  padding: var(--s4) var(--s3) calc(var(--s4) + var(--safe-b));
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s2);
  min-height: 32px;
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.tag {
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px 8px;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot {
  width: 9px; height: 9px;
  border-radius: var(--r-full);
  background: var(--faint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--faint) 22%, transparent);
  flex: none;
}
.dot.ok { background: var(--live-bright); box-shadow: 0 0 0 3px var(--live-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.sidebar-close { display: none; margin-left: auto; }

/* course picker */
.course-block { display: flex; flex-direction: column; gap: var(--s2); padding: 0 var(--s2); }
.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.course-row { display: flex; gap: var(--s2); }
.course-row select { flex: 1; min-width: 0; }

/* nav */
.tabs { display: flex; flex-direction: column; gap: 2px; }
.tab {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r3);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.active { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.tab.active .tab-ico { color: var(--brand); }
.tab-ico {
  display: grid;
  place-items: center;
  width: 20px;
  font-size: 14px;
  color: var(--muted);
}
.tab-label { flex: 1; min-width: 0; }
.tab kbd { opacity: 0.55; }

/* rail footer */
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s2); padding: 0 var(--s2); }
.rail-row { display: flex; gap: var(--s2); }
.rail-btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.rail-btn:hover { border-color: var(--line-strong); color: var(--text); }
.rail-btn kbd { margin-left: auto; }
.rail-btn.icon-only { justify-content: center; width: auto; flex: 1; padding: 9px 0; text-decoration: none; }
.rail-btn.icon-only:hover { text-decoration: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.icon-btn:active { transform: scale(0.96); }

/* content column */
.content-col { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: var(--topbar);
  padding: 0 var(--s5);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: var(--s2); font-size: 13px; min-width: 0; }
.crumb-root { color: var(--muted); }
.crumb-sep { color: var(--faint); }
.crumb-here { color: var(--text); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px 10px;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--live-bright) 35%, transparent);
  background: var(--live-soft);
  color: var(--live-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-pulse {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--live-bright);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

main {
  width: 100%;
  max-width: 1180px;
  padding: var(--s6) var(--s5) calc(var(--s8) + var(--safe-b));
  margin: 0 auto;
}

/* ── panels ────────────────────────────────────────────────────── */
.panel { display: none; }
.panel.active { display: block; animation: rise 0.2s var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.panel:focus { outline: none; }

.page-head { margin-bottom: var(--s5); }
.page-head h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; }
.page-sub { margin-top: var(--s2); max-width: 68ch; color: var(--muted); font-size: 14px; }

h3 { font-size: 16px; }
h4 { font-size: 13px; }
.section-title { margin: var(--s5) 0 var(--s3); }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 var(--s4); }
.muted { color: var(--muted); }
.mini { font-size: 12px; }

/* The StoreKit panel is a short report, one line per fact, not a sentence to reflow. */
.iap-diag { white-space: pre-line; }

/* ── cards ─────────────────────────────────────────────────────── */
.card,
.col,
.result,
.setup,
.aim-viewer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r5);
}
.card { padding: var(--s4) var(--s5); margin-bottom: var(--s4); }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.card-title { font-size: 15px; font-weight: 600; }

/* ── setup notice ──────────────────────────────────────────────── */
.setup {
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s4);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--warn) 10%, var(--surface)), var(--surface));
}
.setup p { margin: var(--s2) 0 var(--s3); font-size: 13.5px; color: var(--text-2); }
.setup h3 { margin-bottom: var(--s2); }

/* ── capture grid ──────────────────────────────────────────────── */
.capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.cap-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r4);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), transform 0.1s var(--ease);
}
.cap-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.cap-btn:active { transform: scale(0.99); }
.cap-btn.on {
  border-color: color-mix(in srgb, var(--live-bright) 55%, transparent);
  background: linear-gradient(180deg, var(--live-soft), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live-bright) 22%, transparent);
}
.cap-btn.danger.on { border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.cap-ico { font-size: 17px; line-height: 1.2; }
.cap-label { font-size: 14px; font-weight: 600; }
.cap-sub { font-size: 12px; color: var(--muted); }

.study-bar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  padding: var(--s3) var(--s4);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--r4);
  background: linear-gradient(180deg, var(--brand-soft), transparent);
}
.study-note { font-size: 12.5px; color: var(--muted); max-width: 52ch; }

.statusline {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) 0;
  font-size: 12.5px;
  color: var(--muted);
}
.counters { font-variant-numeric: tabular-nums; }

/* ── feeds ─────────────────────────────────────────────────────── */
.live-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.col { overflow: hidden; }
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
}
.col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed {
  height: 210px;
  overflow-y: auto;
  padding: var(--s3) var(--s4);
  font-size: 13.5px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.feed .line { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.feed .line:last-child { border-bottom: 0; }
.feed .line time {
  color: var(--faint);
  font-size: 11px;
  margin-right: var(--s2);
  font-variant-numeric: tabular-nums;
}
.feed .interim { padding: var(--s2) 0; color: var(--muted); font-style: italic; }
.feed .empty { color: var(--faint); font-size: 12.5px; }
.feed ul { margin: var(--s1) 0; padding-left: var(--s4); }
.feed li { margin: 3px 0; }
.feed strong { color: var(--text); }
.feed .exam { color: var(--warn); font-weight: 600; }

/* ── buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { border-color: var(--line-strong); background: var(--surface-3); }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
/* A ghost primary keeps the emphasis but has no filled background, so the ink made
   for the gradient would disappear on it; the brand colour carries it instead. */
.btn.ghost.primary { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger, .btn.ghost.danger { color: var(--danger); }
.btn.ghost.danger:hover { background: var(--danger-soft); }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn.block { width: 100%; margin-top: var(--s3); }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px; height: 15px;
  border: 2px solid color-mix(in srgb, var(--text) 30%, transparent);
  border-top-color: var(--text);
  border-radius: var(--r-full);
  animation: spin 0.7s linear infinite;
}
.btn.primary.loading::after { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drawer-in {
  from { opacity: 0; translate: -12px 0; }
  to { opacity: 1; translate: 0 0; }
}

.mini {
  padding: 2px 5px;
  border: 0;
  border-radius: var(--r1);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.mini:hover { color: var(--text); background: var(--surface-2); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s4) 0 var(--s2); }
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

/* ── fields ────────────────────────────────────────────────────── */
input[type='text'],
input[type='password'],
input[type='number'],
input[type='email'],
input[type='time'],
input[type='search'],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
textarea { resize: vertical; line-height: 1.55; margin-bottom: var(--s3); }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus {
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input[type='range'] { width: 100%; accent-color: var(--brand); }
input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--brand); }
::placeholder { color: var(--faint); }

.ask-row { display: flex; gap: var(--s2); margin-top: var(--s3); }
.ask-row input { flex: 1; min-width: 0; }
.field-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.inline-field { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--muted); }
.inline-field input, .inline-field select { width: auto; padding: 6px 9px; font-size: 13px; }
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r3);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.file-btn:hover { border-color: var(--brand); color: var(--text); }
.file-btn.block { display: flex; justify-content: center; margin-bottom: var(--s3); }

.thumbs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.thumbs .thumb {
  position: relative;
  width: 84px; height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  overflow: hidden;
}
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb-x {
  position: absolute;
  right: 4px; top: 4px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

/* ── results ───────────────────────────────────────────────────── */
.result { padding: var(--s4) var(--s5); margin-top: var(--s4); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.result-tag {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: var(--r-full);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.result-tools { display: flex; gap: var(--s2); }
.answer-main { font-size: 15px; line-height: 1.6; }
.answer-main .choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  margin-right: var(--s2);
  border-radius: var(--r2);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}
.answer-work {
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
  border-left: 2px solid var(--info);
  border-radius: var(--r2);
  background: var(--surface-2);
  font-size: 13.5px;
}
.answer-why { margin-top: var(--s3); font-size: 12.5px; color: var(--muted); }
.say-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-top: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid color-mix(in srgb, var(--info) 26%, transparent);
  border-radius: var(--r3);
  background: color-mix(in srgb, var(--info) 7%, transparent);
  font-size: 13.5px;
}
.say-text { flex: 1; }
.say-label {
  display: block;
  margin-bottom: 3px;
  color: var(--info);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.conf { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: 11.5px; color: var(--muted); }
.conf-bar { flex: 1; height: 5px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.conf-fill { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--info), var(--live-bright)); }

/* quiz card internals emitted by app.js */
.q, .qt { font-weight: 600; }
.qa { margin-top: var(--s2); }
.work { margin-top: var(--s2); font-size: 13.5px; color: var(--text-2); }
.why { margin-top: var(--s2); font-size: 12.5px; color: var(--muted); }
.meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.foot { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s3); font-size: 12px; color: var(--muted); }
.bar { height: 1px; margin: var(--s3) 0; background: var(--line); }

/* ── prose ─────────────────────────────────────────────────────── */
.prose { font-size: 14.5px; line-height: 1.7; }
.prose p { margin: 0 0 var(--s3); }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: var(--s4) 0 var(--s2); line-height: 1.3; }
.prose h1 { font-size: 20px; }
.prose h2 { font-size: 17px; }
.prose h3 { font-size: 15px; }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-left: var(--s5); }
.prose li { margin: var(--s1) 0; }
.prose blockquote {
  margin: 0 0 var(--s3);
  padding-left: var(--s3);
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
}

.stack { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s3); }
.stack .result { margin-top: 0; }
.quiz-progress { margin: var(--s2) 0; min-height: 16px; }

/* ── chips & memory ────────────────────────────────────────────── */
.chips { display: flex; flex-direction: column; gap: var(--s2); }
.chip {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface-2);
  font-size: 13px;
}
.chip .x, .memory-item .x {
  margin-left: auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.chip .x:hover, .memory-item .x:hover { color: var(--danger); }
.memory-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface-2);
  font-size: 13px;
}
.evo-item {
  padding: var(--s1) 0 var(--s1) var(--s3);
  border-left: 2px solid color-mix(in srgb, var(--brand) 50%, transparent);
  font-size: 12.5px;
  color: var(--text-2);
}
.evo-item time { display: block; margin-top: 2px; color: var(--faint); font-size: 11px; }

/* ── aim viewer ────────────────────────────────────────────────── */
.aim-viewer {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s4);
  border-color: color-mix(in srgb, var(--live-bright) 32%, transparent);
}
.aim-head { display: flex; align-items: center; gap: var(--s2); }
.aim-head strong { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.aim-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--live-bright); }
.aim-state { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aim-stop {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.aim-stop:hover { border-color: var(--danger); color: var(--danger); }
.aim-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: var(--r3);
  background: #05070c;
  overflow: hidden;
}
.aim-video { width: 100%; max-height: 46vh; object-fit: contain; background: #05070c; }
.aim-wait { font-size: 12px; color: var(--muted); }
.aim-bar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.aim-read {
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--live-bright) 45%, transparent);
  border-radius: var(--r-full);
  background: var(--live-soft);
  color: var(--live-bright);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.aim-count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aim-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.aim-still-wrap { display: flex; flex-direction: column; gap: var(--s1); }
#aimStill { width: 100%; border: 1px solid var(--line); border-radius: var(--r2); }
.aim-result { padding-top: var(--s3); border-top: 1px solid var(--line); }
.aim-result-head {
  margin-bottom: var(--s2);
  color: var(--live-bright);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.aim-result-body { font-size: 13.5px; }
.aim-result-body p { margin: 0 0 var(--s2); }

/* ── dialogs ───────────────────────────────────────────────────── */
dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: 86dvh;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r5);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-3);
  overflow-y: auto;
}
dialog::backdrop { background: rgba(4, 6, 10, 0.62); backdrop-filter: blur(4px); }
dialog h3 { margin-bottom: var(--s4); font-size: 18px; }
#settingsDialog { position: relative; }
#screenDialog { max-width: 26rem; }

.dialog-close {
  position: absolute;
  right: var(--s3);
  top: var(--s3);
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { background: var(--surface-3); color: var(--text); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.grid2 label { display: flex; flex-direction: column; gap: var(--s1); font-size: 12px; color: var(--muted); }
.grid2 .span2 { grid-column: span 2; }
.grid2 label .mini { margin-top: var(--s1); }
.check { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: 13px; color: var(--text-2); cursor: pointer; }
.steps { margin: var(--s2) 0 var(--s4) var(--s4); padding: 0; }
.steps li { margin-bottom: var(--s1); }

.admin-block {
  margin: 0 0 var(--s4);
  padding: var(--s3) var(--s4) var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r4);
  background: var(--surface);
}
.admin-block legend {
  padding: 0 var(--s2);
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-block label { display: block; margin-bottom: var(--s3); font-size: 12px; color: var(--muted); }
.admin-block label input { margin-top: var(--s1); }
#gatewayModels, #storePlans { gap: var(--s2); margin: var(--s2) 0 var(--s3); }
#gatewayModels .chip { padding: 3px 8px; font-size: 11.5px; }
#gatewayStatus, #micStatus, #modelStatus { margin: var(--s2) 0 var(--s3); }

/* ── command palette ───────────────────────────────────────────── */
.palette {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border-radius: var(--r5);
  margin-top: 12vh;
}
.palette::backdrop { background: rgba(4, 6, 10, 0.7); }
.palette-inner { display: flex; flex-direction: column; }
#paletteInput {
  width: 100%;
  padding: var(--s4) var(--s5);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
}
#paletteInput:focus { box-shadow: none; }
.palette-list { margin: 0; padding: var(--s2); max-height: 46vh; overflow-y: auto; list-style: none; }
.palette-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px var(--s3);
  border-radius: var(--r3);
  color: var(--text-2);
  font-size: 13.5px;
  cursor: pointer;
}
.palette-item.current { background: var(--brand-soft); color: var(--text); }
.palette-item kbd { margin-left: auto; }
.palette-empty { padding: var(--s3); color: var(--muted); font-size: 13px; }
.palette-foot {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ── shortcuts ─────────────────────────────────────────────────── */
.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); margin: 0 0 var(--s4); }
.shortcut-list dt { display: flex; gap: var(--s1); }
.shortcut-list dd { margin: 0; font-size: 13.5px; color: var(--text-2); align-self: center; }

/* ── toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--s5) + var(--safe-b));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r4);
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-2);
}
.toast.error { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 16%, var(--bg-elev)); }

/* ── scrim (mobile drawer) ─────────────────────────────────────── */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 6, 10, 0.6);
  backdrop-filter: blur(2px);
}

/* ── responsive ────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .capture-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .feed { height: 280px; }
}

@media (max-width: 1080px) {
  :root { --rail: 244px; }
  main { padding-inline: var(--s4); }
  .topbar { padding-inline: var(--s4); }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  /* The rail leaves the flow when closed. A translated panel keeps its hit area,
     so it would still cover the content on a phone — display:none cannot. */
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    display: none;
    box-shadow: var(--shadow-3);
  }
  body.nav-open .sidebar { display: flex; animation: drawer-in 0.2s var(--ease); }
  .sidebar-close { display: inline-flex; }
  .menu-btn { display: inline-flex; }
  main { padding-top: var(--s5); }
  .page-head h1 { font-size: 22px; }
}

@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid2 .span2 { grid-column: auto; }
  .actions .btn { flex: 1 1 auto; }
  .palette { margin-top: 6vh; }
  .page-head h1 { font-size: 20px; }
}

/* ── motion & contrast preferences ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, 0.22); --line-strong: rgba(255, 255, 255, 0.4); --muted: #b4bccb; }
  html[data-theme='light'] { --line: rgba(16, 24, 40, 0.28); --line-strong: rgba(16, 24, 40, 0.5); --muted: #475467; }
}

@media print {
  .sidebar, .topbar, .sidebar-foot, .net-banner, .toast, .actions, .capture-grid, .ask-row { display: none !important; }
  body { background: #fff; color: #000; }
  .result, .card { border-color: #ccc; box-shadow: none; }
}


/* ── profile sheet ────────────────────────────────────────────── */
.avatar-xs {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

dialog.sheet {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  max-height: 88dvh;
  padding: 0;
  border-radius: var(--r5);
  overflow: hidden;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  max-height: 88dvh;
}

.sheet-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 150% at 6% 0%, var(--brand-soft), transparent 60%),
    var(--bg-elev);
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: var(--r4);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-2);
}
.sheet-id { min-width: 0; }
.sheet-id h3 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.sheet-id .mini {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.sf-chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--bg-elev);
  color: var(--text-2);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sf-block { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.sf-title { margin: 0 0 var(--s1); font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.sf-block > .mini { margin: 0 0 var(--s3); }
.sf-block .grid2 { margin-top: var(--s3); }
.sf-block .check + .check { margin-top: var(--s2); }

.range-row { display: flex; align-items: center; gap: var(--s3); }
.range-row input[type='range'] {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--brand);
}
.range-row output {
  min-width: 3ch;
  padding: 2px 6px;
  border-radius: var(--r2);
  background: var(--surface-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.voice-preview {
  margin: var(--s3) 0 0;
  padding: var(--s3) var(--s4);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--r3) var(--r3) 0;
  background: var(--brand-soft);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}

.billing-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r4);
  background: var(--surface-2);
}
.billing-card > div { flex: 1 1 auto; min-width: 0; }
.billing-card strong { display: block; font-size: 13px; }
.billing-card .mini { margin: 4px 0 0; max-width: 48ch; }
.billing-card .btn { flex: 0 0 auto; }
.billing-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: var(--r-full);
  background: var(--warn);
  box-shadow: 0 0 0 4px rgb(255 170 60 / 0.16);
}

.settings-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: 0 0 var(--s4);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r4);
  background: var(--surface-2);
}
.settings-note strong { font-size: 13px; }
.settings-note .mini { margin: 2px 0 0; }
.settings-note .btn { flex: 0 0 auto; }

.sheet-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.sheet-actions { display: flex; gap: var(--s2); }

@media (max-width: 620px) {
  .sheet-hero { padding: var(--s4); }
  .sf-chips, .sf-block { padding-left: var(--s4); padding-right: var(--s4); }
  .sheet-foot { padding: var(--s3) var(--s4); flex-wrap: wrap; }
  .sheet-actions { width: 100%; }
  .sheet-actions .btn { flex: 1 1 auto; }
  .billing-card { flex-wrap: wrap; }
  .billing-card .btn { width: 100%; }
  .avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 17px; }
}


/* ── foundation documents ─────────────────────────────────── */
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
}
.doc-row .doc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.doc-row .doc-body strong { font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.doc-row .check { flex: 0 0 auto; }
.foundation-hint:empty { display: none; }

.grounded { margin-top: 8px; }

/* A citation is somewhere you can turn to: the chip opens the page it names. */
.cite-chip { font: inherit; font-size: 12px; cursor: pointer; color: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.cite-chip:hover { border-color: var(--brand); }
.cite-viewer { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4, 7, 12, 0.72); z-index: 60; padding: 20px; }
.cite-card { width: min(760px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.cite-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.cite-body { overflow: auto; padding: 4px 15px 15px; }
.cite-seg pre { margin: 4px 0 14px; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.cite-loc { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--brand); }

/* exam rehearsal: the clock, the questions, and the marks afterwards */
.paper-clock { margin: 10px 2px; font-family: var(--mono); }
.paper-q { padding: 14px 16px; }
.paper-q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.paper-q-n { font-family: var(--mono); font-size: 12.5px; color: var(--brand); }
.paper-q-text { margin: 6px 0 10px; font-size: 14.5px; }
.paper-answer { width: 100%; }
.paper-mark { border-top: 1px solid var(--line); padding: 10px 0; }
.paper-mark-head { display: flex; justify-content: space-between; gap: 10px; }

/* audio-only lectures: the recording this device kept, replayed from a note's offset */
.audio-player { width: 100%; margin: 10px 0 2px; height: 34px; }
.note-offset { margin-left: 2px; }

/* one search across every course */
.search-box { width: 100%; margin: 4px 0 8px; }
.search-hit { display: grid; gap: 2px; width: 100%; text-align: left; cursor: pointer; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
.search-hit:hover { border-color: var(--brand); }
.hit-kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); }
.hit-where { font-size: 12.5px; color: var(--text-2); }
.hit-text { margin: 3px 0 0; font-size: 13.5px; }
.search-hit mark { background: color-mix(in srgb, var(--brand) 24%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── 4.9: heard as well as seen, and right to left ─────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[dir='rtl'] body { text-align: right; }
[dir='rtl'] .tabs,
[dir='rtl'] .doc-row,
[dir='rtl'] .result-head,
[dir='rtl'] .statusline { text-align: right; }
[dir='rtl'] .skip-link:focus { left: auto; right: var(--s4); }
/* A page label, a code sample and a citation chip are not Arabic: they keep their
   own direction inside the sentence, so brackets and punctuation are not mirrored. */
[dir='rtl'] kbd,
[dir='rtl'] code,
[dir='rtl'] .cite-loc,
[dir='rtl'] .cite-chip { direction: ltr; unicode-bidi: isolate; }

/* The reader: one block per captured line, anchored under it. */
.reader-sec { border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08)); padding: 18px 0 6px; }
.reader-sec h3 { margin: 0 0 10px; font-size: 1rem; }
.reader-block { padding: 10px 0 12px; }
.reader-kind { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.reader-text { margin: 4px 0 6px; white-space: pre-wrap; }
.reader-anchors { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.reader-anchor { font-size: 0.72rem; opacity: 0.6; }
.reader-tools { display: flex; gap: 6px; }
.reader-edit { width: 100%; margin: 4px 0 6px; font: inherit; }
.readonly-badge { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
