/* ============================================================
   Lillio Pause: stylesheet
   Brand pulled from lillio.com.
   Coral #f76363  Gold #bc8d16  Mint #5dba8d  Cream #fff0c2
   Light + dark themes via [data-theme] on <html>.
   ============================================================ */

:root[data-theme="light"], :root {
  /* brand */
  --coral:        #f76363;
  --coral-dark:   #e14a4a;
  --coral-soft:   #fdd0d0;
  --coral-tint:   #fff5f5;
  --gold:         #bc8d16;
  --gold-soft:    #fff0c2;
  --mint:         #5dba8d;
  --mint-soft:    #d1f0e0;
  --teal:         #1ad1d1;

  /* surfaces & lines */
  --bg:           #fafaf7;
  --surface-1:    #ffffff;
  --surface-2:    #fbfaf7;
  --surface-3:    #f3f1ec;
  --line:         #e8e6e0;
  --line-soft:    #efedea;

  /* ink (text) */
  --ink:          #1a1a1a;
  --ink-2:        #313131;
  --ink-3:        #555;
  --ink-4:        #6b6b6b;
  --ink-5:        #8a8a8a;
  --ink-6:        #b0b0b0;
  --ink-7:        #d4d4d4;

  /* shadows */
  --shadow-1:     0 1px 2px rgba(20,20,20,0.04), 0 2px 8px rgba(20,20,20,0.04);
  --shadow-2:     0 4px 12px rgba(20,20,20,0.06), 0 8px 24px rgba(20,20,20,0.05);
  --shadow-3:     0 8px 28px rgba(20,20,20,0.08), 0 16px 48px rgba(20,20,20,0.06);

  /* category accents (used in welcome cards, hover etc.) */
  --accent-1: var(--coral);
  --accent-2: var(--gold);
  --accent-3: #2b8e60;
  --accent-4: #2c8e8e;

  /* tag bg/fg */
  --tag-yt-bg: var(--coral-soft);
  --tag-yt-fg: #a33333;
  --tag-sp-bg: var(--mint-soft);
  --tag-sp-fg: #1f6b48;

  /* welcome cta gradient */
  --welcome-grad: linear-gradient(135deg, var(--coral-tint) 0%, var(--mint-soft) 100%);
  --timer-grad:   linear-gradient(160deg, var(--surface-1) 0%, var(--coral-tint) 100%);
}

:root[data-theme="dark"] {
  /* brand: same hues, slightly tweaked for dark backgrounds */
  --coral:        #ff7a7a;
  --coral-dark:   #ff5e5e;
  --coral-soft:   #4a2929;
  --coral-tint:   #2a1818;
  --gold:         #d9a838;
  --gold-soft:    #3a2f0c;
  --mint:         #7ed4a3;
  --mint-soft:    #1d3a2a;
  --teal:         #38d9d9;

  --bg:           #0f1011;
  --surface-1:    #1a1c1e;
  --surface-2:    #1e2022;
  --surface-3:    #25282b;
  --line:         #2c2f33;
  --line-soft:    #232629;

  --ink:          #f4f4f4;
  --ink-2:        #e2e2e2;
  --ink-3:        #c4c4c4;
  --ink-4:        #a8a8a8;
  --ink-5:        #888888;
  --ink-6:        #6a6a6a;
  --ink-7:        #4a4a4a;

  --shadow-1:     0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-2:     0 4px 12px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-3:     0 8px 28px rgba(0,0,0,0.6), 0 16px 48px rgba(0,0,0,0.4);

  --accent-1: var(--coral);
  --accent-2: var(--gold);
  --accent-3: var(--mint);
  --accent-4: var(--teal);

  --tag-yt-bg: rgba(255,122,122,0.18);
  --tag-yt-fg: #ff9a9a;
  --tag-sp-bg: rgba(126,212,163,0.18);
  --tag-sp-fg: #9be0b8;

  --welcome-grad: linear-gradient(135deg, rgba(255,122,122,0.10) 0%, rgba(126,212,163,0.10) 100%);
  --timer-grad:   linear-gradient(160deg, var(--surface-1) 0%, rgba(255,122,122,0.10) 100%);
}

/* layout tokens */
:root {
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-pill:  999px;
  --sidebar-w:    264px;
  --content-max:  1240px;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }
button { font-family: inherit; }

/* invert the Lillio wordmark in dark mode (it's a dark-on-transparent SVG) */
:root[data-theme="dark"] .brand-logo,
:root[data-theme="dark"] .mobile-brand img { filter: brightness(0) invert(0.92); }

/* ============== LAYOUT ============== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ============== SIDEBAR ============== */
.sidebar {
  background: var(--surface-1);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  transition: background-color .25s ease, border-color .25s ease;
}
.sidebar-inner {
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 18px; gap: 8px; }
.brand-block { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; transition: filter .25s ease; }
.pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}
.pill-mini { font-family: var(--font-display); font-size: 11px; font-weight: 600; color: var(--gold); background: var(--gold-soft); padding: 2px 8px; border-radius: var(--radius-pill); }

/* theme toggle button */
.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.theme-toggle:hover { background: var(--surface-3); color: var(--ink); border-color: var(--coral); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .theme-sun { display: none; }
.theme-toggle .theme-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }

/* search */
.search-wrap { position: relative; margin-bottom: 18px; }
.search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search-wrap input::placeholder { color: var(--ink-5); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--surface-1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 18%, transparent);
}
.search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--ink-5); pointer-events: none;
}
.search-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
}

/* nav */
.nav { display: flex; flex-direction: column; gap: 1px; margin-bottom: 18px; }
.nav-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-5);
  padding: 14px 8px 6px;
}
.nav-item {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: var(--surface-3); color: var(--ink); }
.nav-item.active {
  background: var(--coral-tint);
  color: var(--coral);
}
.nav-emoji { font-size: 16px; line-height: 1; }
.nav-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-5);
  font-weight: 600;
  background: var(--surface-3);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}
.nav-item.active .nav-count { background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--coral); }

/* sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* ----- Slack card (with reasons) ----- */
.slack-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slack-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13.5px;
}
.slack-card-head svg { color: #4A154B; flex-shrink: 0; }
:root[data-theme="dark"] .slack-card-head svg { color: #e0a4e3; }
.slack-card-head strong { font-weight: 600; }
.slack-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.5;
}
.slack-reasons li {
  position: relative;
  padding: 2px 0 2px 14px;
}
.slack-reasons li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 700;
  color: var(--coral);
}
.slack-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #4A154B;
  color: #fff !important;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
.slack-cta:hover { background: #611f64; color: #fff !important; }
.slack-cta:active { transform: scale(0.98); }
.footer-text {
  font-size: 11.5px;
  color: var(--ink-5);
  padding: 0 4px;
}

/* ============== MAIN ============== */
.main {
  padding: 40px 48px 80px;
  max-width: var(--content-max);
}
.section { display: none; }
.section.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head { margin-bottom: 32px; }
.section-title {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--ink-3);
  font-size: 16px;
  margin: 0;
  max-width: 680px;
}
.block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-family: var(--font-display);
}

/* mood pills */
.mood-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mood-pill {
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--ink-3);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.mood-pill:hover { background: var(--surface-3); color: var(--ink); }
.mood-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}
.card-media { position: relative; width: 100%; background: var(--surface-3); transition: aspect-ratio .25s ease; }
.card-media.video { aspect-ratio: 16 / 9; }
.card-media.audio { min-height: 152px; }
.card-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-media.audio iframe { position: relative; height: 152px; }

/* YouTube lazy-load: play overlay shown until clicked */
.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--surface-3);
  cursor: pointer;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
}
.play-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter .2s ease, transform .35s ease;
}
:root[data-theme="dark"] .play-thumb { filter: brightness(0.65); }
.play-overlay:hover .play-thumb { filter: brightness(0.95); transform: scale(1.02); }
:root[data-theme="dark"] .play-overlay:hover .play-thumb { filter: brightness(0.78); }
.play-thumb-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--coral-tint) 0%, var(--mint-soft) 100%);
}
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease;
}
.play-overlay:hover .play-icon { background: var(--coral-dark); transform: translate(-50%, -50%) scale(1.06); }
.play-overlay:active .play-icon { transform: translate(-50%, -50%) scale(0.96); }
.play-icon svg { margin-left: 3px; }

/* YouTube audio mode (default after iframe loads): compact controls only.
   Only applies when card-media is NOT in the .lazy (play overlay) state. */
.card-media.yt-mode-audio:not(.lazy) {
  aspect-ratio: auto;
  height: 152px;
  overflow: hidden;
}
.card-media.yt-mode-audio:not(.lazy) iframe {
  position: relative;
  height: 100%;
  width: 100%;
  /* show only the bottom controls bar by translating the video off-screen */
  transform: translateY(-32%);
  transform-origin: bottom;
  pointer-events: auto;
}

/* YouTube video mode (after toggle): full 16:9 */
.card-media.yt-mode-video {
  aspect-ratio: 16 / 9;
  height: auto;
}
.card-media.yt-mode-video iframe {
  position: absolute;
  inset: 0;
  transform: none;
}

/* Video / Audio toggle in card meta */
.video-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-4);
  padding: 3px 9px 3px 7px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.video-toggle:hover { color: var(--coral); border-color: var(--coral); background: var(--coral-tint); }
.video-toggle:active { transform: scale(0.96); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}
.card-title-text { flex: 1; }
.fav-btn {
  background: transparent;
  border: 0;
  color: var(--ink-6);
  cursor: pointer;
  padding: 2px;
  margin: -2px;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  transition: color .15s ease, transform .1s ease;
  flex-shrink: 0;
}
.fav-btn:hover { color: var(--coral); }
.fav-btn:active { transform: scale(0.9); }
.fav-btn.is-fav { color: var(--coral); }
.card-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--ink-4); margin-top: auto;
}
.tag {
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 11px;
  font-family: var(--font-body); letter-spacing: 0.01em;
}
.tag.spotify { background: var(--tag-sp-bg); color: var(--tag-sp-fg); }
.tag.youtube { background: var(--tag-yt-bg); color: var(--tag-yt-fg); }
.tag.soundcloud { background: rgba(255, 119, 0, 0.14); color: #d35400; }
:root[data-theme="dark"] .tag.soundcloud { background: rgba(255, 119, 0, 0.18); color: #ff9646; }
.tag.audio { background: color-mix(in srgb, var(--mint) 22%, transparent); color: #2e9b6c; }
:root[data-theme="dark"] .tag.audio { background: color-mix(in srgb, var(--mint) 24%, transparent); color: var(--mint); }

/* Hosted audio (HTML5 <audio>): direct MP3 with cover artwork */
.card-media.hosted-audio {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.hosted-audio-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
  z-index: 0;
}
.hosted-audio-art::after {
  /* subtle vignette so the audio bar reads cleanly */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hosted-audio-art-fallback {
  background: linear-gradient(135deg, var(--coral-tint) 0%, var(--mint-soft) 100%);
}
:root[data-theme="dark"] .hosted-audio-art-fallback {
  background: linear-gradient(135deg, rgba(255,122,122,0.18) 0%, rgba(126,212,163,0.18) 100%);
}
.hosted-audio-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: block;
}
:root[data-theme="dark"] .hosted-audio-player {
  background: rgba(20,20,22,0.78);
  filter: invert(0.88) hue-rotate(180deg);
}
.duration { color: var(--ink-5); font-weight: 500; }

/* welcome cards */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.welcome-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
  transition: transform .15s ease, box-shadow .2s ease;
}
.welcome-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.welcome-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-1);
  margin-bottom: 8px;
}
.welcome-grid .welcome-card:nth-child(2) .welcome-num { color: var(--accent-2); }
.welcome-grid .welcome-card:nth-child(3) .welcome-num { color: var(--accent-3); }
.welcome-grid .welcome-card:nth-child(4) .welcome-num { color: var(--accent-4); }
.welcome-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.welcome-card p { margin: 0; font-size: 14.5px; color: var(--ink-3); }
.welcome-cta {
  background: var(--welcome-grad);
  border: 1px solid var(--coral-soft);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  text-align: center;
  color: var(--ink);
}
.welcome-cta p { margin: 0; font-size: 14.5px; }
.welcome-cta a { font-weight: 600; }

/* empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-4); }
.empty-emoji { font-size: 36px; margin-bottom: 12px; opacity: 0.6; }
.empty-state h3 { color: var(--ink-2); margin-bottom: 6px; font-size: 18px; }
.empty-state p { margin: 0 auto; font-size: 14.5px; max-width: 400px; }

/* timer */
.timer-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 880px) { .timer-wrap { grid-template-columns: 440px 1fr; } }
.timer-card {
  background: var(--timer-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.timer-mode {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.timer-display {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
.timer-cycle { font-size: 13px; color: var(--ink-4); margin-bottom: 22px; }
.timer-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-secondary {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--ink-7);
}
.btn-secondary:hover { border-color: var(--coral); color: var(--coral); }

.timer-config {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.timer-config h3 {
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--ink-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.config-row {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.config-row:last-of-type { border-bottom: none; }
.config-row label { font-size: 14px; color: var(--ink-2); }
.config-row input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  background: var(--surface-2);
  color: var(--ink-2);
}
.config-row input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent);
  background: var(--surface-1);
}
.config-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.config-checkbox input { transform: scale(1.1); accent-color: var(--coral); }

/* mobile */
.mobile-bar { display: none; }
.sidebar-backdrop { display: none; }
.theme-toggle-mobile { margin-left: auto; }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 60;
  }
  .mobile-menu-btn {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    color: var(--ink-2);
    cursor: pointer;
  }
  .mobile-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .mobile-brand img { height: 24px; }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    transition: left .25s ease;
    box-shadow: var(--shadow-3);
  }
  .sidebar.open { left: 0; }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 49;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .main { padding: 24px 20px 60px; }
  .section-title { font-size: 26px; }
  .timer-display { font-size: 72px; }
  .timer-card { padding: 28px 22px; }
}

/* hide kbd on small screens */
@media (max-width: 700px) { .search-kbd { display: none; } }

::selection { background: var(--coral-soft); color: var(--ink); }
