@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/geist-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/geist-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/geist-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/nunito-cyrillic-400.woff2") format("woff2"),
       url("/static/fonts/nunito-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/nunito-cyrillic.woff2") format("woff2"),
       url("/static/fonts/nunito-latin.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/nunito-cyrillic-700.woff2") format("woff2"),
       url("/static/fonts/nunito-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/nunito-cyrillic-800.woff2") format("woff2"),
       url("/static/fonts/nunito-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/nunito-cyrillic-700i.woff2") format("woff2"),
       url("/static/fonts/nunito-latin-700i.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/nunito-cyrillic-800i.woff2") format("woff2"),
       url("/static/fonts/nunito-latin-800i.woff2") format("woff2");
}

:root {
  --bg: #0b0a12;
  --ink: #f3ede6;
  --card: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: dark; }
body {
  font-family: Geist, Nunito, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
input, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(255,255,255,0.25); }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.font-note { font-family: Nunito, ui-rounded, system-ui, sans-serif; }

.app-shell { min-height: 100vh; background: #0b0a12; color: #f3ede6; }

/* rays */
.rays {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0a12;
}
.rays-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  filter: blur(48px);
  mix-blend-mode: screen;
  animation: rays-spin 60s linear infinite;
}
.ray-beam {
  position: absolute;
  left: 0; top: 0;
  margin-top: -11px;
  display: block;
  height: 22px;
  width: 48vmax;
  border-radius: 999px;
  transform-origin: 0 50%;
}
.ray-a { animation: ray-pulse-a var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
.ray-b { animation: ray-pulse-b var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
.ray-c { animation: ray-pulse-c var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
@keyframes rays-spin { to { transform: rotate(1turn); } }
@keyframes ray-pulse-a {
  0% { transform: scaleX(.5); opacity: .4; }
  20% { transform: scaleX(1); opacity: .95; }
  38% { transform: scaleX(.3); opacity: .3; }
  55% { transform: scaleX(.78); opacity: .78; }
  100% { transform: scaleX(.5); opacity: .4; }
}
@keyframes ray-pulse-b {
  0% { transform: scaleX(.4); opacity: .35; }
  28% { transform: scaleX(1); opacity: .9; }
  52% { transform: scaleX(.25); opacity: .25; }
  100% { transform: scaleX(.4); opacity: .35; }
}
@keyframes ray-pulse-c {
  0% { transform: scaleX(.7); opacity: .7; }
  40% { transform: scaleX(1); opacity: 1; }
  70% { transform: scaleX(.45); opacity: .4; }
  100% { transform: scaleX(.7); opacity: .7; }
}
.blob {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  mix-blend-mode: screen;
}
.blob-rot { width: 40vmin; height: 40vmin; animation: blob-rot 26s linear infinite; }
.blob-morph {
  width: 100%; height: 100%;
  filter: blur(16px);
  animation: blob-morph 14s ease-in-out infinite alternate;
}
@keyframes blob-rot { to { transform: rotate(1turn); } }
@keyframes blob-morph {
  0% { border-radius: 60% 40% 52% 48% / 56% 52% 48% 44%; transform: scale(.92); }
  50% { border-radius: 44% 56% 38% 62% / 50% 44% 56% 50%; transform: scale(1.12); }
  100% { border-radius: 54% 46% 62% 38% / 46% 56% 44% 54%; transform: scale(.98); }
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(34% 30% at 50% 46%, rgba(8,7,14,0.72), transparent 70%);
}

.chrome-left {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}
.chrome-right {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: env(safe-area-inset-top);
}
.lang {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #15121d;
  padding: 2px;
}
.lang button {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}
.lang button.on { background: rgba(255,255,255,0.1); color: #fff; }
.gear-btn {
  display: grid;
  width: 56px; height: 56px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #15121d;
  color: rgba(255,255,255,0.7);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.gear-btn:hover { background: #1e1a29; }
.gear-btn svg { width: 24px; height: 24px; }

.timer-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.phase-tabs {
  position: absolute;
  top: 4.5rem;
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.phase-tabs button {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.phase-tabs button.active { background: rgba(255,255,255,0.2); color: #fff; }

.ring-wrap {
  position: relative;
  width: min(292px, 78vw);
  height: min(292px, 78vw);
  display: grid;
  place-items: center;
  transform: translateY(-56px);
}
.ring-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-inner { position: relative; z-index: 10; text-align: center; display: grid; place-items: center; }
.pomo-num {
  font-weight: 600;
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  padding: 2px 6px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.pomo-num:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.pomo-num input { width: 48px; text-align: center; padding: 2px 4px; font-variant-numeric: tabular-nums; }
.time {
  font-family: Nunito, ui-rounded, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(56px, 14vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.focus-title {
  margin-top: 8px;
  max-width: 70vw;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-sub { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.4); }

.timer-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 120px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (min-width: 640px) {
  .timer-controls { transform: translate(-50%, 154px); }
}
.ctrl-row { display: flex; align-items: center; gap: 12px; }
.btn-start {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff;
  color: #0b0a12;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.btn-start:active { transform: scale(0.95); }
.btn-round {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.btn-round:hover { background: rgba(255,255,255,0.1); }
.length-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.chip:hover { color: #fff; }
.chip.active { background: rgba(255,255,255,0.12); color: #fff; }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  color: rgba(255,255,255,0.55);
  animation: bounce 1.4s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 72rem;
  padding: 0 16px;
}
.tabbar {
  display: flex;
  width: 100%;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  padding: 4px;
  margin-top: 40px;
}
.tabbar button {
  flex: 1;
  border-radius: 999px;
  padding: 10px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.tabbar button.active { background: rgba(255,255,255,0.9); color: #0b0a12; }
.tabbar button:not(.active):hover { color: rgba(255,255,255,0.9); }

.mode-tabs {
  display: inline-flex;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  padding: 4px;
  margin: 0 0 16px;
}
.mode-tabs button {
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.mode-tabs button.active { background: rgba(255,255,255,0.9); color: #0b0a12; }

.h-note {
  font-family: Nunito, ui-rounded, sans-serif;
  font-weight: 700;
}
.h2 { font-size: 18px; margin: 0; }
.h1 { font-size: 30px; margin: 0 0 4px; }
.muted { color: rgba(255,255,255,0.45); font-size: 14px; }
.faint { color: rgba(255,255,255,0.35); font-size: 12px; }
.space { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* blobs */
.blob-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 4px;
  scrollbar-width: none;
}
.blob-row::-webkit-scrollbar { display: none; }
.blob-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  outline: none;
}
.blob-orb {
  display: grid;
  width: 96px; height: 96px;
  place-items: center;
  border-radius: 999px;
  transition: transform .3s;
}
@media (max-width: 640px) {
  .blob-orb { width: 80px; height: 80px; }
  .blob-orb svg { width: 28px !important; height: 28px !important; }
}
.blob-item:hover .blob-orb { transform: scale(1.05); }
.blob-item:active .blob-orb { transform: scale(0.95); }
.blob-orb svg { width: 36px; height: 36px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.blob-orb.dashed {
  border: 2px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.45);
}
.blob-orb.dashed svg { color: inherit; filter: none; }
.blob-item:hover .blob-orb.dashed {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}
.blob-name { font-size: 14px; color: rgba(255,255,255,0.55); }
.blob-item.on .blob-name { color: #fff; font-weight: 600; }

.task-strip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  scrollbar-width: none;
}
.task-chip {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 6px 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.task-chip.on {
  border-color: transparent;
  background: #fff;
  color: #0b0a12;
  font-weight: 500;
}
.para-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.para-btn.on { background: #fff; color: #0b0a12; }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 20px;
}
.card-lg { padding: 24px; border-radius: 24px; }

.home-grid {
  display: grid;
  gap: 20px;
  padding: 48px 0 80px;
}
@media (min-width: 768px) {
  .home-grid { grid-template-columns: 280px 1fr; }
}
.journal-grid {
  display: grid;
  gap: 16px;
  align-items: start;
  padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .journal-grid { grid-template-columns: minmax(0,1fr) 300px; }
}

.sqs { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.sq {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; font-size: 11px; color: rgba(255,255,255,0.4); }
.legend i {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11px; color: rgba(255,255,255,0.35); padding: 6px 0; }
.cal-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.cal-day:hover { background: rgba(255,255,255,0.06); }
.cal-day.selected { background: #fff; color: #0b0a12; font-weight: 700; }
.cal-day.other { color: rgba(255,255,255,0.22); }
.cal-day .heat {
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
}

.block-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.block-row .stripe { width: 4px; border-radius: 4px; flex-shrink: 0; }
.q-badge {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2px 6px;
}
.week-row { margin-bottom: 16px; }
.week-bar {
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  overflow: hidden;
  position: relative;
}
.week-bar .seg { height: 100%; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8,7,14,0.72);
  display: grid;
  place-items: end center;
  padding: 16px;
}
@media (min-width: 640px) { .overlay { place-items: center; } }
.modal {
  width: min(440px, 100%);
  background: #16131c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 20px;
  max-height: 90vh;
  overflow: auto;
}
.modal h3 { margin: 0 0 8px; font-family: Nunito, sans-serif; font-size: 18px; font-weight: 700; }
.q-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.q-grid button {
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
}
.q-grid button.on { background: #fff; color: #0b0a12; font-weight: 700; border-color: #fff; }
.btn-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.btn-ghost { padding: 8px 16px; border-radius: 12px; color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-solid {
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  color: #0b0a12;
  font-weight: 600;
}
.btn-danger { color: #e0556e; }

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0b0a12;
}
body.settings-lock { overflow: hidden; }
.settings-inner { margin: 0 auto; width: 100%; max-width: 42rem; padding: 32px 16px 80px; }
.back-round {
  display: grid;
  width: 36px; height: 36px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-row .sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-card, .onboard-card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  text-align: center;
}
.login-card h1, .onboard-card h1 {
  font-family: Nunito, ui-rounded, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 42px;
  margin: 0 0 8px;
}
.login-card p { color: rgba(255,255,255,0.55); margin: 0 0 24px; }
.login-card form { display: grid; gap: 12px; }
.login-card input { text-align: center; font-size: 18px; }
.masked { -webkit-text-security: disc; text-security: disc; }
.auth-switch { display: block; margin: 16px auto 0; background: none; border: none; cursor: pointer; }
.pw-form { display: grid; gap: 10px; margin-top: 12px; text-align: left; }
.err { color: #f87171; font-size: 13px; min-height: 1.2em; }
.skip {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 3;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
}
.dots { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dots span.on { background: #fff; }
.preset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  text-align: left;
  width: 100%;
  margin-bottom: 8px;
}
.preset.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days button {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.days button.on { background: #fff; color: #0b0a12; font-weight: 700; border-color: #fff; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-row button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; }
.color-row button.on { border-color: #fff; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 160px;
  overflow: auto;
}
.icon-grid button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
}
.icon-grid button.on { background: #fff; color: #0b0a12; }
.icon-grid svg { width: 18px; height: 18px; }

.insight {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  line-height: 1.45;
}
.prose { line-height: 1.65; color: rgba(243,237,230,0.82); font-size: 15px; }
.prose h1 { font-family: Nunito, sans-serif; font-size: 32px; font-weight: 800; color: #fff; }
.prose h2 { margin-top: 28px; font-size: 20px; color: #fff; }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px dashed rgba(255,255,255,0.2);
}
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: #1b1726;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
}
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: rgba(255,255,255,0.45);
}
.icon-btn:hover { color: #fff; }
.icon-btn svg { width: 16px; height: 16px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.ghost { color: rgba(255,255,255,0.45); font-size: 13px; }
.area-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.area-chip.selected { background: color-mix(in srgb, var(--c) 28%, transparent); border-color: var(--c); }

/* === fidelity pass === */
.gear-btn { position: relative; width: 44px; height: 44px; }
.gear-btn svg { width: 20px; height: 20px; }
.notif-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #15121d;
}
.ring-wrap { transform: translateY(-28px); }
.ring-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
  filter: blur(2px);
}
.btn-start svg { width: 16px; height: 16px; }
.phase-pill {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
}
.tabbar {
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(18,16,26,0.82);
  max-width: 896px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.focus-section { padding-top: 36px; }
.blob-add-wrap { position: relative; flex-shrink: 0; }
.nudge {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-30%);
  width: 260px;
  z-index: 20;
  background: #1a1626;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  text-align: left;
}
.nudge p { margin: 6px 0 0; font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.nudge-title { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.nudge-title svg { width: 14px; height: 14px; color: #e8915a; }
.nudge-x {
  position: absolute;
  top: 8px; right: 8px;
  color: rgba(255,255,255,0.4);
}
.nudge-x svg { width: 14px; height: 14px; }
.task-add {
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,0.22);
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.para-btn { border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; }
.para-btn svg { width: 14px; height: 14px; }

.journal-wrap { padding-top: 28px; padding-bottom: 80px; }
.journal-sub { margin: 0 0 18px; }
.day-card .day-date { font-size: 18px; }
.day-stats { color: rgba(255,255,255,0.45); font-size: 13px; margin-bottom: 16px; }
.empty-day { margin: 24px 0; text-align: center; }
.add-block-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.add-block-btn:hover { background: rgba(255,255,255,0.04); }
.cal-card { padding: 16px; }
.cal-hint { margin: 10px 0 0; font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.35; }
.cal-day.in-week { background: rgba(255,255,255,0.05); }
.cal-day.selected { border-radius: 999px; }

.week-chart { position: relative; padding-top: 18px; min-height: 220px; }
.week-chart-limit {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px dashed rgba(255,255,255,0.28);
  pointer-events: none;
}
.week-chart-limit span {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.week-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding-top: 8px;
  overflow-x: auto;
}
.week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 36px;
}
.week-col-bar {
  width: 100%;
  max-width: 42px;
  border-radius: 8px 8px 4px 4px;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
}
.week-seg { width: 100%; display: block; }
.week-col-label { font-size: 10px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.week-col.cur .week-col-label { color: #fff; font-weight: 600; }
.week-chart-foot { margin-top: 16px; align-items: flex-end; }
.week-chart-foot .over { color: #f87171; }

.month-week-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.month-week-range { font-size: 14px; font-weight: 500; }
.month-week-dots { display: flex; gap: 4px; margin-top: 6px; }
.month-week-dots span { height: 8px; border-radius: 4px; display: inline-block; }

.insights-card { margin-top: 20px; }

.complete-modal { padding: 22px; }
.complete-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.complete-check {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #7A6BE0;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.complete-check svg { width: 18px; height: 18px; }
.complete-title { font-weight: 700; font-size: 16px; }
.complete-meta { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.split-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.split-btn svg { width: 14px; height: 14px; }
.energy-label { margin: 14px 0 8px; font-size: 12px; }
.btn-solid.pill { border-radius: 999px; padding: 10px 22px; }

.hex-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.icon-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0 12px;
}
.icon-search svg { width: 16px; height: 16px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.icon-search input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 10px 0;
}
.stepper.big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
}
.stepper.big button {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  font-size: 18px;
}
.stepper.big span { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }

.settings-card { margin-bottom: 16px; }
.settings-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.notif-blocked {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.notif-blocked svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }
.linkish {
  margin-top: 6px;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  font-size: 13px;
}
.theme-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.theme-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.theme-toggle button.on { background: #fff; color: #0b0a12; font-weight: 600; }
.theme-toggle button svg { width: 14px; height: 14px; }
.break-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px 4px 4px;
}
.break-input input {
  width: 52px;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 6px;
  font-variant-numeric: tabular-nums;
}
.break-input span { font-size: 13px; color: rgba(255,255,255,0.45); }

.modal label.muted { display: block; font-size: 12px; }
.cat-modal, .task-modal, .complete-modal { width: min(460px, 100%); }

@media (min-width: 1024px) {
  .journal-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
}
.squares { display: flex; flex-wrap: wrap; gap: 4px; }
.squares .sq { width: 14px; height: 14px; border-radius: 4px; border: 0; }
.scroll-hint svg { width: 28px; height: 28px; opacity: 0.55; }
.scroll-hint { bottom: 72px; }
.timer-screen .tabbar { /* not inside */ }
.btn-start svg { width: 18px; height: 18px; flex-shrink: 0; }
#ring svg { overflow: visible; }

.add-block-btn svg { width: 18px; height: 18px; }
.gear-btn { width: 44px; height: 44px; }
.gear-btn svg { width: 20px; height: 20px; }


/* === UI2 fidelity pass === */
.phase-tabs {
  position: absolute;
  top: 4.2rem;
  left: 0; right: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.phase-tabs button {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  background: transparent;
}
.phase-tabs button.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.ring-wrap svg { overflow: visible; }
.ring-inner { z-index: 2; }

.settings-inner { max-width: 36rem; padding: 24px 16px 72px; }
.settings-card { margin-bottom: 12px; padding: 14px 16px; }
.settings-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-card h3 svg { width: 14px; height: 14px; opacity: 0.7; }
.settings-card .muted { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.55); }
.settings-card .faint { margin: 0; font-size: 12px; color: rgba(255,255,255,0.38); line-height: 1.4; }
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.settings-row.bare,
.settings-row.bare { border-bottom: 0; padding-bottom: 0; }
.settings-row.bare + .settings-row.bare { padding-top: 10px; }

.dir-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dir-head h3 { margin: 0; }
.add-pill {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.dir-list { display: flex; flex-direction: column; }
.dir-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  height: 50px;
  overflow: hidden;
}
.dir-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.dir-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}
.dir-text { flex: 1; min-width: 0; }
.dir-name { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.2; }
.dir-sub { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 2px; line-height: 1.2; }
.dir-edit { margin-left: auto; width: 32px; height: 32px; color: rgba(255,255,255,0.55); }
.dir-edit svg { width: 16px; height: 16px; }

.settings-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
  padding: 12px 16px;
}
.pro-pepe {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3a5a2a, #1e2a18);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}
.chev { color: rgba(255,255,255,0.35); display: grid; place-items: center; }
.chev svg { width: 18px; height: 18px; }

.pro-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #3dd68c;
  color: #0b0a12;
}

.field-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 10px 0 6px;
}
.field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.field:disabled { opacity: 0.7; }
.btn-solid {
  margin-top: 12px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  background: #fff;
  color: #0b0a12;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 14px;
}
.btn-solid:disabled {
  opacity: 1;
  cursor: not-allowed;
  filter: none;
}
.btn-ghost.stub-btn:disabled,
.stub-btn:disabled:not(.btn-solid) { opacity: 0.55; cursor: not-allowed; }
.btn-solid svg { width: 16px; height: 16px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.btn-ghost svg { width: 16px; height: 16px; }
.warn-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #e8b84a;
}
.support-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.support-id {
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.settings-backup { opacity: 0.92; }

.theme-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.theme-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.theme-toggle button.on { background: #fff; color: #0b0a12; font-weight: 600; }
.theme-toggle button:disabled { opacity: 0.55; cursor: not-allowed; }
.theme-toggle button svg { width: 14px; height: 14px; }

.guest-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 140, 60, 0.45);
  background: rgba(232, 140, 60, 0.12);
  color: rgba(255, 220, 180, 0.92);
  font-size: 13px;
  line-height: 1.4;
}
.journal-wrap { padding-top: 24px; }
.journal-sub { margin: 0 0 14px; }
.mode-tabs-full {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
}
.mode-tabs-full button { flex: 1; text-align: center; }

.task-item svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

/* tone down purple rays a bit */
.blob-morph { opacity: 0.78; }

.break-field { display:inline-flex; align-items:center; gap:8px; }
.break-field input { width:52px; height:27px; text-align:center; border-radius:8px; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.04); padding:0 6px; font-variant-numeric:tabular-nums; font-size:13px; color:#fff; }
.break-field span { font-size:13px; color:rgba(255,255,255,0.45); }

.notif-flat { display:flex; gap:10px; margin-top:12px; color:rgba(255,255,255,0.55); font-size:13px; align-items:flex-start; }
.notif-flat svg { width:18px; height:18px; flex-shrink:0; opacity:0.7; margin-top:2px; }

.ring-glow { background: radial-gradient(circle at 50% 55%, rgba(255,255,255,0.10), transparent 65%) !important; opacity: 0.65; filter: blur(1px); }
.blob-morph { opacity: 0.72; }

.wrap > .tabbar, .tabbar {
  width: 100%;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}

.notif-flat { background: transparent !important; border: 0 !important; padding: 0 !important; margin-top: 10px; }
.wrap > .tabbar { max-width: 896px; }


/* === UI3 timer fidelity (match original) === */
.phase-tabs {
  position: absolute;
  top: 3.6rem;
  left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}
.phase-tabs button {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  background: transparent;
}
.phase-tabs button.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.ring-wrap {
  position: relative;
  width: min(352px, 82vw);
  height: min(352px, 82vw);
  display: grid;
  place-items: center;
  transform: translateY(-36px);
}
.ring-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Neutral, tight center glow — not large purple */
.ring-glow {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 52%, rgba(210,210,218,0.16), rgba(160,160,170,0.06) 42%, transparent 70%) !important;
  pointer-events: none;
  filter: blur(2px);
  opacity: 1 !important;
}

.ring-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ring-inner .pomo-num,
.ring-inner .focus-title,
.ring-inner .focus-sub {
  pointer-events: auto;
}

.pomo-num {
  position: absolute;
  left: 50%;
  top: calc(50% - 58px);
  transform: translate(-50%, -100%);
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  padding: 2px 6px;
  border-radius: 8px;
}

.time {
  position: absolute;
  left: 50%;
  top: 50%;
  /* optical italic center */
  transform: translate(-50%, calc(-50% - 6px));
  font-family: Nunito, ui-rounded, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 96px;
  letter-spacing: -2.4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f3ede6;
}

.focus-title {
  position: absolute;
  left: 50%;
  top: calc(50% + 52px);
  transform: translateX(-50%);
  margin: 0;
  max-width: 70vw;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-sub {
  position: absolute;
  left: 50%;
  top: calc(50% + 74px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.timer-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 214px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px; /* +13px vs prior 14px */
}
@media (min-width: 640px) {
  .timer-controls { transform: translate(-50%, 226px); }
}

.btn-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  background: #fff;
  color: #0b0a12;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 2px 6px rgba(0,0,0,0.22);
}
.btn-start svg { width: 16px; height: 16px; flex-shrink: 0; }

.length-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  background: transparent;
}
.chip:hover { color: #fff; }
.chip.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 500;
}

/* Soften category purple blob behind timer so center read is gray */
.timer-screen .blob-morph { opacity: 0.28; filter: saturate(0.55) blur(18px); }
.timer-screen .vignette {
  background: radial-gradient(32% 28% at 50% 46%, rgba(8,7,14,0.78), transparent 72%);
}


/* Tabbar sits inside timer hero — not sticky/fixed below the fold */
.timer-screen > .tabbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 35;
  width: min(896px, calc(100% - 32px));
  max-width: 896px;
  margin: 0;
  margin-top: 0;
  box-sizing: border-box;
}
.timer-screen .scroll-hint {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
/* kill earlier sticky that pulled tabbar out of place */
.tabbar {
  position: relative;
  top: auto;
  margin-top: 0;
  margin-bottom: 0;
}
