:root {
  --blue: #1a73e8;
  --blue-light: #e8f0fe;
  --green: #1e8e3e;
  --green-light: #e6f4ea;
  --red: #d93025;
  --orange: #c45c26;
  --text: #1a1a1a;
  --text-secondary: #5f6368;
  --text-faded: #b8b8b8;
  --border: #e8e8e8;
  --surface: #ffffff;
  --bg: #f8f9fa;
  --word-highlight: #fef7e0;
  --word-border: #f9ab00;
  --radius: 12px;
  --font: 'Google Sans Flex', 'Roboto', system-ui, sans-serif;
  --reading-pad: 1.5rem;
  --speech-line: 0.36;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html {
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.75;
}

/* Reading — editorial layout */
.reading-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem var(--reading-pad);
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  background: linear-gradient(to bottom, var(--surface) 70%, transparent);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.reading-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.btn-home {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.btn-home:active { background: var(--bg); }

.btn-install-header {
  pointer-events: auto;
  border: none;
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.btn-install-header:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-install-header:active:not(:disabled) { background: var(--bg); }

.reading-main {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(4rem + env(safe-area-inset-top, 0px)) var(--reading-pad) 5.5rem;
  min-height: 100dvh;
}

.passage-theme {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.65rem;
}

.passage-title-row {
  display: block;
  margin-bottom: 1.75rem;
}

.passage-h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.passage-scroll-wrap {
  position: relative;
}

.passage {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text);
  transition: -webkit-mask-image 0.3s ease, mask-image 0.3s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.passage-scroll-wrap.at-end .passage {
  -webkit-mask-image: none;
  mask-image: none;
}

.passage-scroll-wrap.at-end .scroll-fade {
  opacity: 0;
  pointer-events: none;
}

.passage p {
  margin-bottom: 1.35rem;
  color: var(--text);
}

.passage-h2 {
  display: none;
}

.scroll-fade {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 7rem;
  margin-top: -7rem;
  background: linear-gradient(to bottom, transparent 0%, var(--surface) 85%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.passage .vocab-word {
  background: transparent;
  border-bottom: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.passage .vocab-word:active { opacity: 0.65; }

.speech-word-active {
  background: #ffe082;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background 0.12s ease;
  scroll-margin-top: calc(var(--speech-line) * 100vh);
}

/* Teleprompter mode — full text visible, no bottom fade while listening */
body.teleprompter-active .passage,
.passage-scroll-wrap.teleprompter-active .passage {
  -webkit-mask-image: none;
  mask-image: none;
}

body.teleprompter-active .scroll-fade,
.passage-scroll-wrap.teleprompter-active .scroll-fade {
  opacity: 0;
  pointer-events: none;
}

body.teleprompter-active .reading-header {
  opacity: 0;
  pointer-events: none;
}

body.teleprompter-active .btn-home {
  opacity: 0;
  pointer-events: none;
}

.listen-dock {
  position: fixed;
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 260;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  touch-action: manipulation;
  contain: layout style;
  transition: transform 0.15s, box-shadow 0.2s;
}

.listen-dock:active { transform: scale(0.94); }

.listen-dock.is-playing {
  box-shadow: 0 0 0 3px #ffe082, 0 4px 14px rgba(0, 0, 0, 0.28);
}

.listen-dock[hidden] { display: none !important; }

.passage .vocab-word.speech-word-active {
  background: #ffe082;
  text-decoration: none;
}

.example-line .speech-word-active {
  background: #ffe082;
  border-radius: 3px;
}

.sheet-word .speech-word-active {
  background: #ffe082;
  border-radius: 4px;
}

.scroll-sentinel {
  height: 2px;
  width: 100%;
}

/* Continue — fixed bottom-right, icon only */
.fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.fab:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.fab:not(:disabled):active {
  transform: scale(0.94);
  background: #1557b0;
}

/* Page navigation */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 1rem;
  gap: 0.5rem;
}

.btn-page {
  padding: 0.6rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.btn-page:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-page:not(:disabled):active { background: var(--border); }

.page-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}

.page-dots .dot.visited { background: #aecbfa; }
.page-dots .dot.active { background: var(--blue); transform: scale(1.3); }

/* Read button */
.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 28px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:active:not(:disabled) { transform: scale(0.98); background: #1557b0; }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.read-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

.read-hint.ready { color: var(--green); font-weight: 500; }

.btn-text {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--blue);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-danger {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.75rem;
}

/* Word sheet */
.word-sheet { position: fixed; inset: 0; z-index: 200; }
.word-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.32); }
.word-sheet-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.5rem 2.5rem;
  max-height: 70dvh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-word { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.35rem; }

.sheet-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.sheet-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sheet-meaning { font-size: 1.05rem; margin-bottom: 1.25rem; color: var(--text-secondary); }

.sheet-scenarios { display: flex; flex-direction: column; gap: 1rem; }

.scenario {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  border-left: 3px solid var(--blue);
}

.scenario-who {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.scenario-setup {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.35rem 0;
}

.scenario-say,
.scenario-line {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  font-style: italic;
  margin-top: 0.5rem;
}

.scenario-upgrade {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0.35rem 0;
}

.scenario-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.modal-panel h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.modal-panel p { color: var(--text-secondary); margin-bottom: 1rem; }
.modal-panel input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.modal-warning { color: var(--red) !important; font-weight: 500; }
.modal-hint { font-size: 0.8rem !important; font-style: italic; }

/* Quiz & complete overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--surface);
  overflow-y: auto;
}

.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100dvh;
}

.quiz-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 2rem; }
.quiz-progress-bar { height: 100%; background: var(--blue); transition: width 0.3s; }
.quiz-counter { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.quiz-question { font-size: 1.3rem; font-weight: 500; margin-bottom: 2rem; line-height: 1.4; }

.quiz-choices { display: flex; flex-direction: column; gap: 0.75rem; }

.quiz-stem {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.quiz-blank-slot {
  display: inline-block;
  min-width: 4.5rem;
  padding: 0 0.15rem;
  border-bottom: 2px solid var(--text);
  font-weight: 600;
  text-align: center;
}

.quiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quiz-chip {
  flex: 1 1 calc(50% - 0.6rem);
}

.quiz-choice {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}

.quiz-choice.correct { border-color: var(--green); background: var(--green-light); }
.quiz-choice.wrong { border-color: var(--red); background: #fce8e6; }
.quiz-choice:disabled { cursor: default; }

.quiz-coach {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  background: #fff8e1;
  border: 1px solid #f9ab00;
  border-radius: var(--radius);
}

.quiz-coach-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.example-line {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--blue);
}

.cert-preview {
  width: 100%;
  max-width: 360px;
  margin: 1rem auto 1.25rem;
}

.cert-preview-canvas {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.complete-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  min-height: 100dvh;
}

.complete-container h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.complete-container p { color: var(--text-secondary); margin-bottom: 0.5rem; }

.complete-icon {
  width: 72px; height: 72px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  margin-bottom: 1.5rem;
}

.complete-container .btn-primary { margin-top: 0.5rem; }
.complete-container .btn-text { margin-top: 0.25rem; }

/* Parent footer — hidden from kid focus */
.parent-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  text-align: center;
  padding: 0.25rem;
  background: transparent;
  pointer-events: none;
}

.parent-toggle {
  pointer-events: auto;
  background: none;
  border: none;
  color: #ccc;
  font-size: 0.65rem;
  font-family: var(--font);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.5;
}

.parent-toggle:active { opacity: 1; color: var(--text-secondary); }

.parent-panel {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.75rem 1rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.parent-stat { font-size: 0.75rem; color: var(--text-secondary); width: 100%; }

.parent-pace {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  margin: 0.15rem 0 0.25rem;
}

.parent-pace-label {
  width: 100%;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
}

.parent-pace-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.35rem 0.7rem;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.parent-pace-btn.is-active {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.parent-voice-name {
  width: 100%;
  font-size: 0.68rem;
  color: var(--text-faded);
  text-align: center;
  margin-bottom: 0.15rem;
}

.parent-link {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.parent-danger { color: var(--red); border-color: #f5c6c2; }

/* Sub panels */
.sub-panel {
  position: fixed; inset: 0; z-index: 160;
  background: var(--surface);
  overflow-y: auto;
}

.sub-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface);
}

.sub-header h2 { font-size: 1.1rem; font-weight: 500; }

.icon-btn {
  width: 44px; height: 44px;
  border: none; background: none;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.passage-list, .words-list { padding: 0.5rem; max-width: 640px; margin: 0 auto; }

.passage-item, .word-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem; border-radius: var(--radius); cursor: pointer;
}

.passage-item:active, .word-row:active { background: var(--bg); }
.passage-item.done .passage-item-title { color: var(--text); }
.passage-item:not(.done) .passage-item-title { color: #bdbdbd; }
.passage-item { flex-wrap: wrap; }
.passage-item-title { flex: 1; font-weight: 500; min-width: 50%; }
.passage-item-theme { width: 100%; font-size: 0.75rem; color: var(--text-secondary); }

.word-row.learned .word-text { color: var(--text); font-weight: 500; }
.word-row.upcoming .word-text { color: #bdbdbd; }
.word-row.upcoming .word-meaning { color: #e0e0e0; }

.word-index { font-size: 0.75rem; color: var(--text-secondary); min-width: 2.5rem; }
.word-info { flex: 1; }
.word-text { display: block; }
.word-meaning { display: block; font-size: 0.8rem; color: var(--text-secondary); }

.certs-gallery { padding: 1rem; max-width: 640px; margin: 0 auto; }
.cert-card { background: var(--bg); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.empty-state { text-align: center; color: var(--text-secondary); padding: 3rem; }

.toast {
  position: fixed; bottom: 3rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #323232; color: white;
  padding: 0.75rem 1.5rem; border-radius: 8px;
  font-size: 0.9rem; z-index: 300;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .reading-main { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .fab { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  .parent-footer { padding-bottom: env(safe-area-inset-bottom); }
  .word-sheet-panel { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 600px) {
  .passage { font-size: 1.2rem; }
  .passage-h1 { font-size: 2.35rem; }
  .reading-main { padding-left: 2rem; padding-right: 2rem; }
}

/* Home — three tabs: catalogs + settings */
.home-screen { z-index: 150; }

.home-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.5rem 1rem 5.5rem;
  min-height: 100dvh;
}

.home-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0 0.75rem;
}

.home-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.home-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--bg);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.home-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.home-tab.is-active,
.home-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.home-panel { min-height: 40vh; }

.home-field {
  margin: 1.35rem 0;
}

.home-label,
.home-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.home-field input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.home-pace { justify-content: flex-start; flex-wrap: wrap; }

.home-install-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.85rem;
}

/* Five-day IBKR coach — one ticket on screen */
.week-plan-shell {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  min-height: 100dvh;
}

.week-plan-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.week-plan-head h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.week-plan-proposal {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.35rem;
}

.week-plan-honest,
.week-plan-math,
.week-plan-note,
.week-plan-forbidden {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.week-plan-now {
  margin: 0.65rem 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.week-plan-later-label,
.week-plan-why h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.45rem;
}

.week-plan-forbidden { color: var(--red); }

.week-plan-today,
.week-plan-ticket,
.week-plan-alerts {
  margin: 1.5rem 0;
}

.week-plan-today h3,
.week-plan-ticket h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.week-plan-today-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.week-plan-pre {
  font-family: ui-monospace, 'Roboto Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  margin: 0.65rem 0 0.85rem;
}

.week-plan-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.week-plan-days {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.week-plan-day {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.week-plan-day.is-today {
  border-top-color: var(--blue);
}

.week-plan-day-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
