/* Shared mobile navigation, disclosure controls and accessible themes. */
.mobile-brand{display:none}.profile-menu-wrap{position:relative}.profile-link{border:0;background:transparent;color:var(--ink);cursor:pointer}.profile-popover{position:absolute;right:0;top:calc(100% + 12px);width:min(310px,88vw);padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);z-index:60;display:grid;gap:12px}.profile-popover-head{display:flex;align-items:center;gap:11px}.profile-popover-head>div{min-width:0}.profile-popover-head strong,.profile-popover-head small{display:block;overflow-wrap:anywhere}.profile-popover small{color:var(--muted);overflow-wrap:anywhere}.profile-activity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;background:var(--canvas);font-size:.75rem}.profile-activity span{color:var(--muted)}.profile-activity strong{text-align:right;font-size:.75rem}.profile-popover a{padding:8px 0}.button.danger{background:#bb283e;color:#fff;border:1px solid #bb283e}.button.danger:hover{background:#941d30;color:#fff}.fold-heading{position:relative;display:flex;align-items:center;gap:12px}.fold-toggle{flex:none;margin-left:auto;border:1px solid var(--line);background:var(--canvas);color:var(--ink);border-radius:10px;min-width:44px;min-height:44px;font-size:1.25rem}.fold-body{margin-top:16px}.fold-body>.goal-footer{margin-top:18px}.settings-menu{display:grid;padding:8px 22px}.settings-menu>a{display:flex;align-items:center;justify-content:space-between;padding:20px 0;text-decoration:none;color:var(--ink);border-bottom:1px solid var(--line)}.settings-menu>a:last-child{border:0}.settings-menu small{display:block;color:var(--muted);margin-top:4px}.settings-menu>a>span{font-size:1.6rem}.card>p+p{margin-top:12px}#cloud-versions{max-height:65vh;overflow:auto}.cloud-auth .mobile-brand{display:none}
:root[data-theme=dark]{color-scheme:dark;--ink:#e6eef2;--muted:#b0c3cd;--surface:#192b35;--canvas:#101d25;--line:#3b505c;--navy:#10242d;--teal:#7bddbe;--mint:#244e43;--blue:#a8c4ff;--danger:#ff98a6;--shadow:0 8px 28px #0005}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .card,[data-theme=dark] .goal-card,[data-theme=dark] .stat-card,[data-theme=dark] .log-toolbar,[data-theme=dark] .topbar,[data-theme=dark] .log-save-bar,[data-theme=dark] .config-subspace,[data-theme=dark] .log-subspace,[data-theme=dark] .modal{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .button.secondary,[data-theme=dark] .icon-button,[data-theme=dark] .badge,[data-theme=dark] .goal-type,[data-theme=dark] .process-note,[data-theme=dark] .next-milestone,[data-theme=dark] .callout,[data-theme=dark] .welcome-tip,[data-theme=dark] .reflection-preview,[data-theme=dark] .goal-types label,[data-theme=dark] .goal-mini,[data-theme=dark] .toast{background:#233e4a;color:var(--ink);border-color:var(--line)}
[data-theme=dark] .button.primary{background:#8be0c6;color:#102c25;border-color:#8be0c6}[data-theme=dark] .text-button{color:#a9d8f0}[data-theme=dark] .danger-text,[data-theme=dark] .form-error{color:#ff9ca9}[data-theme=dark] .goal-celebration,[data-theme=dark] .save-indicator{color:#8be0c6}[data-theme=dark] .save-indicator.failed{color:#ff9ca9}[data-theme=dark] .space-number,[data-theme=dark] .success-badge,[data-theme=dark] .auth-success-icon{background:#284d43;color:#a3efd4}[data-theme=dark] .progress-track{background:#3d525d}[data-theme=dark] .progress-track>span{background:#7bddbe}[data-theme=dark] .password-eye{color:var(--ink)}[data-theme=dark] .milestone-dots i{background:#344b55;color:#d7e7ed}[data-theme=dark] .milestone-dots i.done{background:#245749;color:#b1f3db}[data-theme=dark] .goal-types label:has(input:checked){background:#244d43}
[data-theme=dark] .focus-summary{background:linear-gradient(105deg,var(--surface),#203c3a)}[data-theme=dark] .calendar-day,[data-theme=dark] .focus-task,[data-theme=dark] .task-check{background:var(--surface);color:var(--ink)}[data-theme=dark] .day-preview i{background:#23443d;color:#cbe9df}[data-theme=dark] .task-check:hover{background:#284d43}[data-theme=dark] .is-complete .task-check{background:#79d9bc;color:#102c25}
[data-theme=dark] .empty-state,[data-theme=dark] .summary-output,[data-theme=dark] .done-control,[data-theme=dark] .milestone-editor,[data-theme=dark] .goal-priority-editor,[data-theme=dark] .profile-activity,[data-theme=dark] .home-pulse,[data-theme=dark] .home-stat-strip>div{background:var(--surface);color:var(--ink);border-color:var(--line)}[data-theme=dark] .modal-actions{background:var(--surface)}[data-theme=dark] .error-banner{background:#42262a;color:#ffd9df;border-color:#71424a}[data-theme=dark] .lock-banner{background:#203e35;color:#c7f0df;border-color:#3d6a5d}[data-theme=dark] .lock-banner span,[data-theme=dark] .next-milestone>span,[data-theme=dark] .next-milestone small,[data-theme=dark] .process-line{color:#b6d7cb}[data-theme=dark] .mini-goal-icon{background:#2d405f;color:#c8d7ff}[data-theme=dark] .profile-photo-preview,[data-theme=dark] .popover-avatar,[data-theme=dark] .topbar .avatar{background:#284d43;color:#d9f2e9}[data-theme=dark] .home-pulse{box-shadow:var(--shadow)}[data-theme=dark] .home-stat-strip{background:var(--line);border-color:var(--line)}[data-theme=dark] .week-orbit.home-pulse .week-dots span.filled{background:#79d9bc;color:#102c25}[data-theme=dark] .task-priority.high,[data-theme=dark] .goal-priority.critical{background:#642d38;color:#ffd8df}[data-theme=dark] .task-priority.normal,[data-theme=dark] .goal-priority.important{background:#2d405f;color:#d3deff}[data-theme=dark] .task-priority.low,[data-theme=dark] .goal-priority.low,[data-theme=dark] .goal-priority.unset{background:#344650;color:#d7e2e6}[data-theme=dark] .goal-priority.urgent{background:#5a4524;color:#ffe1a8}[data-theme=dark] .goal-priority.custom{background:#49345e;color:#eadcff}
[data-theme=dark] body{background:radial-gradient(circle at 85% 0,#183f36 0,transparent 30%),radial-gradient(circle at 5% 90%,#1a2943 0,transparent 25%),var(--canvas);background-attachment:fixed}[data-theme=dark] .sidebar{background:linear-gradient(165deg,#091a21,#102f2d 62%,#153f34)}[data-theme=dark] .topbar{background:#192b35e8;box-shadow:0 1px 0 #314853}[data-theme=dark] .page-heading h1{color:#e9f6f1}[data-theme=dark] .week-orbit.home-pulse,[data-theme=dark] .focus-pulse.home-pulse,[data-theme=dark] .calendar-card,[data-theme=dark] .home-stat-strip>div{background:linear-gradient(145deg,#192b35,#1c3439);border-color:var(--line)}[data-theme=dark] .calendar-day:nth-child(7n),[data-theme=dark] .calendar-day:nth-child(7n+6){background:#202f32}[data-theme=dark] .settings-menu>a:hover{background:#243f3a;color:#d9f6eb}[data-theme=dark] .reminder-picker{background:linear-gradient(145deg,#162c31,#1b2e42);border-color:var(--line)}[data-theme=dark] .reminder-picker .check-label{background:#203640;border-color:#465b66;color:var(--ink)}[data-theme=dark] .reminder-picker .check-label:has(input:checked){background:#285044;border-color:#76cbae;color:#d9fff1}[data-theme=dark] .session-zone{background:linear-gradient(145deg,#2b2429,#35262c);border-color:#70444d}[data-theme=dark] .session-zone .session-mark{background:#512d35;color:#ffb3be}[data-theme=dark] input:focus,[data-theme=dark] select:focus,[data-theme=dark] textarea:focus{outline-color:#4c9c85;border-color:#78d3b5;box-shadow:0 0 0 1px #10262a}[data-theme=dark] .home-pulse:hover,[data-theme=dark] .goal-card:hover{border-color:#4f786b;box-shadow:0 15px 40px #0005}
@media(max-width:800px){
 .mobile-brand{display:flex;align-items:center;gap:9px}.mobile-brand a{font-size:1.15rem;font-weight:750;text-decoration:none;color:var(--ink)}
 .sidebar{display:none!important;position:fixed;inset:64px 12px auto 12px;width:auto;max-height:calc(100dvh - 80px);overflow:auto;border-radius:16px;padding:16px;box-shadow:0 16px 48px #0005;z-index:55}
 .navigation-open:not(.cloud-auth) .sidebar{display:flex!important}.sidebar>.brand,.sidebar-label,.sidebar-foot{display:none}.sidebar nav{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;width:100%}.sidebar nav a{display:flex;width:100%}
 .app-frame{margin-left:0!important}.topbar{position:sticky;top:0;z-index:50;display:flex;min-height:64px;gap:10px;padding:10px 16px;background:var(--surface)}#page-label{display:none}.topbar .save-indicator{margin-left:auto;font-size:.65rem;max-width:100px}.profile-link{padding:0}#profile-label{display:none}.avatar{width:36px;height:36px}.config-space-heading{flex-wrap:wrap}.config-space-heading>div{flex:1;min-width:100px}.goal-grid,.subspace-grid{grid-template-columns:1fr}.fold-heading h2{font-size:1.05rem}.fold-toggle{min-width:44px}.settings-row{flex-wrap:wrap}.log-save-bar{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
.topbar .avatar{display:grid;background:#d8ebe5;color:#183d33}.topbar .profile-link{min-width:36px;min-height:36px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.fold-toggle{border-radius:50%;width:40px;min-width:40px;min-height:40px;display:grid;place-items:center;transition:background .18s ease,transform .18s ease}.fold-toggle:hover{background:var(--mint)}.fold-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}.fold-toggle.is-open svg{transform:rotate(180deg)}
[data-theme=dark] .goals-pulse,[data-theme=dark] .week-strip,[data-theme=dark] .home-latest{background:linear-gradient(145deg,#192b35,#1c3439);border-color:var(--line)}[data-theme=dark] .goal-reminder{background:#1d353a;border-color:#3d5658;color:var(--ink)}[data-theme=dark] .goal-reminder:hover{border-color:#69a894}[data-theme=dark] .goal-reminder-progress>span{background:#344b4c}[data-theme=dark] .week-strip .week-dots span{border-color:#49605f;color:#b7cac5}[data-theme=dark] .week-strip .week-dots span.filled{background:#79d9bc;border-color:#79d9bc;color:#102c25}[data-theme=dark] .rating-select[data-rating-tone=empty]{background:#203640;color:var(--ink)}[data-theme=dark] .rating-select[data-rating-tone=low]{background:#4a2930;border-color:#8e4c58;color:#ffd9df}[data-theme=dark] .rating-select[data-rating-tone=steady]{background:#44391f;border-color:#7d6a35;color:#ffe4a6}[data-theme=dark] .rating-select[data-rating-tone=bright]{background:#1e493c;border-color:#498a70;color:#c9f6e2}[data-theme=dark] .settings-logout-card{background:var(--surface);border-color:var(--line)}
[data-theme=dark] .calendar-view-tabs{background:#14262e;border-color:var(--line)}[data-theme=dark] .calendar-view-tabs button:hover{background:#263b43;color:var(--ink)}[data-theme=dark] .calendar-view-tabs button.active{background:#3f9279;color:#fff}[data-theme=dark] .year-month{background:#1b3038;border-color:var(--line);color:var(--ink)}[data-theme=dark] .year-task-preview i{background:#28423e;color:#c9eee2}[data-theme=dark] .calendar-card[data-calendar-view=week] .day-preview b{color:#8ce0c4}
[data-theme=dark] .goal-bin{background:linear-gradient(145deg,#2f2926,#392923);border-color:#744c3b}[data-theme=dark] .goal-bin-list article{background:#23343a;border-color:#5a4540}[data-theme=dark] .avatar-choices,[data-theme=dark] .app-guide-grid p{background:#1b3038;border-color:var(--line)}[data-theme=dark] .customize-guide{background:#20443b;color:var(--ink)}[data-theme=dark] .customize-guide span{color:#c5e8dc}[data-theme=dark] .google-signin{background:#fff;color:#263238}[data-theme=dark] .photo-editor canvas{background:#284d43}[data-theme=dark] .section-explainer{color:#b8d0c8}
