/* School demo on top of ../shared/base.css */
.kids { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.kid { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 60px; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--surface); text-align: start; }
.kid .avatar { width: 38px; height: 38px; }
.kid[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.today { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.today-row { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.qa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px;
  border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: center; line-height: 1.35; }
.qa:active { background: var(--sunken); }
.hw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair-strong); flex: none; }
.notice { padding: 14px 16px; }
.notice-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.consent-done { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.fresh-card { border-color: var(--accent-line); background: var(--accent-soft); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.tab .badge { min-width: 18px; height: 18px; font-size: 11.5px; vertical-align: 1px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.row .grow { min-width: 0; }
/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 88px; }
.bubble { max-width: 82%; align-self: flex-start; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; border-start-start-radius: 4px; padding: 10px 12px; color: var(--ink); }
.bubble.me { align-self: flex-end; background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 16px; border-start-end-radius: 4px; }
.bubble time { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.bubble.me time { color: #c9c5bc; }
.composer { position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--canvas); border-top: 1px solid var(--hair); }
.composer .input { min-height: 46px; border-radius: 999px; }
.iconbtn.send { background: var(--ink); color: #fff; width: 46px; height: 46px; }
/* fees */
.fee-total { margin-top: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.fee-big { font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--ink); }
.bill-row.total { border-top: 1px solid var(--ink); font-weight: 600; font-size: 16px; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
/* school dashboard */
.classes .row { min-height: 48px; padding: 10px 16px; }
.cls { min-width: 44px; }
.meter { height: 8px; border-radius: 8px; background: var(--sunken); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.meter.big { height: 10px; }
.meter.big span { background: var(--accent); }
.fee-sum { padding: 14px 16px; }
.fee-legend { display: flex; justify-content: space-between; margin-top: 10px; }
.fee-legend > span { display: flex; flex-direction: column; }
.fee-legend > span:last-child { text-align: end; }
/* class tiles: absences are the signal, full classes stay quiet */
.ctiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ctile { display: flex; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--surface); }
.ctile-n { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ctile.has-abs { border-color: #e9cfa9; background: var(--warn-soft); }
.ctile.has-abs .t-meta:last-child { color: var(--warn); font-weight: 500; }
