:root {
  color-scheme: dark;
  --canvas: #06101d;
  --canvas-deep: #030914;
  --surface: rgba(15, 30, 48, 0.78);
  --surface-quiet: rgba(13, 27, 44, 0.62);
  --surface-raised: rgba(23, 40, 61, 0.88);
  --text: #f1f3f6;
  --text-soft: #c7d0dc;
  --muted: #8f9daf;
  --line: rgba(178, 197, 220, 0.14);
  --line-strong: rgba(190, 210, 233, 0.23);
  --gold: #d8ad62;
  --gold-soft: #f0d39a;
  --gold-wash: rgba(216, 173, 98, 0.11);
  --success: #9dd7c5;
  --danger: #efaaa5;
  --focus: #b9dcff;
  --serif: Didot, "Bodoni 72", "Hoefler Text", "Times New Roman", serif;
  --sans: Didot, "Bodoni 72", "Hoefler Text", "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(0, 3, 11, 0.32);
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas-deep); scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(6.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, #0c1d30 0%, #061421 36%, #040b17 71%, #020711 100%);
  color: var(--text);
  font: 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
body::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 17, .06), rgba(2, 7, 17, .18) 58%, rgba(2, 7, 17, .34)),
    url("/assets/lumen-celestial-bg-v2.jpg?v=2") center top / cover no-repeat;
  filter: saturate(108%) contrast(102%);
  opacity: .82;
  transform: none;
  animation: celestial-illumination 42s linear infinite;
  will-change: filter;
}
body::after {
  inset: 0;
  background:
    linear-gradient(112deg, transparent 20%, rgba(164, 205, 232, .07) 46%, rgba(216, 173, 98, .04) 55%, transparent 72%),
    linear-gradient(180deg, rgba(2,7,17,.02), rgba(2,7,17,.12) 48%, rgba(2,7,17,.28) 100%);
  background-size: 190% 100%, 100% 100%;
  background-position: 20% 0, 0 0;
  opacity: .72;
  transform: translate3d(0, 0, 0);
  animation: celestial-light-breathe 42s linear infinite;
  will-change: opacity;
}
@keyframes celestial-illumination {
  0%, 100% { filter: saturate(108%) contrast(102%) brightness(100%) hue-rotate(0deg); }
  5% { filter: saturate(109%) contrast(102%) brightness(101%) hue-rotate(.4deg); }
  10% { filter: saturate(110%) contrast(102%) brightness(102%) hue-rotate(.8deg); }
  15% { filter: saturate(111%) contrast(102%) brightness(103%) hue-rotate(1.2deg); }
  20% { filter: saturate(112%) contrast(102%) brightness(103.5%) hue-rotate(1.5deg); }
  25% { filter: saturate(113%) contrast(102%) brightness(104%) hue-rotate(1.7deg); }
  30% { filter: saturate(114%) contrast(102%) brightness(104.5%) hue-rotate(1.8deg); }
  35% { filter: saturate(115%) contrast(102%) brightness(105%) hue-rotate(1.5deg); }
  40% { filter: saturate(116%) contrast(102%) brightness(105.5%) hue-rotate(1deg); }
  45% { filter: saturate(117%) contrast(102%) brightness(106%) hue-rotate(.5deg); }
  50% { filter: saturate(118%) contrast(102%) brightness(106.5%) hue-rotate(0deg); }
  55% { filter: saturate(117%) contrast(102%) brightness(106%) hue-rotate(-.5deg); }
  60% { filter: saturate(116%) contrast(102%) brightness(105.5%) hue-rotate(-1deg); }
  65% { filter: saturate(115%) contrast(102%) brightness(105%) hue-rotate(-1.5deg); }
  70% { filter: saturate(114%) contrast(102%) brightness(104.5%) hue-rotate(-1.8deg); }
  75% { filter: saturate(113%) contrast(102%) brightness(104%) hue-rotate(-1.7deg); }
  80% { filter: saturate(112%) contrast(102%) brightness(103.5%) hue-rotate(-1.5deg); }
  85% { filter: saturate(111%) contrast(102%) brightness(103%) hue-rotate(-1.2deg); }
  90% { filter: saturate(110%) contrast(102%) brightness(102%) hue-rotate(-.8deg); }
  95% { filter: saturate(109%) contrast(102%) brightness(101%) hue-rotate(-.4deg); }
}
@keyframes celestial-light-breathe {
  0%, 100% { opacity: .60; }
  25% { opacity: .66; }
  50% { opacity: .72; }
  75% { opacity: .66; }
}
body.is-hidden::before, body.is-hidden::after { animation-play-state: paused; }

.celestial-motion {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  display: none;
  transform: none;
  background: url("/assets/celestial-loop/frame-01.webp") center top / cover no-repeat;
  opacity: .74;
  will-change: background-image;
}

button, input, textarea, select { font: inherit; }
button, summary { touch-action: manipulation; }
button { cursor: pointer; transition: transform 260ms cubic-bezier(.2, .85, .25, 1.35), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 220ms ease; }
button:active { transform: scale(0.965); transition-duration: 90ms; }
button, input, textarea, select { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  button:not(.quick-add):not(.task-copy):hover { transform: translateY(-1px) scale(1.012); }
  .brand-button:hover .orbit-mark { transform: rotate(-10deg) scale(1.035); }
  .icon-button:hover svg { transform: rotate(9deg); }
  .task-row:hover { transform: translateX(2px) scale(1.003); border-color: rgba(216,173,98,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 13px 30px rgba(0,3,11,.17); }
  .context-filter button:hover, .bottom-nav button:hover { color: var(--gold-soft); background: rgba(255,255,255,.04); }
  .score-button:hover { color: #ffe7b5; text-shadow: 0 0 12px rgba(216,173,98,.18); }
  summary:hover { color: var(--gold-soft); }
}

.orbit-mark, .icon-button svg, summary { transition: transform 300ms cubic-bezier(.2,.9,.25,1.25), color 180ms ease, background-color 180ms ease; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -6rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: #fff;
  color: #07111e;
}
.skip-link:focus { top: 1rem; }

.app-shell { position: relative; z-index: 1; width: min(calc(100% - 2rem), 62rem); margin: 0 auto; }
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1.25rem, env(safe-area-inset-top)) 0 0.6rem;
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1.5rem;
  right: 4rem;
  width: 8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 173, 98, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 1.8rem rgba(216, 173, 98, 0.025), 0 0 0 3.8rem rgba(216, 173, 98, 0.013);
  pointer-events: none;
}
.brand-button {
  min-height: 56px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.brand-button strong { display: block; font: 400 clamp(1.95rem, 7vw, 2.55rem)/0.94 var(--serif); letter-spacing: -0.035em; }
.brand-button small { display: block; margin-top: 0.22rem; color: var(--muted); font: italic 0.72rem/1 var(--serif); letter-spacing: 0.035em; }
.orbit-mark { position: relative; width: 50px; height: 50px; flex: 0 0 50px; border: 1px solid rgba(240, 211, 154, 0.34); border-radius: 50%; background: radial-gradient(circle at 44% 42%, rgba(240,211,154,.08), transparent 48%), radial-gradient(circle at 50% 50%, rgba(83,119,157,.08), transparent 72%); box-shadow: inset 0 0 16px rgba(170,203,229,.055), 0 0 18px rgba(216,173,98,.055); filter: drop-shadow(0 6px 12px rgba(0,3,11,.22)); transform: rotate(-16deg); }
.orbit-mark::before, .orbit-mark::after { content: ""; position: absolute; border: 1px solid rgba(240, 211, 154, 0.48); border-radius: 50%; box-shadow: inset 0 0 8px rgba(255,255,255,.035), 0 0 6px rgba(216,173,98,.04); }
.orbit-mark::before { inset: 8px 2px; }
.orbit-mark::before { animation: logo-orbit-a 18s linear infinite; }
.orbit-mark::after { inset: 2px 13px; transform: rotate(35deg); animation: logo-orbit-b 24s linear infinite reverse; }
.orbit-mark i { position: absolute; inset: 14px; border: 1px solid rgba(255,244,217,.4); border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.82) 0 5%, rgba(255,240,198,.5) 9%, transparent 25%), radial-gradient(circle at 35% 30%, rgba(243,217,156,.7) 0 20%, rgba(216,173,98,.52) 48%, rgba(139,95,44,.38) 78%, rgba(16,27,43,.46) 100%); box-shadow: inset -3px -4px 7px rgba(22,16,15,.38), inset 3px 3px 6px rgba(255,244,217,.16), 0 0 15px rgba(216,173,98,.22); -webkit-backdrop-filter: blur(1.5px) saturate(125%); backdrop-filter: blur(1.5px) saturate(125%); animation: logo-sun 5.4s ease-in-out infinite; }
.orbit-mark i::before { content: ""; position: absolute; inset: 2px 4px 8px 3px; border-radius: 50%; background: linear-gradient(140deg, rgba(255,255,255,.26), transparent 55%); transform: rotate(-18deg); }
.orbit-mark i::after { content: ""; position: absolute; inset: -2px; border: 1px solid rgba(240,211,154,.17); border-radius: 50%; box-shadow: 0 0 7px rgba(216,173,98,.18); }
.orbit-mark b, .orbit-mark em, .orbit-mark small { position: absolute; left: 50%; top: 50%; display: block; border-radius: 50%; font: inherit; }
.orbit-mark b { z-index: 3; width: 8px; height: 8px; margin: -4px; border: 1px solid rgba(255,255,255,.48); background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.8) 0 8%, rgba(246,229,191,.58) 18%, rgba(182,140,80,.42) 58%, rgba(22,34,49,.5) 100%); box-shadow: inset -1px -1px 2px rgba(15,15,20,.4), 0 0 7px rgba(240,211,154,.26); animation: logo-planet-wide 9s linear infinite; will-change: transform; }
.orbit-mark em { z-index: 3; width: 6px; height: 6px; margin: -3px; border: 1px solid rgba(210,234,250,.4); background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.72), rgba(138,184,213,.44) 52%, rgba(26,49,70,.48) 100%); box-shadow: inset -1px -1px 2px rgba(5,18,31,.38), 0 0 6px rgba(147,195,225,.2); animation: logo-planet-mid 12s linear infinite reverse; will-change: transform; }
.orbit-mark small { z-index: 3; width: 5px; height: 5px; margin: -2.5px; border: 1px solid rgba(255,235,225,.36); background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.68), rgba(215,147,131,.4) 54%, rgba(55,31,34,.46) 100%); box-shadow: 0 0 5px rgba(222,154,139,.18); animation: logo-planet-near 6s linear infinite; will-change: transform; }
.brand-button:hover .orbit-mark::before { animation-duration: 10s; }
.brand-button:hover .orbit-mark::after { animation-duration: 13s; }
.is-hidden .orbit-mark::before, .is-hidden .orbit-mark::after, .is-hidden .orbit-mark i, .is-hidden .orbit-mark b, .is-hidden .orbit-mark em, .is-hidden .orbit-mark small { animation-play-state: paused; }
@keyframes logo-orbit-a { to { transform: rotate(360deg); } }
@keyframes logo-orbit-b { from { transform: rotate(35deg); } to { transform: rotate(395deg); } }
@keyframes logo-sun { 0%, 100% { transform: scale(.97); filter: saturate(.94) brightness(.98); } 50% { transform: scale(1.035); filter: saturate(1.06) brightness(1.05); } }
@keyframes logo-planet-wide { from { transform: rotate(0deg) translateX(22px) rotate(0deg); } to { transform: rotate(360deg) translateX(22px) rotate(-360deg); } }
@keyframes logo-planet-mid { from { transform: rotate(28deg) translateX(16px) rotate(-28deg); } to { transform: rotate(388deg) translateX(16px) rotate(-388deg); } }
@keyframes logo-planet-near { from { transform: rotate(72deg) translateX(11px) rotate(-72deg); } to { transform: rotate(432deg) translateX(11px) rotate(-432deg); } }

.icon-button, .close-button {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 31, 50, 0.56);
  color: var(--text-soft);
}
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#settings-button { border-color: transparent; background: transparent; box-shadow: none; }
#settings-button:hover, #settings-button:focus-visible { border-color: transparent; background: rgba(255,255,255,.025); box-shadow: none; }
.close-button { font-size: 1.7rem; line-height: 1; }

.local-strip {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.44rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(157, 215, 197, 0.45); }
.is-offline .status-dot { background: var(--gold); }
.local-only { padding-left: 0.5rem; border-left: 1px solid var(--line-strong); color: var(--gold-soft); }

main { padding-top: 1.3rem; touch-action: pan-y pinch-zoom; transform-origin: 50% 12%; }
main:focus { outline: none; }
main.is-swiping { transform: perspective(1100px) translate3d(var(--swipe-x), 0, 0) rotateY(var(--swipe-tilt)); transition: none; will-change: transform; }
main.is-settling { transform: perspective(1100px) translate3d(0, 0, 0) rotateY(0); transition: transform 390ms cubic-bezier(.2, .95, .25, 1.18); }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem; margin-bottom: 1.3rem; }
.date-line, .eyebrow { margin: 0 0 0.38rem; color: var(--gold); font-size: 0.68rem; font-weight: 680; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3, .rank-number, .priority-total { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(2.7rem, 11vw, 4.6rem); line-height: 0.96; letter-spacing: -0.045em; }
.page-intro p:not(.date-line) { margin: 0.65rem 0 0; color: var(--text-soft); font-size: 0.9rem; }
.compact-intro { align-items: center; }
.today-actions { width: min(11rem, 41vw); flex: 0 0 auto; display: grid; justify-items: stretch; gap: .7rem; }
.today-actions > .button { width: 100%; }
.chatgpt-inbox-module { min-width: 0; padding: .25rem 0 .35rem; display: grid; grid-template-columns: 5.55rem minmax(0,1fr); align-items: center; gap: .24rem; background: radial-gradient(circle at 25% 50%, rgba(216,173,98,.035), transparent 55%); }
.chatgpt-inbox-mascot-button { min-width: 88px; min-height: 88px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; }
.chatgpt-inbox-orbit { position: relative; width: 72px; height: 72px; display: block; border: 1px solid rgba(216,173,98,.48); border-radius: 50%; box-shadow: inset 0 0 30px rgba(216,173,98,.08), 0 9px 24px rgba(0,3,11,.32); transition: transform 280ms cubic-bezier(.2,.9,.25,1.22), border-color 220ms ease; }
.chatgpt-inbox-orbit::before, .chatgpt-inbox-orbit::after { content: ""; position: absolute; inset: 18px 7px; border: 1px solid rgba(216,173,98,.34); border-radius: 50%; transform: rotate(31deg); }
.chatgpt-inbox-orbit::after { inset: 7px 18px; transform: rotate(-31deg); }
.chatgpt-inbox-orbit i { position: absolute; z-index: 2; width: 17px; height: 17px; left: 27px; top: 27px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 18px rgba(240,211,154,.34); }
.chatgpt-inbox-orbit b { position: absolute; z-index: 3; width: 7px; height: 7px; right: 4px; top: 22px; border-radius: 50%; background: var(--success); }
.chatgpt-inbox-mascot-button:hover .chatgpt-inbox-orbit, .chatgpt-inbox-mascot-button:focus-visible .chatgpt-inbox-orbit { transform: translateY(-2px) scale(1.04) rotate(-2deg); border-color: rgba(240,211,154,.75); }
.chatgpt-inbox-mascot-button:active .chatgpt-inbox-orbit { transform: translateY(1px) scale(.96); }
.chatgpt-inbox-summary { min-width: 0; display: grid; justify-items: start; line-height: 1.1; }
.chatgpt-inbox-summary .eyebrow { margin: 0 0 .18rem; font-size: .55rem; letter-spacing: .08em; }
.chatgpt-inbox-summary strong { color: var(--text-soft); font-size: .75rem; }
.chatgpt-inbox-summary small { margin-top: .18rem; color: var(--muted); font-size: .55rem; white-space: nowrap; }
.chatgpt-inbox-summary small i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: var(--muted); }
.chatgpt-inbox-open { min-height: 30px; margin-top: .2rem; padding: 0; border: 0; background: transparent; color: var(--gold-soft); font-size: .6rem; text-decoration: underline; text-decoration-color: rgba(216,173,98,.35); text-underline-offset: 3px; }
.is-hidden .chatgpt-inbox-orbit { visibility: hidden; }
.chatgpt-inbox-dialog-card { max-width: 38rem; }
.chatgpt-inbox-dialog-card .dialog-heading p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); font-size: .72rem; }
.chatgpt-inbox-empty { min-height: 12rem; display: grid; grid-template-columns: 7rem minmax(0,1fr); align-items: center; gap: 1rem; }
.chatgpt-inbox-empty .dialog-orbit { width: 96px; height: 96px; justify-self: center; }
.chatgpt-inbox-empty .dialog-orbit::before { inset: 25px 8px; }
.chatgpt-inbox-empty .dialog-orbit::after { inset: 8px 25px; }
.chatgpt-inbox-empty .dialog-orbit i { width: 22px; height: 22px; left: 36px; top: 36px; }
.chatgpt-inbox-empty strong { color: var(--gold-soft); font-size: 1.35rem; font-weight: 400; }
.chatgpt-inbox-empty p, .chatgpt-inbox-boundary { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.chatgpt-inbox-boundary { padding-top: .7rem; border-top: 1px solid var(--line); }
.chatgpt-inbox-boundary strong { color: var(--text-soft); }
.inbox-persistent-error { margin: 0 0 .85rem; padding: .78rem .85rem; border: 1px solid rgba(239,170,165,.45); border-radius: .78rem; background: rgba(106,36,44,.18); color: #f2c1bd; }
.inbox-persistent-error strong { display: block; font-size: .78rem; }
.inbox-persistent-error p { margin: .28rem 0 .18rem; color: #dcaeab; font-size: .7rem; line-height: 1.45; }
.inbox-persistent-error .text-button { padding: .35rem 0 0; color: var(--gold-soft); }
.capture-draft-form { display: grid; gap: .8rem; }
.capture-review-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.capture-review-heading > div { display: grid; }
.capture-review-heading .eyebrow { margin-bottom: .2rem; }
.capture-review-heading strong { color: var(--text); font-size: 1.15rem; font-weight: 400; }
.capture-review-heading small { margin-top: .2rem; color: var(--muted); font-size: .62rem; }
.capture-status { padding: .18rem .45rem; border: 1px solid rgba(216,173,98,.25); border-radius: 999px; color: var(--gold-soft); font-size: .58rem; white-space: nowrap; }
.capture-draft-form blockquote { margin: 0; padding: .55rem .7rem; border-left: 2px solid rgba(216,173,98,.48); background: rgba(216,173,98,.035); color: var(--text-soft); font-size: .7rem; line-height: 1.45; }
.capture-uncertain { margin: 0; padding: .5rem .65rem; border: 1px solid rgba(216,173,98,.2); border-radius: .6rem; color: var(--muted); font-size: .68rem; }
.capture-uncertain strong { color: var(--gold-soft); }
.capture-form-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(7rem,.6fr); gap: .65rem; }
.capture-form-grid .capture-title-field { grid-column: 1 / -1; }
.capture-draft-form label, .capture-import label { display: grid; gap: .3rem; color: var(--text-soft); font-size: .68rem; }
.capture-draft-form input, .capture-draft-form select, .capture-draft-form textarea, .capture-import textarea { width: 100%; min-height: 44px; padding: .58rem .62rem; border: 1px solid var(--line-strong); border-radius: .65rem; background: rgba(3,9,20,.48); color: var(--text); }
.capture-draft-form textarea, .capture-import textarea { resize: vertical; }
.capture-task-only > span { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.capture-task-only > span small { color: var(--muted); font-size: .58rem; font-weight: 500; }
.capture-task-only select:disabled { opacity: .62; }
.capture-project-fields-help { grid-column: 1 / -1; margin: -.15rem 0 .15rem; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.capture-score-field { padding: .6rem 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capture-score-field legend { padding-right: .5rem; color: var(--text-soft); font-size: .68rem; }
.capture-archive-fields { display: grid; grid-template-columns: minmax(8rem,.7fr) minmax(0,1.3fr); gap: .65rem; }
.capture-archive-fields label span { color: var(--muted); font-size: .58rem; }
.capture-queue-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.capture-queue-nav button:first-child { justify-self: start; }.capture-queue-nav button:last-child { justify-self: end; }
.capture-queue-nav span { color: var(--muted); font-size: .64rem; }
.capture-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .45rem; }
.capture-actions .button { min-height: 44px; padding-inline: .55rem; font-size: .68rem; }
.capture-import { margin-top: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capture-import summary, .capture-history-group summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.capture-import summary span, .capture-history-group summary span { display: grid; }
.capture-import summary strong, .capture-history-group summary strong { color: var(--text-soft); font-size: .75rem; }
.capture-import summary small, .capture-history-group summary small { color: var(--muted); font-size: .62rem; }
.capture-import[open] { display: grid; gap: .65rem; }
.capture-history-group { border-bottom: 1px solid var(--line); }
.capture-history-group summary b { color: var(--gold-soft); font: 400 1rem var(--serif); }
.capture-history-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid rgba(178,197,220,.08); }
.capture-history-row > span { min-width: 0; display: grid; }
.capture-history-row strong { overflow: hidden; color: var(--text-soft); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.capture-history-row small { color: var(--muted); font-size: .6rem; }

.button {
  min-height: 48px;
  padding: 0.45rem 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.72rem;
  background: var(--surface-raised);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.01em;
}
.button.primary { border-color: rgba(216, 173, 98, 0.6); background: linear-gradient(145deg, rgba(216, 173, 98, 0.22), rgba(216, 173, 98, 0.1)); color: var(--gold-soft); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.button.quiet { background: transparent; }
.danger-button { color: var(--danger); }
.text-button { min-height: 44px; padding: 0.3rem 0.5rem; border: 0; background: transparent; color: var(--gold-soft); font-size: 0.75rem; font-weight: 650; }

.first-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(216, 173, 98, 0.28);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 45%),
    linear-gradient(135deg, rgba(32, 48, 68, 0.74), rgba(11, 24, 40, 0.76));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(135%) blur(22px);
  backdrop-filter: saturate(135%) blur(22px);
  transform: perspective(1000px) translate3d(var(--lift-x, 0), 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.2, .84, .25, 1.1), border-color 220ms ease, box-shadow 260ms ease, opacity 190ms ease;
}
.first-card::after { content: ""; position: absolute; z-index: -1; inset: -42% -30%; background: linear-gradient(108deg, transparent 37%, rgba(255,255,255,.105) 48%, transparent 59%); transform: translateX(-70%) rotate(-7deg); opacity: 0; pointer-events: none; }
.first-card.is-pressed { border-color: rgba(240, 211, 154, .48); box-shadow: 0 22px 58px rgba(0, 3, 11, .4), inset 0 1px 0 rgba(255,255,255,.12); transition-duration: 90ms; }
.first-card.is-pressed::after { opacity: 1; transform: translateX(62%) rotate(-7deg); transition: transform 720ms cubic-bezier(.18,.82,.22,1), opacity 180ms ease; }
.first-card.is-centering, .project-card.is-centering { transition: transform 460ms cubic-bezier(.16, 1.05, .3, 1.22); }
.first-card.is-completing { animation: task-complete 220ms cubic-bezier(.35, 0, .65, 1) both; }
.first-orbit { position: absolute; z-index: -1; width: 17rem; height: 9rem; right: -8rem; top: -5rem; border: 1px solid rgba(216, 173, 98, 0.13); border-radius: 50%; transform: rotate(-18deg); box-shadow: 0 0 0 1.7rem rgba(216, 173, 98, 0.03); }
.first-label { display: flex; align-items: center; justify-content: space-between; color: var(--gold-soft); font-size: 0.68rem; font-weight: 710; letter-spacing: 0.13em; text-transform: uppercase; }
.priority-total { font-size: 0.98rem; letter-spacing: 0; text-transform: none; }
.first-content { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 1.25rem 0 1.1rem; }
.first-content h2 { margin: 0; font-size: clamp(1.75rem, 7vw, 2.45rem); line-height: 1.02; letter-spacing: -0.03em; }
.first-content p { display: flex; align-items: center; flex-wrap: wrap; gap: 0.34rem; margin: 0.48rem 0 0; color: var(--muted); font-size: 0.76rem; }
.project-dot { width: 7px; height: 7px; flex: 0 0 7px; display: inline-block; border-radius: 50%; background: var(--gold); }
.project-dot.blue { background: #78aef0; }.project-dot.mint { background: #75d0b9; }.project-dot.rose { background: #df8ca0; }
.complete-button { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #06101d; font-size: 0.68rem; font-weight: 800; isolation: isolate; }
.complete-button::before { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid #aebacc; border-radius: 50%; background: rgba(255, 255, 255, 0.01); z-index: -1; transition: transform 180ms cubic-bezier(.2,.84,.25,1.1), border-color 180ms ease, background 180ms ease; }
.complete-button:hover::before, .complete-button:focus-visible::before { transform: scale(1.12); border-color: var(--gold-soft); }
.complete-button.large { width: 46px; height: 46px; }
.complete-button.large::before { width: 20px; height: 20px; }
.complete-button.is-complete::before { border-color: var(--success); background: var(--success); }
.score-button { min-width: 62px; min-height: 52px; padding: 0.25rem 0; border: 0; border-radius: 0; display: grid; justify-items: end; align-content: center; gap: 0.08rem; background: transparent; color: var(--gold-soft); box-shadow: none; text-align: right; }
.score-value { display: inline-flex; align-items: baseline; justify-content: flex-end; }
.score-button .score-value strong { font: 400 1.55rem/1 var(--serif); }
.score-button .score-value > span { margin-left: 0.15rem; color: var(--muted); font-size: 0.72rem; }
.score-button > small { color: var(--muted); font-size: 0.57rem; letter-spacing: .04em; }
.score-button.small { min-width: 54px; min-height: 46px; }
.score-button.small strong { font-size: 1.25rem; }
.why-first { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.65rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.why-first p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.42; }
.why-first strong { display: block; margin-bottom: 0.08rem; color: var(--text-soft); font-size: 0.72rem; }
.info-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-soft); font: italic 0.9rem var(--serif); }

.section-block { margin-top: 2rem; }
.context-filter { width: fit-content; max-width: 100%; margin: 0 0 1rem; padding: 0.24rem; border: 1px solid var(--line); border-radius: 0.78rem; display: flex; gap: 0.16rem; background: rgba(9, 21, 36, 0.54); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.context-filter button { min-height: 40px; padding: 0.35rem 0.72rem; border: 0; border-radius: 0.58rem; background: transparent; color: var(--muted); font-size: 0.68rem; font-weight: 650; white-space: nowrap; }
.context-filter button.is-active { background: rgba(216, 173, 98, 0.12); color: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(216, 173, 98, 0.16); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.72rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 7vw, 2.45rem); line-height: 1; letter-spacing: -0.03em; }
.section-heading p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.76rem; }
.ranking-controls { display: flex; align-items: center; gap: .7rem; }
.section-heading.compact h3 { margin: 0; font-size: 1.4rem; }
.today-filter { min-height: 46px; display: flex; align-items: center; gap: 0.48rem; color: var(--text-soft); font-size: 0.72rem; }
.today-filter input, .check-row input { width: 20px; height: 20px; accent-color: var(--gold); }
.task-list { display: grid; gap: 0.55rem; }
.swipe-task-shell { --task-swipe-x: 0px; position: relative; isolation: isolate; overflow: hidden; border-radius: 1rem; touch-action: pan-y pinch-zoom; }
.swipe-task-shell.is-entering { animation: row-glide 380ms cubic-bezier(.16, .88, .24, 1) both; animation-delay: calc(var(--motion-index, 0) * 34ms); }
.swipe-task-row { content-visibility: auto; contain-intrinsic-size: auto 72px; }
.swipe-task-first { border-radius: 1.2rem; }
.swipe-task-shell:focus-visible { outline: 2px solid rgba(240,211,154,.72); outline-offset: 3px; }
.swipe-task-surface { position: relative; z-index: 2; transform: translate3d(var(--task-swipe-x), 0, 0); transition: transform 430ms cubic-bezier(.18, .9, .22, 1.18); will-change: transform; }
.swipe-task-shell.is-dragging .swipe-task-surface { transition: none; }
.swipe-task-actions { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 188px; padding: 0.35rem 0.25rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; gap: 0.1rem; background: linear-gradient(105deg, rgba(7,17,30,.54), rgba(15,29,47,.92)); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.swipe-task-shell[data-open-side="start"] .swipe-task-actions { inset: 0 auto 0 0; background: linear-gradient(255deg, rgba(7,17,30,.54), rgba(15,29,47,.92)); }
.swipe-task-shell.is-open .swipe-task-actions, .swipe-task-shell.is-dragging .swipe-task-actions { opacity: 1; pointer-events: auto; }
.swipe-action { width: 58px; min-height: 64px; padding: .12rem 0; border: 0; display: grid; place-items: center; align-content: center; gap: .18rem; background: transparent; color: var(--text-soft); }
.swipe-action > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 18px rgba(0,3,11,.22); transition: transform 150ms cubic-bezier(.2,.9,.25,1.18), filter 150ms ease; }
.swipe-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.swipe-action small { color: var(--text-soft); font-size: .58rem; font-weight: 680; letter-spacing: .01em; }
.swipe-action.edit > span { border-color: rgba(120,174,240,.3); background: linear-gradient(145deg, rgba(120,174,240,.28), rgba(46,82,126,.22)); color: #c5dcf8; }
.swipe-action.archive > span { border-color: rgba(216,173,98,.4); background: linear-gradient(145deg, rgba(216,173,98,.3), rgba(111,76,32,.24)); color: var(--gold-soft); }
.swipe-action.delete > span { border-color: rgba(237,119,130,.4); background: linear-gradient(145deg, rgba(220,78,96,.38), rgba(114,28,42,.3)); color: #ffd6da; }
.swipe-action:hover > span, .swipe-action:focus-visible > span { transform: translateY(-2px) scale(1.05); filter: brightness(1.1); }
.swipe-action:active > span { transform: scale(.91); transition-duration: 70ms; }
.task-row { position: relative; min-height: 78px; padding: 0.65rem 2.35rem 0.65rem 0.62rem; border: 1px solid var(--line); border-radius: 1rem; display: grid; grid-template-columns: 1.7rem auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.55rem; background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(13, 27, 44, 0.56)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 10px 28px rgba(0, 3, 11, 0.13); -webkit-backdrop-filter: saturate(125%) blur(16px); backdrop-filter: saturate(125%) blur(16px); transition: opacity 180ms ease, border-color 180ms ease; }
.task-row:has(.task-copy:active) { border-color: rgba(216,173,98,.25); }
.task-row.is-completing { animation: task-complete 220ms cubic-bezier(.35, 0, .65, 1) both; }
@keyframes row-glide { from { opacity: 0; transform: translate3d(18px, 8px, 0) scale(.985); } 72% { opacity: 1; transform: translate3d(-1px, 0, 0) scale(1); } to { opacity: 1; transform: none; } }
@keyframes task-complete { 0% { opacity: 1; transform: translateX(0) scale(1); } 35% { transform: translateX(5px) scale(.99); } 100% { opacity: 0; transform: translateX(52px) scale(.965); } }
.rank-number { color: var(--gold); font-size: 1.45rem; text-align: center; }
.task-copy { min-width: 0; padding: 0.3rem 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.task-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; white-space: nowrap; }
.task-copy span { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.3rem; color: var(--muted); font-size: 0.67rem; }
.context-badge { display: inline-flex; min-height: 19px; padding: 0.12rem 0.34rem; border: 1px solid var(--line); border-radius: 0.38rem; align-items: center; background: rgba(255,255,255,.035); color: var(--text-soft); font-size: 0.56rem; font-style: normal; font-weight: 680; letter-spacing: .015em; white-space: nowrap; }
.context-badge.work { border-color: rgba(120,174,240,.25); color: #a9c9f2; }
.context-badge.outside { border-color: rgba(117,208,185,.24); color: #a9ddce; }
.context-badge.both { border-color: rgba(216,173,98,.28); color: var(--gold-soft); }
.task-copy span i:not(.project-dot) { font-style: normal; }
.today-star { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #5d6c7f; font-size: 1.05rem; }
.today-star.is-on { color: var(--gold); text-shadow: 0 0 12px rgba(216, 173, 98, 0.35); }
.task-actions-toggle { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); }
.task-actions-toggle svg { width: 19px; height: 19px; fill: currentColor; }
.task-actions-toggle:hover, .task-actions-toggle:focus-visible { background: rgba(255,255,255,.06); color: var(--gold-soft); }
.task-actions-toggle:active { transform: scale(.9); }
.task-actions-toggle.row-toggle { position: absolute; z-index: 3; right: .18rem; top: 50%; transform: translateY(-50%); }
.task-actions-toggle.row-toggle:active { transform: translateY(-50%) scale(.9); }
.first-label .task-actions-toggle { margin: -.45rem -.45rem -.45rem 0; }
.quiet-empty { margin: 0; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: 0.8rem; color: var(--muted); font-size: 0.8rem; text-align: center; }

.completed-group { margin: 1.4rem 0; border-top: 1px solid var(--line); }
.completed-group summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); cursor: pointer; font-size: 0.8rem; font-weight: 650; }
.completed-group summary > span { display: grid; gap: 0.15rem; }
.completed-group summary strong { color: var(--text); font-size: 0.88rem; }
.completed-group summary small { font-size: 0.68rem; font-weight: 500; }
.completed-group summary b { min-width: 1.7rem; height: 1.7rem; padding: 0 0.45rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-soft); }
.completed-list { display: grid; gap: 0.45rem; }
.completed-row, .trash-row { min-height: 56px; padding: 0.4rem 0.65rem; border: 1px solid var(--line); border-radius: 0.8rem; display: flex; align-items: center; gap: 0.65rem; color: var(--muted); font-size: 0.78rem; }
.completed-row span, .trash-row span { flex: 1; }
.archived-group summary strong { color: var(--gold-soft); }
.archived-row { border-color: rgba(216,173,98,.18); background: rgba(10,22,38,.38); }
.archive-mark { width: 44px; height: 44px; flex: 0 0 44px !important; display: grid; place-items: center; border-radius: 50%; color: var(--gold-soft); background: rgba(216,173,98,.09); }
.archive-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.completed-copy { min-width: 0; display: grid; gap: 0.18rem; }
.completed-copy strong { overflow: hidden; color: var(--text); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.completed-copy small { display: flex; align-items: center; flex-wrap: wrap; gap: 0.28rem; font-size: 0.66rem; line-height: 1.35; }

.project-grid { display: grid; gap: 0.8rem; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(13, 27, 44, 0.58)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 30px rgba(0, 3, 11, 0.14); -webkit-backdrop-filter: saturate(125%) blur(16px); backdrop-filter: saturate(125%) blur(16px); transform: perspective(1000px) translate3d(var(--lift-x, 0), 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 300ms cubic-bezier(.2,.84,.25,1.1), border-color 180ms ease, box-shadow 240ms ease; }
.project-card.is-pressed { border-color: rgba(216,173,98,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 38px rgba(0,3,11,.22); transition-duration: 90ms; }
.project-card-main { width: 100%; min-height: 86px; padding: 0.8rem; border: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; background: transparent; text-align: left; }
.project-card-main > span:nth-child(2) strong { display: block; font: 400 1.5rem/1 var(--serif); }
.project-card-main small { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.7rem; }
.project-card-main > b { color: var(--gold-soft); font: 400 1.7rem/1 var(--serif); text-align: right; }
.project-card-main > b small { white-space: nowrap; }
.project-progress { height: 3px; margin: 0 0.8rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.project-progress i { display: block; width: var(--project-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 14px rgba(216, 173, 98, 0.3); transition: width 420ms cubic-bezier(.2,.84,.25,1.05); }
.project-orbit { position: relative; width: 50px; height: 50px; flex: 0 0 50px; border: 1px solid color-mix(in srgb, currentColor 38%, transparent); border-radius: 50%; background: radial-gradient(circle at 45% 42%, rgba(255,255,255,.045), transparent 62%); box-shadow: inset 0 0 12px rgba(255,255,255,.025); }
.project-orbit::before { content: ""; position: absolute; inset: 9px 2px; border: 1px solid currentColor; border-radius: 50%; opacity: .68; animation: project-ring-turn 13s linear infinite; }
.project-orbit i { position: absolute; width: 9px; height: 9px; left: 20px; top: 20px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.7), currentColor 46%, rgba(6,16,29,.5) 100%); box-shadow: inset -1px -1px 2px rgba(0,3,11,.36), 0 0 7px color-mix(in srgb, currentColor 32%, transparent); animation: project-planet-breathe 4.8s ease-in-out infinite; }
.project-orbit.amber { color: var(--gold); }.project-orbit.blue { color: #78aef0; }.project-orbit.mint { color: #75d0b9; }.project-orbit.rose { color: #df8ca0; }
.project-card:nth-child(2n) .project-orbit::before { animation-duration: 16s; animation-direction: reverse; }
.project-card:nth-child(3n) .project-orbit::before { animation-duration: 11s; }
.is-hidden .project-orbit::before, .is-hidden .project-orbit i { animation-play-state: paused; }
@keyframes project-ring-turn { from { transform: rotate(28deg); } to { transform: rotate(388deg); } }
@keyframes project-planet-breathe { 0%, 100% { transform: translate3d(-1px,1px,0) scale(.95); filter: brightness(.94); } 50% { transform: translate3d(1px,-1px,0) scale(1.08); filter: brightness(1.08); } }
.project-preview { padding: 0.65rem 0.8rem; border-top: 1px solid var(--line); display: flex; gap: 0.5rem; color: var(--text-soft); font-size: 0.7rem; }
.project-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-preview span + span::before { content: "·"; margin-right: 0.5rem; color: var(--gold); }
.muted { color: var(--muted); }

.project-detail-head { margin: 0 0 1rem; display: grid; gap: 0.85rem; }
.back-button { width: fit-content; min-height: 38px; padding: 0 0.55rem; border: 0; display: inline-flex; align-items: center; gap: 0.25rem; background: transparent; color: var(--text-soft); font-size: 0.74rem; font-weight: 650; }
.back-button span { color: var(--gold-soft); font: 300 1.35rem/1 var(--serif); }
.project-detail-title { display: flex; align-items: center; gap: 0.85rem; }
.project-detail-title .project-orbit { width: 44px; height: 44px; flex: 0 0 44px; }
.project-detail-title .project-orbit i { left: 17px; top: 17px; }
.project-detail-title h1 { margin: 0; font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: .95; }
.project-detail-title .date-line { margin-bottom: 0.35rem; }
.project-detail-actions { display: flex; gap: 0.45rem; }
.project-detail-actions .button { min-height: 40px; padding: 0.55rem 0.75rem; }
.project-progress-card { margin-bottom: 1.2rem; padding: 0.85rem; border: 1px solid var(--line); border-radius: 1rem; display: grid; gap: 0.7rem; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(13,27,44,.62)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 34px rgba(0,3,11,.18); -webkit-backdrop-filter: saturate(130%) blur(18px); backdrop-filter: saturate(130%) blur(18px); animation: card-settle 430ms cubic-bezier(.16,.9,.22,1.12) both; }
.project-progress-card > div:first-child { display: flex; align-items: baseline; gap: 0.55rem; }
.project-progress-card strong { color: var(--gold-soft); font: 400 2.1rem/1 var(--serif); }
.project-progress-card span, .project-progress-card p, .project-link-note { color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.project-progress-card p { margin: 0; }
.detail-progress { margin: 0; height: 4px; }
.project-link-note { margin: 1rem 0 0; text-align: center; }
@keyframes card-settle { from { opacity: 0; transform: translateX(18px) rotateY(-1deg) scale(.985); } 70% { transform: translateX(-1px) rotateY(.15deg) scale(1.002); } to { opacity: 1; transform: none; } }

.empty-state { min-height: 250px; padding: 2rem 1rem; border: 1px solid var(--line); border-radius: 1.1rem; display: grid; place-items: center; align-content: center; text-align: center; background: var(--surface-quiet); }
.empty-state h2 { margin: 1rem 0 0; font-size: 1.8rem; }
.empty-state p { max-width: 24rem; margin: 0.5rem auto 1rem; color: var(--muted); font-size: 0.8rem; }
.empty-orbit { width: 62px; height: 62px; border: 1px solid rgba(216, 173, 98, 0.5); border-radius: 50%; box-shadow: inset 0 0 0 14px rgba(216, 173, 98, 0.045); }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(0.6rem, env(safe-area-inset-bottom));
  width: min(calc(100% - 1rem), 39rem);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  background: rgba(12, 25, 42, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 42px rgba(0, 3, 11, 0.48);
  -webkit-backdrop-filter: saturate(130%) blur(18px);
  backdrop-filter: saturate(130%) blur(18px);
}
.bottom-nav button { min-height: 55px; border: 0; border-radius: 0.9rem; display: grid; place-items: center; align-content: center; gap: 0.08rem; background: transparent; color: #93a3b8; font-size: 0.67rem; font-weight: 620; }
.bottom-nav button.is-active { background: rgba(255, 255, 255, 0.055); color: var(--gold-soft); }
.bottom-nav svg { width: 21px; height: 21px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 0 transparent); transition: transform 260ms cubic-bezier(.2,.9,.25,1.2), filter 220ms ease; }
.bottom-nav .nav-core-fill { fill: currentColor; stroke: none; opacity: .14; }
.bottom-nav .nav-rank-dot { opacity: .52; }
.bottom-nav .nav-orbit { opacity: .46; }
.bottom-nav .nav-spark { fill: currentColor; stroke: none; opacity: .82; }
.bottom-nav .nav-accent { opacity: .72; }
.bottom-nav .nav-today-satellite { transform-box: view-box; }
.bottom-nav button.is-active svg { filter: drop-shadow(0 0 5px rgba(240, 211, 154, .22)); }
.bottom-nav button.is-active .nav-core-fill { opacity: .22; }
.bottom-nav button.is-active .nav-today-satellite { animation: nav-orbit-drift 7.5s linear infinite; }
.bottom-nav button:active svg { transform: translateY(1px) scale(.9) rotate(-2deg); transition-duration: 80ms; }
.bottom-nav button:hover svg, .bottom-nav button:focus-visible svg { transform: translateY(-1px) scale(1.06); }
.bottom-nav button[data-nav="today"] .nav-icon { transform: scale(1.48); }
.bottom-nav button[data-nav="today"]:hover .nav-icon,
.bottom-nav button[data-nav="today"]:focus-visible .nav-icon { transform: translateY(-1px) scale(1.54); }
.bottom-nav button[data-nav="today"]:active .nav-icon { transform: translateY(1px) scale(1.33) rotate(-2deg); }
.bottom-nav button.is-active::after { content: ""; width: 1rem; height: 1px; background: var(--gold); }
.bottom-nav button.is-active { animation: nav-settle 380ms cubic-bezier(.2,.92,.25,1.25); }
@keyframes nav-settle { from { transform: translateY(3px) scale(.96); } 70% { transform: translateY(-1px) scale(1.015); } to { transform: none; } }
@keyframes nav-orbit-drift {
  0%, 100% { transform: translate(0, 0); }
  12.5% { transform: translate(-2.58px, 3.32px); }
  25% { transform: translate(-8.8px, 4.7px); }
  37.5% { transform: translate(-15.02px, 3.32px); }
  50% { transform: translate(-17.6px, 0); }
  62.5% { transform: translate(-15.02px, -3.32px); }
  75% { transform: translate(-8.8px, -4.7px); }
  87.5% { transform: translate(-2.58px, -3.32px); }
}
.quick-add { position: fixed; z-index: 32; right: max(1.1rem, calc((100vw - 62rem) / 2)); bottom: calc(5.6rem + env(safe-area-inset-bottom)); width: 52px; height: 52px; border: 1px solid rgba(240, 211, 154, 0.48); border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 34% 24%, rgba(255,255,255,.22), transparent 32%), linear-gradient(145deg, rgba(64, 76, 91, .68), rgba(17, 31, 49, .74)); color: var(--gold-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(216,173,98,.12), 0 10px 24px rgba(0, 3, 11, 0.38), 0 0 22px rgba(216, 173, 98, 0.09); -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px); transition: transform 260ms cubic-bezier(.2,.9,.25,1.25), border-color 180ms ease, box-shadow 220ms ease; }
.quick-add::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.06); border-radius: inherit; pointer-events: none; }
.quick-add span { position: relative; width: 18px; height: 18px; font-size: 0; transition: transform 340ms cubic-bezier(.2,.9,.25,1.25); }
.quick-add span::before, .quick-add span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.25px; border-radius: 999px; background: currentColor; transform: translate(-50%, -50%); box-shadow: 0 0 8px rgba(240,211,154,.28); }
.quick-add span::after { transform: translate(-50%, -50%) rotate(90deg); }
.quick-add:hover, .quick-add:focus-visible { border-color: rgba(240,211,154,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 13px 28px rgba(0,3,11,.42), 0 0 24px rgba(216,173,98,.14); }
.quick-add:hover span, .quick-add:focus-visible span { transform: rotate(90deg); }
.quick-add:active { transform: scale(.92) rotate(-2deg); transition-duration: 90ms; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(6.2rem + env(safe-area-inset-bottom)); width: min(calc(100% - 2rem), 28rem); transform: translateX(-50%); padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: 0.82rem; background: #15253a; box-shadow: var(--shadow); color: var(--text-soft); font-size: 0.78rem; text-align: center; }
.toast.is-error { border-color: rgba(239, 170, 165, 0.45); color: #f2c1bd; }
.toast button { min-height: 36px; margin-left: 0.65rem; border: 0; background: transparent; color: var(--gold-soft); font-weight: 700; }

dialog { width: min(calc(100% - 1rem), 42rem); max-height: min(92vh, 52rem); padding: 0; border: 1px solid var(--line-strong); border-radius: 1.2rem; background: rgba(13, 27, 43, .88); color: var(--text); box-shadow: 0 26px 70px rgba(0, 3, 11, 0.68); -webkit-backdrop-filter: saturate(135%) blur(24px); backdrop-filter: saturate(135%) blur(24px); }
dialog[open] { animation: sheet-in 430ms cubic-bezier(.16,.9,.22,1.12) both; }
dialog::backdrop { background: rgba(0, 5, 13, 0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open]::backdrop { animation: veil-in 260ms ease-out both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) scale(.965); } 72% { opacity: 1; transform: translateY(-2px) scale(1.003); } to { opacity: 1; transform: none; } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
.dialog-card { padding: 1rem; overflow: auto; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading h2 { margin: 0; font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1; letter-spacing: -0.035em; }
.dialog-heading p:not(.eyebrow) { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.78rem; }
.dialog-card label { display: grid; gap: 0.35rem; margin-bottom: 0.8rem; color: var(--text-soft); font-size: 0.72rem; font-weight: 640; }
.dialog-card input:not([type="checkbox"]), .dialog-card textarea, .dialog-card select { width: 100%; min-height: 49px; padding: 0.68rem 0.72rem; border: 1px solid var(--line-strong); border-radius: 0.7rem; background: rgba(3, 9, 20, 0.54); font-size: 1rem; }
.dialog-card textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
fieldset { min-width: 0; margin: 0 0 0.85rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.8rem; }
legend { padding: 0 0.3rem; color: var(--text-soft); font-size: 0.72rem; font-weight: 640; }
.score-picker { display: grid; grid-template-columns: repeat(10, minmax(38px, 1fr)); gap: 0.3rem; overflow-x: auto; padding: 0.2rem 0; }
.score-choice { min-width: 40px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 0.6rem; background: var(--surface-quiet); color: var(--muted); }
.score-choice.is-selected { border-color: var(--gold); background: var(--gold-wash); color: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(216, 173, 98, 0.18); }
.scale-labels { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.61rem; }
.check-row { min-height: 48px; grid-template-columns: auto 1fr !important; align-items: center; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1rem; }
.split-actions { display: grid; grid-template-columns: auto 1fr auto auto; }
.small-dialog { max-width: 34rem; }

.review-list { display: grid; gap: 0.65rem; }
.review-dialog-card { overflow-x: hidden; }
.ranking-choice { display: grid; gap: 0.65rem; }
.ranking-choice button { min-height: 76px; padding: 0.8rem; border: 1px solid var(--line-strong); border-radius: 0.9rem; display: grid; gap: 0.3rem; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(3,9,20,.4)); text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.ranking-choice button:hover, .ranking-choice button:focus-visible { border-color: rgba(216,173,98,.45); transform: translateY(-1px); }
.ranking-choice button:disabled { cursor: default; opacity: .42; transform: none; }
.ranking-choice span { color: var(--text); font: 400 1.35rem/1 var(--serif); }
.ranking-choice small, .ranking-scope { color: var(--muted); font-size: 0.69rem; line-height: 1.45; }
.ranking-scope { margin: 0.2rem 0 0; }
.ranking-step { display: grid; gap: 0.75rem; animation: ranking-step-in 360ms cubic-bezier(.16,.9,.22,1.12) both; }
.ranking-score { display: grid; grid-template-columns: repeat(5, minmax(44px, 52px)); justify-content: start; overflow: visible; }
.ranking-score .score-choice { width: 100%; min-width: 0; min-height: 44px; height: 44px; }
.ranking-progress { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.ranking-progress i { display: block; width: var(--ranking-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.ranking-context { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.ranking-context label { margin: 0; }
.ranking-context input { position: absolute; opacity: 0; pointer-events: none; }
.ranking-context span { min-height: 42px; padding: 0.45rem; border: 1px solid var(--line); border-radius: 0.65rem; display: grid; place-items: center; color: var(--muted); font-size: 0.68rem; text-align: center; }
.ranking-context input:checked + span { border-color: rgba(216,173,98,.5); background: rgba(216,173,98,.1); color: var(--gold-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.ranking-task-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.ranking-task-actions button { min-width: 0; min-height: 48px; padding: .35rem .2rem; border: 0; border-radius: .6rem; display: grid; place-items: center; align-content: center; gap: .08rem; background: rgba(255,255,255,.025); color: var(--text-soft); }
.ranking-task-actions button span { font-size: .72rem; font-weight: 680; }
.ranking-task-actions button small { color: var(--muted); font-size: .54rem; line-height: 1.2; }
.ranking-task-actions button:hover, .ranking-task-actions button:focus-visible { background: rgba(216,173,98,.07); color: var(--gold-soft); }
.ranking-task-actions button.danger { color: #ffd6da; }
.ranking-task-actions button.danger:hover, .ranking-task-actions button.danger:focus-visible { background: rgba(220,78,96,.11); }
@keyframes ranking-step-in { from { opacity: 0; transform: translateX(16px) scale(.985); } 72% { transform: translateX(-1px) scale(1.002); } to { opacity: 1; transform: none; } }

/* Open-surface pass: reserve full glass cards for the primary focus surface. */
.button { border-radius: 999px; }
.context-filter { padding: 0; border: 0; border-radius: 0; gap: 0.3rem; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.context-filter button { border-radius: 999px; }
.context-filter button.is-active { background: rgba(216,173,98,.09); box-shadow: inset 0 0 0 1px rgba(216,173,98,.12), 0 5px 18px rgba(0,3,11,.12); }
.task-list { gap: 0; }
.task-row { min-height: 72px; padding: 0.58rem 0.2rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.018) 48%, transparent); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.task-row:last-child { border-bottom-color: transparent; }
.completed-row, .trash-row { padding: 0.48rem 0.2rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.project-grid { gap: 0; }
.project-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.02) 48%, transparent); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.project-card { content-visibility: auto; contain-intrinsic-size: auto 108px; }
.project-card.is-entering { animation: project-arrive 380ms cubic-bezier(.16,.9,.22,1.12) both; animation-delay: calc(var(--project-index, 0) * 34ms); }
.project-card:last-child { border-bottom-color: transparent; }
.project-card-main { padding-inline: 0.25rem; }
.project-preview { margin-inline: 0.25rem; padding-inline: 0; }
.project-progress { margin-inline: 0.25rem; }
.project-progress-card { padding: 0.85rem 0.15rem; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.025) 50%, transparent); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.project-archive-row { animation: project-archive-in 360ms cubic-bezier(.16,.9,.22,1.12) both; }
.project-archive-row .project-orbit { width: 38px; height: 38px; flex-basis: 38px; }
.project-archive-row .project-orbit i { left: 14px; top: 14px; }
.archive-project-copy { min-width: 0; flex: 1; padding: 0.3rem 0; border: 0; display: grid; gap: 0.18rem; background: transparent; color: var(--text); text-align: left; }
.archive-project-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-project-copy small { color: var(--muted); font-size: .66rem; }
@keyframes project-arrive { from { opacity: 0; transform: translateX(16px) scale(.985); } 72% { transform: translateX(-1px) scale(1.002); } to { opacity: 1; transform: none; } }
@keyframes project-archive-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.ranking-choice { gap: 0; }
.ranking-choice button { min-height: 70px; padding-inline: 0.2rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.ranking-step fieldset { padding: 0.45rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ranking-score { gap: 0.42rem; }
.ranking-score .score-choice { width: 100%; min-height: 44px; height: 44px; aspect-ratio: auto; border-radius: 50%; background: rgba(255,255,255,.025); }
.ranking-step > label { padding-top: 0.4rem; border-top: 1px solid var(--line); }
.ranking-step #review-due { padding-inline: 0.15rem; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
.ranking-context span { border-radius: 999px; background: rgba(255,255,255,.02); }
@media (hover: hover) and (pointer: fine) {
  .task-row:hover { background: linear-gradient(90deg, transparent, rgba(216,173,98,.035) 50%, transparent); box-shadow: none; }
  .project-card:hover { background: linear-gradient(90deg, transparent, rgba(216,173,98,.03) 50%, transparent); }
}
.review-row { padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.82rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(7rem, 0.65fr) minmax(9rem, 0.8fr); align-items: end; gap: 0.6rem; background: var(--surface-quiet); }
.review-task { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.4rem; align-items: center; }
.review-task > span { color: var(--gold); font: 400 1.3rem var(--serif); }
.review-task strong { display: block; font-size: 0.82rem; }
.review-task small { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; color: var(--muted); font-size: 0.65rem; }
.review-row label { margin: 0; }

.settings-card section { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.settings-card section h3 { margin: 0; font-size: 1.4rem; }
.settings-card section p { margin: 0.42rem 0 0.8rem; color: var(--muted); font-size: 0.78rem; }
.settings-card section strong { color: var(--text-soft); }
.settings-card .fine-print { padding: 0.65rem; border-left: 2px solid var(--gold); background: var(--gold-wash); color: var(--text-soft); font-size: 0.7rem; }
.settings-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.ranking-snapshot-status { padding: 0.72rem 0.78rem; border-radius: 18px; background: rgba(12, 17, 38, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055); }
.settings-card section .ranking-snapshot-status p { margin: 0 0 0.62rem; }
.settings-card .version-marker { margin-top: .75rem; color: var(--gold-soft); font-size: .64rem; letter-spacing: .04em; }
.trash-list { display: grid; gap: 0.45rem; }

@media (min-width: 760px) {
  .app-shell { width: min(calc(100% - 3rem), 62rem); }
  .site-header { padding-top: max(2rem, env(safe-area-inset-top)); }
  main { padding-top: 2rem; }
  .page-intro { margin-bottom: 1.8rem; }
  .first-card { padding: 1.35rem; }
  .task-list { grid-template-columns: 1fr 1fr; }
  .task-row { min-height: 96px; grid-template-columns: 1.7rem auto minmax(0, 1fr) auto; }
  .task-row .today-star { grid-column: 4; grid-row: 1; transform: translateY(-22px); }
  .task-row .score-button { grid-column: 4; grid-row: 1; transform: translateY(18px); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .quick-add { right: max(1.5rem, calc((100vw - 62rem) / 2)); }
}

@media (max-width: 560px) {
  .app-shell { width: min(calc(100% - 1.35rem), 62rem); }
  .page-intro { align-items: start; }
  .page-intro > :first-child { min-width: 0; }
  .page-intro .button { max-width: 8.5rem; }
  .today-actions { width: 9rem; }
  .today-actions > .button { justify-self: end; }
  .chatgpt-inbox-module { grid-template-columns: 4.15rem minmax(0,1fr); }
  .chatgpt-inbox-mascot-button { min-width: 64px; min-height: 70px; }
  .chatgpt-inbox-orbit { width: 56px; height: 56px; }
  .chatgpt-inbox-orbit::before { inset: 15px 6px; }
  .chatgpt-inbox-orbit::after { inset: 6px 15px; }
  .chatgpt-inbox-orbit i { width: 14px; height: 14px; left: 20px; top: 20px; }
  .chatgpt-inbox-summary small { white-space: normal; }
  .ranking-controls { align-items: flex-end; flex-direction: column; gap: .1rem; }
  .capture-form-grid, .capture-archive-fields { grid-template-columns: 1fr; }
  .capture-actions { grid-template-columns: 1fr; }
  .ranking-score { grid-template-columns: repeat(5, 44px); gap: 0.35rem; }
  .first-content { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; }
  .complete-button.large { width: 46px; height: 46px; }
  .task-row { grid-template-columns: 1.5rem auto minmax(0, 1fr) auto auto; gap: 0.3rem; }
  .task-row .today-star { display: block; }
  .score-button.small { min-width: 54px; }
  .form-grid, .review-row { grid-template-columns: 1fr; }
  .review-task { margin-bottom: 0.2rem; }
  .split-actions { grid-template-columns: 1fr 1fr; }
  .split-actions span { display: none; }
  .split-actions .danger-button { grid-column: 1 / -1; }
  .quick-add {
    top: max(1.25rem, env(safe-area-inset-top));
    right: 4.6rem;
    bottom: auto;
    width: 44px;
    height: 44px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 7px 20px rgba(0, 3, 11, 0.34), 0 0 16px rgba(216, 173, 98, 0.08);
  }
}

@media (max-width: 380px) {
  .page-intro { display: grid; grid-template-columns: 1fr; }
  .today-actions { width: 100%; grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .today-actions > .button { width: auto; }
  .chatgpt-inbox-module { min-width: 10rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  main, .first-card, .project-card, .task-row { transform: none !important; }
  body::before, body::after { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  body::before, body::after, .celestial-motion { display: none; }
  .first-card, .task-row, .project-card, .bottom-nav, dialog {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface-solid, #101d2d);
  }
}
