/* Approaching Vividness — shared styles
   Visual register: warm, light, spacious, contemplative.
   Distinct from shader-lab (which is technical/lab). */

:root {
  --paper: #faf7f2;
  --paper-warm: #f3eee3;
  --paper-deep: #ece4d2;
  --ink: #28262e;
  --muted: #6c6772;
  --muted-soft: #a09aa8;
  --accent: #6f8e7c;       /* soft sage */
  --accent-deep: #4f6e5d;
  --accent-dim: rgba(111,142,124,0.14);
  --accent-faint: rgba(111,142,124,0.06);
  --warn: #c4825c;          /* warm clay — for callouts */
  --warn-faint: rgba(196,130,92,0.08);
  --line: rgba(40,38,46,0.10);
  --line-strong: rgba(40,38,46,0.22);

  --sidebar-width: 280px;
  --sidebar-collapsed-width: 48px;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* layout — sidebar + content */
body.has-nav { display: flex; }
.av-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.25s ease;
  padding: 56px 64px 120px;
}
body.nav-collapsed .av-content { margin-left: var(--sidebar-collapsed-width); }

main {
  max-width: 720px;
  margin: 0 auto;
}

/* typography */
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 18px;
  color: var(--ink);
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 36px;
  margin-bottom: 14px;
}
p { margin-bottom: 18px; }
p + p { margin-top: -4px; }
em { color: var(--accent-deep); font-style: italic; }
strong { font-weight: 600; }
a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.lesson-meta {
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-soft);
  margin-bottom: 8px;
}
.tagline {
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 48px;
  font-style: italic;
}

/* read-aloud blocks — the storyboard's "READ" content */
.read {
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 18px;
}
.read p:last-child { margin-bottom: 0; }

/* widgets — generic card */
.widget {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 1px 2px rgba(40,38,46,0.04);
}
.widget-label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
  margin-bottom: 14px;
}

/* timer */
.av-timer {
  text-align: center;
  font-family: var(--sans);
}
.av-timer .display {
  font-size: 48px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 8px 0 16px;
  letter-spacing: 0.02em;
}
.av-timer .controls { display: flex; gap: 10px; justify-content: center; }
.av-timer button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 22px;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.av-timer button:hover { background: var(--accent-faint); border-color: var(--accent); }
.av-timer button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.av-timer button.primary:hover { background: var(--accent-deep); }
.av-timer.running .display { color: var(--accent-deep); }
.av-timer.done .display { color: var(--accent); }

/* speak (TTS) */
.av-speak {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 4px;
}
.av-speak button.play {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: white;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.av-speak button.play:hover { background: var(--accent); color: white; }
.av-speak button.play.playing { background: var(--accent); color: white; }
.av-speak .text { flex: 1; font-size: 18px; line-height: 1.6; }

/* reflection textarea */
.av-reflect textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
  transition: border-color 0.15s ease;
}
.av-reflect textarea:focus { outline: none; border-color: var(--accent); }
.av-reflect .prompt {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 12px;
}
.av-reflect .saved {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: 8px;
  text-align: right;
}

/* video wrapper — works for YouTube iframe, Drive iframe, and self-hosted <video> */
.av-video {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  background: black;
  aspect-ratio: 16 / 9;
}
.av-video video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

/* audio widget */
.av-audio-widget {
  text-align: center;
}
.av-audio-widget audio {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 8px;
  display: block;
}
.av-audio-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.av-video.sensitive {
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-video.sensitive .sensitive-load {
  background: transparent;
  border: 2px dashed var(--muted-soft);
  color: var(--ink);
  padding: 32px 28px;
  border-radius: 12px;
  cursor: pointer;
  width: 80%;
  max-width: 400px;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.av-video.sensitive .sensitive-load:hover {
  border-color: var(--accent);
  background: var(--paper);
  color: var(--accent-deep);
}
.av-video.sensitive .sensitive-icon { font-size: 28px; color: var(--accent); }
.av-video.sensitive .sensitive-label { font-weight: 600; font-size: 15px; }
.av-video.sensitive .sensitive-hint {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
  text-align: center;
}
.av-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.av-video-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* card shuffle widget */
.av-cards { text-align: center; }
.av-cards .cards-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
  perspective: 1000px;
  min-height: 180px;
}
.av-cards .card {
  width: 110px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  cursor: pointer;
}
.av-cards .card.flipped { transform: rotateY(180deg); }
.av-cards .card.picked { transform: rotateY(180deg) translateY(-12px); }
.av-cards .card.shaking { animation: card-shake 0.4s ease; }
@keyframes card-shake {
  0%, 100% { transform: rotateY(180deg) translateY(-12px); }
  25% { transform: rotateY(180deg) translateY(-12px) translateX(-6px); }
  75% { transform: rotateY(180deg) translateY(-12px) translateX(6px); }
}
.av-cards .card-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(40,38,46,0.12);
}
.av-cards .face-down {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  transform: rotateY(180deg);
}
.av-cards .face-down::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(255,255,255,0.4);
  border-radius: 4px;
}
.av-cards .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
}
.av-cards .cards-prompt {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-style: italic;
  min-height: 1.6em;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.av-cards .cards-prompt.reveal-prompt {
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 500;
}

/* dial widget */
.av-dial .dial-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.av-dial .dial-slider {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: var(--paper-deep);
  border-radius: 999px;
  outline: none;
}
.av-dial .dial-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: transform 0.1s;
}
.av-dial .dial-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.av-dial .dial-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.av-dial .dial-value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  min-width: 32px;
  text-align: center;
}
.av-dial .dial-tiles {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.av-dial .tile {
  height: 28px;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.av-dial .dial-hint {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--serif);
}

/* guided-video widget */
.av-guided-video .gv-frame {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: black;
  margin-bottom: 8px;
}
.av-guided-video .gv-frame iframe,
.av-guided-video .gv-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.av-guided-video .gv-control {
  margin-top: 16px;
  text-align: center;
}
.av-guided-video .gv-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.av-guided-video .gv-step-num {
  font-weight: 600;
  color: var(--accent-deep);
  min-width: 60px;
}
.av-guided-video .gv-step-text {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-style: italic;
  flex-basis: 100%;
  text-align: center;
  line-height: 1.5;
  margin-top: 6px;
}

/* multi-person callout */
.callout {
  background: var(--warn-faint);
  border-left: 3px solid var(--warn);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 17px;
}
.callout-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--warn);
  margin-bottom: 8px;
}

/* lesson nav (prev/next at bottom) */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
}
.lesson-nav a {
  color: var(--muted);
  text-decoration: none;
}
.lesson-nav a:hover { color: var(--accent-deep); }
.lesson-nav .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-soft);
  margin-bottom: 4px;
}

/* index / TOC */
body.toc-page { display: block; }
body.toc-page .av-content { margin-left: 0; padding: 80px 32px 120px; }
.arc-section { margin-top: 56px; }
.arc-label {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}
.arc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 16px;
}
.lesson-list { list-style: none; }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.15s ease;
}
.lesson-list a:hover { color: var(--accent-deep); }
.lesson-list .num {
  font-family: var(--sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
  min-width: 28px;
}
.lesson-list .title { flex: 1; font-size: 19px; }
.lesson-list .tags {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* sidebar nav */
.av-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--paper-warm);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transition: width 0.25s ease;
  z-index: 100;
  font-family: var(--sans);
  font-size: 14px;
}
body.nav-collapsed .av-nav { width: var(--sidebar-collapsed-width); }
body.nav-collapsed .av-nav .nav-inner { display: none; }
.av-nav .nav-toggle {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-nav .nav-toggle:hover { background: var(--accent-dim); color: var(--accent-deep); }
.av-nav .nav-inner { padding: 24px 22px 40px; }
.av-nav .nav-home {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 4px;
}
.av-nav .nav-sub {
  font-size: 12px;
  color: var(--muted-soft);
  font-style: italic;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.av-nav .arc {
  margin-bottom: 22px;
}
.av-nav .arc-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}
.av-nav .arc-head .chev { display: inline-block; transition: transform 0.2s; margin-right: 4px; font-size: 9px; }
.av-nav .arc.collapsed .chev { transform: rotate(-90deg); }
.av-nav .arc.collapsed ul { display: none; }
.av-nav ul { list-style: none; }
.av-nav li a {
  display: block;
  padding: 6px 0 6px 14px;
  text-decoration: none;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.av-nav li a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.av-nav li a.active {
  color: var(--accent-deep);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* sidebar — journal link */
.av-nav .nav-journal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.av-nav .nav-journal a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 8px 14px;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  font-weight: 500;
  transition: all 0.15s ease;
}
.av-nav .nav-journal a:hover { border-left-color: var(--accent); color: var(--accent-deep); }
.av-nav .nav-journal a.active { color: var(--accent-deep); border-left-color: var(--accent); }
.av-nav .nav-journal .journal-icon { color: var(--accent); font-size: 16px; }
.av-nav .nav-journal .journal-label { flex: 1; }
.av-nav .nav-journal .journal-badge {
  display: none;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* reflect — journal link inside widget */
.av-reflect .widget-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.av-reflect .journal-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.av-reflect .journal-link:hover { border-bottom-color: var(--accent); }

/* journal page */
.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.journal-header h1 { margin-bottom: 0; }
.journal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { background: var(--accent-faint); border-color: var(--accent); color: var(--accent-deep); }
.btn.primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-deep); color: white; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.journal-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-style: italic;
  font-size: 19px;
}
.journal-arc {
  margin-bottom: 56px;
}
.journal-arc-label {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.journal-entry {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(40,38,46,0.04);
}
.journal-entry-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-soft);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.journal-entry-meta a { color: var(--muted); text-decoration: none; }
.journal-entry-meta a:hover { color: var(--accent-deep); }
.journal-entry-prompt {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.journal-entry-text {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.journal-entry-text.empty { color: var(--muted-soft); font-style: italic; }

/* pretext text effects — three tiers
   .pretext-title  — chars inside [data-pretext] (titles): muted-soft default, ink when active
   .pretext-link   — chars inside <a> tags in main: inherit color (links keep their own styling)
   .pretext-vivid  — chars inside .vivid-word: muted by default, rainbow on proximity
   .pretext-rainbow — applied to vivid chars in any tier; rainbow color set inline */
.pretext-line { position: relative; }
.pretext-char {
  display: inline-block;
  transition: color 0.18s ease;
  will-change: transform;
}
.vivid-word { display: inline-flex; }

[data-pretext]:not(.active) .pretext-title {
  color: var(--muted-soft);
}
[data-pretext].active .pretext-title {
  color: var(--ink);
}
.lesson-list a:hover .pretext-title { color: var(--ink); }

.vivid-word:not(.active) .pretext-vivid {
  color: var(--muted);
}

/* persistent sit timer (floating, always available) */
.av-sit-timer {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  font-family: var(--sans);
}
.av-sit-timer .sit-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(40,38,46,0.18);
  transition: transform 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-sit-timer .sit-toggle:hover {
  background: var(--accent-deep);
  transform: scale(1.06);
}
.av-sit-timer.running .sit-toggle {
  background: var(--accent-deep);
  animation: sit-pulse 2s ease-in-out infinite;
}
@keyframes sit-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(40,38,46,0.18); }
  50% { box-shadow: 0 4px 28px rgba(111,142,124,0.55); }
}
.av-sit-timer.done .sit-toggle {
  background: var(--accent);
  animation: sit-bell 1.2s ease-out 4;
}
@keyframes sit-bell {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}
.av-sit-timer .sit-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 260px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(40,38,46,0.18);
  display: none;
}
.av-sit-timer.open .sit-panel { display: block; }
.av-sit-timer .sit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.av-sit-timer .sit-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.av-sit-timer .sit-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.av-sit-timer .sit-close:hover { color: var(--ink); }
.av-sit-timer .sit-display {
  font-size: 38px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.av-sit-timer.running .sit-display { color: var(--accent-deep); }
.av-sit-timer.done .sit-display { color: var(--accent); }
.av-sit-timer .sit-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.av-sit-timer .sit-presets button {
  padding: 8px 0;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.av-sit-timer .sit-presets button:hover {
  background: var(--accent-faint);
  border-color: var(--accent);
}
.av-sit-timer .sit-presets button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.av-sit-timer .sit-custom {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.av-sit-timer .sit-custom input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}
.av-sit-timer .sit-custom input:focus { outline: none; border-color: var(--accent); }
.av-sit-timer .sit-custom button {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
}
.av-sit-timer .sit-custom button:hover { background: var(--accent-faint); border-color: var(--accent); }
.av-sit-timer .sit-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.av-sit-timer .sit-controls button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
}
.av-sit-timer .sit-start {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}
.av-sit-timer .sit-start:hover { background: var(--accent-deep) !important; }
.av-sit-timer .sit-reset:hover { background: var(--accent-faint); border-color: var(--accent); }
.av-sit-timer .sit-hint {
  font-size: 11px;
  font-style: italic;
  color: var(--muted-soft);
  text-align: center;
}

/* responsive */
@media (max-width: 900px) {
  .av-content { padding: 32px 24px 80px; }
  body.has-nav .av-content { margin-left: 0; }
  .av-nav { transform: translateX(-100%); transition: transform 0.25s; }
  body.nav-open .av-nav { transform: translateX(0); }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
}
