:root {
  color-scheme: dark;
  color: #f4f3f1;
  background: #080809;
  --line: #ffffff29;
  --muted: #b8b8be;
  --accent: #f4f2ef;
  --paper: #f7f5f1;
}

body[data-route="home"] .scenery,
body[data-env="eclipse"] .scenery:not([style*="background-image"]) {
  display: none;
}
body[data-route="home"] .veil { display: none; }
body:not([data-route="home"]) .veil {
  background: linear-gradient(150deg,#080809e8,#08080979 75%,#080809c9);
}
.glass,.card {
  background: linear-gradient(150deg,#ffffff09,transparent 55%),rgba(19,19,22,var(--panel));
  box-shadow: inset 0 1px #ffffff0b,0 14px 40px #0002;
}
.card { background-color: rgba(26,26,29,max(.60,var(--panel))); }
button,input,textarea,select { border-color: #ffffff36; }
input,textarea,select { color: #f4f3f1; background: #121215; }
select option { background: #151517; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline-color: #fff;
}
.primary,.primary:hover { color:#141417; border-color:#fff8; background:var(--paper); }
.primary:hover { background:#fff; }
.muted,small,.empty,.eyebrow,.page-head p,.record p,.board-caption,.board-hint,.notice,label,.guide { color:var(--muted); }
.progress i,.day.checked,.check.done { background:var(--paper); color:#141417; }
.day:focus-visible,.check:focus-visible { outline-offset:2px; }
.check,.row .check { width:44px; min-height:44px; padding:0; }
.week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); width:100%; gap:3px; text-align:center; }
.day { width:min(100%,44px); min-width:24px; min-height:44px; }
.statusbar { max-width: 1320px; margin: 0 auto; padding: 18px 5vw 30px; color: #a9a9b0; }
.statusbar>span:first-child { display: inline; }
.topbar {
  width:min(1240px,calc(100% - 48px)); margin:20px auto 0; padding:7px 10px 7px 16px;
  gap:18px; background:#111113ec; border-radius:22px; border-color:#ffffff24;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.brand { font-size:.82rem; letter-spacing:.13em; }
.brand small { color:#b5b5bb; font-size:.52rem; }
.brandmark {
  display:block; width:26px; height:26px; flex:none;
  background: var(--paper);
  clip-path:polygon(50% 0,97% 79%,50% 56%,3% 79%);
}
.topbar nav { justify-content:center; gap:3px; }
.topbar nav button { color:#c6c6cc; font-size:.85rem; min-height:44px; padding:7px 12px; border-radius:12px; }
.topbar nav button.active,.settings-nav.active {
  color:#fff; background:#ffffff18; border-color:#ffffff2d; box-shadow:none;
}
.settings-nav { border-radius:13px; }
.page { max-width:1320px; }
.page:not(.eclipse-home) .page-head h1 { font-size:clamp(2.65rem,5vw,4.55rem); font-weight:530; }
.page:not(.eclipse-home) .page-head { margin-bottom:28px; }
.record,.board,.space-note { border-radius:24px; }
.board { background: radial-gradient(ellipse at 55% 25%,#ffffff0f,transparent 76%),#0c0c0e74; }
.bubble {
  background:linear-gradient(145deg,#ffffff22,#ffffff05),#17171aa8;
  border-color:#ffffff4a; box-shadow:inset 0 1px #ffffff47,0 22px 45px #0005;
}
.bubble .symbol { color:#f4f3f1; }
dialog.glass,dialog.writer,dialog.composer {
  color:#f4f3f1; background:linear-gradient(155deg,#202023,#121214)!important;
}
.composer .dialog-actions .primary,.writer #close-editor { color:#f6f4f1; }
.writer-status,.writer .dialog-head .eyebrow,.composer label,
.writer input::placeholder,.writer textarea::placeholder,.composer #f-title::placeholder { color:#b8b8be; }

.eclipse-home { max-width:1320px; padding:0 5vw 32px; }
.ambition {
  position:relative; min-height:448px; display:grid; grid-template-rows:60px 208px auto;
  justify-items:center; isolation:isolate; padding:0 0 32px;
}
.ambition::before {
  content:""; position:absolute; z-index:-1; top:6%; left:0; right:0; height:88%; pointer-events:none;
  background:radial-gradient(ellipse at 50% 39%,#b1b1be1b 0%,#a0a0b20d 20%,transparent 61%);
}
.hero-toolbar { align-self:center; width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hero-toolbar time { text-transform:capitalize; color:#b8b8be; font-size:.88rem; }
.motion-button,.quick-note { border-radius:12px; background:transparent; font-size:.84rem; padding:8px 13px; min-height:44px; }
.motion-button { color:#c6c6cc; border-color:transparent; }
.ambition-art { width: min(100%, 540px); height:230px; align-self:center; position:relative; display:grid; place-items:center; pointer-events:none; }
.art-axis {
  position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,#ffffff28,transparent) center/100% 1px no-repeat,
    linear-gradient(0deg,transparent,#ffffff20,transparent) center/1px 100% no-repeat;
}
.ambition-orbit,.ambition-sweep { position:absolute; width:198px; aspect-ratio:1; border-radius:50%; }
.ambition-orbit.outer { border:1px solid #ffffff26; box-shadow:0 0 65px #e4e4ff15,inset 0 0 35px #ffffff09; }
.ambition-orbit.inner { width:157px; border:1px solid #ffffff17; }
.ambition-sweep {
  animation:ambition-orbit 10s linear infinite;
  background:conic-gradient(from 0deg,transparent 0deg 283deg,#e7e7fa00 288deg,#e7e7fa12 333deg,#f7f6ff40 357deg,transparent 360deg);
  box-shadow:2px -8px 34px #e7e7fa13;
}
.ambition-sweep i {
  position:absolute; top:-3px; left:calc(50% - 3px); width:6px; height:6px; border-radius:50%; background:#fff;
  box-shadow:0 0 8px 4px #fff9,0 0 27px 12px #caccff36;
}
.ambition-crest { width:112px; height:118px; position:relative; filter:drop-shadow(0 0 18px #f4f4ff6e); }
.ambition-crest i { position:absolute; inset:0; background:linear-gradient(180deg,#fff,#a9a9b9); }
.ambition-crest i:nth-child(1) { clip-path:polygon(50% 3%,96% 78%,50% 56%,4% 78%); }
.ambition-crest i:nth-child(2) { clip-path:polygon(50% 64%,83% 81%,50% 76%,17% 81%); opacity:.55; }
.ambition-crest i:nth-child(3) { clip-path:polygon(50% 82%,54% 87%,50% 92%,46% 87%); background:#fff; }
@keyframes ambition-orbit { to { transform:rotate(1turn); } }
.no-motion .ambition-sweep { transform:rotate(38deg); }
.ambition-content { text-align:center; align-self:start; width:min(100%,740px); }
.ambition-content h1 { font-weight:570; font-size:clamp(3rem,7vw,6.15rem); letter-spacing:-.085em; line-height:1.02; margin:0 0 13px; }
.ambition-content p { color:#c2c2ca; font-size:clamp(.95rem,2vw,1.12rem); margin:0 0 18px; overflow-wrap:anywhere; }
.hero-cta { display:inline-flex; align-items:center; gap:15px; padding:11px 17px; min-height:48px; border-radius:12px; }
.ambition-progress { display:flex; justify-content:center; align-items:center; gap:10px; margin:-4px auto 17px; color:#c6c6cc; font-size:.85rem; }
.ambition-progress progress { width:min(180px,46%); height:6px; accent-color:#efedf1; }

.dashboard { border-top:1px solid #ffffff25; padding-top:22px; }
.dashboard-heading,.dashboard-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dashboard-heading { margin-bottom:16px; }
.dashboard-heading h2 { font-size:1.6rem; letter-spacing:-.055em; font-weight:580; margin:0; }
.dashboard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.dashboard-card { min-height:182px; display:flex; flex-direction:column; gap:9px; padding:15px 18px 8px; border-radius:18px; }
.dashboard-card-head { min-height:44px; }
.dashboard-card h3 { margin:0; font-size:1.06rem; font-weight:620; }
.dashboard-card p { color:#b8b8be; margin:0; font-size:.92rem; }
.dashboard-card-head .icon-button { border-radius:12px; border-color:transparent; }
.dashboard-count { color:#c4c4ca; font-variant-numeric:tabular-nums; font-size:.9rem; padding:0 6px; }
.dashboard-row { display:flex; gap:9px; align-items:center; min-width:0; }
.dashboard-row span,.dashboard-row .text-button { overflow-wrap:anywhere; min-width:0; }
.dashboard-row .text-button { flex:1; }
.dashboard-link,.dashboard-event {
  display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px;
  text-align:left; color:#eeeef0; background:transparent; border:0; border-radius:6px; padding:4px 0;
}
.dashboard-link { border-top:1px solid #ffffff21; margin-top:auto; font-size:.88rem; padding-top:7px; }
.dashboard-link span { color:#ceced4; }
.dashboard-event { flex-wrap:wrap; font-size:.9rem; overflow-wrap:anywhere; }

@media(max-width:1000px) {
  .topbar { gap:8px; width:calc(100% - 32px); }
  .topbar nav button { padding-inline:8px; }
  .eclipse-home { padding-inline:4vw; }
}
@media(max-width:850px) {
  .topbar { padding:7px 9px; border-radius:19px; margin-top:12px; }
  .topbar .brand { padding-left:6px; }
  .topbar nav { flex:0 0 100%; justify-content:space-between; }
  .topbar nav button { flex:1; }
  .ambition { min-height:420px; grid-template-rows:54px 200px auto; }
}
@media(max-width:600px) {
  .topbar { position:relative; top:auto; width:calc(100% - 24px); }
  .topbar nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; overflow:visible; }
  .topbar nav button { padding:5px 2px; font-size:.79rem; white-space:normal; }
  .eclipse-home { padding-inline:5vw; }
  .ambition { min-height:390px; grid-template-rows:48px 185px auto; }
  .ambition-art { height:188px; }
  .ambition-orbit,.ambition-sweep { width:165px; }
  .ambition-orbit.inner { width:132px; }
  .ambition-crest { width:92px; height:96px; }
  .dashboard-grid { grid-template-columns:1fr; }
  .dashboard-card { min-height:148px; }
}
