/* Owldid — the new design (schools on uiVersion 2).
   Every rule is scoped to html[data-ui="2"], so a school that hasn't pressed
   "Update" never sees any of it. Same two colours and three fonts as main.css,
   on a lighter sage, with Talon for the big numbers, the lavender line-art
   charts, a floating rail on the laptop and a bottom bar on the phone. */

/* ---------- palette: a lighter sage (only on the default theme) ---------- */
html[data-ui="2"]:not([data-theme]) {
  --sage-3: #edf2ec;          /* cards (30% sage) */
  --v2-ground: #e0e7de;       /* the page (30% sage) */
  --field: rgba(3, 11, 17, 0.035);
}
html[data-ui="2"] { --v2-ground: var(--sage); }
html[data-ui="2"]:not([data-theme]) { --v2-ground: #e0e7de; }
html[data-ui="2"] body,
html[data-ui="2"] .app-shell { background: var(--v2-ground); }
html[data-ui="2"]:not([data-theme]) .modal-card { background: #fff; }
html[data-ui="2"] .card { border-radius: 24px; }
html[data-ui="2"]:not([data-theme]) .card:not([style*="background"]) { border: 1px solid rgba(3, 11, 17, 0.07); }

/* big numbers in Owldid's own Talon */
html[data-ui="2"] .metric-value,
html[data-ui="2"] .num[style*="font-size:2"], html[data-ui="2"] .num[style*="font-size: 2"],
html[data-ui="2"] .num[style*="font-size:3"], html[data-ui="2"] .num[style*="font-size: 3"],
html[data-ui="2"] .num[style*="font-size:4"], html[data-ui="2"] .num[style*="font-size: 4"] {
  font-family: 'Owldid Talon', var(--f-ui); font-weight: 400; letter-spacing: 0;
}
html[data-ui="2"] .metric-value .unit { font-family: var(--f-ui); font-size: 0.4em; color: var(--on-sage-2); }

/* ---------- the X: lavender at rest, the agreed deep red when touched ---------- */
html[data-ui="2"] .modal-x,
html[data-ui="2"] .v2-x {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #ece5fa; color: #5d4b9c;
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
html[data-ui="2"] .modal-x:hover, html[data-ui="2"] .modal-x:focus-visible,
html[data-ui="2"] .v2-x:hover, html[data-ui="2"] .v2-x:focus-visible { background: #CD071E; color: #fff; transform: none; outline: 0; }
html[data-ui="2"] .modal-x:active, html[data-ui="2"] .v2-x:active { background: #A30518; color: #fff; transform: scale(0.93); }
html[data-ui="2"] .v2-x { position: absolute; top: 16px; right: 16px; cursor: pointer; z-index: 2; }
html[data-ui="2"] .v2-x .v2-ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- shell pieces (hidden unless the school is on the new design) ---------- */
.v2-rail, .v2-top, .v2-bar, .v2-scrim, .v2-sheet { display: none; }
html[data-ui="2"] .v2-ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* sheets: More and Quick actions — a centred card on the laptop, a bottom sheet on the phone */
html[data-ui="2"] .v2-scrim { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(3, 11, 17, 0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
html[data-ui="2"] body.v2-open .v2-scrim { opacity: 1; pointer-events: auto; }
html[data-ui="2"] .v2-sheet {
  display: block; position: fixed; z-index: 91; left: 50%; top: 50%;
  width: min(860px, calc(100% - 40px)); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 28px; padding: 30px 32px 28px;
  box-shadow: 0 40px 90px -30px rgba(3, 11, 17, 0.45);
  opacity: 0; pointer-events: none; transform: translate(-50%, -46%) scale(0.97);
  transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.25s;
}
html[data-ui="2"][data-theme] .v2-sheet { background: var(--sage-3); }
html[data-ui="2"] .v2-sheet.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
html[data-ui="2"] .v2-sheet-sm { width: min(520px, calc(100% - 40px)); }
html[data-ui="2"] .v2-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; margin-top: 26px; }
html[data-ui="2"] .v2-group .metric-label { margin-bottom: 6px; }
html[data-ui="2"] .v2-group a, html[data-ui="2"] .v2-acts a { display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; transition: background 0.15s; }
html[data-ui="2"] .v2-group a:hover, html[data-ui="2"] .v2-acts a:hover { background: #f3eefc; }
html[data-ui="2"] .v2-group a b, html[data-ui="2"] .v2-acts a b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
html[data-ui="2"] .v2-group a small, html[data-ui="2"] .v2-acts a small { display: block; font-size: 12.5px; color: var(--on-sage-2); margin-top: 1px; }
html[data-ui="2"] .v2-group.v2-phone { display: none; }
html[data-ui="2"] .v2-acts { margin-top: 18px; }
html[data-ui="2"] .v2-acts a { position: relative; padding: 13px 40px 13px 14px; margin: 0; border-top: 1px solid var(--line-sage); border-radius: 0; }
html[data-ui="2"] .v2-acts a:first-child { border-top: 0; }
html[data-ui="2"] .v2-acts a span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #5d4b9c; }

/* ---------- laptop: the floating rail + tools top-right ---------- */
@media (min-width: 861px) {
  html[data-ui="2"] body.app-shell { padding-left: 116px; }
  html[data-ui="2"] .app-main { position: relative; }
  html[data-ui="2"] .v2-rail { position: fixed; left: 16px; top: 0; bottom: 0; z-index: 40; width: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 0; }
  html[data-ui="2"] .v2-owl img { width: 32px; height: auto; opacity: 0.9; margin-bottom: 4px; }
  html[data-ui="2"] .v2-stack { display: flex; flex-direction: column; gap: 2px; padding: 8px 5px; border-radius: 32px; background: rgba(237, 242, 236, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -26px rgba(3, 11, 17, 0.5), 0 0 0 1px rgba(3, 11, 17, 0.05); max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: none; }
  html[data-ui="2"][data-theme] .v2-stack { background: var(--sage-3); }
  html[data-ui="2"] .v2-stack a, html[data-ui="2"] .v2-stack button { width: 78px; padding: 9px 0 8px; border: 0; border-radius: 20px; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--on-sage-2); font: 500 11.5px/1.1 var(--f-ui); letter-spacing: 0; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.12s; }
  html[data-ui="2"] .v2-stack a:hover, html[data-ui="2"] .v2-stack button:hover { color: var(--on-sage); background: var(--hover); }
  html[data-ui="2"] .v2-stack a:active, html[data-ui="2"] .v2-stack button:active { transform: scale(0.95); }
  html[data-ui="2"] .v2-stack .on { color: var(--btn-fg) !important; background: var(--btn-bg) !important; box-shadow: 0 6px 14px -6px rgba(3, 11, 17, 0.5); }
  html[data-ui="2"] .v2-stack .v2-ic { width: 24px; height: 24px; }
  html[data-ui="2"] .v2-plus { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(3, 11, 17, 0.28); transition: transform 0.3s; }
  html[data-ui="2"] .v2-plus:hover { transform: scale(1.06); }
  html[data-ui="2"] body.v2-open .v2-plus { transform: rotate(45deg); }

  html[data-ui="2"] .v2-top { display: block; position: absolute; top: 20px; right: 28px; z-index: 50; }
  html[data-ui="2"] .v2-school, html[data-ui="2"] .v2-find { display: none; }
  html[data-ui="2"] .v2-tools { display: flex; align-items: center; gap: 10px; }
  html[data-ui="2"] .v2-tools .app-search { display: flex; width: 280px; }
  html[data-ui="2"] .app-main { padding-top: 84px; }
  html[data-ui="2"] .v2-group.v2-phone { display: none; }
}

/* ---------- phone: slim top bar, bottom bar, sheets from the bottom ---------- */
@media (max-width: 860px) {
  html[data-ui="2"] .v2-top { display: flex; align-items: center; gap: 10px; position: fixed; inset: 0 0 auto; z-index: 50; padding: calc(10px + env(safe-area-inset-top)) 14px 10px 18px; background: color-mix(in srgb, var(--v2-ground) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  html[data-ui="2"] .v2-school { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  html[data-ui="2"] .v2-tools { display: flex; align-items: center; gap: 8px; flex: none; }
  html[data-ui="2"] .v2-find { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-sage); background: var(--sage-3); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
  html[data-ui="2"] .v2-find .v2-ic { width: 18px; height: 18px; }
  html[data-ui="2"] .v2-tools .app-search { display: none; }
  html[data-ui="2"] body.v2-searching .v2-tools .app-search { display: flex; position: fixed; left: 12px; right: 12px; top: calc(62px + env(safe-area-inset-top)); width: auto; z-index: 60; background: var(--sage-3); box-shadow: 0 16px 40px rgba(3, 11, 17, 0.18); }
  html[data-ui="2"] .app-install { display: none; }
  html[data-ui="2"] .app-main { padding-top: calc(80px + env(safe-area-inset-top)); padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  html[data-ui="2"] .rental-banner { margin-top: calc(58px + env(safe-area-inset-top)); }
  html[data-ui="2"] .rental-banner + .app-main, html[data-ui="2"] .rental-banner ~ main { padding-top: 22px; }

  html[data-ui="2"] .v2-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; padding: 6px; border-radius: 26px; background: color-mix(in srgb, var(--sage-3) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-sage); box-shadow: 0 16px 40px rgba(3, 11, 17, 0.12); }
  html[data-ui="2"] .v2-bar a, html[data-ui="2"] .v2-bar > button:not(.v2-bar-plus) { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border: 0; background: transparent; color: var(--on-sage-3); font: 500 10.5px/1.1 var(--f-ui); cursor: pointer; }
  html[data-ui="2"] .v2-bar .on { color: var(--on-sage); }
  html[data-ui="2"] .v2-bar .on .v2-ic { stroke-width: 2; }
  html[data-ui="2"] .v2-bar-plus { justify-self: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 4px solid var(--v2-ground); background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 22px rgba(3, 11, 17, 0.3); transition: transform 0.3s; }
  html[data-ui="2"] body.v2-open .v2-bar-plus { transform: rotate(45deg); }

  html[data-ui="2"] .v2-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 88vh; border-radius: 28px 28px 0 0; padding: 26px 22px calc(28px + env(safe-area-inset-bottom)); opacity: 1; transform: translateY(105%); }
  html[data-ui="2"] .v2-sheet.open { transform: none; }
  html[data-ui="2"] .v2-groups { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  html[data-ui="2"] .v2-group.v2-phone { display: block; grid-column: span 2; }
  html[data-ui="2"] .v2-group.v2-phone { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  html[data-ui="2"] .v2-group.v2-phone .metric-label { grid-column: span 2; }

  /* the floating chat button sits above the bottom bar */
  html[data-ui="2"] .owl-fab { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- the drawn charts (owldid.com line art on lavender) ---------- */
html[data-ui="2"] .v2-ch { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: 24px; background: #f3eefc; border: 1px solid #b9a6e6; padding: 16px 20px 10px; color: inherit; }
html[data-ui="2"] .v2-ch .chh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
html[data-ui="2"] .v2-ch .metric-label { color: #6a58a6; }
html[data-ui="2"] .v2-ch .key { font-size: 11.5px; color: #8d86a0; text-align: right; }
html[data-ui="2"] .v2-ch .empty { margin: auto; padding: 24px; font-size: 13px; color: #8d86a0; text-align: center; }
.sk { width: 100%; height: auto; overflow: visible; display: block; margin-top: 10px; }
.sk path, .sk line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sk .nt { font: 600 10.5px var(--f-ui); letter-spacing: 0.14em; }
.sk .note, .sk .fig, .sk .late, .sk .wash, .sk text { opacity: 0; transition: opacity 0.6s; }
.sk .wash { stroke: none; }
.sk.on .note, .sk.on .fig, .sk.on .late, .sk.on .wash, .sk.on text { opacity: 1; }
.sk text { font-family: 'Owldid Talon', var(--f-ui); }
.sk text.lbl { font-family: var(--f-ui); font-size: 14px; }

/* ---------- Today ---------- */
html[data-ui="2"] .v2-hello h1 { font: 400 clamp(50px, 6vw, 92px)/1 var(--f-brand); font-synthesis: none; letter-spacing: 0; margin: 14px 0 0; color: var(--navy); }
html[data-ui="2"] .v2-hello h1 em, html[data-ui="2"] .em-brand, html[data-ui="2"] em.brand { font-style: normal; font-synthesis: none; }
html[data-ui="2"] .v2-hello .row { gap: 16px; align-items: center; }
html[data-ui="2"] .v2-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
html[data-ui="2"] .v2-dash > * { min-width: 0; }
html[data-ui="2"] .v2-dash .card { padding: 22px 24px; display: flex; flex-direction: column; transition: transform 0.2s; }
html[data-ui="2"] .v2-dash a.card:hover { transform: translateY(-2px); }
html[data-ui="2"] .v2-dash h3 { font: 600 21px/1.2 var(--f-ui); letter-spacing: -0.02em; margin: 8px 0 0; }
html[data-ui="2"] .v2-navy { background: var(--navy) !important; color: var(--sage); border: 0 !important; }
html[data-ui="2"] .v2-navy2 { background: var(--navy-2) !important; color: var(--sage); border: 0 !important; }
html[data-ui="2"] .v2-navy .metric-label, html[data-ui="2"] .v2-navy2 .metric-label, html[data-ui="2"] .v2-navy .muted { color: var(--on-navy-2); }
html[data-ui="2"] .v2-navy .pill-navy, html[data-ui="2"] .v2-navy2 .pill-navy { background: var(--sage); color: var(--navy); }
html[data-ui="2"] .v2-navy .pill-navy:hover, html[data-ui="2"] .v2-navy2 .pill-navy:hover { background: var(--sage-2); }
html[data-ui="2"] .v2-fin { grid-column: span 6; }
html[data-ui="2"] .v2-fig { grid-column: span 3; }
html[data-ui="2"] .v2-fin .fh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html[data-ui="2"] .v2-fin .tg { font: 12px var(--f-mono); padding: 5px 11px; border-radius: 99px; background: rgba(192, 208, 192, 0.1); }
html[data-ui="2"] .v2-f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
html[data-ui="2"] .v2-f3 b { display: block; font: 400 clamp(30px, 3vw, 46px)/1 'Owldid Talon', var(--f-ui); margin-top: 8px; color: #e4ece4; white-space: nowrap; }
html[data-ui="2"] .v2-line { position: relative; height: 1px; background: rgba(192, 208, 192, 0.18); margin: 22px 0 24px; }
html[data-ui="2"] .v2-line i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--sage); transition: width 1.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
html[data-ui="2"] .v2-line span { position: absolute; right: 0; top: 9px; font: 11px var(--f-mono); color: var(--on-navy-2); }
html[data-ui="2"] .v2-fa { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
html[data-ui="2"] .v2-fa .pill-navy, html[data-ui="2"] .v2-fa .btn-outline-navy { padding: 12px 20px; font-size: 14px; }
html[data-ui="2"] .v2-fig b { font: 400 clamp(60px, 6vw, 92px)/0.9 'Owldid Talon', var(--f-ui); margin: auto 0 10px; padding-top: 18px; }
html[data-ui="2"] .v2-fig b small { font: 400 0.42em var(--f-ui); color: var(--on-sage-2); margin-left: 4px; }
html[data-ui="2"] .v2-fig .muted { font-size: 13px; }
html[data-ui="2"] .v2-fig u { text-decoration: none; border-bottom: 1px solid currentColor; }
html[data-ui="2"] .v2-mon { grid-column: span 7; }
html[data-ui="2"] .v2-grd { grid-column: span 5; }
html[data-ui="2"] .v2-qa { grid-column: span 8; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 18px; }
html[data-ui="2"] .v2-qa .v2-fa { margin: 0; }
html[data-ui="2"] .v2-ann { grid-column: span 4; justify-content: center; }
html[data-ui="2"] .v2-ann h3 { font-size: 18px; margin: 6px 0 4px; }
html[data-ui="2"] .v2-wide { grid-column: span 12; }
html[data-ui="2"] .v2-dash .v2-only-one { grid-column: span 12; }
@media (min-width: 861px) {
  html[data-ui="2"] body.v2-today .app-main { padding-top: 26px; padding-bottom: 28px; }
  html[data-ui="2"] body.v2-today .v2-hello { padding-right: 340px; }
  html[data-ui="2"] body.v2-today .v2-hello h1 { font-size: clamp(48px, 5vw, 76px); margin-top: 10px; }
  html[data-ui="2"] body.v2-today .v2-dash { gap: 14px; margin-top: 16px; }
}
@media (min-width: 861px) and (max-height: 820px) {
  html[data-ui="2"] body.v2-today .v2-hello h1 { font-size: 54px; margin-top: 6px; }
  html[data-ui="2"] body.v2-today .v2-dash .card { padding: 18px 22px; }
  html[data-ui="2"] body.v2-today .v2-line { margin: 16px 0 20px; }
  html[data-ui="2"] body.v2-today .v2-fig b { font-size: 64px; }
  html[data-ui="2"] body.v2-today .v2-mon, html[data-ui="2"] body.v2-today .v2-grd { min-height: 200px !important; }
}
@media (min-width: 861px) and (min-height: 680px) {
  html[data-ui="2"] body.v2-today .app-main { max-width: 1500px; }
  html[data-ui="2"] body.v2-today .v2-ch .sk { flex: 1; min-height: 0; }
  html[data-ui="2"] body.v2-today .v2-mon, html[data-ui="2"] body.v2-today .v2-grd { min-height: 230px; height: calc(100vh - 610px); max-height: 360px; }
}
@media (max-width: 860px) {
  html[data-ui="2"] .v2-hello h1 { font-size: 46px; margin-top: 8px; }
  html[data-ui="2"] body.v2-today .v2-school { visibility: hidden; }
  html[data-ui="2"] .v2-dash { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
  html[data-ui="2"] .v2-fin, html[data-ui="2"] .v2-mon, html[data-ui="2"] .v2-grd, html[data-ui="2"] .v2-qa, html[data-ui="2"] .v2-ann, html[data-ui="2"] .v2-wide { grid-column: span 2; }
  html[data-ui="2"] .v2-dash > * { grid-column: 1 / -1 !important; }
  html[data-ui="2"] .v2-dash > .v2-fig { grid-column: auto !important; }
  html[data-ui="2"] .v2-dash .card { padding: 18px; }
  html[data-ui="2"] .v2-f3 b { font-size: 26px; }
  html[data-ui="2"] .v2-fig b { font-size: 56px; }
  html[data-ui="2"] .v2-qa { flex-direction: column !important; align-items: flex-start; }
  html[data-ui="2"] .v2-ch .chh { flex-direction: column; gap: 2px; }
  html[data-ui="2"] .v2-ch .key { text-align: left; }
}

/* ---------- the kit (js/v2.js): page head, scene band, chips, rows, sheets ---------- */
html[data-ui="2"] .v2-hidden { display: none !important; }
html[data-ui="2"] .v2-phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
html[data-ui="2"] .v2-h1 { font: 800 clamp(40px, 5vw, 60px)/0.98 var(--f-ui); letter-spacing: -0.04em; margin: 12px 0 4px; }
html[data-ui="2"] .v2-h1 em { font: 400 1.12em/1 var(--f-brand); font-style: normal; font-synthesis: none; letter-spacing: 0; }
html[data-ui="2"] .v2-pact { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-ui="2"] .v2-pact .pill-navy, html[data-ui="2"] .v2-pact .btn-outline-sage { padding: 13px 22px; }
html[data-ui="2"] .v2-art { margin: 16px 0 18px; border-radius: 24px; background: #f3eefc; border: 1px solid #b9a6e6; padding: 14px 10px 6px; overflow: hidden; }
html[data-ui="2"] .v2-art svg { width: 100%; height: auto; max-height: 240px; display: block; }
html[data-ui="2"] .v2-art .ln-note { display: none; }
@media (min-width: 861px) { html[data-ui="2"] .v2-art .ln-note { display: block; } html[data-ui="2"] .v2-art svg { max-height: 260px; } }
html[data-ui="2"] .v2-sub { color: var(--on-sage-2); margin: 0 0 18px; font-size: 15px; }
html[data-ui="2"] .v2-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; }
html[data-ui="2"] .v2-chips::-webkit-scrollbar { display: none; }
html[data-ui="2"] .v2-chip { flex: none; padding: 9px 16px; border-radius: 99px; background: var(--sage-3); border: 1px solid var(--line-sage); font: 500 13.5px var(--f-ui); color: var(--on-sage-2); cursor: pointer; transition: 0.2s; }
html[data-ui="2"] .v2-chip.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
html[data-ui="2"] .v2-card { background: var(--sage-3); border: 1px solid rgba(3, 11, 17, 0.07); border-radius: 24px; padding: 20px 22px; }
html[data-ui="2"] .v2-list { padding: 4px 20px; }
html[data-ui="2"] .v2-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-sage); cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; }
html[data-ui="2"] .v2-row:first-child { border-top: 0; }
html[data-ui="2"] .v2-row b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
html[data-ui="2"] .v2-row small { display: block; font-size: 12.5px; color: var(--on-sage-2); }
html[data-ui="2"] .v2-av { width: 42px; height: 42px; border-radius: 50%; background: rgba(3, 11, 17, 0.07); display: grid; place-items: center; font: 600 12.5px var(--f-ui); color: var(--navy); flex: none; }
html[data-ui="2"] .v2-v { font: 400 24px/1 'Owldid Talon', var(--f-ui); text-align: right; }
html[data-ui="2"] .v2-v small { display: block; font: 11px var(--f-ui); color: var(--on-sage-3); margin-top: 3px; }
html[data-ui="2"] .v2-v.due { color: #a8432f; }
html[data-ui="2"] .v2-v.ok { color: #2f4a36; }
html[data-ui="2"] .v2-sticky { position: sticky; bottom: 18px; margin-top: 18px; z-index: 5; }
html[data-ui="2"] .v2-act { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; padding: 16px 20px; border-radius: 99px; border: 0; background: var(--btn-bg); color: var(--btn-fg); font: 600 15px var(--f-ui); letter-spacing: -0.01em; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(3, 11, 17, 0.5); transition: transform 0.15s; }
html[data-ui="2"] .v2-act:active { transform: scale(0.98); }
html[data-ui="2"] .v2-act:disabled { opacity: 0.45; cursor: default; }
html[data-ui="2"] .v2-act.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line-sage); box-shadow: none; }
html[data-ui="2"] .v2-search { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--field); border: 1px solid var(--line-sage); margin: 0 0 14px; }
html[data-ui="2"] .v2-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 15px var(--f-ui); color: var(--navy); }
html[data-ui="2"] .v2-search:focus-within { border-color: var(--navy); }
html[data-ui="2"] .v2-empty { padding: 28px 10px; text-align: center; color: var(--on-sage-2); }
html[data-ui="2"] .v2-pill { display: inline-flex; align-items: center; gap: 6px; font: 11px var(--f-mono); padding: 4px 10px; border-radius: 99px; background: rgba(3, 11, 17, 0.06); }
html[data-ui="2"] .v2-pill.due { color: #a8432f; background: rgba(168, 67, 47, 0.08); }
html[data-ui="2"] .v2-pill.b { background: transparent; border: 1px solid var(--line-sage); font-family: var(--f-ui); font-weight: 600; font-size: 12px; cursor: pointer; }
html[data-ui="2"] .v2-pill.b:hover { background: #f3eefc; border-color: #b9a6e6; color: #5d4b9c; }
html[data-ui="2"] .v2-seg { display: flex; padding: 4px; border-radius: 99px; background: rgba(3, 11, 17, 0.07); margin-bottom: 16px; }
html[data-ui="2"] .v2-seg button { flex: 1; padding: 9px 6px; border: 0; border-radius: 99px; background: none; font: 500 13.5px var(--f-ui); color: var(--on-sage-2); cursor: pointer; transition: 0.25s; white-space: nowrap; }
html[data-ui="2"] .v2-seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(3, 11, 17, 0.08); }
html[data-ui="2"] .v2-scrim.v2-dyn.on { opacity: 1; pointer-events: auto; }
html[data-ui="2"] .v2-sbody .h-2 { font-size: 34px; padding-right: 44px; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-h1 { font-size: 42px; }
  html[data-ui="2"] .v2-sticky { bottom: calc(92px + env(safe-area-inset-bottom)); }
  html[data-ui="2"] .v2-list { padding: 4px 14px; }
}

/* ---------- More: a page of every other part of the school ---------- */
html[data-ui="2"] .v2-more-g { margin-top: 22px; }
html[data-ui="2"] .v2-more-g > .metric-label { margin-bottom: 10px; display: block; }
html[data-ui="2"] .v2-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html[data-ui="2"] .v2-tile { display: block; padding: 18px 20px; border-radius: 20px; background: var(--sage-3); border: 1px solid rgba(3, 11, 17, 0.07); transition: background 0.15s, border-color 0.15s, transform 0.15s; }
html[data-ui="2"] .v2-tile:hover { background: #f3eefc; border-color: #b9a6e6; transform: translateY(-1px); }
html[data-ui="2"] .v2-tile b { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
html[data-ui="2"] .v2-tile small { display: block; font-size: 12.5px; color: var(--on-sage-2); margin-top: 3px; }
html[data-ui="2"] .v2-more-g.v2-phone { display: none; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  html[data-ui="2"] .v2-tile { padding: 15px 16px; }
  html[data-ui="2"] .v2-more-g.v2-phone { display: block; }
}

/* ---------- Register: tap a pupil ---------- */
html[data-ui="2"] .v2-regbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
html[data-ui="2"] .v2-mid { font: 400 40px/1 'Owldid Talon', var(--f-ui); margin-top: 6px; }
html[data-ui="2"] .v2-mid small { font: 400 0.55em var(--f-ui); color: var(--on-sage-2); }
html[data-ui="2"] .v2-regtools { display: flex; gap: 10px; align-items: flex-end; }
html[data-ui="2"] .v2-date { display: flex; flex-direction: column; gap: 4px; }
html[data-ui="2"] .v2-date input { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-sage); background: var(--field); font: 14px var(--f-ui); color: var(--navy); }
html[data-ui="2"] .v2-reg { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
html[data-ui="2"] .v2-kid { border-radius: 18px; background: var(--sage-3); border: 1px solid rgba(3, 11, 17, 0.07); padding: 14px 8px 12px; text-align: center; cursor: pointer; user-select: none; font: inherit; color: inherit; transition: background 0.2s, transform 0.15s; }
html[data-ui="2"] .v2-kid:active { transform: scale(0.96); }
html[data-ui="2"] .v2-kid .v2-av { margin: 0 auto 7px; }
html[data-ui="2"] .v2-kid b { display: block; font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="2"] .v2-kid small { font-size: 11px; color: var(--on-sage-3); }
html[data-ui="2"] .v2-kid.k-present { background: var(--navy); color: var(--sage); border-color: var(--navy); }
html[data-ui="2"] .v2-kid.k-present .v2-av { background: var(--sage); color: var(--navy); }
html[data-ui="2"] .v2-kid.k-present small { color: var(--sage); }
html[data-ui="2"] .v2-kid.k-late { background: rgba(183, 121, 31, 0.12); border-color: rgba(183, 121, 31, 0.35); }
html[data-ui="2"] .v2-kid.k-late small { color: #8a5a12; }
html[data-ui="2"] .v2-kid.k-absent { background: rgba(168, 67, 47, 0.08); border-color: rgba(168, 67, 47, 0.3); }
html[data-ui="2"] .v2-kid.k-absent small { color: #a8432f; }
html[data-ui="2"] .v2-kid.k-excused { background: #f3eefc; border-color: #b9a6e6; }
html[data-ui="2"] .v2-kid.k-excused small { color: #5d4b9c; }
html[data-ui="2"] .v2-list .v2-row .v2-av { font-size: 11px; }
@media (max-width: 860px) { html[data-ui="2"] .v2-reg { grid-template-columns: repeat(3, 1fr); } }

/* ---------- the pupil card ---------- */
html[data-ui="2"] .v2-pscrim { position: fixed; inset: 0; z-index: 94; background: rgba(3, 11, 17, 0.26); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
html[data-ui="2"] .v2-pcard { position: fixed; z-index: 95; left: 50%; top: 50%; width: min(660px, calc(100% - 32px)); max-height: min(90vh, 840px); overflow: auto; scrollbar-width: none; background: #fff; border-radius: 28px; padding: 26px 28px 22px; box-shadow: 0 40px 90px -30px rgba(3, 11, 17, 0.45), 0 0 0 1px rgba(3, 11, 17, 0.05); transform: translate(-50%, -46%) scale(0.97); opacity: 0; pointer-events: none; transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.25, 1), opacity 0.25s; }
html[data-ui="2"][data-theme] .v2-pcard { background: var(--sage-3); }
html[data-ui="2"] body.v2-pc .v2-pscrim { opacity: 1; pointer-events: auto; }
html[data-ui="2"] body.v2-pc .v2-pcard { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
html[data-ui="2"] .v2-phd { display: flex; align-items: center; gap: 14px; padding-right: 46px; margin-top: 14px; }
html[data-ui="2"] .v2-phd .v2-av { width: 58px; height: 58px; font-size: 16px; background: var(--navy); color: var(--sage); }
html[data-ui="2"] .v2-phd h2 { font: 800 34px/1 var(--f-ui); letter-spacing: -0.035em; margin: 0; }
html[data-ui="2"] .v2-phd p { font-size: 12px; color: var(--on-sage-2); margin: 7px 0 0; line-height: 1.5; }
html[data-ui="2"] .v2-phd p b { color: var(--navy); }
html[data-ui="2"] .v2-pfigs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 20px 0 16px; border-top: 1px solid var(--line-sage); border-bottom: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-pfigs > div { padding: 12px 0; }
html[data-ui="2"] .v2-pfigs > div + div { border-left: 1px solid var(--line-sage); padding-left: 18px; }
html[data-ui="2"] .v2-pfigs b { display: block; font: 400 42px/1 'Owldid Talon', var(--f-ui); margin: 8px 0 4px; }
html[data-ui="2"] .v2-pfigs b.due { color: #a8432f; }
html[data-ui="2"] .v2-pfigs b.ok { color: #2f4a36; }
html[data-ui="2"] .v2-pfigs small { font-size: 12px; color: var(--on-sage-3); }
html[data-ui="2"] .v2-pane { display: none; min-height: 200px; }
html[data-ui="2"] .v2-pane.on { display: block; }
html[data-ui="2"] .v2-p3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2px 0 10px; }
html[data-ui="2"] .v2-p3 b { display: block; font: 400 26px/1 'Owldid Talon', var(--f-ui); margin-top: 6px; }
html[data-ui="2"] .v2-p3 b.due { color: #a8432f; }
html[data-ui="2"] .v2-tw { overflow-x: auto; }
html[data-ui="2"] .v2-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
html[data-ui="2"] .v2-tbl th { font: 400 11px var(--f-mono); text-transform: uppercase; color: var(--on-sage-2); text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid rgba(3, 11, 17, 0.16); }
html[data-ui="2"] .v2-tbl td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line-sage); vertical-align: middle; }
html[data-ui="2"] .v2-tbl .r { text-align: right; }
html[data-ui="2"] .v2-tbl .t { font: 400 18px 'Owldid Talon', var(--f-ui); }
html[data-ui="2"] .v2-tbl .mono { font-size: 11px; }
html[data-ui="2"] .v2-st { display: inline-flex; align-items: center; gap: 6px; font: 11px var(--f-mono); padding: 4px 9px; border-radius: 99px; background: rgba(3, 11, 17, 0.06); white-space: nowrap; }
html[data-ui="2"] .v2-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html[data-ui="2"] .v2-st.paid { background: rgba(3, 11, 17, 0.1); }
html[data-ui="2"] .v2-st.partial { color: var(--on-sage-2); }
html[data-ui="2"] .v2-st.unpaid { color: #a8432f; background: rgba(168, 67, 47, 0.08); }
html[data-ui="2"] .mono { font-family: var(--f-mono); }
html[data-ui="2"] .dim { color: var(--on-sage-2); }
html[data-ui="2"] .sm { font-size: 11.5px; line-height: 1.55; }
html[data-ui="2"] .v2-gap { display: block; margin-top: 16px; }
html[data-ui="2"] .v2-mini { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-sage); font-size: 13px; }
html[data-ui="2"] .v2-mini span { font: 11.5px var(--f-mono); color: var(--on-sage-2); }
html[data-ui="2"] .v2-mini b { font: 400 18px 'Owldid Talon', var(--f-ui); }
html[data-ui="2"] .v2-prow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
html[data-ui="2"] .v2-prow .mono { font-size: 11px; }
html[data-ui="2"] .v2-prow .mono a { margin-left: 8px; border-bottom: 1px solid rgba(3, 11, 17, 0.16); }
html[data-ui="2"] .v2-pl { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(3, 11, 17, 0.16); background: transparent; font: 600 13.5px var(--f-ui); letter-spacing: -0.01em; color: var(--navy); cursor: pointer; transition: background 0.15s; }
html[data-ui="2"] .v2-pl:hover { background: rgba(3, 11, 17, 0.06); }
html[data-ui="2"] .v2-pl.sm { padding: 7px 13px; font-size: 12.5px; flex: none; }
html[data-ui="2"] .v2-exm { padding: 12px 0; border-top: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-exm:first-child { border-top: 0; }
html[data-ui="2"] .v2-exh { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
html[data-ui="2"] .v2-exh .mono { font-size: 12px; }
html[data-ui="2"] .v2-psec { padding: 12px 0; border-top: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-psec:first-child { border-top: 0; padding-top: 4px; }
html[data-ui="2"] .v2-gd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
html[data-ui="2"] .v2-gd b { display: block; font-weight: 600; font-size: 14px; }
html[data-ui="2"] .v2-gd .mono { font-size: 11.5px; display: block; margin-top: 2px; }
html[data-ui="2"] .v2-ped { border-top: 1px solid var(--line-sage); padding: 12px 0; }
html[data-ui="2"] .v2-ped summary { cursor: pointer; font-size: 12px; list-style: none; }
html[data-ui="2"] .v2-ped summary::-webkit-details-marker { display: none; }
html[data-ui="2"] .v2-ped[open] summary { margin-bottom: 12px; }
html[data-ui="2"] .v2-ped label, html[data-ui="2"] .v2-pctin { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
html[data-ui="2"] .v2-ped label span { font: 11.5px var(--f-mono); text-transform: uppercase; color: var(--on-sage-2); }
html[data-ui="2"] .v2-ped input, html[data-ui="2"] .v2-ped select, html[data-ui="2"] .v2-pctin input { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-sage); background: var(--field); font: 15px var(--f-ui); color: var(--navy); outline: 0; min-width: 0; width: 100%; }
html[data-ui="2"] .v2-ped input:focus, html[data-ui="2"] .v2-ped select:focus { border-color: var(--navy); }
html[data-ui="2"] .v2-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-ui="2"] .v2-g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
html[data-ui="2"] .v2-pmore { border-top: 1px solid var(--line-sage); padding-top: 12px; font-size: 11.5px; color: var(--on-sage-2); }
html[data-ui="2"] .v2-pmore a { border-bottom: 1px solid rgba(3, 11, 17, 0.16); }
html[data-ui="2"] .v2-pmore a.rm:hover { color: #CD071E; }
html[data-ui="2"] .v2-dsc { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: start; }
html[data-ui="2"] .v2-pctin { flex-direction: row; align-items: center; padding: 0 14px 0 0; border-radius: 14px; border: 1px solid var(--line-sage); background: var(--field); margin: 0; }
html[data-ui="2"] .v2-pctin input { border: 0; background: none; }
html[data-ui="2"] .v2-pacts { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
html[data-ui="2"] .v2-pacts .v2-act.ghost { width: auto; padding: 15px 22px; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-pcard { left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; max-height: 86vh; padding: 22px 20px 18px; opacity: 1; transform: translateY(115%); }
  html[data-ui="2"] body.v2-pc .v2-pcard { transform: none; }
  html[data-ui="2"] .v2-phd h2 { font-size: 28px; }
  html[data-ui="2"] .v2-g3 { grid-template-columns: 1fr 1fr; }
  html[data-ui="2"] .v2-seg button { font-size: 12.5px; padding: 9px 4px; }
}

html[data-ui="2"] .v2-paste { margin-top: 14px; padding: 14px 18px; }
html[data-ui="2"] .v2-paste summary { cursor: pointer; font-size: 12px; }
html[data-ui="2"] .v2-paste select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-sage); background: var(--field); font: 14px var(--f-ui); color: var(--navy); }
html[data-ui="2"] .v2-paste textarea { width: 100%; margin-top: 10px; font: 12px var(--f-mono); padding: 10px 12px; border: 1px solid var(--line-sage); border-radius: 12px; background: var(--field); resize: vertical; outline: 0; }
html[data-ui="2"] .v2-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
html[data-ui="2"] .v2-dsc { grid-template-columns: 170px 1fr; }
html[data-ui="2"] .v2-pctin span { white-space: nowrap; }

/* ---------- Marks ---------- */
html[data-ui="2"] .v2-mtool { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; padding: 16px 20px; }
html[data-ui="2"] .v2-mtool select, html[data-ui="2"] .v2-mtool input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-sage); background: var(--field); font: 14px var(--f-ui); color: var(--navy); max-width: 100%; }
html[data-ui="2"] .v2-mk { display: grid; grid-template-columns: minmax(0, 1fr) 100px 60px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-mkh { border-top: 0; font-size: 12px; color: var(--on-sage-3); }
html[data-ui="2"] .v2-mkh span + span { text-align: center; }
html[data-ui="2"] .v2-mkn { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="2"] .v2-score { width: 100%; padding: 11px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-sage); text-align: center; font: 400 22px 'Owldid Talon', var(--f-ui); color: var(--navy); outline: 0; -moz-appearance: textfield; }
html[data-ui="2"] .v2-score::-webkit-inner-spin-button { -webkit-appearance: none; }
html[data-ui="2"] .v2-score:focus { border-color: var(--navy); background: #fff; }
html[data-ui="2"] .v2-g { font: 400 20px 'Owldid Talon', var(--f-ui); text-align: center; padding: 6px 0; border-radius: 10px; background: rgba(3, 11, 17, 0.06); }

/* ---------- Money ---------- */
html[data-ui="2"] .v2-mtiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; }
html[data-ui="2"] .v2-mtile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 6px 13px; border-radius: 18px; background: var(--sage-3); border: 1px solid rgba(3, 11, 17, 0.07); font: 600 12.5px/1.2 var(--f-ui); color: var(--navy); text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.12s; }
html[data-ui="2"] .v2-mtile .v2-ic { width: 22px; height: 22px; stroke-width: 1.5; }
html[data-ui="2"] .v2-mtile small { display: block; font-size: 10.5px; color: var(--on-sage-3); font-weight: 400; }
html[data-ui="2"] .v2-mtile:hover { background: #f3eefc; border-color: #b9a6e6; color: #3b2f66; }
html[data-ui="2"] .v2-mtile:hover .v2-ic { color: #5d4b9c; }
html[data-ui="2"] .v2-mtile:active { transform: scale(0.96); }
html[data-ui="2"] .v2-tline { position: relative; height: 1px; background: rgba(3, 11, 17, 0.16); margin: 34px 0 0; }
html[data-ui="2"] .v2-tline i { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--navy); width: 0; transition: width 1.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
html[data-ui="2"] .v2-tline span { position: absolute; right: 0; bottom: 8px; font-size: 11.5px; color: var(--on-sage-3); }
html[data-ui="2"] .v2-mfigs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; }
html[data-ui="2"] .v2-mfigs button { text-align: left; padding: 14px 22px 2px; border: 0; border-left: 1px solid var(--line-sage); background: none; font: inherit; color: inherit; cursor: pointer; }
html[data-ui="2"] .v2-mfigs button:first-child { border-left: 0; padding-left: 0; }
html[data-ui="2"] .v2-mfigs b { display: block; font: 400 clamp(42px, 4.2vw, 62px)/1 'Owldid Talon', var(--f-ui); margin: 10px 0 6px; }
html[data-ui="2"] .v2-mfigs b.due { color: #a8432f; }
html[data-ui="2"] .v2-mfigs small { font-size: 12.5px; color: var(--on-sage-2); }
html[data-ui="2"] .v2-mfigs button:hover b:not(.due) { color: #5d4b9c; }
html[data-ui="2"] .v2-mtool { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; }
html[data-ui="2"] .v2-mtool .v2-seg { margin: 0; flex: none; width: 440px; }
html[data-ui="2"] .v2-mtool .v2-search { flex: 1; margin: 0; padding: 10px 14px; }
html[data-ui="2"] .v2-mpane { display: none; }
html[data-ui="2"] .v2-mpane.on { display: block; }
html[data-ui="2"] .v2-mpane > .card { margin-top: 0 !important; }
html[data-ui="2"] .v2-mbar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; }
html[data-ui="2"] .v2-mbar .btn-outline-sage { padding: 8px 14px; font-size: 12.5px; }
html[data-ui="2"] .v2-orow { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
html[data-ui="2"] .v2-oacts { display: flex; gap: 6px; }
html[data-ui="2"] .v2-cb { display: grid; grid-template-columns: 160px 1fr 110px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-sage); font-size: 14px; }
html[data-ui="2"] .v2-cb:first-child { border-top: 0; }
html[data-ui="2"] .v2-cb small { display: block; font-size: 11.5px; color: var(--on-sage-3); }
html[data-ui="2"] .v2-cb b { font: 400 20px 'Owldid Talon', var(--f-ui); text-align: right; color: #a8432f; }
html[data-ui="2"] .v2-cbar { height: 8px; border-radius: 8px; background: rgba(3, 11, 17, 0.07); overflow: hidden; }
html[data-ui="2"] .v2-cbar i { display: block; height: 100%; border-radius: 8px; background: #5d4b9c; }
html[data-ui="2"] .v2-also { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-also .metric-label { margin-right: 6px; }
html[data-ui="2"] .v2-also a { padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line-sage); font-size: 13.5px; font-weight: 500; }
html[data-ui="2"] .v2-also a small { color: var(--on-sage-3); font-weight: 400; margin-left: 6px; }
html[data-ui="2"] .v2-also a:hover { background: #f3eefc; border-color: #b9a6e6; }
html[data-ui="2"] .v2-sbody #mpesa-setup { margin: 0 !important; background: transparent; border: 0; padding: 0; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-phead .v2-pact { width: 100%; }
  html[data-ui="2"] .v2-phead .v2-pact > * { flex: 1; justify-content: center; padding: 14px 10px; font-size: 14px; }
  html[data-ui="2"] .v2-mtiles { grid-template-columns: repeat(3, 1fr); }
  html[data-ui="2"] .v2-mfigs button { padding: 12px 0 8px 12px; }
  html[data-ui="2"] .v2-mfigs b { font-size: 28px; }
  html[data-ui="2"] .v2-mfigs small { font-size: 11px; display: block; line-height: 1.35; }
  html[data-ui="2"] .v2-mtool { flex-direction: column; align-items: stretch; }
  html[data-ui="2"] .v2-mtool .v2-seg { width: auto; }
  html[data-ui="2"] .v2-orow { grid-template-columns: 42px minmax(0, 1fr) auto; }
  html[data-ui="2"] .v2-oacts { display: none; }
  html[data-ui="2"] .v2-cb { grid-template-columns: 90px 1fr 80px; gap: 10px; }
  html[data-ui="2"] .v2-mpane .tbl { min-width: 560px; }
  html[data-ui="2"] .v2-mpane > .card { overflow-x: auto; }
}
html[data-ui="2"] .v2-search input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }

/* ---------- CBE report ---------- */
html[data-ui="2"] .v2-ovr { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
html[data-ui="2"] .v2-lvl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-lvl:first-of-type { border-top: 0; }
html[data-ui="2"] .v2-dots { display: flex; gap: 4px; }
html[data-ui="2"] .v2-dots i { width: 26px; height: 8px; border-radius: 4px; background: rgba(3, 11, 17, 0.08); }
html[data-ui="2"] .v2-dots i.f { background: var(--navy); }
html[data-ui="2"] .v2-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--on-sage-3); }
html[data-ui="2"] .v2-lseg { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: rgba(3, 11, 17, 0.06); }
html[data-ui="2"] .v2-lseg button { border: 0; background: none; padding: 7px 11px; border-radius: 99px; font: 400 12px var(--f-mono); color: var(--on-sage-2); cursor: pointer; }
html[data-ui="2"] .v2-lseg button.on { background: var(--navy); color: var(--sage); }
html[data-ui="2"] .v2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-ui="2"] #cb-cur > .card { margin-top: 26px !important; }
@media print { html[data-ui="2"] .v2-rail, html[data-ui="2"] .v2-top, html[data-ui="2"] .v2-bar, html[data-ui="2"] .v2-sticky, html[data-ui="2"] .v2-chips, html[data-ui="2"] .v2-mtool, html[data-ui="2"] .owl-fab, html[data-ui="2"] #cb-cur, html[data-ui="2"] .v2-more-g { display: none !important; } html[data-ui="2"] body.app-shell { padding: 0 !important; } }

/* ---------- Timetable ---------- */
html[data-ui="2"] .v2-day { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-sage); align-items: start; }
html[data-ui="2"] .v2-day:first-child { border-top: 0; }
html[data-ui="2"] .v2-day time { font: 400 20px 'Owldid Talon', var(--f-ui); color: var(--on-sage-3); padding-top: 6px; }
html[data-ui="2"] .v2-sl { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line-sage); font: inherit; color: inherit; cursor: pointer; }
html[data-ui="2"] .v2-sl:disabled { cursor: default; }
html[data-ui="2"] .v2-sl b { display: block; font-weight: 600; }
html[data-ui="2"] .v2-sl small { color: var(--on-sage-2); font-size: 12.5px; }
html[data-ui="2"] .v2-sl.now { background: var(--navy); color: var(--sage); border-color: var(--navy); }
html[data-ui="2"] .v2-sl.now small { color: var(--sage); }
html[data-ui="2"] .v2-sl.brk { background: transparent; border-style: dashed; text-align: center; color: var(--on-sage-3); }
html[data-ui="2"] .v2-week { margin-top: 14px; }
html[data-ui="2"] .v2-week summary { cursor: pointer; font-size: 12px; padding: 8px 2px; }
html[data-ui="2"] .v2-week .card { margin-top: 10px; overflow-x: auto; }

/* ---------- Messages ---------- */
html[data-ui="2"] .v2-field { margin-bottom: 12px; }
html[data-ui="2"] .v2-field .metric-label { display: block; margin-bottom: 6px; }
html[data-ui="2"] .v2-field input, html[data-ui="2"] .v2-field textarea { width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--field); border: 1px solid var(--line-sage); font: 15px var(--f-ui); color: var(--navy); outline: 0; resize: vertical; }
html[data-ui="2"] .v2-field input:focus, html[data-ui="2"] .v2-field textarea:focus { border-color: var(--navy); background: #fff; }
html[data-ui="2"] .v2-cnt { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--on-sage-3); margin-bottom: 16px; }
html[data-ui="2"] .v2-cnt a { border-bottom: 1px solid currentColor; }
html[data-ui="2"] .v2-bubble { background: #fff; border-radius: 20px 20px 20px 6px; padding: 14px 16px; font-size: 14.5px; box-shadow: 0 8px 20px rgba(3, 11, 17, 0.06); margin: 10px 0 14px; max-width: 520px; }

/* ---------- Buses ---------- */
html[data-ui="2"] .v2-tview { position: relative; margin-top: 16px; }
html[data-ui="2"] .v2-tmap .map-frame { padding: 0; border-radius: 26px; border: 1px solid #b9a6e6; background: #eceaf1; box-shadow: none; }
html[data-ui="2"] .v2-tmap #map { height: min(680px, calc(100vh - 200px)); border-radius: 0; background: #eceaf1; }
html[data-ui="2"] .v2-tmap #map::before, html[data-ui="2"] .v2-tmap #map::after { display: none; }
html[data-ui="2"] .v2-tmap .leaflet-tile-pane { filter: grayscale(1) sepia(0.55) hue-rotate(218deg) saturate(1.5) brightness(1.08) contrast(0.82); }
html[data-ui="2"] .v2-tmap .bus-pin { background: #2b2245 !important; color: #fff !important; border: 3px solid #fff !important; box-shadow: 0 0 0 6px rgba(93, 75, 156, 0.22), 0 6px 14px rgba(3, 11, 17, 0.3) !important; }
html[data-ui="2"] .v2-tmap .bus-pin.stale { background: #b9b2c9 !important; }
html[data-ui="2"] .v2-tsheet { position: absolute; z-index: 600; top: 16px; left: 16px; max-height: calc(100% - 32px); width: 380px; overflow: auto; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; padding: 20px; box-shadow: 0 20px 50px rgba(3, 11, 17, 0.14); scrollbar-width: none; }
html[data-ui="2"] .v2-thero { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html[data-ui="2"] .v2-live { display: inline-flex; align-items: center; gap: 7px; color: #5d4b9c; font: 600 12px var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
html[data-ui="2"] .v2-live i { width: 8px; height: 8px; border-radius: 50%; background: #5d4b9c; animation: v2live 1.6s infinite; }
@keyframes v2live { 0% { box-shadow: 0 0 0 0 rgba(93, 75, 156, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(93, 75, 156, 0); } }
html[data-ui="2"] .v2-tsheet #map-note { margin: 0; }
html[data-ui="2"] .v2-tsheet .bus-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px !important; }
html[data-ui="2"] .v2-tsheet .bus-card { background: var(--sage-3); border: 1px solid var(--line-sage); color: var(--navy); }
html[data-ui="2"] .v2-tsheet .bus-card .ring { background: #2b2245; color: #fff; border-color: #2b2245; }
html[data-ui="2"] .v2-tsheet .bus-card .ring.off { background: #b9b2c9; border-color: #b9b2c9; }
html[data-ui="2"] #tv-more > .card { margin-top: 18px !important; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-tmap #map { height: 58vh; }
  html[data-ui="2"] .v2-tsheet { position: static; width: auto; margin-top: -26px; border-radius: 26px 26px 24px 24px; box-shadow: 0 -10px 30px rgba(3, 11, 17, 0.08); }
}

/* ---------- round 3: fill the screen, bigger and easier to read ---------- */
/* The page uses the width it has instead of a narrow centred column. */
@media (min-width: 861px) {
  html[data-ui="2"] .app-main { max-width: none; padding-left: 44px; padding-right: 48px; }
  html[data-ui="2"] body.v2-today .app-main { max-width: none; }
}
/* Headings in Owldid's own Talon; the brand word stays in Romanesco. */
html[data-ui="2"] .v2-h1 { font: 400 clamp(56px, 6.2vw, 96px)/0.92 'Owldid Talon', var(--f-ui); letter-spacing: 0.005em; margin: 12px 0 6px; }
html[data-ui="2"] .v2-h1 em { font-size: 0.86em; }
html[data-ui="2"] .eyebrow { font-size: 14px; }
html[data-ui="2"] .metric-label { font-size: 13px; }
html[data-ui="2"] .v2-sub { font-size: 16.5px; }
html[data-ui="2"] .v2-pact .pill-navy, html[data-ui="2"] .v2-pact .btn-outline-sage { padding: 16px 28px; font-size: 16.5px; }
/* chips, segments, search */
html[data-ui="2"] .v2-chip { padding: 11px 20px; font-size: 15px; }
html[data-ui="2"] .v2-seg button { padding: 12px 10px; font-size: 15.5px; }
html[data-ui="2"] .v2-search { padding: 15px 18px; }
html[data-ui="2"] .v2-search input { font-size: 16.5px !important; }
/* rows */
html[data-ui="2"] .v2-list { padding: 6px 24px; }
html[data-ui="2"] .v2-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 16px; padding: 15px 0; }
html[data-ui="2"] .v2-row b { font-size: 17px; }
html[data-ui="2"] .v2-row small { font-size: 14px; margin-top: 2px; }
html[data-ui="2"] .v2-av { width: 50px; height: 50px; font-size: 14px; }
html[data-ui="2"] .v2-v { font-size: 32px; }
html[data-ui="2"] .v2-v small { font-size: 12.5px; }
html[data-ui="2"] .v2-pill { font-size: 12.5px; padding: 6px 12px; }
html[data-ui="2"] .v2-pill.b { font-size: 14.5px; padding: 9px 18px; }
html[data-ui="2"] .v2-act { padding: 18px 24px; font-size: 16.5px; }
html[data-ui="2"] .v2-pl { padding: 12px 20px; font-size: 15px; }
html[data-ui="2"] .v2-empty { font-size: 16px; }
/* Money */
html[data-ui="2"] .v2-mtiles { gap: 12px; margin-top: 26px; }
html[data-ui="2"] .v2-mtile { gap: 10px; padding: 22px 10px 20px; border-radius: 22px; font-size: 15.5px; }
html[data-ui="2"] .v2-mtile .v2-ic { width: 30px; height: 30px; }
html[data-ui="2"] .v2-mtile small { font-size: 13px; margin-top: 2px; }
html[data-ui="2"] .v2-tline { margin-top: 40px; }
html[data-ui="2"] .v2-tline span { font-size: 13.5px; }
html[data-ui="2"] .v2-mfigs b { font-size: clamp(56px, 5vw, 92px); }
html[data-ui="2"] .v2-mfigs small { font-size: 15px; }
html[data-ui="2"] .v2-mtool .v2-seg { width: 520px; }
html[data-ui="2"] .v2-mbar { font-size: 14px; }
html[data-ui="2"] .v2-mbar .btn-outline-sage { padding: 10px 18px; font-size: 14.5px; }
html[data-ui="2"] .v2-orow { grid-template-columns: 50px minmax(0, 1fr) auto auto; }
html[data-ui="2"] .v2-oacts { gap: 8px; margin-right: 8px; }
html[data-ui="2"] .v2-cb { grid-template-columns: 200px 1fr 140px; font-size: 16px; padding: 14px 0; }
html[data-ui="2"] .v2-cb small { font-size: 13px; }
html[data-ui="2"] .v2-cb b { font-size: 26px; }
html[data-ui="2"] .v2-cbar { height: 10px; }
html[data-ui="2"] .v2-also a { font-size: 15px; padding: 11px 18px; }
html[data-ui="2"] .v2-mpane .tbl { font-size: 15px; }
html[data-ui="2"] .v2-mpane .tbl th { font-size: 12.5px; }
/* other screens share the kit; a few of their own pieces */
html[data-ui="2"] .v2-kid b { font-size: 14.5px; }
html[data-ui="2"] .v2-kid small { font-size: 12.5px; }
html[data-ui="2"] .v2-reg { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
html[data-ui="2"] .v2-mkn { font-size: 17px; }
html[data-ui="2"] .v2-score { font-size: 26px; }
html[data-ui="2"] .v2-sl b { font-size: 17px; }
html[data-ui="2"] .v2-sl small { font-size: 14px; }
html[data-ui="2"] .v2-day time { font-size: 24px; }
html[data-ui="2"] .v2-lvl { font-size: 16px; }
html[data-ui="2"] .v2-tile b { font-size: 17px; }
html[data-ui="2"] .v2-tile small { font-size: 14px; }
html[data-ui="2"] .v2-tile { padding: 22px 24px; }
@media (min-width: 1700px) {
  html[data-ui="2"] .v2-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  html[data-ui="2"] .v2-h1 { font-size: 58px; }
  html[data-ui="2"] .v2-mtile { padding: 16px 6px 14px; font-size: 14px; }
  html[data-ui="2"] .v2-mtile .v2-ic { width: 26px; height: 26px; }
  html[data-ui="2"] .v2-mtile small { font-size: 12px; }
  html[data-ui="2"] .v2-mfigs b { font-size: 30px; }
  html[data-ui="2"] .v2-mfigs small { font-size: 12px; }
  html[data-ui="2"] .v2-mtool .v2-seg { width: auto; }
  html[data-ui="2"] .v2-seg button { font-size: 14px; padding: 11px 4px; }
  html[data-ui="2"] .v2-list { padding: 4px 16px; }
  html[data-ui="2"] .v2-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  html[data-ui="2"] .v2-av { width: 44px; height: 44px; }
  html[data-ui="2"] .v2-v { font-size: 28px; }
  html[data-ui="2"] .v2-orow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  html[data-ui="2"] .v2-cb { grid-template-columns: 96px 1fr 84px; font-size: 14.5px; }
  html[data-ui="2"] .v2-cb b { font-size: 21px; }
  html[data-ui="2"] .v2-reg { grid-template-columns: repeat(3, 1fr); }
  html[data-ui="2"] .v2-pact .pill-navy, html[data-ui="2"] .v2-pact .btn-outline-sage { font-size: 15px; padding: 15px 10px; }
}
@media (min-width: 861px) {
  html[data-ui="2"] .v2-tools .app-search { width: 340px; height: 48px; padding: 0 16px; border-radius: 99px; }
  html[data-ui="2"] .v2-tools .app-search input { font-size: 15.5px; }
  html[data-ui="2"] .v2-tools .app-search .ico { width: 18px; height: 18px; }
  html[data-ui="2"] .v2-tools .app-avatar { width: 48px; height: 48px; font-size: 15px; }
  html[data-ui="2"] .v2-top { top: 22px; right: 32px; }
  html[data-ui="2"] .app-menu a, html[data-ui="2"] .app-menu button { font-size: 14.5px; padding: 11px 14px; }
}
/* the chat button never sits on top of a form, sheet or the pupil card */
html[data-ui="2"] .owl-fab { z-index: 45 !important; }
html[data-ui="2"] body.v2-pc .owl-fab, html[data-ui="2"] body.v2-open .owl-fab, html[data-ui="2"] body:has(.modal-backdrop.open) .owl-fab { opacity: 0; pointer-events: none; }
@media (max-width: 860px) { html[data-ui="2"] .owl-fab { width: 52px !important; height: 52px !important; right: 14px !important; } }

/* ---------- Buses, round 2: the mockup's map ---------- */
html[data-ui="2"] .v2-tmap { position: relative; border-radius: 26px; overflow: hidden; }
html[data-ui="2"] .v2-tseg { position: absolute; z-index: 600; top: 14px; right: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(3, 11, 17, 0.12); max-width: calc(100% - 28px); overflow-x: auto; scrollbar-width: none; }
html[data-ui="2"] .v2-tseg button { display: flex; align-items: center; gap: 7px; padding: 9px 15px; border: 0; border-radius: 99px; background: none; font: 600 13.5px var(--f-ui); color: var(--on-sage-2); cursor: pointer; white-space: nowrap; }
html[data-ui="2"] .v2-tseg button.on { background: #2b2245; color: #fff; }
html[data-ui="2"] .v2-tseg i { width: 7px; height: 7px; border-radius: 50%; background: #7fae8a; }
html[data-ui="2"] .v2-tseg i.off { background: #b9b2c9; }
html[data-ui="2"] .v2-tbtns { position: absolute; z-index: 600; right: 14px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
html[data-ui="2"] .v2-tbtns button { width: 46px; height: 46px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(3, 11, 17, 0.16); display: grid; place-items: center; cursor: pointer; }
html[data-ui="2"] .v2-tbtns svg { width: 20px; height: 20px; fill: none; stroke: #2b2245; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
html[data-ui="2"] .v2-tbtns button.on { background: #2b2245; }
html[data-ui="2"] .v2-tbtns button.on svg { stroke: #fff; fill: #fff; }
html[data-ui="2"] .v2-busmk { position: relative; }
html[data-ui="2"] .v2-busmk .bz { position: absolute; left: 0; top: 0; width: 30px; height: 60px; transition: transform 0.4s linear; filter: drop-shadow(0 4px 6px rgba(3, 11, 17, 0.25)); }
html[data-ui="2"] .v2-busmk .bz svg { width: 30px; height: 60px; display: block; }
html[data-ui="2"] .v2-busmk.off .bz { filter: grayscale(0.8) drop-shadow(0 4px 6px rgba(3, 11, 17, 0.2)); opacity: 0.75; }
html[data-ui="2"] .v2-busmk .halo { position: absolute; left: 15px; top: 30px; width: 90px; height: 90px; margin: -45px; border-radius: 50%; background: rgba(93, 75, 156, 0.22); animation: v2hb 2.2s ease-out infinite; display: none; }
html[data-ui="2"] .v2-busmk.sel .halo { display: block; }
@keyframes v2hb { from { transform: scale(0.25); opacity: 1; } to { transform: scale(1); opacity: 0; } }
html[data-ui="2"] .v2-busmk .tag { position: absolute; left: 15px; top: -18px; transform: translateX(-50%); white-space: nowrap; font: 600 11px var(--f-ui); padding: 4px 9px; border-radius: 99px; background: #fff; color: #2b2245; box-shadow: 0 4px 12px rgba(3, 11, 17, 0.16); }
html[data-ui="2"] .v2-busmk.sel .tag { background: #2b2245; color: #fff; }
html[data-ui="2"] .v2-thd { margin-top: 14px; }
html[data-ui="2"] .v2-thd > small, html[data-ui="2"] .v2-thd .th small { display: block; font: 600 10.5px var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-sage-3); }
html[data-ui="2"] .v2-thd > b { display: block; font: 400 34px/1.02 'Owldid Talon', var(--f-ui); margin: 6px 0 8px; }
html[data-ui="2"] .v2-thd .th { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
html[data-ui="2"] .v2-thd .th b { display: block; font: 400 34px/1.02 'Owldid Talon', var(--f-ui); margin-top: 6px; }
html[data-ui="2"] .v2-thd .tstat { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: #2f4a36; }
html[data-ui="2"] .v2-thd .tstat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html[data-ui="2"] .v2-thd .tstat.off { color: var(--on-sage-3); }
html[data-ui="2"] .v2-thd .tin { text-align: right; flex: none; }
html[data-ui="2"] .v2-thd .tin b { font: 400 64px/0.9 'Owldid Talon', var(--f-ui); color: #2b2245; margin: 0; }
html[data-ui="2"] .v2-thd .tin small { letter-spacing: 0.04em; text-transform: none; font-size: 12.5px; }
html[data-ui="2"] .v2-thd .tbus { display: flex; gap: 12px; align-items: center; padding: 14px 0; margin-top: 14px; border-top: 1px solid var(--line-sage); border-bottom: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-thd .tpl { width: 44px; height: 44px; border-radius: 12px; background: #2b2245; color: #fff; display: grid; place-items: center; font: 400 15px 'Owldid Talon', var(--f-ui); flex: none; }
html[data-ui="2"] .v2-thd .tbus b { display: block; font-weight: 600; font-size: 15px; }
html[data-ui="2"] .v2-thd .tbus small { color: var(--on-sage-2); font-size: 13px; }
html[data-ui="2"] .v2-thd .tact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
html[data-ui="2"] .v2-thd .tact .v2-act { padding: 14px 10px; font-size: 14.5px; }
html[data-ui="2"] .v2-thd .tact .v2-act:only-child { grid-column: span 2; }
html[data-ui="2"] .v2-tsheet .bus-card .ring { font-family: 'Owldid Talon', var(--f-ui); }
html[data-ui="2"] .v2-tsheet .v2-thero { padding-bottom: 2px; }
@media (min-width: 861px) { html[data-ui="2"] .v2-tsheet { width: 400px; } }

/* ---------- the top bar: the school's name, and Messages in its own place ---------- */
html[data-ui="2"] .owl-fab { display: none !important; }
html[data-ui="2"] .v2-msg { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-sage); background: var(--sage-3); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, color 0.15s; }
html[data-ui="2"] .v2-msg .v2-ic { width: 21px; height: 21px; }
html[data-ui="2"] .v2-msg:hover { background: #f3eefc; border-color: #b9a6e6; color: #5d4b9c; }
html[data-ui="2"] .v2-msg.open, html[data-ui="2"] .v2-msg.on { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
html[data-ui="2"] .v2-badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #CD071E; color: #fff; font: 700 10.5px/19px var(--f-ui); text-align: center; display: none; box-shadow: 0 0 0 2px var(--v2-ground); }
html[data-ui="2"] .v2-badge.show { display: block; }
html[data-ui="2"] .owl-fab-panel { z-index: 92 !important; }
@media (min-width: 861px) {
  html[data-ui="2"] .owl-fab-panel { top: 82px !important; right: 32px !important; left: auto !important; bottom: auto !important; height: min(560px, calc(100vh - 110px)) !important; }
}
@media (max-width: 860px) {
  html[data-ui="2"] .v2-msg { width: 38px; height: 38px; }
  html[data-ui="2"] .v2-msg .v2-ic { width: 18px; height: 18px; }
  html[data-ui="2"] .owl-fab-panel { left: 8px !important; right: 8px !important; width: auto !important; top: calc(64px + env(safe-area-inset-top)) !important; bottom: calc(92px + env(safe-area-inset-bottom)) !important; height: auto !important; max-height: none !important; }
  html[data-ui="2"] .v2-school { display: flex; align-items: center; gap: 10px; }
  html[data-ui="2"] .v2-school img { width: 30px; height: auto; flex: none; }
  html[data-ui="2"] .v2-school span { display: flex; flex-direction: column; min-width: 0; }
  html[data-ui="2"] .v2-school b { font: 400 24px/1.05 var(--f-brand); font-synthesis: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
  html[data-ui="2"] .v2-school small { font: 10.5px/1.3 var(--f-mono); color: var(--on-sage-2); margin-top: 1px; }
  /* Today carries the name large below, so the bar keeps just the owl */
  html[data-ui="2"] body.v2-today .v2-school { visibility: visible; }
  html[data-ui="2"] body.v2-today .v2-school span { visibility: hidden; }
}
html[data-ui="2"] .v2-msg svg { width: 22px !important; height: 22px !important; stroke-width: 1.7; }
html[data-ui="2"] .v2-tmap .leaflet-top.leaflet-left { left: auto; right: 14px; top: 70px; }
html[data-ui="2"] .v2-tmap .leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 18px rgba(3, 11, 17, 0.16) !important; border-radius: 14px !important; overflow: hidden; }
html[data-ui="2"] .v2-tmap .leaflet-control-zoom a { width: 46px !important; height: 40px !important; line-height: 40px !important; color: #2b2245 !important; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-msg svg { width: 18px !important; height: 18px !important; }
  html[data-ui="2"] .v2-tmap .leaflet-control-zoom { display: none; }
}
html[data-ui="2"] .v2-tmap .leaflet-control-zoom a { background: #fff !important; border-color: rgba(3, 11, 17, 0.08) !important; }

/* ---------- round 5: the CodeSprout top on a phone, Messages in the middle ---------- */
html[data-ui="2"] .owl-v2-search, html[data-ui="2"] .app-menu a[href="/announcements"] { display: none !important; }
html[data-ui="2"] .v2-bar-msg { position: relative; text-decoration: none; }
html[data-ui="2"] .v2-bar-msg .v2-badge { top: -2px; right: -2px; box-shadow: 0 0 0 2px var(--v2-ground); }
html[data-ui="2"] .v2-bar-msg.on { box-shadow: 0 0 0 3px #b9a6e6, 0 10px 22px rgba(3, 11, 17, 0.3); }
@media (max-width: 860px) {
  html[data-ui="2"] .owl-v2-search { display: flex !important; font-weight: 700; }
  html[data-ui="2"] .app-menu a[href="/announcements"] { display: flex !important; }
  /* the phone's own status bar stays the phone's: nothing of ours near the island */
  html[data-ui="2"] .v2-top { position: absolute; inset: auto; top: calc(14px + env(safe-area-inset-top)); right: 16px; left: auto; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 50; }
  html[data-ui="2"] .v2-school, html[data-ui="2"] .v2-find { display: none !important; }
  html[data-ui="2"] .v2-tools .app-avatar { width: 40px; height: 40px; font-size: 13px; }
  html[data-ui="2"] .app-main { padding-top: calc(20px + env(safe-area-inset-top)); }
  html[data-ui="2"] .rental-banner { margin-top: 0; }
  html[data-ui="2"] .app-main > :first-child, html[data-ui="2"] .v2-view > .v2-phead > div:first-child { padding-right: 52px; }
  html[data-ui="2"] .v2-view .v2-phead .eyebrow { min-height: 40px; display: flex; align-items: center; }
  html[data-ui="2"] .v2-h1 { margin-top: 6px; }
  html[data-ui="2"] body.v2-searching .v2-tools .app-search { top: calc(64px + env(safe-area-inset-top)); }
  html[data-ui="2"] .app-menu { right: 0; }
}
/* Today on a phone: the school as a small wordmark, then the greeting (design 01) */
html[data-ui="2"] .v2-hello-m { display: none; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-hello-d { display: none; }
  html[data-ui="2"] .v2-hello-m { display: block; }
  html[data-ui="2"] .v2-hello-m .wm { font: 400 26px/40px var(--f-brand); font-synthesis: none; color: var(--navy); padding-right: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-ui="2"] .v2-hello-m h1 { font: 400 54px/1 'Owldid Talon', var(--f-ui); margin: 14px 0 4px; }
  html[data-ui="2"] .v2-hello-m .mono { font-size: 12.5px; color: var(--on-sage-2); }
}

/* ---------- Messages, the page ---------- */
html[data-ui="2"] .v2-cw { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 22px; align-items: start; }
html[data-ui="2"] .v2-new { padding: 11px 20px; border-radius: 99px; border: 1px solid var(--line-sage); background: var(--sage-3); font: 600 15px var(--f-ui); color: var(--navy); cursor: pointer; }
html[data-ui="2"] .v2-tabs { display: flex; gap: 22px; margin: 18px 0 6px; border-bottom: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-tabs button { border: 0; background: none; padding: 0 0 10px; font: 500 15px var(--f-ui); color: var(--on-sage-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
html[data-ui="2"] .v2-tabs button.on { color: var(--navy); border-color: var(--navy); }
html[data-ui="2"] .v2-chat { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; width: 100%; padding: 13px 8px; margin: 0 -8px; border: 0; border-top: 1px solid var(--line-sage); background: none; border-radius: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; box-sizing: content-box; }
html[data-ui="2"] .v2-chat:first-child, html[data-ui="2"] .metric-label + .v2-chat { border-top: 0; }
html[data-ui="2"] .v2-chat:hover, html[data-ui="2"] .v2-chat.sel { background: rgba(3, 11, 17, 0.04); border-radius: 14px; }
html[data-ui="2"] .v2-chat .mid { min-width: 0; }
html[data-ui="2"] .v2-chat b { display: block; font: 600 16px/1.25 var(--f-ui); }
html[data-ui="2"] .v2-chat small { display: block; font: 14px/1.35 var(--f-ui); color: var(--on-sage-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="2"] .v2-chat.unread small { color: var(--navy); font-weight: 500; }
html[data-ui="2"] .v2-chat .tm { text-align: right; font: 12px var(--f-mono); color: var(--on-sage-3); }
html[data-ui="2"] .v2-chat .tm i { display: block; margin: 5px 0 0 auto; width: max-content; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #5d4b9c; color: #fff; font: 700 11px/20px var(--f-ui); font-style: normal; text-align: center; }
html[data-ui="2"] .v2-cav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 11, 17, 0.07); font: 600 14px var(--f-ui); color: var(--navy); flex: none; }
html[data-ui="2"] .v2-cav.n { background: var(--navy); color: var(--sage); }
html[data-ui="2"] .v2-cav.l { background: #f3eefc; color: #5d4b9c; }
html[data-ui="2"] .v2-cp { position: sticky; top: 24px; height: calc(100vh - 120px); display: flex; flex-direction: column; background: var(--sage-3); border: 1px solid rgba(3, 11, 17, 0.07); border-radius: 26px; overflow: hidden; }
html[data-ui="2"] .v2-cempty { margin: auto; text-align: center; color: var(--on-sage-2); padding: 40px; }
html[data-ui="2"] .v2-th { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-th .who { min-width: 0; flex: 1; }
html[data-ui="2"] .v2-th .who b { display: block; font: 600 17px/1.2 var(--f-ui); }
html[data-ui="2"] .v2-th .who small { display: block; font: 12px var(--f-mono); color: var(--on-sage-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="2"] .v2-th .v2-cav { width: 42px; height: 42px; }
html[data-ui="2"] .v2-rb { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(3, 11, 17, 0.06); display: grid; place-items: center; cursor: pointer; color: var(--navy); flex: none; }
html[data-ui="2"] .v2-rb svg, html[data-ui="2"] .v2-compose .send svg, html[data-ui="2"] .v2-rule svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-ui="2"] .v2-th .v2-rb:first-child { display: none; }
html[data-ui="2"] .v2-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
html[data-ui="2"] .v2-day { align-self: center; font: 11.5px var(--f-mono); color: var(--on-sage-2); background: rgba(3, 11, 17, 0.05); padding: 4px 11px; border-radius: 99px; margin: 8px 0; }
html[data-ui="2"] .v2-bub { max-width: 76%; padding: 11px 15px; border-radius: 20px; font: 15px/1.42 var(--f-ui); white-space: pre-wrap; word-wrap: break-word; }
html[data-ui="2"] .v2-bub.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 2px 6px rgba(3, 11, 17, 0.05); }
html[data-ui="2"] .v2-bub.us { align-self: flex-end; background: var(--navy); color: #e4ece4; border-bottom-right-radius: 6px; }
html[data-ui="2"] .v2-bub em { display: block; font: 600 12px var(--f-ui); font-style: normal; color: #5d4b9c; margin-bottom: 2px; }
html[data-ui="2"] .v2-bub small { display: block; font: 10.5px var(--f-mono); opacity: 0.6; margin-top: 4px; text-align: right; }
html[data-ui="2"] .v2-compose { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line-sage); }
html[data-ui="2"] .v2-compose textarea, html[data-ui="2"] .v2-compose input { flex: 1; min-height: 50px; max-height: 120px; padding: 14px 18px; border-radius: 26px; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(3, 11, 17, 0.06); font: 15.5px var(--f-ui); color: var(--navy); outline: 0; resize: none; }
html[data-ui="2"] .v2-compose .send { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--navy); color: var(--sage); display: grid; place-items: center; cursor: pointer; flex: none; }
html[data-ui="2"] .v2-compose .send:disabled { opacity: 0.35; }
html[data-ui="2"] .v2-start { flex-direction: column; align-items: stretch; }
html[data-ui="2"] .v2-who { flex: 1; overflow-y: auto; padding: 8px 18px; }
html[data-ui="2"] .v2-who .metric-label { display: block; margin: 14px 0 2px; }
html[data-ui="2"] .v2-pick .ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(3, 11, 17, 0.25); }
html[data-ui="2"] .v2-pick .ck.y { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--sage-3); }
html[data-ui="2"] .v2-rule { display: flex; gap: 10px; margin: 6px 16px 4px; padding: 12px 14px; border-radius: 16px; background: rgba(3, 11, 17, 0.04); font: 12.5px/1.45 var(--f-ui); color: var(--on-sage-2); }
html[data-ui="2"] .v2-rule svg { flex: none; color: #5d4b9c; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-cw { display: block; }
  html[data-ui="2"] .v2-chat { padding: 13px 0; margin: 0; box-sizing: border-box; }
  html[data-ui="2"] .v2-chat:hover, html[data-ui="2"] .v2-chat.sel { background: none; }
  /* the conversation takes the whole phone; the bars step aside */
  html[data-ui="2"] .v2-cp { display: none; position: fixed; inset: 0; z-index: 80; height: auto; border-radius: 0; border: 0; background: var(--v2-ground); padding-top: env(safe-area-inset-top); }
  html[data-ui="2"] body.v2-convo .v2-cp { display: flex; }
  html[data-ui="2"] body.v2-convo .v2-bar, html[data-ui="2"] body.v2-convo .v2-top { display: none !important; }
  html[data-ui="2"] .v2-th { padding-top: 16px; }
  html[data-ui="2"] .v2-th .v2-rb:first-child { display: grid; }
  html[data-ui="2"] .v2-compose { border-top: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  html[data-ui="2"] .v2-bar a.v2-bar-plus { display: grid; place-items: center; gap: 0; padding: 0; justify-self: center; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 4px solid var(--v2-ground); background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 22px rgba(3, 11, 17, 0.3); }
  html[data-ui="2"] .v2-bar a.v2-bar-plus .v2-ic { width: 22px; height: 22px; stroke-width: 1.8; }
  html[data-ui="2"] .v2-cl .v2-phead { flex-wrap: nowrap; align-items: flex-end; }
  html[data-ui="2"] .v2-cl .v2-phead > div:first-child { padding-right: 0; }
  html[data-ui="2"] .v2-cl .v2-phead .eyebrow { padding-right: 52px; }
  html[data-ui="2"] .v2-cl .v2-pact { width: auto !important; margin-bottom: 10px; }
  html[data-ui="2"] .v2-cl .v2-pact > * { flex: none !important; padding: 10px 18px !important; }
}
@media (max-width: 860px) { html[data-ui="2"] .v2-bar a.v2-bar-plus.on { box-shadow: 0 0 0 3px #b9a6e6, 0 10px 22px rgba(3, 11, 17, 0.3); } }

/* ======================================================================
   v3 · the phone, elevated (2026-11-14). Centred spine on every screen:
   mono eyebrow → Owldid Talon title in capitals → the one big number →
   two actions side by side. Floating centred pill tab bar. Navy is the
   only accent; red only for money owed. Phone only — the laptop is as is.
   ====================================================================== */
html[data-ui="2"] .v3-today { display: none; }
@media (max-width: 860px) {
  /* the page head: centred, Talon caps, no scene band */
  html[data-ui="2"] .v2-phead { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  html[data-ui="2"] .v2-phead .eyebrow { text-align: center; }
  html[data-ui="2"] .v2-h1 { font-family: 'Owldid Talon', Talon, sans-serif !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em; font-size: 40px !important; line-height: .95 !important; text-align: center; }
  html[data-ui="2"] .v2-h1 em { font-family: inherit !important; font-style: normal !important; }
  html[data-ui="2"] .v2-pact { justify-content: center; width: 100%; }
  html[data-ui="2"] .v2-art { display: none !important; }
  html[data-ui="2"] .v2-sub { text-align: center; margin-left: auto; margin-right: auto; max-width: 320px; }
  html[data-ui="2"] .v2-chips { justify-content: safe center; }
  /* keep the round-5 top (profile circle top-right); centre the head between equal gutters */
  html[data-ui="2"] .app-main > :first-child { padding-right: 0; }
  html[data-ui="2"] .v2-view > .v2-phead > div:first-child { padding-left: 50px; padding-right: 50px; }
  html[data-ui="2"] .v2-view .v2-phead .eyebrow { justify-content: center; font: 400 11px 'Fragment Mono', monospace !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; line-height: 40px; }
  html[data-ui="2"] .v3-today .v3-eye { padding: 0 60px; line-height: 40px; margin-top: -18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-ui="2"] .v2-view > .v2-phead > div:first-child { width: 100%; }
  /* the floating, centred pill tab bar */
  html[data-ui="2"] .v2-bar { left: 50% !important; right: auto !important; bottom: 22px !important; transform: translateX(-50%); width: auto !important; height: 66px !important; padding: 0 9px !important; border-radius: 999px !important; background: rgba(247,249,246,.88) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 34px -16px rgba(3,11,17,.45), inset 0 0 0 1px rgba(255,255,255,.7) !important; border: 0 !important; display: flex !important; align-items: center; gap: 2px; }
  html[data-ui="2"] .v2-bar > a, html[data-ui="2"] .v2-bar > button { height: 48px !important; min-width: 48px; width: auto !important; flex: none !important; border-radius: 999px !important; display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; padding: 0 12px !important; margin: 0 !important; background: transparent !important; color: #3e4943 !important; box-shadow: none !important; position: relative; }
  html[data-ui="2"] .v2-bar > a span:not(.v2-badge) { display: none; font: 600 13px Inter, sans-serif; }
  html[data-ui="2"] .v2-bar > a.on { background: var(--navy) !important; color: #e7eee6 !important; padding: 0 18px !important; }
  html[data-ui="2"] .v2-bar > a.on span:not(.v2-badge) { display: inline; }
  html[data-ui="2"] .v2-bar .v2-ic { width: 21px !important; height: 21px !important; stroke: currentColor !important; }
  html[data-ui="2"] .v2-bar .v2-badge { position: absolute; top: 6px; right: 6px; }

  /* shared v3 pieces */
  html[data-ui="2"] .v3-eye { font: 400 11px 'Fragment Mono', monospace; color: #7b867f; text-align: center; letter-spacing: .03em; }
  html[data-ui="2"] .v3-h1 { font: 400 40px/.95 'Owldid Talon', Talon, sans-serif; text-transform: uppercase; letter-spacing: .01em; text-align: center; margin: 6px 0 0; color: var(--navy); }
  html[data-ui="2"] .v3-lbl { font: 400 10.5px 'Fragment Mono', monospace; color: #7b867f; letter-spacing: .02em; }
  html[data-ui="2"] .v3-red { color: #b8412f !important; }
  html[data-ui="2"] .v3-card { background: rgba(247,249,246,.92); border-radius: 26px; padding: 6px 20px; }
  html[data-ui="2"] .v3-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e3e9e2; }
  html[data-ui="2"] .v3-row:last-child { border: 0; }
  html[data-ui="2"] .v3-av { width: 40px; height: 40px; border-radius: 50%; background: #e9efe8; display: flex; align-items: center; justify-content: center; font: 600 13px Inter, sans-serif; flex: none; color: var(--navy); }
  html[data-ui="2"] .v3-av-d { background: var(--navy); color: #e7eee6; }
  html[data-ui="2"] .v3-who b { display: block; font: 600 14.5px Inter, sans-serif; color: var(--navy); }
  html[data-ui="2"] .v3-who small { display: block; font-size: 12px; color: #7b867f; margin-top: 2px; }
  html[data-ui="2"] .v3-pills { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
  html[data-ui="2"] .v3-pill { flex: 1; max-width: 200px; text-align: center; border-radius: 999px; padding: 14px 18px; font: 600 14.5px Inter, sans-serif; text-decoration: none; white-space: nowrap; }
  html[data-ui="2"] .v3-pill.d { background: var(--navy); color: #e7eee6; }
  html[data-ui="2"] .v3-pill.l { background: #fff; color: var(--navy); }
  html[data-ui="2"] .v3-trio { display: flex; justify-content: center; align-items: stretch; margin-top: 22px; }
  html[data-ui="2"] .v3-trio > * { flex: 1; text-align: center; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 6px; position: relative; }
  html[data-ui="2"] .v3-trio > * + *::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: #cfd8ce; }
  html[data-ui="2"] .v3-trio b { font: 400 34px/1 'Owldid Talon', Talon, sans-serif; }
  html[data-ui="2"] .v3-trio b small { font-size: 18px; }

  /* Today */
  html[data-ui="2"] .v3-today { display: block; padding-top: 18px; }
  html[data-ui="2"] body.v2-today .v2-hello-m, html[data-ui="2"] body.v2-today .v2-dash > .card { display: none !important; }
  html[data-ui="2"] body.v2-today .v2-dash { margin-top: 26px; }
  html[data-ui="2"] .v3-ring { display: block; position: relative; width: 212px; height: 212px; margin: 20px auto 0; text-decoration: none; color: var(--navy); }
  html[data-ui="2"] .v3-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  html[data-ui="2"] .v3-ring .tr { fill: none; stroke: #cdd8cc; stroke-width: 10; }
  html[data-ui="2"] .v3-ring .pr { fill: none; stroke: var(--navy); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
  html[data-ui="2"] .v3-ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  html[data-ui="2"] .v3-big { font: 400 48px/1 'Owldid Talon', Talon, sans-serif; }
  html[data-ui="2"] .v3-note { font-size: 12.5px; color: #7b867f; }
  html[data-ui="2"] .v3-note b { color: var(--navy); }
  html[data-ui="2"] .v3-today .v3-list { margin-top: 22px; }
}
html[data-ui="2"] .v3-mhero { display: none; }
@media (max-width: 860px) {
  /* Money: one big collected figure, its line, owed and today, then the two actions */
  html[data-ui="2"] .v3-mhero { display: block; text-align: center; margin: 18px 0 18px; }
  html[data-ui="2"] .v2-phead:has(+ .v3-mhero) .v2-pact, html[data-ui="2"] .v3-mhero ~ .v2-tline, html[data-ui="2"] .v3-mhero ~ .v2-mfigs { display: none !important; }
  html[data-ui="2"] .v3-huge { display: block; font: 400 64px/1 'Owldid Talon', Talon, sans-serif; color: var(--navy); margin-top: 4px; }
  html[data-ui="2"] .v3-bar { width: 220px; height: 6px; border-radius: 99px; background: #d0dacf; margin: 14px auto 8px; overflow: hidden; }
  html[data-ui="2"] .v3-bar i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 99px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
  html[data-ui="2"] .v3-mhero .v3-trio { margin-top: 18px; }
  html[data-ui="2"] .v3-mhero .v3-trio button { background: none; border: 0; cursor: pointer; padding: 0; }
  html[data-ui="2"] .v3-mhero .v3-pill { border: 0; cursor: pointer; }
  html[data-ui="2"] .v2-mtiles { gap: 10px !important; }
  html[data-ui="2"] .v2-mtile { text-align: center !important; align-items: center !important; border-radius: 22px !important; }
  html[data-ui="2"] .v2-mtile .v2-ic { margin: 0 auto 6px !important; }
}

/* ---------- v3 register: a list with Present · Late · Absent (phone and laptop) ---------- */
html[data-ui="2"] .v3-rtrio { display: flex; justify-content: center; margin: 18px 0 14px; }
html[data-ui="2"] .v3-rtrio > div { flex: 1; max-width: 160px; text-align: center; position: relative; }
html[data-ui="2"] .v3-rtrio > div + div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: #cfd8ce; }
html[data-ui="2"] .v3-rtrio b { display: block; font: 400 36px/1 'Owldid Talon', Talon, sans-serif; color: var(--navy); }
html[data-ui="2"] .v3-rtrio b.late { color: #9a6a1f; } html[data-ui="2"] .v3-rtrio b.away { color: #b8412f; }
html[data-ui="2"] .v3-rtrio span { display: block; margin-top: 6px; font: 400 10.5px 'Fragment Mono', monospace; color: #7b867f; }
html[data-ui="2"] .v3-rtools { display: flex; gap: 8px; margin-bottom: 10px; }
html[data-ui="2"] .v3-find { flex: 1; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.72); border-radius: 999px; padding: 0 18px; height: 48px; }
html[data-ui="2"] .v3-find svg { width: 17px; height: 17px; stroke: #7b867f; fill: none; stroke-width: 1.8; stroke-linecap: round; flex: none; }
html[data-ui="2"] .v3-find input { flex: 1; border: 0; background: none; outline: 0; font: 400 15px Inter, sans-serif; color: var(--navy); min-width: 0; }
html[data-ui="2"] .v3-date { display: flex; align-items: center; background: rgba(255,255,255,.72); border-radius: 999px; padding: 0 12px; height: 48px; }
html[data-ui="2"] .v3-date input { border: 0; background: none; font: 500 13px Inter, sans-serif; color: var(--navy); width: 118px; }
html[data-ui="2"] .v3-rlist { background: rgba(247,249,246,.92); border-radius: 26px; padding: 2px 14px; }
html[data-ui="2"] .v3-rrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e3e9e2; }
html[data-ui="2"] .v3-rrow:last-child { border: 0; }
html[data-ui="2"] .v3-rrow[hidden] { display: none; }
html[data-ui="2"] .v3-rav { width: 38px; height: 38px; border-radius: 50%; background: #e9efe8; display: flex; align-items: center; justify-content: center; font: 600 12px Inter, sans-serif; color: var(--navy); flex: none; }
html[data-ui="2"] .v3-rwho { flex: 1; min-width: 0; }
html[data-ui="2"] .v3-rwho b { display: block; font: 600 14.5px Inter, sans-serif; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="2"] .v3-rwho small { display: block; font: 400 12px Inter, sans-serif; color: #7b867f; margin-top: 1px; }
html[data-ui="2"] .v3-st { display: flex; background: #eef2ed; border-radius: 999px; padding: 3px; gap: 1px; flex: none; }
html[data-ui="2"] .v3-st button { border: 0; background: none; font: 500 11.5px Inter, sans-serif; color: #7b867f; padding: 7px 9px; border-radius: 999px; cursor: pointer; }
html[data-ui="2"] .v3-st button.on.present { background: var(--navy); color: #e7eee6; }
html[data-ui="2"] .v3-st button.on.late { background: #f3e3cf; color: #8a5a20; }
html[data-ui="2"] .v3-st button.on.absent { background: #f5e4df; color: #b8412f; }
html[data-ui="2"] .v3-rsave { position: sticky; bottom: 104px; display: flex; gap: 10px; margin: 16px 0 26px; z-index: 5; }
html[data-ui="2"] .v3-rsave .v3-pill { flex: 1; border: 0; cursor: pointer; border-radius: 999px; padding: 15px 18px; font: 600 14.5px Inter, sans-serif; white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(3,11,17,.5); }
html[data-ui="2"] .v3-rsave .v3-pill.d { flex: 1.3; background: var(--navy); color: #e7eee6; }
html[data-ui="2"] .v3-rsave .v3-pill.l { background: #fff; color: var(--navy); }
html[data-ui="2"] .v3-rsave .v3-pill:disabled { opacity: .55; }
@media (min-width: 861px) { html[data-ui="2"] .v3-rsave { bottom: 20px; max-width: 520px; } html[data-ui="2"] .v3-rlist { max-width: 820px; } html[data-ui="2"] .v3-rtools { max-width: 820px; } }
@media (max-width: 860px) {
  html[data-ui="2"] .v3-date { padding: 0 10px; flex: none; }
  html[data-ui="2"] .v3-date input { width: 104px; font-size: 12.5px; }
  html[data-ui="2"] .v2-bar .v2-bar-msg, html[data-ui="2"] .v2-bar .v2-bar-msg.on { box-shadow: none !important; border: 0 !important; background: transparent !important; }
  html[data-ui="2"] .v2-bar .v2-bar-msg.on { background: var(--navy) !important; color: #e7eee6 !important; }
}
/* v3 map: a quiet sage map so the route, stops and bus are what you see.
   The street tiles fade back to faint white roads on sage; labels go soft. */
html[data-ui="2"] .v2-tmap .map-frame { border: 0 !important; background: #e3eae1 !important; }
html[data-ui="2"] .v2-tmap #map { background: #e3eae1 !important; }
html[data-ui="2"] .v2-tmap .leaflet-tile-pane { filter: grayscale(1) contrast(.62) brightness(1.16) !important; opacity: .5; mix-blend-mode: multiply; }
html[data-ui="2"] .v2-tmap .leaflet-overlay-pane path.leaflet-interactive { stroke: #030b11; }
html[data-ui="2"] .v2-tmap .bus-pin { background: #030b11 !important; box-shadow: 0 0 0 7px rgba(3, 11, 17, 0.1), 0 6px 14px rgba(3, 11, 17, 0.25) !important; }
html[data-ui="2"] .v2-tmap .leaflet-control-attribution { background: transparent !important; color: #9aa59d !important; font-size: 9px !important; }
html[data-ui="2"] .v2-tmap .leaflet-control-attribution a { color: #9aa59d !important; }
/* Money · who owes: no button in the list. "Remind who owes" (the tile) opens
   the same message window, which offers Buy coins when the school is short. */
html[data-ui="2"] #mv2-coins { display: none !important; }

/* Money on a phone: Payments and Invoices as cards, not wide tables */
@media (max-width: 860px) {
  html[data-ui="2"] .v2-mpane .card { background: none !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
  html[data-ui="2"] .v2-mpane .card > .spread { flex-wrap: wrap; gap: 8px; margin-bottom: 10px !important; }
  html[data-ui="2"] .v2-mpane .card > .spread .form-input { max-width: none !important; width: 100%; border-radius: 999px; }
  html[data-ui="2"] .v2-mpane table.tbl, html[data-ui="2"] .v2-mpane table.tbl tbody { display: block; width: 100%; min-width: 0 !important; }
  html[data-ui="2"] .v2-mpane .card { overflow: visible !important; }
  html[data-ui="2"] .v2-mpane table.tbl thead { display: none; }
  html[data-ui="2"] .v2-mpane table.tbl tr { display: flex !important; flex-wrap: wrap; align-items: baseline; background: rgba(247,249,246,.92) !important; border: 0 !important; border-radius: 20px; padding: 14px 16px !important; margin-bottom: 8px; column-gap: 8px; row-gap: 4px; box-shadow: none !important; }
  html[data-ui="2"] .v2-mpane table.tbl td { display: block !important; padding: 0 !important; margin: 0 !important; border: 0 !important; min-width: 0; text-align: left !important; white-space: normal !important; font-size: 12px; color: #7b867f; }
  html[data-ui="2"] .v2-mpane table.tbl td::before { content: none !important; display: none !important; }
  html[data-ui="2"] .v2-mpane table.tbl td[colspan] { flex: 1 1 100%; text-align: center !important; }
  html[data-ui="2"] .v2-mpane table.tbl td .ksh { display: none; }
  /* payments: who · amount / date · channel · reference / receipt buttons */
  html[data-ui="2"] #pay-rows td:nth-child(2) { order: 1; flex: 1 1 0; font: 600 14.5px Inter, sans-serif; color: var(--navy); }
  html[data-ui="2"] #pay-rows td:nth-child(5) { order: 2; flex: none; font: 400 24px/1 'Owldid Talon', Talon, sans-serif; color: var(--navy); }
  html[data-ui="2"] #pay-rows td:nth-child(1) { order: 3; flex-basis: 100%; height: 0; overflow: hidden; }
  html[data-ui="2"] #pay-rows td:nth-child(1) { order: 4; flex-basis: auto; height: auto; }
  html[data-ui="2"] #pay-rows td:nth-child(3) { order: 5; }
  html[data-ui="2"] #pay-rows td:nth-child(3)::before, html[data-ui="2"] #pay-rows td:nth-child(4)::before { content: "· " !important; display: inline !important; }
  html[data-ui="2"] #pay-rows td:nth-child(4) { order: 6; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; }
  html[data-ui="2"] #pay-rows td:nth-child(n+6) { order: 7; flex: 1 1 100%; display: flex !important; gap: 6px; flex-wrap: wrap; margin-top: 8px !important; }
  html[data-ui="2"] #pay-rows td:nth-child(n+6):empty { display: none !important; }
  /* invoices: pupil · status / category / billed · paid · remind */
  html[data-ui="2"] #inv-rows td:nth-child(1) { order: 1; flex: 1 1 0; font: 600 14.5px Inter, sans-serif; color: var(--navy); }
  html[data-ui="2"] #inv-rows td:nth-child(5) { order: 2; flex: none; }
  html[data-ui="2"] #inv-rows td:nth-child(2) { order: 3; flex: 1 1 100%; }
  html[data-ui="2"] #inv-rows td:nth-child(3) { order: 4; font: 400 22px/1 'Owldid Talon', Talon, sans-serif; color: var(--navy); margin-top: 6px !important; }
  html[data-ui="2"] #inv-rows td:nth-child(4) { order: 5; flex: 1 1 0; font: 400 22px/1 'Owldid Talon', Talon, sans-serif; color: var(--navy); margin-top: 6px !important; }
  html[data-ui="2"] #inv-rows td:nth-child(3)::before { content: "billed " !important; display: inline !important; font: 400 10.5px 'Fragment Mono', monospace; color: #7b867f; }
  html[data-ui="2"] #inv-rows td:nth-child(4)::before { content: "· paid " !important; display: inline !important; font: 400 10.5px 'Fragment Mono', monospace; color: #7b867f; }
  html[data-ui="2"] #inv-rows td:nth-child(6) { order: 6; flex: none; align-self: center; }
  html[data-ui="2"] #inv-rows td:nth-child(6):empty { display: none !important; }
}

@media (max-width: 860px) {
  /* payments: break after who · amount so the date line sits underneath */
  html[data-ui="2"] #pay-rows tr::before { content: ""; order: 3; flex-basis: 100%; height: 0; }
  html[data-ui="2"] #pay-rows td:nth-child(1) { order: 4 !important; flex-basis: auto !important; height: auto !important; }
  /* no small eyebrow words above the titles on a phone */
  html[data-ui="2"] .v2-phead .eyebrow, html[data-ui="2"] .v3-eye, html[data-ui="2"] .v2-hello-m .mono { display: none !important; }
  html[data-ui="2"] .v2-phead { padding-top: 6px; }
  html[data-ui="2"] .v2-h1, html[data-ui="2"] .v3-h1 { margin-top: 2px !important; padding: 0 50px; }
}
@media (max-width: 860px) {
  html[data-ui="2"] .v2-view .v2-phead .eyebrow { display: none !important; }
  html[data-ui="2"] .v3-rtools { width: 100%; }
  html[data-ui="2"] .v3-find { min-width: 0; }
  html[data-ui="2"] .v3-date input { width: 96px; }
}

/* v3 profile: the navy circle with a person outline (the mockup's people
   icon) instead of initials — no green dot. */
html[data-ui="2"] .v2-tools .app-avatar { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7eee6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.6' r='3.6'/%3E%3Cpath d='M4.8 20c.9-3.9 3.8-6.1 7.2-6.1s6.3 2.2 7.2 6.1'/%3E%3C/svg%3E") center / 23px 23px no-repeat !important; color: transparent !important; font-size: 0 !important; border: 0 !important; box-shadow: 0 6px 16px -10px rgba(3,11,17,.5) !important; }
html[data-ui="2"] .v2-tools .app-avatar::after { display: none !important; }
html[data-ui="2"] .v2-tools .app-avatar:hover { transform: none; }

/* v3: on a phone the profile leaves the top of every screen and becomes the
   first card in More; it opens the account menu as a sheet. */
html[data-ui="2"] .v3-me { display: none; }
@media (max-width: 860px) {
  html[data-ui="2"] .v2-tools .app-avatar { display: none !important; }
  html[data-ui="2"] .v2-view > .v2-phead > div:first-child, html[data-ui="2"] .v2-h1, html[data-ui="2"] .v3-h1 { padding-left: 0 !important; padding-right: 0 !important; }
  html[data-ui="2"] .v3-me { display: flex; align-items: center; gap: 14px; width: 100%; margin: 18px 0 6px; padding: 16px 18px; border: 0; border-radius: 24px; background: rgba(247,249,246,.92); text-align: left; cursor: pointer; color: var(--navy); }
  html[data-ui="2"] .v3-me-ic { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7eee6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.6' r='3.6'/%3E%3Cpath d='M4.8 20c.9-3.9 3.8-6.1 7.2-6.1s6.3 2.2 7.2 6.1'/%3E%3C/svg%3E") center / 26px 26px no-repeat; }
  html[data-ui="2"] .v3-me-t { flex: 1; min-width: 0; }
  html[data-ui="2"] .v3-me-t b { display: block; font: 600 16px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-ui="2"] .v3-me-t small { display: block; font-size: 12.5px; color: #7b867f; margin-top: 2px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-ui="2"] .v3-me-go { width: 18px; height: 18px; stroke: #7b867f; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
}
html[data-ui="2"] .app-menu.v3-in-sheet { display: flex !important; flex-direction: column; position: static !important; inset: auto !important; transform: none !important; opacity: 1 !important; visibility: visible !important; box-shadow: none !important; background: none !important; border: 0 !important; width: auto !important; max-height: none !important; padding: 8px 0 0 !important; }
html[data-ui="2"] .app-menu.v3-in-sheet > a, html[data-ui="2"] .app-menu.v3-in-sheet > button { display: flex !important; padding: 14px 6px !important; font: 500 15px Inter, sans-serif !important; border-bottom: 1px solid #e3e9e2 !important; border-radius: 0 !important; background: none !important; text-align: left; }
html[data-ui="2"] .app-menu.v3-in-sheet .who { padding: 0 6px 10px !important; }
html[data-ui="2"] .app-menu.v3-in-sheet .who .name { font: 400 30px 'Owldid Talon', Talon, sans-serif !important; text-transform: uppercase; }
