/* Every colour lives as a token so light/dark is a matter of redefining the
   tokens, never touching a component rule. Precedence, low to high: the
   light values here → the OS preference media query → an explicit
   data-theme choice (Settings), which wins over the OS either direction. */
:root {
  --paper: #ece1d2;
  --paper-2: #f6f0e7;
  --card: #fffdfa;
  --ink: #2a1a2e;
  --ink-soft: #6c5a6e;
  --ink-faint: #9a8b9b;
  --line: #e8ddd1;

  /* Brand colours — #3e9d9a and #eadb0f, toned down (desaturated + darkened)
     for a calm daily-use screen rather than used at full saturation. */
  --teal: #4a8987;
  --teal-bg: #e0edec;
  --teal-line: #c6ddda;
  --gold: #a3903a;
  --gold-bg: #f2ecd3;
  --gold-line: #dfd3a0;

  /* The four email-bucket / priority-quadrant colour families — named
     tokens instead of hardcoded hex so dark mode only has to override them
     once here, not everywhere they were used. */
  --green: #5a8a68;
  --green-bg: #e8f1ea;
  --green-line: #cfe4d4;
  --amber: #a68a4f;
  --amber-bg: #f6eee0;
  --amber-line: #ecdcc0;
  --purple: #8570a0;
  --purple-bg: #f1eaf5;
  --purple-line: #e2d3ec;
  --grey: #737f88;
  --grey-bg: #ededee;
  --grey-line: #dcdde0;

  --danger: #b0413e;
  --danger-bg: #f7e6e5;

  --shadow: 0 1px 2px rgba(42, 26, 46, 0.04), 0 12px 32px -12px rgba(42, 26, 46, 0.14);
  --shadow-drag: 0 10px 24px -8px rgba(42, 26, 46, 0.35);
  --r: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

/* OS-level default — only applies when she hasn't picked a theme explicitly. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1420;
    --paper-2: #241a2a;
    --card: #2b1f33;
    --ink: #f3ece9;
    --ink-soft: #c2aec0;
    --ink-faint: #8d7a8c;
    --line: #3c2d44;

    --teal: #6bbab5;
    --teal-bg: #16302e;
    --teal-line: #2c4d49;
    --gold: #d4bc63;
    --gold-bg: #3a3018;
    --gold-line: #4f4322;

    --green: #7fb98d;
    --green-bg: #1c3324;
    --green-line: #2f4d3a;
    --amber: #d3a86a;
    --amber-bg: #3a2e1c;
    --amber-line: #4f4128;
    --purple: #b39bc9;
    --purple-bg: #2c2236;
    --purple-line: #423550;
    --grey: #a3aab0;
    --grey-bg: #2a2a2e;
    --grey-line: #3d3d42;

    --danger: #e2726b;
    --danger-bg: #3a201f;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    --shadow-drag: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
  }
}

/* Explicit choice from Settings — repeats the same two palettes, but as
   attribute selectors so they win over the media query in both directions
   (an explicit "light" pick must still beat a dark OS setting, and vice
   versa). See applyTheme() in app.js. */
:root[data-theme="dark"] {
  --paper: #1c1420;
  --paper-2: #241a2a;
  --card: #2b1f33;
  --ink: #f3ece9;
  --ink-soft: #c2aec0;
  --ink-faint: #8d7a8c;
  --line: #3c2d44;

  --teal: #6bbab5;
  --teal-bg: #16302e;
  --teal-line: #2c4d49;
  --gold: #d4bc63;
  --gold-bg: #3a3018;
  --gold-line: #4f4322;

  --green: #7fb98d;
  --green-bg: #1c3324;
  --green-line: #2f4d3a;
  --amber: #d3a86a;
  --amber-bg: #3a2e1c;
  --amber-line: #4f4128;
  --purple: #b39bc9;
  --purple-bg: #2c2236;
  --purple-line: #423550;
  --grey: #a3aab0;
  --grey-bg: #2a2a2e;
  --grey-line: #3d3d42;

  --danger: #e2726b;
  --danger-bg: #3a201f;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --shadow-drag: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
}

:root[data-theme="light"] {
  --paper: #ece1d2;
  --paper-2: #f6f0e7;
  --card: #fffdfa;
  --ink: #2a1a2e;
  --ink-soft: #6c5a6e;
  --ink-faint: #9a8b9b;
  --line: #e8ddd1;

  --teal: #4a8987;
  --teal-bg: #e0edec;
  --teal-line: #c6ddda;
  --gold: #a3903a;
  --gold-bg: #f2ecd3;
  --gold-line: #dfd3a0;

  --green: #5a8a68;
  --green-bg: #e8f1ea;
  --green-line: #cfe4d4;
  --amber: #a68a4f;
  --amber-bg: #f6eee0;
  --amber-line: #ecdcc0;
  --purple: #8570a0;
  --purple-bg: #f1eaf5;
  --purple-line: #e2d3ec;
  --grey: #737f88;
  --grey-bg: #ededee;
  --grey-line: #dcdde0;

  --danger: #b0413e;
  --danger-bg: #f7e6e5;

  --shadow: 0 1px 2px rgba(42, 26, 46, 0.04), 0 12px 32px -12px rgba(42, 26, 46, 0.14);
  --shadow-drag: 0 10px 24px -8px rgba(42, 26, 46, 0.35);
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Daily-use screens stay plainer than the marketing pages — calm, not gamified */

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink);
}

.field input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* Same show/hide pattern as her other apps (e.g. SYP's login.html) — 👁️ when
   hidden, 🙈 when showing, plain toggle rather than a held-down reveal. */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input { flex: 1; padding-right: 2.6rem; }

.toggle-password {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1rem;
  opacity: 0.65;
  border-radius: 6px;
}

.toggle-password:hover { opacity: 1; background: var(--paper); }

button.primary {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  /* var(--paper), not a hardcoded #fff — --ink flips to a light colour in
     dark mode (it's the text-colour token), so this button's text needs to
     flip with it to stay legible instead of going white-on-white. */
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 9px;
  padding: 0.75rem;
  cursor: pointer;
}

button.primary:hover { opacity: 0.9; }

.link {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-decoration: underline;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}

.error-text {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1.1em;
}

/* ---------- dashboard ---------- */

.dashboard {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.2rem calc(1.5rem + 120px); /* leave room for the fixed 2-row dock */
  gap: 1.4rem;
  max-width: 30rem;
  margin: 0 auto;
}

/* ---------- top bar — back-to-home + settings, on every authenticated screen ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.topbar button {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 8px;
}

.topbar button:hover { background: var(--paper-2); color: var(--ink); }

.topbar .home-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.greeting-sub { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.15rem; }

.money-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(150deg, var(--gold-bg), var(--teal-bg));
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  padding: 0.9rem 1.1rem;
}

.money-strip .amount {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.money-strip .detail { font-size: 0.82rem; color: var(--ink-soft); }

/* Deliberately plain — no card, no border, no colour. An offer, not another
   thing competing for attention alongside the money strip and priorities. */
.reminder-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.2rem 0.1rem;
}

.reminder-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reminder-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.reminder-strip button {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.reminder-strip button:hover { color: var(--ink-soft); background: var(--paper-2); }

.priorities { display: flex; flex-direction: column; gap: 0.55rem; }

.priorities h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.priority-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

.card-del {
  margin-left: auto;
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem; /* bumped from 0.2/0.35rem — a ~20px hit area is a mis-tap risk on a phone */
  border-radius: 6px;
}

.card-del:hover { color: var(--danger); background: var(--danger-bg); }

.done-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

/* Dimmed and struck through as a plain visual fact ("this is done"), not a
   celebration — same restraint as the rest of the app's PDA-safe copy. */
.done-card { opacity: 0.65; }
.done-card > span:first-child { text-decoration: line-through; }

.add-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.add-form input,
.add-form select {
  flex: 1 1 8rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
}

.add-form button { flex: 0 0 auto; padding: 0.55rem 1rem; font-size: 0.85rem; }

/* ---------- focus mode ---------- */

.card-focus {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem; /* bumped from 0.2/0.3rem — a ~19px hit area is a mis-tap risk on a phone */
  border-radius: 6px;
  /* 0.7, not the old 0.55 — touch devices have no :hover reveal, so this needs
     to be legible at rest, not just on desktop mouseover. */
  opacity: 0.7;
}

.card-focus:hover { opacity: 1; background: var(--teal-bg); }

.focus-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 2rem 1.2rem;
}

/* The one screen that breaks from the rest of the app's density on purpose —
   subtraction, not an overlay. No dock, no chrome beyond the exit itself. */
.focus-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem;
  text-align: center;
  animation: focus-in 0.5s ease both;
}

.focus-exit {
  position: fixed;
  top: 1.4rem;
  left: 1.4rem;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.focus-exit:hover { color: var(--ink); background: var(--paper-2); }

.focus-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.focus-mission {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 26ch;
}

/* Deliberately quiet — the mission is the one bold thing on this screen, the
   capture bar is a small utility beneath it, not a second focal point. */
.focus-capture {
  width: 100%;
  max-width: 22rem;
}

@keyframes focus-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-screen { animation: none; }
}

/* ---------- pomodoro ---------- */

.pomodoro-display {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Money-move items get real visual weight, everything else stays quiet —
   "money-moves float to the top" made literal, not just sort order. */
.priority-card.money-move {
  background: var(--gold-bg);
  border-color: var(--gold-line);
  font-weight: 600;
}

.priority-card .tag {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Deliberately neutral, not colour-coded red/amber for urgency — a bright
   "alert" colour here would read as pressure, which is exactly what this
   app's badges are not supposed to do. Text label carries the distinction. */
.priority-card .tag-important,
.priority-card .tag-urgent {
  color: var(--ink-soft);
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.rating-label { font-size: 0.82rem; color: var(--ink-soft); }

.rating-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
  gap: 0.15rem;
}

.rating-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

.rating-btn.active { background: var(--teal); color: var(--paper); }

/* ---------- email triage — a real 2x2 quadrant, same language as the planning board ---------- */

.quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

@media (max-width: 420px) {
  .quadrant-grid { grid-template-columns: 1fr; }
}

.quadrant {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.quadrant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap; /* title + view-toggle stack instead of squeezing on narrow phones */
  gap: 0.4rem 0.6rem;
}

.label-group { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }

.quadrant-head .label { font-size: 0.85rem; font-weight: 600; }

/* Plain text, no emoji, no colour borrowed from the quadrant's own theme —
   states a fact about the match, doesn't compete for attention. */
.match-badge {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
}

/* ---------- energy check-in options ---------- */

.checkin-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}

.checkin-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.8rem 0.6rem;
  cursor: pointer;
  text-align: center;
  font-family: var(--sans);
}

.checkin-option.selected {
  border-color: var(--teal);
  background: var(--teal-bg);
}

.checkin-icon { font-size: 1.6rem; }
.checkin-label { font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.checkin-detail { font-size: 0.72rem; color: var(--ink-soft); }

.trend-sparkline { width: 100%; height: auto; display: block; }

.quadrant-head .count {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.quadrant.q-do { background: var(--green-bg); border-color: var(--green-line); }
.quadrant.q-do .label { color: var(--green); }
.quadrant.q-delegate { background: var(--amber-bg); border-color: var(--amber-line); }
.quadrant.q-delegate .label { color: var(--amber); }
.quadrant.q-delay { background: var(--purple-bg); border-color: var(--purple-line); }
.quadrant.q-delay .label { color: var(--purple); }
.quadrant.q-delete { background: var(--grey-bg); border-color: var(--grey-line); }
.quadrant.q-delete .label { color: var(--grey); }

.quadrant.q-quickwin { background: var(--gold-bg); border-color: var(--gold-line); }
.quadrant.q-quickwin .label { color: var(--gold); }
.quadrant.q-admin { background: var(--green-bg); border-color: var(--green-line); }
.quadrant.q-admin .label { color: var(--green); }
.quadrant.q-bigpush { background: var(--teal-bg); border-color: var(--teal-line); }
.quadrant.q-bigpush .label { color: var(--teal); }
.quadrant.q-wait { background: var(--grey-bg); border-color: var(--grey-line); }
.quadrant.q-wait .label { color: var(--grey); }

.priority-card { padding: 0.6rem 0.75rem; font-size: 0.85rem; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
  align-self: flex-start;
}

.view-toggle button {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.view-toggle button.active { background: var(--ink); color: var(--paper); }

.accent-swatches {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.accent-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch-colour);
  cursor: pointer;
  padding: 0;
}

.accent-swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--paper);
}

.email-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 2.4rem 0.6rem 0.75rem; /* right space reserved for the delete button's larger tap area */
}

.email-card .from { font-weight: 600; font-size: 0.85rem; }
.email-card .subject { color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.1rem; }
.email-card .age { color: var(--ink-faint); font-size: 0.72rem; margin-top: 0.25rem; }

/* email-card isn't a flex row (from/subject stack vertically), so its delete
   button is positioned instead of flex-pushed like priority-card's is. */
.email-card .card-del {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  margin-left: 0;
}

.quadrant-empty { font-size: 0.78rem; color: var(--ink-faint); font-style: italic; }

/* ---------- drag and drop — mouse + touch, one code path via Pointer Events ---------- */

.priority-card, .email-card {
  touch-action: none; /* stop the browser scrolling the page mid-drag on touch */
  cursor: grab;
  user-select: none;
}

.priority-card.dragging, .email-card.dragging {
  cursor: grabbing;
  box-shadow: var(--shadow-drag);
  opacity: 0.95;
}

.quadrant.drag-over {
  outline: 2px dashed var(--teal);
  outline-offset: 2px;
}

/* ---------- bottom dock ---------- */

/* Mobile: a single row grid — timer + the 4 real pages (Home, Priorities,
   Email, Settings) fit one row with real tap targets at phone widths.
   Desktop (media query below) switches back to a flex column rail, where
   there's height to spare instead. */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}

/* Direct-child combinator on purpose — `.dock button` (descendant) would
   also match the timer's two inner buttons (#dock-timer-toggle,
   .dock-timer-display), which are buttons nested inside .dock-timer, itself
   inside .dock. That would hand this rule's flex-direction/min-height/width
   to the timer's tiny pill buttons and break its compact layout. Only the
   4 nav buttons are actual direct children of .dock. */
.dock > button {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  min-height: 48px; /* real tap target, not just however tall the label happens to be */
  width: 100%;
  padding: 0.3rem 0.2rem;
  border-radius: 8px;
}

.dock > button .icon { font-size: 1.15rem; }

.dock > button.active { color: var(--teal); }

.dock-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 48px; /* matches the other dock cells' tap-target height */
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--teal-bg);
}

.dock-timer button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--teal);
}

#dock-timer-toggle { font-size: 0.85rem; }

.dock-timer-display {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

/* Desktop: the dock becomes a left rail instead of a bottom bar — same buttons,
   same order, just more room to show icon + full label side by side rather than
   the cramped icon-over-tiny-text stack mobile needs. One component, two shapes. */
@media (min-width: 768px) {
  .dock {
    display: flex; /* base is now a mobile grid — restore the rail's flex column */
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    height: auto;
    width: 180px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.3rem;
    padding: 2rem 0.75rem;
    border-top: none;
    border-right: 1px solid var(--line);
  }

  .dock > button {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    min-height: 0;
    width: auto;
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem;
    border-radius: 9px;
  }

  .dock > button.active { background: var(--paper-2); }

  .dashboard {
    margin: 0 0 0 180px;
    max-width: 36rem;
    padding: 2.2rem 2rem;
  }
}
