html[data-theme="dark"]{color-scheme:dark;--ink:#edf3ec;--muted:#a0ada4;--paper:#141b18;--surface:#1d2722;--line:#34433b;--green:#2b3b30;--green-deep:#b5d4b6;--coral:#d99aa3;--blue:#95b6a0;background:var(--paper);color:var(--ink)}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 50% -18%,rgba(60,79,66,.24),transparent 48%),var(--paper);color:var(--ink)}
html[data-theme="dark"] .topbar{border-color:rgba(102,124,108,.35)}
html[data-theme="dark"] .greeting-date,html[data-theme="dark"] .subhead,html[data-theme="dark"] .hero-foot,html[data-theme="dark"] .hero-card p,html[data-theme="dark"] .principle-card p,html[data-theme="dark"] .trust-line,html[data-theme="dark"] .task-copy p,html[data-theme="dark"] .task-meta,html[data-theme="dark"] .page-heading .subhead,html[data-theme="dark"] .composer-hint,html[data-theme="dark"] .privacy-copy{color:#a0ada4}
html[data-theme="dark"] .greeting h1,html[data-theme="dark"] .page-heading h1,html[data-theme="dark"] .hero-card h2,html[data-theme="dark"] .section-heading h2,html[data-theme="dark"] .principle-card h3,html[data-theme="dark"] .empty-state h2,html[data-theme="dark"] .route-card h2,html[data-theme="dark"] .journal-card h2{color:#edf3ec}
html[data-theme="dark"] .hero-card{border-color:#34463b;background:#1a2822;box-shadow:0 16px 42px rgba(0,0,0,.28)}
html[data-theme="dark"] .hero-art{background:linear-gradient(145deg,#1b2925,#14211f 58%,#182b27)}
html[data-theme="dark"] .hero-art::after{background:radial-gradient(ellipse at 18% 72%,rgba(93,125,99,.16),transparent 32%),radial-gradient(ellipse at 76% 28%,rgba(116,151,122,.12),transparent 36%);opacity:.8}
html[data-theme="dark"] .card-kicker,html[data-theme="dark"] .kicker-mark{color:#b5d4b6}
html[data-theme="dark"] .hero-card h2 em{color:#b5d4b6}
html[data-theme="dark"] .hero-card p{color:#bcc9bd}
html[data-theme="dark"] .principle-card,html[data-theme="dark"] .task-preview,html[data-theme="dark"] .task-row,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .route-card,html[data-theme="dark"] .journal-card,html[data-theme="dark"] .profile-menu,html[data-theme="dark"] .journal-entry{border-color:#34433b;background:#1d2822}
html[data-theme="dark"] .task-check{border-color:#78977d}
html[data-theme="dark"] .soft-button,html[data-theme="dark"] .secondary-button,html[data-theme="dark"] .task-actions button,html[data-theme="dark"] .route-actions button,html[data-theme="dark"] .modal-actions button{border-color:#43564a;background:#26362d;color:#d5e3d5}
html[data-theme="dark"] .secondary-button span,html[data-theme="dark"] .text-link,html[data-theme="dark"] .nav-item.selected{color:#b5d4b6}
html[data-theme="dark"] .bottom-nav{border-color:rgba(185,207,190,.18);background:rgba(26,39,32,.72);box-shadow:0 12px 36px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(255,255,255,.04)}
html[data-theme="dark"] .bottom-nav::before{background:linear-gradient(155deg,rgba(255,255,255,.1),transparent 36%,rgba(255,255,255,.025) 76%,transparent)}
html[data-theme="dark"] .nav-item{color:#a2afa5}html[data-theme="dark"] .nav-item.selected{background:rgba(91,126,99,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
html[data-theme="dark"] .composer,html[data-theme="dark"] .bubble.assistant,html[data-theme="dark"] .modal,html[data-theme="dark"] .review-section,html[data-theme="dark"] .priority-option{border-color:#3b4b41;background:#1d2822;color:#edf3ec}
html[data-theme="dark"] .bubble.user{background:#2b3b30;color:#e7f0e7}
html[data-theme="dark"] .form-control{border-color:#435349;background:#17211c;color:#edf3ec}
html[data-theme="dark"] .voice-button{background:#2b3b30;color:#c5ddc6}
html[data-theme="dark"] .round-button{border-color:#435349;background:#1d2822;color:#d6e5d7}
html[data-theme="dark"] .profile-menu button{border-color:#34433b}
html[data-theme="dark"] .menu-icon{background:#2b3b30;color:#b5d4b6}
html[data-theme="dark"] .profile-menu small,html[data-theme="dark"] .journal-entry time,html[data-theme="dark"] .journal-entry p,html[data-theme="dark"] .modal p,html[data-theme="dark"] .empty-state p,html[data-theme="dark"] .route-card p,html[data-theme="dark"] .journal-card p{color:#a0ada4}
html[data-theme="dark"] .quick-prompts button{border-color:#3b4b41;background:#202e26;color:#c2d0c4}
html[data-theme="dark"] .theme-settings{border-color:#34433b;background:#1d2822;color:#edf3ec}
html[data-theme="dark"] .theme-settings p{color:#a0ada4}
html[data-theme="dark"] .theme-options{background:#15201a}
html[data-theme="dark"] .theme-options button{color:#aebbb0}
html[data-theme="dark"] .theme-options button[aria-pressed="true"]{background:#3a5542;color:#f0f5ed;box-shadow:0 1px 4px rgba(0,0,0,.35)}
html[data-theme="dark"] #growthBg stop:first-child{stop-color:#1b2925}html[data-theme="dark"] #growthBg stop:nth-child(2){stop-color:#192724}html[data-theme="dark"] #growthBg stop:last-child{stop-color:#1d342c}
.day-sun{fill:#f2dba7;filter:drop-shadow(0 0 10px rgba(246,222,172,.42));transition:opacity .8s}
.night-moon-glow,.night-moon,.moon-crater,.night-stars,.night-comet{opacity:0;transition:opacity .8s}
.night-moon-glow{fill:#dce8dc;filter:blur(8px)}.night-moon{fill:#e7ebdc;stroke:#f8faef;stroke-width:1.5;filter:drop-shadow(0 0 9px rgba(230,241,223,.34))}.moon-crater{fill:#bac8b8;opacity:0}
.night-star{fill:#efffee;filter:drop-shadow(0 0 3px rgba(220,246,226,.8));animation:star-twinkle 3s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.night-star:nth-child(3n){animation-delay:.8s}.night-star:nth-child(3n + 1){animation-delay:1.7s}.night-star:nth-child(4n){animation-delay:2.3s}
.night-comet{display:none;opacity:0;transform-box:view-box;transform-origin:0 0;animation:comet-cross 14s ease-in-out infinite;pointer-events:none}
.night-comet path{filter:drop-shadow(0 0 4px rgba(226,249,231,.75))}.night-comet circle{filter:drop-shadow(0 0 5px rgba(241,255,244,.95))}
@keyframes star-twinkle{0%,100%{opacity:.48}50%{opacity:1;filter:drop-shadow(0 0 7px rgba(240,255,241,1))}}
@keyframes comet-cross{0%,66%{opacity:0;transform:translate(0,0)}69%{opacity:1}84%{opacity:1;transform:translate(-118px,74px)}90%,100%{opacity:0;transform:translate(-132px,84px)}}
html[data-theme="dark"] .land-hill-back{fill:#2b4438}html[data-theme="dark"] .land-hill-front{fill:#20382e}
html:not([data-theme="dark"]) .land-hill-back{fill:#c5d9ca}html:not([data-theme="dark"]) .land-hill-front{fill:#acc8b3}
html[data-theme="dark"] .growth-glow,html[data-theme="dark"] .day-sun,html[data-theme="dark"] .growth-sparkles{display:none}
html[data-theme="dark"] .night-moon-glow{opacity:.44}html[data-theme="dark"] .night-moon{opacity:1}html[data-theme="dark"] .moon-crater{opacity:.32}html[data-theme="dark"] .night-stars{opacity:1}html[data-theme="dark"] .night-comet{display:inline;opacity:0}
html[data-theme="dark"] .wind-stream{opacity:.25;animation-duration:17s}
html[data-theme="dark"] .plant-sway{animation-duration:10s}.plant-leaf-left,.plant-leaf-right,.plant-leaf-top{transition:fill .8s,stroke .8s}
html[data-theme="dark"] .plant-stem{stroke:#789681}html[data-theme="dark"] .plant-leaf-left path:first-child{fill:#53785f;stroke:#709275}html[data-theme="dark"] .plant-leaf-right path:first-child{fill:#436b55;stroke:#66896b}html[data-theme="dark"] .plant-leaf-top path:first-child{fill:#62846a;stroke:#78977b}html[data-theme="dark"] .plant-leaf path:nth-child(2){stroke:#91a892}
html[data-theme="dark"] .hero-haiku{color:#e3eee4;text-shadow:0 1px 14px rgba(10,20,17,.9)}
.theme-settings{margin:14px 0 15px;padding:17px;border:1px solid var(--line);border-radius:17px;background:var(--surface)}
.theme-settings h2{margin:3px 0 5px;font:700 16px/1.25 var(--serif);letter-spacing:-.04em}
.theme-settings>p:not(.eyebrow){margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.theme-options{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:4px;margin-top:13px;padding:4px;border-radius:13px;background:#f0f3ee}
.theme-options button{min-height:38px;padding:6px 8px;border:0;border-radius:10px;background:transparent;color:#6f7b72;font-size:10px;font-weight:600;white-space:nowrap;transition:background .2s,color .2s}
.theme-options button[aria-pressed="true"]{background:#fff;color:#244b37;box-shadow:0 1px 4px rgba(32,48,37,.12)}
@media(max-width:390px){.theme-settings{padding:14px}.theme-options button{font-size:9px;padding-inline:4px}}
@media(prefers-reduced-motion:reduce){.night-star,.night-comet{animation:none!important}.night-star{opacity:.85!important}.night-comet{display:none}}
@media(max-width:600px){.hero-haiku{top:98px}.celestial-scene{transform-box:view-box;transform:translate(-135px,-38px)}}

.growth-glow{transform-origin:190px 110px}
html[data-theme="dark"] .profile-portrait{border-color:#34433b;background:#1d2822;color:#edf3ec}
html[data-theme="dark"] .profile-portrait>p:not(.eyebrow),html[data-theme="dark"] .profile-portrait h2{color:#e5eee5}
html[data-theme="dark"] .profile-portrait .eyebrow{color:#b5d4b6}
html[data-theme="dark"] .profile-history{border-color:#34433b}
html[data-theme="dark"] .profile-history>summary,html[data-theme="dark"] .profile-history article p,html[data-theme="dark"] .profile-history article small{color:#a9b8aa}
html[data-theme="dark"] .service-status{border-color:#54473b;border-left-color:#c18e6e;background:#302820;color:#e0c7ad}
html[data-theme="dark"] .admin-analytics{border-color:#3c4e42;background:#17221c;color:#edf3ec}
html[data-theme="dark"] .admin-analytics-heading .eyebrow{color:#a9c5ad}
html[data-theme="dark"] .admin-analytics-heading h3{color:#edf3ec}
html[data-theme="dark"] .admin-analytics-heading button{border-color:#46594b;background:#26362d;color:#e5eee5}
html[data-theme="dark"] .admin-metric-grid>div{border-color:#394b3f;background:#202d25}
html[data-theme="dark"] .admin-metric-grid small{color:#aebcb0}
html[data-theme="dark"] .admin-metric-grid b{color:#f0f5ef}
html[data-theme="dark"] .admin-analytics-details{border-color:#405247}
html[data-theme="dark"] .admin-analytics-details summary{color:#e0eae1}
html[data-theme="dark"] .admin-analytics-details p,html[data-theme="dark"] .admin-analytics-columns{color:#b0bdb1}
html[data-theme="dark"] .admin-analytics-columns li b{color:#eaf2e9}
html[data-theme="dark"] .admin-help{color:#aab8ac!important}
html[data-theme="dark"] .admin-config-status{color:#aab8ac}
html[data-theme="dark"] .admin-config-status.success{color:#a9d4ad}
html[data-theme="dark"] .admin-config-status.error{color:#f0a9a2}
html[data-theme="dark"] .safety-note{border-left-color:#c98692;background:#302329;color:#e2bdc3}
.improvement-settings{display:grid;gap:10px}
.improvement-settings .eyebrow{margin-bottom:0}
.improvement-case-state{display:grid;gap:7px;color:var(--muted);font-size:11px;line-height:1.4}
.improvement-case-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:var(--paper)}
.improvement-case-row button{padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-size:10px}
.improvement-settings>.secondary-button{justify-self:start;margin-top:0}
.improvement-consent-check{display:flex;align-items:flex-start;gap:10px;margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12px;line-height:1.5}
.improvement-consent-check input{flex:0 0 auto;margin-top:3px;accent-color:#477659}
.improvement-review-queue{margin:18px 0}
.improvement-review-case{margin:10px 0;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.improvement-review-case h4{margin:0 0 10px;font-size:13px}
.improvement-review-case details{max-height:45vh;overflow:auto;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.improvement-review-case summary{cursor:pointer;font-size:11px;font-weight:700}
.improvement-review-transcript p{margin:9px 0;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.improvement-review-case .form-label{display:block;margin-top:12px}
.improvement-review-case .form-control{width:100%;margin-top:6px}
.improvement-review-case .modal-actions{gap:8px;flex-wrap:wrap}
html[data-theme="dark"] .improvement-case-row,html[data-theme="dark"] .improvement-review-case{border-color:#405247;background:#202d25;color:#e5eee5}
html[data-theme="dark"] .improvement-case-row button,html[data-theme="dark"] .improvement-review-case details{border-color:#43564a;background:#17211c;color:#e5eee5}

.annual-horizon-note{line-height:1.55;overflow-wrap:anywhere}
html[data-theme="dark"] :is(.annual-direction-item,.personal-goal-item,.sprint-direction-review,.year-direction-edit){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] :is(.annual-direction-item,.personal-goal-item,.sprint-direction-review) :is(p,small){color:var(--muted)}
html[data-theme="dark"] .year-direction-edit .form-label{color:var(--ink)}
html[data-theme="dark"] .sprint-review-prompt{background:var(--surface);border-color:var(--line)}
.achievement-panel{margin:15px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.achievement-detail-image{display:block;width:100%;height:auto;border-radius:14px;margin:0 0 20px}
.achievement-panel h2{margin:4px 0 6px;font:700 20px/1.2 var(--serif);letter-spacing:-.04em}
.achievement-intro{margin:0 0 14px;color:var(--muted);font-size:11px;line-height:1.5}
.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.achievement-card{min-width:0;min-height:108px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:10px;border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--ink);text-align:left;transition:transform .18s,border-color .18s,background .18s}
.achievement-card:active{transform:scale(.98)}
.achievement-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--green);color:#6c8e71;transition:color .2s,background .2s}
.achievement-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.achievement-card b{font-size:10px;line-height:1.3}
.achievement-card small{color:var(--muted);font-size:8px;line-height:1.35}
.achievement-card.locked{opacity:.62;filter:saturate(.2)}
.achievement-card.unlocked{border-color:#aac9ad;background:linear-gradient(145deg,var(--surface),rgba(205,226,207,.25))}
.achievement-card.unlocked .achievement-icon{background:#e4f0e5;color:#2f7450}
.achievement-earned-date{font-size:10px!important}
.admin-menu{margin:24px 0 16px;padding:16px;border:1px solid rgba(88,126,94,.38);border-radius:18px;background:linear-gradient(145deg,rgba(228,238,226,.74),rgba(247,248,242,.8))}
.admin-menu>.eyebrow{margin:0 0 5px;color:#55785c}
.admin-menu>h2{margin:0;font:700 18px/1.2 var(--serif);letter-spacing:-.035em}
.admin-section-copy{margin:6px 0 12px;color:var(--muted);font-size:10px;line-height:1.45}
html[data-theme="dark"] .achievement-panel{border-color:#34433b;background:#1d2822;color:#edf3ec}
html[data-theme="dark"] .achievement-card{border-color:#394a3f;background:#17211c;color:#e8f0e7}
html[data-theme="dark"] .achievement-card.unlocked{border-color:#59795f;background:linear-gradient(145deg,#22362a,#192820)}
html[data-theme="dark"] .achievement-card.unlocked .achievement-icon{background:#304b37;color:#afd4b0}
html[data-theme="dark"] .admin-menu{border-color:#3c5944;background:linear-gradient(145deg,#1d2e23,#18231d)}
html[data-theme="dark"] .admin-menu>.eyebrow{color:#afd1b2}
@media(max-width:430px){.achievement-panel{padding:14px}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.achievement-card{min-height:102px}}
