@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg0: #0e0e10;
  --bg1: #161618;
  --bg2: #1e1e21;
  --bg3: #272729;
  --bg4: #303033;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.13);
  --text-primary: #f0f0f0;
  --text-secondary: #8a8a90;
  --text-muted: #55555c;
  --accent-purple: #8b6ff0;
  --accent-purple-dim: rgba(139,111,240,0.15);
  --accent-teal: #3ecfaa;
  --accent-teal-dim: rgba(62,207,170,0.12);
  --accent-amber: #f5a623;
  --accent-amber-dim: rgba(245,166,35,0.12);
  --accent-red: #e05f5f;
  --accent-red-dim: rgba(224,95,95,0.12);
  --accent-blue: #5b9cf6;
  --accent-blue-dim: rgba(91,156,246,0.12);
  --accent-pink: #e06fa0;
  --accent-pink-dim: rgba(224,111,160,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

/* ── BASE ── */
html, body {
  background: var(--bg0);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ── SIDEBAR ── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c5af0, #4f3bbf);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.sidebar-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13.5px;
  transition: all 0.15s;
  text-decoration: none;
  user-select: none;
}

.nav-item:hover { background: var(--bg2); color: var(--text-primary); }
.nav-item.active { background: var(--bg3); color: var(--text-primary); }
.nav-item.active .nav-icon { color: var(--accent-purple); }

.nav-icon { font-size: 14px; width: 18px; text-align: center; }

.nav-badge {
  margin-left: auto;
  background: var(--accent-purple);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── MAIN ── */
.main { flex: 1; overflow-y: auto; }

/* ── PAGE WRAPPER ── */
.page-content {
  padding: 32px 36px;
  max-width: 1100px;
  animation: fadeIn 0.2s ease;
}

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

/* ── PAGE HEADER ── */
.page-cover {
  height: 110px;
  border-radius: var(--radius-lg);
  margin-bottom: -32px;
  overflow: hidden;
  position: relative;
}

.page-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cover colors per page */
.pc-home     { background: linear-gradient(135deg, #1a1040 0%, #0f2535 40%, #0a1f1a 100%); }
.pc-tasks    { background: linear-gradient(135deg, #1a1228 0%, #0d1830 100%); }
.pc-habits   { background: linear-gradient(135deg, #0d2520 0%, #0d1f2a 100%); }
.pc-goals    { background: linear-gradient(135deg, #201428 0%, #1a1010 100%); }
.pc-links    { background: linear-gradient(135deg, #0d1f30 0%, #101828 100%); }
.pc-journal  { background: linear-gradient(135deg, #201a0a 0%, #1a2010 100%); }
.pc-review   { background: linear-gradient(135deg, #0f1f28 0%, #1a1040 100%); }
.pc-projets  { background: linear-gradient(135deg, #14202a 0%, #0a1f1a 100%); }
.pc-resources{ background: linear-gradient(135deg, #1e1028 0%, #100a1a 100%); }
.pc-pomodoro { background: linear-gradient(135deg, #200f0f 0%, #100a1a 100%); }

.page-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-left: 24px;
  position: relative;
  z-index: 1;
}

.pi-home      { background: linear-gradient(135deg,#7c5af0,#4f3bbf); box-shadow: 0 4px 20px rgba(124,90,240,0.4); }
.pi-tasks     { background: linear-gradient(135deg,#3b6dd4,#1f45a0); box-shadow: 0 4px 20px rgba(91,156,246,0.3); }
.pi-habits    { background: linear-gradient(135deg,#1e9a72,#0d6e50); box-shadow: 0 4px 20px rgba(62,207,170,0.3); }
.pi-goals     { background: linear-gradient(135deg,#c04040,#8a2020); box-shadow: 0 4px 20px rgba(224,95,95,0.3); }
.pi-links     { background: linear-gradient(135deg,#2a7ad4,#1a50a0); box-shadow: 0 4px 20px rgba(91,156,246,0.3); }
.pi-journal   { background: linear-gradient(135deg,#c07010,#8a4e08); box-shadow: 0 4px 20px rgba(245,166,35,0.3); }
.pi-review    { background: linear-gradient(135deg,#6a4fd4,#3e2bb0); box-shadow: 0 4px 20px rgba(139,111,240,0.3); }
.pi-projets   { background: linear-gradient(135deg,#1e9a72,#1a6080); box-shadow: 0 4px 20px rgba(62,207,170,0.25); }
.pi-resources { background: linear-gradient(135deg,#9a3eaa,#601880); box-shadow: 0 4px 20px rgba(224,111,160,0.3); }
.pi-pomodoro  { background: linear-gradient(135deg,#c04040,#8a1a1a); box-shadow: 0 4px 20px rgba(224,95,95,0.4); }

.page-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-top: 12px;
  padding-left: 4px;
}

.page-meta {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 4px;
  padding-left: 4px;
  margin-bottom: 28px;
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── CARDS ── */
.card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.card-action { font-size: 11.5px; color: var(--accent-purple); cursor: pointer; text-decoration: none; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.section-block { margin-bottom: 28px; }

/* ── TAGS ── */
.tag { font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 20px; font-family: var(--mono); }
.tag-purple  { background: var(--accent-purple-dim); color: var(--accent-purple); }
.tag-teal    { background: var(--accent-teal-dim);   color: var(--accent-teal); }
.tag-amber   { background: var(--accent-amber-dim);  color: var(--accent-amber); }
.tag-red     { background: var(--accent-red-dim);    color: var(--accent-red); }
.tag-blue    { background: var(--accent-blue-dim);   color: var(--accent-blue); }
.tag-pink    { background: var(--accent-pink-dim);   color: var(--accent-pink); }

/* ── PROGRESS BAR ── */
.progress-bar-wrap { height: 5px; background: var(--bg3); border-radius: 20px; overflow: hidden; margin-top: 6px; }
.progress-bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, #6a4fd4, #8b6ff0); }

/* ── QUOTE ── */
.quote-block {
  background: var(--bg1);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.quote-text   { font-size: 13.5px; color: var(--text-secondary); font-style: italic; line-height: 1.6; }
.quote-author { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ── INFO BAR ── */
.info-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.info-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; }
.info-card-label { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.info-card-value { font-size: 22px; font-weight: 500; letter-spacing: -0.5px; font-family: var(--mono); }
.info-card-sub   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── TASKS ── */
.task-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.task-item:last-child { border-bottom: none; }
.task-checkbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-hover);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.task-checkbox.done { background: var(--accent-purple); border-color: var(--accent-purple); }
.task-checkbox.done::after { content: '✓'; font-size: 10px; color: white; font-weight: 700; }
.task-content { flex: 1; }
.task-name { font-size: 13.5px; color: var(--text-primary); }
.task-name.done { text-decoration: line-through; color: var(--text-muted); }
.task-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; }

/* ── HABITS ── */
.habit-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.habit-item:last-child { border-bottom: none; }
.habit-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.habit-dots { margin-left: auto; display: flex; gap: 4px; }
.hdot { width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; color: var(--text-muted); font-family: var(--mono); }
.hdot.done  { background: var(--accent-teal); color: #0a2e26; }
.hdot.miss  { background: var(--bg3); }
.hdot.today { background: var(--bg3); border: 1.5px solid var(--accent-teal); color: var(--accent-teal); }

/* ── STAT CARDS ── */
.stat-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.stat-value { font-size: 28px; font-weight: 500; letter-spacing: -1px; font-family: var(--mono); margin-top: 4px; }
.stat-delta { font-size: 11.5px; color: var(--accent-teal); margin-top: 2px; }
.stat-delta.neg { color: var(--accent-red); }

/* ── WEEK CHART ── */
.week-chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 12px; }
.week-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week-bar-outer { width: 100%; height: 58px; display: flex; align-items: flex-end; }
.week-bar { width: 100%; border-radius: 3px 3px 0 0; background: var(--bg3); min-height: 4px; }
.week-bar.active { background: var(--accent-purple); }
.week-bar.today  { background: var(--accent-teal); }
.week-label { font-size: 10px; font-family: var(--mono); color: var(--text-muted); }

/* ── GOALS ── */
.goal-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.goal-item:last-child { border-bottom: none; }
.goal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.goal-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.goal-pct  { font-size: 12px; font-family: var(--mono); color: var(--text-secondary); }

/* ── SAVED LINKS ── */
.link-category { margin-bottom: 24px; }
.link-category-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.link-category-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.link-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; cursor: pointer; transition: all 0.15s; text-decoration: none; display: block; }
.link-card:hover { border-color: var(--border-hover); background: var(--bg2); transform: translateY(-1px); }
.link-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.link-favicon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.link-name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.link-url  { font-size: 10px; font-family: var(--mono); color: var(--text-muted); margin-top: 5px; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── JOURNAL ── */
.journal-entry { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; }
.journal-entry-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.journal-date  { font-size: 11px; font-family: var(--mono); color: var(--text-muted); margin-top: 2px; }
.journal-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.journal-body  { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }
.journal-tags  { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.journal-new {
  background: var(--bg1);
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.15s;
  margin-bottom: 20px;
  font-family: var(--font);
  width: 100%;
}
.journal-new:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

/* ── WEEKLY REVIEW ── */
.review-section { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 14px; }
.review-section-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }
.review-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-bullet { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.review-text   { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.score-row { display: flex; gap: 5px; }
.score-dot {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--mono); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
}
.score-dot:hover { background: var(--bg4); }
.score-dot.on { background: var(--accent-purple-dim); color: var(--accent-purple); border-color: var(--accent-purple); }

/* ── PROJETS ── */
.project-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; transition: border-color 0.15s; }
.project-card:hover { border-color: var(--border-hover); }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.project-name   { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.project-status { font-size: 10px; font-family: var(--mono); padding: 2px 7px; border-radius: 20px; flex-shrink: 0; margin-left: 8px; }
.s-active { background: var(--accent-teal-dim); color: var(--accent-teal); }
.s-pause  { background: var(--accent-amber-dim); color: var(--accent-amber); }
.s-done   { background: var(--accent-purple-dim); color: var(--accent-purple); }
.project-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.project-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

/* ── RESOURCES ── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all 0.15s; }
.media-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.media-thumb { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; background: var(--bg3); }
.mbadge { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px; font-family: var(--mono); }
.mb-watch { background: var(--accent-teal-dim); color: var(--accent-teal); }
.mb-plan  { background: var(--accent-blue-dim);  color: var(--accent-blue); }
.mb-done  { background: var(--accent-purple-dim); color: var(--accent-purple); }
.mb-hold  { background: var(--accent-amber-dim);  color: var(--accent-amber); }
.media-info  { padding: 8px 10px; }
.media-title { font-size: 12px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-sub   { font-size: 10.5px; color: var(--text-muted); }

/* ── POMODORO ── */
.pomo-wrap { display: flex; flex-direction: column; align-items: center; padding: 24px 0; }
.pomo-ring { position: relative; width: 220px; height: 220px; margin-bottom: 24px; }
.pomo-svg { transform: rotate(-90deg); }
.pomo-track    { fill: none; stroke: var(--bg3); stroke-width: 10; }
.pomo-progress { fill: none; stroke: var(--accent-red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 628; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.pomo-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pomo-time   { font-size: 44px; font-weight: 500; font-family: var(--mono); letter-spacing: -2px; }
.pomo-label  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.pomo-controls { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.pomo-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  background: var(--bg2);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pomo-btn:hover { background: var(--bg3); border-color: var(--accent-red); }
.pomo-btn-main { width: 60px; height: 60px; font-size: 22px; background: var(--accent-red-dim); border-color: var(--accent-red); }
.pomo-modes { display: flex; gap: 6px; margin-bottom: 28px; }
.pomo-mode-btn {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  transition: all 0.15s;
}
.pomo-mode-btn.active { background: var(--accent-red-dim); color: var(--accent-red); border-color: var(--accent-red); }
.pomo-sessions { display: flex; gap: 6px; margin-bottom: 28px; }
.pomo-dot      { width: 10px; height: 10px; border-radius: 50%; background: var(--bg3); }
.pomo-dot.done { background: var(--accent-red); }
.pomo-tasks    { width: 100%; max-width: 400px; }
.pomo-task-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.pomo-task-dots { margin-left: auto; display: flex; gap: 4px; }
.ptdot      { width: 8px; height: 8px; border-radius: 50%; background: var(--bg3); border: 1px solid rgba(224,95,95,0.3); }
.ptdot.done { background: var(--accent-red); border-color: var(--accent-red); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 10px; }

/* ── MOBILE TOP BAR ── */
.mobile-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 52px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.mobile-menu-btn {
  background: none; border: none; color: var(--text-primary);
  font-size: 20px; cursor: pointer; padding: 4px; line-height: 1;
}
.mobile-logo { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mobile-topbar    { display: flex; }
  .sidebar-overlay  { display: block; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .sidebar-overlay.open { opacity: 1; pointer-events: all; }

  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 200;
    transform: translateX(-240px);
    transition: transform 0.2s;
    height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }

  .app { flex-direction: column; padding-top: 52px; }
  .main { overflow-y: unset; }

  .page-content { padding: 16px; }
  .page-cover   { height: 70px; }
  .page-title   { font-size: 22px; }
  .page-icon    { width: 40px; height: 40px; font-size: 20px; margin-left: 12px; }

  .grid-2, .grid-3, .info-bar { grid-template-columns: 1fr; }

  .habit-dots { gap: 3px; }
  .hdot       { width: 17px; height: 17px; }
}
