:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-2: #10131a;
  --ink: #f4f1e8;
  --muted: #9aa2b2;
  --faint: #6d7584;
  --line: rgba(244, 241, 232, 0.12);
  --line-strong: rgba(244, 241, 232, 0.22);
  --acid: #e2f070;
  --acid-ink: #16190c;
  --danger: #ff8d7a;
  --ok: #9be7c4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 18px;
  --hue: 72;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-padding-top: 92px; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at -10% -10%, rgba(226, 240, 112, 0.09), transparent 55%),
    radial-gradient(700px 480px at 110% 0%, rgba(120, 162, 255, 0.08), transparent 50%),
    linear-gradient(rgba(244, 241, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--acid);
  color: var(--acid-ink);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.boot, .login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
}
.boot p {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 42px;
  margin: 0;
}

.login {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.hero, .panel, .search, .layout, .top, main { min-width: 0; }
.hero h1, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
  font-size: clamp(76px, 10vw, 128px);
  margin: 0;
}
.lede {
  max-width: 38ch;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  margin: 22px 0 0;
}
.orbit-art { width: min(420px, 100%); margin-top: 28px; }
.orbit-art .spin { transform-origin: 210px 210px; animation: spin 48s linear infinite; }
.orbit-art .pulse { transform-origin: 330px 108px; animation: pulse 3.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.45; } }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.panel h2 {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}
.panel .sub { color: var(--muted); margin: 0 0 22px; }
label { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  min-width: 0;
  background: #08090d;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 14px;
  outline: none;
}
textarea { min-height: 140px; max-height: 320px; resize: vertical; line-height: 1.5; overflow: auto; }
button, a, input, textarea, .task, .focus-card, .result { scroll-margin-top: 100px; }
input:focus, textarea:focus, select:focus { border-color: var(--acid); }
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #08090d inset;
}
.btn, button.primary {
  background: var(--acid);
  color: var(--acid-ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}
.btn.ghost, button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
}
.btn.danger, button.danger { color: var(--danger); border-color: rgba(255, 141, 122, 0.45); }
.btn.wide { width: 100%; padding: 14px 18px; }
.form-error, .field-error { color: var(--danger); min-height: 1.2em; margin: 0 0 12px; }
.fine { color: var(--faint); font-size: 13px; margin: 18px 0 0; }

.app { position: relative; min-height: 100dvh; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(8, 9, 13, 0.92);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 22px;
}
.brand svg { width: 28px; height: 28px; }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { padding-left: 40px; background: #10131a; }
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
}
.top nav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.top nav button, .icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
}
.top nav button[aria-current="page"], .top nav button:hover { color: var(--ink); border-color: var(--line); }
.who { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.menu-btn { display: none; }

.banner {
  width: min(1180px, calc(100% - 36px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(226, 240, 112, 0.45);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(226, 240, 112, 0.06);
}
.layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0 80px;
}
.side {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 8px;
}
.side-head, .row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list-link, .side-link {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px;
  color: var(--ink);
}
.list-link[aria-current="true"], .list-link:hover { background: rgba(244, 241, 232, 0.04); border-color: var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--hue) 75% 58%); }
.count { color: var(--faint); font-variant-numeric: tabular-nums; }
.new-list { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.hues { display: flex; flex-wrap: wrap; gap: 8px; }
.hues button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: hsl(var(--hue) 75% 58%);
  padding: 0;
}
.hues button[aria-pressed="true"] { border-color: var(--ink); }

.main h2, .section-title {
  font-family: var(--display);
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0;
}
.hello {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}
.hello h2 { font-size: clamp(40px, 5vw, 64px); line-height: 0.92; }
.quick, .composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 8px 0 22px;
}
.quick:has(select) { grid-template-columns: 180px minmax(0, 1fr) auto; }
.section { margin-top: 28px; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.focus-grid, .list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.focus-card, .list-tile, .task, .result, .trash-item, .session {
  background: rgba(16, 19, 26, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.focus-card, .list-tile, .result, .trash-item {
  text-align: left;
  padding: 16px;
  color: inherit;
  width: 100%;
}
.focus-card { border-top: 3px solid hsl(var(--hue) 78% 60%); min-height: 150px; }
.focus-card strong, .list-tile strong, .task-title { font-family: var(--display); letter-spacing: -0.03em; }
.focus-card strong { display: block; font-size: 22px; line-height: 1.15; margin: 8px 0; }
.list-tile { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.list-tile .num {
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.bar { height: 3px; background: var(--line); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: hsl(var(--hue) 78% 60%); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.p-0 { --p: 0; } .p-5 { --p: .05; } .p-10 { --p: .1; } .p-15 { --p: .15; } .p-20 { --p: .2; }
.p-25 { --p: .25; } .p-30 { --p: .3; } .p-35 { --p: .35; } .p-40 { --p: .4; } .p-45 { --p: .45; }
.p-50 { --p: .5; } .p-55 { --p: .55; } .p-60 { --p: .6; } .p-65 { --p: .65; } .p-70 { --p: .7; }
.p-75 { --p: .75; } .p-80 { --p: .8; } .p-85 { --p: .85; } .p-90 { --p: .9; } .p-95 { --p: .95; }
.p-100 { --p: 1; }
.hue-72 { --hue: 72; } .hue-162 { --hue: 162; } .hue-190 { --hue: 190; } .hue-28 { --hue: 28; }
.hue-350 { --hue: 350; } .hue-262 { --hue: 262; } .hue-210 { --hue: 210; } .hue-48 { --hue: 48; }
.file-btn { position: relative; display: inline-flex; align-items: center; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.meta { color: var(--muted); font-size: 13px; }
.due-late { color: var(--danger); }

.list-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 8px; }
.list-head > div { min-width: 0; flex: 1; }
.list-name {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0 0 4px;
}
.list-name:focus { border-bottom-color: var(--acid); }
.task-list { display: grid; gap: 10px; }
.task { padding: 8px 10px 8px 12px; border-left: 3px solid transparent; }
.task.is-focus { border-left-color: var(--acid); }
.task.is-done { opacity: 0.58; }
.task.is-done .task-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.task-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.check, .beacon, .tiny {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
}
.check { width: 28px; height: 28px; margin-top: 8px; padding: 0; display: grid; place-items: center; }
.check[aria-pressed="true"] { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.task-open {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 8px 4px;
  min-width: 0;
}
.task-title { display: block; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.focus-card strong,
.result .task-title,
.task-open .task-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.result .meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.beacon { width: 36px; height: 36px; margin-top: 6px; padding: 0; display: grid; place-items: center; }
.beacon[aria-pressed="true"] { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.editor { padding: 4px 8px 12px 40px; display: grid; gap: 10px; }
.editor-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editor input[type="text"], .editor textarea, .editor input[type="date"] { background: #08090d; }
.count { min-height: 1em; color: var(--faint); font-size: 12px; font-family: var(--mono); }
.count.warn { color: var(--acid); }
.voices { display: grid; gap: 8px; }
.voice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
audio { width: 100%; height: 36px; }
.record {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  display: grid;
  place-items: center;
  padding: 0;
}
.record[aria-pressed="true"] { background: var(--acid); color: var(--acid-ink); animation: pulse 1.4s ease-in-out infinite; }
.wave { width: 100%; height: 48px; }
.done-fold { margin-top: 18px; }
.done-fold > button { background: none; border: 0; color: var(--muted); padding: 8px 0; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 7;
  padding: 20px;
}
.modal {
  width: min(440px, 100%);
  background: #141820;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px;
}
.modal h3 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; letter-spacing: -0.04em; }
.modal p { color: var(--muted); }
.modal .editor-row { justify-content: flex-end; }

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 8;
  width: min(360px, calc(100% - 32px));
}
.toast {
  background: #f4f1e8;
  color: #16170c;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}
.toast button { background: #16170c; color: #f4f1e8; border: 0; border-radius: 999px; padding: 6px 10px; }

.empty { color: var(--muted); padding: 12px 0 4px; }
.account, .trash { display: grid; gap: 14px; }
.session, .trash-item { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.current { color: var(--acid-ink); background: var(--acid); border-radius: 999px; padding: 2px 8px; font-size: 12px; }

@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .hero h1 { font-size: clamp(56px, 17vw, 88px); }
  .orbit-art { display: none; }
  .top { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .top nav { display: none; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .layout { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    inset: 0;
    align-self: stretch;
    width: 100%;
    height: 100dvh;
    z-index: 4;
    background: #08090d;
    padding: 128px 18px 24px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow: auto;
  }
  .list-head { flex-direction: column; align-items: stretch; }
  .app.drawer-open .side { transform: none; }
  .hello { display: block; }
  .quick, .composer { grid-template-columns: 1fr; }
  .editor { padding-left: 0; }
  .banner { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
