:root{--ink:#203e37;--paper:#f4f3ec;--line:#d9ded2;--accent:#295946;color-scheme:light}
body{background:radial-gradient(ellipse at 26% 16%,#e5dfcb,transparent 55%),linear-gradient(125deg,#c5cec1,#b7bbaa);font-family:"DM Sans","PingFang SC",sans-serif}
.frame{box-sizing:content-box;width:min(1262px,calc(96vw - 18px),calc((94vh - 18px) * 16 / 10));max-height:none;border:9px solid #30342e;border-radius:28px;box-shadow:0 32px 80px #25362946;container-type:inline-size}
.top{height:56px;background:#f6f6efa8;padding:0 26px}.brand{color:var(--ink);font-weight:680}.status-tools,.slider{display:flex;align-items:center;gap:14px}.status-tools span{font-size:12px;color:#596959}.clock{font:14px inherit}.gear{border:0;background:#e4e8da;color:var(--ink);border-radius:50%;width:38px;height:38px;font-size:21px;cursor:pointer}.photo-settings{position:absolute;top:18px;right:20px;background:#182720a8;color:white}.photo .glance{top:66px}
.views{inset:56px 0 0}.nav{background:#f8faf2ee;gap:3px;border:1px solid #deded2;box-shadow:0 6px 24px #26362a20;border-radius:22px;padding:6px;bottom:12px}.nav button{padding:10px 18px;font-weight:600;cursor:pointer}.nav button.on{background:var(--accent);border-radius:16px}.nav button[hidden]{display:none}.voice-fab{border-radius:16px;width:62px;height:42px;font-size:16px;font-weight:700;background:#335746;color:white}
.photo .caption,.home .caption{left:4%;bottom:16%;text-shadow:0 2px 18px #101b17}.photo .caption h1,.home .caption h1{font-size:clamp(24px,4cqw,52px)}.hero{background-position:center}.home{padding:22px 24px 74px}.side{gap:14px}.overview-block,.settings-layout,.frame-panel form,.frame-panel #taskList label{background:#fffef8;border:1px solid var(--line);border-radius:16px;padding:18px}.overview-block h3{margin:0;color:var(--ink)}.overview-block p{font-size:14px}.overview-block small,.overview-block strong{display:block}.overview-block button{float:right}
.frame-panel,.calendar{padding:20px 4% 80px;box-sizing:border-box}.frame-panel h2{font-size:clamp(22px,3cqw,36px);margin:0 0 16px;font-weight:650;color:var(--ink)}.frame-panel button,.overview-block button,.frame-panel input,.frame-panel select{font:inherit;font-size:14px}.frame-panel button,.overview-block button{border:0;background:#e7efdf;color:#234733;cursor:pointer;border-radius:10px;padding:9px 13px}.frame-panel button:hover,.nav button:hover:not(.on){background:#d9e5d3}.frame-panel form{display:flex;gap:8px;align-items:center;padding:10px;margin:12px 0}.frame-panel form input{flex:1;min-width:0}.frame-panel input,.frame-panel select{padding:9px 10px;border:1px solid var(--line);border-radius:9px}.frame-panel input[type=checkbox],.slider input{accent-color:var(--accent)}#taskList{display:grid;gap:8px}#taskList label:has(:checked){opacity:.6;text-decoration:line-through}
#photoRows{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}#photoRows label{padding:0 0 8px;border-radius:12px;background:white;overflow:hidden;position:relative;font-size:13px;text-indent:8px}#photoRows img{display:block;width:100%;height:108px;margin:0 0 8px;object-fit:cover}#photoRows input{position:absolute;top:8px;left:8px}
.settings-layout{display:grid;grid-template-columns:minmax(132px,25%) 1fr;gap:20px;padding:12px}#categories{background:#eef1e7;border-radius:11px;padding:6px;display:grid;align-content:start;gap:3px}#categories button{text-align:left;background:transparent;font-weight:550}#categories button[aria-pressed=true]{background:white;box-shadow:0 1px 5px #273c2f12}#preferences{padding:4px 12px 12px}#preferences h3{font-size:19px;margin:10px 0}.setting-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.setting-row>span:first-child{margin-right:auto;font-weight:600}.slider input{max-width:18vw}.calendar .cal-board{padding-bottom:6px}.member-board{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
#dimmer,#sleepOverlay{position:absolute;inset:0;background:black;z-index:30;pointer-events:none}#sleepOverlay{z-index:32;display:grid;place-items:center;pointer-events:auto}#sleepOverlay[hidden]{display:none}#sleepOverlay button{border:0;background:transparent;color:#aaa;padding:32px}.frame button:focus-visible,.frame input:focus-visible,.frame select:focus-visible{outline:3px solid #b78843;outline-offset:2px}
@container(max-width:700px){.nav button{padding:8px}.settings-layout{gap:6px}.frame-panel{padding:12px 14px 64px}.setting-row{flex-wrap:wrap;padding:7px 0}.status-tools{gap:6px}}

/* Gallery and shared touch surfaces */
.frame{--linen:#f7f5ef;--forest:#214c3b;--rule:#dddcd2;background:var(--linen)}
.frame-panel h2,.calendar h1,.home .caption h1,.photo .caption h1{font-family:"Songti SC","STSong",Georgia,serif;letter-spacing:-.035em}
.library-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.library-heading h2{margin:0}.library-heading small,#albumCount{font-size:13px;letter-spacing:.08em}.library-heading>button{background:transparent;border:1px solid #bfc8bb;border-radius:24px}
#library.on{display:flex;flex-direction:column;overflow:hidden;padding-bottom:78px}#albumTabs{display:flex;overflow:auto;flex:none;gap:7px;margin:2px 0 16px}#albumTabs button{white-space:nowrap;border-radius:22px;background:transparent;color:#565f55}#albumTabs button[aria-pressed=true]{background:var(--forest);color:white}.collection{display:grid;grid-template-columns:38% 1fr;gap:24px;min-height:0;flex:1}
#albumCover{border-radius:18px;background:#738174 center/cover;position:relative;overflow:hidden;color:white}#albumCover>div{position:absolute;inset:auto 22px 24px}#albumCover h3{font:600 clamp(24px,4cqw,52px)/1.15 "Songti SC",Georgia,serif;margin:6px 0 16px}#playAlbum{border-radius:22px;background:#fffdf4;color:#193e30;padding:11px 19px;font-weight:600}
.contact-sheet{overflow:auto;scrollbar-width:thin}.contact-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.contact-sheet header h3{margin:0;font-size:17px}.contact-sheet #photoRows{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.contact-sheet #photoRows button,.contact-sheet #photoRows label{padding:0;border-radius:9px;overflow:hidden;position:relative;aspect-ratio:1.14;background:#e4e3da}.contact-sheet #photoRows img{width:100%;height:100%;margin:0;object-fit:cover;transition:transform .22s}.contact-sheet #photoRows button:hover img{transform:scale(1.04)}
#library dialog{border:0;border-radius:20px;background:var(--linen);box-shadow:0 16px 72px #192b2440}#library dialog::backdrop{background:#17241fcc}#albumForm{display:grid;padding:14px;margin:0;min-width:260px}#albumForm h3{margin:0 0 8px}#albumForm div{text-align:right}#lightbox{max-width:90vw;padding:10px}#largePhoto{display:block;max-width:80vw;height:65vh;object-fit:contain}#lightbox footer{display:flex;align-items:center;justify-content:center;gap:14px;padding-top:10px}
#taskForm{border-radius:16px;background:#e9ede3;border:0;padding:14px}#taskForm button{background:var(--forest);color:white}.empty-task{margin:7% auto;text-align:center;color:#647166}.empty-task b{display:inline-grid;place-items:center;border-radius:50%;width:50px;height:50px;background:#dfe9db;font-size:22px}.empty-task h3{color:#254937;margin-bottom:5px}.empty-task p{font-size:14px;margin:0}
.frame .home{gap:16px}.hero{border-radius:18px}.overview-block{padding:20px;border-radius:18px}.overview-block small{font-size:12px;color:#627061}.photo .caption{max-width:65%}.frame .photo .caption h1{line-height:1.12}.frame .calendar{padding-bottom:80px}.week-day,.month-day,.member-column{border:1px solid #dcded4}.cal-modes button{min-height:35px}.voice-card{box-shadow:0 9px 35px #203d3029}.settings-layout{align-items:start;background:transparent;border:0;padding:0}.settings-layout #preferences{background:#fffef9;border:1px solid var(--rule);border-radius:16px;padding:14px 20px}.settings-layout #categories{padding:10px}.settings-layout #categories button{min-height:40px}.frame .nav{box-shadow:0 3px 18px #20372a19}
@container(max-width:740px){.collection{gap:12px;grid-template-columns:34% 1fr}.contact-sheet #photoRows{grid-template-columns:repeat(2,minmax(0,1fr))}#albumCover>div{inset:auto 12px 14px}}

.frame .nav button{width:52px;height:44px;padding:0;display:grid;place-items:center}
.frame .nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}

/* Warm display surfaces and pastel family colours from the product reference. */
body{background:linear-gradient(150deg,#f7f5f1,#dfddd8)}
.frame{
  --paper:#f2eee4;--ink:#302f2b;--line:#e6e1d6;--accent:#383733;--forest:#393733;
  --linen:#f8f5ee;--rule:#e6e1d6;color:var(--ink);background:linear-gradient(135deg,#f7f4ea,#ece6d9);
  border:8px solid #31312f;border-radius:19px;box-shadow:0 20px 50px #40382c30;
  font-family:Inter,"PingFang SC",sans-serif;
}
.frame .top{background:transparent;border:0}.brand,.status-tools span,.frame-panel h2,.calendar h1,.overview-block h3{color:var(--ink)}
.frame :is(.frame-panel h2,.calendar h1,.home .caption h1,.photo .caption h1){font-family:inherit;font-weight:600;letter-spacing:-.035em}
.frame .clock{font:550 16px Inter,"PingFang SC",sans-serif}.gear{background:#fffdf8;color:#48443c}
.frame .overview-block,.frame #preferences,.frame #categories,.frame #taskForm,.frame #taskList label,.frame .member-column,.frame .month-day,.frame .week-day,.frame .card{
  background:#fffdf9;border:0;border-radius:17px;box-shadow:0 2px 6px #55443509
}
.frame .overview-block p{padding:12px;border-radius:10px;background:#f2efea;color:#443e36}
.frame .overview-block small,.frame .card small,.frame .empty-task,.frame .week-date{color:#645e54}
.frame .nav{background:#fffdf8f5;border-color:#e4e0d7}.frame .nav button.on,.frame .cal-modes button.on{background:#e8e2d7;color:#272621}
.frame :is(.frame-panel button,.overview-block button){background:#eee9de;color:#38352f}.frame #albumTabs button[aria-pressed=true],.frame #taskForm button{background:#393733;color:white}
.frame #categories button[aria-pressed=true]{background:#efe8da;box-shadow:none}.frame .photo-settings{background:#28272499;color:white}
.frame .voice-fab{color:#422e16;background:#ffc35e;border:1px solid #ecb252;box-shadow:0 3px 12px #50412428}
.frame .week-day.today,.frame .month-day.today{background:#fff8e9;color:#302f2b;box-shadow:inset 0 0 0 2px #d9bc80}
.frame .member-mom{--member-color:#c47e9d;--member-fill:#f7dce8}
.frame .member-dad{--member-color:#6698c4;--member-fill:#d7e9fa}
.frame .member-child{--member-color:#83a451;--member-fill:#e3efc6}
.frame :is(.week-event,.member-event,.month-dot,.member-chip){background:var(--member-fill,#edeae4);color:#36332f;border-left:0;border-radius:9px}
.frame .voice-card,.frame .voice-draft{color:#302f2b}.frame .empty-task b{background:#e2edcf;color:#4e6238}

/* Landscape touch controls and viewing distances */
.frame button,.frame input,.frame select,.frame label{touch-action:manipulation}
.frame :is(.gear,.reaction,.cal-modes button,.photo-date,.frame-panel button,.frame-panel select,.frame-panel input:not([type=checkbox]),.overview-block button,.voice-actions button,.voice-stop,.voice-suggestion){min-height:44px}
.frame :is(.gear,.cal-modes button,.voice-actions button,.back-key){min-width:44px}
.frame .voice-fab{min-width:48px;min-height:48px}
.sub-title,.calendar-period{display:flex;align-items:center;gap:10px}.sub-title h2{margin:0}#settings>.sub-title{margin-bottom:16px}
.calendar-period button,.back-key{border:0;border-radius:12px;min-width:44px;min-height:44px;background:#fffdf9;color:#322f28;font-size:16px}
.calendar-period button:first-of-type,.calendar-period button:last-child,.frame-panel .back-key{font-size:25px;line-height:1}.calendar-period h1{white-space:nowrap;font-size:clamp(18px,2.3cqw,32px)}
.frame .cal-head{gap:10px}.frame .cal-board{height:calc(100% - 62px)}.week-date,.month-weekday,.member-empty,.member-chip{font-size:12px}.week-event,.month-dot,.member-event,.member-head{font-size:clamp(12px,1.2cqw,17px);line-height:1.4}.month-day{font-size:14px}.frame .overview-block p,#taskList,.setting-row,.frame-panel input,.frame-panel select{font-size:clamp(15px,1.4cqw,20px)}
#categories button,.frame #albumTabs button{min-height:44px}.frame #taskList label{display:flex;align-items:center;min-height:48px;gap:8px}#taskList input[type=checkbox]{width:20px;height:20px;flex:none}
.frame #largePhoto{max-height:65dvh}.frame #preferences{min-width:0}.settings-layout .setting-row{flex-wrap:wrap}.frame .cal-head .member-legend{flex-wrap:wrap}
@container(max-width:840px){.calendar .cal-head{grid-template-columns:1fr auto}.calendar .cal-head .member-legend{display:none}.frame .home{gap:12px}.frame .cal-modes{padding:2px}.calendar-period{gap:4px}}

.overview-weather{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-radius:17px;background:linear-gradient(120deg,#d9eff9,#bcdcf2);color:#243c50}.overview-weather small,.overview-weather strong{display:block}.overview-weather small{font-size:12px}.overview-weather strong{margin-top:4px}.overview-weather span{font-size:36px;font-weight:500}

/* All device dialogs share the simulated screen's coordinate space. */
#frameDialogs{position:absolute;inset:0;z-index:29;display:grid;place-items:center;overflow:hidden;background:#171a18a6}
#frameDialogs[hidden]{display:none}
#frameDialogs dialog[open]{position:static;margin:0;box-sizing:border-box;width:min(390px,90%);max-width:100%;max-height:90%;overflow:auto;padding:24px;border:0;border-radius:16px;background:#fffdf9;color:#302f2b;box-shadow:0 12px 48px #0003}
#frameDialogs button,#frameDialogs input{min-height:44px;padding:8px 15px;border:1px solid #d9d7ce;border-radius:12px;font:inherit;background:#f5f2eb;color:#252722}
#frameDialogs #albumForm{display:grid;gap:16px;margin:0}#frameDialogs h3{margin:0 0 8px}
#frameDialogs #lightbox[open]{width:100%;height:100%;max-height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;padding:0;border-radius:0;background:#101210;color:white}
#frameDialogs #largePhoto{display:block;width:100%;height:100%;min-height:0;max-width:none;max-height:none;margin:0;object-fit:contain}
#frameDialogs #lightbox footer{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;padding:8px;background:#171916}
#frameDialogs #lightbox button{background:#30332f;border:0;color:white}

/* The overview is a fixed-height glance surface; its links open the full lists. */
#home{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
#homeSide{container-type:size;display:grid;grid-template-rows:auto minmax(0,1.18fr) minmax(0,1fr);align-content:stretch;min-height:0;gap:12px;overflow:hidden}
.overview-section{display:flex;flex-direction:column;justify-content:center;min-height:0;padding:0 clamp(14px,1.7cqw,24px);background:#fffdf9;border-radius:17px}
.overview-link{width:100%;min-height:44px;padding:0;background:transparent;border:0;text-align:left;display:flex;align-items:center;gap:8px;cursor:pointer;color:#312f2b}
.overview-link strong{font-size:clamp(17px,1.7cqw,23px);font-weight:650;margin-right:auto}.overview-link span,.pending-preview small{font-size:13px;color:#69665e;font-weight:400}
.overview-link i{font:24px/1 sans-serif;color:#706e66}.overview-link:active{opacity:.6}
.overview-section ul{margin:0;padding:0;list-style:none}.overview-section li{padding:clamp(4px,1.5cqh,10px) 0;line-height:1.28}.overview-section li+li{border-top:1px solid #ede9df}
.overview-section li b{font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-size:clamp(15px,1.5cqw,20px)}
.agenda-preview li{padding-left:12px;position:relative}.agenda-preview li::before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:3px;border-radius:4px;background:#9fbacf}.agenda-preview time{display:block;color:#6c685f;font-size:13px;margin-bottom:3px;font-variant-numeric:tabular-nums}
.pending-preview li{display:flex;align-items:center;gap:8px}.pending-preview small{margin-left:auto;white-space:nowrap}
.overview-weather{padding:12px 20px;background:linear-gradient(115deg,#e2eff4,#c0dbe9)}.weather-reading{display:flex;align-items:center;gap:12px}.weather-reading svg{width:42px;height:36px}
#taskList label small{margin-left:auto;color:#68645b}.frame .frame-panel #taskList label{border-radius:10px}.frame .hero .caption{left:22px;bottom:20px}.frame .hero .caption h1{font-size:clamp(22px,3cqw,39px);font-weight:550}
@container(max-height:365px){.overview-weather{padding-block:8px}}

/* Device chrome stays secondary to the active workspace. */
.frame .brand,.frame .clock{font-size:15px;font-weight:520;font-variant-numeric:tabular-nums;color:#59574f}.status-tools #connection:empty{display:none}
.overview-section{justify-content:flex-start;padding-top:clamp(6px,2cqh,13px);padding-bottom:6px}.overview-section .agenda-preview,.overview-section .pending-preview{display:grid;align-content:start}
#calendar [data-event-id]{cursor:pointer;min-height:40px;padding:8px}.calendar .cal-board{scrollbar-width:thin}
#tasks #taskCount{display:block;margin:8px 0 14px;color:#676359}.frame #taskList{display:grid;gap:1px;border-radius:15px;overflow:hidden;background:#e5e1d7}.frame #taskList label{border-radius:0;padding:13px 16px;cursor:pointer}.frame #taskList details{background:#f8f5ed}.frame #taskList summary{cursor:pointer;padding:15px 18px;color:#706b60}
#frameDialogs form{display:grid;gap:12px}#frameDialogs form>div:last-child{text-align:right}#frameDialogs #taskForm{margin:0;padding:0;background:transparent}#frameDialogs select{min-height:44px;border:1px solid #d9d7ce;border-radius:10px;padding:8px;background:white}
#photoRows label:has(input:checked){outline:3px solid #617c65;outline-offset:-3px}#photoRows input[type=checkbox]{width:23px;height:23px;accent-color:#45624b}
.photo .reaction{min-width:46px;margin-top:6px}.frame.photo-mode .nav,.frame.photo-mode .voice-fab{visibility:hidden}.frame.photo-mode #photo .caption{bottom:6%}
#settings.on{display:flex;flex-direction:column;overflow:hidden}.settings-layout{min-height:0;flex:1;align-items:stretch}.settings-layout #categories,.settings-layout #preferences{overflow:auto;scrollbar-width:thin}.settings-layout #categories{display:flex;flex-direction:column;gap:4px}.settings-layout #categories button{flex:none}
.frame .voice-layer.on{position:absolute;inset:0;z-index:22;background:#17201963;display:grid;place-items:center;pointer-events:auto;padding:16px}
.frame .voice-layer.on .voice-card{display:flex;flex-direction:column;gap:12px;width:min(540px,94%);max-height:100%;overflow:auto;margin:0;padding:20px;border-radius:20px;background:#fffdf8;pointer-events:auto}
.frame .voice-layer.on .voice-card h2:empty,.frame .voice-layer.on .voice-card p:empty,.voice-card .eyebrow:empty{display:none}
.frame .voice-layer.on .voice-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.frame .voice-layer.on .voice-draft{margin:0}.frame .voice-layer.on .voice-text,.frame .voice-layer.on #voiceText{white-space:normal;font-size:16px;line-height:1.45}.frame .voice-layer.on .voice-card h2{display:block;font-size:19px}.frame .voice-layer.on [hidden]{display:none}

.profile-avatar{width:28px;height:28px;display:inline-grid;place-items:center;border-radius:50%;background:var(--profile-color);color:#38342e;font-size:16px;font-weight:600;line-height:1;flex:none}
.avatar-stack{display:inline-flex;align-items:center}.avatar-stack .profile-avatar+.profile-avatar{margin-left:-7px}.avatar-stack .profile-avatar{border:2px solid #fffdf9}
#profileList{display:flex;flex-wrap:wrap;gap:6px}#profileList button,.member-head,.member-chip{display:inline-flex;align-items:center;gap:6px}#taskList small{display:flex;align-items:center;gap:5px}
.frame .agenda-preview li{display:flex;align-items:center;justify-content:space-between;gap:8px}.agenda-preview li>div{min-width:0}.agenda-preview li::before{background:var(--person-tone)}
.frame .cal-head{grid-template-columns:1fr auto;row-gap:8px;margin-bottom:10px}.cal-head .member-legend{grid-column:1/-1;grid-row:2;justify-content:flex-start}.frame .member-chip{background:transparent;font-size:13px;padding:0 6px 0 0}.frame .member-chip .profile-avatar{width:24px;height:24px}
#calendar.on{display:flex;flex-direction:column;overflow:hidden}#calendar .cal-board{flex:1;min-height:0;height:auto}.week-grid{gap:2px;background:#dfdcd3;border-radius:15px;overflow:auto}.frame .week-day{border-radius:0;box-shadow:none;padding:10px 7px}.week-date{padding:4px 0 10px;border-bottom:1px solid #e7e4dc}.week-event strong{display:block;font-weight:600;margin:4px 0}.week-event .profile-avatar{width:21px;height:21px;font-size:12px}.frame .week-event{margin-top:8px}.member-board{gap:4px}.frame .member-head{display:flex;justify-content:flex-start;padding:7px}

/* Device preferences */
#settings .settings-layout{grid-template-columns:clamp(152px,22%,244px) minmax(0,1fr);gap:clamp(12px,2cqw,26px)}
#settings #categories{background:transparent;border:0;box-shadow:none;padding:4px 0;gap:5px}
#settings #categories button{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;color:#554f46;border-radius:14px}
#settings #categories button[aria-pressed=true]{background:#373e35;color:#fffdf6}
#categories svg,.wifi-option svg{width:21px;height:21px;flex:none}
#settings #preferences{padding:clamp(16px,2.1cqw,30px);background:#fffdfa;border:1px solid #e7e1d7;border-radius:22px;box-shadow:none}
#preferences>h3{font-size:clamp(21px,2.1cqw,29px);margin:0 0 14px;letter-spacing:-.035em}
#settings .setting-row{min-height:56px;gap:10px;border-color:#e9e5dc;padding:8px 0}
#settings .setting-row:last-child{border-bottom:0}
.network-status{display:flex;align-items:center;gap:16px;padding:15px 18px;background:#e8eee4;color:#354736;border-radius:15px}
.network-status svg{width:32px;height:32px}
.network-status strong,.network-status small{display:block}.network-status small{margin-top:3px;color:#556453}
.wifi-list{border:0;margin:18px 0 5px;padding:0;min-width:0}
.wifi-list legend{font-size:14px;font-weight:650;color:#675f54;margin-bottom:6px;padding:0}
#settings .wifi-option{position:relative;display:flex;align-items:center;gap:14px;min-height:49px;padding:0 10px;border-bottom:1px solid #e9e5dc;cursor:pointer}
.wifi-option svg{color:#626858}.wifi-mark{margin-left:auto;border:1px solid #adae9f;border-radius:50%;width:21px;height:21px;text-align:center}
.wifi-option input:checked~.wifi-mark{background:#465944;border-color:#465944;color:white}.wifi-option input:checked~.wifi-mark::after{content:'✓'}
#settings .wifi-option input,#settings .pref-choices input{position:absolute;width:1px;height:1px;opacity:0;padding:0}
.pref-choices{display:flex;flex-wrap:wrap;gap:3px;background:#f1eee7;border-radius:12px;padding:3px}
#settings .pref-choices label{position:relative;display:block;cursor:pointer}
.pref-choices span{display:grid;place-items:center;min-height:44px;padding:0 11px;border-radius:9px;color:#534e45;font-size:14px}
.pref-choices input:checked+span{background:#fff;color:#283829;box-shadow:0 1px 4px #3b342322;font-weight:650}
.wifi-option:has(input:focus-visible),.pref-choices input:focus-visible+span{outline:2px solid #576e54;outline-offset:1px}
#preferences .slider{accent-color:#52664b}.slider output{font-variant-numeric:tabular-nums;min-width:4ch;text-align:right}
@container(max-width:720px){#settings .settings-layout{grid-template-columns:138px minmax(0,1fr);gap:10px}#settings #categories button{padding:0 8px;gap:7px}}

.frame .top .nav{position:static;transform:none;display:flex;align-items:center;padding:2px;gap:2px;background:transparent;box-shadow:none;border:none}
.frame .top .nav button{width:46px;height:44px;border-radius:14px}
.frame .top .status-tools{gap:6px}
.frame .top #clock{margin-inline-end:8px}

.frame.photo-mode.header-peek .top .nav{visibility:visible}
.frame #voiceBtn{width:52px;height:52px;border-radius:50%;background:#344939;color:#fffdf4;border:1px solid #ffffff40;display:grid;place-items:center;padding:0;box-shadow:0 3px 12px #182b1e28}
.frame #voiceBtn.listening{background:#984d48}
#voiceBtn svg{width:28px;height:28px}

.frame .top #clock{font-size:20px;font-weight:620;letter-spacing:-.03em}
#home{grid-template-columns:calc(100% / 3) minmax(0,48fr) minmax(0,25fr) minmax(0,27fr);grid-template-areas:"agenda photo photo weather" "agenda pending ask ask";grid-template-rows:auto minmax(0,1fr);padding-bottom:22px}
#home .hero{grid-area:photo;width:100%;align-self:start;aspect-ratio:16/10;border-radius:18px}
.home-weather{grid-area:weather;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(12px,1.6cqw,22px) clamp(16px,2cqw,28px);border-radius:18px;background:linear-gradient(110deg,#e4eff3,#cadfe8);color:#29475a}
.home-weather span,.home-weather strong{display:block}.home-weather span{font-size:14px}.home-weather strong{margin-top:3px;font-size:19px}
.home-weather-reading{display:flex;align-items:center;gap:9px}.home-weather-reading svg{width:clamp(35px,4cqw,54px)}.home-weather-reading b{font-size:clamp(30px,3.6cqw,48px);line-height:1;font-weight:550}
#homeSide{display:contents}
#homeSide .overview-section{min-width:0;overflow:auto;padding:10px clamp(12px,1.6cqw,22px) 12px}
.home-schedule{grid-area:agenda}.home-pending{grid-area:pending}
#homeSide .agenda-preview li{display:flex;align-items:center;gap:8px;padding:7px 0 7px 12px}
#home .home-weather{min-height:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
#home .home-weather>div:first-child{display:flex;align-items:baseline;gap:8px}
#home .home-weather-reading{flex-direction:row-reverse;justify-content:space-between;width:100%}
#homeSide .agenda-preview li::before{background:var(--person-tone,#9fbacf)}
#homeSide .agenda-preview li>div,.home-task>span:first-of-type{flex:1;min-width:0}
.home-task{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}.home-task input{width:18px;height:18px;accent-color:#50664d}
.shared-day-events{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:8px}
.shared-day-events .member-event{margin:0}
.day-panel:has(.shared-day-events){grid-template-rows:auto minmax(0,1fr)}

.home-schedule .agenda-day{flex:none}.agenda-day h3{margin:12px 0 3px;font-size:14px;font-weight:650;color:#53624e}.agenda-day+.agenda-day{margin-top:4px;border-top:1px solid #dfded3}
#taskList .sortable-task{display:flex;align-items:center;background:#fffdf9;position:relative}
#taskList .sortable-task label{flex:1;min-width:0}
#taskList .task-grip{width:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#79776d;fill:currentColor;touch-action:none;user-select:none;cursor:grab}
#taskList .drag-source{opacity:.55}
#taskList [data-drop]::after{content:"";position:absolute;left:8px;right:8px;height:3px;background:#4e6b51;border-radius:3px;pointer-events:none}
#taskList [data-drop=before]::after{top:0}#taskList [data-drop=after]::after{bottom:0}

.home-ask{grid-area:ask;display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 18px;border:0;border-radius:17px;background:#e2e8da;color:#324436;font:inherit;text-align:left;cursor:pointer}
.home-ask svg{width:28px;height:28px}.home-ask svg{flex:none}.home-ask span{color:#465743;font-size:14px;line-height:1.45}.home-ask q{quotes:"「" "」"}
.home-ask:active{background:#cfdac6}.frame:has(#home.on) #voiceBtn{display:none}

#home .home-ask{gap:9px;padding:9px 12px}#home .home-ask span{line-height:1.35}

#home .home-ask{flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(14px,2cqw,26px);gap:12px}#home .home-ask span{line-height:1.5}
@container(max-width:820px){#homeSide .home-pending{padding-block:6px}#home .home-weather{padding-inline:10px}}
