:root {
  color-scheme: dark;
  --bg: #171522;
  --surface: #211f30;
  --surface-raised: #29263a;
  --surface-soft: #242235;
  --text: #f5f2ff;
  --muted: #aaa5bd;
  --faint: #9691a7;
  --line: #3b384f;
  --accent: #b7a9ff;
  --accent-bright: #c9bdff;
  --accent-ink: #211c42;
  --mint: #78e0bd;
  --shadow: 0 24px 70px rgba(5, 4, 14, .32);
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 53% -26%, rgba(112, 92, 190, .16), transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar, .app-layout, .footer { width: min(1440px, 100%); margin-inline: auto; }

.topbar {
  min-height: 82px;
  padding: 15px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar { min-height: 74px; padding-inline: 34px; }
.app-layout { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; }
.sidebar { position: sticky; top: 0; height: calc(100vh - 74px); min-height: 540px; padding: 27px 15px 20px 24px; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .065); }
.sidebar-heading { margin: 0 10px 12px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.main-nav { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 11px; text-align: left; font-size: 12px; }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: rgba(255, 255, 255, .035); color: var(--muted); font-size: 15px; transition: background .2s ease, color .2s ease; }
.nav-link[aria-current="page"] .nav-icon { color: var(--mint); background: rgba(120, 224, 189, .09); }
.sidebar-note { margin-top: auto; padding: 15px 13px; display: grid; gap: 7px; border: 1px solid rgba(183, 169, 255, .13); border-radius: 13px; background: linear-gradient(145deg, rgba(183, 169, 255, .08), rgba(120, 224, 189, .025)); }
.sidebar-note-mark { color: var(--mint); font-size: 16px; }
.sidebar-note strong { font: 700 11px var(--font-display); }
.sidebar-note > span:last-child { color: var(--muted); font-size: 9px; line-height: 1.5; }
.mobile-nav { display: none; }

.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--font-display); letter-spacing: -.07em; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 12px; box-shadow: 0 5px 20px rgba(183, 169, 255, .17); }
.brand-icon svg { width: 20px; height: 20px; }
.brand-period { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.nav-link { position: relative; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 10px 15px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link[aria-current="page"] { background: var(--surface-raised); color: var(--accent-bright); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.top-note { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.settings-open { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 11px; font-weight: 700; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.settings-open:hover, .settings-open[aria-current="page"] { border-color: rgba(183, 169, 255, .35); background: rgba(183, 169, 255, .07); color: var(--accent-bright); }
.settings-open > span { color: var(--accent); font-size: 14px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(120, 224, 189, .5); }

main { min-width: 0; width: 100%; max-width: none; margin: 0; padding: 42px clamp(24px, 4vw, 54px) 58px; }
.view[hidden] { display: none; }
.view.active { animation: view-enter .35s ease both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 38px; min-height: min(610px, calc(100vh - 205px)); }
.hero-copy { padding: 32px 0; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-mark { display: inline-block; width: 7px; height: 7px; background: var(--mint); border-radius: 50%; margin: 0 9px 1px 0; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .view-heading h1 { margin: 24px 0 18px; font: 700 clamp(44px, 6vw, 73px)/1.04 var(--font-display); letter-spacing: -.075em; }
.hero h1 em, .view-heading h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 445px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.btn { min-height: 44px; border: 0; border-radius: 12px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 8px 24px rgba(183, 169, 255, .16); }
.btn.primary:hover { background: var(--accent-bright); box-shadow: 0 10px 30px rgba(183, 169, 255, .25); }
.btn.secondary { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--surface-raised); border-color: #615b7b; }
.home-footnote { margin-top: 24px; color: var(--faint); font-size: 11px; }
.mint-check { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 7px; color: var(--mint); border: 1px solid rgba(120, 224, 189, .32); border-radius: 50%; font-size: 10px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 430px; overflow: hidden; border: 1px solid rgba(183, 169, 255, .13); border-radius: 30px; background: radial-gradient(ellipse at 50% 47%, rgba(132, 111, 213, .18), transparent 55%), linear-gradient(145deg, #242137, #1d1a2a 78%); box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 28px 80px rgba(5, 4, 14, .19); }
.art-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(145, 123, 237, .12); filter: blur(58px); }
.art-orbit { position: absolute; width: 270px; height: 270px; border: 1px solid rgba(183, 169, 255, .14); border-radius: 50%; box-shadow: 0 0 0 32px rgba(183, 169, 255, .025), 0 0 0 74px rgba(183, 169, 255, .018); }
.orbit-two { width: 345px; height: 345px; border-color: rgba(120, 224, 189, .08); transform: rotate(24deg) scaleY(.65); }
.world-scene { --world-duration: 8s; --particle-duration: 6s; --world-motion: 1; --world-glow: .15; position: absolute; inset: 0; overflow: hidden; perspective: 850px; transform-style: preserve-3d; isolation: isolate; transition: background .7s ease, filter .7s ease; background: radial-gradient(ellipse at 51% 63%, rgba(67, 59, 109, .28), transparent 46%); }
.world-scene::before { position: absolute; z-index: 8; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 29, .08), transparent 46%, rgba(16, 14, 25, .2)); content: ""; pointer-events: none; }
.world-scene::after { position: absolute; z-index: 6; top: 61%; left: 50%; width: 18px; height: 18px; border: 1px solid rgba(120, 224, 189, .65); border-radius: 50%; opacity: 0; pointer-events: none; content: ""; transform: translate(-50%, -50%) scale(.3); }
.world-halo { position: absolute; top: 28%; left: 50%; width: 245px; height: 245px; border: 1px solid rgba(183, 169, 255, .1); border-radius: 50%; transform: translate(-50%, -50%) rotateX(67deg); box-shadow: 0 0 0 25px rgba(183, 169, 255, .018), 0 0 0 52px rgba(183, 169, 255, .012); }
.halo-front { top: 69%; width: 365px; height: 190px; border-color: rgba(120, 224, 189, .09); transform: translate(-50%, -50%) rotateX(73deg) rotateZ(-9deg); }
.halo-back { top: 45%; }
.world-particles { position: absolute; inset: 0; pointer-events: none; }
.world-particles span { position: absolute; top: 30%; left: 23%; width: 3px; height: 3px; border-radius: 50%; background: #d8ceff; box-shadow: 0 0 12px 3px rgba(183, 169, 255, .33); opacity: .55; animation: particle-drift var(--particle-duration) ease-in-out infinite alternate; }
.world-particles span:nth-child(2) { top: 19%; left: 68%; width: 2px; height: 2px; animation-delay: -2s; }
.world-particles span:nth-child(3) { top: 61%; left: 14%; animation-delay: -3.2s; }
.world-particles span:nth-child(4) { top: 71%; left: 78%; width: 2px; height: 2px; animation-delay: -1.1s; }
.world-particles span:nth-child(5) { top: 38%; left: 84%; animation-delay: -4s; }
.world-particles span:nth-child(6) { top: 79%; left: 37%; width: 2px; height: 2px; animation-delay: -2.8s; }
.world-particles span:nth-child(7) { top: 46%; left: 7%; width: 2px; height: 2px; animation-delay: -1.7s; }
.world-particles span:nth-child(8) { top: 54%; left: 92%; animation-delay: -3.8s; }
.world-particles span:nth-child(9) { top: 14%; left: 42%; width: 2px; height: 2px; animation-delay: -2.3s; }
.world-particles span:nth-child(10) { top: 83%; left: 63%; width: 2px; height: 2px; animation-delay: -.8s; }
@keyframes particle-drift { from { opacity: .2; transform: translate3d(0, 9px, 0); } to { opacity: .82; transform: translate3d(4px, -13px, 0); } }
.world-clouds { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.world-cloud { position: absolute; width: 92px; height: 23px; border: 1px solid rgba(210, 202, 242, .08); border-radius: 50%; background: linear-gradient(180deg, rgba(206, 195, 239, .14), rgba(127, 112, 166, .035)); filter: drop-shadow(0 4px 13px rgba(183, 169, 255, .12)); opacity: .66; animation: cloud-drift 15s ease-in-out infinite alternate; }
.world-cloud i { position: absolute; bottom: 3px; width: 34px; height: 22px; border-radius: 50%; background: inherit; }
.world-cloud i:first-child { left: 14px; width: 31px; height: 27px; }
.world-cloud i:nth-child(2) { left: 35px; width: 38px; height: 34px; }
.world-cloud i:nth-child(3) { right: 7px; width: 29px; height: 23px; }
.cloud-left { top: 43%; left: 3%; }
.cloud-right { top: 56%; right: 1%; scale: .75; animation-delay: -4s; }
.cloud-far { top: 28%; left: 73%; scale: .53; opacity: .4; animation-delay: -8s; }
@keyframes cloud-drift { from { translate: -5px 0; } to { translate: 9px -5px; } }
.island-shadow { position: absolute; top: 70%; left: 50%; width: 63%; height: 16%; border-radius: 50%; background: rgba(7, 6, 15, .66); filter: blur(18px); transform: translate(-50%, -50%) rotateX(68deg); }
.world-island { position: absolute; top: 71%; left: 50%; width: 78%; height: 47%; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-7deg); transform-style: preserve-3d; animation: island-hover var(--world-duration) ease-in-out infinite; }
@keyframes island-hover { 0%, 100% { translate: 0 1px; } 50% { translate: 0 -7px; } }
.island-top { position: absolute; inset: 1% 4% 20%; overflow: hidden; border: 1px solid rgba(183, 169, 255, .7); border-radius: 50%; background: radial-gradient(ellipse at 48% 50%, #514773 0, #383351 49%, #272438 76%, #201e30 100%); box-shadow: inset 0 8px 18px rgba(226, 218, 255, .14), inset 0 -18px 26px rgba(16, 14, 28, .28), 0 4px 16px rgba(183, 169, 255, .18); transform: translateZ(24px); }
.island-top::after { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 52% 44%, rgba(120, 224, 189, .13), transparent 47%); content: ""; }
.island-layer { position: absolute; left: 4%; width: 92%; height: 57%; border: 1px solid rgba(183, 169, 255, .26); border-radius: 50%; }
.layer-middle { top: 21%; background: linear-gradient(165deg, #353149, #262335 69%); transform: translateZ(4px); box-shadow: inset 0 -12px 12px rgba(10, 9, 18, .35); }
.layer-deep { top: 32%; left: 14%; width: 72%; height: 48%; background: linear-gradient(160deg, #292638, #1b1927 78%); transform: translateZ(-12px); }
.island-crag { position: absolute; z-index: 2; top: 12%; width: 20%; height: 34%; background: linear-gradient(140deg, #5a5279, #2e2a40 72%); clip-path: polygon(0 100%, 38% 15%, 57% 40%, 78% 0, 100% 100%); filter: drop-shadow(0 4px 3px rgba(7, 6, 15, .48)); transform: translateZ(33px); }
.crag-left { left: 26%; }
.crag-right { top: 18%; left: 59%; width: 14%; height: 24%; opacity: .78; }
.island-grass { position: absolute; z-index: 3; top: 41%; left: 14%; width: 72%; height: 25%; border-radius: 50%; background: radial-gradient(ellipse at 50% 0, rgba(120, 224, 189, .37), rgba(75, 118, 104, .23) 36%, transparent 74%); transform: translateZ(27px); }
.island-path { position: absolute; z-index: 4; top: 40%; left: 47%; width: 25%; height: 22%; border-right: 2px solid rgba(183, 169, 255, .6); border-radius: 50%; transform: translateZ(30px) rotate(15deg) skewY(-9deg); }
.island-path span { position: absolute; top: 18%; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: #b7a9ff; box-shadow: 0 0 9px #b7a9ff; opacity: .25; transition: opacity .35s, box-shadow .35s; }
.island-path span:nth-child(2) { top: 48%; right: 0; }
.island-path span:nth-child(3) { top: 78%; right: -2px; }
.world-scene[data-progress="1"] .island-path span:nth-child(-n+1), .world-scene[data-progress="2"] .island-path span:nth-child(-n+2), .world-scene[data-progress="3"] .island-path span { opacity: 1; box-shadow: 0 0 12px 3px rgba(183, 169, 255, .72); }
.island-plant { position: absolute; z-index: 5; top: 27%; left: 19%; width: 13px; height: 26px; opacity: .58; scale: .72; transform-origin: center bottom; transition: opacity .6s ease, scale .65s cubic-bezier(.2, .8, .25, 1.2); }
.island-plant i { position: absolute; bottom: 0; left: 6px; width: 2px; height: 15px; border-radius: 100% 0; background: #78cdb1; transform: rotate(-5deg); }
.island-plant i:nth-child(2) { bottom: 8px; left: 1px; width: 8px; height: 6px; transform: rotate(28deg); }
.island-plant i:nth-child(3) { bottom: 11px; left: 7px; width: 7px; height: 5px; transform: rotate(-36deg); }
.plant-left { transform: translateZ(39px); }
.plant-center { top: 20%; left: 48%; transform: translateZ(43px) scale(.8); }
.plant-right { top: 34%; left: 75%; transform: translateZ(36px) scale(.75); }
.island-platform { position: absolute; z-index: 6; top: 47%; left: 15%; width: 20%; height: 15%; border: 1px solid rgba(183, 169, 255, .52); border-radius: 50%; background: linear-gradient(180deg, rgba(143, 129, 195, .35), rgba(49, 44, 67, .88)); box-shadow: 0 7px 10px rgba(8, 7, 16, .38); transform: translateZ(35px); }
.platform-right { top: 51%; left: 65%; width: 16%; height: 12%; transform: translateZ(31px); }
.world-crystal { position: absolute; z-index: 9; width: 28px; height: 40px; padding: 0; border: 1px solid rgba(222, 211, 255, .75); background: linear-gradient(145deg, rgba(234, 226, 255, .95), rgba(159, 140, 231, .46) 45%, rgba(120, 224, 189, .52)); clip-path: polygon(50% 0, 91% 25%, 78% 79%, 50% 100%, 20% 79%, 8% 25%); filter: drop-shadow(0 0 8px rgba(183, 169, 255, .7)); cursor: pointer; transition: filter .2s, scale .2s; }
.world-crystal:hover, .world-crystal:focus-visible, .world-crystal[aria-pressed="true"] { filter: drop-shadow(0 0 15px rgba(120, 224, 189, .95)); scale: 1.14; }
.crystal-left { top: 10%; left: 13%; }
.crystal-right { top: 23%; left: 79%; width: 20px; height: 30px; transform: rotate(14deg); }
.world-scene .orb-stage { top: 12%; right: 31%; width: 122px; height: 122px; z-index: 7; }
.world-scene .orb-core { inset: 20px; }
.world-scene .orb-ring { inset: 6px; }
.hero-art .preview-card { z-index: 8; width: min(58%, 300px); margin-top: 34px; margin-left: -180px; padding: 19px; border-color: rgba(201, 189, 255, .19); background: rgba(34, 31, 49, .74); backdrop-filter: blur(9px); }
.world-object-note { position: absolute; z-index: 9; top: 12px; left: 14px; max-width: 230px; padding: 10px 13px; border: 1px solid rgba(183, 169, 255, .27); border-radius: 11px; background: rgba(31, 28, 46, .94); box-shadow: 0 10px 30px rgba(5, 4, 14, .3); color: #e2dcf3; font-size: 10px; line-height: 1.5; }
.world-object-note[hidden] { display: none; }
.world-scene[data-atmosphere="low"] { --world-duration: 15s; --particle-duration: 12s; --world-motion: .48; --world-glow: .08; background: radial-gradient(ellipse at 51% 63%, rgba(65, 60, 92, .19), transparent 46%); }
.world-scene[data-atmosphere="low"] .world-particles span { opacity: .25; box-shadow: 0 0 6px 2px rgba(183, 169, 255, .2); }
.world-scene[data-atmosphere="high"] { --world-duration: 5.7s; --particle-duration: 4.3s; --world-motion: 1.4; --world-glow: .27; background: radial-gradient(ellipse at 51% 63%, rgba(87, 76, 139, .34), transparent 48%); }
.world-scene[data-atmosphere="high"] .world-particles span { opacity: .82; box-shadow: 0 0 14px 4px rgba(183, 169, 255, .44); }
.world-scene.is-plan-active .orb-stage { filter: drop-shadow(0 0 25px rgba(183, 169, 255, .72)); }
.world-scene.is-plan-active .orb-core { box-shadow: inset -12px -14px 25px rgba(7, 6, 18, .42), inset 8px 9px 18px rgba(255, 255, 255, .28), 0 0 34px rgba(183, 169, 255, .62); }
.world-scene[data-progress="1"] .plant-left,
.world-scene[data-progress="2"] .plant-left,
.world-scene[data-progress="2"] .plant-center,
.world-scene[data-progress="3"] .island-plant { opacity: 1; scale: 1; }
.world-scene[data-progress="2"] .plant-center { scale: 1.12; }
.world-scene.is-focus-mode { background: radial-gradient(ellipse at 55% 42%, rgba(147, 122, 230, .26), transparent 57%), radial-gradient(ellipse at 50% 68%, rgba(120, 224, 189, .13), transparent 49%); }
.world-scene.is-focus-mode .world-island { animation-duration: 10s; filter: brightness(1.16) saturate(1.12); }
.world-scene.is-focus-mode .world-particles { opacity: .72; }
.world-scene.is-focus-mode .world-halo { opacity: .72; border-color: rgba(183, 169, 255, .24); }
.world-scene.is-focus-mode .orb-core { animation: focus-core-pulse 3.2s ease-in-out infinite; }
@keyframes focus-core-pulse { 0%, 100% { box-shadow: inset -12px -14px 25px rgba(7, 6, 18, .42), inset 8px 9px 18px rgba(255, 255, 255, .25), 0 0 30px rgba(183, 169, 255, .42); } 50% { box-shadow: inset -12px -14px 25px rgba(7, 6, 18, .34), inset 8px 9px 18px rgba(255, 255, 255, .34), 0 0 52px rgba(183, 169, 255, .72), 0 0 78px rgba(120, 224, 189, .16); } }
.world-scene.is-win-celebration .island-top { box-shadow: inset 0 8px 18px rgba(226, 218, 255, .2), 0 4px 24px rgba(120, 224, 189, .38); }
.world-scene.is-win-celebration .world-island { animation: island-win .8s ease-out; }
.world-scene.is-win-celebration::after { animation: world-win-ripple .85s ease-out both; }
.world-scene.is-win-celebration .world-particles span { background: #b9ffe4; box-shadow: 0 0 14px 4px rgba(120, 224, 189, .62); }
@keyframes world-win-ripple { 0% { opacity: .75; transform: translate(-50%, -50%) scale(.35); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(16); } }
@keyframes island-win { 35% { translate: 0 -11px; } 70% { translate: 0 2px; } }
.orb-stage { --progress: 0%; position: absolute; z-index: 1; top: 10%; right: 8%; width: 148px; height: 148px; perspective: 700px; transform-style: preserve-3d; transform: perspective(700px) rotateX(var(--pointer-x, 0deg)) rotateY(var(--pointer-y, 0deg)); transition: transform .35s ease, filter .35s ease; filter: drop-shadow(0 0 var(--orb-glow, 14px) rgba(183, 169, 255, .38)); }
.orb-core { position: absolute; inset: 23px; overflow: hidden; border: 1px solid rgba(230, 222, 255, .55); border-radius: 50%; background: radial-gradient(circle at 33% 25%, rgba(255, 255, 255, .95) 0, rgba(207, 195, 255, .76) 5%, transparent 19%), radial-gradient(circle at 36% 27%, #ded5ff 0, #a799ed 19%, #6252a0 46%, #39304f 72%, #292439 100%); box-shadow: inset -12px -14px 25px rgba(7, 6, 18, .54), inset 8px 9px 18px rgba(255, 255, 255, .22), 0 0 35px rgba(183, 169, 255, .28); transform: translateZ(15px); }
.orb-core::after { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, transparent 35%, rgba(120, 224, 189, .24) 68%, transparent 78%); content: ""; }
.orb-shine { position: absolute; top: 17%; left: 21%; width: 24%; height: 13%; border-radius: 50%; background: rgba(255, 255, 255, .72); filter: blur(6px); transform: rotate(-35deg); }
.orb-ring { position: absolute; inset: 7px; border: 1px solid rgba(205, 193, 255, .37); border-radius: 50%; transform-style: preserve-3d; }
.orb-ring-back { transform: rotateX(70deg) rotateY(-15deg) translateZ(-9px); }
.orb-ring-front { border-color: transparent; background: conic-gradient(from -80deg, var(--mint) var(--progress), rgba(183, 169, 255, .21) var(--progress)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - .3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - .3px)); transform: rotateX(70deg) rotateY(-15deg) translateZ(24px); transition: background .4s ease; }
.orb-stage::before { position: absolute; inset: 0; border: 1px solid rgba(183, 169, 255, .22); border-radius: 50%; content: ""; transform: rotateY(72deg) rotateX(17deg); }
.orb-stage.is-rippling .orb-ripple { position: absolute; inset: -2px; border: 1px solid rgba(120, 224, 189, .7); border-radius: 50%; animation: orb-ripple .85s ease-out both; }
.orb-stage.is-rescuing { filter: drop-shadow(0 0 23px rgba(183, 169, 255, .68)); }
.orb-stage.is-rescuing .orb-ring-front { animation: rescue-ring-turn 14s linear infinite; }
.orb-stage.is-rescuing .orb-ring-back { animation: rescue-ring-turn 18s linear infinite reverse; }
.orb-stage.is-rescuing .orb-core { box-shadow: inset -12px -14px 25px rgba(7, 6, 18, .48), inset 8px 9px 18px rgba(255, 255, 255, .26), 0 0 42px rgba(183, 169, 255, .52); }
.orb-stage.is-rescue-success .orb-ripple { position: absolute; inset: -2px; border: 2px solid var(--mint); border-radius: 50%; animation: rescue-success-ripple 1.05s ease-out both; }
.orb-stage.is-rescue-success .orb-core { box-shadow: inset -12px -14px 25px rgba(7, 6, 18, .42), inset 8px 9px 18px rgba(255, 255, 255, .3), 0 0 48px rgba(120, 224, 189, .63); }
@keyframes orb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes orb-ripple { from { opacity: .8; transform: scale(.76); } to { opacity: 0; transform: scale(1.7); } }
@keyframes rescue-ring-turn { to { transform: rotateX(70deg) rotateY(-15deg) rotateZ(360deg) translateZ(24px); } }
@keyframes rescue-success-ripple { from { opacity: .95; transform: scale(.72); } to { opacity: 0; transform: scale(2.1); } }
.orb-stage { animation: orb-float 7s ease-in-out infinite; }
.rescue-orb { position: relative; top: auto; right: auto; flex: 0 0 78px; width: 78px; height: 78px; margin-right: 16px; }
.rescue-orb .orb-core { inset: 13px; }
.rescue-orb .orb-ring { inset: 3px; }
.rescue-orb .orb-ring-front { transform: rotateX(70deg) rotateY(-15deg) translateZ(12px); }
.rescue-orb .orb-ring-back { transform: rotateX(70deg) rotateY(-15deg) translateZ(-5px); }
.rescue-orb.is-rescuing .orb-ring-front { animation-name: rescue-small-ring-turn; }
.rescue-orb.is-rescuing .orb-ring-back { animation-name: rescue-small-ring-turn; }
@keyframes rescue-small-ring-turn { to { transform: rotateX(70deg) rotateY(-15deg) rotateZ(360deg) translateZ(12px); } }
.preview-card { position: relative; z-index: 1; width: min(76%, 350px); padding: 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 19px; background: rgba(38, 35, 54, .96); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); transform: rotate(-2deg); animation: card-float 6s ease-in-out infinite; }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.preview-top { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.preview-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: rgba(120, 224, 189, .11); color: var(--mint); font-size: 14px; }
.preview-dots { margin-left: auto; font-size: 19px; letter-spacing: 2px; }
.preview-card h2 { margin: 20px 0 5px; font: 700 20px var(--font-display); letter-spacing: -.04em; }
.preview-card > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.preview-divider { height: 1px; background: var(--line); margin-bottom: 9px; }
.preview-next { display: flex; align-items: center; gap: 10px; padding: 10px 1px; font-size: 11px; font-weight: 600; }
.preview-number { color: var(--mint); font-size: 9px; font-weight: 700; }
.preview-arrow { margin-left: auto; color: var(--faint); }
.muted-next { color: var(--muted); }
.muted-next .preview-number { color: var(--faint); }
.preview-progress { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 9px; background: #383449; }
.preview-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint); transition: width .35s ease; }
.preview-caption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--faint); font-size: 9px; }
.preview-caption strong { color: var(--mint); }
.floating-note { position: absolute; z-index: 2; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 11px; background: rgba(41, 38, 58, .92); box-shadow: var(--shadow); color: var(--muted); font-size: 10px; }
.note-top { top: 18%; right: 4%; transform: rotate(3deg); }
.note-top span { margin-left: 7px; color: var(--mint); }
.note-bottom { bottom: 14%; left: 4%; transform: rotate(-3deg); }
.note-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--mint); }
.home-strip { position: relative; margin-top: 38px; padding: 17px 20px; display: flex; align-items: center; gap: 18px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.strip-label { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.home-strip strong { color: #d6d1e5; font: 500 12px var(--font-display); }
.strip-sparkle { margin-left: auto; color: var(--mint); }

.view-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.view-heading h1 { font-size: clamp(38px, 5vw, 53px); margin: 13px 0 9px; }
.view-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.workspace { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 19px; }
.task-workspace { display: block; }
.workflow-stage[hidden] { display: none; }
.journey-progress { display: flex; align-items: center; gap: 10px; margin: -8px 0 22px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.journey-stage { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: 10px; font-weight: 700; white-space: nowrap; }
.journey-stage b { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 9px; }
.journey-stage.is-current { color: var(--accent-bright); }
.journey-stage.is-current b { border-color: var(--accent); background: rgba(183, 169, 255, .12); color: var(--accent-bright); }
.journey-stage.is-complete { color: var(--mint); }
.journey-stage.is-complete b { border-color: rgba(120, 224, 189, .45); background: rgba(120, 224, 189, .1); color: var(--mint); }
.journey-connector { flex: 1; min-width: 14px; height: 1px; background: var(--line); }
.journey-status { margin-left: auto; color: var(--muted); font-size: 10px; text-align: right; }
.settings-stage { max-width: 820px; margin-inline: auto; }
.settings-stage .panel-head { align-items: flex-start; }
.settings-stage .panel-head h2 { margin-top: 5px; font-size: 19px; }
.workflow-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .07); }
.plan-task-heading { display: flex; align-items: center; gap: 10px; padding: 0 2px 4px; }
.plan-task-heading > strong { overflow-wrap: anywhere; font: 700 13px var(--font-display); }
.plan-task-heading .text-button { margin-left: auto; }
.rescue-disclosure { padding: 12px 15px; border: 1px solid rgba(120, 224, 189, .16); border-radius: 14px; background: rgba(120, 224, 189, .025); }
.rescue-disclosure > summary { color: var(--mint); cursor: pointer; font-size: 11px; font-weight: 700; }
.rescue-disclosure > summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.rescue-disclosure .rescue-panel { margin-top: 13px; }
.completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.plan-complete-message > p { margin: 6px 0 0; color: var(--muted); font-size: 11px; font-weight: 400; }
.completion-actions .text-button { padding-inline: 5px; }
.panel, .steps-panel, .wins-panel { min-width: 0; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.tilt-card { transform-style: preserve-3d; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.tilt-card:hover { border-color: rgba(183, 169, 255, .34); box-shadow: 0 18px 42px rgba(5, 4, 14, .24); }
.preview-card { transform-style: preserve-3d; transition: transform .22s ease; }
.preview-card:hover { border-color: rgba(183, 169, 255, .35); }
.tilt-card.is-tilting, .preview-card.is-tilting { transition: transform .08s ease-out; }
.panel { padding: 22px; }
.panel-head, .field-top, .steps-head, .card-topline, .wins-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head { margin-bottom: 22px; }
.panel-head h2 { margin: 0; font: 700 15px var(--font-display); }
.index, .chip { padding: 7px 9px; border-radius: 8px; background: var(--surface-raised); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.field { margin: 0 0 19px; }
.field-top { margin-bottom: 9px; }
.field label, .field-label { color: var(--text); font-size: 12px; font-weight: 700; }
.field-optional { color: var(--faint); font-size: 9px; }
.field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline-offset: 2px; background: #1b1928; color: var(--text); font-size: 12px; }
.field select { min-height: 42px; }
.field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.field textarea[aria-invalid="true"] { border-color: #ff9aa9; }
.field select:focus, .field textarea:focus { border-color: var(--accent); }
.helper { color: var(--muted); font-size: 11px; line-height: 1.55; }
.field .helper { margin: 8px 0 0; }
.field-error { margin: 7px 0 0; color: #ffc1ca; font-size: 11px; line-height: 1.5; }
.field-error[hidden] { display: none; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 9px; }
.energy-field { min-width: 0; padding: 0; border: 0; }
.energy-field legend { padding: 0; margin-bottom: 10px; }
.energy-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.energy-options button { min-height: 43px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 9px; background: #1b1928; color: var(--muted); font-size: 10px; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.energy-options button span { display: block; margin-bottom: 4px; color: var(--accent); font-size: 14px; }
.energy-options button:hover { border-color: #68617f; color: var(--text); }
.energy-options button[aria-pressed="true"] { border-color: var(--accent); background: rgba(183, 169, 255, .1); color: var(--accent-bright); box-shadow: inset 0 0 0 1px rgba(183, 169, 255, .25); }
.barrier-field { padding: 15px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.barrier-field legend { padding: 0; margin-bottom: 5px; }
.barrier-intro { margin: 0 0 11px; }
.barrier-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.barrier-options button { min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #1b1928; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: left; transition: border-color .2s, background .2s, color .2s; }
.barrier-options button:hover { border-color: #68617f; color: var(--text); }
.barrier-options button[aria-checked="true"] { border-color: rgba(183, 169, 255, .78); background: rgba(183, 169, 255, .1); color: var(--accent-bright); box-shadow: inset 0 0 0 1px rgba(183, 169, 255, .25), inset 0 0 14px rgba(183, 169, 255, .045); }
.result { display: flex; flex-direction: column; gap: 12px; }
.start-card { padding: 21px 22px; border: 1px solid rgba(183, 169, 255, .28); border-radius: 18px; background: linear-gradient(125deg, rgba(183, 169, 255, .17), rgba(120, 224, 189, .06)); }
.kicker { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.card-topline { align-items: flex-start; }
.start-sparkle { color: var(--mint); font-size: 18px; }
.start-card h2 { max-width: 620px; margin: 18px 0 8px; font: 700 clamp(24px, 3vw, 34px)/1.15 var(--font-display); letter-spacing: -.05em; }
.start-card p { color: #c4bed3; font-size: 11px; line-height: 1.6; }
.start-card .time-guidance { max-width: 560px; margin: 0 0 14px; padding: 10px 12px; border-left: 2px solid var(--mint); border-radius: 0 9px 9px 0; background: rgba(120, 224, 189, .055); color: #e2ddee; font-size: 12px; line-height: 1.6; }
.start-focus-button { margin-top: 3px; background: var(--accent); color: var(--accent-ink); }
.rescue-panel { padding: 17px; overflow: hidden; border: 1px solid rgba(120, 224, 189, .19); border-radius: 17px; background: linear-gradient(120deg, rgba(120, 224, 189, .055), rgba(183, 169, 255, .065)); }
.rescue-copy { display: flex; align-items: center; min-height: 80px; }
.rescue-copy h2 { margin: 5px 0 4px; font: 700 14px var(--font-display); }
.rescue-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.rescue-start { width: 100%; margin-top: 13px; border: 1px solid rgba(120, 224, 189, .35); background: rgba(120, 224, 189, .1); color: var(--mint); }
.rescue-start:hover { background: rgba(120, 224, 189, .16); }
.rescue-session { margin-top: 16px; padding: 15px; border: 1px solid rgba(120, 224, 189, .17); border-radius: 13px; background: rgba(18, 17, 27, .34); text-align: center; }
.rescue-session[hidden], .rescue-start[hidden], .rescue-success[hidden] { display: none; }
.rescue-session-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; }
.rescue-action { max-width: 390px; margin: 15px auto 8px; color: var(--text); font: 600 14px/1.5 var(--font-display); }
.rescue-countdown { color: var(--mint); font: 700 45px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.06em; text-shadow: 0 0 22px rgba(120, 224, 189, .21); }
.rescue-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.rescue-controls .btn { min-height: 38px; padding-inline: 12px; font-size: 10px; }
.rescue-controls .btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.rescue-success { margin: 13px 0 0; color: var(--mint); font-size: 11px; font-weight: 700; text-align: center; animation: win-arrive .55s cubic-bezier(.2, .8, .3, 1.3); }
.rescue-success span { margin-right: 6px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.metric { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .018); }
.metric .big { margin: 7px 0 3px; color: var(--mint); font: 700 26px var(--font-display); letter-spacing: -.05em; }
.metric p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.steps-panel { padding: 17px; }
.steps-head { margin-bottom: 12px; }
.steps-panel > summary { cursor: pointer; list-style: none; }
.steps-panel > summary::-webkit-details-marker { display: none; }
.steps-panel > summary:focus-visible { border-radius: 8px; outline: 3px solid var(--mint); outline-offset: 5px; }
.plan-disclosure { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--mint); font-size: 17px; transition: transform .2s ease; }
.steps-panel[open] .plan-disclosure { transform: rotate(45deg); }
.steps-content { padding-top: 1px; }
.plan-optional-note { margin: 0 0 12px; }
.steps-head .kicker { display: block; margin-bottom: 5px; }
.steps-head strong { font: 700 13px var(--font-display); }
.progress-track { height: 8px; margin-bottom: 13px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; background: #171522; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint); transition: width .3s ease; }
.step-list { position: relative; display: grid; gap: 7px; }
.step-list::before { position: absolute; z-index: 0; top: 19px; bottom: 19px; left: 23px; border-left: 2px solid var(--line); content: ""; }
.step { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 10px; padding: 5px 9px; border: 1px solid transparent; border-radius: 11px; background: #29263a; transition: background .2s, border-color .2s, opacity .2s; }
.step.is-active { border-color: rgba(183, 169, 255, .64); background: rgba(183, 169, 255, .09); box-shadow: inset 3px 0 var(--accent); }
.step.is-next { border-color: rgba(120, 224, 189, .22); }
.step.is-done { border-color: rgba(120, 224, 189, .17); background: rgba(120, 224, 189, .055); }
.step.is-done .step-num { background: var(--mint); color: var(--accent-ink); }
.step-select { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: left; }
.step-select[aria-pressed="true"] .step-copy strong { color: var(--accent-bright); }
.step.is-done .step-select[aria-pressed="true"] .step-copy strong { color: var(--mint); }
.step-num { position: relative; z-index: 1; flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: #343047; color: var(--accent); font-size: 9px; font-weight: 700; }
.step-copy { min-width: 0; }
.step strong { display: block; margin: 2px 0 4px; font-size: 11px; }
.step p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.step-check { flex: 0 0 auto; width: 17px; height: 17px; margin: 3px 0 0 auto; accent-color: var(--mint); cursor: pointer; }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.step-actions .btn { min-height: 40px; }
.step-actions .start-focus-button { margin: 0; }
.plan-complete-message { margin: 12px 0 0; padding: 12px; border: 1px solid rgba(120, 224, 189, .28); border-radius: 10px; background: rgba(120, 224, 189, .08); color: var(--mint) !important; font-weight: 700; }
.plan-complete-message[hidden] { display: none; }
.progress-note { min-height: 16px; margin: 11px 0 0; font-size: 11px; }
.plan-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .07); }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; transition: color .2s; }
.text-button:hover { color: var(--mint); }

.focus-view { min-height: calc(100vh - 215px); }
.focus-shell { min-height: 590px; display: flex; flex-direction: column; padding: 7px 0; }
.back-button { align-self: flex-start; border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; transition: color .2s; }
.back-button:hover { color: var(--text); }
.back-button span { margin-right: 6px; }
.focus-content { position: relative; isolation: isolate; width: min(610px, 100%); margin: auto; padding: 30px 0 45px; text-align: center; }
.focus-content::before { position: absolute; z-index: -1; top: 59%; left: 50%; width: min(390px, 82vw); aspect-ratio: 1; border: 1px solid rgba(183, 169, 255, .13); border-radius: 50%; background: radial-gradient(circle, rgba(144, 123, 218, .1), transparent 62%); box-shadow: 0 0 0 28px rgba(183, 169, 255, .018), 0 0 0 60px rgba(183, 169, 255, .012); opacity: 0; pointer-events: none; content: ""; transform: translate(-50%, -50%) rotateX(67deg); transition: opacity .6s ease; }
.app.is-focus-mode .focus-content::before { opacity: 1; }
.app.is-focus-mode .focus-content h1 { text-shadow: 0 0 34px rgba(183, 169, 255, .23); }
.app.is-win-celebration .focus-content::before { border-color: rgba(120, 224, 189, .52); box-shadow: 0 0 0 28px rgba(120, 224, 189, .045), 0 0 0 60px rgba(120, 224, 189, .025); }
.focus-badge { display: inline-flex; align-items: center; margin-bottom: 35px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 10px; }
.focus-content > .eyebrow { margin-bottom: 22px; }
.focus-overline { margin-bottom: 12px; color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.focus-content h1 { margin: 0 auto 15px; color: var(--accent-bright); font: 700 clamp(34px, 5vw, 55px)/1.12 var(--font-display); letter-spacing: -.06em; }
.focus-step-instructions { max-width: 460px; margin: 0 auto 19px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.focus-task { display: grid; gap: 7px; margin: 0 auto 28px; color: var(--muted); font-size: 12px; }
.focus-task > span { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.focus-task strong { font-size: 12px; font-weight: 600; }
.timer { color: var(--text); font: 600 clamp(67px, 11vw, 104px)/1 var(--font-display); letter-spacing: -.07em; font-variant-numeric: tabular-nums; text-shadow: 0 0 45px rgba(183, 169, 255, .12); }
.focus-content.is-running .timer { animation: timer-glow 2.4s ease-in-out infinite; }
@keyframes timer-glow { 0%, 100% { text-shadow: 0 0 20px rgba(183, 169, 255, .1); } 50% { text-shadow: 0 0 40px rgba(183, 169, 255, .34); } }
.focus-prompt { max-width: 390px; margin: 16px auto 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.focus-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.focus-actions .btn { min-width: 145px; }
.focus-reassurance { margin: 22px 0 0; color: var(--faint); font-size: 10px; }
.focus-content.is-complete .timer { color: var(--mint); }
.focus-content.is-complete h1 { color: var(--mint); }
.focus-content.is-celebrating .focus-badge { animation: win-arrive .55s cubic-bezier(.2, .8, .3, 1.3); border-color: rgba(120, 224, 189, .4); }
@keyframes win-arrive { 0% { opacity: .55; transform: scale(.94); } 65% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }

.wins-heading { align-items: center; margin-bottom: 30px; }
.wins-view { max-width: 1050px; margin-inline: auto; }
.wins-total { position: relative; flex: 0 0 auto; min-width: 190px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.wins-total > span:first-child { display: block; color: var(--mint); font: 700 32px var(--font-display); }
.wins-total > span:nth-child(2) { color: var(--muted); font-size: 10px; }
.total-sparkle { position: absolute; top: 17px; right: 18px; color: var(--accent); }
.wins-panel { padding: 24px; }
.rescue-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.progress-stat { min-width: 0; padding: 13px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.progress-stat .kicker { display: block; min-height: 14px; font-size: 8px; }
.progress-stat strong { display: block; margin: 7px 0 3px; color: var(--mint); font: 700 24px var(--font-display); }
.progress-stat > span:last-child { color: var(--muted); font-size: 9px; line-height: 1.45; }
.strategy-summary { padding: 18px 0; }
.strategy-summary h2 { margin: 5px 0 0; font: 700 14px var(--font-display); }
.strategy-summary > p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.strategy-summary > p[hidden] { display: none; }
.strategy-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.strategy-chip { padding: 7px 9px; border: 1px solid rgba(120, 224, 189, .18); border-radius: 20px; background: rgba(120, 224, 189, .055); color: #bdebd9; font-size: 9px; }
.wins-panel-head { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.wins-panel-head .kicker { display: block; margin-bottom: 7px; }
.wins-panel-head h2 { margin: 0; font: 700 16px var(--font-display); }
.wins-stamp { color: var(--mint); font-size: 20px; }
.wins-list { display: grid; }
.win-item { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win-item:last-child { border-bottom: 0; }
.win-icon { flex: 0 0 33px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: rgba(120, 224, 189, .1); color: var(--mint); }
.win-details { min-width: 0; flex: 1; }
.win-details strong { display: block; overflow-wrap: anywhere; font-size: 11px; }
.win-details span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.win-duration { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.empty-wins { padding: 44px 18px 37px; text-align: center; }
.empty-icon { width: 43px; height: 43px; margin: 0 auto 14px; display: grid; place-items: center; border: 1px solid rgba(183, 169, 255, .2); border-radius: 14px; background: rgba(183, 169, 255, .07); color: var(--accent); font-size: 20px; }
.empty-wins h3 { margin-bottom: 8px; font: 700 16px var(--font-display); }
.empty-wins p { max-width: 360px; margin: auto; color: var(--muted); font-size: 11px; line-height: 1.7; }
.storage-note { margin-top: 12px; color: #e6cf91; font-size: 10px; }
.wins-cta { margin-top: 22px; }

.task-total-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.task-total-chip strong { color: var(--mint); }
.task-manager { margin: 0 0 18px; padding: 22px; }
.task-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.task-manager-heading .kicker { display: block; margin-bottom: 5px; }
.task-manager-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.plan-empty-state { min-height: 245px; padding: 35px 22px; display: grid; align-content: center; justify-items: center; border: 1px dashed rgba(183, 169, 255, .2); border-radius: 18px; background: radial-gradient(ellipse at 50% 0, rgba(183, 169, 255, .08), transparent 65%), rgba(255, 255, 255, .012); text-align: center; }
.plan-empty-state[hidden], .result[hidden] { display: none; }
.plan-empty-state h2 { margin: 0 0 7px; font: 700 17px var(--font-display); }
.plan-empty-state p { max-width: 390px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.wins-progress-section { margin-top: 44px; padding-top: 31px; border-top: 1px solid rgba(255, 255, 255, .07); }
.compact-heading { align-items: flex-start; margin-bottom: 19px; }
.compact-heading h2 { margin: 10px 0 7px; font: 700 clamp(25px, 3vw, 34px)/1.15 var(--font-display); letter-spacing: -.05em; }
.compact-heading h2 em { color: var(--accent); font-style: normal; }
.compact-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.task-add-form { display: flex; gap: 10px; }
.task-add-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #1b1928; color: var(--text); font-size: 12px; }
.task-add-form input::placeholder { color: var(--faint); }
.task-list-feedback { min-height: 16px; margin: 9px 2px 2px; color: var(--mint); font-size: 10px; }
.task-list { display: grid; gap: 9px; }
.task-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 34px; align-items: center; gap: 12px; min-height: 76px; padding: 12px 13px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 13px; background: linear-gradient(120deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008)); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.task-card:hover { transform: translateY(-2px); border-color: rgba(183, 169, 255, .3); background: rgba(183, 169, 255, .04); box-shadow: 0 12px 30px rgba(5, 4, 14, .2); }
.task-card.is-completed { border-color: rgba(120, 224, 189, .17); background: rgba(120, 224, 189, .025); }
.task-complete { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #5b566e; border-radius: 8px; background: #1a1826; color: var(--mint); font-size: 14px; transition: background .2s, border-color .2s, transform .2s; }
.task-complete:hover { transform: scale(1.08); border-color: var(--mint); }
.task-complete[aria-pressed="true"] { border-color: rgba(120, 224, 189, .65); background: rgba(120, 224, 189, .12); }
.task-card-copy { min-width: 0; display: grid; gap: 5px; }
.task-card-title { overflow-wrap: anywhere; font: 700 12px/1.45 var(--font-display); }
.task-card.is-completed .task-card-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(120, 224, 189, .55); }
.task-card-state { color: var(--faint); font-size: 9px; }
.task-card.is-completed .task-card-state { color: var(--mint); }
.task-plan-button, .task-delete { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 9px; font-weight: 700; transition: color .2s, border-color .2s, background .2s; }
.task-plan-button { padding: 0 11px; white-space: nowrap; }
.task-plan-button:hover { border-color: rgba(183, 169, 255, .5); color: var(--accent-bright); background: rgba(183, 169, 255, .08); }
.task-delete { width: 32px; font-size: 17px; }
.task-delete:hover { border-color: rgba(255, 120, 145, .45); color: #ffb5c3; background: rgba(255, 120, 145, .07); }
.task-empty { padding: 45px 16px 35px; text-align: center; }
.task-empty[hidden] { display: none; }
.task-empty h2 { margin: 0 0 8px; font: 700 16px var(--font-display); }
.task-empty p { max-width: 370px; margin: auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.progress-dashboard { display: grid; gap: 15px; }
.progress-hero { min-height: 220px; padding: 26px; display: flex; align-items: center; gap: 27px; background: radial-gradient(ellipse at 12% 50%, rgba(120, 224, 189, .055), transparent 46%), var(--surface); }
.progress-ring { --task-progress: 0%; position: relative; flex: 0 0 162px; width: 162px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) var(--task-progress), rgba(255, 255, 255, .07) 0); box-shadow: 0 0 32px rgba(120, 224, 189, .08); transition: background .45s ease, box-shadow .45s ease; }
.progress-ring::before { position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .06); border-radius: inherit; background: #211f30; content: ""; }
.progress-ring-center { position: relative; z-index: 1; display: grid; gap: 4px; text-align: center; }
.progress-ring-center strong { color: var(--mint); font: 700 32px var(--font-display); letter-spacing: -.05em; }
.progress-ring-center span { color: var(--muted); font-size: 9px; }
.progress-hero-copy { min-width: 0; }
.progress-hero-copy h2 { margin: 10px 0 7px; font: 700 clamp(20px, 3vw, 29px)/1.2 var(--font-display); letter-spacing: -.04em; }
.progress-hero-copy p { max-width: 440px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.progress-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.progress-stat-card { position: relative; min-height: 158px; padding: 17px; }
.progress-stat-card .kicker { display: block; margin: 14px 0 7px; font-size: 8px; }
.progress-stat-card > strong { display: block; color: var(--text); font: 700 28px var(--font-display); }
.progress-stat-card p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.stat-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; }
.mint-icon { color: var(--mint); background: rgba(120, 224, 189, .1); }
.lilac-icon { color: var(--accent); background: rgba(183, 169, 255, .1); }
.progress-latest { padding: 20px; }
.progress-latest .progress-track { margin: 15px 0 9px; }
.progress-latest > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.settings-panel { padding: 4px 22px; }
.setting-row { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.setting-row > div { max-width: 660px; }
.setting-row strong { font: 700 12px var(--font-display); }
.setting-row p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.settings-view { max-width: 940px; margin-inline: auto; }
.settings-back { margin-bottom: 20px; }
.settings-view .view-heading { margin-bottom: 20px; }
.setting-control { flex: 0 0 min(260px, 42%); display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 11px; }
.setting-control input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.setting-control output { flex: 0 0 68px; color: var(--accent-bright); font-weight: 700; text-align: right; }
.setting-control select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #1b1928; color: var(--text); font-size: 11px; }
.local-status { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.local-status .dot { width: 6px; height: 6px; margin-right: 6px; }
.switch { position: relative; flex: 0 0 44px; width: 44px; height: 25px; }
.switch input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 20px; background: #171522; pointer-events: none; transition: background .2s, border-color .2s; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); content: ""; transition: transform .2s, background .2s; }
.switch input:checked + .switch-track { border-color: rgba(120, 224, 189, .6); background: rgba(120, 224, 189, .13); }
.switch input:checked + .switch-track::after { background: var(--mint); transform: translateX(19px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--mint); outline-offset: 4px; }
.setting-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.user-reduced-motion *, .user-reduced-motion *::before, .user-reduced-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

.footer { padding: 17px 32px 25px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--faint); font-size: 10px; }
.footer strong { color: var(--text); font-family: var(--font-display); }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 17px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #f5f2ff; color: #211c32; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-left: 15px; }
}

@media (max-width: 900px) {
  .topbar { padding-inline: 22px; }
  main { padding: 38px 22px 50px; }
  .top-note { display: none; }
  .hero { gap: 20px; }
  .hero-art { min-height: 385px; }
  .hero-art .preview-card { margin-left: -125px; }
  .workspace { grid-template-columns: 1fr; gap: 13px; }
  .panel { padding: 18px; }
  .energy-options { gap: 5px; }
  .progress-hero { padding: 21px; }
  .progress-ring { flex-basis: 140px; width: 140px; }
}

@media (max-width: 680px) {
  .topbar { position: relative; z-index: 5; width: 100%; min-height: auto; padding: 12px 16px; flex-wrap: nowrap; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-icon { width: 31px; height: 31px; }
  .settings-open { padding: 7px 9px; font-size: 10px; }
  .app-layout { display: block; width: 100%; }
  .sidebar { display: none; }
  main { padding: 25px 16px calc(104px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; gap: 1px; padding: 8px 5px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .09); background: rgba(25, 23, 37, .95); box-shadow: 0 -10px 35px rgba(5, 4, 14, .26); backdrop-filter: blur(18px); }
  .mobile-nav-link { flex: 1; min-width: 0; min-height: 48px; padding: 4px 1px; display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-radius: 9px; background: transparent; color: var(--faint); font-size: 8px; font-weight: 700; white-space: nowrap; }
  .mobile-nav-link > span { font-size: 16px; line-height: 1; }
  .mobile-nav-link[aria-current="page"] { color: var(--accent-bright); background: rgba(183, 169, 255, .08); }
  .mobile-nav-link[aria-current="page"] > span { color: var(--mint); }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 14px; }
  .hero-copy { padding: 22px 0 5px; }
  .hero h1 { font-size: clamp(42px, 11vw, 61px); }
  .hero-art { min-height: 335px; }
  .hero-art .preview-card { width: min(76%, 310px); margin: 48px 0 0; }
  .home-strip { align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; padding: 14px; }
  .strip-label { width: calc(100% - 26px); }
  .home-strip strong { width: 100%; line-height: 1.6; }
  .strip-sparkle { position: absolute; align-self: flex-start; right: 30px; }
  .view-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .view-heading h1 { font-size: 40px; }
  .journey-progress { gap: 5px; padding: 10px 8px; flex-wrap: wrap; }
  .journey-stage { gap: 4px; font-size: 8px; }
  .journey-stage b { flex: 0 0 20px; width: 20px; height: 20px; }
  .journey-status { flex: 1 0 100%; margin: 2px 0 0; text-align: left; }
  .journey-connector { min-width: 8px; }
  .workflow-actions { flex-direction: column-reverse; }
  .workflow-actions .btn { width: 100%; }
  .step-actions .btn { flex: 1 1 100%; }
  .completion-actions { align-items: stretch; flex-direction: column; }
  .completion-actions .btn { width: 100%; }
  .plan-task-heading { flex-wrap: wrap; }
  .workspace { grid-template-columns: 1fr; }
  .rescue-progress { grid-template-columns: 1fr; }
  .progress-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; }
  .progress-stat .kicker { grid-column: 1; }
  .progress-stat strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .progress-stat > span:last-child { grid-column: 1; }
  .panel { padding: 18px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 13px; }
  .metric .big { font-size: 23px; }
  .focus-view { min-height: calc(100vh - 190px); }
  .focus-shell { min-height: 560px; }
  .focus-content { padding: 26px 0; }
  .focus-badge { margin-bottom: 28px; }
  .wins-heading { align-items: flex-start; }
  .wins-total { min-width: 100%; }
  .wins-panel { padding: 18px; }
  .footer { width: 100%; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); flex-direction: column; gap: 7px; }
  .task-manager { padding: 15px; }
  .task-manager-heading { align-items: flex-start; }
  .task-card { grid-template-columns: 27px minmax(0, 1fr) 32px; gap: 9px; }
  .task-plan-button { grid-column: 2; grid-row: 2; justify-self: start; }
  .task-delete { grid-column: 3; grid-row: 1 / span 2; }
  .task-add-form { gap: 7px; }
  .task-add-form .btn { padding-inline: 11px; white-space: nowrap; }
  .progress-hero { align-items: flex-start; flex-direction: column; }
  .progress-ring { flex-basis: auto; width: 125px; }
  .progress-ring-center strong { font-size: 27px; }
  .progress-stats-grid { grid-template-columns: 1fr; }
  .progress-stat-card { min-height: 126px; }
  .setting-row { align-items: flex-start; padding: 18px 0; }
  .local-status { white-space: nowrap; }
  .setting-control { flex-basis: min(190px, 48%); flex-wrap: wrap; justify-content: flex-end; }
  .setting-control select { min-width: 0; }
}

@media (max-width: 380px) {
  .energy-options button { font-size: 9px; }
  .energy-options button span { font-size: 12px; }
  .barrier-options { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .preview-card { width: 82%; padding: 18px; }
  .floating-note { font-size: 9px; }
  .rescue-copy { align-items: flex-start; }
  .rescue-orb { flex-basis: 62px; width: 62px; height: 62px; margin-right: 10px; }
  .rescue-orb .orb-core { inset: 11px; }
  .rescue-controls { gap: 5px; }
  .rescue-controls .btn { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
