/* Emile's Masterplan — Indigo-Dark Theme
   v3: Saturated indigo accent, wider surface contrast,
   all colors tokenized, no hardcoded hex outside :root. */
:root {
  --bg: #09090B;
  --surface0: #111113;
  --surface: #18181B;
  --surface2: #1F1F23;
  --surface3: #27272A;
  --surface4: #2F2F34;
  --fg: #F4F4F5;
  --muted: #A1A1AA;
  --muted-subtle: #71717A;
  --border: #27272A;
  --border-subtle: rgba(39, 39, 42, 0.5);

  --fg-rgb: 244, 244, 245;
  --bg-rgb: 9, 9, 11;
  --accent-rgb: 129, 140, 248;
  --good-rgb: 16, 185, 129;
  --danger-rgb: 244, 63, 94;
  --warn-rgb: 245, 158, 11;

  --accent: #818CF8;
  --accent-hover: #A5B4FC;
  --accent-bg: rgba(129, 140, 248, 0.12);
  --accent-dark: #6366F1;
  --accent-gradient: linear-gradient(135deg, #818CF8, #6366F1);
  --accent-gradient-2: linear-gradient(135deg, #818CF8, #10B981);

  --good: #10B981;
  --good-bg: rgba(16, 185, 129, 0.1);
  --good-gradient: linear-gradient(135deg, #10B981, #34D399);
  --warn: #F59E0B;
  --warn-bg: rgba(245, 158, 11, 0.1);
  --warn-light: #FBBF24;
  --warn-dark: #D97706;
  --danger: #F43F5E;
  --danger-bg: rgba(244, 63, 94, 0.1);
  --danger-light: #F87171;
  --danger-dark: #EF4444;
  --danger-gradient: linear-gradient(135deg, #F43F5E, #E11D48);
  --orange: #FB923C;
  --on-accent: #FFFFFF;

  --overlay: rgba(0, 0, 0, 0.65);
  --overlay-heavy: rgba(0, 0, 0, 0.8);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.2);
  --shadow-glow: 0 4px 20px rgba(var(--accent-rgb), 0.08), 0 1px 4px rgba(var(--accent-rgb), 0.04);
  --shadow-glow-good: 0 4px 20px rgba(var(--good-rgb), 0.06), 0 1px 4px rgba(var(--good-rgb), 0.03);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius: var(--radius-lg);
  --transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

::selection { background: rgba(var(--accent-rgb), 0.3); color: var(--fg); }

.main::-webkit-scrollbar { width: 6px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
.main::-webkit-scrollbar-thumb:hover { background: var(--border); }

.app {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: auto 1fr;
  height: 100vh;
}

/* ── Sidebar ───────────────────────────────── */
.sidebar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.03) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, rgba(var(--bg-rgb), 0.95) 100%);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 10;
}
.sidebar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.15) 50%, transparent 100%);
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-header {
  padding: 0.5rem 0;
  border-bottom: none;
  margin-bottom: 0;
  flex-shrink: 0;
}
.sidebar-header h1 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.125rem;
  padding: 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}
.nav-item:hover { color: var(--accent); background: var(--accent-bg); }
.nav-item.active {
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 600;
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.9;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { opacity: 1; }
.nav-icon svg { width: 100%; height: 100%; }

.nav-key-hint {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.0625rem 0.375rem;
  line-height: 1.4;
  opacity: 0.7;
  font-family: ui-monospace, monospace;
}
.nav-item:hover .nav-key-hint,
.nav-item.active .nav-key-hint { opacity: 1; color: var(--accent); border-color: var(--accent); }

/* ── Main Content ──────────────────────────── */
.main {
  grid-row: 2;
  grid-column: 2;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  max-width: 1600px;
  margin-inline: auto;
  width: 100%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(var(--good-rgb), 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(var(--accent-rgb), 0.015) 0%, transparent 80%),
    var(--bg);
}

@media (max-width: 1100px) {
  .chat-pane { display: none; }
  .main { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sidebar { padding: 0 0.5rem; gap: 0.25rem; }
  .sidebar-header h1 { font-size: 1rem; }
  nav { gap: 0; }
  .nav-item { padding: 0.5rem 0.5rem; font-size: 0.75rem; gap: 0.25rem; }
  .nav-key-hint { display: none; }
  .main { padding: 1rem; }
}

/* ── Form Elements ─────────────────────────── */
input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg), inset 0 1px 3px rgba(0,0,0,0.1);
  background: var(--surface2);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg), inset 0 1px 3px rgba(0,0,0,0.1);
  background: var(--surface2);
}
input::placeholder, textarea::placeholder { color: rgba(var(--fg-rgb), 0.35); }
.input-sm { width: auto; min-width: 150px; }

.inline-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }

/* ── Buttons ───────────────────────────────── */
button, .btn-primary {
  background: var(--accent-dark);
  color: var(--on-accent);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-glow);
}
button:hover, .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 28px rgba(var(--accent-rgb), 0.25);
}
button:active, .btn-primary:active { transform: translateY(0); }
button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.5rem;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  opacity: 0.5;
}
.sidebar-logout:hover { opacity: 1; color: var(--danger); background: var(--danger-bg); }

.btn-secondary {
  background: var(--surface2);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--surface3); border-color: var(--surface3); filter: none; transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

.btn-small {
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-small:hover { color: var(--fg); background: var(--surface2); transform: none; filter: none; }
.btn-small svg { width: 16px; height: 16px; }

.btn-danger {
  background: var(--danger);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(var(--danger-rgb), 0.2);
}
.btn-danger:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 24px rgba(var(--danger-rgb), 0.3); }
.btn-danger:active { transform: translateY(0); }

.btn-tiny {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.3rem;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1.4;
  transition: var(--transition);
}
.btn-tiny:hover { color: var(--fg); border-color: var(--accent); transform: none; filter: none; }

.btn-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}
.btn-chip:hover { color: var(--fg); border-color: var(--surface3); background: var(--surface3); transform: none; filter: none; }

.btn-with-icon { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-with-icon svg { width: 16px; height: 16px; }

/* ── Layout Helpers ────────────────────────── */
.greeting h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.02em; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }

/* ── Cards (unified design) ────────────────── */
.card, .strip-card, .ov2-mcard, .ov2-now, .ov2-momentum, .ov2-goal-card,
.ov2-chip, .ps-card, .github-card, .project-manage-card, .journal-card,
.habit-row, .goal-card-item, .goal-row {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover, .strip-card:hover, .ov2-mcard:hover, .github-card:hover,
.project-manage-card:hover, .habit-row:hover {
  border-color: var(--surface4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card, .ps-card, .github-card, .project-manage-card { padding: 1.5rem; }
.strip-card { padding: 0.875rem 1rem; }
.ov2-mcard { padding: 1rem 1.125rem; }
.ov2-goal-card { padding: 1rem 1.125rem; }
.habit-row { padding: 1rem 1.25rem; }
.goal-card-item, .goal-row { padding: 1.25rem; }
.journal-card { padding: 1.25rem; }

.card-value { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.25rem; }
.card-label { color: var(--muted); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.card-status { font-size: 0.8125rem; font-weight: 600; margin-top: 0.75rem; padding: 0.25rem 0.625rem; border-radius: var(--radius-sm); display: inline-block; }
.card-status.good { background: var(--good-bg); color: var(--good); }
.card-status.warn { background: var(--warn-bg); color: var(--warn); }
.card-status.danger { background: var(--danger-bg); color: var(--danger); }

.card-warn { background: var(--warn-bg); border: 1px solid var(--warn); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.card-warn pre { background: var(--surface0); padding: 0.75rem; border-radius: var(--radius-sm); font-size: 0.8125rem; margin: 0.5rem 0; overflow-x: auto; }
.card-warn ol { font-size: 0.875rem; line-height: 1.7; }
.card-warn a { color: var(--accent); }

.cal-status { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; font-size: 1rem; }
.cal-status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cal-status-dot--on { background: var(--good); box-shadow: 0 0 8px rgba(var(--good-rgb), 0.5); }
.cal-status-dot--off { background: var(--muted); }
.cal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.cal-result { padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.8125rem; }
.cal-result--ok { color: var(--good); }
.cal-result--err { color: var(--danger); }

.good { color: var(--good); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }

.subtle { color: var(--muted); font-size: 0.9375rem; }
.page-header { margin-bottom: 2rem; }
.page-header h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.page-header p { color: var(--muted); font-size: 0.9375rem; }

section { margin-bottom: 2.5rem; }
section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* ── Data Rows ─────────────────────────────── */
.entry-row {
  display: flex; gap: 1rem; align-items: center;
  padding: 0.875rem 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem;
}
.entry-row.today { background: var(--surface2); margin: 0 -0.75rem; padding: 0.75rem; border-radius: var(--radius-md); border-bottom: none; }
.entry-date { color: var(--muted); font-size: 0.875rem; white-space: nowrap; width: 100px; flex-shrink: 0; font-family: ui-monospace, monospace; }
.entry-text { flex: 1; }
.entry-amount { font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; }

/* ── Heatmap ───────────────────────────────── */
.heatmap { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0.5rem; }
.hm-cell {
  width: 16px; height: 16px; border-radius: var(--radius-xs);
  background: var(--surface2); transition: transform 0.2s, background-color 0.2s;
}
.hm-cell:hover { transform: scale(1.25); }
.hm-1 { background: rgba(var(--accent-rgb), 0.2); }
.hm-2 { background: rgba(var(--accent-rgb), 0.5); }
.hm-3 { background: var(--accent); }

/* ── Modals ────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: var(--overlay-heavy); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  width: 90%; max-width: 520px; max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.modal-title { flex: 1; font-weight: 700; font-size: 1rem; color: var(--fg); }
.modal-body { padding: 1rem 1.25rem; overflow-y: auto; flex: 1; }

/* ── Loading / Empty States ────────────────── */
.empty-state {
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state p { margin-bottom: 0.75rem; }

.session-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-md); cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.session-item:hover { background: var(--surface2); border-color: var(--border); }
.session-item-name { flex: 1; font-weight: 600; font-size: 0.9375rem; }
.session-item-meta { color: var(--muted); font-size: 0.8125rem; }
.session-item-actions { display: flex; gap: 0.375rem; }
.session-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ── Goals ─────────────────────────────────── */
.goal-card-item { background: var(--surface); border: 1px solid var(--border); }
.goal-header, .goal-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; font-weight: 600; font-size: 1rem; gap: 0.5rem; }
.goal-deadline { color: var(--muted); font-size: 0.875rem; font-weight: normal; }

/* Progress bars — consolidated */
.progress-bar, .cat-bar-bg {
  height: 8px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill, .cat-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.6s var(--spring);
}
/* Small progress bars (goal cards, mission gauges, plan, xp) */
.ov2-gc-bar, .ov2-mcard-gauge, .ov2-mcard-bar, .ov2-plan-bar,
.ov2-bar-bg, .xp-mini-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.ov2-gc-bar-fill, .ov2-gauge-fill, .ov2-bar-fill,
.ov2-plan-bar-fill, .xp-mini-fill, .bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.6s var(--spring);
}
.progress-fill--good, .ov2-gauge-fill--good { background: var(--good-gradient); }
.progress-fill--warn, .ov2-gauge-fill--warn { background: linear-gradient(135deg, var(--warn-light), var(--warn)); }
.progress-fill--danger, .ov2-gauge-fill--danger { background: linear-gradient(135deg, var(--danger-light), var(--danger)); }
.progress-fill--xp, .ov2-bar-fill--xp { background: linear-gradient(90deg, var(--accent), var(--accent-hover)); }

.progress-label, .ov2-mcard-sub, .ov2-plan-progress { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }

.goal-status { font-size: 0.8125rem; font-weight: 600; padding: 0.125rem 0.625rem; border-radius: var(--radius-lg); text-transform: uppercase; letter-spacing: 0.05em; }
.goal-status.active { background: var(--accent-bg); color: var(--accent); }
.goal-status.done { background: var(--good-bg); color: var(--good); }
.goal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.subgoal-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; margin-left: 0.5rem; font-size: 0.9375rem; }
.subgoal-row input[type="checkbox"], .habit-check {
  appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: var(--radius-xs);
  background: var(--surface2); cursor: pointer; transition: var(--transition);
  position: relative; flex-shrink: 0;
}
.subgoal-row input[type="checkbox"]:hover, .habit-check:hover { border-color: var(--accent); transform: scale(1.05); }
.subgoal-row input[type="checkbox"]:checked, .habit-check:checked {
  background: var(--good); border-color: var(--good);
  box-shadow: 0 0 8px rgba(var(--good-rgb), 0.3);
}
.subgoal-row input[type="checkbox"]:checked::after, .habit-check:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.done-text { text-decoration: line-through; color: var(--surface3); }
.subgoal-form { display: flex; gap: 0.5rem; margin: 0.75rem 0; }

/* ── Habits ────────────────────────────────── */
.habit-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.habit-left, .habit-right { display: flex; align-items: center; gap: 1rem; }
.habit-name { font-weight: 600; font-size: 1rem; }
.habit-streak { color: var(--muted); font-size: 0.875rem; font-weight: 500; background: var(--surface2); padding: 0.25rem 0.5rem; border-radius: var(--radius-xs); }

/* ── Journal ───────────────────────────────── */
.journal-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.25rem; margin-bottom: 1rem;
}
.journal-card.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow); }
.journal-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
.journal-text { font-size: 1rem; margin-bottom: 1rem; line-height: 1.6; }
.tag { font-size: 0.8125rem; font-weight: 600; background: var(--surface2); padding: 0.25rem 0.75rem; border-radius: var(--radius-lg); color: var(--fg); text-transform: uppercase; letter-spacing: 0.05em; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.danger { background: var(--danger-bg); color: var(--danger); }

/* ── Focus Timer ───────────────────────────── */
.timer-section { text-align: center; padding: 3rem 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 2.5rem; }
.timer-display { font-size: 5rem; font-weight: 700; font-family: ui-monospace, monospace; margin-bottom: 1.5rem; letter-spacing: -0.05em; color: var(--fg); line-height: 1.1; }
.timer-controls { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.timer-status { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; }

/* ── Reminders ─────────────────────────────── */
.reminder-list { margin-top: 1.5rem; }

/* ── Project Management ────────────────────── */
.projects-toolbar { margin-bottom: 1.5rem; display: flex; gap: 0.75rem; }

.project-manage-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.5rem; margin-bottom: 1.25rem;
}

.pm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.pm-header h3 { font-size: 1.25rem; font-weight: 700; margin: 0; border: none; padding: 0; text-transform: none; letter-spacing: normal; }

.pm-badges { display: flex; gap: 0.5rem; }
.pm-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: var(--radius-lg);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pm-badge.good { background: var(--good-bg); color: var(--good); }
.pm-badge.danger { background: var(--danger-bg); color: var(--danger); }

.pm-badge--local, .pm-badge--live { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: var(--radius-lg); text-transform: uppercase; letter-spacing: 0.05em; }
.pm-badge--local { background: var(--good-bg); color: var(--good); }
.pm-badge--live { background: var(--accent-bg); color: var(--accent); }
.pm-badge--down { background: var(--danger-bg); color: var(--danger); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.status-dot--up { background: var(--good); box-shadow: 0 0 6px rgba(var(--good-rgb), 0.5); }
.status-dot--down { background: var(--danger); box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.5); }

.pm-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.pm-detail { font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.pm-label { color: var(--muted); font-weight: 500; min-width: 40px; }
.pm-detail code { font-family: ui-monospace, monospace; font-size: 0.875rem; color: var(--fg); background: var(--surface2); padding: 0.125rem 0.5rem; border-radius: var(--radius-xs); }
.pm-detail a { font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.25rem; }
.pm-detail a svg { width: 12px; height: 12px; }

.pm-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pm-build-log {
  margin-top: 0.75rem; background: var(--surface0); border: 1px solid var(--border); border-radius: var(--radius-md);
  max-height: 400px; overflow-y: auto;
}
.pm-log-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.pm-build-log pre { margin: 0; padding: 0.75rem; font-family: ui-monospace, monospace; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); white-space: pre-wrap; word-break: break-all; }
.pm-build-log code { background: none; padding: 0; color: var(--muted); }

.pm-log {
  margin-top: 1rem; background: var(--surface0); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.75rem; max-height: 300px; overflow-y: auto;
}
.pm-log pre { margin: 0; font-family: ui-monospace, monospace; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); white-space: pre-wrap; word-break: break-all; }
.pm-log code { background: none; padding: 0; color: var(--muted); }

.pm-status-msg { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; padding: 0.375rem 0.75rem; border-radius: var(--radius-sm); }
.pm-status-msg--info { background: var(--accent-bg); color: var(--accent); }
.pm-status-msg--ok { background: var(--good-bg); color: var(--good); }
.pm-status-msg--err { background: var(--danger-bg); color: var(--danger); }

.pm-git { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--surface3); }
.pm-git-bar { display: flex; gap: 0.375rem; flex-wrap: wrap; align-items: center; }
.pm-git-input { font-family: ui-monospace, monospace; font-size: 0.8125rem; padding: 0.25rem 0.5rem; border: 1px solid var(--surface3); border-radius: var(--radius-xs); background: var(--surface0); color: var(--fg); flex: 1; min-width: 140px; max-width: 260px; }
.pm-git-input:focus { outline: none; border-color: var(--accent); }
.pm-git-result { margin-top: 0.375rem; font-size: 0.8125rem; font-weight: 600; }
.pm-git-result--info { color: var(--accent); }
.pm-git-result--ok { color: var(--good); }
.pm-git-result--err { color: var(--danger); }

/* ── GitHub Page ───────────────────────────── */
.git-summary-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.github-card { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1.5rem; }
.github-card.gh-card-error { border-color: var(--danger); opacity: 0.7; }
.gh-left { display: flex; align-items: center; gap: 0.5rem; }
.gh-group-tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface2); color: var(--muted); padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); }
.github-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.github-header h4 { font-size: 1.125rem; font-weight: 700; margin: 0; border: none; padding: 0; text-transform: none; letter-spacing: normal; }
.github-repo { font-size: 0.8125rem; font-weight: 600; color: var(--muted); font-family: ui-monospace, monospace; }
.github-status-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.gs-badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: var(--radius-md); text-transform: uppercase; letter-spacing: 0.05em; }
.gs-clean { background: var(--good-bg); color: var(--good); }
.gs-dirty { background: var(--warn-bg); color: var(--warn); }
.gs-branch { font-size: 0.875rem; font-weight: 600; font-family: ui-monospace, monospace; color: var(--accent); display: inline-flex; align-items: center; gap: 0.25rem; }
.gs-branch svg { width: 14px; height: 14px; }
.gs-ahead { font-size: 0.8125rem; font-weight: 700; color: var(--good); }
.gs-behind { font-size: 0.8125rem; font-weight: 700; color: var(--danger); }
.gs-stash { font-size: 0.75rem; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); }
.gs-last-commit { font-size: 0.75rem; color: var(--muted); font-weight: 500; cursor: default; }
.gs-diff { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.5rem 0.75rem; background: var(--surface2); border-radius: var(--radius-md); font-size: 0.8125rem; }
.gs-diff-files { color: var(--fg); font-weight: 600; }
.gs-diff-ins { color: var(--good); font-weight: 700; }
.gs-diff-del { color: var(--danger); font-weight: 700; }
.github-columns { margin-bottom: 1rem; }
.github-col { margin-bottom: 1.5rem; }
.github-col:last-child { margin-bottom: 0; }
.github-col h4, .github-reflog h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.375rem; }
.gc-row { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.9375rem; border-bottom: 1px solid rgba(var(--fg-rgb), 0.03); }
.gc-hash { font-family: ui-monospace, monospace; font-size: 0.8125rem; color: var(--accent); font-weight: 600; flex-shrink: 0; width: 60px; }
.gc-date { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--muted); flex-shrink: 0; width: 95px; }
.gc-msg { flex: 1; color: var(--fg); word-break: break-word; line-height: 1.5; }
.github-reflog { margin-top: 0.25rem; }
.github-reflog .gc-row { font-size: 0.8125rem; }
.github-reflog .gc-hash { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Goal inline edit ──────────────────────── */
.goal-title-text { flex: 1; min-width: 0; word-break: break-word; line-height: 1.4; padding: 0.25rem 0; }
.goal-header-right { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.goal-overdue { font-size: 0.75rem; font-weight: 700; color: var(--danger); background: var(--danger-bg); padding: 0.125rem 0.5rem; border-radius: var(--radius-md); letter-spacing: 0.05em; }
.goal-delete-btn { color: var(--danger); }
.goal-delete-btn:hover { background: var(--danger-bg); color: var(--danger); }

/* ── Finance ───────────────────────────────── */
.cat-breakdown { margin-bottom: 1.5rem; }
.cat-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.9375rem; }
.cat-label { width: 100px; font-weight: 600; flex-shrink: 0; }
.cat-bar-bg { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.cat-bar-fill { height: 100%; background: var(--accent-gradient); border-radius: 3px; transition: width 0.6s var(--spring); }
.cat-amount { font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; width: 100px; text-align: right; }

.entry-header-row { display: flex; gap: 1rem; align-items: center; padding: 0.5rem 0; border-bottom: 2px solid var(--border); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.entry-type-h, .entry-cat-h { width: 70px; flex-shrink: 0; }
.entry-del-h { width: 30px; flex-shrink: 0; }
.entry-balance { font-family: ui-monospace, monospace; font-weight: 600; white-space: nowrap; width: 100px; text-align: right; color: var(--muted); font-size: 0.875rem; }
.entry-delete-btn { color: var(--danger); opacity: 0; transition: var(--transition); flex-shrink: 0; }
.entry-row:hover .entry-delete-btn { opacity: 1; }

/* ── Motivation ────────────────────────────── */
.mot-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.mot-controls-left { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1; }
.mot-controls-right { display: flex; align-items: center; gap: 0.5rem; }
.mot-panels { margin-top: 0.5rem; }

.goal-progress { transition: var(--transition); }
.goal-progress:hover { color: var(--accent); border-color: var(--accent); }
.subgoal-toggle { cursor: pointer; }
.subgoal-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.motivation-strip, .ov2-strip-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1100px) { .motivation-strip, .ov2-strip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .motivation-strip, .ov2-strip-grid { grid-template-columns: repeat(2, 1fr); } }

.ov2-strip-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .ov2-strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ov2-strip-grid { grid-template-columns: 1fr; } }

.strip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.875rem 1rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  min-width: 0;
}
.strip-card:hover { border-color: var(--surface3); }
.strip-label { color: var(--muted); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.strip-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-value-sm { font-size: 1.0625rem; font-weight: 600; }
.strip-unit { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.strip-sub { color: var(--muted); font-size: 0.75rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-empty { color: var(--muted); font-style: italic; font-weight: 500; }
.strip-good { color: var(--good); font-size: 1.25rem; }
.strip-warn { color: var(--warn); font-size: 1.25rem; }

.mot-banner { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.mot-banner--ok { color: var(--good); }
.mot-banner--err { color: var(--danger); }

/* Tabs — unified */
.mot-tab-bar, .gh-tab-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.mot-tab, .gh-tab {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  padding: 0.5rem 1rem; border-radius: var(--radius-md); font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
  display: inline-flex; align-items: center; gap: 0.375rem;
}
.mot-tab:hover, .gh-tab:hover { color: var(--fg); border-color: var(--surface3); background: var(--surface2); }
.mot-tab.active, .gh-tab.active { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.mot-tab-icon { display: inline-flex; align-items: center; }
.mot-tab-icon svg { width: 14px; height: 14px; }

.motivation-panel { display: none; animation: fadeIn 0.3s var(--ease); }
.motivation-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Quote */
.quote-hero {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3.5rem 2.5rem; text-align: center;
}
.quote-theme {
  display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 1.5rem;
  padding: 0.25rem 0.75rem; background: var(--accent-bg); border-radius: var(--radius-lg);
}
.quote-text { font-size: 1.5rem; font-weight: 500; line-height: 1.5; color: var(--fg); font-style: italic; max-width: 720px; margin: 0 auto; }
.quote-author { display: block; margin-top: 1.25rem; font-style: normal; color: var(--accent); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Mantra */
.mantra-hero {
  background: linear-gradient(145deg, var(--accent-bg) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4rem 2rem; text-align: center;
}
.mantra-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.25rem; }
.mantra-text {
  font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Affirmations */
.affirm-list { display: flex; flex-direction: column; gap: 0.75rem; }
.affirm-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; font-size: 1.0625rem; line-height: 1.5;
  transition: var(--transition);
}
.affirm-item:hover { border-color: var(--accent); }
.affirm-num { color: var(--accent); font-weight: 700; font-size: 1.125rem; flex-shrink: 0; min-width: 1.5rem; }
.affirm-text { flex: 1; }

/* Challenge */
.challenge-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.challenge-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.challenge-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.challenge-time { background: var(--accent-bg); color: var(--accent); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: var(--radius-lg); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.challenge-steps { padding-left: 1.5rem; }
.challenge-steps li { padding: 0.5rem 0; line-height: 1.5; border-bottom: 1px solid var(--border); }
.challenge-steps li:last-child { border-bottom: none; }

/* Question */
.question-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center;
}
.question-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.25rem; }
.question-text { font-size: 1.375rem; font-weight: 500; line-height: 1.5; color: var(--fg); max-width: 640px; margin: 0 auto 1.5rem; font-style: italic; }
.question-link { display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* Purpose */
.purpose-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.purpose-block h4 { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.75rem; border: none; padding: 0; }
.purpose-block p { font-size: 1.0625rem; line-height: 1.6; color: var(--fg); }
.purpose-future { background: linear-gradient(145deg, var(--accent-bg) 0%, var(--surface) 100%); }

/* Reading */
.reading-essay {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.reading-essay-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 1.25rem;
}
.reading-essay-text {
  font-size: 1.0625rem; line-height: 1.8; color: var(--fg);
  white-space: pre-wrap;
}

/* Watch */
.video-list { display: flex; flex-direction: column; gap: 0.5rem; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.video-card:hover { border-color: var(--surface3); }
.video-card-main {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; transition: var(--transition);
  user-select: none;
}
.video-card-main:hover { background: var(--surface2); }
.video-card-main.open { background: var(--surface2); border-bottom: 1px solid var(--border); }
.video-card-info { flex: 1; min-width: 0; }
.video-card-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.video-card-channel { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }
.video-card-toggle { color: var(--accent); display: flex; flex-shrink: 0; }
.video-embed { display: none; }
.video-embed.open { display: block; }
.video-embed iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }

/* Care */
.care-card { display: flex; gap: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 0.75rem; transition: var(--transition); }
.care-card:hover { border-color: var(--good); }
.care-sound:hover { border-color: var(--accent); }
.care-icon { color: var(--good); display: flex; flex-shrink: 0; padding-top: 0.125rem; }
.care-sound .care-icon { color: var(--accent); }
.care-icon svg { width: 22px; height: 22px; }
.care-body { flex: 1; }
.care-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.375rem; }
.care-nudge { font-size: 1.125rem; line-height: 1.5; color: var(--fg); }

/* Vibe */
.vibe-card { display: flex; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; align-items: center; }
.vibe-swatch { width: 96px; height: 96px; border-radius: var(--radius); flex-shrink: 0; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.vibe-body { flex: 1; }
.vibe-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.375rem; }
.vibe-desc { font-size: 1rem; line-height: 1.5; color: var(--muted); margin-bottom: 0.5rem; }
.vibe-hex { font-family: ui-monospace, monospace; font-size: 0.875rem; color: var(--accent); font-weight: 600; }

/* Reminders tab */
.motivation-panel[data-panel="reminders"] .inline-form { margin-bottom: 1.5rem; }

/* Loading/Error states */
.motivation-loading { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 1.25rem; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.motivation-loading p { font-size: 1rem; line-height: 1.5; }
.motivation-loading p + p { margin-top: 0.5rem; font-size: 0.875rem; }

.motivation-error { background: var(--danger-bg); border: 1px solid var(--danger); border-radius: var(--radius); padding: 2rem; text-align: center; }
.motivation-error p { font-size: 1rem; line-height: 1.5; }
.motivation-error p + p { margin-top: 0.5rem; }
.motivation-error button { margin-top: 1.25rem; }

/* ── Schedule / FullCalendar ───────────────── */
.sched-filters { display: flex; gap: 1rem; align-items: center; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
.sched-filters label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.sched-actions { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.sched-cal-info { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.sched-gcal-status { font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); white-space: nowrap; }
.sched-gcal--on { color: var(--good); }
.sched-gcal--off { color: var(--muted); }
.sched-gcal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sched-gcal-dot--on { background: var(--good); box-shadow: 0 0 4px rgba(var(--good-rgb), 0.5); }
.sched-gcal-dot--off { background: var(--muted); }
.sched-cal-meta { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.sched-cal-meta code { font-size: 0.75rem; }

#calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }

.fc { --fc-border-color: var(--border); --fc-page-bg-color: var(--surface); --fc-neutral-bg-color: var(--surface2); --fc-list-event-hover-bg-color: var(--surface2); --fc-today-bg-color: rgba(var(--accent-rgb), 0.08); --fc-event-text-color: var(--on-accent); --fc-button-text-color: var(--fg); --fc-button-bg-color: var(--surface3); --fc-button-border-color: var(--border); --fc-button-hover-bg-color: var(--accent); --fc-button-hover-border-color: var(--accent); --fc-button-active-bg-color: var(--accent); --fc-button-active-border-color: var(--accent); color: var(--fg); font-family: 'Inter', sans-serif; }
.fc .fc-toolbar-title { font-size: 1.25rem; font-weight: 600; }
.fc .fc-button { border-radius: var(--radius-md); padding: 0.4rem 0.75rem; font-size: 0.875rem; font-weight: 500; text-transform: capitalize; transition: var(--transition); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { color: var(--on-accent); }
.fc .fc-col-header-cell { background: var(--surface2); padding: 0.5rem 0; font-weight: 500; }
.fc .fc-col-header-cell-cushion { color: var(--muted); text-decoration: none; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.5px; }
.fc .fc-daygrid-day-number, .fc .fc-timegrid-axis-cushion, .fc .fc-timegrid-slot-label-cushion { color: var(--muted); font-size: 0.8125rem; }
.fc .fc-timegrid-slot { height: 2.5em; }
.fc .fc-timegrid-slot-label-cushion { padding-right: 0.5rem; }
.fc .fc-event { border-radius: var(--radius-sm); padding: 2px 6px; font-size: 0.8125rem; font-weight: 500; cursor: pointer; border: none; }
.fc .fc-event.fc-event-focus { opacity: 0.85; }
.fc .fc-event.fc-event-google { opacity: 0.9; }
.fc .fc-event.fc-event-done { opacity: 0.5; text-decoration: line-through; }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number { color: var(--accent); font-weight: 700; }
.fc .fc-list-day-cushion { background: var(--surface2); }
.fc .fc-list-event-time { color: var(--muted); }

.sched-modal { max-width: 500px; }
.sched-modal .modal-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.sched-modal label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.sched-modal label input { color: var(--fg); background: var(--surface2); border: 1px solid var(--border); padding: 0.5rem 0.75rem; border-radius: var(--radius-md); font-family: inherit; font-size: 0.9375rem; }
.sched-modal label input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.sched-modal .modal-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.sched-modal .modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.sched-modal .modal-footer .btn-secondary[data-action="delete"] { margin-right: auto; color: var(--danger); }

/* ── Notifications / Toast ──────────────────── */
.toast,
.notif-popup {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast--show,
.notif-popup--show { opacity: 1; transform: translateY(0) scale(1); }
.toast--err,
.notif-popup--err { border-left-color: var(--danger); color: var(--danger); }
.notif-popup--danger { border-left-color: var(--danger); color: var(--danger); }
.notif-popup--warn { border-left-color: var(--warn); color: var(--warn); }
.toast--ok,
.notif-popup--ok { border-left-color: var(--good); color: var(--good); }
.notif-popup-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; color: var(--fg); }
.notif-popup-body { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ── Gamification / XP ─────────────────────── */
.xp-mini-bar, .ov2-mcard-bar--xp {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.375rem;
}
.xp-mini-fill, .ov2-bar-fill--xp {
  height: 100%;
  background: linear-gradient(90deg, var(--vibe, var(--accent)), var(--accent-hover));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.xp-milestone-toast {
  position: fixed;
  bottom: 8rem;
  right: 1.5rem;
  z-index: 500;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 320px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.xp-milestone-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.xp-level-up-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(8px);
}
.xp-level-up-overlay--show {
  opacity: 1;
  pointer-events: auto;
}
.xp-level-up-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 3rem 4rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.3s var(--spring);
}
.xp-level-up-overlay--show .xp-level-up-card {
  transform: scale(1);
}
.xp-level-up-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.xp-level-up-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.xp-level-up-sub {
  font-size: 1rem;
  color: var(--muted);
}

/* Score Ring */
.score-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
}
.score-ring-bg {
  fill: none;
  stroke: var(--surface3);
  stroke-width: 8;
}
.score-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s ease-out;
}
.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}
.score-ring-label {
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Ring wrap used in Metrics row (ov2-mcard) */
.ov2-score-ring-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}
.ov2-score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ov2-score-val {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}
.ov2-score-sub {
  font-size: 0.625rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}
.ov2-ring-fill--good { stroke: var(--good); }

/* ── Coach Nudge ───────────────────────────── */
.coach-nudge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: rgba(var(--warn-rgb), 0.08);
  border: 1px solid rgba(var(--warn-rgb), 0.2);
  border-radius: var(--radius-md);
  margin: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  animation: slideInRight 0.4s ease-out;
}
.coach-nudge--urgent {
  background: rgba(var(--danger-rgb), 0.08);
  border-color: rgba(var(--danger-rgb), 0.2);
}
.coach-nudge-text {
  flex: 1;
  color: var(--fg);
}
.coach-nudge-actions {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}
.coach-nudge-btn {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--fg);
  transition: var(--transition);
}
.coach-nudge-btn:hover {
  background: var(--surface3);
  border-color: var(--accent);
}
.coach-nudge-btn--act {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.coach-nudge-btn--act:hover {
  background: var(--accent);
  color: var(--bg);
}
.coach-nudge-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.125rem;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}
.coach-nudge-dismiss:hover {
  color: var(--fg);
}

.coach-nudge-pulse {
  animation: nudgePulse 2s ease-in-out infinite;
}
@keyframes nudgePulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(var(--warn-rgb), 0.15); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ringFill {
  from { stroke-dashoffset: 283; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.coach-thinking {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  height: 2px;
  border-radius: 1px;
}
.coach-thinking .coach-thinking-dot { display: none; }

/* ── Overview v2 ── Greeting ───────────────── */
.ov2-greeting {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ov2-greeting-left { flex: 1; min-width: 200px; }
.ov2-greeting-h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
.ov2-greeting-date { color: var(--muted); font-size: 0.875rem; margin-top: 0.25rem; font-weight: 500; }
.ov2-greeting-form { display: flex; gap: 0.5rem; flex: 1; min-width: 280px; max-width: 480px; }
.ov2-greeting-form input { flex: 1; }

.ov2-greeting-chips {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ov2-greeting-chips .ov2-chip {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.ov2-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid;
}
.ov2-streak-badge[data-streak-tier="bronze"] {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: rgba(var(--accent-rgb), 0.25);
}
.ov2-streak-badge[data-streak-tier="silver"] {
  color: var(--good);
  background: var(--good-bg);
  border-color: rgba(var(--good-rgb), 0.25);
}
.ov2-streak-badge[data-streak-tier="gold"] {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: rgba(var(--warn-rgb), 0.25);
}
.ov2-streak-badge svg { flex-shrink: 0; }

/* Section Titles (ov2) */
.ov2-section { margin-bottom: 2.25rem; }
.ov2-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ov2-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
  border: none;
  padding: 0;
}
.ov2-section-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.ov2-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}
.ov2-link:hover { color: var(--accent-hover); text-decoration: underline; }
.ov2-empty-text { color: var(--muted); font-size: 0.9375rem; padding: 0.75rem 0; }

/* Now Panel */
.ov2-now {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(var(--accent-rgb), 0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.ov2-now::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--good));
  opacity: 0.8;
}

.ov2-now-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.ov2-now-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1;
  border: none;
  padding: 0;
  color: var(--fg);
  text-transform: none;
}
.ov2-now-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  white-space: nowrap;
}
.ov2-now-badge--amber { background: rgba(var(--warn-rgb), 0.12); color: var(--warn); }
.ov2-now-badge--evening { background: var(--accent-bg); color: var(--accent); }

.ov2-brief-refresh {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition);
}
.ov2-brief-refresh:hover { color: var(--accent); border-color: var(--accent); }

.ov2-call-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 800px) { .ov2-call-grid { grid-template-columns: 1fr; } }

.ov2-call-left { display: flex; flex-direction: column; gap: 1rem; }
.ov2-call-right { display: flex; flex-direction: column; gap: 0.75rem; }

.ov2-call-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  text-align: center;
  animation: ov2FadeUp 0.4s ease-out both;
}
.ov2-call-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.ov2-call-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ov2-call-reason {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 0.25rem;
}

.ov2-call-card {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface2);
  border-left: 3px solid var(--border);
  animation: ov2FadeUp 0.4s ease-out both;
}
.ov2-call-card:nth-child(2) { animation-delay: 0.1s; }
.ov2-call-card:nth-child(3) { animation-delay: 0.2s; }
.ov2-call-card-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.375rem;
}
.ov2-call-card-label svg { opacity: 0.5; }
.ov2-call-card--star { border-left-color: var(--warn); }
.ov2-call-card--risk { border-left-color: var(--danger); }
.ov2-call-card--energy { border-left-color: var(--good); }
.ov2-call-star-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
}
.ov2-call-risk-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.ov2-call-energy-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.ov2-now-empty {
  padding: 1.5rem;
  text-align: center;
  background: var(--surface2);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}
.ov2-now-empty p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.75rem; }

.ov2-col-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ov2-col-label svg { opacity: 0.6; }

.ov-btn-primary {
  background: var(--accent-dark);
  color: var(--on-accent);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
}
.ov-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(var(--accent-rgb), 0.25); }

.ov2-plan-day-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dark);
  color: var(--on-accent);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}
.ov2-plan-day-btn:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(var(--accent-rgb), 0.25); }

/* Midday Sprint */
.ov2-now--midday .ov2-now-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .ov2-now--midday .ov2-now-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ov2-now--midday .ov2-now-grid { grid-template-columns: 1fr; } }

.ov2-focus-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
}
.ov2-focus-ring-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}
.ov2-focus-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ov2-focus-min {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}
.ov2-focus-label {
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.ov2-focus-week {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ov2-ring-bg { fill: none; }
.ov2-ring-fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.ov2-sprint-remaining {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}
.ov2-remaining-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ov2-remaining-num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}
.ov2-remaining-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.ov2-next-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ov2-next-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.ov2-next-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.ov2-next-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}
.ov2-all-done {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--good);
  padding: 0.75rem 0;
}
.ov2-mission-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.ov2-sprint-mantra {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}
.ov2-mantra-display {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ov2-mini-challenge {
  background: var(--surface2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ov2-chal-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ov2-chal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}
.ov2-chal-time {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Evening Debrief */
.ov2-debrief-grid {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr 1.4fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1200px) { .ov2-debrief-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .ov2-debrief-grid { grid-template-columns: 1fr; } }

.ov2-grade-card {
  text-align: center;
  padding: 1rem;
}
.ov2-grade-letter {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.ov2-grade--A { background: var(--good-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 24px rgba(var(--good-rgb), 0.3)); }
.ov2-grade--B { color: var(--accent); text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.3); }
.ov2-grade--C { color: var(--warn); text-shadow: 0 0 40px rgba(var(--warn-rgb), 0.3); }
.ov2-grade--D { color: var(--orange); text-shadow: 0 0 40px rgba(var(--warn-rgb), 0.3); }
.ov2-grade--F { color: var(--danger); text-shadow: 0 0 40px rgba(var(--danger-rgb), 0.3); }
.ov2-grade-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.25rem;
}
.ov2-grade-score {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.125rem;
}

.ov2-debrief-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.ov2-debrief-stat {
  background: var(--surface2);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.ov2-ds-value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}
.ov2-ds-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ov2-debrief-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}
.ov2-debrief-prompt {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
}
.ov2-debrief-buttons {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.ov2-debrief-btn {
  background: var(--accent-dark);
  color: var(--on-accent);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-glow);
}
.ov2-debrief-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ov2-debrief-btn--win {
  background: linear-gradient(135deg, var(--warn), var(--warn-dark));
  box-shadow: 0 4px 16px rgba(var(--warn-rgb), 0.3);
}

/* Evening debrief — forward-looking section */
.ov2-debrief-forward {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.5rem 0;
}
.ov2-debrief-forward-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ov2-debrief-forward-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.ov2-debrief-forward-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
.ov2-debrief-forward-item svg {
  flex-shrink: 0;
  color: var(--accent);
}
.ov2-debrief-care {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--good);
  font-style: italic;
  padding: 0.375rem 0;
}

/* Midday — Direction card (replaces focus ring) */
.ov2-direction-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
}
.ov2-direction-reframe {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
}
.ov2-direction-reading {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.ov2-direction-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}
.ov2-direction-focus {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.ov2-direction-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.ov2-direction-link:hover { text-decoration: underline; }
.ov2-mid-projects {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.ov2-mid-project {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ov2-mid-project-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Mission Control */
.ov2-mission { margin-bottom: 2.25rem; }
.ov2-mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ov2-mission-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1100px) { .ov2-mission-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .ov2-mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ov2-mission-grid { grid-template-columns: 1fr; } }

.ov2-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1100px) { .ov2-metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ov2-metrics-grid { grid-template-columns: 1fr; } }

.ov2-stats-2row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.ov2-stats-row1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.ov2-stats-row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.ov2-stats-row1 .ov2-mcard:nth-child(2) { animation-delay: 0.08s; }
.ov2-stats-row1 .ov2-mcard:nth-child(3) { animation-delay: 0.16s; }
.ov2-stats-row1 .ov2-mcard:nth-child(4) { animation-delay: 0.24s; }
.ov2-stats-row2 .ov2-mcard:nth-child(2) { animation-delay: 0.08s; }
.ov2-stats-row2 .ov2-mcard:nth-child(3) { animation-delay: 0.16s; }
@media (max-width: 1100px) {
  .ov2-stats-row1 { grid-template-columns: repeat(2, 1fr); }
  .ov2-stats-row2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ov2-stats-row1 { grid-template-columns: 1fr; }
  .ov2-stats-row2 { grid-template-columns: 1fr; }
}

.ov2-mcard {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  position: relative;
  animation: ov2FadeUp 0.4s ease-out both;
}
.ov2-mcard:nth-child(2) { animation-delay: 0.08s; }
.ov2-mcard:nth-child(3) { animation-delay: 0.16s; }
.ov2-mcard:nth-child(4) { animation-delay: 0.24s; }
.ov2-mcard:nth-child(5) { animation-delay: 0.32s; }
.ov2-mcard:hover {
  border-color: var(--surface3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.ov2-mcard--warn { border-left: 3px solid var(--warn); background: rgba(var(--warn-rgb), 0.04); }
.ov2-mcard--danger { border-left: 3px solid var(--danger); background: rgba(var(--danger-rgb), 0.05); }

.ov2-mcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ov2-mcard-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ov2-mcard-flag {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--danger);
  background: rgba(var(--danger-rgb), 0.12);
}
.ov2-mcard-value {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}
.ov2-mcard-value-sm {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ov2-mcard-empty {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9375rem;
}
.ov2-xp-unit {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}

/* Today's Plan */
.ov2-ev-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ov2-ev {
  display: grid;
  grid-template-columns: 24px 1fr 36px;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.ov2-ev:hover { border-color: var(--surface3); }
.ov2-ev--done { opacity: 0.5; }
.ov2-ev--done .ov2-ev-title { text-decoration: line-through; color: var(--muted); }
.ov2-ev--next {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow);
}

.ov2-ev-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.375rem;
  height: 100%;
}
.ov2-ev-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface3);
  border: 2px solid var(--border);
  flex-shrink: 0;
  z-index: 1;
  transition: var(--transition);
}
.ov2-ev-dot--done {
  background: var(--good);
  border-color: var(--good);
  box-shadow: 0 0 8px rgba(var(--good-rgb), 0.4);
}
.ov2-ev-dot--next {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}
.ov2-ev-pulse {
  position: absolute;
  top: 0.187rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ov2Pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ov2Pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
}

.ov2-ev-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.ov2-ev-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ov2-ev-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.ov2-ev-kind {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-xs);
}
.ov2-ev--focus { background: var(--accent-bg); color: var(--accent); }
.ov2-ev--calendar { background: rgba(var(--good-rgb), 0.12); color: var(--good); }
.ov2-ev-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  word-break: break-word;
  line-height: 1.3;
}
.ov2-ev-dur {
  font-size: 0.75rem;
  color: var(--muted);
}

.ov2-ev-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}
.ov2-ev-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}
.ov2-ev-check:hover { border-color: var(--good); color: var(--good); }
.ov2-ev-check--done {
  background: var(--good);
  border-color: var(--good);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(var(--good-rgb), 0.3);
}
.ov2-ev-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  display: flex;
}
.ov2-ev-del:hover { color: var(--danger); background: var(--danger-bg); }

.ov2-ev-next-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  color: var(--accent);
  white-space: nowrap;
}
.ov2-ev-next-badge--done { background: var(--good-bg); color: var(--good); }

.ov2-quick-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.ov2-quick-add input[type="number"] { width: 70px; }
.ov2-quick-add input[type="text"] { flex: 1; min-width: 180px; }
.ov2-quick-add--inline {
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Momentum */
.ov2-momentum {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
}
@media (max-width: 900px) { .ov2-momentum { grid-template-columns: 1fr; } }

.ov2-mh-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ov2-heatmap { display: flex; flex-wrap: wrap; gap: 3px; }
.ov2-heatmap .hm-cell { width: 12px; height: 12px; }

.ov2-habit-stack { display: flex; flex-direction: column; gap: 0.375rem; }
.ov2-habit-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  background: var(--surface2);
}
.ov2-habit-check {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius-xs);
  background: var(--surface3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--bg);
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
  padding: 0;
  min-height: 0;
}
.ov2-habit-check:hover { border-color: var(--accent); }
.ov2-habit-check--done { background: var(--good); border-color: var(--good); box-shadow: 0 0 8px rgba(var(--good-rgb), 0.3); }
.ov2-habit-name { flex: 1; font-size: 0.875rem; font-weight: 500; word-break: break-word; }
.ov2-habit-streak {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

/* Goals Grid */
.ov2-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.ov2-goal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.125rem;
}
.ov2-goal-card:hover { border-color: var(--surface3); }
.ov2-goal-card--done { border-color: var(--good); opacity: 0.7; }
.ov2-gc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ov2-gc-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  flex: 1;
}
.ov2-gc-pct {
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}
.ov2-gc-subs { display: flex; flex-direction: column; gap: 0.25rem; }
.ov2-gc-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.1875rem 0;
}
.ov2-gc-sub--done span { text-decoration: line-through; color: var(--muted); }
.ov2-gc-sub-check {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius-xs);
  background: var(--surface3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: var(--bg);
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
  padding: 0;
  min-height: 0;
}
.ov2-gc-sub-check:hover { border-color: var(--accent); }
.ov2-gc-sub-check--done { background: var(--good); border-color: var(--good); box-shadow: 0 0 6px rgba(var(--good-rgb), 0.3); }
.ov2-gc-more {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0;
}

/* Footer (Wins + Journal) */
.ov2-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) { .ov2-footer-grid { grid-template-columns: 1fr; } }

.ov2-journal-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.ov2-journal-form input { flex: 1; }

.ov2-journal-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.ov2-journal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.ov2-journal-item-text {
  flex: 1;
  word-break: break-word;
  line-height: 1.4;
}
.ov2-journal-item-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}

/* Coach Chips */
.ov2-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ov2-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.ov2-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ── Today's Fuel — Motivation in Overview ─── */
.ov-mf-strip {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.ov-mf-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}
.ov-mf-tab:hover {
  color: var(--fg);
  border-color: var(--surface3);
  background: var(--surface2);
  transform: none;
  filter: none;
}
.ov-mf-tab.active {
  background: var(--accent-dark);
  color: var(--on-accent);
  border-color: var(--accent-dark);
}
.ov-mf-panel {
  display: none;
  margin-top: 1rem;
  animation: ov2FadeUp 0.3s var(--ease);
}
.ov-mf-panel.active { display: block; }

.ov-mf-quote {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ov-mf-quote blockquote {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--fg);
  max-width: 640px;
  margin: 0 auto;
}
.ov-mf-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ov-mf-mantra {
  background: linear-gradient(145deg, var(--accent-bg) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.ov-mf-mantra-text {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ov-mf-challenge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ov-mf-challenge-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.ov-mf-challenge-time {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-bg);
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ov-mf-challenge-steps {
  padding-left: 1.25rem;
}
.ov-mf-challenge-steps li {
  padding: 0.5rem 0;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.ov-mf-challenge-steps li:last-child { border-bottom: none; }

.ov-mf-question-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ov-mf-question-icon {
  color: var(--accent);
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.ov-mf-question-icon svg { width: 24px; height: 24px; }
.ov-mf-question-text {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1.25rem;
}
.ov-mf-question-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.ov-mf-purpose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) { .ov-mf-purpose { grid-template-columns: 1fr; } }
.ov-mf-purpose-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ov-mf-purpose-block--future {
  background: linear-gradient(145deg, var(--accent-bg) 0%, var(--surface) 100%);
}
.ov-mf-purpose-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.ov-mf-purpose-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
}

.ov-mf-affirm-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ov-mf-affirm-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
}
.ov-mf-affirm-item:hover { border-color: var(--accent); }
.ov-mf-affirm-num {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 1.25rem;
}

@keyframes ov2FadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── GitHub Tab Bar ────────────────────────── */
.github-card { display: none; }
.github-card.active { display: block; }

.gh-git-bar {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.gh-git-input {
  flex: 1; min-width: 180px; background: var(--surface2); border: 1px solid var(--border);
  color: var(--fg); padding: 0.5rem 0.75rem; border-radius: var(--radius-md);
  font-size: 0.875rem; outline: none; font-family: 'Inter', sans-serif;
}
.gh-git-input:focus { border-color: var(--accent); }
.gh-info-strip { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; font-size: 0.8rem; color: var(--muted); }
.gh-sync-time { color: var(--good); font-weight: 500; }
.gh-data-source { opacity: 0.7; }
.gh-source-tag { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; background: var(--good-bg); color: var(--good); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 0.5rem; }
.gh-source-tag--git { background: var(--accent-bg); color: var(--accent); }
.gh-git-result { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.gh-git-result--info { color: var(--accent); }
.gh-git-result--ok { color: var(--good); }
.gh-git-result--err { color: var(--danger); }

/* ── Live Projects Statistics View ─────────── */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 600px) { .ps-grid { grid-template-columns: 1fr; } }

.ps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.ps-card:hover { border-color: var(--surface3); }

.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.ps-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
}
.ps-platform {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}
.ps-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
.ps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.ps-link:hover { border-color: var(--accent); background: var(--accent-bg); }
.ps-link svg { width: 14px; height: 14px; }

.ps-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.ps-tech-strip {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ps-tech-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ps-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 500px) { .ps-details { grid-template-columns: 1fr; } }

.ps-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ps-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ps-commit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  flex-wrap: wrap;
}
.ps-hash {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  background: var(--surface2);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-xs);
}
.ps-msg {
  color: var(--fg);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-date {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}
.ps-branch {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.ps-clean {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--good);
  background: var(--good-bg);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}
.ps-dirty {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warn);
  background: var(--warn-bg);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}
.ps-ahead { color: var(--good); font-weight: 600; font-size: 0.875rem; }
.ps-behind { color: var(--danger); font-weight: 600; font-size: 0.875rem; }

.ps-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
.ps-push {
  color: var(--muted);
  font-weight: 500;
}
.ps-url {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.ps-url:hover { text-decoration: underline; }
.ps-url svg { width: 12px; height: 12px; }
.ps-remote-details {
  font-size: 0.8125rem;
  color: var(--muted);
}
.ps-remote-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 0.25rem 0;
}
.ps-remote-details summary:hover { text-decoration: underline; }
.ps-remote-details .ps-commit {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.ps-remote-details .ps-commit:last-child { border-bottom: none; }

/* ── Timeline ──────────────────────────────── */
.ov-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  padding-left: 1.25rem;
}
.ov-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.ov-timeline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  position: relative;
}
.ov-timeline-dot {
  position: absolute;
  left: -1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.ov-timeline-dot--done {
  background: var(--good);
}
.ov-timeline-dot--ai {
  background: var(--accent);
}
.ov-timeline-time {
  width: 48px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.ov-timeline-title {
  flex: 1;
  color: var(--fg);
}
.ov-timeline-item--done .ov-timeline-title {
  text-decoration: line-through;
  color: var(--muted);
}

/* ── Accessibility: reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Touch target sizing for small viewports ─ */
@media (max-width: 700px) {
  .nav-item, button, .btn-primary, .btn-secondary, .btn-chip, .ov2-chip, .gh-tab, .mot-tab {
    min-height: 44px;
  }
  .nav-item { padding: 0.625rem 0.75rem; }
  .sidebar { overflow-x: auto; flex-wrap: nowrap; }
  .ov2-ev-check, .ov2-ev-del, .ov2-habit-check, .subgoal-row input[type="checkbox"],
  .ov2-gc-sub-check, .btn-small, .btn-tiny {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Flash animation ───────────────────────── */
@keyframes ovFlash { 0% { background: var(--good-bg); } 100% { background: transparent; } }
.ov-flash { animation: ovFlash 0.6s ease; }

/* ── Chat Pane ─────────────────────────────── */
.chat-pane {
  grid-row: 2;
  grid-column: 1;
  width: 420px;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.chat-header {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-header-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.chat-header-btn:hover { color: var(--fg); border-color: var(--accent); }
.chat-header-btn svg { width: 14px; height: 14px; }

.chat-sessions {
  flex-shrink: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.chat-sessions.open { max-height: 300px; overflow-y: auto; }

.chat-session-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--fg);
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.chat-session-item:hover { background: var(--surface3); }
.chat-session-item.active { background: var(--accent-bg); color: var(--accent); }
.chat-session-item .session-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-session-item .session-del { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0.125rem; font-size: 0.75rem; }
.chat-session-item .session-del:hover { color: var(--danger); }

.chat-session-clear {
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  border-top: 1px solid var(--border);
  transition: var(--transition);
}
.chat-session-clear:hover { color: var(--danger); background: var(--accent-bg); }

.session-rename-input {
  flex: 1; min-width: 0; height: auto;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-xs); color: var(--fg);
  font-size: 0.8125rem; font-family: 'Inter', sans-serif;
  padding: 0.25rem 0.375rem; outline: none; line-height: 1.4;
}

.chat-retry-btn {
  display: block; margin-top: 0.5rem;
  padding: 0.25rem 0.75rem; background: var(--accent-bg);
  border: 1px solid var(--accent); border-radius: var(--radius-sm);
  color: var(--accent); font-size: 0.75rem; cursor: pointer; transition: var(--transition);
}
.chat-retry-btn:hover { background: var(--accent); color: var(--bg); }

#chat-cancel-btn svg { width: 14px; height: 14px; }

.chat-messages {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.375rem; padding: 0.75rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  max-width: 92%; padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md); font-size: 0.875rem;
  line-height: 1.5; animation: chatFadeIn 0.2s ease;
}
.chat-msg--user { background: var(--accent-bg); align-self: flex-end; color: var(--fg); }
.chat-msg--ai { background: var(--surface2); align-self: flex-start; color: var(--fg); }
.chat-msg--ai.chat-msg--streaming { border-left: 2px solid var(--accent); }
.chat-msg--error { background: var(--danger-bg); color: var(--danger); align-self: center; max-width: 100%; }

.chat-msg-text p { margin-bottom: 0.375rem; }
.chat-msg-text p:last-child { margin-bottom: 0; }
.chat-msg-text ul { margin: 0.25rem 0 0.375rem; padding-left: 1.25rem; }
.chat-msg-text li { margin-bottom: 0.125rem; }
.chat-msg-text strong { color: var(--accent-hover); }
.chat-msg-text code { background: var(--surface3); padding: 0.125rem 0.375rem; border-radius: var(--radius-xs); font-size: 0.8125rem; }

@keyframes chatFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.chat-thinking {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem; color: var(--muted); font-size: 0.8125rem;
}
.chat-thinking-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); animation: chatPulse 1.2s ease-in-out infinite;
}
.chat-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.chat-input-area {
  flex-shrink: 0; padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.5rem; background: var(--surface);
}
.chat-input-area input {
  flex: 1; height: 36px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--fg);
  font-size: 0.875rem; font-family: 'Inter', sans-serif;
  padding: 0 0.75rem; outline: none;
  transition: border-color 0.2s;
}
.chat-input-area input:focus { border-color: var(--accent); }
.chat-input-area input::placeholder { color: var(--muted); }
.chat-input-area button {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: none; background: var(--accent-dark);
  color: var(--on-accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}
.chat-input-area button:hover { filter: brightness(1.1); transform: none; }
.chat-input-area button:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-input-area button svg { width: 16px; height: 16px; }

/* ── Utilities ─────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* ── Template helper classes (kept for compat) ─ */
.ov2-plan-progress { font-weight: 600; font-size: 0.8125rem; color: var(--muted); }
.ov2-footer-col { flex: 1; min-width: 0; }
.ov2-now--evening { }
.ov2-now-grid--3col { }
.ov2-section--footer { }
.ov2-momentum-habits { display: flex; flex-direction: column; gap: 0.5rem; }
.ov2-momentum-heatmap { }
/* ── Section wrappers used in sub-pages ─ */
.subgoals { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; }
.projects-manage { }
.github-projects { }
/* ── JS-targeted delete buttons ─ */
.journal-delete-btn, .habit-delete-btn { }
/* ── Old compat classes (kept empty for backward compat) ─ */
.ov-greeting, .ov-hero, .ov-mission, .ov-accountability,
.ov-section > .ov-section-head > h3:not(.ov2-section-title),
.ov-brief-body, #morning-brief, .ov-debrief,
.ov-journal-form, .ov-journal-list { }
.ov2-section .ov-section-head,
.ov2-mission .ov-section-head.ov2-mission-header { }

/* ── Carousel (swipeable card decks) ───────── */
.carousel {
  position: relative;
  width: 100%;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1rem;
  scroll-behavior: smooth;
  padding: 0.25rem 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
.carousel-card > .quote-hero,
.carousel-card > .question-card,
.carousel-card > .ov-mf-quote,
.carousel-card > .ov-mf-question-card,
.carousel-card > .affirm-item,
.carousel-card > .ov-mf-affirm-item {
  margin: 0;
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.carousel-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.carousel-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: none;
  filter: none;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:active { transform: scale(0.92); }
.carousel-dots {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.carousel-dot:hover { background: var(--muted); }
.carousel-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

/* ── Discipline XP Card (inside two-row stats) ─ */
.disc-xp-card { cursor: pointer; }
.disc-xp-card:hover { border-color: var(--accent) !important; }
.disc-bar-wrap { margin-top: 0.5rem; }
.disc-bar { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.disc-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.disc-bar-label { font-size: 0.6875rem; font-weight: 600; color: var(--muted); margin-top: 0.25rem; }
.disc-chevron { color: var(--muted); flex-shrink: 0; }

/* ── Discipline Modal ────────────────────── */
.disc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.disc-modal-overlay--show {
  opacity: 1;
  pointer-events: auto;
}
.disc-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  animation: ov2FadeUp 0.3s ease-out;
}
.disc-modal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.disc-modal-level-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.disc-modal-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.disc-modal-sub { font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-top: 0.125rem; }
.disc-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  flex-shrink: 0;
}
.disc-modal-close:hover { color: var(--fg); background: var(--surface2); }
.disc-modal-main { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.disc-modal-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.disc-modal-stat {
  background: var(--surface2);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  text-align: center;
}
.disc-modal-stat-val { font-size: 1.375rem; font-weight: 700; line-height: 1.1; color: var(--fg); display: block; }
.disc-modal-stat-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.25rem; display: block; }
.disc-modal-bar-section { }
.disc-modal-bar-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.disc-modal-bar { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.disc-modal-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.disc-modal-bar-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-top: 0.375rem; }
.disc-modal-section { }
.disc-modal-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.disc-modal-breakdown { display: flex; flex-direction: column; gap: 0.625rem; }
.disc-modal-cat-row { }
.disc-modal-cat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.disc-modal-cat-icon { color: var(--muted); display: flex; flex-shrink: 0; }
.disc-modal-cat-name { font-size: 0.8125rem; font-weight: 600; color: var(--fg); flex: 1; }
.disc-modal-cat-pts { font-size: 0.8125rem; font-weight: 700; color: var(--fg); }
.disc-modal-cat-today { font-size: 0.6875rem; font-weight: 600; color: var(--good); }
.disc-modal-cat-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.disc-modal-cat-fill { height: 100%; border-radius: 2px; }
.disc-modal-tier-list { display: flex; flex-direction: column; gap: 0.375rem; }
.disc-modal-tier {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface2);
  opacity: 0.5;
}
.disc-modal-tier--unlocked { opacity: 1; }
.disc-modal-tier--current {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  opacity: 1;
}
.disc-modal-tier-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.disc-modal-tier-info { flex: 1; }
.disc-modal-tier-title { font-size: 0.8125rem; font-weight: 700; color: var(--fg); }
.disc-modal-tier-sub { font-size: 0.6875rem; font-weight: 600; color: var(--muted); }
.disc-modal-tier-status { font-size: 0.75rem; font-weight: 800; color: var(--good); }

/* ─── Server Dashboard (sv-) ─── */
.sv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.sv-grid--half{grid-template-columns:1fr 1fr}
.sv-card--stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;display:flex;flex-direction:column;gap:8px}
.sv-card--stat .sv-card-val{font-size:1.3rem;font-weight:700;color:var(--fg);font-variant-numeric:tabular-nums;line-height:1.2}
.sv-card--narrow .sv-card-val{font-size:1.1rem}
.sv-card-head{display:flex;align-items:center;gap:8px;font-size:0.75rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:0.06em}
.sv-card-icon{color:var(--accent);display:flex}
.sv-card-icon svg{width:16px;height:16px}
.sv-card-sub{font-size:0.8rem;color:var(--muted-subtle)}
.sv-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;margin-bottom:16px}
.sv-section h3{font-size:0.9rem;font-weight:600;margin-bottom:14px;color:var(--fg);display:flex;align-items:center;gap:6px}
.sv-section h3 svg{width:16px;height:16px;color:var(--accent)}
.sv-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.sv-section-head h3{margin-bottom:0}
.sv-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.sv-table{width:100%;border-collapse:collapse}
.sv-table th{text-align:left;padding:7px 10px;font-size:0.78rem;font-weight:500;color:var(--muted);border-bottom:1px solid var(--border)}
.sv-table td{padding:7px 10px;font-size:0.82rem;border-bottom:1px solid var(--border-subtle)}
.sv-table tr:last-child td{border-bottom:none}
.svc-name{font-weight:500}
.svc-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:0.75rem;font-weight:500}
.svc-badge--active{background:var(--good-bg);color:var(--good)}
.svc-badge--inactive{background:var(--danger-bg);color:var(--danger)}
.svc-badge--failed{background:var(--danger-bg);color:var(--danger)}
.svc-badge--unknown{background:var(--surface2);color:var(--muted)}
.svc-actions{display:flex;gap:6px}
.sv-list-item{padding:9px 0;border-bottom:1px solid var(--border-subtle)}
.sv-list-item:last-child{border-bottom:none}
.sv-list-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sv-list-sub{font-size:0.78rem;color:var(--muted-subtle);margin-top:2px}
.sv-list-label{font-size:0.85rem;color:var(--fg);white-space:nowrap}
.sv-list-value{font-size:0.8rem;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.sv-good{color:var(--good)}
.sv-warn{color:var(--warn)}
.sv-danger{color:var(--danger)}
.sv-muted{color:var(--muted-subtle)}
.sv-meta{margin-top:10px;font-size:0.8rem;color:var(--muted)}
.sv-banned-list{margin-top:6px;padding:6px 10px;background:var(--danger-bg);border:1px solid var(--danger);border-radius:var(--radius-sm);font-size:0.78rem;color:var(--danger);word-break:break-all}
.sv-banned-list--all{background:var(--surface2);border-color:var(--border);color:var(--fg)}
.sv-msg{margin-top:8px;font-size:0.85rem;min-height:1.2em}
.sv-logs{max-height:400px;overflow-y:auto;font-family:monospace;font-size:0.78rem;line-height:1.5;background:var(--surface0);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;white-space:pre-wrap;word-break:break-all}
.sv-select{background:var(--surface2);border:1px solid var(--border);border-radius:6px;padding:5px 8px;font-size:0.8rem;color:var(--fg);outline:none}
.sv-select:focus{border-color:var(--accent)}
.sv-cmd-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-icon{background:none;border:1px solid var(--border);border-radius:6px;padding:4px 6px;cursor:pointer;color:var(--muted);display:inline-flex;align-items:center;transition:var(--transition)}
.btn-icon:hover{background:var(--surface2);color:var(--fg);border-color:var(--accent)}
.btn-small{background:var(--surface2);border:1px solid var(--border);border-radius:6px;padding:6px 12px;font-size:0.8rem;cursor:pointer;color:var(--fg);display:inline-flex;align-items:center;gap:4px}
.btn-small:hover{background:var(--surface3);border-color:var(--accent)}
@media(max-width:800px){.sv-grid{grid-template-columns:1fr 1fr}.sv-cols{grid-template-columns:1fr}}
@media(max-width:500px){.sv-grid{grid-template-columns:1fr}}

.sv-actions-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.sv-action.sv-action--danger{border-color:var(--danger);color:var(--danger)}
.sv-action.sv-action--danger:hover{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}
.btn-icon.sv-kill-btn{color:var(--muted-subtle);border-color:transparent;padding:2px 4px}
.btn-icon.sv-kill-btn:hover{color:var(--danger);background:var(--danger-bg);border-color:var(--danger)}

.sv-filter-bar{display:flex;gap:8px}


