/* ═══════════════════════════════════════════════════════════════════════════
   DORKprod — Design System
   Neobrutalist productivity tool
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #faf7f0;
  --fg:        #111118;
  --card:      #ffffff;
  --flame:     #ff5722;
  --cobalt:    #2563eb;
  --zap:       #fde047;
  --mint:      #86efac;
  --bubble:    #f9a8d4;
  --paper:     #fef9ef;
  --muted:     #f0ede5;
  --muted-fg:  #6b6070;
  --red:       #ef4444;
  --border-w:  3px;
  --radius:    12px;
  --shadow:    5px 5px 0 0 var(--fg);
  --shadow-sm: 3px 3px 0 0 var(--fg);
  --font-disp: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(17,17,24,0.13) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-disp);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ── Panel ──────────────────────────────────────────────────────────────── */
.panel {
  background: var(--card);
  border: var(--border-w) solid var(--fg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-flame  { background: color-mix(in srgb, var(--flame) 15%, var(--card)); }
.panel-cobalt { background: color-mix(in srgb, var(--cobalt) 12%, var(--card)); }
.panel-mint   { background: color-mix(in srgb, var(--mint) 25%, var(--card)); }
.panel-zap    { background: color-mix(in srgb, var(--zap) 30%, var(--card)); }
.panel-bubble { background: color-mix(in srgb, var(--bubble) 25%, var(--card)); }
.panel-paper  { background: var(--paper); }
.panel-muted  { background: var(--muted); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 100ms ease, box-shadow 100ms ease;
  box-shadow: var(--shadow-sm);
  background: var(--card);
  color: var(--fg);
  user-select: none;
}
.btn:hover  { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--fg); }
.btn:active { transform: translate(2px,2px);  box-shadow: 1px 1px 0 0 var(--fg); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-sm  { padding: 6px 12px; font-size: 0.75rem; }
.btn-lg  { padding: 12px 24px; font-size: 1rem; }
.btn-icon { padding: 9px; }
.btn-icon.btn-sm { padding: 6px; }
.btn-icon.btn-lg { padding: 12px; }

.btn-flame  { background: var(--flame);  color: #fff; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-mint   { background: var(--mint);   color: var(--fg); }
.btn-zap    { background: var(--zap);    color: var(--fg); }
.btn-bubble { background: var(--bubble); color: var(--fg); }
.btn-paper  { background: var(--paper);  color: var(--fg); }
.btn-ink    { background: var(--fg);     color: var(--card); }
.btn-red    { background: var(--red);    color: #fff; }
.btn-ghost  { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: var(--muted); box-shadow: none; transform: none; }

.btn-w { width: 100%; }

/* ── Chips / Badges ─────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 2px solid var(--fg);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--zap);
  color: var(--fg);
}
.chip-flame  { background: var(--flame);  color: #fff; border-color: var(--flame); }
.chip-cobalt { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.chip-mint   { background: var(--mint); }
.chip-zap    { background: var(--zap); }
.chip-bubble { background: var(--bubble); }
.chip-paper  { background: var(--paper); }
.chip-ink    { background: var(--fg); color: #fff; }
.chip-red    { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Form controls ──────────────────────────────────────────────────────── */
.label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.input, .textarea, .select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: box-shadow 100ms ease;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  box-shadow: var(--shadow-sm);
}
.textarea { resize: vertical; min-height: 120px; font-family: var(--font-mono); font-size: 0.85rem; }
.select   { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23111118' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-sm { padding: 7px 10px; font-size: 0.82rem; }

.form-row { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .form-row { margin-bottom: 0; }

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

.sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--card);
  border-right: 3px solid var(--fg);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 16px;
  border-bottom: 2px solid var(--fg);
  margin-bottom: 10px;
}
.sidebar-logo-mark {
  width: 42px; height: 42px;
  border: 3px solid var(--fg);
  border-radius: 10px;
  background: var(--flame);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.sidebar-logo-text { font-family: var(--font-disp); font-size: 1.2rem; font-weight: 800; line-height: 1; }
.sidebar-logo-sub  { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  background: transparent;
  transition: background 120ms, box-shadow 120ms, transform 120ms;
}
.nav-link:hover { background: var(--muted); }
.nav-link.active {
  background: var(--fg);
  color: var(--card);
  border-color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); margin-left: auto; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--fg);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: var(--muted);
}
.user-avatar {
  width: 36px; height: 36px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.user-email { font-size: 0.76rem; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px;
  overflow-y: auto;
}

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.page-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  margin-bottom: 2px;
}
.page-title { font-size: 2rem; font-weight: 900; }

/* ── Stat cards ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 20px;
}
.stat-icon {
  width: 38px; height: 38px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-value { font-size: 3rem; font-weight: 900; font-family: var(--font-disp); line-height: 1; }
.stat-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); margin-top: 4px; }

/* ── Kanban board ───────────────────────────────────────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.board-col {
  min-height: 300px;
  padding: 14px;
}
.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.col-title { font-weight: 900; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; }

.task-card {
  background: var(--card);
  border: 2px solid var(--fg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: transform 100ms ease, box-shadow 100ms ease;
  position: relative;
}
.task-card:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 var(--fg); }
.task-card:active { cursor: grabbing; }
.task-card.drag-over { outline: 3px dashed var(--cobalt); }
.task-card-title { font-weight: 700; font-size: 0.9rem; line-height: 1.3; margin-bottom: 6px; }
.task-card-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 0.72rem; }
.task-card-delete {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  border: 1px solid var(--fg); border-radius: 6px;
  background: var(--card); display: none;
  place-items: center; cursor: pointer;
  font-size: 0.7rem;
}
.task-card:hover .task-card-delete { display: grid; }
.task-card-delete:hover { background: var(--red); color: #fff; }

.drop-zone { border: 2px dashed var(--muted-fg); border-radius: 10px; padding: 16px; text-align: center; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); }
.drop-zone.drag-active { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 8%, transparent); }

.project-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 2px solid var(--fg); border-radius: 999px;
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--card); cursor: pointer;
  transition: transform 80ms, box-shadow 80ms;
}
.project-pill:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-sm); }
.project-pill.active { background: var(--fg); color: var(--card); box-shadow: var(--shadow-sm); }
.project-pill-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--fg); }
.project-pill.active .project-pill-dot { border-color: var(--card); }
.project-pill-del { margin-left: 4px; opacity: 0.6; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; }
.project-pill-del:hover { opacity: 1; color: var(--red); }

/* ── Timer ──────────────────────────────────────────────────────────────── */
.timer-display {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 900;
  font-family: var(--font-disp);
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  tabular-nums: 1;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.timer-sep { opacity: 0.55; }
.timer-progress {
  height: 10px;
  border: 2px solid var(--fg);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  margin: 20px 0;
}
.timer-bar {
  height: 100%;
  background: var(--fg);
  border-radius: 999px;
  transition: width 1s linear;
}
.mode-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.mode-tab {
  padding: 8px 16px; border: 2px solid var(--fg); border-radius: 10px;
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--card); cursor: pointer;
  transition: transform 80ms, box-shadow 80ms;
}
.mode-tab:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-sm); }
.mode-tab.active { background: var(--fg); color: var(--card); box-shadow: var(--shadow-sm); }

/* ── Notes ──────────────────────────────────────────────────────────────── */
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.notes-list { max-height: calc(100vh - 200px); overflow-y: auto; padding: 8px; }
.note-item {
  padding: 10px 12px;
  border: 2px solid var(--fg);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  background: var(--card);
  transition: background 80ms;
}
.note-item:hover { background: var(--muted); }
.note-item.active { background: var(--fg); color: var(--card); }
.note-item.active .chip { background: var(--card); color: var(--fg); }
.note-title { font-weight: 700; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.note-date { font-size: 0.7rem; font-weight: 600; opacity: 0.7; }
.note-editor { padding: 20px; }
.note-editor-header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.note-editor-title { flex: 1; min-width: 200px; font-size: 1.4rem; font-weight: 900; }
.note-empty { display: grid; place-items: center; min-height: 300px; text-align: center; }

/* ── Calendar ───────────────────────────────────────────────────────────── */
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-size: 1.4rem; font-weight: 900; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 6px 0; color: var(--muted-fg); }
.cal-day {
  min-height: 72px; padding: 6px;
  border: 2px solid var(--fg); border-radius: 8px;
  background: var(--card); cursor: pointer;
  transition: background 80ms;
  position: relative;
}
.cal-day:hover { background: var(--muted); }
.cal-day.today { background: color-mix(in srgb, var(--zap) 40%, var(--card)); }
.cal-day.selected { background: var(--fg); color: var(--card); }
.cal-day.other-month { opacity: 0.4; }
.cal-day-num { font-size: 0.82rem; font-weight: 800; }
.cal-day-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--fg); flex-shrink: 0; }
.cal-selected-tasks { margin-top: 16px; }

/* ── Settings ───────────────────────────────────────────────────────────── */
.settings-sections { display: grid; gap: 20px; max-width: 600px; }
.settings-section { padding: 20px; }
.settings-section h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,17,24,0.45);
  display: grid; place-items: center; padding: 16px;
  opacity: 0; transition: opacity 150ms;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  width: 100%; max-width: 480px;
  padding: 24px;
  transform: translateY(16px); transition: transform 150ms;
}
.modal-backdrop.show .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 1.4rem; font-weight: 900; }

/* ── Toasts ─────────────────────────────────────────────────────────────── */
#toasts {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  border: 2px solid var(--fg);
  border-radius: 12px;
  font-weight: 700; font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  background: var(--card);
  transform: translateX(120%); transition: transform 250ms ease;
  pointer-events: auto;
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast-error { background: var(--red); color: #fff; border-color: var(--red); }
.toast-success { background: var(--mint); }

/* ── Mobile topbar ──────────────────────────────────────────────────────── */
.topbar {
  display: none; position: sticky; top: 0; z-index: 200;
  background: var(--card); border-bottom: 3px solid var(--fg);
  padding: 10px 16px;
  align-items: center; justify-content: space-between;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(17,17,24,0.4); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.flex-1 { flex: 1; }
.min-w-0{ min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid    { display: grid; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-fg); font-size: 0.85rem; }
.fw-900 { font-weight: 900; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-4  { padding: 16px; }
.p-5  { padding: 20px; }
.p-6  { padding: 24px; }
.p-8  { padding: 32px; }
.col-span-2 { grid-column: span 2; }
.w-100 { width: 100%; }
.mono  { font-family: var(--font-mono); }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 48px 24px; border: 2px dashed var(--muted-fg);
  border-radius: var(--radius);
}
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3  { font-size: 1.1rem; margin-bottom: 4px; }
.empty-state p   { color: var(--muted-fg); font-size: 0.85rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── Landing page ───────────────────────────────────────────────────────── */
.landing { min-height: 100vh; }
.hero {
  max-width: 900px; margin: 0 auto; padding: 80px 24px 60px;
  text-align: center;
}
.hero-logo {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.hero-logo-mark {
  width: 72px; height: 72px;
  border: 4px solid var(--fg); border-radius: 18px;
  background: var(--flame); box-shadow: 6px 6px 0 0 var(--fg);
  display: grid; place-items: center; font-size: 2rem;
}
.hero-wordmark { font-size: 3.5rem; font-weight: 900; font-family: var(--font-disp); letter-spacing: -0.04em; }
.hero-wordmark span { color: var(--flame); }
.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 20px; line-height: 1.1;
}
.hero-sub { font-size: 1.1rem; color: var(--muted-fg); font-weight: 500; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.features { max-width: 1100px; margin: 0 auto; padding: 20px 24px 80px; }
.features-title { text-align: center; font-size: 2rem; font-weight: 900; margin-bottom: 32px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 24px; }
.feature-icon {
  width: 48px; height: 48px;
  border: 3px solid var(--fg); border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-card p  { font-size: 0.88rem; color: var(--muted-fg); line-height: 1.6; }

/* ── Auth page ──────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center; padding: 24px;
}
.auth-card { width: 100%; max-width: 420px; padding: 32px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; justify-content: center; }
.auth-logo-mark { width: 46px; height: 46px; border: 3px solid var(--fg); border-radius: 12px; background: var(--flame); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 1.4rem; }
.auth-logo-text { font-size: 1.6rem; font-weight: 900; font-family: var(--font-disp); }
.auth-tabs { display: flex; margin-bottom: 24px; border: 2px solid var(--fg); border-radius: 10px; overflow: hidden; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background 100ms; }
.auth-tab.active { background: var(--fg); color: var(--card); }
.auth-error { background: color-mix(in srgb, var(--red) 15%, white); border: 2px solid var(--red); border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; font-weight: 600; color: var(--red); margin-bottom: 14px; display: none; }
.auth-error.show { display: block; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.82rem; color: var(--muted-fg); }
.auth-footer a { font-weight: 700; color: var(--fg); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .notes-layout { grid-template-columns: 1fr; }
  .notes-list   { max-height: 240px; }
  .board-grid   { grid-template-columns: repeat(2, 1fr); }
  .two-col      { grid-template-columns: 1fr; }
  .three-col    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform 200ms; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .topbar { display: flex; }
  .main-content { padding: 16px; padding-top: 72px; }
  .board-grid   { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .form-grid    { grid-template-columns: 1fr; }
  .hero-tagline { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .timer-display { font-size: 72px; }
  .cal-grid  { font-size: 0.7rem; }
  .cal-day   { min-height: 52px; padding: 4px; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: var(--fg); border-radius: 4px; }
