/* All That Jazz – class management prototype. Single accent (plum) on neutral greys. */
:root {
  --bg: #f5f4f7;
  --surface: #ffffff;
  --surface-2: #faf9fb;
  --line: #e6e2ea;
  --line-2: #efecf2;
  --text: #1f1a24;
  --text-2: #4a4352;
  --muted: #7a7283;
  --accent: #7b1e5a;
  --accent-2: #9c2a74;
  --accent-soft: #f6e8f0;
  --accent-ink: #5e1545;
  --green: #1f7a4d; --green-soft: #e3f4ea;
  --amber: #9a5b00; --amber-soft: #fdf1dc;
  --red: #b3261e; --red-soft: #fbe6e4;
  --blue: #1d5fa8; --blue-soft: #e5eefa;
  --grey-soft: #eeecf0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 26, 36, .05), 0 1px 3px rgba(31, 26, 36, .06);
  --shadow-lg: 0 12px 40px rgba(31, 26, 36, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 8px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; } .mb-s { margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #c2417f); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.proto-badge { font-size: 11px; font-weight: 600; color: var(--amber); background: var(--amber-soft); border: 1px solid #f3dcae; padding: 3px 9px; border-radius: 99px; }
.role-switch { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.role-switch select { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px 6px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav-item:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-item .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar .me { margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; font-size: 12px; }
.main { padding: 24px 28px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-h h2 { font-size: 15px; }
.card-h .extra { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 16px 18px; }
.card-b.flush { padding: 0; }
.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi .sub .up { color: var(--green); font-weight: 600; }
.kpi .sub .down { color: var(--red); font-weight: 600; }
.kpi.alert .value { color: var(--red); }
.kpi-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.callout.info { background: var(--blue-soft); color: #173f6d; }
.callout.warn { background: var(--amber-soft); color: #6d4300; }
.callout.bad { background: var(--red-soft); color: #7d1a14; }
.callout.good { background: var(--green-soft); color: #145234; }

/* Tables */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: none; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #fbf7fa; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }

/* Pills, chips */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--grey-soft); color: var(--text-2); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.plum { background: var(--accent-soft); color: var(--accent-ink); }
.pill.solid { background: var(--accent); color: #fff; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:hover { border-color: var(--accent); }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #cfc8d6; background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.lg { padding: 12px 18px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
input.in, select.in, textarea.in { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input.in:focus, select.in:focus, textarea.in:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea.in { min-height: 90px; resize: vertical; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 34px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.filters select.in, .filters input.in { width: auto; min-width: 140px; padding: 7px 10px; font-size: 13px; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count { font-size: 11px; background: var(--grey-soft); padding: 0 6px; border-radius: 99px; margin-left: 4px; color: var(--text-2); }

/* Avatars */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .nm { font-weight: 600; }
.person .meta { font-size: 12px; color: var(--muted); }

/* Definition lists */
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; font-weight: 500; }
.struct { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.struct > div { flex: 1 1 120px; padding: 10px 14px; border-right: 1px solid var(--line-2); background: var(--surface-2); }
.struct > div:last-child { border-right: none; }
.struct .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.struct .v { font-weight: 650; margin-top: 2px; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.bar-fill.soft { background: #c58fb2; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.colchart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.colchart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.colchart .stack { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; gap: 2px; }
.colchart .seg { border-radius: 4px 4px 0 0; background: var(--accent); }
.colchart .seg.b { background: #d7aac6; border-radius: 4px 4px 0 0; }
.colchart .lab { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.meter { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; width: 80px; display: inline-block; vertical-align: middle; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.meter.full > span { background: var(--red); }

/* Lists */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: none; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t1 { font-weight: 600; }
.list-item .t2 { font-size: 12.5px; color: var(--muted); }

/* Steps */
.steps { display: flex; gap: 0; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line-2); }
.step:last-child { border-right: none; }
.step .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.step.on { color: var(--accent); background: var(--accent-soft); }
.step.on .n { border-color: var(--accent); background: var(--accent); color: #fff; }
.step.done { color: var(--green); }
.step.done .n { border-color: var(--green); background: var(--green); color: #fff; }

/* Calendar */
.cal { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.cal-head { padding: 10px 8px; font-size: 12px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); background: var(--surface-2); }
.cal-head.today { color: var(--accent); }
.cal-times { position: relative; }
.cal-time { height: 48px; font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.cal-day { position: relative; border-left: 1px solid var(--line-2); background-image: linear-gradient(var(--line-2) 1px, transparent 1px); background-size: 100% 48px; }
.cal-day.today { background-color: #fdf9fc; }
.cal-ev { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 4px 6px; font-size: 11px; line-height: 1.25; background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--accent-ink); overflow: hidden; cursor: pointer; }
.cal-ev:hover { filter: brightness(.97); }
.cal-ev b { display: block; font-size: 11.5px; }
.cal-ev.comp { background: #e9e5f7; border-left-color: #4b3b9a; color: #2f2566; }
.cal-ev.ap { background: #e3f1f1; border-left-color: #1f6f6f; color: #134848; }
.cal-ev.blackout { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.04) 6px 12px); }

/* Modal and toast */
.overlay { position: fixed; inset: 0; background: rgba(31, 26, 36, .45); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); width: 560px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .18s ease; }
.modal.wide { width: 760px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-h h2 { font-size: 16px; }
.modal-h .x { margin-left: auto; cursor: pointer; color: var(--muted); background: none; border: none; padding: 4px; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 10px; background: #231b29; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; max-width: 420px; animation: slideup .2s ease; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: #3fb37a; display: grid; place-items: center; flex: none; }
.toast .ok svg { width: 13px; height: 13px; stroke-width: 3; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
@keyframes slideup { from { transform: translateY(10px); opacity: 0; } }

/* Geo check animation */
.geo { display: grid; place-items: center; padding: 20px 0 6px; }
.radar { position: relative; width: 140px; height: 140px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.6s ease-out infinite; opacity: 0; }
.radar::after { animation-delay: .8s; }
.radar .pin { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; z-index: 1; }
.radar.ok { background: var(--green-soft); }
.radar.ok::before, .radar.ok::after { display: none; }
.radar.ok .pin { background: var(--green); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

/* Attendance */
.att { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.att:last-child { border-bottom: none; }
.att .grow { flex: 1; min-width: 0; }
.seg-btns { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-btns button { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border: none; background: #fff; color: var(--text-2); cursor: pointer; border-right: 1px solid var(--line); }
.seg-btns button:last-child { border-right: none; }
.seg-btns button.on.p { background: var(--green); color: #fff; }
.seg-btns button.on.l { background: #c98a12; color: #fff; }
.seg-btns button.on.a { background: var(--red); color: #fff; }

/* Two-pane inbox */
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-item { padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.bubble { background: #e8f6ee; border-radius: 12px 12px 12px 2px; padding: 10px 14px; max-width: 520px; font-size: 13.5px; }
.bubble.out { background: var(--accent-soft); border-radius: 12px 12px 2px 12px; margin-left: auto; }
.msg-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Matrix */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.tick { color: var(--green); font-weight: 700; }
.view { color: var(--blue); font-size: 12px; font-weight: 600; }
.no { color: #c2bcc8; }

/* Parent phone frame */
.phone-stage { display: grid; grid-template-columns: 1fr 390px 1fr; gap: 32px; align-items: start; padding: 24px 28px; min-height: calc(100vh - 56px); }
.phone-notes { max-width: 300px; justify-self: end; margin-top: 30px; }
.phone-notes h2 { margin-bottom: 8px; }
.phone { width: 390px; height: 800px; max-height: calc(100vh - 90px); min-height: 640px; background: #fff; border-radius: 44px; border: 10px solid #1d1820; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-status { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; font-size: 12.5px; font-weight: 650; background: #fff; }
.phone-status .notch { width: 96px; height: 24px; background: #1d1820; border-radius: 14px; }
.app-head { flex: none; padding: 8px 18px 12px; display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid var(--line-2); }
.app-head h1 { font-size: 19px; }
.app-head .back { color: var(--text); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); }
.app-body { flex: 1; overflow-y: auto; background: var(--bg); padding: 14px 14px 20px; }
.app-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: #fff; padding: 6px 4px 14px; }
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; }
.app-tab:hover { text-decoration: none; color: var(--text); }
.app-tab.on { color: var(--accent); }
.app-tab .badge { position: absolute; top: 0; left: 50%; margin-left: 6px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.m-card { background: #fff; border-radius: 16px; border: 1px solid var(--line-2); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.m-card.tap { cursor: pointer; display: block; color: inherit; }
.m-card.tap:hover { text-decoration: none; border-color: #dccbd6; }
.m-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 18px 4px 8px; }
.m-title:first-child { margin-top: 4px; }
.m-hero { background: linear-gradient(135deg, var(--accent), #b23a80); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.m-hero .big { font-size: 22px; font-weight: 750; }
.m-session { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.m-session:last-child { border-bottom: none; }
.m-session:hover { text-decoration: none; }
.m-time { width: 52px; text-align: center; flex: none; }
.m-time b { display: block; font-size: 14px; }
.m-time span { font-size: 11px; color: var(--muted); }
.m-stripe { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.m-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.m-quick a, .m-quick button { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: center; box-shadow: var(--shadow); }
.m-quick a:hover, .m-quick button:hover { text-decoration: none; border-color: #dccbd6; }
.m-quick .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.m-note-new { border-left: 4px solid var(--accent); }
.video-thumb { margin-top: 10px; border-radius: 12px; height: 150px; background: linear-gradient(135deg, #3a2141, #7b1e5a 60%, #c2417f); display: grid; place-items: center; color: #fff; cursor: pointer; position: relative; overflow: hidden; }
.video-thumb .play { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; backdrop-filter: blur(4px); }
.video-thumb .dur { position: absolute; right: 10px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 6px; }
.token { border: 2px dashed #d7aac6; border-radius: 14px; padding: 12px; background: #fff; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.token .tk { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.product { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.product .img { height: 92px; display: grid; place-items: center; color: #fff; }
.product .pb { padding: 10px; }
.seg-tabs { display: flex; background: #ebe7ee; border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 12px; overflow-x: auto; }
.seg-tabs a { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg-tabs a.on { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.seg-tabs a:hover { text-decoration: none; }
.option { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.option:hover { border-color: var(--accent); }
.option.on { border-color: var(--accent); background: var(--accent-soft); }
.qr { width: 160px; height: 160px; margin: 8px auto; display: block; }
.phone .overlay { position: absolute; border-radius: 34px; align-items: end; padding: 0; }
.phone .modal { width: 100%; border-radius: 22px 22px 0 0; max-height: 88%; }
.phone .modal-f { border-radius: 0; }
.phone .toasts { position: absolute; left: 12px; right: 12px; bottom: 84px; }
.phone .toast { max-width: none; }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--grey-soft); padding: 1px 6px; border-radius: 5px; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s ease; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2, .g3 { grid-template-columns: 1fr; } .phone-stage { grid-template-columns: 1fr; justify-items: center; } .phone-notes { display: none; } }
.option .grow { flex: 1; min-width: 0; }
.option input[type=radio] { accent-color: var(--accent); }
/* one toast host outside the re-rendered app; over the phone when the Parent view is open */
#toasts.in-phone { left: 50%; right: auto; transform: translateX(-50%); bottom: 110px; width: 340px; }

/* ---------- Design review (Magic Patterns, 14 Oct): shared pieces ---------- */
.tabular, .kpi .value, .t td.num { font-variant-numeric: tabular-nums; }
.spark { display: block; color: var(--accent); }
.hk { display: flex; flex-direction: column; padding: 18px 20px; }
.hk .label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.hk .row2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.hk .value { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.hk .detail { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hk .foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.hk .foot .good { color: var(--green); } .hk .foot .bad { color: var(--red); }
.hk.danger { background: var(--red-soft); border-color: #f3c7c3; }
.hk.danger .label, .hk.danger .value, .hk.danger .detail, .hk.danger .foot a { color: var(--red); }
.hk.danger .foot { border-color: #f3c7c3; }
.qstrip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.qstrip a { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: inherit; border-right: 1px solid var(--line); }
.qstrip a:last-child { border-right: none; }
.qstrip a:hover { background: var(--surface-2); text-decoration: none; }
.qstrip .ql { font-size: 13px; color: var(--muted); } .qstrip .qv { font-size: 22px; font-weight: 650; margin-top: 2px; } .qstrip .qd { font-size: 12px; color: var(--muted); }
.att-item { padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.att-item:last-child { border-bottom: none; }
.att-item.crit { background: #fdf3f2; }
.sev { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.sev i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.sev.crit { color: var(--red); } .sev.crit i { background: var(--red); }
.sev.high { color: var(--amber); } .sev.high i { background: #d08a14; }
.sev.norm { color: var(--muted); } .sev.norm i { background: #b9b2c0; }
.att-item .tt { font-weight: 600; margin-top: 5px; } .att-item.crit .tt { color: var(--red); }
.att-item .dd { font-size: 13px; color: var(--muted); margin-top: 2px; }
.att-item .ff { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.mini-bar { position: relative; height: 6px; border-radius: 99px; background: var(--line-2); flex: 1; }
.mini-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); }
.mini-bar > span.warn { background: #d08a14; } .mini-bar > span.soft { background: #c47aa5; }
.mini-bar .target { position: absolute; top: -4px; width: 1px; height: 14px; background: var(--muted); }
.sticky-col { position: sticky; top: 72px; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cap-big { font-size: 36px; font-weight: 650; letter-spacing: -.02em; } .cap-big span { font-size: 20px; color: var(--muted); font-weight: 500; }
.seats { display: flex; align-items: stretch; gap: 12px; margin-top: 16px; }
.seat-grid { flex: 1; display: grid; gap: 6px; }
.seat { height: 34px; border-radius: 6px; border: 1px solid; }
.seat.regular { background: var(--accent); border-color: var(--accent); }
.seat.makeup { background: #c47aa5; border-color: #c47aa5; }
.seat.trial { background: #4b3b9a; border-color: #4b3b9a; }
.seat.empty { background: #fff; border: 1px dashed #c9c2cf; }
.seat-max { border-left: 2px solid var(--text); padding-left: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 11px; color: var(--muted); }
.seat-max b { font-size: 14px; color: var(--text); }
.cap-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 18px -18px -18px; }
.cap-metrics > div { padding: 14px 18px; border-right: 1px solid var(--line); } .cap-metrics > div:last-child { border-right: none; }
.cap-metrics .k { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; } .cap-metrics .k i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cap-metrics .v { font-size: 22px; font-weight: 650; margin-top: 2px; } .cap-metrics .v span { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.facts dt { font-size: 12px; color: var(--muted); margin-top: 10px; } .facts dd { margin: 2px 0 0; font-weight: 600; }
.segctl { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey-soft); border-radius: 9px; padding: 3px; }
.segctl a { text-align: center; padding: 6px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.segctl a.on { background: #fff; color: var(--text); box-shadow: var(--shadow); } .segctl a:hover { text-decoration: none; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tchip i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; } .tchip span { color: var(--muted); }
.tchip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .tchip:hover { text-decoration: none; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }
.actrows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.actrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; background: #fff; }
.actrow:last-child { border-bottom: none; } .actrow:hover { background: var(--surface-2); }
.actrow .ai { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--grey-soft); color: var(--text-2); flex: none; }
.actrow.rec .ai { background: var(--accent); color: #fff; }
.actrow .al { font-weight: 600; } .actrow .ad { font-size: 12px; color: var(--muted); }
.actrow .rt { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.typedot-Makeup { background: #7b1e5a; } .typedot-Transfer { background: #1d5fa8; } .typedot-Withdrawal { background: #b3261e; } .typedot-Trial { background: #4b3b9a; } .typedot-Billing { background: #9a5b00; } .typedot-Private-lesson { background: #1f6f6f; } .typedot-Waitlist { background: #6b3fa0; }
.stepper { display: flex; align-items: center; margin-bottom: 20px; }
.stepper .st { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.stepper .st .mk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid #c9c2cf; color: var(--muted); flex: none; }
.stepper .st.cur .mk { border: 2px solid var(--accent); color: var(--accent); }
.stepper .st.done .mk { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper .st .t { font-weight: 600; font-size: 14px; } .stepper .st .c { font-size: 12px; color: var(--muted); }
.stepper .ln { flex: 1; height: 1px; background: var(--line); margin: 0 12px; } .stepper .ln.done { background: var(--accent); }
.exp-row td:first-child { width: 28px; } .exp-row .chev { transition: transform .15s; display: inline-block; color: var(--muted); }
.exp-row.open .chev { transform: rotate(90deg); }
.lines { margin: 0 0 6px 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lines .lr { display: grid; grid-template-columns: 110px 1fr 120px 110px; gap: 12px; padding: 7px 14px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.lines .lr:last-child { border-bottom: none; } .lines .lr.h { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lines .lr .r { text-align: right; font-variant-numeric: tabular-nums; }
.exc { display: grid; grid-template-columns: 22px 1fr 110px 140px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.exc:last-child { border-bottom: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; flex: none; color: var(--text-2); }
.timeline .when { font-size: 12px; font-weight: 600; color: var(--accent); }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--grey-soft); border-radius: 14px; padding: 4px; width: 330px; flex: none; }
.stat3 button { height: 44px; border: none; border-radius: 10px; background: transparent; font: inherit; font-weight: 650; font-size: 14px; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.stat3 button:hover { color: var(--text); }
.stat3 button.on.p { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.stat3 button.on.l { background: #f2b544; color: #3a2600; box-shadow: var(--shadow); }
.stat3 button.on.a { background: #2a2430; color: #fff; box-shadow: var(--shadow); }
.conseq { font-size: 12px; font-weight: 650; margin-left: 4px; } .conseq.credit { color: var(--accent); } .conseq.noshow { color: var(--red); }
.progressm { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; } .progressm span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s; }
.savedbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--accent); color: #fff; border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; }
.savedbar .btn { background: #fff; color: var(--accent); border-color: #fff; }
.med { color: #c0264f; }
.offer { background: var(--accent); color: #fff; border-radius: 22px; padding: 16px; margin-bottom: 12px; }
.offer .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .9; }
.offer .timer { background: rgba(255,255,255,.16); border-radius: 99px; padding: 3px 9px; font-weight: 650; }
.offer h3 { font-size: 20px; margin-top: 8px; line-height: 1.2; }
.offer .bar { height: 4px; background: rgba(255,255,255,.18); border-radius: 99px; margin-top: 12px; overflow: hidden; } .offer .bar span { display: block; height: 100%; background: #fff; }
.offer .btns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 12px; }
.offer .btns button { height: 44px; border-radius: 14px; font: inherit; font-weight: 650; cursor: pointer; border: none; }
.offer .btns .a { background: #fff; color: var(--accent); } .offer .btns .n { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.ticket { position: relative; display: flex; background: var(--accent); color: #fff; border-radius: 20px; margin-bottom: 10px; }
.ticket .main { flex: 1; padding: 14px 16px; min-width: 0; }
.ticket .stub { width: 74px; border-left: 2px dashed rgba(255,255,255,.3); display: grid; place-items: center; text-align: center; }
.ticket .stub b { font-size: 30px; display: block; line-height: 1; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 74px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transform: translateX(50%); }
.ticket::before { top: -9px; } .ticket::after { bottom: -9px; }
.ticket .meta { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; } .ticket .meta span { opacity: .7; display: block; font-size: 11px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; cursor: pointer; }
.mrow.on { box-shadow: inset 0 0 0 2px var(--accent); } .mrow.full { background: var(--grey-soft); cursor: not-allowed; opacity: .65; }
.mrow .dt { width: 46px; height: 50px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; text-align: center; flex: none; }
.mrow .dt small { display: block; font-size: 10.5px; font-weight: 650; } .mrow .dt b { font-size: 18px; line-height: 1; }
.mrow .grow { flex: 1; min-width: 0; }
.daygroup { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); } .daygroup:last-child { border-bottom: none; }
.daygroup .dtile { width: 38px; text-align: center; flex: none; } .daygroup .dtile small { display: block; font-size: 11px; font-weight: 650; color: var(--muted); }
.daygroup .dtile b { display: grid; place-items: center; width: 32px; height: 32px; margin: 2px auto 0; border-radius: 50%; font-size: 16px; }
.daygroup.today .dtile small { color: var(--accent); } .daygroup.today .dtile b { background: var(--accent); color: #fff; }
.daygroup .it { display: flex; gap: 10px; margin-bottom: 8px; color: inherit; } .daygroup .it:last-child { margin-bottom: 0; } .daygroup .it:hover { text-decoration: none; }
.daygroup .it .bar { width: 4px; border-radius: 4px; flex: none; }
.okcircle { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.creditcard { background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-top: 16px; }
.creditcard .cc1 { padding: 16px; } .creditcard .cc2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed var(--line); } .creditcard .cc2 > div { padding: 12px 16px; } .creditcard .cc2 > div + div { border-left: 1px solid var(--line); }
.creditcard .cc3 { background: var(--surface-2); padding: 12px 16px; }
.pips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; } .pips span { height: 6px; border-radius: 99px; background: var(--line); } .pips span.on { background: var(--accent); }
/* Parent app – Magic Patterns pass 2 */
.qa2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.qa2 a { position: relative; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 650; font-size: 13.5px; }
.qa2 a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px #dccbd6; }
.qa2 .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.qa2 .bdg { position: absolute; top: -6px; right: 8px; background: var(--accent); color: #fff; border-radius: 99px; font-size: 10px; padding: 2px 7px; font-weight: 700; }
.kidtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kidtile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-weight: 650; }
.kidtile.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.radlist { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.radlist .ro { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-2); cursor: pointer; }
.radlist .ro:first-child { border-top: none; }
.radlist .rdot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; flex: none; }
.radlist .ro.on .rdot { background: var(--accent); box-shadow: none; color: #fff; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; } .rchip { padding: 7px 13px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; cursor: pointer; } .rchip.on { background: var(--text); color: #fff; box-shadow: none; }
.m-h { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.notecard { background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; margin-bottom: 10px; }
.notecard .nh { display: flex; gap: 10px; align-items: center; } .notecard .nh .t { font-size: 12px; color: var(--muted); margin-left: auto; align-self: flex-start; }
.notecard .practise { font-size: 13px; color: var(--muted); margin-top: 10px; } .notecard .practise b { color: var(--text); }
.pillbtn { height: 36px; padding: 0 13px; border-radius: 99px; border: none; background: var(--grey-soft); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pillbtn.on.g { background: var(--green-soft); color: var(--green); } .pillbtn.on.p { background: var(--accent-soft); color: var(--accent); }
.stmt { background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; }
.stmt .big { font-size: 36px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; }
.bgroup { padding: 12px 14px 6px; border-top: 1px solid var(--line-2); } .bgroup:first-child { border-top: none; }
.bgroup .gl { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0 6px 34px; font-size: 13.5px; } .bgroup .gl small { display: block; color: var(--muted); font-size: 12px; }
.btotal { background: var(--surface-2); padding: 12px 14px; border-top: 1px solid var(--line); }
.qr { width: 170px; height: 170px; margin: 0 auto; background-image: linear-gradient(90deg, #1d1820 50%, transparent 50%), linear-gradient(#1d1820 50%, transparent 50%); background-size: 14px 14px; border: 10px solid #fff; outline: 2px solid var(--line); border-radius: 8px; opacity: .9; }
.thread { background: var(--grey-soft); border-radius: 16px; padding: 14px; }
.thread .lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.thread .b { max-width: 85%; background: #fff; border-radius: 16px 16px 16px 6px; padding: 9px 13px; font-size: 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.thread .b.me { margin-left: auto; background: var(--accent); color: #fff; border-radius: 16px 16px 6px 16px; }
.thread .b .tm { font-size: 11px; text-align: right; opacity: .6; margin-top: 2px; }
.why { border-left: 2px solid var(--accent); padding-left: 14px; margin-top: 18px; }
.why .h { font-size: 12px; font-weight: 700; color: var(--accent); } .why .s { font-weight: 650; font-size: 15px; margin-top: 4px; }
.why ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); } .why .f { font-size: 12px; color: var(--muted); margin-top: 8px; }
.composer { border-top: 1px solid var(--line); margin: 16px -18px -18px; padding: 14px 18px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.navbtns { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .navbtns a { width: 32px; height: 30px; display: grid; place-items: center; color: var(--muted); } .navbtns a + a { border-left: 1px solid var(--line); }
.att-sticky { position: sticky; top: 56px; z-index: 5; background: rgba(245,244,247,.92); backdrop-filter: blur(6px); padding: 10px 0 12px; margin: -10px 0 4px; }
.starters { display: flex; flex-wrap: wrap; gap: 6px; } .starters button { height: 34px; padding: 0 13px; border-radius: 99px; border: none; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.dismiss { margin-left: auto; color: var(--muted); cursor: pointer; }
.gsearch { position: relative; } .gsearch input { height: 34px; width: 380px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 0 40px 0 32px; font: inherit; font-size: 13px; }
.gsearch input:focus { outline: none; border-color: #d7aac6; background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.gsearch > svg { position: absolute; left: 10px; top: 9px; color: var(--muted); } .gsearch kbd { position: absolute; right: 8px; top: 8px; font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--muted); background: #fff; }
.gres { position: absolute; top: 40px; left: 0; width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 60; padding: 6px; max-height: 420px; overflow: auto; }
.gres .gh { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 8px 4px; }
.gres a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; color: var(--text); } .gres a:hover { background: var(--surface-2); text-decoration: none; }
.bellbtn { position: relative; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); } .bellbtn:hover { background: var(--surface-2); }
.bellbtn i { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.studio-sw { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; margin: 0 2px 12px; cursor: pointer; font-size: 13px; }
.studio-sw small { display: block; font-size: 11px; color: var(--muted); } .studio-sw:hover { background: var(--surface-2); }
.nav-item .count.red { background: var(--red-soft); color: var(--red); }

/* AI Review round 1: chip filter bar (no dropdowns), fill-rate explainer, workflows, per-child payment */
.fbar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.ftop { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.ftop .search { flex: 1; max-width: 360px; } .ftop .search input { height: 32px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; padding-top: 8px; }
.fgrp { min-width: 0; } .fgrp.wide { grid-column: span 2; }
.fl { display: block; font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.fl b { color: var(--accent); }
.fchips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 550; color: var(--text-2); user-select: none; white-space: nowrap; }
.fchip:hover { border-color: var(--accent); text-decoration: none; }
.fchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip span { color: var(--muted); font-weight: 500; font-size: 11px; }
.fact, .fmore { font-size: 11.5px; font-weight: 600; padding: 0 3px; }
.fact { color: var(--muted); } .fact:hover { color: var(--accent); }
.fcount { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fcount b { color: var(--text); }
.vpick { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.vpick select { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 650; color: var(--text); outline: none; }
.vcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; }
.vcol { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 4px 0; }
.hk .label a.info { margin-left: 4px; color: var(--muted); font-weight: 500; font-size: 12px; }
.progsplit { display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; margin-top: 8px; }
.progleg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.progleg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.progleg b { font-variant-numeric: tabular-nums; }
.fillbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.fillbox > div { background: var(--bg, #f6f7f9); border-radius: 10px; padding: 10px 12px; }
.fillbox .n { font-size: 20px; font-weight: 650; }
.cid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: var(--line-2); color: var(--text-2); padding: 1px 6px; border-radius: 5px; margin-right: 6px; }
.wf-step { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wf-step .num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.wf-link { width: 2px; height: 14px; background: var(--line); margin-left: 26px; }
.wf-trigger { border-style: dashed; background: var(--accent-soft); }
.payrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.payrow .grow { flex: 1; }
.wf-step .grow { flex: 1; min-width: 0; }
.gres a { display: flex; align-items: center; gap: 10px; }
.gres .gtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gres .gtxt b { font-weight: 600; } .gres .gtxt span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gres .gico { width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.gmore { padding: 8px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); }
.struct > div.span2 { flex-basis: 100%; } .struct > div { border-bottom: 1px solid var(--line-2); }
.wkgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wkbox { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); }
.wkbox:hover { border-color: var(--accent); text-decoration: none; }
.wkbox .seat-grid { gap: 3px; } .wkbox .seat { height: 16px; border-radius: 3px; }
.wkbox.off { background: repeating-linear-gradient(45deg, #f4f4f4 0 6px, #fff 6px 12px); }
.segctl.wide { grid-template-columns: repeat(3, 1fr); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos.sm { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.photos .ph { aspect-ratio: 4 / 3; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: start; } .lesson p { margin: 4px 0 8px; }
.stars { color: #e0a100; letter-spacing: 1px; white-space: nowrap; } .stars i { color: #ddd; font-style: normal; }
.prgrid { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; align-items: center; }
.starpick a { font-size: 20px; color: #ddd; padding: 0 1px; } .starpick a.on { color: #e0a100; } .starpick a:hover { color: #f0b400; text-decoration: none; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.cat { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.calbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; flex-wrap: wrap; }
.caltitle { font-size: 18px; margin: 0 0 0 8px; }
.segctl.wide4 { grid-template-columns: repeat(4, auto); } .segctl.wide { grid-template-columns: repeat(3, auto); }
.segctl.wide a, .segctl.wide4 a { padding: 5px 12px; }
.cal-ev .full { font-weight: 700; }
.calm-h { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.calm-h div { padding: 8px; font-size: 12px; font-weight: 600; text-align: center; }
.calm-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calm-c { min-height: 112px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--text); display: flex; flex-direction: column; gap: 3px; }
.calm-c:hover { background: #fdf9fc; text-decoration: none; }
.calm-c.off { background: #fafafa; color: var(--muted); } .calm-c.off .calm-e { opacity: .5; }
.calm-c.today .calm-d { background: var(--accent); color: #fff; }
.calm-c.closed { background: repeating-linear-gradient(45deg, #f6f6f6 0 6px, #fff 6px 12px); }
.calm-d { font-size: 12px; font-weight: 650; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.calm-e { font-size: 11px; border-left: 3px solid; padding-left: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calm-more { font-size: 11px; color: var(--muted); font-weight: 600; }
.wkbox .seat, .wkbox .seat.empty { height: 16px; min-height: 0; border-radius: 3px; } .wkbox.off .seat-grid { opacity: .25; }
.wkbox .seat-grid { flex: none; align-items: start; }
.seat.empty { padding: 0; margin: 0; font-size: 0; }
.setrow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); cursor: default; }
.setrow:last-child { border-bottom: 0; } .setrow .t1 { font-size: 13.5px; font-weight: 550; } .setrow .t2 { font-size: 12px; color: var(--muted); }
.setnum { width: 84px !important; text-align: right; padding: 6px 8px; } .setunit { min-width: 24px; }
.switch { width: 38px; height: 22px; border-radius: 99px; background: #d9d4dd; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch.on { background: var(--green, #1f8a4c); } .switch.on i { left: 19px; }
.pc { display: inline-block; min-width: 76px; padding: 3px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 650; text-align: center; background: #f1eff3; color: #9a93a1; }
.pc.full { background: var(--green-soft); color: #145234; } .pc.view { background: var(--blue-soft); color: #173f6d; } .pc.own { background: var(--amber-soft); color: #6d4300; }
a.pc:hover { outline: 2px solid var(--accent); text-decoration: none; }
.permkey { display: grid; grid-template-columns: repeat(4, auto 1fr); gap: 6px 10px; align-items: center; margin-bottom: 12px; }
.nbtools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; } .nbtools .segctl.wide { width: max-content; }
.nbgroup { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.nbgh { padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 650; }
.nbrow { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); align-items: start; }
.nbrow:last-child { border-bottom: 0; } .nbrow.done { background: #fbf7fa; box-shadow: inset 3px 0 0 var(--accent); }
.nbwho { display: flex; gap: 10px; align-items: flex-start; } .nbmain textarea { width: 100%; }
.nbstars { display: grid; grid-template-columns: repeat(4, auto auto); gap: 2px 8px; align-items: center; margin-top: 6px; } .nbstars .starpick a { font-size: 16px; }
.nbpics { display: flex; flex-direction: column; gap: 6px; } .nbpics .photos.sm { grid-template-columns: repeat(4, 1fr); } .nbpics .ph { cursor: pointer; }
.nbsave { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; }
.ph.pick { position: relative; cursor: pointer; } .ph.pick input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; } .ph.pick span { position: absolute; bottom: 4px; right: 6px; font-size: 11px; color: #fff; }
.tpick { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 650; font-size: 13px; padding: 0; outline: none; }
.devsw { grid-template-columns: auto auto; margin-right: 8px; } .devsw a { display: flex; align-items: center; gap: 5px; padding: 5px 12px; }
.pcp .pcp-body { max-width: 1180px; columns: 2; column-gap: 18px; }
.pcp .pcp-body > * { break-inside: avoid; }
.pcp .pcp-body .m-title { column-span: all; margin-top: 8px; }
.pcp .m-card { margin-bottom: 14px; }
a.scr { color: var(--text); } a.scr:hover { background: var(--surface-2); text-decoration: none; }
.scrn { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.setrow .grow { flex: 1; min-width: 0; }
/* 16-week forward planning */
.fwd { padding: 16px 18px; }
.fwd-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; } .fwd-head h2 { margin: 0; font-size: 18px; }
.fwd-key { display: flex; gap: 12px; align-items: center; font-size: 12.5px; } .fwd-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.fth { padding: 3px 9px; border-radius: 7px; background: var(--green-soft); color: #145234; font-weight: 650; } .fth.max { background: var(--red-soft); color: #7d1a14; }
.fwd-sum { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; } .fwd-sum div { background: var(--surface-2); border-radius: 9px; padding: 8px 12px; } .fwd-sum span { display: block; font-size: 11.5px; color: var(--muted); } .fwd-sum b { font-size: 18px; }
.fbarx { position: relative; display: flex; height: 12px; border-radius: 99px; background: #eef0f4; overflow: visible; } .fbarx.big { height: 22px; }
.fbarx span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; } .fbarx span:first-child { border-radius: 99px 0 0 99px; } .fbarx span:last-of-type { border-radius: 0 99px 99px 0; }
.fbarx .fmin { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #1f8a4c; opacity: .7; }
.fst { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.fst.ok { background: var(--green-soft); color: #145234; } .fst.under { background: #fff3c4; color: #7a5600; } .fst.almost { background: var(--blue-soft); color: #173f6d; } .fst.full { background: #fde2e1; color: #a1231b; }
.fwd-rows { display: grid; gap: 6px 10px; align-items: stretch; }
.fwd-rows .fh { font-size: 12px; font-weight: 650; color: var(--muted); padding: 6px 10px; background: var(--surface-2); border-radius: 8px; }
.fw { display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; } .fw span { font-size: 12px; color: var(--muted); }
.fcell { display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px 92px 52px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: #fff; }
.fcell:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.fcell.ok { background: #f3fbf6; } .fcell.under { background: #fffaf0; } .fcell.full { background: #fff4f3; } .fcell.almost { background: #f3f7fd; }
.fcell.off { display: flex; gap: 8px; color: var(--muted); font-size: 12.5px; border-style: dashed; background: repeating-linear-gradient(45deg, #fafafa 0 6px, #fff 6px 12px); }
.fcell .fd { font-size: 12.5px; font-weight: 600; } .fcell .fn { text-align: right; white-space: nowrap; } .fcell .fn b { font-size: 16px; } .faway { font-size: 11.5px; color: var(--muted); }
.fwd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ftile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ftrow { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 9px; color: var(--text); border-left: 4px solid #1f8a4c; background: #f6fbf8; }
.ftrow.under { border-left-color: #e0a100; background: #fffaf0; } .ftrow.full { border-left-color: #d0392f; background: #fff4f3; } .ftrow.almost { border-left-color: #3b6fd8; background: #f3f7fd; }
.ftrow.off { border-left-color: #ccc; background: repeating-linear-gradient(45deg, #fafafa 0 6px, #fff 6px 12px); color: var(--muted); font-size: 12px; }
.ftrow:hover { text-decoration: none; outline: 2px solid var(--accent); }
.ftbig { display: flex; align-items: baseline; gap: 4px; } .ftbig b { font-size: 26px; line-height: 1; } .ftbig > span { color: var(--muted); }
.ftmix { margin-left: auto; font-size: 12px; color: var(--text-2); } .ftmix i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 2px 0 6px; }
.fwd-chart { display: flex; gap: 8px; padding: 18px 0 0; } .fcy { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); height: 220px; text-align: right; width: 22px; }
.fcplot { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid var(--line); }
.fcline { position: absolute; left: 0; right: 0; border-top: 2px dashed; z-index: 1; pointer-events: none; } .fcline span { position: absolute; right: 0; top: -18px; font-size: 11px; font-weight: 700; font-style: normal; }
.fcline.max { border-color: #d0392f; color: #a1231b; } .fcline.min { border-color: #1f8a4c; color: #145234; }
.fcweek { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; position: relative; height: 100%; }
.fccol { width: 100%; max-width: 46px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; border-radius: 6px 6px 0 0; overflow: visible; }
.fccol span:not(.fctop) { display: block; } .fccol span:nth-child(2) { border-radius: 6px 6px 0 0; } .fccol:hover { filter: brightness(1.08); }
.fccol.off { height: 100%; background: repeating-linear-gradient(45deg, #f1f1f1 0 5px, #fff 5px 10px); }
.fctop { position: absolute; top: -17px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--text); }
.fccol.under .fctop { color: #7a5600; } .fccol.full .fctop { color: #a1231b; }
.fcx { position: absolute; bottom: -34px; font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.2; } .fwd-chart { padding-bottom: 38px; }
.fgrp2 { border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; } .fgh { display: flex; align-items: center; gap: 6px; font-weight: 650; padding: 4px 0; } .fgh i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .fgh b { margin-left: auto; }
.fplus { display: flex; align-items: center; gap: 6px; margin: 6px 0 4px; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.fplus:hover { border-color: var(--accent); text-decoration: none; } .fplus.dis { color: var(--muted); cursor: not-allowed; }
.fadd { display: flex; gap: 6px; align-items: center; margin: 6px 0 4px; } .fadd.col { flex-direction: column; align-items: stretch; } .fadd select { flex: 1; min-width: 0; }
.list-item.isaway { opacity: .6; } .list-item.isaway .t1 { text-decoration: line-through; }
.fwd-rows, .fwd-tiles { max-height: 1100px; overflow-y: auto; }
