/* Browser-only enhancements. Native Android keeps its existing layout and lifecycle. */
html[data-web] body{background:var(--paper)}
html[data-web]{--muted:#687765}
html[data-web] input,html[data-web] textarea,html[data-web] select{font-size:16px}
.web-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
html[data-web] .brand .edition{display:none}
html[data-web] #nav:empty{display:none}
.web-install{border:1px solid #cad3c3;border-radius:10px;padding:7px 12px;min-height:38px;color:#3e624f;font-size:12px;white-space:nowrap;background:#f6f5ef}
.web-network{font-size:11px;color:#805e3b}
.web-help{font-size:13px;line-height:1.85;color:#586c5d}
.web-help ol{padding-left:23px}.web-help li{padding:8px 0}.web-help h3{margin:20px 0 6px}
.web-help p{margin:10px 0}.web-help .notice{color:#52644f}
.web-help .primary{margin-top:18px;font-size:14px}
.web-dialog{border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);padding:26px;max-width:500px;width:calc(100% - 32px);max-height:85dvh;overflow:auto}
.web-dialog::backdrop{background:#15251e88}.web-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.web-dialog-head button{min-height:44px;font-size:13px;color:var(--green)}
.web-connection{position:fixed;z-index:35;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(90vw,440px);background:#fff8df;color:#665333;padding:12px 16px;border:1px solid #e0d5b5;border-radius:12px;font-size:12px;line-height:1.7;box-shadow:0 6px 22px #263e3612}
.web-update{position:fixed;z-index:36;bottom:calc(92px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#263e36;color:#faf9ee;max-width:90vw;width:360px;padding:14px 18px;border-radius:14px;box-shadow:0 8px 24px #18332925;font-size:13px}
.web-update button{display:block;color:#f0dca2;margin-top:8px;min-height:36px;padding:0}.web-update small{display:block;margin-top:5px;color:#d0d9ca}
html[data-web] .focusing #app{max-width:none}
html[data-web] .focus-view{max-width:640px;margin:auto}
html[data-web] .city-home .scene #city-canvas{position:absolute;inset:0}
.note-focus-card{align-self:start;width:100%;min-width:0;display:flex;flex-direction:column;gap:16px}
.note-focus-card h2{font-size:20px;line-height:1.6;overflow-wrap:anywhere}
.note-focus-time{display:flex;flex-direction:column;gap:6px;margin:6px 0 12px}
.note-focus-time>span:first-child{font-size:36px;line-height:1.3;font-variant-numeric:tabular-nums}
.note-focus-card .actions{margin-top:0}
.home-vision{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.vision-home-preview{display:block;width:100%;padding:0;overflow:hidden;text-align:left;border-radius:12px;background:var(--paper)}
.vision-home-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:min(42dvh,280px);margin-inline:auto;object-fit:contain}
.vision-home-preview>span{display:block;padding:8px 0;font-size:11px;color:var(--muted)}
html[data-web] .sheet{scroll-padding-top:78px}
html[data-web] .sheet-head{position:sticky;top:-24px;background:var(--paper);z-index:4;margin:-1px -2px 16px;padding:10px 2px 14px}
html[data-web] .auth-hero .subtle{color:#687765}
html[data-web] .auth-card .agreements{color:#687765}
@media(min-width:768px){
 html[data-web] #app{max-width:1100px;padding:0 38px 110px}
 html[data-web] #nav{width:min(100%,1100px)}
 html[data-web] .brand{height:94px}
 html[data-web] .city-home{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.85fr);align-items:stretch;gap:26px}
 html[data-web] .city-home>.city,html[data-web] .city-home>.card{margin:12px 0 24px;min-width:0}
 html[data-web] .city-home .city>.scene{height:100%;min-height:380px;aspect-ratio:auto}
 html[data-web] .city-home .city{display:flex;flex-direction:column}
 html[data-web] .city-home .scene{flex:1}
 html[data-web] .start-card{padding:28px;display:flex;flex-direction:column;justify-content:center}
 html[data-web] .start-card #intent{padding:10px 0 22px;margin-bottom:10px}
 html[data-web] .start-card .primary{margin-top:12px}
 html[data-web] .little-lamp-link{font-size:12px}
 html[data-web] .auth-screen #app{max-width:1040px}
 html[data-web] .auth-screen #main{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;min-height:calc(100dvh - 180px)}
 html[data-web] .auth-hero{text-align:left;padding:0}
 html[data-web] .auth-lamp{margin:0 0 34px}
 html[data-web] .auth-hero h1{font-size:34px;letter-spacing:3px}
 html[data-web] .auth-hero .subtle{margin:20px 0 0;font-size:14px;max-width:340px}
 html[data-web] .auth-hero .eyebrow{font-size:11px}
 html[data-web] .auth-card{margin:0;padding:30px}
 html[data-web] .sheet{max-width:600px}
 html[data-web] .sheet.social-sheet{max-width:740px}
 html[data-web] .plan-time-scroll{height:min(60dvh,640px)}
 html[data-web] .journal-report{padding:28px}
 html[data-web] .journal-calendar{gap:12px}
 html[data-web] .task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-web] .focus-view{max-width:980px;display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:max-content max-content minmax(0,1fr) max-content max-content;column-gap:56px;height:calc(100dvh - 48px);min-height:540px}
 html[data-web] .focus-top,html[data-web] .focus-title,html[data-web] .focus-ai-hint,html[data-web] .focus-caption,html[data-web] .timer-actions{grid-column:2}
 html[data-web] .focus-top{grid-row:1;margin-top:30px;gap:10px}
 html[data-web] .focus-title{grid-row:2;align-self:start;font-size:26px;min-height:1.5em;max-height:4.5em;margin:24px 0 8px}
 html[data-web] .focus-ai-hint{grid-row:3;align-self:start}
 html[data-web] .focus-puzzle{grid-column:1;grid-row:1/6;width:100%;height:min(78dvh,720px);aspect-ratio:4/5;max-width:100%;align-self:center}
 html[data-web] .focus-caption{grid-row:4}
 html[data-web] .timer-actions{grid-row:5;margin-bottom:30px}
 html[data-web] .focusing #app{padding:24px 32px}
 html[data-web] .focusing .preparation-view{max-width:560px;margin:auto}
 html[data-web] .web-connection,html[data-web] .web-update{bottom:24px}
}
@media(min-width:1120px){
 html[data-web] body:not(.auth-screen):not(.focusing) #app{margin:0 0 0 178px;max-width:none;min-height:100dvh;padding:0 48px 44px;box-shadow:none}
 html[data-web] body:not(.auth-screen):not(.focusing) #main{max-width:1180px;margin:auto}
 html[data-web] body:not(.auth-screen):not(.focusing) .brand{max-width:1180px;margin:auto}
 html[data-web] body:not(.auth-screen):not(.focusing) #nav{left:0;top:0;bottom:0;transform:none;width:178px;border-top:0;border-right:1px solid var(--line);padding:122px 18px 30px;flex-direction:column;justify-content:flex-start;gap:12px;backdrop-filter:none;background:#edf0e7}
 html[data-web] body:not(.auth-screen):not(.focusing) #nav button{flex-direction:row;justify-content:flex-start;gap:16px;border-radius:12px;padding:15px 20px;font-size:14px;width:100%;color:#65765f}
 html[data-web] body:not(.auth-screen):not(.focusing) #nav button.active{background:#dce4d5;color:#244432;font-weight:600}
 html[data-web] .city-home .city>.scene{min-height:450px}
 html[data-web] #toast{bottom:28px}
}
@media(max-width:767px){
 html[data-web] #app{max-width:620px}
 html[data-web] #nav{width:min(100%,620px)}
 html[data-web] .brand{padding-top:env(safe-area-inset-top);height:calc(78px + env(safe-area-inset-top))}
 html[data-web] .brand .edition{display:none}
 html[data-web] .sheet{max-height:calc(100dvh - env(safe-area-inset-top) - 12px)}
 html[data-web] .auth-screen #app{padding-bottom:40px}
 html[data-web] .web-install{padding:7px 10px}
}
@media(prefers-reduced-motion:reduce){.web-update,.web-connection{scroll-behavior:auto;transition:none}}
