/* 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; }
