:root{color-scheme:dark;--bg:#080c12;--surface:#121822;--surface2:#19212d;--surface3:#222d3c;--text:#f7f9fc;--sub:#b0bdcb;--mute:#7e8a9b;--line:rgba(225,237,255,.105);--accent:#9cc5ff;--accentStrong:#6eafff;--green:#66d49a;--amber:#f4bf72;--red:#ff9a9a;--chip:rgba(255,255,255,.06);--shadow:0 18px 60px rgba(0,0,0,.28)}
:root[data-theme="light"]{color-scheme:light;--bg:#f4f6f9;--surface:#fff;--surface2:#f0f3f8;--surface3:#e6edf5;--text:#17202b;--sub:#536174;--mute:#7b8999;--line:rgba(35,49,70,.1);--accent:#286aa7;--accentStrong:#146cc9;--green:#248755;--amber:#a36b24;--red:#b84747;--chip:#f4f6f9;--shadow:0 20px 60px rgba(32,48,70,.07)}
*{box-sizing:border-box}html{min-height:100%;-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;font-size:15px;line-height:1.42}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accentStrong);outline-offset:3px}#app{min-height:100vh} .shell{max-width:520px;min-height:100vh;margin:0 auto;background:radial-gradient(circle at 30% -9%,rgba(92,128,197,.2),transparent 42%),var(--bg);position:relative;padding-bottom:calc(102px + env(safe-area-inset-bottom))} @media(min-width:650px){body{background:#1c222d}.shell{box-shadow:0 10px 90px rgba(0,0,0,.25);border-inline:1px solid var(--line)}}
.content{padding:0 16px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:calc(11px + env(safe-area-inset-top)) 16px 12px;gap:12px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-mark{display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#253a55,#171f2d);color:#d9e8ff;width:40px;height:40px;border:1px solid var(--line)}.brand-name{font-weight:750;letter-spacing:-.035em;font-size:17px}.eyebrow{color:var(--mute);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.subline{font-size:12px;color:var(--sub)}.topactions{display:flex;align-items:center;gap:8px}.round-btn,.avatar-btn,.btn-icon{border:1px solid var(--line);color:var(--text);background:var(--surface);display:grid;place-items:center;flex:none}.round-btn{width:44px;height:44px;border-radius:13px}.avatar-btn{height:44px;min-width:44px;padding:0 9px;border-radius:50%;font-size:14px;font-weight:760;background:linear-gradient(135deg,#6374a6,#313d5d);color:#fff}.ico{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}.ico.sm{width:16px;height:16px}.ico.lg{width:24px;height:24px}.ico.xl{width:29px;height:29px}.heading{font-size:30px;letter-spacing:-.055em;line-height:1.07;margin:2px 0 12px;font-weight:785}.page-intro{color:var(--sub);margin:0 0 22px;font-size:13px}.section-title{font-size:17px;font-weight:750;letter-spacing:-.025em;margin:16px 0 7px;display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title small{font-size:12px;color:var(--sub);font-weight:500}.link-btn{padding:4px 0;min-height:36px;display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:700}.surface,.card{background:var(--surface);border:1px solid var(--line);border-radius:19px;overflow:hidden}.card{padding:12px}
.statrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0 2px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:9px 10px}.stat .value{font-size:23px;font-weight:780;letter-spacing:-.05em;line-height:1.1}.stat .lbl{font-size:11px;color:var(--sub);margin-top:3px;line-height:1.3}.stat .ico{color:var(--accent);display:block;width:17px;height:17px;margin-bottom:4px}.ring{height:58px;width:58px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--green) calc(var(--pct) * 1%),rgba(255,255,255,.09) 0);position:relative}.ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#142236}.ring span{z-index:1;font-size:13px;font-weight:800;color:#fff}.row{display:flex;align-items:center;gap:11px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.muted{color:var(--sub)}.small{font-size:12px}.tiny{font-size:11px}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strong{font-weight:720}.progress-track{height:6px;border-radius:999px;background:var(--surface3);overflow:hidden}.progress-track>div{height:100%;border-radius:999px;background:linear-gradient(90deg,#60bd9b,#86e2a3)}.pill,.status{display:inline-flex;gap:5px;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:750;white-space:nowrap}.pill{background:var(--chip);color:var(--sub)}.pill.blue{background:rgba(99,166,249,.13);color:var(--accent)}.status.todo{background:rgba(237,125,125,.12);color:var(--red)}.status.progress{background:rgba(101,157,250,.14);color:var(--accent)}.status.done{background:rgba(73,202,128,.13);color:var(--green)}.status.unassigned{background:rgba(242,181,100,.14);color:var(--amber)}
.list-row{display:flex;align-items:center;gap:9px;min-height:52px;padding:8px 11px;background:none;color:var(--text);border:0;border-bottom:1px solid var(--line);width:100%;text-align:left}.list-row:last-child{border-bottom:none}.list-row:active{background:var(--surface2)}.list-icon{width:32px;height:32px;display:grid;place-items:center;background:var(--surface2);border-radius:12px;color:var(--sub);flex:none}.list-icon.blue{background:rgba(73,148,250,.14);color:#8ebeff}.list-icon.green{background:rgba(89,204,145,.12);color:#80e1ac}.list-icon.amber{background:rgba(244,184,114,.11);color:#ebc184}.list-row .row-title{font-weight:680;font-size:13px}.list-row .row-desc{font-size:11px;color:var(--sub);margin-top:2px}.chev{color:var(--mute);flex:none}.empty{border:1px dashed var(--line);border-radius:18px;padding:14px 12px;text-align:center;color:var(--sub);background:rgba(140,160,200,.03)}.empty .ico{color:var(--mute);margin-bottom:8px}.empty b{display:block;color:var(--text);margin:4px 0 7px}.empty p{font-size:12px;margin:5px 0 14px}.textbutton{color:var(--accent);font-size:13px;border:0;background:none;padding:4px}.btn{border:0;border-radius:14px;padding:13px 16px;font-size:13px;font-weight:760;display:flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:linear-gradient(130deg,#85b8e7,#668ebc);color:#071624}.btn.secondary{background:var(--surface2);color:var(--text);border:1px solid var(--line)}.btn.ghost{background:transparent;color:var(--sub);border:1px solid var(--line)}.btn.danger{background:rgba(224,83,83,.1);color:var(--red)}.btn.small{padding:9px 13px;font-size:11px;border-radius:11px}.btn.full{width:100%}.btn-row{display:flex;gap:8px}.btn-row .btn{flex:1}.filterbar{display:flex;gap:7px;overflow-x:auto;padding:2px 0 7px;margin-right:-16px;padding-right:16px;scrollbar-width:none}.filterbar::-webkit-scrollbar{display:none}.filter{white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--sub);padding:8px 11px;min-height:40px;border-radius:12px;font-size:12px;font-weight:650}.filter.active{background:var(--surface3);border-color:rgba(145,185,249,.28);color:var(--text)}.inline-check{height:24px;width:24px;display:grid;place-items:center;color:var(--mute);background:transparent;border:1.6px solid #748193;border-radius:7px;flex:none}.inline-check.checked{background:var(--green);border-color:var(--green);color:#0b2017}.action-line{display:flex;align-items:center;gap:9px}.action-line .list-row{flex:1}.minihead{font-size:11px;color:var(--sub);letter-spacing:.055em;text-transform:uppercase;font-weight:760;margin:16px 0 9px}.bar-meta{margin-top:8px;display:flex;justify-content:space-between;color:var(--sub);font-size:11px}
.family-card{padding:11px;margin-bottom:7px}.fam-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:var(--surface3);color:var(--text);font-size:19px;font-weight:750;flex:none}.fam-avatar.f0{background:rgba(141,165,218,.15);color:#c4d8ff}.fam-avatar.f1{background:rgba(151,126,206,.17);color:#dbcaff}.fam-avatar.f2{background:rgba(88,154,219,.17);color:#a6d3fc}.fam-avatar.f3{background:rgba(111,187,147,.16);color:#a6ecc9}.fam-avatar.f4{background:rgba(224,159,105,.15);color:#ffd9a6}.family-card .family-top{display:flex;align-items:center;gap:12px;cursor:pointer}.family-card .family-top .desc{flex:1;min-width:0}.family-card .names{font-size:12px;color:var(--sub);margin-top:3px;line-height:1.35}.family-card .sep{height:1px;background:var(--line);margin:8px 0}.person-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.person-cell{padding:8px 5px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-align:center;min-height:74px}.person-cell .roundperson{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface3);font-weight:750;margin:0 auto 6px}.person-cell .small{font-size:11px}.person-cell.selected{border-color:var(--accentStrong);background:rgba(95,148,219,.1)}
.category{margin:13px 0 6px;display:flex;align-items:center;justify-content:space-between}.category strong{font-size:15px}.category span{font-size:12px;color:var(--sub)}.dish-row{display:flex;align-items:center;gap:8px;padding:5px 10px;border-bottom:1px solid var(--line);min-height:54px}.dish-row:last-child{border-bottom:0}.dish-row .dish-icon{width:33px;height:33px;border-radius:12px;display:grid;place-items:center;background:var(--surface2);color:var(--accent);flex:none}.dish-row .dish-name{font-size:13px;font-weight:730}.dish-row .dish-desc{font-size:11px;color:var(--sub);margin-top:2px}.dish-row .status{margin-left:auto}.tap{border:0;background:transparent;padding:0;text-align:left;cursor:pointer;color:inherit}.fab{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));right:max(21px,calc((100vw - 520px)/2 + 21px));height:52px;width:52px;background:linear-gradient(135deg,#91c3ff,#5c97da);border:0;border-radius:17px;box-shadow:0 9px 25px rgba(56,126,220,.25);color:#102339;display:grid;place-items:center;z-index:12}
.bottomnav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:520px;height:calc(76px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:9px 8px calc(7px + env(safe-area-inset-bottom));z-index:20}.navitem{background:none;border:0;color:var(--mute);display:flex;align-items:center;flex-direction:column;gap:5px;font-size:10px;font-weight:580;min-width:0;padding:6px 0;border-radius:12px}.navitem.active{background:var(--surface2);color:var(--text)}.navitem.active .ico{color:var(--accent)}
.modal-backdrop{position:fixed;inset:0;z-index:40;background:rgba(1,4,9,.7);display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(100%,520px);background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:27px 27px 0 0;max-height:91dvh;overflow-y:auto;padding:13px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -20px 80px rgba(0,0,0,.3)}.sheet-handle{width:40px;height:4px;background:var(--surface3);border-radius:10px;margin:0 auto 8px}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.sheet-head h2{margin:0;font-size:24px;letter-spacing:-.045em}.sheet-head p{margin:5px 0 0;color:var(--sub);font-size:12px}.field{margin:9px 0}.field label{display:block;margin-bottom:7px;font-size:12px;color:var(--sub);font-weight:690}.field input,.field select,.field textarea{display:block;width:100%;padding:9px 11px;border-radius:12px;background:var(--surface2);border:1px solid var(--line);color:var(--text);outline:none;min-height:44px}.field textarea{min-height:65px;resize:vertical}.field select option{color:#151f2e;background:#f9fafc}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sheet-actions{margin-top:12px;display:flex;gap:9px}.sheet-actions .btn{flex:1}.note{color:var(--sub);font-size:12px;background:var(--surface2);border:1px solid var(--line);padding:12px;border-radius:12px}.notice{display:flex;gap:9px;align-items:flex-start;padding:13px;border-radius:15px;background:rgba(131,174,228,.09);color:var(--sub);font-size:12px;border:1px solid rgba(131,174,228,.13)}.notice .ico{color:var(--accent)}.divider{height:1px;background:var(--line);margin:15px 0}.toast{position:fixed;z-index:60;bottom:calc(92px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);background:#e8effa;color:#152033;font-weight:700;border-radius:15px;padding:12px 17px;box-shadow:0 18px 40px #0007;font-size:12px}.switch{width:43px;height:25px;border-radius:999px;background:var(--surface3);border:1px solid var(--line);position:relative}.switch.on{background:#5683ba}.switch:after{content:"";position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:transform .15s}.switch.on:after{transform:translateX(18px)}
.welcome{min-height:100dvh;padding:calc(30px + env(safe-area-inset-top)) 17px calc(20px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 40% 0,rgba(75,120,208,.29),transparent 46%),var(--bg)}.welcome-inner{max-width:500px;margin:0 auto}.welcome-symbol{width:45px;height:45px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#334a6b,#151f2c);border:1px solid var(--line);margin-bottom:12px}.welcome h1{margin:0 0 8px;font-size:34px;line-height:1.1;letter-spacing:-.05em}.welcome .intro{color:var(--sub);font-size:13px;margin:0 0 30px}.welcome .group-label{color:var(--sub);font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:780;margin:12px 0 5px}.welcome .profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-option{background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:11px;padding:5px 8px;min-height:44px;display:flex;align-items:center;gap:7px;text-align:left;font-weight:670;font-size:13px}.profile-option .persondot{width:26px;height:26px;display:grid;place-items:center;background:var(--surface3);border-radius:11px;color:var(--accent)}.profile-option.selected{background:rgba(105,169,248,.11);border-color:rgba(105,169,248,.65)}.welcome .continue{position:sticky;bottom:12px;margin-top:14px;box-shadow:0 18px 30px var(--bg)}.welcome .warning{font-size:11px;color:var(--mute);line-height:1.6;text-align:center;margin:13px 0}.reminderbox{background:linear-gradient(145deg,rgba(76,125,188,.11),rgba(126,157,219,.04));border:1px solid var(--line);border-radius:17px;padding:15px}.timeline{margin-left:9px;border-left:1px solid var(--line);padding-left:18px}.timelineitem{position:relative;padding:0 0 20px}.timelineitem:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--accent);position:absolute;left:-23px;top:6px;box-shadow:0 0 0 4px var(--surface)}.timelineitem:last-child{padding-bottom:0}.date-pills{display:flex;gap:8px;margin:0 0 10px;overflow-x:auto}.date-pill{min-width:65px;display:flex;flex-direction:column;gap:3px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:7px 10px;color:var(--sub);font-size:11px}.date-pill b{font-size:15px;color:var(--text)}.date-pill.active{background:var(--surface3);border-color:rgba(124,179,250,.45)}
@media(max-width:360px){.content{padding:0 14px 25px}.topbar{padding-inline:14px}.heading{font-size:28px}.stat{padding:8px}.fab{right:14px}.dish-row{gap:6px;padding:5px 8px}.dish-row .status{font-size:9px;padding:4px 6px}.family-card{padding:10px}.list-row{padding:7px 9px}}

.child-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  cursor: pointer;
}
.child-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.child-option strong,
.child-option .muted {
  display: block;
}
.child-badge {
  margin: 4px auto;
}


.back-link { margin-bottom: 6px; }
.list-row[href], .code-admin a { text-decoration: none; }
.code-link { margin-top: 5px; }
.warning:empty { display: none; }
.code-admin .welcome-inner { max-width: 400px; }
.code-admin .btn { margin-top: 12px; }
.code-admin .form-feedback { color: var(--text); font-size: 13px; }
.dish-row > .tap { min-height: 44px; }
.topactions { gap: 5px; }
.brand .subline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand > div:last-child { min-width: 0; }
.code-admin section + section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 12px;
}
.code-admin h2 { font-size: 20px; margin: 12px 0 5px; }

.statrow.two-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 360px) {
  .brand { gap: 6px; }
  .brand-mark { width: 31px; height: 31px; flex: none; }
  .brand-mark .ico { width: 19px; height: 19px; }
  .brand-name { font-size: 15px; }
}

.schedule-preview-heading { margin-top: 10px; }
.schedule-preview-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  width: 100%;
  padding: 6px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}
.schedule-preview-row:last-child { border-bottom: 0; }
.schedule-preview-row:active { background: var(--surface2); }
.schedule-preview-when { display: grid; font-size: 11px; line-height: 1.3; }
.schedule-preview-when span:first-child { color: var(--accent); font-weight: 700; }
.schedule-preview-title { font-size: 13px; font-weight: 690; overflow-wrap: anywhere; }
.schedule-preview-empty { padding: 10px 11px; }

#schedule-more { border-top: 1px solid var(--line); }
#schedule-more summary {
  min-height: 44px;
  padding: 13px 11px;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
#schedule-more .schedule-show-less,
#schedule-more[open] .schedule-show-more { display: none; }
#schedule-more[open] .schedule-show-less { display: inline; }
#schedule-more[open] > div { border-top: 1px solid var(--line); }
.item-actions-status .minihead { margin: 8px 0 6px; }
.item-status-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.item-status-options .btn { min-height: 44px; padding: 8px 4px; white-space: nowrap; }
.item-status-options [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.item-action-edit { min-height: 44px; margin-top: 12px; }

.home-private-lists {margin-top:10px}
.home-private-lists a {color:var(--text);text-decoration:none}
