/* ============================================================
   GODDY TABI — v2 screens: leadership dashboard, live attendance,
   weekly-report grid, Parent Voice. Uses tokens.css only.
   ============================================================ */
.v2-page { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box; padding-bottom: calc(var(--bottom-nav-h) + 48px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .v2-page { padding-bottom: var(--s6); } }
.v2-h1 { font-size: var(--text-lg); font-weight: var(--bold); color: var(--navy-deep); margin: 0; }
.v2-sub { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }
.v2-row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.v2-spread { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.v2-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow-xs); }
.v2-card h2 { font-size: var(--text-base); margin: 0 0 var(--s3); color: var(--navy-deep); }
.v2-muted { color: var(--text-muted); font-size: var(--text-sm); }
.v2-note { background: var(--blue-bg); border-left: 3px solid var(--blue); padding: var(--s3); border-radius: var(--r-sm); font-size: var(--text-sm); color: var(--text-primary); }
.v2-warn { background: var(--amber-bg); border-left: 3px solid var(--amber); padding: var(--s3); border-radius: var(--r-sm); font-size: var(--text-sm); }
.v2-bad  { background: var(--red-bg); border-left: 3px solid var(--red); padding: var(--s3); border-radius: var(--r-sm); font-size: var(--text-sm); }
.v2-good { background: var(--green-bg); border-left: 3px solid var(--green); padding: var(--s3); border-radius: var(--r-sm); font-size: var(--text-sm); }

/* KPI tiles — every one is a button that opens the list behind the number */
.v2-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.v2-kpi { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s3) var(--s4); cursor: pointer; font: inherit; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; box-shadow: var(--shadow-xs); }
.v2-kpi:hover, .v2-kpi:focus-visible { border-color: var(--navy); outline: none; box-shadow: var(--shadow-sm); }
.v2-kpi__v { font-size: var(--text-xl); font-weight: var(--black); color: var(--navy-deep); line-height: 1; }
.v2-kpi__v small { font-size: var(--text-sm); font-weight: var(--medium); color: var(--text-secondary); }
.v2-kpi__l { font-size: var(--text-xs); color: var(--text-secondary); font-weight: var(--semibold); text-transform: uppercase; letter-spacing: .03em; }
.v2-kpi--alert { border-color: var(--red); background: var(--red-bg); }
.v2-kpi--warn  { border-color: var(--amber); background: var(--amber-bg); }

/* tables that become stacked cards on a phone */
.v2-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.v2-table th { text-align: left; font-size: var(--text-xs); text-transform: uppercase; color: var(--text-secondary); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.v2-table td { padding: 8px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.v2-table td.num, .v2-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.v2-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v2-click { cursor: pointer; }
.v2-click:hover { background: var(--bg); }

/* status chips */
.v2-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: var(--semibold); background: var(--bg); color: var(--text-secondary); white-space: nowrap; }
.v2-chip--green { background: var(--green-bg); color: var(--green); }
.v2-chip--red   { background: var(--red-bg);   color: var(--red); }
.v2-chip--amber { background: var(--amber-bg); color: var(--amber); }
.v2-chip--blue  { background: var(--blue-bg);  color: var(--blue); }
.v2-chip--navy  { background: var(--navy); color: #fff; }

/* controls */
.v2-input, .v2-select, .v2-textarea { font: inherit; font-size: var(--text-base); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text-primary); min-height: 44px; box-sizing: border-box; }
.v2-textarea { width: 100%; min-height: 96px; resize: vertical; }
.v2-input:focus, .v2-select:focus, .v2-textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.v2-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.v2-tab { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: var(--semibold); color: var(--text-secondary); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.v2-tab[aria-selected="true"] { color: var(--navy-deep); border-bottom-color: var(--gold); }

/* modal */
.v2-modal-bg { position: fixed; inset: 0; background: rgba(15,30,66,.5); z-index: 9500; display: flex; align-items: flex-end; justify-content: center; }
.v2-modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s5); box-sizing: border-box; display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 700px) { .v2-modal-bg { align-items: center; } .v2-modal { border-radius: var(--r-xl); } }

/* weekly report grid: a row per child */
.wk-row { display: grid; grid-template-columns: 44px 1fr; gap: var(--s3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s3); }
.wk-row--late { border-color: var(--amber); }
.wk-row--done { border-color: var(--green); }
.wk-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: var(--bold); overflow: hidden; }
.wk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wk-rate { display: flex; gap: 6px; flex-wrap: wrap; }
.wk-rate button { font: inherit; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); padding: 6px 10px; min-height: 44px; min-width: 44px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.wk-rate button .e { font-size: 20px; line-height: 1; }
.wk-rate button .t { font-size: var(--text-xs); color: var(--text-secondary); }
.wk-rate button[aria-pressed="true"] { border-color: var(--navy); background: var(--gold-pale); box-shadow: inset 0 0 0 1px var(--navy); }
.wk-bar { position: sticky; bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); padding: var(--s3) var(--s4); display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 5; }
.wk-save { font-size: var(--text-xs); color: var(--text-muted); }
.wk-save--err { color: var(--red); font-weight: var(--semibold); }

/* Parent Voice survey */
.pv-progress { height: 6px; background: var(--border); border-radius: var(--r-full); overflow: hidden; }
.pv-progress > div { height: 100%; background: var(--gold); transition: width .25s; }
.pv-q { display: flex; flex-direction: column; gap: 8px; padding: var(--s3) 0; border-bottom: 1px solid var(--border-light); }
.pv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pv-scale button { font: inherit; min-height: 48px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); cursor: pointer; font-weight: var(--bold); color: var(--text-secondary); }
.pv-scale button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pv-scale-lbl { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); }
.pv-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-choice button { font: inherit; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-full); cursor: pointer; }
.pv-choice button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pv-urgent { border: 2px solid var(--red); background: var(--red-bg); border-radius: var(--r-lg); padding: var(--s4); }

.pv-list { display: flex; flex-direction: column; gap: 8px; }
.pv-list button, .pv-na { font: inherit; text-align: left; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); cursor: pointer; }
.pv-list button[aria-pressed="true"], .pv-na[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pv-banner { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: var(--s3) var(--s4); margin-bottom: var(--s3); }
.pv-banner__x { background: transparent; border: 0; color: #fff; font-size: 24px; min-width: 44px; min-height: 44px; cursor: pointer; }
.pv-card { border-left: 4px solid var(--gold); margin-bottom: var(--s3); }
.vc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s3); }
.vc-card--off { opacity: .75; }
.vc-card__top { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: start; }
.vc-icon { width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.vc-title { font-weight: var(--bold); }
.vc-desc, .vc-sum { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 2px; }
.vc-meta { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s3); }
.vc-switch { position: relative; width: 48px; height: 28px; flex: none; }
.vc-switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.vc-switch span { position: absolute; inset: 0; background: var(--border); border-radius: 14px; transition: .2s; }
.vc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: .2s; }
.vc-switch input:checked + span { background: var(--green); }
.vc-switch input:checked + span::after { left: 23px; }
.vc-bar { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.vc-bar > div { height: 100%; background: var(--navy); }
.vc-dist { display: grid; grid-template-columns: 110px 1fr 32px; gap: 8px; align-items: center; font-size: var(--text-sm); }
.ed-q--off { opacity: .6; }
/* Personal Report: full-screen guided flow */
.wz-full .admin-page-header, .wz-full .roster-controlrow, .wz-full #reports-class-bar { display: none; }
.wz-full #reports-body { padding: 0 12px !important; }
.wz { padding-bottom: calc(var(--bottom-nav-h) + 96px); }
.wz-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; }
.wz-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-size: 24px; line-height: 1; color: var(--navy); cursor: pointer; flex: none; }
.wz-top__t { flex: 1; min-width: 0; } .wz-top__h { font-weight: var(--bold); font-size: var(--text-lg); line-height: 1.15; }
.wz-top__s { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-top__n { font-size: var(--text-xs); font-weight: var(--bold); color: var(--navy); background: var(--gold-pale); border-radius: var(--r-full); padding: 4px 10px; }
.wz-prog { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; } .wz-prog > div { height: 100%; background: var(--gold); transition: width .3s; }
.wz-err { background: var(--red-bg); color: var(--red); border-radius: var(--r-md); padding: 8px 12px; font-size: var(--text-sm); margin-top: 8px; }
.wz-q { font-size: var(--text-lg); font-weight: var(--bold); margin: 14px 0 2px; } .wz-hint { color: var(--text-muted); font-size: var(--text-sm); margin: 0 0 10px; }
.wz-list { display: flex; flex-direction: column; gap: 6px; }
.wz-row { display: grid; grid-template-columns: 38px 1fr auto 22px; gap: 10px; align-items: center; background: var(--surface); border: 1.5px solid var(--border-light, #e5e7ef); border-radius: 14px; padding: 7px 10px; min-height: 56px; transition: background .2s, border-color .2s; scroll-margin-top: 80px; }
.wz-row--done { background: #eefaf2; border-color: #7bcf9a; }
.wz-row--sent { opacity: .65; }
.wz-row--flash { animation: wzflash .9s ease 2; } @keyframes wzflash { 0%,100% { box-shadow: 0 0 0 0 rgba(224,160,0,0); } 50% { box-shadow: 0 0 0 4px rgba(224,160,0,.6); border-color: var(--amber); } }
.wz-av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: var(--bold); font-size: 13px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .wz-av img { width: 100%; height: 100%; object-fit: cover; }
.wz-name { min-width: 0; font-weight: var(--semibold); font-size: var(--text-sm); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-sub2 { font-weight: 400; font-size: var(--text-xs); color: var(--text-muted); }
.wz-sentchip { margin-left: 6px; font-size: 10px; background: var(--green); color: #fff; border-radius: 8px; padding: 1px 6px; vertical-align: middle; }
.wz-selwrap { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 128px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: #eef0f6; color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--semibold); border: 0; font-family: inherit; cursor: pointer; }
.wz-selwrap.on { background: var(--navy); color: #fff; } .wz-selwrap__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.wz-tick { color: #1f9d55; display: flex; width: 22px; }
.wz-bar { position: fixed; left: 12px; right: 12px; max-width: 640px; margin: 0 auto; bottom: calc(var(--bottom-nav-h) + 22px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 6px 20px rgba(20,30,70,.16); padding: 10px 12px; z-index: 6; }
.wz-bar__l { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; } .wz-bar__r { display: flex; gap: 8px; }
.wz-count { font-size: var(--text-sm); color: var(--text-secondary); } .wz-count b { font-size: var(--text-lg); color: var(--navy); }
.wz-left { border: 0; background: none; padding: 0; text-align: left; color: var(--amber-dark, #b37400); font-weight: var(--bold); font-size: var(--text-xs); cursor: pointer; } .wz-ok { font-size: var(--text-xs); color: var(--text-muted); }
.wz-btn { font: inherit; font-weight: var(--bold); min-height: 46px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; }
.wz-btn--go { background: var(--navy); color: #fff; } .wz-btn--warn { background: #6a7290; } .wz-btn--ghost { background: #eef0f6; color: var(--navy); } .wz-btn--wa { background: #1faa59; } .wz-btn:disabled { opacity: .6; }
.wz-check { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-weight: var(--bold); font-size: var(--text-md, 1rem); background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 18px 16px; cursor: pointer; }
.wz-check.on { border-color: var(--navy); background: var(--gold-pale); } .wz-check__box { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; } .wz-check.on .wz-check__box { background: var(--navy); border-color: var(--navy); }
.wz-sub { margin: 18px 0 8px; font-size: var(--text-md, 1rem); }
.wz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .wz-chip { font: inherit; font-weight: var(--semibold); min-height: 52px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; padding: 6px 10px; } .wz-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.wz-hero { text-align: center; margin: 22px 0 14px; } .wz-hero__n { font-size: 64px; font-weight: 800; color: var(--navy); line-height: 1; } .wz-hero__l { color: var(--text-muted); font-weight: var(--semibold); }
.wz-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; } .wz-stat { background: var(--surface); border-radius: 16px; padding: 14px; text-align: center; border: 1px solid var(--border); } .wz-stat b { display: block; font-size: 28px; color: var(--navy); } .wz-stat span { font-size: var(--text-xs); color: var(--text-muted); } .wz-stat--wa b { color: #1faa59; }
.wz-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-light, #eee); font-size: var(--text-sm); } .wz-sum > div:last-child { border: 0; } .wz-sum span { color: var(--text-muted); } .wz-sum b { text-align: right; }
.wz-note { text-align: center; margin: 12px 8px 0; }
.wz-celebrate { text-align: center; padding: 26px 8px 14px; } .wz-celebrate h2 { margin: 12px 0 4px; font-size: 22px; } .wz-celebrate--big { padding-top: 60px; }
.wz-burst { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #2fbf71, #1f9d55); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(31,157,85,.35); animation: wzpop .5s cubic-bezier(.2,1.4,.4,1); } @keyframes wzpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wz-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.wz-wacard { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, #e8f9ef, #d6f3e2); border: 1.5px solid #8fd6ab; border-radius: 18px; padding: 16px; margin-top: 8px; } .wz-wacard p { margin: 4px 0 0; color: var(--text-secondary); font-size: var(--text-sm); } .wz-wacard__i { width: 52px; height: 52px; flex: none; border-radius: 16px; background: #1faa59; color: #fff; display: flex; align-items: center; justify-content: center; }
.wz-sendwa, .wz-again { font: inherit; font-weight: var(--bold); display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; grid-column: 3 / 5; } .wz-sendwa { background: #1faa59; color: #fff; } .wz-again { background: transparent; color: #1f9d55; }
.wz-row--wa { grid-template-columns: 38px 1fr auto; } .wz-row--wa .wz-sendwa, .wz-row--wa .wz-again { grid-column: auto; }
.wz-row--next { border-color: #1faa59; box-shadow: 0 0 0 3px rgba(31,170,89,.18); } .wz-row--next .wz-sendwa { animation: wzpulse 1.4s infinite; } @keyframes wzpulse { 50% { transform: scale(1.06); } }
.cr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.v2-card--warn { border-color: var(--amber); }
@media (min-width: 768px) { .wk-bar { bottom: 0; } }

/* ── Survey: card on the parent home screen ── */
.svc { background: linear-gradient(135deg, #fff 0%, #fbf6e8 100%); border: 1.5px solid #ecd9a4; border-radius: 22px; padding: 16px; margin-bottom: var(--s3); box-shadow: 0 6px 18px rgba(20,30,70,.08); }
.svc__row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.svc__icon { width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(145deg, #1d2a5c, #34498f); display: flex; align-items: center; justify-content: center; font-size: 40px; box-shadow: 0 8px 18px rgba(29,42,92,.35), inset 0 0 0 2px rgba(255,255,255,.18); }
.svc__eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 800; color: #b07d00; } .svc__title { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 2px 0; }
.svc__desc { font-size: var(--text-sm); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .svc__meta { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.svc__act { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.svc__go { flex: 1; min-width: 130px; font: inherit; font-weight: 800; min-height: 48px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; cursor: pointer; }
.svc__later { font: inherit; font-weight: 700; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }

/* ── Survey: full-screen flow ── */
body.sv-lock { overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 10000; background: #f6f7fb; overflow-y: auto; animation: svin .25s ease; } @keyframes svin { from { opacity: 0; transform: translateY(16px); } }
.sv-screen { min-height: 100%; display: flex; flex-direction: column; padding: max(12px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.sv-screen--intro { background: radial-gradient(circle at 50% 0%, #e9eefc, transparent 60%); }
.sv-x { align-self: flex-start; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); font-size: 26px; color: var(--navy); cursor: pointer; flex: none; } .sv-x--in { box-shadow: none; background: #e9ecf5; }
.sv-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 0; }
.sv-icon { width: 116px; height: 116px; border-radius: 34px; background: linear-gradient(145deg, #1d2a5c, #34498f); display: flex; align-items: center; justify-content: center; font-size: 62px; box-shadow: 0 14px 30px rgba(29,42,92,.38), inset 0 0 0 3px rgba(255,255,255,.18); margin-bottom: 22px; } .sv-icon--warn { background: #e98a3c; color: #fff; font-weight: 800; }
.sv-title { font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--navy); margin: 0 0 12px; } .sv-lead { font-size: 18px; line-height: 1.45; color: var(--text-secondary); margin: 0 0 16px; max-width: 420px; }
.sv-pill { display: inline-block; background: var(--gold-pale); color: var(--navy); font-weight: 800; border-radius: 99px; padding: 6px 16px; margin-bottom: 14px; } .sv-facts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--text-secondary); } .sv-facts span { background: #fff; border-radius: 99px; padding: 8px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sv-small { font-size: 13px; color: var(--text-muted); margin: 14px 8px 0; } .sv-preview { text-align: center; background: #fff4cf; color: #8a6200; font-weight: 800; font-size: 12px; border-radius: 99px; padding: 5px 12px; align-self: center; margin-top: 6px; }
.sv-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; } .sv-foot--row { flex-direction: row; position: sticky; bottom: 0; background: linear-gradient(transparent, #f6f7fb 30%); padding: 16px 0 4px; }
.sv-btn { font: inherit; font-weight: 800; font-size: 18px; min-height: 58px; border: 0; border-radius: 18px; cursor: pointer; padding: 0 24px; } .sv-btn--go { background: var(--navy); color: #fff; flex: 1; box-shadow: 0 8px 18px rgba(29,42,92,.3); } .sv-btn--go:disabled { background: #b9bfd3; box-shadow: none; } .sv-btn--ghost { background: #e9ecf5; color: var(--navy); } .sv-btn--link { background: transparent; color: var(--text-muted); font-size: 16px; min-height: 44px; }
.sv-bar { display: flex; align-items: center; gap: 12px; } .sv-prog { flex: 1; height: 8px; background: #dfe3f0; border-radius: 4px; overflow: hidden; } .sv-prog > div { height: 100%; background: linear-gradient(90deg, var(--gold), #f0b82e); border-radius: 4px; transition: width .3s; } .sv-count { font-weight: 800; font-size: 14px; color: var(--navy); min-width: 38px; text-align: right; }
.sv-qwrap { flex: 1; padding: 24px 0 8px; } .sv-q { font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--navy); margin: 0 0 8px; } .sv-opt-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-muted); background: #e9ecf5; border-radius: 99px; padding: 3px 10px; margin-bottom: 8px; }
.sv-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sv-opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid #e1e5f1; border-radius: 20px; padding: 14px 18px; min-height: 66px; cursor: pointer; box-shadow: 0 2px 6px rgba(20,30,70,.05); transition: transform .12s, border-color .15s, background .15s; }
.sv-opt:active { transform: scale(.98); } .sv-opt__e { font-size: 34px; line-height: 1; } .sv-opt__t { font-size: 19px; font-weight: 700; color: var(--navy); }
.sv-opt.on { border-color: var(--c, var(--navy)); background: color-mix(in srgb, var(--c, var(--navy)) 12%, #fff); box-shadow: 0 0 0 2px var(--c, var(--navy)); }
.sv-opt--text.on, .sv-opt--na.on { --c: var(--navy); } .sv-opt--na { min-height: 52px; justify-content: center; background: transparent; border-style: dashed; box-shadow: none; } .sv-opt--na .sv-opt__t { font-size: 16px; color: var(--text-secondary); }
.sv-opt__box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid #c6cce0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex: none; } .sv-opt--multi.on .sv-opt__box { background: var(--navy); border-color: var(--navy); }
.sv-text { width: 100%; min-height: 220px; margin-top: 18px; font: inherit; font-size: 19px; line-height: 1.45; padding: 16px; border: 2px solid #e1e5f1; border-radius: 20px; background: #fff; resize: vertical; } .sv-text:focus { outline: none; border-color: var(--navy); }
.sv-burst { width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(135deg, #2fbf71, #1f9d55); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(31,157,85,.4); margin-bottom: 22px; animation: wzpop .55s cubic-bezier(.2,1.4,.4,1); }
.sv-urgent { border: 2px solid var(--red); background: var(--red-bg); border-radius: 18px; padding: 14px; margin-top: 12px; font-size: 14px; text-align: left; }
.sv-spin { width: 54px; height: 54px; border: 5px solid #dfe3f0; border-top-color: var(--navy); border-radius: 50%; animation: svspin 1s linear infinite; margin-bottom: 16px; } @keyframes svspin { to { transform: rotate(360deg); } }

/* ── Parent Voice (admin): replies as readable submissions ── */
.rp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rp-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; font: inherit; background: var(--surface); border: 1.5px solid var(--border-light, #e5e7ef); border-radius: 16px; padding: 10px 12px; cursor: pointer; }
.rp-row--new { border-color: var(--gold); background: #fffaf0; }
.rp-av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; } .rp-av--lg { width: 56px; height: 56px; font-size: 18px; }
.rp-main { display: flex; flex-direction: column; min-width: 0; } .rp-name { font-weight: 800; color: var(--navy); } .rp-sub { font-size: var(--text-sm); color: var(--text-muted); }
.rp-new { margin-left: 8px; font-size: 10px; background: var(--gold); color: #fff; border-radius: 8px; padding: 2px 7px; vertical-align: middle; } .rp-when { font-size: var(--text-xs); color: var(--text-muted); text-align: right; max-width: 90px; }
.rd-head { display: flex; gap: 14px; align-items: center; margin: 10px 0 14px; } .rd-name { font-size: 20px; font-weight: 800; color: var(--navy); }
.rd-card { padding: 6px 18px; } .rd-survey { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; padding: 12px 0 4px; }
.rd-line { padding: 12px 0; border-bottom: 1px solid var(--border-light, #eee); } .rd-line:last-child { border: 0; } .rd-q { font-size: var(--text-sm); color: var(--text-muted); } .rd-a { font-size: 18px; font-weight: 800; color: var(--navy); margin-top: 2px; white-space: pre-wrap; }
.rd-a--r1 { color: #d64545; } .rd-a--r2 { color: #e98a3c; } .rd-a--r3 { color: #b8951f; } .rd-a--r4 { color: #4d9a35; } .rd-a--r5 { color: #1f9d55; } .rd-a--private { color: var(--text-muted); font-weight: 600; font-style: italic; font-size: 15px; }
.vn-strip { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } .vn-row { display: flex; align-items: center; gap: 12px; font: inherit; text-align: left; background: #fffaf0; border: 2px solid var(--gold); border-radius: 16px; padding: 10px 14px; cursor: pointer; } .vn-ico { font-size: 28px; } .vn-t { flex: 1; display: flex; flex-direction: column; } .vn-t small { color: var(--text-muted); }
.vd-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; background: var(--surface); border: 1.5px solid var(--border); border-radius: 20px; padding: 14px 16px; margin-bottom: var(--s3); cursor: pointer; box-shadow: 0 4px 14px rgba(20,30,70,.07); }
.vd-card--new { background: linear-gradient(135deg, #fffaf0, #fff3d6); border-color: var(--gold); }
.vd-ico { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(145deg, #1d2a5c, #34498f); display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; } .vd-t { flex: 1; display: flex; flex-direction: column; min-width: 0; } .vd-h { font-weight: 800; color: var(--navy); } .vd-s { font-size: var(--text-sm); color: var(--text-secondary); } .vd-go { font-weight: 800; color: var(--navy); }

/* ── Report day: full-screen overlay (class report, personal reports) ── */
.rd { position: fixed; inset: 0; z-index: 9000; background: #f6f7fb; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: svin .22s ease; }
.rd-in { max-width: 620px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom)); min-height: 100%; }
.rd .wz-bar { bottom: max(10px, env(safe-area-inset-bottom)); z-index: 9001; }
.rd .wz-row { min-height: 48px; padding: 5px 10px; border-radius: 12px; grid-template-columns: 34px 1fr auto 20px; gap: 9px; }
.rd .wz-av { width: 34px; height: 34px; font-size: 12px; }
.rd .wz-selwrap { min-height: 36px; width: 132px; }
.rd .wz-list { gap: 5px; }
.rd .wz-q { margin-top: 10px; }
body.rd-open { overflow: hidden; }

/* ── Report home ── */
.rh { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 24px; }
.rh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rh-title { font-size: 24px; font-weight: 800; color: var(--navy); }
.rh-week { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; font-size: var(--text-sm); font-weight: var(--semibold); }
.rh-week span { padding: 0 6px; white-space: nowrap; }
.rh-week button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef0f6; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .rh-week button:disabled { opacity: .35; }
.rh-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.rh-pill { flex: none; font: inherit; font-weight: var(--semibold); border: 1.5px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; } .rh-pill small { opacity: .7; font-weight: 400; } .rh-pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.rh-hero { border-radius: 24px; padding: 26px 20px 22px; text-align: center; color: #fff; background: linear-gradient(150deg, #1d2a5c 0%, #34498f 100%); box-shadow: 0 12px 28px rgba(29,42,92,.28); position: relative; overflow: hidden; }
.rh-hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.07); }
.rh-hero--done { background: linear-gradient(150deg, #168a50 0%, #2fbf71 100%); box-shadow: 0 12px 28px rgba(31,157,85,.3); }
.rh-hero--rest { background: linear-gradient(150deg, #4b5a8c 0%, #6e7fb4 100%); box-shadow: 0 12px 28px rgba(75,90,140,.25); }
.rh-emoji { font-size: 52px; line-height: 1; margin-bottom: 8px; position: relative; }
.rh-hero h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; position: relative; }
.rh-hero p { margin: 0 auto; max-width: 320px; font-size: 17px; line-height: 1.45; opacity: .93; position: relative; }
.rh-cta { position: relative; margin-top: 20px; width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: var(--gold, #e8b422); color: var(--navy-deep, #14204a); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.rh-link { position: relative; margin-top: 14px; border: 0; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: var(--bold); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.rh-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px 14px 6px; }
.rh-card__h { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--bold); color: var(--text-muted); margin-bottom: 6px; }
.rh-step, .rh-wa { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-light, #eceef5); } .rh-step:first-of-type { border-top: 0; }
.rh-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #eef0f6; color: var(--navy); }
.rh-ic--ok { background: #e3f6ea; color: #1f9d55; } .rh-ic--wa { background: #1faa59; color: #fff; }
.rh-step__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .rh-step__t b { font-size: var(--text-md, 1rem); } .rh-step__t span { font-size: var(--text-sm); color: var(--text-muted); }
.rh-bar { height: 6px; background: #e7e9f2; border-radius: 3px; overflow: hidden; margin-top: 6px; } .rh-bar > div { height: 100%; background: #2fbf71; border-radius: 3px; }
.rh-mini { font: inherit; font-size: var(--text-sm); font-weight: var(--bold); color: var(--navy); background: #eef0f6; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.rh-wa { background: linear-gradient(135deg, #eaf9f0, #dcf4e6); margin: 6px -14px 0; padding: 12px 14px; border-radius: 0 0 20px 20px; border-top: 1px solid #bfe6cf; }
.rh-wabtn { font: inherit; font-weight: var(--bold); display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: #1faa59; color: #fff; cursor: pointer; }

/* ── Class report wizard ── */
.cw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .cw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cw-tile { font: inherit; font-weight: var(--semibold); min-height: 54px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); padding: 8px 10px; cursor: pointer; color: var(--text-primary); transition: background .15s, border-color .15s; }
.cw-tile.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cw-tile--q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: var(--text-sm); min-height: 72px; } .cw-emoji { font-size: 24px; }
.cw-topics { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cw-topic { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 12px; } .cw-topic.bad { border-color: var(--red); background: var(--red-bg); }
.cw-topic__l { font-size: var(--text-xs); font-weight: var(--bold); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.cw-input { width: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 4px 0; outline: none; color: var(--text-primary); }
.cw-text { width: 100%; box-sizing: border-box; margin-top: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 12px; font: inherit; font-size: 16px; background: var(--surface); resize: vertical; } .cw-text--msg { margin: 0; border: 0; background: #fff; font-size: 15px; line-height: 1.5; }
.cw-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cw-big { font: inherit; font-weight: var(--bold); min-height: 96px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; cursor: pointer; text-align: center; } .cw-big span { font-size: 30px; } .cw-big.on { border-color: var(--navy); background: var(--gold-pale); box-shadow: 0 0 0 3px rgba(29,42,92,.12); }
.cw-datebox { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 8px 12px; margin-top: 10px; } .cw-datebox[hidden] { display: none; } .cw-datebox .cw-input { flex: 1; } .cw-datebox .wz-btn { min-height: 38px; padding: 0 16px; }
.cw-chat { margin-top: 10px; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,30,70,.14); border: 1px solid #d8dbe6; }
.cw-chat__bar { display: flex; align-items: center; gap: 10px; background: #0b6b5c; color: #fff; padding: 10px 14px; } .cw-chat__bar b { display: block; font-size: var(--text-md, 1rem); } .cw-chat__bar span { font-size: var(--text-xs); opacity: .8; }
.cw-chat__av { width: 38px; height: 38px; border-radius: 50%; background: #e8b422; color: #14204a; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.cw-chat__body { background: #ece5dd; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 14px 14px; padding: 14px 10px 16px; }
.cw-bubble { position: relative; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 6px; box-shadow: 0 1px 1px rgba(0,0,0,.12); max-width: 96%; font-size: 15px; line-height: 1.5; color: #1b1f2a; } .cw-bubble .pr-report-readback { font-size: 15px; }
.cw-bubble__t { text-align: right; font-size: 11px; color: #7a8190; margin-top: 4px; }
.cw-edit { margin: 12px auto 0; display: block; font: inherit; font-weight: var(--bold); color: var(--navy); background: #eef0f6; border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer; }
.cw-sendnote { text-align: center; color: var(--text-muted); font-size: var(--text-sm); margin: 12px 12px 0; }
.cw-next { margin-top: 18px; font-weight: var(--semibold); color: var(--navy); }
.rd .cw-app { padding: 0 14px; } .rd .wz-bar__r { flex-wrap: nowrap; } .rd .wz-bar { padding: 8px 10px; }
body.rd-open .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.cw-bubble .pr-report-readback { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
.rd .wz-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; }
.rd .wz-btn svg { flex: none; }

/* ── Recommended actions on the dashboard ── */
.rec-h { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--bold); color: var(--text-muted); margin: 6px 4px 8px; }
.rec { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 40px 14px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(20,30,70,.06); transition: opacity .2s, transform .2s; }
.rec--out { opacity: 0; transform: translateX(30px); }
.rec-ic { grid-row: 1; width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: #fdf1d3; color: #9a6a00; }
.rec--blue .rec-ic { background: #e4ecff; color: #2d4fb3; } .rec--green .rec-ic { background: #1faa59; color: #fff; } .rec--green { background: linear-gradient(135deg, #f1fbf5, #e3f6ea); border-color: #a9dcbf; }
.rec-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rec-t b { font-size: var(--text-md, 1rem); line-height: 1.25; } .rec-t span { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.35; }
.rec-go { grid-column: 1 / 3; margin-top: 8px; min-height: 44px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font: inherit; font-weight: var(--bold); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; } .rec-go--wa { background: #1faa59; }
.rec-x { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-muted); font-size: 22px; cursor: pointer; border-radius: 50%; }

/* ── Survey v2: grids, one screen per question, no scrolling ── */
.sv { height: 100dvh; overflow: hidden; }
.sv-screen { height: 100%; min-height: 0; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); overflow: hidden; }
.sv-qwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 0 6px; }
.sv-q { font-size: clamp(19px, 3.3vh, 24px); margin: 0 0 6px; }
.sv-opts { margin-top: 10px; }
.sv-opts--rate { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; flex: 1; min-height: 0; max-height: 52vh; }
.sv-opts--rate .sv-opt { grid-column: span 2; } .sv-opts--rate .sv-opt:nth-child(n+4) { grid-column: span 3; }
.sv-opts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; max-height: 58vh; align-content: start; grid-auto-rows: minmax(64px, 1fr); }
.sv-opts--grid.sv-opts--dense { gap: 8px; grid-auto-rows: minmax(52px, 1fr); }
.sv-opts--dense .sv-opt__t { font-size: 14px; }
.sv-opt--tile { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 8px 6px; min-height: 0; }
.sv-opt--tile .sv-opt__e { font-size: clamp(28px, 5vh, 40px); } .sv-opt--tile .sv-opt__t { font-size: 15px; }
.sv-opt--text { justify-content: center; text-align: center; padding: 8px 10px; min-height: 0; } .sv-opt--text .sv-opt__t { font-size: 15px; line-height: 1.2; }
.sv-opt--multi { justify-content: flex-start; text-align: left; gap: 8px; } .sv-opt--multi .sv-opt__box { width: 22px; height: 22px; border-radius: 7px; font-size: 14px; }
.sv-opt--na { margin-top: 10px; min-height: 44px; flex: none; }
.sv-small--c { text-align: center; margin: 2px 0 0; }
.sv-text { flex: 1; min-height: 120px; max-height: 40vh; margin-top: 10px; resize: none; }
.sv-foot--row { position: static; background: none; padding: 8px 0 0; } .sv-btn { min-height: 52px; font-size: 17px; }
.sv-why { background: #fff; border: 1.5px solid #e1e5f1; border-left: 4px solid var(--gold); border-radius: 14px; padding: 10px 14px; text-align: left; max-width: 440px; margin: 0 0 14px; }
.sv-why b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #b07d00; } .sv-why p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.sv-screen--intro .sv-icon { width: 88px; height: 88px; font-size: 46px; border-radius: 26px; margin-bottom: 14px; } .sv-screen--intro .sv-title { font-size: 24px; margin-bottom: 8px; } .sv-screen--intro .sv-lead { font-size: 16px; margin-bottom: 12px; }
.sv-screen--intro .sv-facts { margin-bottom: 4px; }
@media (max-height: 700px) { .sv-screen--intro .sv-icon { width: 64px; height: 64px; font-size: 34px; margin-bottom: 8px; } .sv-q { font-size: 18px; } .sv-btn { min-height: 46px; } }
/* admin preview: parent's home card first, then the same flow */
.sv-pvhome { position: fixed; inset: 0; z-index: 9000; background: var(--bg, #f6f7fb); padding: max(56px, env(safe-area-inset-top)) 16px 16px; overflow: hidden; }
.sv-pvhome__x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); font-size: 24px; color: var(--navy); }
.sv-pvhome__in { max-width: 560px; margin: 0 auto; }
.sv-pvtag { position: fixed; top: 4px; left: 50%; transform: translateX(-50%); background: #fff4cf; color: #8a6200; font-weight: 800; font-size: 11px; border-radius: 99px; padding: 3px 10px; pointer-events: none; }
.sv-opt-tag { align-self: flex-start; }

/* ── Admin inbox at scale ── */
.ib-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; } .ib-chips::-webkit-scrollbar { display: none; }
.ib-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; font: inherit; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 6px 12px; min-width: 68px; cursor: pointer; }
.ib-chip b { font-size: 18px; line-height: 1.1; color: var(--navy-deep); } .ib-chip span { font-size: 11px; color: var(--text-secondary); font-weight: 700; white-space: nowrap; }
.ib-chip.on { background: var(--navy); border-color: var(--navy); } .ib-chip.on b, .ib-chip.on span { color: #fff; }
.ib-chip--red:not(.on) { border-color: var(--red); background: var(--red-bg); } .ib-chip--amber:not(.on) { border-color: var(--gold); background: #fffaf0; }
.ib-filters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 8px 0; } .ib-filters--2 { grid-template-columns: 1fr; } .ib-filters .v2-select { min-width: 0; font-size: 13px; padding-left: 8px; }
.ib-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); margin: 4px 2px 8px; } .ib-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--navy); text-decoration: underline; cursor: pointer; }
.ib-list { display: flex; flex-direction: column; gap: 6px; }
.ib-row { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; } .ib-row.sel { border-color: var(--navy); background: #f1f4ff; } .ib-row--urgent { border-left: 4px solid var(--red); }
.ib-sel { display: flex; align-items: center; justify-content: center; width: 44px; flex: none; cursor: pointer; } .ib-sel input { width: 20px; height: 20px; }
.ib-main { flex: 1; min-width: 0; text-align: left; font: inherit; background: none; border: 0; padding: 9px 12px 9px 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.ib-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--navy); } .ib-topic { color: var(--text-muted); font-size: 12px; } .ib-new { background: var(--gold); color: #fff; font-size: 10px; font-weight: 800; border-radius: 8px; padding: 1px 7px; }
.ib-l2 { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ib-l3 { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-more { width: 100%; margin-top: 10px; }
.ib-act { position: sticky; bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--navy); color: #fff; border-radius: 16px; padding: 10px 12px; margin-top: 12px; box-shadow: 0 8px 24px rgba(20,30,70,.35); } .ib-act b { flex: 1 0 100%; font-size: 13px; }
#vi-q, #rp-q { width: 100%; box-sizing: border-box; }
.ib-act { bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 5; }
.ib-act .btn--outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }

/* Subject topics pop-up */
.cw-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; } .cw-tile__n { font-size: 11px; font-weight: 800; color: var(--gold-light, #f5d77a); }
.cw-pop { position: fixed; inset: 0; z-index: 9600; background: rgba(15,23,60,.5); display: flex; align-items: flex-end; justify-content: center; animation: svin .18s ease; }
.cw-pop__sheet { width: 100%; max-width: 560px; background: var(--surface, #fff); border-radius: 22px 22px 0 0; padding: 18px 16px max(16px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.cw-pop__h { font-size: 20px; font-weight: 800; color: var(--navy); } .cw-pop__s { font-size: 13px; color: var(--text-secondary); margin: 4px 0 12px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 96px; align-content: flex-start; padding: 10px; border: 2px solid var(--border); border-radius: 14px; background: #fff; cursor: text; } .cw-chips:focus-within { border-color: var(--navy); }
.cw-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--gold-pale, #fff2c9); color: var(--navy); font-weight: 700; font-size: 14px; border-radius: 99px; padding: 5px 6px 5px 12px; } #cp-host { display: contents; }
.cw-chip button { border: 0; background: rgba(29,42,92,.12); color: var(--navy); width: 20px; height: 20px; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.cw-chips__in { flex: 1; min-width: 110px; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 6px 2px; background: transparent; }
.cw-pop__a { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; } .cw-pop__a .wz-btn { min-width: 100px; }

/* ── Learner profile ── */
.cpf { z-index: 9100; } [data-profile] { cursor: pointer; }
.cp-top { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; } .cp-top__t { flex: 1; font-weight: 800; color: var(--navy); font-size: 16px; } .cp-edit { border: 0; background: #fff; border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 800; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cp-hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(145deg, #1d2a5c, #34498f); color: #fff; border-radius: 22px; padding: 16px; }
.cp-av { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,255,255,.35); } .cp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-hero h1 { font-size: 20px; line-height: 1.2; margin: 0 0 2px; color: #fff; } .cp-sub { font-size: 13px; opacity: .85; } .cp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .cp-chips span { background: rgba(255,255,255,.16); border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 700; } .cp-chips .cp-chip--off { background: #e98a3c; }
.cp-quick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 12px 0; }
.cp-q { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; font-size: 15px; } .cp-q--wa { background: #1f9d55; } .cp-q--off { background: #e9ecf5; color: var(--text-muted); font-weight: 600; font-size: 13px; }
.cp-seg { display: flex; background: #e9ecf5; border-radius: 12px; padding: 3px; margin: 4px 0 10px; } .cp-seg button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; padding: 8px; border-radius: 10px; color: var(--text-secondary); } .cp-seg .on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cp-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cp-k { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 1px; } .cp-k b { font-size: 24px; color: var(--navy-deep); line-height: 1.1; } .cp-k span { font-size: 11px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .03em; } .cp-k small { font-size: 10px; color: var(--text-muted); }
.cp-k--good { border-color: #2f9e57; background: #f0faf3; } .cp-k--good b { color: #1f7a42; } .cp-k--warn { border-color: #e0a526; background: #fffaf0; } .cp-k--bad { border-color: #d64545; background: #fdf0f0; } .cp-k--bad b { color: #b53030; }
.cp-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 12px 14px; margin-top: 10px; } .cp-empty { color: var(--text-muted); font-size: 14px; text-align: center; }
.cp-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.cp-strip { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; } .cp-strip i, .cp-leg i { display: block; aspect-ratio: 1; border-radius: 4px; } .cp-leg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--text-secondary); } .cp-leg span { display: flex; align-items: center; gap: 4px; } .cp-leg i { width: 10px; }
.cp-card summary { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; } .cp-card summary::-webkit-details-marker { display: none; } .cp-card summary b { background: #e9ecf5; border-radius: 99px; padding: 2px 12px; }
.cp-li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--border-light, #eee); font-size: 14px; } .cp-li:first-of-type { margin-top: 8px; } .cp-li > span:first-child { flex: 1; font-weight: 600; } .cp-li small { flex: 1 0 100%; color: var(--text-muted); }
.cp-tag { background: #e9ecf5; border-radius: 99px; padding: 2px 10px; font-size: 11px; font-weight: 800; color: var(--navy); } .cp-tag--ok { background: #dff3e6; color: #1f7a42; } .cp-tag--bad { background: #fde5e5; color: #b53030; }
.cp-none, .cp-more { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.cp-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border-light, #eee); font-size: 14px; } .cp-row:first-of-type { border: 0; } .cp-row span { color: var(--text-secondary); } .cp-row b { text-align: right; color: var(--navy); }
.cp-person { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border-light, #eee); } .cp-person:first-of-type { border: 0; } .cp-person__t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cp-person__t small { color: var(--text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.cp-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; } .cp-ic--wa { background: #1f9d55; }
.cp-av--tap { cursor: pointer; overflow: visible; } .cp-av--tap img { border-radius: 50%; }
.cp-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.cp-pick { display: grid; gap: 10px; } .cp-pick__b { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: 16px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; font-size: 16px; } .cp-pick__b--alt { background: #e9ecf5; color: var(--navy); }
.cp-frame { position: relative; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #000; } .cp-frame canvas { display: block; }
.cp-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); background: radial-gradient(circle at center, transparent 64%, rgba(0,0,0,.45) 65%); }
.cp-zoom { width: 100%; margin-top: 14px; }
.roster-tip { font-size: 12px; color: var(--text-muted); margin: 6px 2px 0; }

/* ── Full-screen register screens: My Students, Roll Call, Punctuality ── */
body:has(#screen-roster.active) #topbar, body:has(#screen-roster.active) #bottom-nav,
body:has(#screen-my-students.active) #topbar, body:has(#screen-my-students.active) #bottom-nav { display: none !important; }
#screen-roster.active, #screen-my-students.active { padding-top: max(8px, env(safe-area-inset-top)); }
.rc-title { display: flex; align-items: center; gap: 10px; } .rc-title .roster-title, .rc-title .admin-page-title { margin: 0; flex: 1; font-size: 20px; }
.rc-ib { flex: none; width: 42px; height: 42px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface, #fff); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; } .rc-ib svg { width: 22px; height: 22px; } .rc-ib--go { background: var(--navy); border-color: var(--navy); color: #fff; } .rc-ib:active { transform: scale(.94); }
.rc-tools { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; } .rc-prog { font-weight: 800; color: var(--navy); background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: 14px; } .rc-tools__hint { flex: 1; font-size: 11px; color: var(--text-muted); line-height: 1.25; }
.rc-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 96px; }
.rc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px; background: #fff; border: 2px solid var(--border); border-radius: 16px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .08s, background .12s, border-color .12s; box-shadow: 0 1px 3px rgba(20,30,70,.06); } .rc:active { transform: scale(.95); }
.rc-photo { position: relative; width: clamp(54px, 17vw, 70px); aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; } .rc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.rc-name { font-size: 11.5px; font-weight: 700; line-height: 1.2; color: var(--navy); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; width: 100%; padding: 0 2px; overflow-wrap: anywhere; }
.rc-sub { font-size: 9px; color: var(--text-muted); }
.rc-badge { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-style: normal; } .rc-badge svg { width: 15px; height: 15px; stroke-width: 3; }
.rc-info { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-radius: 50%; } .rc-info svg { width: 16px; height: 16px; }
.rc--pos { background: #e6f6ec; border-color: #2f9e57; } .rc--pos .rc-badge { color: #1f9d55; } .rc--pos .rc-photo { box-shadow: 0 0 0 3px #2f9e57; }
.rc--neg { background: #fdeaea; border-color: #d64545; } .rc--neg .rc-badge { color: #d64545; } .rc--neg .rc-photo { box-shadow: 0 0 0 3px #d64545; }
.rc--off { opacity: .6; cursor: default; }
.ms-head .ms-count { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 24px; }
.ms-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; background: #fff; border: 1.5px solid var(--border); border-radius: 20px; box-shadow: 0 2px 8px rgba(20,30,70,.07); cursor: pointer; } .ms-card:active { transform: scale(.97); }
.ms-photo { position: relative; width: min(38vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: visible; } .ms-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ms-name { font-weight: 800; color: var(--navy); text-align: center; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.ms-linked { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: #2f9e57; color: #fff; font-style: normal; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
body:has(#screen-roster.active) .roster-submitbar { bottom: max(12px, env(safe-area-inset-bottom)); }
#screen-roster .roster-page, #screen-my-students .ms-page { padding-left: 12px; padding-right: 12px; }
/* compact header so 12 children fit */
#screen-roster .roster-topzone { gap: 6px; }
#screen-roster .roster-controlrow--stacked { flex-direction: row; align-items: center; gap: 8px; }
#screen-roster .roster-icon-tabbar { flex: 1; width: auto; } #screen-roster .roster-icon-tabbar--labeled .social-tab { padding: 7px 8px; }
#screen-roster .roster-daybadge-wrap { align-self: auto; } #screen-roster .roster-daybadge { height: 38px; }
#screen-roster .roster-single-class { margin: 0; font-size: 12px; padding: 0 2px; }
.rc-tools { margin: 2px 0 8px; } .rc-tools .rc-ib { width: 38px; height: 38px; } .rc-prog { padding: 7px 10px; }
.rc-grid { gap: 7px; } .rc { padding: 7px 3px 6px; gap: 3px; border-radius: 14px; }
.rc-photo { width: clamp(46px, 14vw, 56px); font-size: 16px; } .rc-name { font-size: 11px; min-height: 2.4em; } .rc-badge { width: 21px; height: 21px; right: -5px; bottom: -5px; } .rc-badge svg { width: 13px; height: 13px; }

/* ── Admin Attendance: class cards and learner cards ── */
.rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-card { text-align: left; font: inherit; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 12px; box-shadow: 0 2px 6px rgba(20,30,70,.06); cursor: pointer; } .rs-card:active { transform: scale(.97); }
.rs-card__h { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .rs-card__n { font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.2; } .rs-card__ch { color: var(--text-muted); display: flex; } .rs-card__ch svg { width: 16px; height: 16px; }
.rs-card__t { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-secondary); } .rs-card__k { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.rs-stat { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 6px 8px; font-size: 12px; } .rs-stat b { margin-left: auto; font-size: 13px; } .rs-stat__l { color: inherit; opacity: .85; font-weight: 600; }
.rs-stat--ok { background: #e6f6ec; color: #1f7a42; } .rs-stat--wait { background: #fff4de; color: #b26b00; }
.cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-card { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 12px 8px 10px; cursor: pointer; box-shadow: 0 2px 6px rgba(20,30,70,.06); } .cr-card--abs { background: #fdf0f0; border-color: #e7b1b1; }
.cr-photo { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; } .cr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cr-name { font-weight: 800; color: var(--navy); font-size: 13px; text-align: center; line-height: 1.2; overflow-wrap: anywhere; } .cr-cls { font-size: 11px; color: var(--text-muted); }
.cr-marks { display: flex; gap: 6px; margin-top: 2px; } .cr-m { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; } .cr-m--ok { background: #dff3e6; color: #1f9d55; } .cr-m--bad { background: #fde5e5; color: #d64545; } .cr-m--na { background: #eef0f6; color: #9aa0b5; }
.cr-counts { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--text-secondary); text-align: center; }

/* Admin Reports board */
.rb-week { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 12px; font-weight: 700; color: var(--navy); font-size: 14px; }
.rb-wk { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.rs-stat--idle { background: #eef0f6; color: #5b6478; }
.rb-stats { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.rb-stats__h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.rb-stat { border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.rb-stat small { font-weight: 500; opacity: .85; }
.rb-stat--warn { background: #fff4de; color: #b26b00; } .rb-stat--good { background: #e6f6ec; color: #1f7a42; } .rb-stat--info { background: #e8efff; color: #2a4fb3; } .rb-stat--idle { background: #eef0f6; color: #5b6478; }
#screen-reports .admin-page-header { display: flex; align-items: center; gap: 8px; }
#rb-body { width: 100%; min-width: 0; } #rb-body .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #rb-body .rs-card { min-width: 0; } #rb-body .rs-stat { min-width: 0; } #rb-body .rs-stat__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Teachers / Admins grid and teacher profile */
.tg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tg-card { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 14px 8px 12px; box-shadow: 0 2px 6px rgba(20,30,70,.06); cursor: pointer; min-width: 0; }
.tg-card:active { transform: scale(.97); } .tg-card--off { opacity: .6; }
.tg-card .avatar--xl { width: 72px; height: 72px; }
.tg-name { font-weight: 800; color: var(--navy); font-size: 14px; line-height: 1.2; margin-top: 4px; word-break: break-word; }
.tg-meta { font-size: 12px; color: var(--text-secondary); line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tg-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 3px; }
.tg-dot, .tg-warn, .tg-ok { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 8px; }
.tg-dot--on { background: #e6f6ec; color: #1f7a42; } .tg-dot--off { background: #fde8e8; color: #b42318; } .tg-warn { background: #fff4de; color: #b26b00; } .tg-ok { background: #e8efff; color: #2a4fb3; }
.tp-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.tp-quick .cp-q { text-decoration: none; } .tp-quick .cp-q--wa { background: #1f9d55; }
#tp-stats .cp-kpis { margin-bottom: 0; }
.tp-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; } .tp-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.tp-bar__cols { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; } .tp-bar__cols i { display: block; width: 45%; border-radius: 4px 4px 0 0; min-height: 3px; }
.tp-bar > span { font-size: 10px; color: var(--text-muted); font-weight: 700; }
.tp-a { background: var(--navy); } .tp-p { background: var(--gold, #e0a526); }
.tp-leg { display: flex; gap: 14px; font-size: 11px; color: var(--text-secondary); margin-top: 8px; } .tp-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* Learner profile: admin icons + more menu */
.cp-top { position: relative; }
.cp-ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; padding: 0; } .cp-ib:active { transform: scale(.94); }
.cp-ib--del { color: #c0392b; }
.cp-menu { position: absolute; right: 0; top: 46px; z-index: 5; background: #fff; border-radius: 16px; box-shadow: 0 8px 28px rgba(20,30,70,.22); padding: 6px; min-width: 230px; display: flex; flex-direction: column; }
.cp-menu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--navy); text-align: left; padding: 12px; border-radius: 12px; cursor: pointer; } .cp-menu button:active { background: #eef0f6; }
.cp-ic--un { border: 0; background: #fde8e8; color: #c0392b; cursor: pointer; }
.sg-link { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 9px; margin-top: 3px; }
.sg-link--on { background: #e6f6ec; color: #1f7a42; } .sg-link--wait { background: #fff4de; color: #b26b00; } .sg-link--none { background: #eef0f6; color: #5b6478; }
.sg-card .avatar--xl { width: 76px; height: 76px; }
.admin-page-actions .rc-ib svg { stroke: currentColor; } .admin-page-actions { display: flex; gap: 8px; align-items: center; }

/* Account sheet */
.acct-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(145deg, #1d2a5c, #34498f); color: #fff; border-radius: 22px; padding: 16px; }
.acct-av { position: relative; width: 76px !important; height: 76px !important; overflow: visible !important; } .acct-av img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.acct-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.acct-hero__t { min-width: 0; } .acct-name { font-size: 18px; font-weight: 800; line-height: 1.2; } .acct-phone { font-size: 13px; opacity: .85; margin-top: 2px; }
.acct-role { display: inline-block; margin-top: 6px; background: rgba(255,255,255,.18); border-radius: 99px; padding: 2px 10px; font-size: 11px; font-weight: 800; }
.acct-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; border-radius: 16px; border: 1.5px solid var(--border); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; } .acct-tile:active { transform: scale(.96); }

/* ═══ THE EXAM-PREP WALLET ═══════════════════════════════════
   A teacher's prep money drawn as a wallet: deep navy leather with
   gold stitching, a card peeking out of the top and a gold clasp on
   the edge. The small one sits in the dashboard greeting; the big one
   opens from it and is also on the profile. */
.wallet-slot { flex: 0 0 auto; margin-left: 12px; opacity: 0; transform: translateY(5px) scale(.98);
  transition: opacity .4s ease, transform .4s ease; }
.wallet-slot.is-in { opacity: 1; transform: none; }
.wallet-slot:empty { display: none; }

.wallet {
  position: relative; display: block; width: 172px; margin: 0; padding: 13px 38px 12px 14px;
  border: 0; border-radius: 16px; text-align: left; color: #fff; font: inherit; cursor: pointer;
  isolation: isolate; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(255,255,255,.17), rgba(255,255,255,0) 55%),
    linear-gradient(150deg, #2a4288 0%, #1B2D5E 48%, #0F1E42 100%);
  box-shadow: 0 10px 22px rgba(15,30,66,.30), 0 2px 4px rgba(15,30,66,.18), inset 0 1px 0 rgba(255,255,255,.20);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wallet:active { transform: scale(.975); box-shadow: 0 5px 12px rgba(15,30,66,.28), inset 0 1px 0 rgba(255,255,255,.2); }
/* the stitching */
.wallet::before { content: ''; position: absolute; inset: 5px 5px 5px 5px; border-radius: 12px;
  border: 1.5px dashed rgba(212,160,23,.55); pointer-events: none; }
/* the card peeking out of the top */
.wallet__card { position: absolute; left: 16px; right: 26px; top: -7px; height: 16px; z-index: -1;
  border-radius: 9px 9px 0 0; background: linear-gradient(#f7e9b4, #e6c96a);
  box-shadow: 0 -1px 5px rgba(15,30,66,.16); }
.wallet__card--b { left: 30px; right: 40px; top: -12px; height: 18px; z-index: -2;
  background: linear-gradient(#cfd9f5, #aebce6); }
/* the clasp on the edge */
.wallet__snap { position: absolute; right: -1px; top: 50%; width: 28px; height: 36px; margin-top: -18px;
  border-radius: 13px 0 0 13px; pointer-events: none;
  background: linear-gradient(160deg, #f0cd5a 0%, #d4a017 55%, #a87908 100%);
  box-shadow: -2px 3px 7px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18); }
.wallet__snap::after { content: ''; position: absolute; left: 7px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7d6, #c99a1e 72%);
  box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.wallet__lbl { display: block; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.64); }
.wallet__amt { display: block; margin-top: 3px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet__amt.is-long { font-size: 19px; }
.wallet__amt small { margin-left: 4px; font-size: 10px; font-weight: 800; letter-spacing: .07em; color: #D4A017; }
.wallet__wk { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.62); }
.wallet__wk.is-up { color: #86e4b1; }

/* The big one */
.wallet--big { width: auto; margin: 16px 2px 14px; padding: 20px 56px 18px 20px; border-radius: 24px; cursor: default; }
.wallet--big:active { transform: none; }
.wallet--big::before { inset: 7px; border-radius: 18px; }
.wallet--big .wallet__card { top: -9px; height: 20px; left: 22px; right: 40px; }
.wallet--big .wallet__card--b { top: -15px; height: 22px; left: 40px; right: 62px; }
.wallet--big .wallet__snap { width: 38px; height: 54px; margin-top: -27px; border-radius: 18px 0 0 18px; }
.wallet--big .wallet__snap::after { left: 10px; width: 14px; height: 14px; margin-top: -7px; }
.wallet--big .wallet__lbl { font-size: 11px; }
.wallet--big .wallet__amt { margin-top: 6px; font-size: 40px; }
.wallet--big .wallet__amt small { font-size: 12px; }
.wallet__sub { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.66); }
.wallet__week { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.22); }
.wallet__weekhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.wallet__weekhead b { font-weight: 700; }
.wallet__weekhead span { color: #86e4b1; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet__bars { display: flex; align-items: flex-end; gap: 7px; height: 52px; margin-top: 10px; }
.wallet__bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.wallet__bar i { display: block; width: 100%; max-width: 22px; border-radius: 6px; background: rgba(255,255,255,.16); }
.wallet__bar i.on { background: linear-gradient(#f0cd5a, #d4a017); }
.wallet__bar em { font-style: normal; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); }
@media (max-width: 360px) { .wallet { width: 158px; padding-right: 34px; } .wallet__amt { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .wallet-slot, .wallet { transition: none; } }

/* offline status chip (js/offline.js) */
#gt-offline-chip { position: fixed; z-index: 10050; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); max-width: 92vw; font: 700 12px/1.2 system-ui, sans-serif; border-radius: 99px; padding: 6px 13px; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gt-offline-chip[hidden] { display: none; } #gt-offline-chip.off { background: #3a3f55; color: #fff; } #gt-offline-chip.online { background: #1f9d55; color: #fff; } #gt-offline-chip.wait { background: #D4A017; color: #1B2D5E; } #gt-offline-chip.sync { background: #1f9d55; color: #fff; }
