:root{
  --bg:#f3f3f6; --card:#fff; --soft:#f5f5f8; --soft-2:#eeeef3; --line:#ebebf0;
  --text:#17161d; --muted:#8b8a97; --muted-2:#b4b3bf;
  --primary:#6e5cf6; --primary-600:#5a48e6; --primary-soft:#dcd8fd; --primary-ghost:#efedfe;
  --lime:#e8f5a3; --lime-ink:#4d5a0b; --pink:#fbd0e0; --pink-ink:#8a2350; --blue:#cfe6fb; --blue-ink:#1d4f7c;
  --amber:#ffe3b8; --amber-ink:#7a4a05; --green:#d4f2e4; --green-ink:#14603d; --red:#e5484d;
  --r-xl:28px; --r-lg:22px; --r-md:16px; --r-sm:12px;
  --shadow:0 1px 2px rgba(20,18,40,.03),0 8px 30px rgba(20,18,40,.04);
  --font:'Onest',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--text);font:15px/1.45 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%}
h1,h2,h3,h4{margin:0;font-weight:500;letter-spacing:-.01em}
h1{font-size:34px;line-height:1.15}
h2{font-size:20px}
h3{font-size:16px;font-weight:600}
p{margin:0 0 .6em}
small,.muted{color:var(--muted)}
.ic{flex:none;display:block}
.inline{display:inline}
[hidden]{display:none!important}

/* shell */
.shell{max-width:1480px;margin:0 auto;padding:16px;display:grid;grid-template-columns:240px 1fr;grid-template-rows:auto 1fr;gap:14px;min-height:100vh}
.card{background:var(--card);border-radius:var(--r-xl);box-shadow:var(--shadow)}
.topbar{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 18px;min-height:64px;position:sticky;top:12px;z-index:30}
.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:500;min-width:0;flex:0 1 auto}
.brand svg{flex:none}
.brand-x{color:var(--muted-2);font-size:18px}
.brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.me{display:flex;align-items:center;gap:10px;padding:4px 10px 4px 4px;border-radius:999px}
.me:hover{background:var(--soft)}
.me-text{display:flex;flex-direction:column;line-height:1.15}
.me-text b{font-weight:500;font-size:14px}
.me-text small{font-size:12px}
.icon-btn{position:relative;width:42px;height:42px;border-radius:50%;border:0;background:var(--soft);display:inline-grid;place-items:center;color:var(--text);cursor:pointer;flex:none}
.icon-btn:hover{background:var(--soft-2)}
.badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary);color:#fff;font-size:11px;font-weight:600;display:grid;place-items:center;border:2px solid #fff}
.sidebar{padding:16px 12px;display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:90px;max-height:calc(100vh - 106px);overflow:auto}
.nav-item{display:flex;align-items:center;gap:12px;padding:6px 14px 6px 6px;border-radius:999px;color:#3b3a44;font-size:15px;transition:background .15s}
.nav-item:hover{background:var(--soft)}
.nav-ic{width:36px;height:36px;border-radius:50%;background:var(--soft);display:grid;place-items:center;color:#6a6975}
.nav-item.active{background:var(--primary-soft);color:var(--text);box-shadow:inset 0 0 0 1.5px #c9c3fb}
.nav-item.active .nav-ic{background:#fff;color:var(--text)}
.nav-sep{height:1px;background:var(--line);margin:10px 10px}
.nav-foot{margin-top:auto;padding:16px 12px 4px;font-size:12px;color:var(--muted)}
.main{min-width:0;padding:4px 2px 40px}
.nav-backdrop{display:none}
.only-mobile,.only-mobile-block{display:none!important}

/* page head */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:6px 0 18px}
.page-head h1 .muted{color:var(--muted-2)}
.crumb{color:var(--muted-2)}
.crumb a:hover{color:var(--text)}
.crumb-sep{color:var(--muted-2);margin:0 10px;font-size:26px}
.head-actions{display:flex;gap:8px;flex-wrap:wrap}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:999px;border:0;background:var(--primary);color:#fff;font:500 15px var(--font);cursor:pointer;white-space:nowrap;transition:background .15s,transform .05s}
.btn:hover{background:var(--primary-600)}
.btn:active{transform:translateY(1px)}
.btn-ghost{background:#fff;color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
.btn-ghost:hover{background:var(--soft)}
.btn-soft{background:var(--primary-soft);color:#2e2380}
.btn-soft:hover{background:#cfc9fc}
.btn-lime{background:var(--lime);color:var(--lime-ink)}
.btn-lime:hover{background:#dcee86}
.btn-danger{background:#fff;color:var(--red);box-shadow:inset 0 0 0 1px #f3c9cb}
.btn-danger:hover{background:#fff2f2}
.btn-sm{height:36px;padding:0 14px;font-size:14px}
.btn-block{width:100%}
.round{width:42px;height:42px;border-radius:50%;background:var(--primary-ghost);display:inline-grid;place-items:center;color:#3a2fa0;border:0;cursor:pointer}
.round:hover{background:var(--primary-soft)}

/* forms */
label{display:block;font-size:14px;color:#3b3a44;margin:0 0 6px}
.field{margin-bottom:14px}
input[type=text],input[type=email],input[type=password],input[type=tel],input[type=date],input[type=time],input[type=month],input[type=number],input[type=search],select,textarea{
  width:100%;height:46px;padding:0 18px;border-radius:999px;border:1px solid transparent;background:var(--soft);font:15px var(--font);color:var(--text);outline:none;transition:border .15s,background .15s;appearance:none;-webkit-appearance:none}
textarea{height:auto;min-height:92px;padding:14px 18px;border-radius:var(--r-md);resize:vertical;line-height:1.5}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2317161d' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:42px}
input:focus,select:focus,textarea:focus{border-color:#bdb5fb;background:#fff}
input[type=file]{font:14px var(--font)}
input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary);vertical-align:middle}
.grid-form{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 18px}
.grid-form .span-2{grid-column:span 2}
.grid-form.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-form .span-3{grid-column:1/-1}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}
.seg{display:flex;background:var(--soft);border-radius:999px;padding:4px;height:46px}
.seg label{flex:1;margin:0;display:grid;position:relative}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{display:grid;place-items:center;border-radius:999px;color:var(--muted);cursor:pointer;font-size:14px;padding:0 10px;white-space:nowrap}
.seg input:checked+span{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.06)}
.hint{font-size:13px;color:var(--muted);margin-top:4px}

/* toolbar */
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.search{position:relative;flex:1 1 280px;max-width:380px}
.search .ic{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--muted)}
.search input{padding-left:44px;background:#fff;box-shadow:var(--shadow)}
.toolbar select,.toolbar input[type=date],.toolbar input[type=month]{width:auto;background-color:#fff;box-shadow:var(--shadow)}
.toolbar .spacer{flex:1}
.view-toggle{display:flex;gap:6px}
.view-toggle a{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:var(--shadow)}
.view-toggle a.on{background:var(--lime)}

/* cards & grids */
.panel{padding:22px 24px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.panel-head h2{font-size:20px}
.panel-head .sub{font-size:13px;color:var(--muted)}
.grid{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.g-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-main{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.g-profile{grid-template-columns:minmax(220px,300px) minmax(0,1fr)}
.stack{display:flex;flex-direction:column;gap:14px}

.kid-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.kid-card{position:relative;padding:28px 18px 22px;text-align:center;display:flex;flex-direction:column;align-items:center}
.kid-card .av{margin-bottom:14px}
.kid-card h3{font-size:19px;font-weight:500;margin-bottom:2px}
.kid-card .tel{color:var(--muted);font-size:14px}
.kid-card .grp{color:var(--muted);font-size:13px;margin-top:2px}
.kid-card .actions{display:flex;gap:8px;margin-top:16px}
.kid-card .corner{position:absolute;top:16px;right:16px}
.kid-card .status-dot{position:absolute;top:18px;left:18px}
.kid-card.frozen{opacity:.6}

.av{display:inline-grid;place-items:center;border-radius:50%;overflow:hidden;font-weight:600;color:#2f2b52;flex:none;background:var(--soft)}
.av img{width:100%;height:100%;object-fit:cover}
.av-xs{width:28px;height:28px;font-size:11px}
.av-sm{width:36px;height:36px;font-size:13px}
.av-md{width:44px;height:44px;font-size:15px}
.av-lg{width:116px;height:116px;font-size:34px}
.av-xl{width:150px;height:150px;font-size:44px}

.pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:500;white-space:nowrap}
.pill-lime{background:var(--lime);color:var(--lime-ink)}
.pill-pink{background:var(--pink);color:var(--pink-ink)}
.pill-blue{background:var(--blue);color:var(--blue-ink)}
.pill-amber{background:var(--amber);color:var(--amber-ink)}
.pill-green{background:var(--green);color:var(--green-ink)}
.pill-violet{background:var(--primary-soft);color:#2e2380}
.pill-grey{background:var(--soft-2);color:#5f5e6b}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%}

/* stats */
.stat{padding:20px 22px;display:flex;flex-direction:column;gap:6px;min-height:128px}
.stat .lbl{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:8px}
.stat .num{font-size:38px;font-weight:500;letter-spacing:-.02em;line-height:1}
.stat .foot{font-size:13px;color:var(--muted);margin-top:auto}
.stat.lime{background:var(--lime)} .stat.lime .lbl,.stat.lime .foot{color:#5d6a18}
.stat.violet{background:var(--primary)} .stat.violet,.stat.violet .lbl,.stat.violet .foot{color:#fff}
.bar{height:8px;border-radius:99px;background:var(--soft-2);overflow:hidden}
.bar>i{display:block;height:100%;border-radius:99px;background:var(--primary)}

/* tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.t{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.t th{text-align:left;font-weight:500;color:var(--muted);font-size:13px;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.t td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
.t tr:last-child td{border-bottom:0}
.t tbody tr:hover td{background:#fafafc}
.t .who{display:flex;align-items:center;gap:10px;min-width:160px}
.t .who b{font-weight:500}
.t input,.t select{height:38px;font-size:14px;padding:0 12px;background-color:var(--soft)}
.t select{padding-right:34px;background-position:right 10px center}
.t input[type=time]{width:132px;padding:0 10px}
.matrix td,.matrix th{padding:6px 4px;text-align:center;font-size:12px}
.matrix td:first-child,.matrix th:first-child{text-align:left;padding-left:12px;position:sticky;left:0;background:#fff;z-index:1}
.cell{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:11px;font-weight:600}
.cell-present{background:var(--lime);color:var(--lime-ink)}
.cell-absent{background:var(--pink);color:var(--pink-ink)}
.cell-sick{background:var(--blue);color:var(--blue-ink)}
.cell-excused{background:var(--amber);color:var(--amber-ink)}
.cell-weekend{color:var(--muted-2)}

/* attendance chooser */
.att-choice{display:flex;gap:4px;flex-wrap:nowrap}
.att-choice label{margin:0;position:relative}
.att-choice input{position:absolute;opacity:0;pointer-events:none}
.att-choice span{display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:999px;background:var(--soft);color:#5f5e6b;font-size:13px;cursor:pointer;white-space:nowrap;transition:background .1s}
.att-choice input:checked+span.s-present{background:var(--lime);color:var(--lime-ink)}
.att-choice input:checked+span.s-absent{background:var(--pink);color:var(--pink-ink)}
.att-choice input:checked+span.s-sick{background:var(--blue);color:var(--blue-ink)}
.att-choice input:checked+span.s-excused{background:var(--amber);color:var(--amber-ink)}
.att-choice input:focus-visible+span{outline:2px solid var(--primary)}

/* calendar */
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center}
.cal .wd{font-size:12px;color:var(--muted);padding:4px 0}
.cal .d{aspect-ratio:1;max-width:42px;margin:auto;width:100%;border-radius:50%;display:grid;place-items:center;font-size:14px}
.cal .d.out{color:var(--muted-2)}
.cal .d.today{box-shadow:inset 0 0 0 1.5px var(--text)}
.cal .d.present{background:var(--lime)} .cal .d.absent{background:var(--pink)} .cal .d.sick{background:var(--blue)} .cal .d.excused{background:var(--amber)}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-head a{width:32px;height:32px;display:grid;place-items:center;border-radius:50%}
.cal-head a:hover{background:var(--soft)}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:12px}
.legend span{display:inline-flex;align-items:center;gap:6px}

/* profile */
.profile-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:28px;text-align:center}
.profile-card .pic{position:relative}
.profile-card .pic .round{position:absolute;right:4px;top:4px;width:34px;height:34px;background:var(--lime);color:var(--lime-ink)}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 18px}
.info-grid .k{font-size:13px;color:var(--muted);margin-bottom:4px}
.info-grid .v{background:var(--soft);border-radius:999px;padding:11px 18px;min-height:44px;font-size:15px}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.tabs a{height:40px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;background:#fff;box-shadow:var(--shadow);font-size:14px}
.tabs a.on{background:var(--lime);box-shadow:none}

/* lists */
.list{display:flex;flex-direction:column;gap:8px}
.li{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:var(--r-md);background:var(--soft)}
.li .grow{flex:1;min-width:0}
.li .title{font-weight:500}
.li .meta{font-size:13px;color:var(--muted)}
.li.unread{background:var(--primary-ghost)}
.li-ic{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;flex:none;font-size:18px}
.ann{padding:20px 22px}
.ann .meta{font-size:13px;color:var(--muted);display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.ann h3{font-size:18px;font-weight:500;margin-bottom:6px}
.ann .body{white-space:pre-line;color:#33323b}

/* activity */
.week{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.day-col{background:#fff;border-radius:var(--r-lg);padding:12px;min-height:180px;box-shadow:var(--shadow)}
.day-col.today{box-shadow:inset 0 0 0 2px var(--primary-soft),var(--shadow)}
.day-col h4{font-size:13px;color:var(--muted);font-weight:500;margin-bottom:8px;display:flex;justify-content:space-between}
.day-col h4 b{color:var(--text);font-weight:600}
.act{display:block;border-radius:14px;padding:10px 12px;margin-bottom:8px;font-size:13px;line-height:1.3}
.act b{display:block;font-weight:600;font-size:13.5px;margin-bottom:2px}
.act small{color:rgba(0,0,0,.55)}
.act.done{opacity:.75}
.act.cancelled{opacity:.45;text-decoration:line-through}

/* progress */
.domain{display:grid;grid-template-columns:200px 1fr 40px;gap:12px;align-items:center;padding:8px 0}
.domain .bar{height:12px}
.score-pick{display:flex;gap:6px}
.score-pick label{margin:0;position:relative}
.score-pick input{position:absolute;opacity:0;pointer-events:none}
.score-pick span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--soft);cursor:pointer;font-weight:600;color:#5f5e6b}
.score-pick input:checked+span{background:var(--primary);color:#fff}

/* chat */
.chat-layout{display:grid;grid-template-columns:320px 1fr;gap:14px;height:calc(100vh - 190px);min-height:480px}
.threads{padding:12px;overflow:auto}
.thread{display:flex;gap:10px;align-items:center;padding:10px;border-radius:var(--r-md)}
.thread:hover{background:var(--soft)}
.thread.on{background:var(--primary-ghost)}
.thread .grow{flex:1;min-width:0}
.thread .last{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread .n{background:var(--primary);color:#fff;border-radius:99px;font-size:11px;padding:2px 7px;font-weight:600}
.convo{display:flex;flex-direction:column;overflow:hidden}
.convo-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.convo-body{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:10px;background:#fbfbfd}
.msg{max-width:72%;align-self:flex-start}
.msg .bubble{background:#fff;border-radius:18px 18px 18px 6px;padding:10px 14px;box-shadow:var(--shadow);white-space:pre-wrap;word-wrap:break-word}
.msg .by{font-size:12px;color:var(--muted);margin:0 6px 4px}
.msg.mine{align-self:flex-end;text-align:right}
.msg.mine .bubble{background:var(--primary);color:#fff;border-radius:18px 18px 6px 18px;text-align:left}
.convo-form{display:flex;gap:10px;padding:14px;border-top:1px solid var(--line)}
.convo-form textarea{min-height:46px;height:46px;border-radius:24px;padding:12px 18px}

/* misc */
.flash{padding:14px 18px;border-radius:var(--r-md);margin-bottom:14px;font-size:14px}
.flash-ok{background:var(--green);color:var(--green-ink)}
.flash-err{background:#ffe1e1;color:#8c1d1d}
.flash-info{background:var(--blue);color:var(--blue-ink)}
.empty{text-align:center;padding:40px 20px;color:var(--muted)}
.empty-ic{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--soft);margin-bottom:10px;color:var(--muted)}
.empty h2{color:var(--text);margin-bottom:8px}
.pager{display:flex;justify-content:center;align-items:center;gap:6px;margin:24px 0 0}
.pager a,.pager b{min-width:36px;height:36px;display:grid;place-items:center;border-radius:50%;font-size:14px}
.pager b{background:#fff;box-shadow:var(--shadow);font-weight:600}
.pager a:hover{background:#fff}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:14px}
.kv:last-child{border-bottom:0}
.kv span:first-child{color:var(--muted)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.toast-wrap{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;gap:8px;z-index:100}
.toast{background:var(--text);color:#fff;padding:12px 16px;border-radius:14px;font-size:14px;max-width:320px;box-shadow:0 10px 30px rgba(0,0,0,.2);animation:tin .25s ease}
.toast b{display:block;font-weight:600}
@keyframes tin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.mt{margin-top:14px}.mb{margin-bottom:14px}
.right{text-align:right}
.nowrap{white-space:nowrap}
.color-swatch{display:inline-block;width:14px;height:14px;border-radius:50%;vertical-align:middle;margin-right:6px}
details.more summary{cursor:pointer;color:var(--primary);font-size:14px;list-style:none}
.mood{font-size:20px}
.photo-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.photo-strip img{aspect-ratio:1;object-fit:cover;border-radius:14px;width:100%}

/* auth */
.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(1200px 600px at 10% -10%,#e9e6ff 0,transparent 60%),radial-gradient(900px 500px at 110% 110%,#f1f8cf 0,transparent 55%),var(--bg)}
.auth-card{width:100%;max-width:420px;padding:36px}
.auth-card .brand{margin-bottom:26px}
.auth-card h1{font-size:28px;margin-bottom:6px}

/* help */
.help h2{margin:18px 0 8px}
.help ol,.help ul{padding-left:20px;margin:0 0 10px}
.help li{margin-bottom:6px}

/* responsive */
@media (max-width:1180px){.g-4{grid-template-columns:repeat(2,minmax(0,1fr))}.week{grid-template-columns:repeat(3,minmax(0,1fr))}.info-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:960px){
  .shell{grid-template-columns:minmax(0,1fr);padding:10px;gap:10px}
  .g-profile{grid-template-columns:minmax(0,1fr)}
  .hide-mobile{display:none!important}
  .topbar{top:8px;padding:8px 10px}
  .only-mobile{display:inline-grid!important}
  .only-mobile-block{display:block!important}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;max-height:none;border-radius:0 var(--r-xl) var(--r-xl) 0;z-index:60;transform:translateX(-105%);transition:transform .25s ease}
  body.nav-open .sidebar{transform:none}
  body.nav-open .nav-backdrop{display:block;position:fixed;inset:0;background:rgba(15,14,30,.35);z-index:50}
  .g-3,.g-main,.g-2{grid-template-columns:minmax(0,1fr)}
  .btn{white-space:normal;height:auto;min-height:44px;padding-top:8px;padding-bottom:8px;text-align:center}
  .grid-form{grid-template-columns:1fr 1fr}
  .chat-layout{grid-template-columns:1fr;height:auto}
  .chat-layout.has-thread .threads{display:none}
  .convo{height:calc(100vh - 120px)}
  .me-text{display:none}
  h1{font-size:28px}
}
@media (max-width:620px){
  .g-4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .grid-form,.grid-form.cols-2,.info-grid{grid-template-columns:minmax(0,1fr)}
  .grid-form .span-2{grid-column:auto}
  .week{grid-template-columns:1fr}
  .brand-name{font-size:16px}
  .brand-x{display:none}
  .panel{padding:18px}
  .domain{grid-template-columns:1fr 40px}.domain .bar{grid-column:1/-1;grid-row:2}
  .kid-grid{grid-template-columns:1fr 1fr;gap:10px}
  .kid-card{padding:20px 10px 16px}.kid-card .av-lg{width:84px;height:84px}
  .kid-card h3{font-size:16px}
  .msg{max-width:88%}
  .stat .num{font-size:30px}
  .top-right{gap:4px}.icon-btn{width:38px;height:38px}
}

/* print */
@media print{
  body{background:#fff}
  .topbar,.sidebar,.head-actions,.toolbar,.no-print,.pager,.toast-wrap{display:none!important}
  .shell{display:block;padding:0}
  .card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}
  .print-only{display:block!important}
}
.print-only{display:none}
