/* ─── CSS Reset & Variables ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Theme: Dark (default) ─── */
:root, [data-theme="dark"] {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #232635;
  --border: #2e3148;
  --text: #e2e4f0;
  --muted: #7b80a0;
  --accent: #7c6af5;
  --accent2: #5eead4;
  --accent3: #f97316;
  --red: #f87171;
  --green: #4ade80;
  --yellow: #fbbf24;
  --dsa: #818cf8;
  --sd: #34d399;
  --appnet: #fb923c;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ─── Theme: Light ─── */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg2: #ffffff;
  --bg3: #ebebed;
  --border: #d1d1d6;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --accent: #5b4de0;
  --accent2: #0ea5a0;
  --accent3: #d4631b;
  --red: #d93025;
  --green: #1a8a3c;
  --yellow: #b45309;
  --dsa: #4b56c4;
  --sd: #1e7a52;
  --appnet: #c4591a;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* ─── Theme: Sage (green palette) ─── */
[data-theme="sage"] {
  --bg: #f2f1ed;
  --bg2: #eae6df;
  --bg3: #ddd8cf;
  --border: #c4bdb4;
  --text: #2e4a36;
  --muted: #7a9e82;
  --accent: #5a7d62;
  --accent2: #b5c7af;
  --accent3: #8a6a40;
  --red: #8b3a3a;
  --green: #3a6b45;
  --yellow: #8a6a20;
  --dsa: #4a6db5;
  --sd: #5a7d62;
  --appnet: #8a6a40;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(46,74,54,0.1);
}

/* ─── Theme: Blush (warm cream & rose palette) ─── */
[data-theme="blush"] {
  --bg: #faf7f3;
  --bg2: #f0e4d3;
  --bg3: #dcc5b2;
  --border: #cdb49f;
  --text: #4a2e28;
  --muted: #9a7060;
  --accent: #d9a299;
  --accent2: #dcc5b2;
  --accent3: #c4897e;
  --red: #b85c54;
  --green: #5a8a58;
  --yellow: #9a7830;
  --dsa: #6a5eaa;
  --sd: #4a8a6a;
  --appnet: #b87050;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(217,162,153,0.15);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Layout ─── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ─── Sidebar Nav ─── */
.sidebar {
  width: 220px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo h1 { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: 0.01em; }
.sidebar-logo p { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nav-section { padding: 16px 12px 8px; }
.nav-section-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 8px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(124,106,245,0.15); color: var(--accent); }
.nav-item .icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.config-btn {
  width: 100%; padding: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.15s;
}
.config-btn:hover { color: var(--text); border-color: var(--accent); }

/* ─── Theme Switcher ─── */
.theme-switcher {
  margin-bottom: 10px;
}
.theme-label {
  font-size: 10px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px; display: block;
}
.theme-swatches {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.theme-swatch {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  transition: all 0.15s;
  background: var(--bg3);
  color: var(--muted);
}
.theme-swatch:hover { border-color: var(--border); color: var(--text); }
.theme-swatch.active { border-color: var(--accent); color: var(--text); background: var(--bg2); }
.swatch-dot {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.1);
}

/* ─── Main Content ─── */
.main { margin-left: 220px; flex: 1; min-width: 0; padding: clamp(14px, 2vw, 28px) clamp(16px, 2.5vw, 32px); min-height: 100vh; }

.page { display: none; }
.page.active { display: block; }

.page-header { margin-bottom: 14px; }
.page-header h2 { font-size: 20px; font-weight: 700; }
.page-header p { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ─── Cards ─── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(14px, 1.5vw, 20px);
}
.card-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Dashboard card grid — always 3 columns ─── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 14px);
}

/* ─── Grid ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ─── Dashboard Stats strip ─── */
.stat-strip {
  display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.stat-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 110px;
  white-space: nowrap;
}
.stat-chip-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-chip-value { font-size: 20px; font-weight: 700; line-height: 1; }
.stat-chip-sub { font-size: 11px; color: var(--muted); margin-left: 2px; }
/* keep .stat-card for non-dashboard pages */
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.stat-value { font-size: 28px; font-weight: 700; margin: 6px 0 2px; }
.stat-sub { font-size: 12px; color: var(--muted); }

/* ─── Progress Bar ─── */
.progress-bar-wrap { background: var(--bg3); border-radius: 99px; height: 6px; overflow: hidden; margin-top: 8px; }
.progress-bar-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }

/* ─── Today Schedule ─── */
.schedule-block {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg3);
  margin-bottom: 6px;
}
.schedule-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.schedule-block-title { font-weight: 600; font-size: 13px; }
.schedule-block-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.schedule-block-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600;
  margin-left: auto; flex-shrink: 0;
}

/* ─── Badge / Tag ─── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 99px;
}
.badge-dsa { background: rgba(129,140,248,0.15); color: var(--dsa); }
.badge-sd  { background: rgba(52,211,153,0.15);  color: var(--sd); }
.badge-app { background: rgba(251,146,60,0.15);  color: var(--appnet); }
.badge-job { background: rgba(251,191,36,0.15);  color: var(--yellow); }

/* ─── Form Elements ─── */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg3); }
.form-group textarea { resize: vertical; min-height: 80px; }

.btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #6957d8; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.btn-success { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }

/* ─── Table ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:hover { background: var(--bg3); }
tbody td { padding: 11px 12px; font-size: 13px; }
tbody tr:last-child { border-bottom: none; }

/* ─── Checklist ─── */
.checklist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.1s;
  cursor: pointer;
}
.checklist-item:hover { background: var(--bg3); }
.checklist-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.checklist-item label { cursor: pointer; flex: 1; font-size: 13px; }
.checklist-item.done label { text-decoration: line-through; color: var(--muted); }
.checklist-item .item-meta { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ─── Goal cards ─── */
.goal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.goal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.goal-title { font-weight: 600; font-size: 14px; }
.goal-period { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.goal-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ─── Tabs within a section ─── */
.sub-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--bg2); padding: 4px; border-radius: 10px; border: 1px solid var(--border); width: fit-content; }
.sub-tab {
  padding: 7px 18px; border-radius: 7px;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted);
  transition: all 0.15s;
  border: none; background: transparent; font-family: inherit;
}
.sub-tab.active { background: var(--bg3); color: var(--text); }
.sub-tab:hover:not(.active) { color: var(--text); }

.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* ─── Notification toast ─── */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow);
  transform: translateY(20px); opacity: 0;
  transition: all 0.25s;
  z-index: 999;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-color: var(--green); color: var(--green); }
#toast.error { border-color: var(--red); color: var(--red); }

/* ─── Config Modal ─── */
#config-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
#config-modal.hidden { display: none; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: 480px;
  max-width: 95vw;
}
.modal-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ─── Status pills ─── */
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.pill-applied   { background: rgba(124,106,245,0.15); color: var(--accent); }
.pill-screening { background: rgba(251,191,36,0.15);  color: var(--yellow); }
.pill-interview { background: rgba(52,211,153,0.15);  color: var(--sd); }
.pill-offer     { background: rgba(74,222,128,0.2);   color: var(--green); }
.pill-rejected  { background: rgba(248,113,113,0.15); color: var(--red); }
.pill-ghosted   { background: rgba(123,128,160,0.15); color: var(--muted); }

/* ─── Section divider ─── */
.section-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ─── Empty state ─── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 32px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; }

/* ─── Quote banner ─── */
.quote-banner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.8vw, 24px);
  margin-bottom: 10px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
}
.quote-icon { font-size: 26px; }
.quote-text {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}
.quote-author { font-size: 12px; color: var(--muted); margin-top: 2px; font-style: normal; font-weight: 600; }

/* ─── Streak ─── */
.streak-value { font-size: 28px; font-weight: 700; }
.streak-fire { font-size: 20px; }

/* ─── Wins wall ─── */
.win-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.win-item:last-child { border-bottom: none; }
.win-emoji { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.win-text { font-size: 13px; flex: 1; }
.win-date { font-size: 11px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.win-delete { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 4px; opacity: 0; transition: opacity 0.15s; }
.win-item:hover .win-delete { opacity: 1; }

/* ─── Sync status ─── */
.sync-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync-dot.connected { background: var(--green); }
.sync-dot.syncing { background: var(--yellow); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Auth Overlay ─── */
#auth-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center; justify-content: center;
}
.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; font-weight: 700; color: var(--accent); }

/* Google button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-google:hover { background: var(--border); }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Tab switcher */
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg3); border-radius: 8px; padding: 4px;
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1; padding: 7px 0;
  border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; background: transparent; color: var(--muted);
  transition: all .15s;
}
.auth-tab-active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Light-mode overrides ─── */
[data-theme="light"] .badge-dsa { background: rgba(75,86,196,0.12); color: var(--dsa); }
[data-theme="light"] .badge-sd  { background: rgba(30,122,82,0.12);  color: var(--sd); }
[data-theme="light"] .badge-app { background: rgba(196,89,26,0.12);  color: var(--appnet); }
[data-theme="light"] tbody tr:hover { background: var(--bg3); }

/* ─── Sage-mode overrides ─── */
[data-theme="sage"] .badge-dsa { background: rgba(74,109,181,0.12); color: var(--dsa); }
[data-theme="sage"] .badge-sd  { background: rgba(90,125,98,0.15);  color: var(--sd); }
[data-theme="sage"] .badge-app { background: rgba(138,106,64,0.12); color: var(--appnet); }
[data-theme="sage"] .checklist-item:hover { background: var(--bg3); }
[data-theme="sage"] .nav-item.active { background: rgba(90,125,98,0.18); }
[data-theme="sage"] .schedule-block { background: var(--bg3); }

/* ─── Blush-mode overrides ─── */
[data-theme="blush"] .sidebar-logo h1 { color: #d9a299; font-size: 18px; letter-spacing: 0.01em; }
[data-theme="blush"] .badge-dsa { background: rgba(154,142,196,0.15); color: var(--dsa); }
[data-theme="blush"] .badge-sd  { background: rgba(122,170,138,0.15); color: var(--sd); }
[data-theme="blush"] .badge-app { background: rgba(196,144,122,0.15); color: var(--appnet); }
[data-theme="blush"] .checklist-item:hover { background: var(--bg3); }
[data-theme="blush"] .nav-item.active { background: rgba(217,162,153,0.2); }
[data-theme="blush"] .schedule-block { background: var(--bg3); }
[data-theme="blush"] .sub-tab.active { background: var(--bg2); color: var(--text); }

/* ─── Theme dropdown ─── */
.theme-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.theme-select:focus { border-color: var(--accent); }
.theme-select option { background: var(--bg2); }

/* ─── Transition for smooth switching ─── */
body, .sidebar, .card, .stat-card, .nav-item, .main, .schedule-block,
.sub-tab, .checklist-item, .goal-card, .sync-bar {
  transition: background 0.25s, border-color 0.25s, color 0.2s;
}

/* ─── Pomodoro ─── */
.pomo-display {
  font-size: 38px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: 2px;
  margin: 8px 0;
  color: var(--text);
}
.pomo-display.work  { color: var(--accent); }
.pomo-display.break { color: var(--green); }
.pomo-controls { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.pomo-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
.pomo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.pomo-dot.done { background: var(--accent); }
.pomo-dot.break-done { background: var(--green); }
.pomo-phase {
  text-align: center; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 2px;
}

/* ─── Schedule Config ─── */
.freq-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.freq-row:last-child { border-bottom: none; }
.freq-label-col { display: flex; align-items: center; gap: 8px; min-width: 190px; flex-shrink: 0; }
.freq-name { font-size: 13px; font-weight: 500; }
.freq-slider { flex: 1; accent-color: var(--accent); cursor: pointer; height: 4px; }
.freq-value-col { min-width: 160px; text-align: right; flex-shrink: 0; }
.freq-value-label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ─── Week Preview Strip ─── */
.week-preview { display: flex; gap: 6px; margin-top: 8px; }
.week-day-cell {
  flex: 1; padding: 10px 4px 8px; border-radius: 10px;
  text-align: center; font-size: 11px; font-weight: 600;
  border: 1.5px solid transparent; transition: all 0.2s; cursor: default;
}
.week-day-cell.today { border-color: var(--accent); }
.week-day-cell.active-day  { background: rgba(74,222,128,0.1);  color: var(--green); }
.week-day-cell.break-day-c { background: rgba(248,113,113,0.1); color: var(--red); }
.week-day-cell.revision-day-c { background: rgba(124,106,245,0.12); color: var(--accent); }
.week-day-name  { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.week-day-emoji { font-size: 18px; margin-bottom: 3px; }
.week-day-label-sm { font-size: 9px; opacity: 0.8; }
.week-today-badge { font-size: 9px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.week-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.active-dot   { background: var(--green); }
.break-dot    { background: var(--red); }
.revision-dot { background: var(--accent); }

/* ─── Revision Card ─── */
.revision-cat-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 10px 0 5px;
}
.revision-topic-item {
  font-size: 12px; padding: 5px 8px; border-radius: 6px;
  background: var(--bg3); margin-bottom: 4px; color: var(--text);
  display: flex; align-items: flex-start; gap: 6px; line-height: 1.4;
}
.revision-topic-pin { flex-shrink: 0; font-size: 11px; margin-top: 1px; }
.revision-teaser {
  font-size: 13px; color: var(--muted); line-height: 1.6; padding: 8px 0;
}
.revision-day-banner {
  background: rgba(124,106,245,0.1); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* ─── Today's Focus Card ─── */
.focus-day-header {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 10px;
}
.focus-day-header.is-break    { background: rgba(248,113,113,0.1); }
.focus-day-header.is-revision { background: rgba(124,106,245,0.12); }
.focus-day-header.is-active   { background: rgba(74,222,128,0.08); }
.focus-day-emoji  { font-size: 24px; flex-shrink: 0; }
.focus-day-label  { font-size: 14px; font-weight: 700; }
.focus-day-sub    { font-size: 11px; color: var(--muted); margin-top: 1px; }
.focus-module-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px; background: var(--bg3); margin-bottom: 5px;
}
.focus-module-dot  { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.focus-module-name { font-size: 13px; font-weight: 600; flex: 1; }
.focus-module-hrs  { font-size: 12px; color: var(--muted); font-weight: 600; }
.focus-rest-note {
  font-size: 12px; color: var(--muted); padding: 7px 10px;
  border-radius: 8px; background: var(--bg3); text-align: center;
  margin-top: 5px; font-style: italic;
}
.focus-total-row {
  display: flex; justify-content: flex-end; align-items: center;
  font-size: 12px; color: var(--muted); margin-top: 8px; gap: 4px;
}
.focus-revision-list { margin-top: 4px; }
.focus-revision-item {
  font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text);
}
.focus-revision-item:last-child { border-bottom: none; }

/* ─── Countdown ─── */
.countdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.countdown-item:last-child { border-bottom: none; }
.countdown-days {
  font-size: 26px; font-weight: 700;
  line-height: 1;
}
.countdown-days.urgent { color: var(--red); }
.countdown-days.soon   { color: var(--yellow); }
.countdown-days.ok     { color: var(--green); }
.countdown-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.countdown-goal-text { font-size: 13px; font-weight: 500; flex: 1; margin: 0 12px; }
