:root {
  --bg: #fdf0e2;
  --bg-elevated: #fff8ee;
  --bg-card: #ffffff;
  --bg-hover: #fbe6cd;
  --border: #f2ddbc;
  --border-light: #e9c896;
  --text: #3a2b1a;
  --text-muted: #8a7255;
  --text-dim: #b49b78;
  --accent: #ff8a3d;
  --accent-hover: #ff7a1f;
  --accent-soft: rgba(255, 138, 61, 0.16);
  --blue: #4f9dff;
  --green: #2fa876;
  --orange: #ff9f43;
  --red: #e0524f;
  --purple: #b07cc6;
  --yellow: #eeab2d;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 24px rgba(160, 110, 50, 0.14);
  --transition: 160ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a4152; }

svg { width: 18px; height: 18px; }

.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: transform var(--transition);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 22px;
}
.brand-mark {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #4f9dff);
  border-radius: 9px;
  color: white;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-footer { margin-top: auto; padding-top: 14px; }

.pomodoro-chip {
  width: 100%;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.pomodoro-chip:hover { background: var(--bg-hover); border-color: var(--border-light); }
.pomodoro-chip svg { color: var(--accent); width: 16px; height: 16px; }

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 120;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ---------- MAIN ---------- */
.main {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 60px;
}

.view { display: none; animation: fadeIn 220ms ease; }
.view.active { display: block; }

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

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.view-header h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.muted { color: var(--text-muted); margin: 0; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- BUTTONS / INPUTS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--bg-card); color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); background: var(--bg-hover); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255,92,114,0.3); }
.btn-danger:hover { background: rgba(255,92,114,0.1); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.icon-btn {
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; padding: 6px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.input, select, textarea, input[type=text], input[type=date], input[type=number] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.input:focus, select:focus, textarea:focus, input:focus { border-color: var(--accent); }
.search-input { width: 220px; }
textarea { resize: vertical; }

/* ---------- QUOTE ---------- */
.quote-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, rgba(109,94,248,0.12), rgba(79,157,255,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 22px;
}
.quote-card svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.quote-card p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; font-style: italic; color: #dfe2ea; }

/* ---------- STAT GRID ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-blue { background: rgba(79,157,255,0.15); color: var(--blue); }
.icon-orange { background: rgba(255,159,67,0.15); color: var(--orange); }
.icon-green { background: rgba(55,211,153,0.15); color: var(--green); }
.icon-purple { background: rgba(192,132,252,0.15); color: var(--purple); }
.stat-value { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ---------- CARD ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  margin: 0; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.card-header h3 svg { width: 15px; height: 15px; color: var(--accent); }
.card-body { padding: 14px 18px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.empty-hint { color: var(--text-dim); font-size: 12.5px; padding: 6px 0; }

/* ---------- MINI TASK ROW (dashboard) ---------- */
.mini-task {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.mini-task:last-child { border-bottom: none; }
.mini-task .mt-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mini-task .mt-title { flex: 1; }
.mini-task.done .mt-title { text-decoration: line-through; color: var(--text-dim); }
.mini-task .mt-tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 20px;
  background: var(--bg-hover); color: var(--text-muted); font-weight: 600;
}

/* ---------- HABIT ROW (dashboard) ---------- */
.habit-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.habit-row:last-child { border-bottom: none; }
.habit-check {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); background: transparent;
}
.habit-check.checked { background: var(--green); border-color: var(--green); }
.habit-check svg { width: 13px; height: 13px; color: white; display: none; }
.habit-check.checked svg { display: block; }

/* ---------- HEATMAP ---------- */
.heatmap { display: flex; flex-wrap: wrap; gap: 3px; max-width: 100%; }
.hm-cell { width: 11px; height: 11px; border-radius: 3px; background: var(--bg-hover); }
.hm-cell[data-level="1"] { background: rgba(55,211,153,0.35); }
.hm-cell[data-level="2"] { background: rgba(55,211,153,0.6); }
.hm-cell[data-level="3"] { background: rgba(55,211,153,0.85); }
.hm-cell[data-level="4"] { background: #37d399; }

/* ---------- TODO BOARD ---------- */
.filter-row { margin-bottom: 16px; }
.tag-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-filter {
  padding: 6px 13px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.tag-filter:hover { color: var(--text); }
.tag-filter.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: flex-start;
}
.board-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-height: 120px;
}
.board-col-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 12px; padding: 0 2px;
}
.board-col-header .count {
  margin-left: auto; background: var(--bg-hover); color: var(--text-dim);
  padding: 1px 8px; border-radius: 20px; font-size: 11px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-gray { background: var(--text-dim); }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }

.board-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.board-list.drag-over { background: var(--accent-soft); border-radius: var(--radius-sm); }

.task-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 13px;
  cursor: grab;
  transition: border-color var(--transition), transform var(--transition);
}
.task-card:hover { border-color: var(--border-light); }
.task-card.dragging { opacity: 0.4; }
.task-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.task-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.priority-flag { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.priority-high { background: var(--red); }
.priority-medium { background: var(--orange); }
.priority-low { background: var(--blue); }
.task-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.task-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; background: var(--bg-hover); color: var(--text-muted); font-weight: 600; }
.task-due { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.task-due.overdue { color: var(--red); }
.task-due svg { width: 11px; height: 11px; }
.task-checklist-progress { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.task-checklist-progress svg { width: 11px; height: 11px; }

/* ---------- DEV ---------- */
.dev-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: flex-start; }
.dev-sidebar { display: flex; flex-direction: column; gap: 6px; }
.dev-project-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  font-weight: 600; font-size: 13px;
}
.dev-project-item:hover { border-color: var(--border-light); }
.dev-project-item.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dev-project-item .feature-count { font-size: 11px; color: var(--text-dim); font-weight: 500; }

.dev-content { min-height: 300px; }
.dev-project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dev-project-header h2 { margin: 0; font-size: 19px; font-weight: 800; }

.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  transition: border-color var(--transition);
}
.feature-card:hover { border-color: var(--border-light); }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-card-title { font-weight: 700; font-size: 14px; }
.status-badge { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.status-idea { background: rgba(192,132,252,0.15); color: var(--purple); }
.status-todo { background: rgba(139,147,163,0.15); color: var(--text-muted); }
.status-progress { background: rgba(79,157,255,0.15); color: var(--blue); }
.status-done { background: rgba(55,211,153,0.15); color: var(--green); }
.status-blocked { background: rgba(255,92,114,0.15); color: var(--red); }
.feature-card-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.feature-card-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--text-dim); }
.feature-card-footer span { display: flex; align-items: center; gap: 4px; }
.feature-card-footer svg { width: 12px; height: 12px; }

.feature-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.feature-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.feature-detail-section { margin-bottom: 16px; }
.feature-detail-section label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); margin-bottom: 6px; }

/* ---------- NOTES ---------- */
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: flex-start; }
.notes-sidebar { display: flex; flex-direction: column; gap: 12px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.notes-list { display: flex; flex-direction: column; gap: 6px; max-height: 65vh; overflow-y: auto; }
.note-item {
  padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.note-item:hover { border-color: var(--border-light); }
.note-item.active { border-color: var(--accent); background: var(--accent-soft); }
.note-item-title { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.note-item-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.note-cat-badge { font-size: 10px; padding: 1px 7px; border-radius: 20px; background: var(--bg-hover); color: var(--text-muted); font-weight: 700; }

.notes-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; min-height: 400px; }
.note-editor-top { display: flex; gap: 10px; margin-bottom: 12px; }
.note-editor-top input[type=text] { flex: 1; font-size: 17px; font-weight: 700; }
#noteTitleInput { flex: 1; font-size: 18px; font-weight: 800; }
.note-editor-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.note-editor-tab { padding: 8px 14px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 12.5px; font-weight: 600; border-bottom: 2px solid transparent; }
.note-editor-tab.active { color: var(--accent); border-color: var(--accent); }
#noteBody { min-height: 320px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.note-preview { min-height: 320px; line-height: 1.7; font-size: 14px; }
.note-preview h1, .note-preview h2, .note-preview h3 { margin-top: 0; }
.note-preview code { background: var(--bg-hover); padding: 2px 5px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.note-preview pre { background: var(--bg-elevated); padding: 12px; border-radius: var(--radius-sm); overflow-x: auto; }
.note-preview a { color: var(--accent); }

/* ---------- GOALS ---------- */
.goal-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg-card); border: 1px solid var(--border); padding: 4px; border-radius: var(--radius); width: fit-content; }
.goal-tab { padding: 8px 16px; border-radius: var(--radius-sm); background: transparent; border: none; color: var(--text-muted); font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; }
.goal-tab.active { background: var(--accent); color: white; }

.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.goal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.goal-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.goal-card-title { font-weight: 700; font-size: 15px; }
.progress-bar-track { height: 7px; background: var(--bg-hover); border-radius: 20px; overflow: hidden; margin: 10px 0; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); border-radius: 20px; transition: width 300ms ease; }
.progress-pct { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.goal-checklist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.goal-checklist-item { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.goal-checklist-item.done span { text-decoration: line-through; color: var(--text-dim); }
.goal-checklist-item input[type=text] { border: none; background: transparent; padding: 2px 0; }

/* ---------- HABITS ---------- */
.habits-list { display: flex; flex-direction: column; gap: 12px; }
.habit-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
.habit-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.habit-card-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.habit-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.habit-stats b { color: var(--text); }
.habit-week { display: flex; gap: 6px; }
.habit-day-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--border-light); background: transparent;
  color: var(--text-dim); font-size: 10.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.habit-day-btn.checked { background: var(--green); border-color: var(--green); color: white; }
.habit-day-btn.today { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- CALENDAR ---------- */
.cal-month-label { font-weight: 700; font-size: 14px; min-width: 130px; text-align: center; display: inline-block; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-weekday { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; padding-bottom: 6px; }
.cal-day {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-height: 90px; padding: 8px; font-size: 11.5px;
}
.cal-day.other-month { opacity: 0.35; }
.cal-day.today { border-color: var(--accent); }
.cal-day-num { font-weight: 700; margin-bottom: 5px; }
.cal-task-chip { background: var(--accent-soft); color: var(--accent); border-radius: 5px; padding: 2px 5px; font-size: 10px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* ---------- POMODORO WIDGET ---------- */
.pomodoro-widget {
  position: fixed; bottom: 20px; right: 20px;
  width: 220px; background: var(--bg-elevated);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow);
  display: none; z-index: 200;
}
.pomodoro-widget.open { display: block; animation: fadeIn 200ms ease; }
.pomodoro-header { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.pomodoro-header span { display: flex; align-items: center; gap: 6px; }
.pomodoro-header svg { width: 15px; height: 15px; color: var(--accent); }
.pomodoro-mode-switch { display: flex; gap: 4px; background: var(--bg-card); padding: 3px; border-radius: 8px; margin-bottom: 14px; }
.pmode { flex: 1; background: transparent; border: none; color: var(--text-muted); font-size: 10.5px; font-weight: 600; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.pmode.active { background: var(--accent); color: white; }
.pomodoro-time { font-family: 'JetBrains Mono', monospace; font-size: 34px; font-weight: 700; text-align: center; margin-bottom: 14px; letter-spacing: -0.02em; }
.pomodoro-controls { display: flex; gap: 8px; }
.pomodoro-controls .btn-primary { flex: 1; justify-content: center; }
.pomodoro-sessions { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 10px; }

/* ---------- MODAL ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(5,6,10,0.6);
  z-index: 300; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; animation: fadeIn 180ms ease; }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); width: 560px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.modal-header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-title-input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 17px; font-weight: 700; outline: none; font-family: inherit; }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--border); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.checklist-item { display: flex; align-items: center; gap: 8px; }
.checklist-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.checklist-item input[type=text] { flex: 1; padding: 6px 8px; }
.checklist-item .icon-btn { flex-shrink: 0; }
.links-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.link-item { display: flex; align-items: center; gap: 8px; }
.link-item a { color: var(--accent); font-size: 12.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- EMPTY STATE ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-dim); text-align: center; }
.empty-state svg { width: 34px; height: 34px; margin-bottom: 10px; opacity: 0.5; }
.empty-state p { margin: 0; font-size: 13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-layout, .notes-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .board { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu-btn { display: flex; }
  .sidebar-overlay.open { display: block; }
  .main { padding: 70px 16px 60px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pomodoro-widget { right: 12px; bottom: 12px; width: calc(100% - 24px); max-width: 260px; }
}
