/* Screen-specific styles. */

/* auth */
.auth-hero {
  background: var(--brand); color: var(--brand-ink);
  padding: calc(1.6rem + env(safe-area-inset-top, 0px)) max(1.3rem, env(safe-area-inset-right, 0px)) 1.5rem max(1.3rem, env(safe-area-inset-left, 0px));
  border-radius: 0 0 30px 30px; display: flex; flex-direction: column; gap: .35rem;
  background-image: radial-gradient(circle at 110% -10%, transparent 0 30%, var(--hero-line) 30% 30.7%, transparent 30.7% 40%, var(--hero-line) 40% 40.7%, transparent 40.7% 50%, var(--hero-line) 50% 50.7%, transparent 50.7%);
}
.auth-hero h1 { font-size: 2.4rem; font-weight: 800; margin-top: .3rem; }
.auth-hero p { opacity: .92; font-weight: 500; }
.auth-hero .mark { width: 3.5rem; height: 3.5rem; }
.auth-wrap { max-width: 30rem; width: 100%; margin: 0 auto; }
.steps { display: flex; gap: .35rem; }
.steps i { flex: 1; height: .35rem; border-radius: 9px; background: var(--line); }
.steps i.d { background: var(--brand); }
.review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; font-size: .92rem; }
.review dt { color: var(--ink-2); font-weight: 600; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.code-box { font-family: var(--mono); font-size: 1.55rem; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 1rem; border-radius: 16px; border: 2px dashed var(--brand); background: var(--surface); user-select: all; }

/* PIN */
.pin-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding-top: 1.5rem; }
.dots { display: flex; gap: 1.1rem; justify-content: center; margin: .3rem 0; }
.dots i { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--brand); }
.dots i.f { background: var(--brand); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; max-width: 17rem; }
.key { height: 3.6rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-family: var(--display); font-size: 1.5rem; font-weight: 600; display: grid; place-items: center; }
.key.soft { background: transparent; border-color: transparent; color: var(--ink-2); }
.key:active { background: var(--surface-2); }

/* overview */
.school-hero {
  background: var(--brand); color: var(--brand-ink); border-radius: var(--r-hero); padding: 1.1rem;
  display: flex; gap: .9rem; align-items: center;
  background-image: radial-gradient(circle at 108% -12%, transparent 0 30%, var(--hero-line) 30% 30.7%, transparent 30.7% 39%, var(--hero-line) 39% 39.7%, transparent 39.7%);
}
.school-hero .logo { width: 3.6rem; height: 3.6rem; border-radius: 16px; background: var(--hero-tile); display: grid; place-items: center; overflow: hidden; flex: none; }
.school-hero .logo img { width: 100%; height: 100%; object-fit: cover; }
.school-hero h2 { font-size: 1.4rem; }
.school-hero small { opacity: .88; font-weight: 500; }
.activity time { font-size: .78rem; color: var(--ink-2); white-space: nowrap; }

/* header bell */
.icon-btn.bell { position: relative; color: var(--ink); text-decoration: none; }
.icon-btn.bell b { position: absolute; top: -4px; right: -4px; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px; background: var(--bad); color: var(--surface); font-size: .7rem; display: grid; place-items: center; border: 2px solid var(--bg); }

/* notifications */
.notif.unread b { font-weight: 800; }
.notif.unread { position: relative; }
.notif .grow small { margin-top: .1rem; }

/* attendance marking */
.abar { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; position: sticky; top: 4.4rem; z-index: 5; background: var(--bg); padding: .3rem 0; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .45rem; }
.stu { position: relative; border-radius: 14px; padding: .55rem .25rem .45rem; text-align: center; background: var(--ok-soft); border: 1.5px solid transparent; display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .85rem; min-width: 0; color: var(--ink); }
.stu .avatar { width: 2.2rem; height: 2.2rem; background: var(--surface); color: var(--ok); font-size: .95rem; }
.stu b { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu small { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stu.a { background: var(--bad); color: var(--surface); }
.stu.a .avatar { color: var(--bad); }
.stu.a small { color: var(--surface); }
.stu.l { background: var(--warn-soft); border-color: var(--warn); }
.stu.l .avatar { color: var(--warn); }
.stu[disabled] { cursor: default; }
.stu .dot { position: absolute; top: .4rem; right: .4rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--info); }
.foot { position: sticky; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); z-index: 6; padding: .6rem 0 .2rem; background: linear-gradient(to bottom, transparent, var(--bg) 35%); }

/* heatmap */
.hm { display: flex; flex-direction: column; gap: 5px; }
.hm-row, .hm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hm .dow { text-align: center; font-size: .72rem; color: var(--ink-2); font-weight: 700; }
.hm-grid span { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 9px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-grid .p { background: var(--ok-soft); color: var(--ok); }
.hm-grid .a { background: var(--bad); color: var(--surface); }
.hm-grid .l { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn); }
.hm-grid .n { background: var(--surface-2); color: var(--ink-2); }
.hm-grid .f, .hm-grid .x { color: var(--ink-2); opacity: .5; }
.hm-grid .t { outline: 2.5px solid var(--brand); outline-offset: 1px; }
.hm-grid i { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--info); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .78rem; color: var(--ink-2); margin-top: .7rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: .85rem; height: .85rem; border-radius: 3px; display: inline-block; }
.legend .lp { background: var(--ok-soft); } .legend .ll { background: var(--warn-soft); box-shadow: inset 0 0 0 2px var(--warn); } .legend .la { background: var(--bad); } .legend .ln { background: var(--surface-2); }

/* photos */
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.thumb { position: relative; width: 5.2rem; height: 5.2rem; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.add { border: 1.5px dashed var(--brand); color: var(--brand); font-size: .72rem; font-weight: 700; text-align: center; cursor: pointer; flex-direction: column; gap: .2rem; padding: .3rem; display: flex; align-items: center; justify-content: center; }
.thumb.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumb-x { position: absolute; top: 3px; right: 3px; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.thumb-x .i { width: .9rem; height: .9rem; }
.viewer { width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 12px; background: var(--surface-2); }

/* insight */
.insight { background: var(--mari-soft); border-radius: 22px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; color: var(--ink); }
.insight.up { background: var(--ok-soft); }
.ins-k { display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.insight.up .ins-k { color: var(--ok); }
.bub { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--mari); color: var(--mari-ink); display: grid; place-items: center; }
.insight.up .bub { background: var(--ok); color: var(--surface); }
.spark { width: 100%; height: 42px; display: block; }
.spk { fill: none; stroke: var(--warn); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.insight.up .spk { stroke: var(--ok); }
.spk-d { fill: var(--warn); } .insight.up .spk-d { fill: var(--ok); }

/* chart */
.chart { width: 100%; height: auto; display: block; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-lab { fill: var(--ink-2); font-size: 10px; font-family: var(--body); }
.c-me { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.c-avg { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 4 4; }
.c-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; }
.c-end { font-size: 11.5px; font-weight: 700; font-family: var(--body); }
.c-end.me { fill: var(--brand); } .c-end.avg { fill: var(--ink-2); }
.ckey { display: flex; gap: 1rem; font-size: .8rem; color: var(--ink-2); margin-top: .3rem; }
.ckey span { display: inline-flex; align-items: center; gap: .35rem; }
.ckey i { width: 1.4rem; height: 0; border-top: 2.6px solid var(--brand); }
.ckey i.d { border-top: 2px dashed var(--ink-2); }
.chart-names { margin: .5rem 0 0; padding-left: 1.3rem; font-size: .8rem; color: var(--ink-2); columns: 2; }
.marks-in { max-width: 6rem; min-height: 2.5rem; text-align: center; font-variant-numeric: tabular-nums; }

/* fees */
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: .6rem; border-top: 1px dashed var(--line); }
.total-row b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.chips-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.receipt-no { display: flex; flex-direction: column; margin: .3rem 0 .8rem; }
.receipt-no small { color: var(--ink-2); font-weight: 600; font-size: .8rem; }
.receipt-no b { font-family: var(--mono); font-size: 1.15rem; }
a.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* messages */
.chat { display: flex; flex-direction: column; gap: .5rem; padding-bottom: 5rem; }
.bubble { max-width: 85%; padding: .6rem .85rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: transparent; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble small { font-size: .74rem; opacity: .8; text-align: right; }
.bubble.deleted { opacity: .7; }
.link-sm { color: inherit; text-decoration: underline; font-size: inherit; font-weight: 700; }
.composer { position: sticky; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); z-index: 6; display: flex; gap: .5rem; align-items: flex-start; background: var(--bg); padding: .5rem 0; }
.composer textarea { min-height: 3rem; resize: none; }
.count-badge { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; }
.unread-text { color: var(--ink) !important; font-weight: 700; }

/* timetable */
.tt-time { width: 3.4rem; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.tt-time small { color: var(--ink-2); font-weight: 500; }
.today-card { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.tt-cell { margin-top: .5rem; }
.bell-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: start; }
.bell-row b { padding-top: .8rem; }

/* calendar */
.cal-grid span { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: .85rem; font-weight: 600; background: var(--surface-2); }
.cal-grid span:empty { background: transparent; }
.cal-grid span.hol { background: var(--bad-soft); color: var(--bad); }
.cal-grid em { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal-grid em i, .legend i[class^="k-"] { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.legend i[class^="k-"] { width: .7rem; height: .7rem; }
.k-holiday { background: var(--bad); } .k-event { background: var(--ok); } .k-ptm { background: var(--info); } .k-exam { background: var(--mari); }

/* school profile */
.logo-edit { display: flex; align-items: center; gap: 1rem; }
.logo-edit .logo { width: 4.5rem; height: 4.5rem; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); flex: none; }
.logo-edit .logo img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* transport */
.seg.sm { flex: none; background: none; gap: .35rem; padding: 0; }
.seg button { border: 1px solid var(--line); background: var(--surface); font: inherit; font-weight: 600; font-size: .85rem; padding: .5rem .7rem; border-radius: 11px; color: var(--ink-2); cursor: pointer; min-height: 2.5rem; }
.seg button[aria-pressed="true"].ok { background: var(--ok); color: #fff; }
.seg button[aria-pressed="true"].bad { background: var(--bad); color: #fff; }
.seg button:focus-visible { outline: 2.5px solid var(--mari); }
.riders { display: flex; flex-direction: column; gap: .4rem; margin-top: .6rem; }
.rider { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .7rem; border-radius: 14px; background: var(--surface-2); }
.rider .grow { min-width: 9rem; }
.rider small { display: block; color: var(--ink-2); font-size: .8rem; }
.rider.is-boarded, .rider.is-dropped { background: var(--ok-soft); }
.rider.is-notHere, .rider.is-noAdult { background: var(--bad-soft); }
.riders.compact .rider { padding: .4rem .6rem; }
.stop-now h2 { display: flex; align-items: center; gap: .4rem; }
.stop-track { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.stop-track::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.stop-track li { position: relative; padding: .5rem 0; }
.stop-track li::before { content: ""; position: absolute; left: -1.2rem; top: .8rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.stop-track li.past::before { background: var(--ok); border-color: var(--ok); }
.stop-track li.now::before { background: var(--mari); border-color: var(--mari); box-shadow: 0 0 0 4px var(--mari-soft); }
.stop-track li.mine b { color: var(--brand); }
.stop-track small { display: block; color: var(--ink-2); font-size: .82rem; }
.stop-list { margin: .5rem 0 0; padding-left: 1.3rem; }
.stop-list li { padding: .25rem 0; }
.stop-list small { display: block; color: var(--ink-2); }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); }

/* health rows (allergy / vaccine) */
.hrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: end; margin-bottom: .4rem; }
.hrow .fld { margin: 0; }
.hrow .icon-btn { margin-bottom: .35rem; }
@media (max-width: 420px) { .hrow { grid-template-columns: 1fr auto; } .hrow .fld:nth-child(2) { grid-column: 1; } .hrow .icon-btn { grid-row: 1; grid-column: 2; } }

/* signature pad */
.sig-box { position: relative; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.sig-canvas { display: block; width: 100%; height: 9rem; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 1rem; right: 1rem; bottom: 1.6rem; border-top: 1px solid #c9d4d1; font-size: .72rem; color: #8a9a9e; padding-top: .15rem; pointer-events: none; }
.sig-img { display: block; max-width: 100%; max-height: 8rem; background: #fff; border-radius: 10px; border: 1px solid var(--line); margin: .5rem 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; text-align: left; }
.plain-list { margin: .5rem 0 0; padding-left: 1.1rem; line-height: 1.5; }
.plain-list li { margin-bottom: .3rem; }
a.banner { display: flex; margin-bottom: .6rem; }

/* access cards and "who's using Aangan" */
.access-cards { display: flex; flex-direction: column; gap: .6rem; margin: .6rem 0; max-height: 55vh; overflow: auto; }
.access-card { border: 1.5px solid var(--line); border-radius: 16px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .35rem; background: var(--surface); }
.access-card .ac-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.access-card .ac-row small { color: var(--ink-2); }
.ac-code { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; background: var(--brand-soft); color: var(--brand); padding: .1em .45em; border-radius: 10px; user-select: all; }
.who-list { display: flex; flex-direction: column; gap: .5rem; }
.who { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; padding: .75rem .9rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-height: 3.6rem; }
.who:hover, .who:focus-visible { border-color: var(--brand); }
.who small { display: block; color: var(--ink-2); font-size: .82rem; }
.avatar.big { width: 4.2rem; height: 4.2rem; font-size: 1.5rem; margin: 0 auto .4rem; }

/* parent home: greeting, child switcher, hero card with tiles, timeline (the Aangan design) */
.kicker { margin: -.2rem 0 .1rem; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr)); gap: .5rem; padding: .15rem .1rem .3rem; }
.kids::-webkit-scrollbar { display: none; }
.kid { position: relative; display: flex; align-items: center; gap: .55rem; padding: .5rem .85rem .5rem .5rem; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; flex: none; text-align: left; }
.kid.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.kid b { display: block; font-size: .98rem; line-height: 1.2; }
.kid { min-width: 0; padding: .5rem .55rem .5rem .45rem; gap: .45rem; }
.kid .av { width: 2.1rem; height: 2.1rem; font-size: .85rem; }
.kid .kn { min-width: 0; } .kid .kn b, .kid .kn small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Three or more children on a narrow phone: picture above the name, so every name fits. */
@media (max-width: 30rem) { .kids.many .kid { flex-direction: column; text-align: center; padding: .55rem .35rem; gap: .3rem; } .kids.many .kid .kn { width: 100%; } }
.kid small { color: var(--ink-2); font-size: .78rem; }
.kid .dot { position: absolute; top: .45rem; right: .5rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--bad); }
.av { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-family: var(--display); font-weight: 700; flex: none; }
.av.m { background: var(--mari-soft); color: var(--warn); }
.hero { background: var(--brand); color: var(--brand-ink); border-radius: 26px; padding: 1.05rem; display: flex; flex-direction: column; gap: .8rem;
  background-image: radial-gradient(circle at 108% -12%, transparent 0 30%, var(--hero-line) 30% 30.7%, transparent 30.7% 39%, var(--hero-line) 39% 39.7%, transparent 39.7% 48%, var(--hero-line) 48% 48.7%, transparent 48.7%); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.hero h2 { font-family: var(--display); font-size: 1.6rem; margin: 0; line-height: 1.05; color: inherit; }
.hero small { opacity: .85; font-size: .8rem; }
.hero-note { margin: -.3rem 0 0; font-size: .88rem; opacity: .95; }
.att-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .75rem; border-radius: 999px; font-weight: 700; background: var(--surface); color: var(--ink-2); white-space: nowrap; font-size: .88rem; }
.att-pill .i { width: 1rem; height: 1rem; }
.att-pill.ok { color: var(--ok); }
.att-pill.warn { color: var(--warn); }
.att-pill.bad { background: var(--bad); color: #fff; }
.rchips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.rlab { font-size: .8rem; font-weight: 700; width: 100%; }
.rchip { background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: .38rem .85rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 2.2rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
/* Child's tiles: solid mini-cards on the hero, each with a status-coloured icon (ok / warn / bad / info / brand / muted). */
.tile { --t: var(--brand); --t-soft: var(--brand-soft);
  background: var(--surface); color: var(--ink); border: 0; border-radius: 16px; padding: .7rem .75rem .75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-height: 7.2rem; min-width: 0;
  font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05); transition: transform .12s; }
.tile:active { transform: scale(.98); }
.tile:focus-visible { outline: 2.5px solid var(--mari); outline-offset: 2px; }
.tile.t-ok { --t: var(--ok); --t-soft: var(--ok-soft); } .tile.t-warn { --t: var(--warn); --t-soft: var(--warn-soft); }
.tile.t-bad { --t: var(--bad); --t-soft: var(--bad-soft); } .tile.t-info { --t: var(--info); --t-soft: var(--info-soft); }
.tile.t-muted { --t: var(--ink-2); --t-soft: var(--surface-2); }
.tile .t-top { display: flex; align-items: center; gap: .45rem; width: 100%; margin-bottom: .3rem; }
.tile .t-ico { width: 1.95rem; height: 1.95rem; border-radius: 10px; display: grid; place-items: center; background: var(--t-soft); color: var(--t); flex: none; }
.tile .t-ico .i { width: 1.05rem; height: 1.05rem; }
.tile .t-lab { font-size: .76rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .t-go { color: var(--ink-2); opacity: .55; display: grid; } .tile .t-go .i { width: .95rem; height: .95rem; }
.tile .big { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--ink); max-width: 100%;
  overflow-wrap: normal; word-break: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .big.l { font-size: 1.08rem; } .tile .big.xl { font-size: .95rem; overflow-wrap: anywhere; }
.tile .sm { font-size: .78rem; color: var(--ink-2); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .t-pill { margin-top: auto; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.tile .t-pill.ok { background: var(--ok-soft); color: var(--ok); } .tile .t-pill.warn { background: var(--warn-soft); color: var(--warn); }
.tile .t-pill.bad { background: var(--bad-soft); color: var(--bad); } .tile .t-pill.info { background: var(--info-soft); color: var(--info); }
.tile .t-pill.route { background: var(--surface-2); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .live { margin-left: -.15rem; }
.tile.alert { box-shadow: inset 0 0 0 2px var(--bad), 0 4px 12px rgba(0,0,0,.05); }
:where([data-role="parent"]) .tile .t-pill { color: var(--brand-text); }
.live { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mari); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.duepill { display: inline-block; background: var(--mari); color: var(--mari-ink); border-radius: 999px; padding: 0 .45rem; font-weight: 700; font-size: .95em; }
.tl-list { position: relative; padding-left: 1.15rem; margin-top: .3rem; }
.tl-list::before { content: ""; position: absolute; left: .42rem; top: .9rem; bottom: .9rem; width: 2px; background: var(--line); }
.tli { position: relative; padding: .3rem 0 .55rem .5rem; font-size: .93rem; }
.tli::before { content: ""; position: absolute; left: -1.02rem; top: .72rem; width: .62rem; height: .62rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.tli.now::before { background: var(--mari); border-color: var(--mari); }
.tli.bad::before { background: var(--bad); border-color: var(--bad); }
.tli time { display: block; font-size: .78rem; color: var(--ink-2); font-weight: 700; }

/* parent home v2: right-now strip, quick actions, week strip, notice, coming-up cards, icon timeline, teacher card */
.hero .hwho { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.hero .photo { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--hero-tile); border: 2px solid var(--hero-line); display: grid; place-items: center; font: 700 1.2rem var(--display); flex: none; overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.now { display: flex; align-items: center; gap: .65rem; background: var(--hero-tile); border: 1px solid var(--hero-line); border-radius: 16px; padding: .55rem .7rem; }
.now .grow { min-width: 0; }
.now b { display: block; font-size: .95rem; } .now small { opacity: .88; font-size: .78rem; display: block; }
.now .pulse { width: .6rem; height: .6rem; border-radius: 50%; background: var(--mari); box-shadow: 0 0 0 0 var(--mari); animation: pul 1.8s infinite; flex: none; }
.now .now-ic { display: grid; place-items: center; opacity: .9; flex: none; } .now .now-ic .i { width: 1.1rem; height: 1.1rem; }
@keyframes pul { 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .now .pulse { animation: none; } }
.now .prog { margin-left: auto; text-align: right; font-size: .75rem; opacity: .9; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.now .bar { display: block; height: 4px; width: 4.5rem; border-radius: 4px; background: var(--hero-line); overflow: hidden; margin-top: .25rem; }
.now .bar i { display: block; height: 100%; background: var(--mari); }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: none; border: 0; padding: .1rem; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 600; text-align: center; line-height: 1.2; cursor: pointer; }
.qa .ci { width: 3.1rem; height: 3.1rem; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand); position: relative; }
.qa button:focus-visible .ci { outline: 2.5px solid var(--mari); outline-offset: 2px; }
.qa .ci .i { width: 1.35rem; height: 1.35rem; }
.qa .badge { position: absolute; top: -.35rem; right: -.35rem; background: var(--bad); color: #fff; border-radius: 999px; font-size: .66rem; font-weight: 800; padding: .05rem .35rem; }
.qa .badge.warn { background: var(--mari); color: var(--mari-ink); }
a.week-card { display: block; color: var(--ink); text-decoration: none; }
.week { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; margin-top: .55rem; }
.wd { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .74rem; color: var(--ink-2); font-weight: 600; }
.wd i { width: 2.1rem; height: 2.1rem; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .82rem; }
.wd .p { background: var(--ok-soft); color: var(--ok); } .wd .a { background: var(--bad); color: #fff; } .wd .l { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 2px var(--warn); }
.wd .f { background: var(--surface-2); color: var(--ink-2); } .wd.today i { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.notice { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: .8rem .9rem; color: var(--ink); text-decoration: none; }
.notice.important { border-color: var(--mari); } .notice.urgent { border-color: var(--bad); }
.notice .grow { min-width: 0; }
.notice b { display: block; } .notice small { color: var(--ink-2); font-size: .82rem; line-height: 1.35; display: block; margin-top: .1rem; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: .2rem 0 -.2rem; }
.sec-h h3 { font: 700 1.05rem var(--display); margin: 0; }
.upc { display: flex; gap: .55rem; overflow-x: auto; padding: .1rem .1rem .4rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
.upc::-webkit-scrollbar { display: none; }
.uc { flex: 0 0 9.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .7rem; display: flex; flex-direction: column; gap: .35rem; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.uc .date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 2.9rem; height: 3.1rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand); line-height: 1; }
.uc .date b { font: 800 1.25rem var(--display); } .uc .date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.uc.exam .date { background: var(--mari-soft); color: var(--warn); } .uc.hol .date { background: var(--bad-soft); color: var(--bad); }
.uc b.t { font-size: .9rem; line-height: 1.25; } .uc small.k { color: var(--ink-2); font-size: .76rem; }
.tl2 { display: flex; flex-direction: column; margin-top: .3rem; }
.t2 { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; position: relative; }
.t2:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.45rem; bottom: -.45rem; width: 2px; background: var(--line); }
.t2 .ti { width: 2.05rem; height: 2.05rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.t2 .ti .i { width: 1rem; height: 1rem; }
.t2.g .ti { background: var(--ok-soft); color: var(--ok); } .t2.m .ti { background: var(--mari-soft); color: var(--warn); } .t2.r .ti { background: var(--bad-soft); color: var(--bad); }
.t2 time { display: block; font-size: .75rem; color: var(--ink-2); font-weight: 700; } .t2 .x { font-size: .93rem; }
.ct { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ct .grow { min-width: 9rem; } .ct .grow small { display: block; color: var(--ink-2); font-size: .8rem; }

/* admin overview v2 */
.ahero .ring-row { display: flex; align-items: center; gap: 1rem; }
.ring { width: 6.2rem; height: 6.2rem; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: var(--hero-line); stroke-width: 10; }
.ring .val { fill: none; stroke: var(--mari); stroke-width: 10; stroke-linecap: round; }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring .lbl b { font: 800 1.55rem var(--display); } .ring .lbl small { font-size: .7rem; opacity: .9; margin-top: .15rem; }
.ahero .facts2 { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; min-width: 0; }
.ahero .facts2 b { font-family: var(--display); font-size: 1.15rem; }
.ahero .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ahero .mini button { background: var(--hero-tile); border: 1px solid var(--hero-line); border-radius: 16px; padding: .55rem .6rem; color: inherit; font: inherit; text-align: left; display: flex; flex-direction: column; gap: .1rem; cursor: pointer; min-width: 0; }
.ahero .mini button:focus-visible { outline: 2.5px solid var(--mari); outline-offset: 2px; }
.ahero .mini .tl { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; opacity: .92; } .ahero .mini .tl .i { width: .95rem; height: .95rem; }
.ahero .mini b { font: 700 1.2rem var(--display); line-height: 1.1; overflow-wrap: anywhere; } .ahero .mini small { font-size: .72rem; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-list { display: flex; flex-direction: column; }
.att-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; color: var(--ink); text-decoration: none; }
.att-item + .att-item { border-top: 1px solid var(--line); }
.att-item .grow { flex: 1; min-width: 0; } .att-item .grow small { display: block; color: var(--ink-2); font-size: .8rem; }
.att-item .cnt { min-width: 1.9rem; height: 1.9rem; padding: 0 .45rem; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--mari); color: var(--mari-ink); flex: none; }
.att-item .cnt.r { background: var(--bad); color: #fff; }
.caught-up { display: flex; align-items: center; gap: .7rem; padding: .4rem 0 .1rem; color: var(--ok); }
.caught-up .i { width: 1.6rem; height: 1.6rem; } .caught-up b { display: block; color: var(--ink); } .caught-up small { color: var(--ink-2); }
.money { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.money b { font: 800 1.7rem var(--display); } .money span { color: var(--ink-2); font-size: .9rem; }
.bigbar { height: .7rem; border-radius: 9px; background: var(--surface-2); overflow: hidden; display: flex; margin: .55rem 0 .4rem; }
.bigbar i { display: block; height: 100%; } .bigbar .c { background: var(--ok); } .bigbar .o { background: var(--bad); } .bigbar .p { background: var(--mari); }
.legend2 { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .78rem; color: var(--ink-2); }
.legend2 i { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-right: .3rem; vertical-align: middle; }
.cbar, .abar { display: grid; grid-template-columns: 4.8rem 1fr 3.4rem; gap: .5rem; align-items: center; font-size: .84rem; padding: .3rem 0; color: var(--ink); text-decoration: none; background: none; }
.cbar .trk, .abar .trk { height: .5rem; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.cbar .trk i { display: block; height: 100%; background: var(--brand); border-radius: 6px; } .cbar .trk i.low { background: var(--mari); }
.abar .trk i { display: block; height: 100%; background: var(--ok); border-radius: 6px; } .abar .trk i.low { background: var(--bad); }
.cbar b, .abar b { text-align: right; font-variant-numeric: tabular-nums; } .abar .chip { justify-self: end; font-size: .68rem; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.nums button { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .55rem .3rem; text-align: center; color: var(--ink); font: inherit; cursor: pointer; }
.nums b { display: block; font: 800 1.3rem var(--display); } .nums small { font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.act { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem 0; font-size: .9rem; }
.act + .act { border-top: 1px solid var(--line); }
.act .ico { width: 2rem; height: 2rem; border-radius: 10px; flex: none; } .act .ico .i { width: 1rem; height: 1rem; }
.act .grow { min-width: 0; } .act small { display: block; color: var(--ink-2); font-size: .76rem; }
.backup { display: flex; align-items: center; gap: .7rem; background: var(--warn-soft); border-radius: 18px; padding: .75rem .9rem; color: var(--ink); text-decoration: none; }
.backup .grow { min-width: 0; } .backup small { display: block; color: var(--ink-2); font-size: .8rem; }

/* ---------- parent's own phone: sync strip ---------- */
.sync-strip { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .75rem; padding: .6rem .8rem; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.sync-strip svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.sync-strip.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- admin: cloud for parents ---------- */
.cloud-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cloud-stats div { padding: .75rem; border-radius: 12px; background: var(--surface-2); }
.cloud-stats b { display: block; font-size: 1.35rem; }
.cloud-stats small { color: var(--ink-2); }
.cloud-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

/* ---------- teacher home v2 ---------- */
.hero .hero-btn { background: var(--mari); color: var(--mari-ink); border: 0; align-self: flex-start; margin-top: .2rem; }
.hero .hero-link { color: inherit; font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; opacity: .95; }
.pstrip { display: flex; gap: .4rem; overflow-x: auto; padding: .15rem .05rem .3rem; scrollbar-width: none; }
.pstrip::-webkit-scrollbar { display: none; }
.ps { flex: 1 0 3.6rem; display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .45rem .25rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: center; line-height: 1.15; }
.ps small { font-size: .66rem; color: var(--ink-2); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps b { font: 700 .95rem var(--display); }
.ps.free { background: var(--surface-2); border-style: dashed; } .ps.free b { color: var(--ink-2); font-size: .8rem; }
.ps.ps-past { opacity: .5; }
.ps.ps-now { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .ps.ps-now small, .ps.ps-now b { color: inherit; opacity: .95; }
.ps.ps-next { box-shadow: inset 0 0 0 2px var(--mari); }
.clist { display: flex; flex-direction: column; }
.crow { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; color: var(--ink); text-decoration: none; font-size: .92rem; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow .chip { flex: none; min-width: 4.6rem; justify-content: center; } .crow .chip .i { width: .85rem; height: .85rem; }
.crow .grow { min-width: 0; } .crow .grow small { display: block; color: var(--ink-2); font-size: .78rem; }
.chip.bday { background: var(--mari-soft); color: var(--warn); }
.hwr { display: flex; flex-direction: column; gap: .3rem; padding: .55rem 0; color: var(--ink); text-decoration: none; }
.hwr + .hwr { border-top: 1px solid var(--line); }
.hwr .hwt { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.hwr .hwt b { font-size: .92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hwr .hwt small { color: var(--ink-2); font-size: .76rem; white-space: nowrap; }
.hwr .trk { height: .45rem; border-radius: 6px; background: var(--surface-2); overflow: hidden; } .hwr .trk i { display: block; height: 100%; background: var(--ok); border-radius: 6px; }
.hwr > small { color: var(--ink-2); font-size: .78rem; } .hwr .tc { color: var(--warn); }

/* ---------- branches: parent's school switcher, owner's view ---------- */
.school-sw { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--brand); text-decoration: none; position: relative; }
.school-sw .i { width: .9rem; height: .9rem; }
.school-sw .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--bad); display: inline-block; }
.owner { min-height: 100vh; background: var(--bg); }
.owner-top { display: flex; align-items: center; gap: .6rem; padding: 1rem 1rem .4rem; max-width: 40rem; margin: 0 auto; }
.owner-top .mark { width: 2.4rem; height: 2.4rem; flex: none; }
.owner-top small { color: var(--ink-2); font-size: .78rem; } .owner-top h1 { font: 700 1.35rem var(--display); margin: 0; }
.owner .main { max-width: 40rem; margin: 0 auto; padding: .4rem 1rem 2rem; }
.ahero .mini .mtile { background: var(--hero-tile); border: 1px solid var(--hero-line); border-radius: 16px; padding: .55rem .6rem; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ahero .mini .mtile .tl { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; opacity: .92; } .ahero .mini .mtile .tl .i { width: .95rem; height: .95rem; }
.ahero .mini .mtile b { font: 700 1.1rem var(--display); line-height: 1.1; overflow-wrap: anywhere; } .ahero .mini .mtile small { font-size: .72rem; opacity: .9; }
.ob-row { display: grid; grid-template-columns: 6.6rem 1fr auto; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.ob-row:first-of-type { border-top: 0; }
.ob-k { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ink-2); font-weight: 600; } .ob-k .i { width: 1rem; height: 1rem; }
.ob-v { display: flex; flex-direction: column; min-width: 0; } .ob-v b { font: 800 1.25rem var(--display); line-height: 1.1; } .ob-v small { color: var(--ink-2); font-size: .76rem; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 2rem; width: 4.6rem; }
.spark i { flex: 1; background: var(--ok); border-radius: 2px 2px 0 0; min-height: 3px; } .spark i.low { background: var(--bad); }
.ob-nums { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--ink-2); padding: .45rem 0 .2rem; border-top: 1px solid var(--line); }
.ob-nums b { color: var(--ink); }

/* ---------- parent bus page v2 ---------- */
.bhero h2 { font-size: 1.55rem; }
.rtrack { position: relative; padding: 1.35rem .1rem .2rem; }
.rt-line { position: absolute; left: calc(.1rem + 1.2%); right: calc(.1rem + 1.2%); top: 2.02rem; height: 4px; border-radius: 4px; background: var(--hero-line); overflow: hidden; }
.rt-line i { display: block; height: 100%; background: var(--mari); border-radius: 4px; transition: width .4s; }
.rt-stops { position: relative; display: grid; align-items: start; }
.rt-s { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rt-s > i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--brand); border: 2px solid var(--hero-line); box-sizing: content-box; }
.rt-s.rt-past > i { background: var(--mari); border-color: var(--mari); }
.rt-s.rt-now > i { background: var(--mari); border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--mari); }
.rt-s.mine > i { width: 1rem; height: 1rem; background: var(--brand-ink); border-color: var(--mari); margin-top: -.1rem; }
.rt-s small { display: flex; align-items: center; gap: .1rem; margin-top: .25rem; font-size: .66rem; font-weight: 800; opacity: 1; white-space: nowrap; }
.rt-s small .i { width: .8rem; height: .8rem; }
.rt-bus { position: absolute; top: -1.35rem; width: 1.3rem; height: 1.3rem; border-radius: 6px; background: var(--mari); color: var(--mari-ink); display: grid; place-items: center; }
.rt-bus .i { width: .9rem; height: .9rem; }
.bstop { display: flex; gap: .55rem; align-items: center; background: var(--hero-tile); border: 1px solid var(--hero-line); border-radius: 14px; padding: .5rem .7rem; }
.bstop .i { width: 1.1rem; height: 1.1rem; flex: none; } .bstop b { display: block; font-size: .92rem; } .bstop small { font-size: .78rem; opacity: .9; }
.bday-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; }
.bday-row + .bday-row { border-top: 1px solid var(--line); }
.bday-row .grow { min-width: 0; } .bday-row .grow small { display: block; color: var(--ink-2); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bday-row .chip { flex: none; } .bday-row .btn { flex: none; }
.crew { display: flex; align-items: center; gap: .7rem; }
.crew .grow { min-width: 0; } .crew .grow small { display: block; color: var(--ink-2); font-size: .76rem; } .crew .grow b { display: block; }
.crew-facts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.crew-facts span { display: inline-flex; align-items: center; gap: .3rem; } .crew-facts .i { width: 1rem; height: 1rem; } .crew-facts b { color: var(--ink); }
.bweek { display: grid; grid-template-columns: 4.4rem repeat(6, 1fr); gap: .35rem .3rem; align-items: center; margin-top: .3rem; }
.bw-k { display: flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 700; color: var(--ink-2); } .bw-k .i { width: .9rem; height: .9rem; }
.bw-d { text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-2); line-height: 1.1; } .bw-d small { display: block; font-weight: 600; }
.bw { justify-self: center; width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: .8rem; color: var(--ink-2); background: var(--surface-2); }
.bw .i { width: .95rem; height: .95rem; }
.bw.ok { background: var(--ok-soft); color: var(--ok); } .bw.bad { background: var(--bad); color: #fff; } .bw.warn { background: var(--mari-soft); color: var(--warn); }
.bw.skip { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); } .bw.none { background: var(--warn-soft); color: var(--warn); } .bw.empty { background: none; }
.rider.is-skip { opacity: .7; } .rider.is-skip small { color: var(--warn); font-weight: 600; }
.bw-key { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .7rem 0 0; font-size: .74rem; color: var(--ink-2); }
.bw-key span { display: inline-flex; align-items: center; gap: .3rem; } .bw-key .bw { width: 1.2rem; height: 1.2rem; border-radius: 6px; } .bw-key .bw .i { width: .7rem; height: .7rem; }

/* ---------- bus route maps ---------- */
.map-box { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-box, .map-el { height: 15rem; }
.map-box.tall, .map-box.tall .map-el { height: 19rem; }
.map-el { width: 100%; background: #E9F0EE; }
.map-el.picking { cursor: crosshair; }
.map-off { padding: 1rem; color: var(--ink-2); font-size: .85rem; }
.hero .map-box { border-color: var(--hero-line); }
.mk { background: none; border: 0; }
.mk-stop { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0B6E63; color: #fff; font: 800 12px/1 var(--body, sans-serif); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); box-sizing: border-box; }
.mk-stop.past { background: #E8961A; }
.mk-stop.now { background: #E8961A; box-shadow: 0 0 0 4px rgba(232,150,26,.35), 0 1px 4px rgba(0,0,0,.35); }
.mk-stop.school { background: #8A5608; border-radius: 7px; }
.mk-stop.mine { width: 30px; height: 30px; background: #fff; color: #0B6E63; border: 3px solid #0B6E63; }
.mk-stop.mine .i { width: 16px; height: 16px; }
.mk-bus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #E8961A; color: #3A2500; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.mk-bus .i { width: 20px; height: 20px; }
.map-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; color: var(--ink-2); margin: .55rem 0 .1rem; }
.map-meta b { color: var(--ink); }
.map-hint { position: absolute; z-index: 500; left: .5rem; right: .5rem; bottom: 1.6rem; background: var(--surface); border-radius: 12px; padding: .45rem .7rem; font-size: .82rem; box-shadow: 0 2px 10px rgba(0,0,0,.15); display: flex; gap: .5rem; align-items: center; }
.map-hint .grow { flex: 1; }
.stop-loc { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 700; }
.stop-loc.ok { color: var(--ok); } .stop-loc.no { color: var(--warn); }
.stop-loc .i { width: .85rem; height: .85rem; }
.live-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; }
.live-row .grow { min-width: 0; } .live-row .grow small { display: block; color: var(--ink-2); font-size: .78rem; }
.switch { position: relative; width: 2.9rem; height: 1.65rem; border-radius: 999px; background: var(--line); border: 0; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--ok); } .switch[aria-checked="true"]::after { left: 1.45rem; }

/* ---------- drawn route diagram (always shows; no internet needed) ---------- */
.rdiag { display: block; width: 100%; height: auto; border-radius: 16px; }
.rdiag.empty { display: grid; place-items: center; min-height: 6rem; background: var(--surface-2); color: var(--ink-2); font-size: .85rem; }
.rd-bg { fill: #E1F5EE; }
.rd-road { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.rd-road.thin { stroke-width: 6; }
.rd-line { fill: none; stroke: #0F6E56; stroke-width: 3; stroke-dasharray: 6 4; stroke-linecap: round; stroke-linejoin: round; }
.rd-done { fill: none; stroke: #BA7517; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.rd-n circle { fill: #0F6E56; stroke: #fff; stroke-width: 2; }
.rd-n text, .rd-school text { fill: #fff; font: 700 10px/1 sans-serif; text-anchor: middle; }
.rd-n.past circle, .rd-n.now circle { fill: #BA7517; }
.rd-n.now circle { stroke: #FAC775; stroke-width: 3; }
.rd-school rect { fill: #BA7517; stroke: #fff; stroke-width: 2; }
.rd-mine path { fill: #0F6E56; stroke: #fff; stroke-width: 1.5; } .rd-mine circle { fill: #fff; }
.rd-bus rect { fill: #FAC775; stroke: #633806; stroke-width: 2; }
.rd-bus path { stroke: #633806; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero .rdiag { border: 1px solid var(--hero-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rd-bg { fill: #16302B; } :root:not([data-theme="light"]) .rd-road { stroke: #23413B; } }
:root[data-theme="dark"] .rd-bg { fill: #16302B; } :root[data-theme="dark"] .rd-road { stroke: #23413B; }
.rsum { color: var(--ink-2); font-size: .84rem; margin: .1rem 0 .6rem; }
.rsum b { color: var(--ink); }
.viewtog { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.viewtog button { background: none; border: 0; padding: .3rem .75rem; font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.viewtog button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.slist { margin-top: .7rem; border: 1px solid var(--line); border-radius: 16px; padding: .1rem .75rem; background: var(--surface); }
.srow { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow .num { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mari-soft); color: var(--warn); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.srow .grow { flex: 1; min-width: 0; } .srow .grow small { display: block; color: var(--ink-2); font-size: .78rem; }
.srow .btn { flex: none; }

/* ---------- attendance v2: exceptions only, tap / swipe, list or seating grid ---------- */
.att-sum { position: sticky; top: 4.4rem; z-index: 7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .35rem; align-items: stretch; background: var(--bg); padding: .4rem 0 .45rem; margin: 0 -.1rem; }
.as-tile { border-radius: 14px; padding: .35rem .2rem; text-align: center; min-height: 3.1rem; display: flex; flex-direction: column; justify-content: center; }
.as-tile b { font: 800 1.3rem/1.05 var(--display); font-variant-numeric: tabular-nums; } .as-tile small { font-size: .68rem; font-weight: 700; }
.as-tile.p { background: var(--ok-soft); color: var(--ok); } .as-tile.a { background: var(--bad-soft); color: var(--bad); }
.as-tile.l { background: var(--warn-soft); color: var(--warn); } .as-tile.v { background: var(--surface-2); color: var(--ink-2); }
.as-reset { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-width: 3.4rem; min-height: 3.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--brand); font: inherit; font-size: .64rem; font-weight: 800; cursor: pointer; padding: 0 .3rem; }
.as-reset .i { width: 1.05rem; height: 1.05rem; }
.as-note { grid-column: 1 / -1; font-size: .74rem; font-weight: 700; color: var(--warn); text-align: center; }
.att-head { display: flex; margin: .1rem 0 .2rem; }
.viewtog.big { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
.viewtog.big button { min-height: 2.9rem; font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.viewtog.big button .i { width: 1.05rem; height: 1.05rem; }

.alist { display: flex; flex-direction: column; gap: .4rem; margin-top: .3rem; }
.arow { position: relative; display: block; width: 100%; padding: 0; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; overflow: hidden; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arow-in { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; min-height: 3.6rem; padding: .45rem .7rem; background: inherit; transform: translateX(var(--dx, 0)); transition: transform .18s ease-out; }
.arow.pull-a .arow-in, .arow.pull-l .arow-in { transition: none; }
.arow .grow { flex: 1; min-width: 0; }
.arow .grow b { display: block; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .grow small { display: block; color: var(--ink-2); font-size: .78rem; }
.aav { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--display); background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 2.5px var(--ok); flex: none; }
.apill { flex: none; min-width: 4.6rem; text-align: center; padding: .4rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--ok-soft); color: var(--ok); }
.arow.s-a { border-color: var(--bad); background: var(--bad-soft); } .arow.s-a .aav { background: var(--bad); color: #fff; box-shadow: none; } .arow.s-a .apill { background: var(--bad); color: #fff; }
.arow.s-l { border-color: var(--warn); background: var(--warn-soft); } .arow.s-l .aav { background: var(--warn); color: #fff; box-shadow: none; } .arow.s-l .apill { background: var(--warn); color: #fff; }
.arow.s-v { border-style: dashed; background: var(--surface-2); } .arow.s-v .aav { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line); } .arow.s-v .apill { background: var(--surface); color: var(--ink-2); }
.arow.s-v .grow b { color: var(--ink-2); }
.arow .lv-badge { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: var(--info, #1D6FD8); }
.arow .lv-badge .i { width: .8rem; height: .8rem; }
.arow .lv-why { font-style: italic; }
.arow.has-leave:not(.s-v) .lv-badge::after { content: " · overridden"; color: var(--ink-2); font-weight: 600; }
.sw { position: absolute; inset: 0; display: none; align-items: center; gap: .35rem; padding: 0 1.1rem; font-weight: 800; font-size: .9rem; color: #fff; }
.sw .i { width: 1.1rem; height: 1.1rem; }
.sw-a { justify-content: flex-end; background: var(--bad); } .sw-l { justify-content: flex-start; background: var(--warn); }
.arow.pull-a .sw-a, .arow.pull-l .sw-l { display: flex; }
.arow.ready .sw { font-size: 1rem; }
.bump { animation: bump .26s ease-out; }
@keyframes bump { 40% { transform: scale(.97); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bump { animation: none; } .arow-in { transition: none; } }

.room { margin-top: .4rem; padding: .6rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.board { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem; border-radius: 10px; background: #1F3D36; color: #DDEFEA; font-weight: 800; font-size: .82rem; letter-spacing: .02em; margin-bottom: .2rem; }
.board .i { width: 1rem; height: 1rem; }
.desk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; padding: .2rem; border-radius: 12px; background: var(--surface-2); }
.seat { position: relative; min-height: 4.3rem; min-width: 0; border-radius: 10px; border: 2.5px solid var(--ok); background: var(--surface); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; padding: .25rem .1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seat .sav { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font: 700 .72rem var(--display); background: var(--ok-soft); color: var(--ok); }
.seat b { font-size: .7rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat small { font-size: .62rem; color: var(--ink-2); white-space: nowrap; }
.seat.s-a { border-color: var(--bad); background: var(--bad-soft); } .seat.s-a .sav { background: var(--bad); color: #fff; }
.seat.s-l { border-color: var(--warn); background: var(--warn-soft); } .seat.s-l .sav { background: var(--warn); color: #fff; }
.seat.s-v { border-style: dashed; border-color: var(--line); background: var(--surface-2); opacity: .75; } .seat.s-v .sav { background: var(--surface); color: var(--ink-2); }
.seat.empty { border: 2px dashed var(--line); background: none; cursor: default; opacity: .5; }
.seat-lv { position: absolute; top: .15rem; right: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--info, #1D6FD8); color: #fff; display: grid; place-items: center; font-style: normal; }
.seat-lv .i { width: .62rem; height: .62rem; }
.att-cta { min-height: 3.4rem; font-size: 1rem; }
.as-confirm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin-bottom: .6rem; }

/* ---------- salary: payslip ---------- */
.payslip .ps-k { margin: .9rem 0 .25rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ps-line { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; font-size: .93rem; }
.ps-line span { color: var(--ink-2); } .ps-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-line.tot { border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .45rem; }
.ps-line.tot span { color: var(--ink); font-weight: 700; }
.ps-net { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .9rem; padding: .75rem .9rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.ps-net span { font-weight: 700; } .ps-net b { font: 800 1.45rem var(--display); font-variant-numeric: tabular-nums; }

/* ---------- finance ---------- */
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt.income { color: var(--ok); }
.fchart { display: flex; flex-direction: column; gap: .6rem; }
.fc-legend { display: flex; gap: 1rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.fc-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.fc-legend i { width: .75rem; height: .75rem; border-radius: 3px; display: inline-block; }
.fc-legend .sw-in, .fc-bars .b-in { background: var(--brand); }
.fc-legend .sw-ex, .fc-bars .b-ex { background: var(--mari); }
.fc-plot { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .25rem; height: 9.5rem; align-items: end;
  background: linear-gradient(to top, var(--line) 1px, transparent 1px) bottom / 100% 100% no-repeat; }
.fc-m { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; min-width: 0; cursor: default; }
.fc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.fc-bars i { width: min(.7rem, 42%); min-height: 2px; border-radius: 4px 4px 0 0; display: block; }
.fc-m small { font-size: .68rem; color: var(--ink-2); line-height: 1; }
.fc-m:hover .fc-bars i { filter: brightness(1.12); }
.fcat { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) auto 2.4rem; align-items: center; gap: .55rem; padding: .32rem 0; font-size: .86rem; }
.fcat > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcat .trk { height: .6rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fcat .trk i { display: block; height: 100%; border-radius: 999px; }
.fcat .trk i.b-ex { background: var(--mari); } .fcat .trk i.b-in { background: var(--brand); }
.fcat b { font-variant-numeric: tabular-nums; white-space: nowrap; } .fcat small { color: var(--ink-2); text-align: right; }
@media (max-width: 420px) { .fcat { grid-template-columns: minmax(0, 8.2rem) minmax(0, 1fr) auto; } .fcat small { display: none; } }

/* ---------- principal overview: setup checklist, teachers this week, reports ---------- */
.qa.qa8 { row-gap: .8rem; }
.setup .prog { height: .5rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .1rem 0 .5rem; }
.setup .prog i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.st-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.st-row:first-of-type { border-top: 0; }
.st-row .grow { min-width: 0; } .st-row b { display: block; font-size: .92rem; } .st-row small { color: var(--ink-2); font-size: .8rem; }
.st-dot { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--mari); flex: none; display: grid; place-items: center; }
.st-row.done .st-dot { background: var(--ok); border-color: var(--ok); color: #fff; } .st-dot .i { width: .8rem; height: .8rem; }
.st-row.done b { color: var(--ink-2); font-weight: 600; }
.tw-hw { display: flex; flex-direction: column; align-items: center; line-height: 1.05; min-width: 1.8rem; } .tw-hw b { font-size: .95rem; } .tw-hw small { font-size: .66rem; color: var(--ink-2); }
.cloud-stats > a { padding: .75rem; border-radius: 12px; background: var(--surface-2); text-decoration: none; display: block; }
.cloud-stats > a b { display: block; font-size: 1.35rem; } .cloud-stats > a small { color: var(--ink-2); }
.rep-h { display: flex; gap: .7rem; align-items: flex-start; } .rep-h b { display: block; } .rep-h small { color: var(--ink-2); font-size: .84rem; }
.st-row .btn { white-space: nowrap; flex: none; }

/* ---------- parent home: quick actions, today strip, homework week, progress, celebrations, fee, day ---------- */
.pqa .ci { border-color: transparent; }
.pqa .ci.q-brand { background: var(--brand-soft); color: var(--brand); } .pqa .ci.q-ok { background: var(--ok-soft); color: var(--ok); }
.pqa .ci.q-warn { background: var(--warn-soft); color: var(--warn); } .pqa .ci.q-bad { background: var(--bad-soft); color: var(--bad); }
.pqa .ci.q-info { background: var(--info-soft); color: var(--info); }
:where([data-role="parent"]) .pqa .ci.q-brand { color: var(--brand-text); }
a.card.hw-week, a.card.prog-card { display: block; color: var(--ink); text-decoration: none; }
.tstrip { display: flex; gap: .45rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .2rem; scrollbar-width: none; }
.tstrip::-webkit-scrollbar { display: none; }
.tstrip .per { flex: 0 0 auto; min-width: 4.9rem; scroll-snap-align: start; border-radius: 12px; padding: .45rem .6rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .05rem; }
.tstrip .per b { font-size: .86rem; white-space: nowrap; } .tstrip .per small { font-size: .72rem; color: var(--ink-2); }
.tstrip .per.done { opacity: .55; }
.tstrip .per.now { background: var(--brand); color: var(--brand-ink); } .tstrip .per.now small { color: inherit; font-weight: 700; }
.hw-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; }
.hw-d { border-radius: 12px; background: var(--surface-2); padding: .4rem .15rem; text-align: center; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.hw-d small { font-size: .7rem; color: var(--ink-2); font-weight: 600; } .hw-d b { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-d.ok { background: var(--ok-soft); color: var(--ok); } .hw-d.warn { background: var(--warn-soft); color: var(--warn); }
.hw-d.past b { color: var(--ink-2); } .hw-d.today { box-shadow: inset 0 0 0 2px var(--brand); }
.hw-next { display: flex; align-items: center; gap: .5rem; margin-top: .65rem; font-size: .88rem; } .hw-next .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) 2.6rem 1rem; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .86rem; }
.pg-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-t { position: relative; height: .55rem; border-radius: 999px; background: var(--surface-2); }
.pg-t i { display: block; height: 100%; border-radius: 999px; background: var(--brand); } .pg-t i.mid { background: var(--mari); } .pg-t i.low { background: var(--bad); }
.pg-t em { position: absolute; top: -.2rem; bottom: -.2rem; width: 2px; margin-left: -1px; background: var(--ink-2); border-radius: 1px; opacity: .7; }
.pg-row b { text-align: right; font-variant-numeric: tabular-nums; } .pg-d { font-weight: 800; } .pg-d.up { color: var(--ok); } .pg-d.down { color: var(--bad); }
.celebrate { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: var(--r-card); background: var(--ok-soft); color: var(--ok); }
.celebrate.bday { background: var(--info-soft); color: var(--info); }
.celebrate b { display: block; font-family: var(--display); font-size: 1.02rem; } .celebrate small { color: inherit; opacity: .9; }
.celebrate .cb-ic { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.fee-card.over { box-shadow: inset 0 0 0 2px var(--bad); }
.fee-amt { display: flex; align-items: baseline; gap: .6rem; } .fee-amt b { font: 700 1.6rem var(--display); } .fee-amt small { color: var(--ink-2); }
.dc-row { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .9rem; } .dc-row:first-of-type { border-top: 0; }
.dc-ic { width: 1.9rem; height: 1.9rem; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.dc-ic .i { width: 1rem; height: 1rem; }
.dc-ic.ok { background: var(--ok-soft); color: var(--ok); } .dc-ic.warn { background: var(--warn-soft); color: var(--warn); } .dc-ic.bad { background: var(--bad-soft); color: var(--bad); }
.dc-ic.info { background: var(--info-soft); color: var(--info); } .dc-ic.brand { background: var(--brand-soft); color: var(--brand); }
:where([data-role="parent"]) .dc-ic.brand { color: var(--brand-text); }
