:root{color-scheme:dark;--bg:#0d1314;--panel:#141c1e;--panel-hi:#202b30;--line:rgba(255,255,255,.08);--ink:#e4eceb;--muted:#98aaa9;--accent:#88d9b6;--gap:12px;--density:18px;font-family:Inter,"Segoe UI",system-ui,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:var(--panel-hi);border-radius:10px;padding:9px 12px;min-height:36px}button:hover{background:color-mix(in srgb,var(--panel-hi),var(--accent) 9%)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:20px;font-weight:600;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:14px;font-weight:600}small,.muted{color:var(--muted);line-height:1.5}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:60px;border-right:1px solid var(--line);background:#151d20;display:flex;align-items:center;flex-direction:column;z-index:10;gap:22px;padding:20px 9px}.brand{display:grid;place-items:center;width:32px;height:32px}.brand span{width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 30% 24%,#adf4d7,#437d71 30%,#152c2f 66%);box-shadow:0 0 0 4px #263337,0 6px 15px #0004}nav{display:grid;gap:8px;width:100%}.sidebar button{display:grid;place-items:center;padding:8px;background:transparent;border-color:transparent;border-radius:9px;color:var(--muted)}.sidebar button[aria-current=page]{background:#2a383c;color:var(--ink);border-color:var(--line)}.sidebar button:hover{background:#263236}.side-help{margin-top:auto}main{margin-left:60px;padding:24px 24px 60px;max-width:1800px}.header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--muted);margin-bottom:7px}.header-actions{display:flex;gap:8px;align-items:center}.icon-button{border-radius:50%;width:34px;min-height:34px;padding:7px;display:grid;place-items:center;box-shadow:0 3px 9px #0003}.sync-status{border:0;background:transparent;font-size:11px;color:var(--muted);max-width:240px}.sync-status::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);margin-right:6px}.sync-status[data-state=error]::before{background:#e39b88}.sync-status[data-state=busy]::before{background:#e0c583}.dashboard-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:var(--muted);font-size:12px}.text-button{background:transparent;border-color:transparent;color:var(--muted);font-size:12px}
.grid-stack{min-height:520px}.grid-stack-item-content{border:1px solid var(--line);border-radius:22px;background:linear-gradient(140deg,#243137 0%,#1b2429 45%,#192124 100%);box-shadow:inset 0 1px 1px #ffffff05,0 3px 12px #0002;display:flex;flex-direction:column;overflow:hidden}.widget-heading{display:flex;gap:6px;align-items:center;padding:14px 14px 8px;cursor:grab;touch-action:none;flex:none}.widget-heading h3{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.widget-heading .icon-button{width:26px;min-height:26px;padding:5px;color:var(--muted)}.widget-heading svg{width:14px;height:14px}.widget-body{padding:6px var(--density) var(--density);overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#485958 transparent}.widget-body:empty{display:none}.widget-add{width:100%;height:100%;border:1px dashed var(--line);background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);border-radius:22px}.widget-add span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#27343a;font-size:24px;font-weight:200}.grid-stack-placeholder>.placeholder-content{border:1px dashed var(--accent);border-radius:22px;background:#88d9b610}.ui-resizable-handle{opacity:.55}
.calendar-nav{display:flex;align-items:center;gap:6px;margin-bottom:10px}.calendar-nav strong{flex:1;font-weight:500;font-size:12px}.calendar-nav button{width:26px;min-height:26px;padding:2px}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekdays{font-size:10px;color:var(--muted);text-align:center;margin:8px 0}.calendar-grid button{position:relative;padding:6px 0;min-height:34px;background:#27343a;border-color:#ffffff07;font-size:11px;border-radius:7px}.calendar-grid button.outside{background:transparent;color:#657575}.calendar-grid button.today{border-color:var(--accent);color:var(--accent)}.calendar-grid button.has-event::after{content:"";position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--accent)}
.list-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.list-row span{flex:1;min-width:0;overflow-wrap:anywhere}.list-row small{font-size:10px}.list-row input{accent-color:var(--accent);width:16px;height:16px;flex:none}.done{text-decoration:line-through;color:var(--muted)}.add-inline{display:flex;gap:6px;margin-top:12px}.add-inline input{min-width:0;flex:1}.add-inline button{flex:none}.field,input,textarea,select{background:#10191c;border:1px solid var(--line);border-radius:9px;color:var(--ink);padding:9px 10px;min-width:0}input,textarea,select{max-width:100%}textarea{resize:vertical;line-height:1.6}input:focus,textarea:focus,select:focus{outline:1px solid var(--accent)}.notes{width:100%;height:100%;min-height:130px;background:transparent;border:0;padding:0;color:#cddbd8;resize:none}
.heatmap{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;margin:10px 0 12px}.heatmap i{aspect-ratio:1;border-radius:4px;background:#304138;box-shadow:inset 0 1px 1px #ffffff12}.heatmap i[data-level="1"]{background:#497a5a}.heatmap i[data-level="2"]{background:#91bd6c}.heatmap i[data-level="3"]{background:#dbbf72}.habit-row{display:flex;gap:7px;align-items:center;margin:7px 0}.habit-row button{font-size:11px;padding:6px 8px;min-height:28px}
.media-link{display:flex;flex-direction:column;justify-content:center;align-items:center;text-decoration:none;color:var(--ink);min-height:105px;border:1px solid var(--line);border-radius:15px;background:radial-gradient(ellipse at 0 100%,#ac586b25,transparent 60%),linear-gradient(140deg,#2f4342,#1a2229);margin-bottom:8px;padding:12px}.media-link strong{font-size:23px;letter-spacing:-1px}.media-link small{margin-top:5px;font-size:10px}.globe{display:block;margin:0 auto 12px;width:140px;height:140px;border-radius:50%;background:radial-gradient(ellipse at 65% 28%,#ced7cd16,#78b29e0b 32%,transparent 52%),radial-gradient(circle,#91bd9c 1px,transparent 1.8px) 0 0/6px 6px,#10191d;box-shadow:inset -26px -15px 45px #000c,0 0 32px #90c6ab0c}.clock-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:11px}.clock-row time{font-size:17px;font-variant-numeric:tabular-nums}.metric{font-size:40px;font-weight:300;letter-spacing:-2px;margin:8px 0}.bars{display:flex;align-items:end;gap:5px;height:100px;margin:18px 0}.bars i{flex:1;min-height:3px;background:linear-gradient(var(--accent),#528d74);border-radius:4px 4px 0 0}.empty{font-size:12px;color:var(--muted);line-height:1.7;padding:14px 0}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.primary{background:var(--accent);border-color:transparent;color:#101d17}.danger{color:#f2aaa0}
dialog{background:#141e21;color:var(--ink);width:min(860px,calc(100vw - 28px));max-height:calc(100dvh - 30px);border:1px solid #ffffff12;border-radius:24px;padding:22px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#050b0dba;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.dialog-heading h2{font-size:18px}.settings-layout{display:grid;grid-template-columns:175px minmax(0,1fr);gap:24px}.settings-tabs{display:flex;flex-direction:column;gap:6px}.settings-tabs button{font-size:12px;text-align:left;background:transparent;border-color:transparent}.settings-tabs button.active{background:#2a3b3b;color:var(--accent)}.settings-panel label{display:block;font-size:12px;margin:15px 0;color:var(--muted)}.settings-panel input,.settings-panel select{display:block;width:100%;margin-top:6px;color:var(--ink)}.settings-panel input[type=color]{width:64px;height:38px}.settings-panel h3{font-size:16px;margin:5px 0 12px}.settings-panel p{line-height:1.7;color:var(--muted);font-size:12px}.settings-panel .section{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.library button{text-align:left;min-height:100px;display:flex;flex-direction:column;gap:8px;padding:16px}.library button small{font-size:11px}.snapshot{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 0}.snapshot>div{flex:1}.snapshot small{display:block}.snapshot button{font-size:11px}.changelog{line-height:1.8;font-size:12px}.changelog h3{margin-top:20px}.changelog p{margin:3px 0}.embedded{width:100%;height:calc(100dvh - 130px);border:1px solid var(--line);border-radius:22px;background:var(--panel)}.page-card{max-width:900px;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--panel)}.page-card .calendar-grid button{min-height:64px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border:1px solid var(--line);padding:12px 20px;border-radius:14px;background:#263b35;color:#e1f3e8;z-index:100;font-size:12px;box-shadow:0 10px 30px #0004}
body[data-theme=light]{color-scheme:light;--bg:#eff3f1;--panel:#fff;--panel-hi:#e4ebe7;--line:#142b2221;--ink:#172720;--muted:#53695c}body[data-theme=light] .grid-stack-item-content{background:linear-gradient(140deg,#fff,#e8efec)}body[data-theme=light] .sidebar{background:#dfe9e3}body[data-theme=light] dialog{background:#f4f8f5}body[data-theme=light] input,body[data-theme=light] textarea,body[data-theme=light] select{background:#fff}body[data-density=compact]{--density:12px}
@media(prefers-reduced-motion:no-preference){.grid-stack-item-content{transition:box-shadow .2s,border-color .2s}.grid-stack-item-content:hover{border-color:#ffffff20}.sidebar button,.icon-button{transition:background .17s,color .17s}.page-enter{animation:page-in .3s ease-out}.new-card{animation:card-in .45s ease-out}dialog[open]{animation:card-in .25s ease-out}@keyframes page-in{from{opacity:.3;translate:0 9px}to{opacity:1;translate:none}}@keyframes card-in{from{opacity:.3;scale:.97}to{opacity:1;scale:1}}}
@media(max-width:720px){main{margin-left:0;padding:18px 10px calc(90px + env(safe-area-inset-bottom))}.sidebar{top:auto;right:0;bottom:0;left:0;width:auto;height:auto;padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border-right:0;border-top:1px solid var(--line)}.sidebar .brand,.sidebar .side-help{display:none}.sidebar nav{display:flex;justify-content:space-between;gap:2px}.sidebar nav button{min-height:44px;flex:1;padding:10px 5px}.header{gap:8px;margin-bottom:14px}.header-actions{gap:4px}h1{font-size:18px}.eyebrow{font-size:8px}.sync-status{max-width:140px;padding:4px;font-size:10px}.grid-stack-item-content{border-radius:20px}.settings-layout{grid-template-columns:1fr;gap:16px}.settings-tabs{flex-direction:row;overflow:auto}.settings-tabs button{flex:none;max-width:180px}.library{grid-template-columns:1fr 1fr}dialog{padding:16px}.snapshot{flex-wrap:wrap}.snapshot button{min-height:40px}.embedded{height:calc(100dvh - 170px)}input,textarea,select{font-size:16px}.dashboard-tools{align-items:start;gap:8px}.page-card{padding:14px}#toast{max-width:90vw;bottom:calc(80px + env(safe-area-inset-bottom));width:max-content}.header .icon-button{min-height:36px;width:36px}}

@media(max-width:720px){.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:none!important}}

.nav-label{display:none}
@media(max-width:720px){.nav-label{display:block;font-size:8px;line-height:1.2}.sidebar nav button{gap:4px;padding:7px 2px}}

#dialogStatus:empty{display:none}#dialogStatus{color:#e6c48f;font-size:12px;margin-bottom:12px}

.embedded-tabs{display:flex;gap:6px;margin-bottom:10px;overflow:auto}.embedded-tabs button{flex:none;background:transparent}.embedded-tabs button[aria-current=page]{background:var(--panel-hi);color:var(--accent)}

html{background:var(--bg)}body.bgfx{background:transparent}

/* Retro digital — one rhythm for cards, diagrams and controls. */
:root{--accent:#ff784e;--line:#b7c8c522;--panel:#101817;--panel-hi:#1c2725;--ink:#e6eae4;--muted:#9aa9a3}
body{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;background-color:var(--bg)}
#pixelBackground{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}body:has(#pixelBackground){isolation:isolate;background:transparent}html:has(#pixelBackground){background:#0d1314}
h1,h2,h3,.eyebrow,.metric,.clock-row time{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.025em}.eyebrow{color:var(--accent)}
.grid-stack-item-content{border-radius:12px;background:linear-gradient(130deg,#1b2523ee,#101716f5);box-shadow:inset 1px 1px 0 #ffffff07,0 10px 24px #0002}
.widget-heading{border-bottom:1px dashed var(--line);margin-bottom:12px;min-height:43px}.widget-heading h3{font-size:12px;text-transform:uppercase}.widget-heading h3::before{content:'▪';color:var(--accent);margin-right:8px}
button,input,select,textarea{font-family:inherit;border-radius:6px}button svg{stroke-linecap:square;stroke-linejoin:miter;shape-rendering:crispEdges}.icon-button{border-radius:5px}.sidebar{background:#0d1314ef}.sidebar button[aria-current=page]{box-shadow:inset 3px 0 var(--accent)}
.metric{font-size:38px;color:var(--accent);font-weight:400;text-shadow:2px 2px #ff784e18}.bars{gap:7px;align-items:end;border-bottom:1px dashed var(--line)}.bars i{border-radius:0;background:repeating-linear-gradient(to top,transparent 0 2px,var(--accent) 2px 7px);position:relative}.bars i::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(to right,transparent 0 5px,var(--panel) 5px 7px)}
.heatmap i{border-radius:1px!important;box-shadow:inset 0 0 0 1px #ffffff12}.calendar-grid button{border-radius:4px}.calendar-grid button.today{outline:1px solid var(--accent);outline-offset:-2px}.globe{border-radius:50%;background-size:5px 5px;image-rendering:pixelated}.media-link{border-radius:8px;background:radial-gradient(circle,#a8bcb51a 1px,transparent 1px) 0 0/7px 7px,#15201f}.widget-add{border:1px dashed var(--line);border-radius:8px}.widget-add span{color:var(--accent)}
dialog{position:fixed;inset:0;margin:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border-radius:12px}#dialogBody,.settings-panel{min-width:0}dialog input,dialog select,dialog textarea{max-width:100%;box-sizing:border-box}.settings-tabs button{white-space:normal}.snapshot>div{min-width:0;overflow-wrap:anywhere}.button-row>*{max-width:100%}#toast{overflow-wrap:anywhere}.dialog-heading h2{overflow-wrap:anywhere;min-width:0}
.planner-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.planner-tools label{font-size:12px;display:flex;align-items:center;gap:8px}.planner-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(320px,1.25fr);gap:16px}.planner-grid .page-card{max-width:none;min-width:0;border-radius:12px}.planner-grid h2{font-size:16px}.plan-row{display:flex;align-items:start;gap:10px;border-bottom:1px dashed var(--line);padding:12px 0}.plan-row input{margin-top:10px;flex:none}.plan-title{min-width:0;text-align:left;border:0;background:transparent;flex:1;padding:6px}.plan-title strong,.plan-title small{display:block;overflow-wrap:anywhere}.plan-title small{margin-top:8px;font-size:11px;color:var(--muted)}.plan-title .late{color:#ff8b6d}.subtle{font-size:11px;color:var(--muted);line-height:1.7}.plan-form label{display:block;font-size:12px;margin-bottom:16px}.plan-form input,.plan-form select{display:block;width:100%;margin-top:8px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.toggle-row{display:flex!important;align-items:center;gap:10px}.toggle-row input{width:20px!important;height:20px;margin:0!important}
@media(max-width:900px){.planner-grid{grid-template-columns:1fr}.planner-grid .calendar-grid button{min-height:40px}}@media(max-width:520px){.form-columns{grid-template-columns:1fr;gap:0}.planner-tools>*{flex:1;min-width:130px}.grid-stack-item-content{border-radius:10px}.header-actions{flex-wrap:wrap;justify-content:end}.sync-status{max-width:110px}.page-card{padding:14px}.library{grid-template-columns:1fr}.settings-tabs button{font-size:11px}.planner-grid .calendar-grid{gap:4px}}

@supports(background-clip:text){.metric{background:radial-gradient(circle,var(--accent) 1.15px,transparent 1.3px) 0 0/4px 4px;background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:none}}

/* Mobile mood: soft luminous cards over a quiet dot matrix. */
.mobile-overview{display:none}
@media(max-width:720px){
 body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle,#ffffff09 1px,transparent 1.2px) 0 0/12px 12px,#030405;--bg:#030405;--panel:#0d0e13;--panel-hi:#181923;--ink:#f5f3fa;--muted:#aaa7b6}
 html{background:#030405}main{padding:24px 14px calc(112px + env(safe-area-inset-bottom));overflow:clip}.header{align-items:center;margin-bottom:20px;min-height:56px}.header h1{font:600 25px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.8px}.eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:8px;color:#b9b4cc}.header .icon-button{width:44px;height:44px;border-radius:50%;background:#15151ccc;border:1px solid #ffffff08}.header-actions{gap:6px;flex-wrap:nowrap}.header-actions #historyButton{display:none}.sync-status{border:0;background:transparent;font-size:9px;max-width:94px;line-height:1.4;text-align:right}.dashboard-tools{margin-bottom:16px;font-size:11px}.dashboard-tools p{font-size:11px}.dashboard-tools .text-button{font-size:11px;padding:8px 0}
 .mobile-overview{display:block;margin-bottom:24px;min-width:0}.mobile-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 0 12px;overscroll-behavior-x:contain}.mobile-carousel::-webkit-scrollbar{display:none}.mobile-hero{color:#fff;position:relative;isolation:isolate;flex:0 0 89%;min-width:0;min-height:340px;scroll-snap-align:center;border:1px solid #ffffff20;border-radius:46px;padding:26px 24px 20px;overflow:hidden;background:radial-gradient(ellipse at 50% -12%,#ff7fc2 0,transparent 51%),radial-gradient(ellipse at 0 100%,#a3369277,transparent 65%),#1c081f;box-shadow:inset 0 0 24px #ef7acb33}.mobile-hero.mood-1{background:radial-gradient(ellipse at 50% -12%,#a3a4ff,transparent 56%),radial-gradient(ellipse at 100% 100%,#453ed57a,transparent 68%),#070922;box-shadow:inset 0 0 26px #9c9fff30}.mobile-hero.mood-2{background:radial-gradient(ellipse at 50% 115%,#ff6c409c,transparent 66%),radial-gradient(ellipse at 0 0,#ffd19c66,transparent 50%),#1c0a08;box-shadow:inset 0 0 26px #ffae6a25}.hero-top{display:flex;justify-content:space-between;align-items:center}.hero-top h2{font:500 17px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.3px;margin:0}.hero-top>span{font:11px ui-monospace,monospace;border:1px solid #ffffff22;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.hero-value{font:500 58px/1 ui-monospace,monospace;text-align:center;letter-spacing:-3px;margin:34px 0 10px;color:#fff}.hero-caption{text-align:center;font-size:12px;color:#eee0f0;margin:0}.hero-orb{display:block;width:108px;height:86px;margin:10px auto 4px;fill:#ffffff9c}.mobile-hero>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;border-top:1px solid #ffffff14;background:transparent;border-radius:0;padding:14px 0 0;font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:44px;color:#fff}.mobile-hero>button span{font-size:19px}.swipe-hint{display:flex;justify-content:center;gap:14px;font-size:10px;color:var(--muted);margin:0 0 20px}.swipe-hint span{letter-spacing:4px;color:#e3dced}.mobile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mobile-shortcuts button{min-width:0;min-height:106px;border-radius:28px;padding:19px;text-align:left;background:radial-gradient(ellipse at 70% -30%,#827fd66b,transparent 75%),#0c0d23;border:1px solid #ffffff0d;box-shadow:inset 0 0 18px #8a88ff12}.mobile-shortcuts button+button{background:radial-gradient(ellipse at 50% 130%,#ed624266,transparent 75%),#180e0e}.mobile-shortcuts span{display:block;font:11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#b8b4c5;margin-bottom:13px}.mobile-shortcuts strong{font:500 19px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff}
 .grid-stack-item-content{border-radius:32px!important;border-color:#ffffff12;background:radial-gradient(ellipse at 50% -30%,#ffffff14,transparent 65%),#0e1015;box-shadow:inset 0 0 22px #ffffff03}.grid-stack-item[data-widget-type=activity] .grid-stack-item-content{background:radial-gradient(ellipse at 100% 120%,#8c456b66,transparent 70%),#111016}.grid-stack-item[data-widget-type=clock] .grid-stack-item-content{background:radial-gradient(ellipse at 50% -20%,#6565cb66,transparent 65%),#0b0b1b}.widget-heading{border-bottom:0;margin-bottom:4px;min-height:46px}.widget-heading h3{font:500 15px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:none;letter-spacing:-.3px}.widget-heading h3:before{display:none}.widget-heading .icon-button{width:36px;height:36px;min-height:36px;border-radius:50%;background:#ffffff07;border:0}.calendar-grid button{border-radius:11px;min-height:34px;background:#ffffff04}.calendar-grid button.today{background:#ba9ee326;outline-color:#bea3ee}.widget-body{padding-top:4px}.list-row{min-height:45px}.primary{border-radius:22px;min-height:44px;background:#c6b2f1;color:#171021}.add-inline input{min-width:0}.add-inline button{min-width:44px;min-height:44px;border-radius:50%}.notes{border-radius:16px;background:#ffffff03}button,input,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button{min-height:44px}.text-button{min-height:40px}input[type=checkbox]{width:21px;height:21px;flex:none}.metric{font-size:48px}.widget-add{border-radius:28px}.globe{width:128px;height:128px}
 .sidebar{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));border:1px solid #ffffff16;border-radius:30px;background:#171720e8;backdrop-filter:blur(20px);padding:8px;box-shadow:0 12px 36px #0009}.sidebar nav button{padding:7px 2px;min-width:0;border-radius:20px;min-height:49px;gap:4px}.sidebar button[aria-current=page]{background:#c9b4f0;color:#171021;box-shadow:none}.nav-label{font:9px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.sidebar svg{width:18px;height:18px;stroke-linecap:round;stroke-linejoin:round;shape-rendering:auto}
 dialog{border-radius:30px;padding:22px 18px;background:radial-gradient(ellipse at 100% -50%,#68638840,transparent 80%),#101117;border-color:#ffffff16;max-height:calc(100dvh - 32px)}.dialog-heading h2{font:600 20px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.dialog-heading .icon-button{border-radius:50%;width:44px;height:44px}.settings-tabs{padding-bottom:8px}.settings-tabs button{border-radius:18px}.settings-tabs button.active{background:#c4b0eb22;color:#dacbf3}.settings-panel input,.settings-panel select,.plan-form input,.plan-form select{border-radius:14px;min-height:46px;background:#ffffff05}.planner-grid .page-card{border-radius:28px;background:#0e1015}.planner-tools button,.planner-tools select{border-radius:22px}.planner-grid h2{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.embedded{border-radius:24px}.embedded-tabs button{border-radius:22px}#toast{border-radius:22px;background:#272236;bottom:calc(91px + env(safe-area-inset-bottom))}
 body[data-theme=light]{--bg:#f2eff6;--panel:#fff;--ink:#24202d;--muted:#6f687b;background:radial-gradient(circle,#30204012 1px,transparent 1.2px) 0 0/12px 12px,#f2eff6}body[data-theme=light] .sidebar{background:#f8f5f3e8}body[data-theme=light] .page-card,body[data-theme=light] dialog{background:#f8f6fc}body[data-theme=light] .header .icon-button{background:#e7e0ef}body[data-theme=light] .eyebrow{color:#6f607e}body[data-theme=light] .widget-heading .icon-button{background:#00000008}
}
@media(max-width:360px){.header h1{font-size:22px}.sync-status{max-width:76px;font-size:8px}.mobile-hero{padding:24px 19px}.mobile-shortcuts button{padding:16px}.mobile-shortcuts strong{font-size:17px}.sidebar .nav-label{font-size:8px}}
@media(max-width:720px) and (prefers-reduced-motion:no-preference){.mobile-hero{animation:mobile-arrive .55s cubic-bezier(.2,.8,.2,1) both}.mobile-hero:nth-child(2){animation-delay:.06s}.mobile-hero:nth-child(3){animation-delay:.12s}@keyframes mobile-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}}

@media(max-width:720px){@supports(background-clip:text){.hero-value{background:radial-gradient(circle,#fff 1.3px,transparent 1.5px) 0 0/4px 4px;background-clip:text;-webkit-background-clip:text;color:transparent}}}

/* Shared scene and compact habit matrix. */
html{background:#07090b}body{background:radial-gradient(circle,#b4bfd00b 1px,transparent 1px) 0 0/22px 22px,#07090b}body.pixel-scene{background:transparent}#pixelBackground{z-index:-1}.embedded{background:transparent!important}.grid-stack-item[data-widget-type=habits] .widget-body{display:flex;flex-direction:column;gap:5px;overflow:hidden;min-height:0}.grid-stack-item[data-widget-type=habits] .widget-body>small{font-size:10px;line-height:14px;flex:none}.grid-stack-item[data-widget-type=habits] .heatmap{flex:none;height:clamp(32px,26%,56px);min-height:32px;grid-template-rows:repeat(4,minmax(0,1fr));grid-template-columns:repeat(14,minmax(0,1fr));gap:3px;margin:0}.heatmap i{aspect-ratio:auto!important;min-width:0;min-height:0}.heatmap-legend{display:flex;align-items:center;justify-content:end;gap:4px;font-size:8px;color:var(--muted);height:12px;flex:none}.heatmap-legend i{width:6px;height:6px;background:#497a5a}.heatmap-legend i:nth-of-type(2){background:#91bd6c}.heatmap-legend i:nth-of-type(3){background:#dbbf72}.habit-list{min-height:0;flex:1;overflow:auto;scrollbar-width:thin}.habit-list>small{font-size:10px;line-height:1.3;display:block}.habit-list .habit-row{margin:0 0 4px}.habit-list .habit-row small{overflow-wrap:anywhere;min-width:0}.grid-stack-item[data-widget-type=habits] .text-button{flex:none;min-height:22px;padding:3px 0;text-align:left;font-size:10px;line-height:16px}
@media(min-width:721px){.grid-stack-item-content{background:linear-gradient(125deg,#11171be8,#0b1014e8);border:1px solid #c8d3e51f;box-shadow:inset 0 1px #ffffff06,0 8px 24px #0003;border-radius:8px}.widget-heading{position:relative;border-bottom:1px dashed #b8cce52b}.widget-heading:after{content:'';position:absolute;left:0;bottom:-1px;width:18px;height:2px;background:var(--accent);box-shadow:24px 0 0 color-mix(in srgb,var(--accent) 40%,transparent)}.widget-heading h3{font-size:11px;letter-spacing:.1em}.sidebar .brand span{border-radius:2px;background:repeating-conic-gradient(#d9d9ff 0 25%,transparent 0 50%) 0 0/8px 8px;box-shadow:0 0 18px #b5a6ee44}.sidebar{background:#090d12e6}.page-card{background:#0c1115db;border-radius:10px}.calendar-grid button.has-event:after,.sync-status:before{border-radius:0}.list-row{border-bottom-style:dashed}.list-row input{appearance:none;border:1px solid #b4c3d354;border-radius:1px;background:transparent;display:grid;place-items:center;padding:0}.list-row input:checked{background:var(--accent);border-color:var(--accent)}.list-row input:checked:after{content:'';width:6px;height:6px;background:#0d1314}.library button{background:radial-gradient(circle,#c8c5ea13 1px,transparent 1px) 0 0/7px 7px,#10151b;border-radius:6px}.media-link{border-radius:4px}.widget-add{border-radius:6px}.metric,.clock-row time{font-variant-numeric:tabular-nums}.clock-row time{letter-spacing:.12em}.bars i{filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent) 18%,transparent))}}
body[data-theme=light]{background:radial-gradient(circle,#30204012 1px,transparent 1px) 0 0/22px 22px,#f2f0f6}body[data-theme=light].pixel-scene{background:transparent}html:has(body[data-theme=light]){background:#f2f0f6}

html:has(#pixelBackground){background:#07090b}.grid-stack-item[data-widget-type=habits] .widget-body{padding:0 14px 10px;gap:3px}.grid-stack-item[data-widget-type=habits] .text-button{height:22px;min-height:22px}.habit-list>small{font-size:9px;line-height:13px}.habit-list .habit-row button{min-height:26px;height:26px;padding:2px 7px}.habit-list .habit-row small{font-size:10px}

.globe.globe-canvas{width:min(174px,100%);height:auto;aspect-ratio:1;background:none;box-shadow:none;border-radius:0;margin:0 auto 10px}.brand img{display:block;width:30px;height:30px;border-radius:7px}.sidebar .brand{padding:0;border:0}

.grid-stack-item[data-widget-type=clock] .widget-body{display:flex;flex-direction:column}.grid-stack-item[data-widget-type=clock] .clock-row{flex:none;padding:6px 0}.globe.globe-canvas{width:100%;height:0;flex:1;min-height:72px;max-height:180px;aspect-ratio:auto;margin:0 0 6px}

.analytics-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.analytics-metrics .page-card{padding:16px;min-width:0}.analytics-metrics strong{display:block;font-size:23px;overflow-wrap:anywhere;margin-top:10px;font-weight:500}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.analytics-grid .page-card{min-width:0;max-width:none;padding:20px}.analytics-grid h2{font-size:14px;margin-bottom:14px}.insight-chart{display:block;width:100%;height:auto;min-height:110px;max-height:210px;overflow:visible}.insight-goal{padding:8px 0 12px;border-bottom:1px dashed var(--line)}.insight-goal strong{font-size:12px;overflow-wrap:anywhere}.insight-goal small{display:block;font-size:10px;margin:6px 0}.pixel-track{height:7px;background:#ffffff09;margin-top:5px}.pixel-track i{display:block;height:100%;background:repeating-linear-gradient(90deg,#b6a7ed 0 5px,transparent 5px 7px)}.insight-note{font-size:12px;line-height:1.8;margin-bottom:13px}.analytics-grid .metric{font-size:28px}.analytics-grid small{line-height:1.7}
@media(max-width:720px){.analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-grid{grid-template-columns:1fr}.analytics-metrics .page-card,.analytics-grid .page-card{border-radius:24px}.analytics-metrics strong{font-size:19px}.analytics-grid .page-card{padding:18px}}

.moment-gallery{min-height:90px;flex:1;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.moment-gallery.collage{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.grid-stack-item[data-widget-type=moments] .widget-body{display:flex;flex-direction:column;gap:7px}.moment-frame{position:relative;min-width:0;min-height:60px;padding:0;overflow:hidden;border-radius:9px;background:#191e29;border:1px solid var(--line);display:block}.moment-frame img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:var(--photo-fit,cover)}.moment-frame img:not([src]){visibility:hidden}.moment-frame>span{position:absolute;inset:auto 0 0;padding:22px 10px 9px;background:linear-gradient(transparent,#03040bd9);color:#fff;font-size:11px;text-align:left;overflow-wrap:anywhere}.moment-missing{display:none;padding:18px;font-size:10px}.moment-frame.missing .moment-missing{display:block}.moment-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:380px;overflow:auto}.moment-picker .moment-frame{height:118px}.moment-picker .selected{outline:2px solid var(--accent);outline-offset:-2px}.moment-picker .selected:after{content:'★';position:absolute;right:8px;top:8px;border-radius:50%;background:#0b0f18dc;color:#fff;padding:3px 7px}.moment-picker .moment-frame>span{font-size:10px}.settings-panel .toggle-row input{width:20px;height:20px}.grid-stack-item[data-widget-type=balance] .metric{font-size:30px;letter-spacing:-.5px;overflow-wrap:anywhere}@media(max-width:520px){.moment-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.moment-frame{border-radius:16px}}

:root{--card-opacity:.9;--card-rgb:14,20,26}.grid-stack-item-content,.page-card{background:rgba(var(--card-rgb),var(--card-opacity))!important;backdrop-filter:blur(3px)}#transparencyValue{float:right;font-variant-numeric:tabular-nums;color:var(--accent)}#cardTransparency{padding:0;height:32px;accent-color:var(--accent);border:0;background:transparent}
@media(max-width:720px){.mobile-hero{background:transparent!important}.mobile-hero:before{content:'';position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;opacity:var(--card-opacity);background:radial-gradient(ellipse at 50% -12%,#ff7fc2 0,transparent 51%),radial-gradient(ellipse at 0 100%,#a3369277,transparent 65%),#1c081f}.mobile-hero.mood-1:before{background:radial-gradient(ellipse at 50% -12%,#a3a4ff,transparent 56%),radial-gradient(ellipse at 100% 100%,#453ed57a,transparent 68%),#070922}.mobile-hero.mood-2:before{background:radial-gradient(ellipse at 50% 115%,#ff6c409c,transparent 66%),radial-gradient(ellipse at 0 0,#ffd19c66,transparent 50%),#1c0a08}.mobile-shortcuts button{background:rgba(var(--card-rgb),var(--card-opacity))!important}}

html:has(body[data-theme=light]):has(#pixelBackground){background:#f2f0f6}

/* Date-first planning: choose once and add several tasks with Enter. */
.video-stage{position:relative;width:100%;height:100%;min-height:80px;border-radius:16px;overflow:hidden;background:#050809}.video-stage video{display:block;width:100%;height:100%;min-height:80px;max-height:100%;background:#050809}.video-stage [data-video-status]:empty{display:none}.video-stage [data-video-status]{position:absolute;inset:0;margin:0;padding:18px;display:grid;place-items:center;font-size:12px;text-align:center;background:#0b1118dd;pointer-events:none}.video-empty{height:100%;min-height:130px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;background:radial-gradient(ellipse at top,#ac8bff22,transparent 70%);border:1px dashed #ffffff20;border-radius:16px;padding:14px}.video-empty>span{font-size:38px;color:var(--accent)}.video-empty p{margin:0;font-size:13px}.video-empty small{font-size:11px;color:var(--muted)}[data-widget-type=video] .widget-body{overflow:hidden;display:flex;flex-direction:column;min-height:0}[data-widget-type=video] .video-stage{flex:1}.mood-card{height:100%;min-height:120px;position:relative;isolation:isolate;overflow:hidden;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:22px;gap:14px;color:#f8f6ff;background:radial-gradient(ellipse at 50% 0,#8a5fff80,transparent 80%),#141127}.mood-emerald{background:radial-gradient(ellipse at 50% 0,#40c4a580,transparent 80%),#0c2420}.mood-sunset{background:radial-gradient(ellipse at 50% 0,#ff754a99,transparent 80%),#30141c}.mood-card:before{content:'';position:absolute;inset:10px;z-index:-1;background-image:radial-gradient(#ffffff33 1px,transparent 1px);background-size:14px 14px;mask-image:radial-gradient(ellipse,transparent 25%,#000);opacity:.7}.mood-emoji{font-size:46px;line-height:1.2}.mood-card p{font-size:clamp(14px,1.3vw,20px);font-weight:600;line-height:1.5;overflow-wrap:anywhere;margin:0;max-width:30ch}.mood-pixels{font-size:16px;letter-spacing:8px;opacity:.6}@media(prefers-reduced-motion:no-preference){.mood-emoji{animation:mood-float 6s ease-in-out infinite}.mood-pixels{animation:mood-glow 4s ease-in-out infinite}}@keyframes mood-float{50%{transform:translateY(-6px) rotate(-5deg)}}@keyframes mood-glow{50%{opacity:.25}}
.planner-modern{grid-template-columns:minmax(0,1.4fr) minmax(280px,.85fr);align-items:start}.planner-day-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:end;gap:10px;margin-bottom:12px}.planner-day-nav label{font-size:11px;color:var(--muted)}.planner-day-nav input{display:block;width:100%;min-width:0;margin-top:5px;min-height:42px}.planner-day-nav button{min-height:42px}.date-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 18px}.date-shortcuts button{font-size:12px;padding:7px 12px}.date-shortcuts button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--ink)}.plan-quick{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.plan-quick>input{min-width:0;min-height:46px}.plan-destination{grid-column:1/-1;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:10px}.plan-destination select{flex:1;min-width:0;max-width:100%}.plan-day-list{margin-top:18px}.plan-day-list h3{font-size:12px;color:var(--muted)}.plan-move{font-size:11px;flex:none;padding:6px 8px;margin-top:5px}.planner-calendar summary{cursor:pointer;font-size:13px;font-weight:600;list-style-position:inside}.planner-calendar[open] summary{margin-bottom:18px}.calendar-grid button.selected-day{outline:2px solid var(--accent);outline-offset:-2px;background:color-mix(in srgb,var(--accent) 20%,transparent)}
@media(max-width:900px){.planner-modern{grid-template-columns:1fr}.planner-calendar{order:2}.plan-destination{align-items:start;flex-direction:column}.plan-destination select{width:100%}.plan-row{gap:5px}.plan-title{padding:6px 2px}.plan-move{padding:6px;font-size:10px}}@media(prefers-reduced-motion:no-preference){.day-planner{animation:page-in .24s ease both}}

.life-roadmap{margin-bottom:18px;min-width:0}.life-heading{display:flex;justify-content:space-between;gap:18px;align-items:start}.life-heading h2{margin:4px 0}.life-heading .button-row{flex-shrink:0;align-items:center}.life-scroll{overflow:auto;max-height:460px;min-height:170px;overscroll-behavior:contain;touch-action:pan-x pan-y;border:1px solid var(--border);border-radius:16px;background:radial-gradient(circle,rgba(160,180,190,.18) 1px,transparent 1px) 0 0/18px 18px}.life-canvas{position:relative;transform-origin:top left}.life-canvas svg{position:absolute;inset:0;pointer-events:none}.life-canvas path{stroke:var(--accent);stroke-width:2;fill:none;opacity:.45}.life-node{position:absolute;box-sizing:border-box;width:224px;height:112px;border:1px solid var(--border);border-radius:18px;background:var(--surface,#141c1e);box-shadow:0 8px 24px #0003;overflow:hidden}.life-node[data-status=active]{border-color:var(--accent);box-shadow:0 0 22px color-mix(in srgb,var(--accent) 18%,transparent)}.life-node[data-status=done]{border-style:dashed}.life-event{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:0;border-radius:0;width:100%;height:80px;padding:12px;text-align:left;background:transparent}.life-event small{font-size:10px;line-height:1.2;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.life-event strong{font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.life-node-actions{display:flex;justify-content:space-between;padding:0 8px}.life-node-actions button{font-size:10px;padding:4px 7px;min-height:25px;background:transparent;border:0}.life-event:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
@media(max-width:700px){.life-heading{flex-direction:column;gap:8px}.life-heading .button-row{flex-wrap:wrap}.life-scroll{max-height:360px}.life-roadmap{padding:14px}.life-heading .subtle{font-size:12px}}

#lifeRoadmap{max-width:none;width:100%;box-sizing:border-box}.life-canvas>svg{width:100%;height:100%;overflow:visible}

.life-roadmap{--border:var(--line);--surface:var(--panel)}

.life-viewport{position:relative;overflow:hidden;height:clamp(360px,60vh,680px);border:1px solid var(--line);border-radius:16px;background:radial-gradient(circle,rgba(160,180,190,.2) 1px,transparent 1px) 0 0/18px 18px;touch-action:none;cursor:crosshair;user-select:none;isolation:isolate}.life-viewport .life-canvas{position:absolute;inset:0 auto auto 0;will-change:transform}.life-viewport.panning,.life-viewport.space-pan{cursor:grab}.life-viewport.panning:active{cursor:grabbing}.life-viewport.moving,.life-event{cursor:move}.life-event{touch-action:none}.life-node.life-selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent),0 8px 30px #0005}.life-node.life-selected .life-event{background:color-mix(in srgb,var(--accent) 10%,transparent)}.life-marquee{position:absolute;pointer-events:none;background:color-mix(in srgb,var(--accent) 16%,transparent);border:1px solid var(--accent);z-index:3}.life-hint{font-size:11px;color:var(--muted);line-height:1.6;margin:12px 0}.life-selection-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.life-selection-actions[hidden]{display:none}.life-tools{flex-wrap:wrap;justify-content:flex-end}.life-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:3px}#lifeRoadmap.life-expanded{position:fixed;inset:12px;width:auto;height:calc(100dvh - 24px);z-index:1000;margin:0;display:flex;flex-direction:column;background:var(--panel);box-shadow:0 0 0 20px #0009;overflow:hidden}#lifeRoadmap.life-expanded .life-viewport{height:auto;flex:1;min-height:0}#lifeRoadmap.life-expanded .life-heading{flex-shrink:0}.life-heading{flex-wrap:wrap}.life-heading .button-row{flex-shrink:1}.life-node-actions button{min-height:27px}.life-node{height:112px}
@media(max-width:700px){.life-viewport{height:420px}.life-tools{justify-content:flex-start}.life-tools button{min-height:38px}.life-hint{font-size:10px}#lifeRoadmap.life-expanded{inset:4px;height:calc(100dvh - 8px);padding:12px}.life-selection-actions button{min-height:38px}}

.life-selection-actions{height:40px;min-height:40px;flex-wrap:nowrap;overflow-x:auto}.life-selection-actions>*{flex-shrink:0}.life-selection-actions[hidden]{display:flex;visibility:hidden;pointer-events:none}@media(max-width:700px){.life-selection-actions{height:44px;min-height:44px}}

.life-selection-actions[hidden]{display:flex!important}#lifeRoadmap.life-expanded{background:var(--bg,#0d1314)!important}

.search-results{display:grid;gap:7px;max-height:55vh;overflow:auto;margin-top:12px}.search-results button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px}.search-results small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.search-results button:focus{outline:2px solid var(--accent)}.library-search{margin-bottom:14px;display:block}.undo-task-bar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1500;padding:12px 16px;border:1px solid var(--accent);border-radius:18px;background:var(--bg);box-shadow:0 8px 30px #0007;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 24px)}.undo-task-bar[hidden]{display:none}.undo-task-bar span{white-space:nowrap}.life-search{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:12px}.life-search input{width:min(320px,100%)}.life-search span{font-size:11px}.life-node.life-match{outline:2px solid var(--accent);outline-offset:4px}.life-node.life-search-muted{opacity:.22}.planner-tools label{min-width:140px;max-width:100%}.planner-tools input[type=search]{min-width:180px}.planner-tools select{max-width:310px}.library [data-add-widget][hidden]{display:none}#searchButton{font-size:24px}
@media(max-width:700px){.undo-task-bar{bottom:90px;width:calc(100vw - 24px);padding:10px;gap:8px;flex-wrap:wrap}.planner-tools>label{width:100%}.planner-tools input,.planner-tools select{max-width:100%;width:100%}.life-search{gap:6px}.life-search input{width:100%}.life-search span{min-height:14px}.life-heading .life-tools{gap:5px}.life-tools button{padding:6px 9px}}

@media(max-width:700px){.planner-tools>label{flex:1 1 100%;display:grid;gap:6px;min-width:0}.planner-tools label input[type=search]{min-width:0}.planner-tools>label input,.planner-tools>label select{min-width:0;max-width:100%;width:100%}}
#dialogBody>label input[type=search],.library-search input{display:block;width:100%;margin-top:8px}

.assistant-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.assistant-dialog textarea{width:100%;margin:10px 0}.ai-messages{max-height:35vh;overflow:auto;min-height:80px}.ai-message{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:16px;padding:12px}.assistant-dialog [data-ai-preview]{border:1px solid var(--accent);padding:14px;border-radius:16px;margin:12px 0;overflow-wrap:anywhere}.assistant-dialog label{display:block}

@media(max-width:700px){.assistant-launch span{display:none}.assistant-launch{width:36px;min-width:36px;padding:6px;font-size:18px}.header{flex-wrap:wrap}.header-actions{margin-left:auto;gap:6px}}

/* Consistent touch controls and intrinsic sizing across narrow screens. */
button{line-height:1.35;text-align:center;overflow-wrap:anywhere}button>svg{vertical-align:middle}.header>div,.header-actions,.page-card,.settings-panel,.widget-body{min-width:0}.widget-body p,.metric,.settings-panel p,.page-card h2{overflow-wrap:anywhere}.metric{font-size:clamp(26px,3.2vw,40px);line-height:1.2}.life-hint-mobile{display:none}
@media(max-width:720px){
 .header{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.header h1{overflow-wrap:anywhere}.header-actions{width:100%;margin:0;display:flex;gap:8px;justify-content:flex-start}.header-actions .icon-button,.header-actions .assistant-launch{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;line-height:1}.header-actions .sync-status{flex:1;max-width:none;min-width:0;text-align:center;font-size:11px;line-height:1.4;padding:6px;overflow-wrap:anywhere}.header-actions #settingsButton{margin-left:auto}
 input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:16px}.settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:0;gap:6px}.settings-tabs button{min-width:0;min-height:44px;white-space:normal;display:flex;align-items:center;justify-content:center;text-align:center;padding:9px 8px;font-size:12px}.settings-layout{gap:16px}.dialog-heading h2{line-height:1.25}.dialog-heading>button{flex:none;min-width:44px;min-height:44px}.button-row>button{min-width:0;max-width:100%;white-space:normal}.assistant-dialog .button-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.assistant-dialog .button-row button{display:flex;align-items:center;justify-content:center;margin:0;padding:10px 8px;min-height:46px}.assistant-dialog [data-ai-clear]{grid-column:1/-1}.assistant-dialog [data-ai-preview] button{width:100%}.assistant-dialog .subtle{line-height:1.6;font-size:12px}.ai-messages:empty{min-height:0}.snapshot{flex-wrap:wrap}.snapshot>div{flex-basis:100%}.snapshot>button{flex:1}.dashboard-tools{gap:10px;align-items:center;flex-wrap:wrap}.dashboard-tools>p{min-width:0}.embedded-tabs{flex-wrap:wrap;overflow:visible}.embedded-tabs button{flex:1 1 100px;min-width:0;white-space:normal}.page-card{width:100%;min-width:0}.calendar-nav strong{min-width:0;overflow-wrap:anywhere}.calendar-nav button{display:grid;place-items:center;flex:none;padding:0;min-height:36px;width:36px}.date-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.date-shortcuts button{padding:8px 4px;min-width:0}.plan-quick{grid-template-columns:minmax(0,1fr)}.plan-quick>button{width:100%}.plan-row{min-width:0}.plan-title{min-width:0;overflow-wrap:anywhere}.plan-title small{white-space:normal}.plan-destination{width:100%;gap:6px}.plan-destination select{width:100%}.planner-tools{gap:8px}.planner-tools>select{flex:1 1 100%;min-width:0;width:100%}.life-hint-desktop{display:none}.life-hint-mobile{display:block}.life-selection-actions[hidden]{display:none}.life-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}.life-tools button{min-height:44px;padding:7px 5px}.life-tools [data-life-tool=fit],.life-tools [data-life-tool=fullscreen],.life-tools [data-life-add]{grid-column:span 1}.life-tools [data-settings-tab]{grid-column:3}.life-hint{line-height:1.5;margin:10px 0}.life-viewport{height:360px}.life-selection-actions{height:auto;min-height:44px;flex-wrap:wrap;overflow:visible}.habit-row{align-items:flex-start}.habit-row button{min-width:36px;min-height:36px;flex:none}.habit-row span{min-width:0;overflow-wrap:anywhere}.metric{font-size:clamp(26px,8vw,40px)}.clock-row{flex-wrap:wrap}.sidebar nav button{line-height:1.2;text-align:center}.sidebar .nav-label{white-space:normal;overflow-wrap:normal}.library button{min-width:0;overflow-wrap:anywhere}.library button strong,.library button small{max-width:100%}
}

#lifeRoadmap .life-selection-actions[hidden]{display:none!important}
