/* The dashboard and the admin page: a light sidebar on a tinted canvas and the page as a raised panel, in the school's navy and amber. */
@font-face { font-family: Nunito; src: url(/fonts/body.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: Nunito; src: url(/fonts/bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap }
@font-face { font-family: Head; src: url(/fonts/head.woff2) format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: Ur; src: url(/fonts/ur.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F }
:root { color-scheme: light; --p: #1F2A56; --p2: #33437F; --t: #171D1B; --t2: #47524F; --ln: #E3E6EE; --ln2: #EEF0F5; --cv: #E9ECF4; --soft: #EEF1FB; --am: #FFB547; --ok: #00593F; --okb: #DFF3EA; --dg: #B3262B; --dgb: #FCE7E6; --wn: #7A4B00; --wnb: #FFF0D3;
  --body: Nunito, Ur, "Segoe UI", system-ui, sans-serif; --head: Head, Ur, "Segoe UI", system-ui, sans-serif; --lift: 0 0 0 1px var(--ln), 0 10px 28px -16px rgba(20,27,61,.22) }
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--cv); color: var(--t); font: 15px/1.45 var(--body); -webkit-text-size-adjust: 100% }
[lang="ur"] body { line-height: 1.8 }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0 }
ul { list-style: none }
h1 { font: 700 26px/1.25 var(--head) }
h2 { font: 700 17px/1.3 var(--head) }
h3 { font: 700 16px/1.3 var(--head) }
[lang="ur"] :is(h1, h2, h3) { line-height: 1.7 }
b, strong { font-weight: 800 }
small { font-size: 13px; color: var(--t2) }
a { color: var(--p) }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: start }
button:disabled { cursor: default; opacity: .5 }
svg { flex: none }
:focus-visible { outline: 3px solid #5B74D6; outline-offset: 2px; border-radius: 8px }
.red { color: var(--dg) } .green { color: var(--ok) } .dim { opacity: .55 } .ltr { direction: ltr; unicode-bidi: isolate }
.grow { flex: 1; min-width: 0 }
.hero, .gate .left { color: #fff; background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 9px, transparent 9px 26px), linear-gradient(135deg, #2E3D78, #141B3D) }

/* the frame */
#app.in { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh }
aside { position: sticky; top: 0; height: 100vh; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px }
aside .name { display: flex; gap: 10px; align-items: center; padding: 6px 8px; text-decoration: none; color: var(--t) }
aside .name b { display: block; font: 700 15px/1.3 var(--head); overflow-wrap: anywhere }
aside .name small { display: block }
aside .name img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; flex: none }
aside nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px }
aside nav a { display: flex; align-items: center; gap: 11px; padding: 6px 10px; min-height: 42px; border-radius: 12px; text-decoration: none; color: var(--t2); font-weight: 700 }
aside nav a:hover { background: rgba(31,42,86,.06) }
aside nav a[aria-current] { background: #fff; color: var(--p); box-shadow: var(--lift); font-weight: 800 }
.dot { width: 9px; height: 9px; border-radius: 9px; background: var(--am); margin-inline-start: auto }
.sync { display: flex; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 12px; font-size: 13px; color: var(--t2) }
.sync:hover { background: rgba(31,42,86,.06) }
.sync i { width: 9px; height: 9px; border-radius: 9px; background: #C8871B; flex: none }
.sync.done i { background: #1C9A6C } .sync.busy i { background: #5B74D6; animation: beat 1s infinite alternate } .sync.rejoin i { background: var(--dg) }
@keyframes beat { to { opacity: .25 } }
main { margin: 10px; margin-inline-start: 0; padding: 22px 26px 40px; background: #F8F9FC; border-radius: 22px; box-shadow: var(--lift); min-width: 0 }
main > * + * { margin-top: 16px }
.low, .veil { display: none }
.demo { position: fixed; inset-block-end: 14px; inset-inline-end: 24px; z-index: 6; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; background: var(--p); color: #fff; border-radius: 16px; padding: 10px 18px; box-shadow: 0 14px 34px rgba(8,12,32,.35) }
.demo a { color: var(--am); font-weight: 800 }

/* pieces */
.top { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; min-height: 46px }
.top h1 { margin-inline-end: auto; overflow-wrap: anywhere }
.back { text-decoration: none; font-weight: 700 } .back::before { content: "‹ " }
.tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center }
.panel { background: #fff; border-radius: 18px; box-shadow: var(--lift); padding: 16px 18px; min-width: 0 }
.panel > * + * { margin-top: 10px }
.ph { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center }
.ph h2 { margin-inline-end: auto; overflow-wrap: anywhere }
.ph .note { flex: 1 1 14em }
.big { font-size: 21px }
.note { color: var(--t2); font-size: 14px; overflow-wrap: anywhere }
.warn { display: block; background: var(--wnb); color: var(--wn); border-radius: 12px; padding: 9px 13px; text-decoration: none }
.strong { font-weight: 800 }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start }
.two > div:not(.panel) > * + * { margin-top: 16px }
.line2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center } .mid { justify-content: center }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 5px 16px; border-radius: 13px; font-weight: 800; text-decoration: none; text-align: center }
.btn.main { background: var(--am); color: #2B1B00 } .btn.main:hover:enabled { background: #FFC56E }
.btn.main.red { background: var(--dg); color: #fff }
.btn.soft { background: #fff; color: var(--p); box-shadow: inset 0 0 0 1.5px #CDD4E8 } .btn.soft:hover { background: var(--soft) }
.btn.plain { color: var(--p); padding-inline: 10px } .btn.plain:hover { background: var(--soft) } .btn.plain.red { color: var(--dg) }
.btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5) }
.mini { vertical-align: middle; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 12px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--p); box-shadow: inset 0 0 0 1.5px #CDD4E8; background: #fff; text-decoration: none; white-space: nowrap }
.mini:hover { background: var(--soft) } .mini.main { background: var(--am); color: #2B1B00; box-shadow: none } .mini.sent { opacity: .65 }
.chips { display: flex; flex-wrap: wrap; gap: 7px }
.chip { min-height: 36px; padding: 4px 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px #D5DAE9; font-weight: 700; white-space: nowrap }
.chip:hover { background: var(--soft) } .chip[aria-checked="true"] { background: var(--p); color: #fff; box-shadow: none }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--ln2); color: var(--t2); font-size: 13px; font-weight: 800; white-space: nowrap }
.tag.ok { background: var(--okb); color: var(--ok) } .tag.warn { background: var(--wnb); color: var(--wn) } .tag.bad { background: var(--dgb); color: var(--dg) }
.empty { text-align: center; padding: 26px 12px } .empty > * { margin: 0 auto 8px } .empty p { color: var(--t2); max-width: 34em }
.act { text-align: end } .act > * { margin: 2px; margin-inline-start: 6px }
.months, .days { display: inline-flex; align-items: center; gap: 4px }
.months b { min-width: 9em; text-align: center }
:is(.months, .days) button { width: 38px; height: 38px; border-radius: 11px; font-size: 24px; line-height: 1; text-align: center; color: var(--p) } :is(.months, .days) button:hover:enabled { background: var(--soft) }
.link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--soft); border-radius: 14px; padding: 12px 14px } .link small { display: block } .link .grow { flex: 1 1 14em }

/* lists */
table { border-collapse: collapse; width: 100% }
.list th { text-align: start; font-size: 13px; font-weight: 700; color: var(--t2); padding: 6px 8px; white-space: nowrap }
.list td { padding: 7px 8px; border-top: 1px solid var(--ln2); vertical-align: middle; overflow-wrap: anywhere } .list td:first-child { min-width: 92px }
.list :is(th, td).num { text-align: end; white-space: nowrap } .list td.num { font-variant-numeric: tabular-nums }
.list td small { display: block }
.list .act { width: 1%; white-space: nowrap }
.list tr.go { cursor: pointer } .list tr.go:hover td { background: var(--soft) }
.who { display: block; text-decoration: none; color: inherit } .who b, .who small { display: block } a.who:hover b { text-decoration: underline }
.rows > li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--ln2) } .rows > li:first-child { border: 0 }
.none { color: var(--t2); padding: 14px 4px }
.rows small { display: block } .rows > li > .grow { flex: 1 1 9em }
.search input { width: min(360px, 100%) }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; width: 100%; padding: 5px 0 } .bar i { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: linear-gradient(var(--p2), var(--p2)) no-repeat var(--ln2); background-size: var(--w) 100% }
[dir="rtl"] .bar i { background-position: right }
button.bar { border-radius: 8px } button.bar:hover span { text-decoration: underline }
.bar i.ok { background-image: linear-gradient(#1C9A6C, #1C9A6C) } .bar i.red { background-image: linear-gradient(#CF4A44, #CF4A44) } .bar i.am { background-image: linear-gradient(#E79A1F, #E79A1F) } .bar i.grey { background-image: linear-gradient(#9AA4BD, #9AA4BD) }
.label { font-weight: 800; font-size: 14px; margin-top: 14px }
.sumline { display: flex; gap: 12px; align-items: center; padding: 5px 0 } .sumline span { flex: 1 } .sumline.strong { border-top: 1px solid var(--ln); font-size: 17px }

/* forms */
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 44px; padding: 8px 13px; border-radius: 12px; border: 1.5px solid #CBD2E4; background: #fff }
:is(input, select, textarea):focus { outline: 3px solid #C3CEF5; border-color: var(--p2) } input:disabled, select:disabled { background: var(--ln2) }
[dir="rtl"] input[dir] { text-align: right }
input.hide { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; padding: 0 }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 3px } .field small { display: block; margin-top: 2px }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.check { display: inline-flex; gap: 8px; align-items: center; padding: 6px 13px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px #D5DAE9; cursor: pointer; font-weight: 700; background: #fff } .check input { width: 18px; height: 18px; accent-color: var(--p); margin: 0; flex: none } .check:has(:checked) { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--p2) }
.checks { display: flex; flex-wrap: wrap; gap: 7px } .check.switch { border-radius: 14px } .check.switch small { display: block; font-weight: 400 }
.bare label { display: none } .fees .bare { width: 11em }
dialog { border: 0; padding: 0; color: inherit; background: #fff; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(8,12,32,.4) } dialog::backdrop { background: rgba(13,18,42,.5) }
dialog.wide { width: min(820px, calc(100vw - 24px)) }
dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 32px) }
dialog header { display: flex; align-items: center; padding: 14px 20px 6px } dialog header h2 { flex: 1; font-size: 20px; overflow-wrap: anywhere } .x { width: 40px; height: 40px; border-radius: 12px; font-size: 26px; line-height: 1; text-align: center } .x:hover { background: var(--ln2) }
dialog .body { padding: 6px 20px 16px; overflow-y: auto } dialog .body > * + * { margin-top: 12px }
.foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--ln) } .foot .main { flex: 1 1 10em }
.person { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 14px; padding: 11px 14px } .person small { display: block } .person strong { font-size: 20px }
.clears p { padding: 2px 0 } .pick { max-height: 46vh; overflow-y: auto }
.code { font: 800 32px/1.4 ui-monospace, Consolas, monospace; text-align: center; color: var(--p); direction: ltr; letter-spacing: .05em }
input.codebox { font: 800 22px/1.3 ui-monospace, Consolas, monospace; text-transform: uppercase; text-align: center; direction: ltr }
.toast { position: fixed; inset-block-end: 22px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; gap: 16px; align-items: center; background: #171D3A; color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: 0 14px 34px rgba(8,12,32,.4); max-width: calc(100vw - 24px) } .toast button { color: var(--am); font-weight: 800 }

/* home */
.hero { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-radius: 20px; padding: 22px 26px } .hero h1 { font-size: 30px } .hero small { color: #D5DCF5 } .hero .grow { flex: 1 1 18em } .hero .btn { min-height: 52px; font-size: 16px }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.tile { background: #fff; border-radius: 18px; box-shadow: var(--lift); padding: 14px 16px; text-decoration: none; color: inherit; display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-items: center } .tile svg { grid-row: 1 / 4 } .tile span { color: var(--t2); font-weight: 700; font-size: 14px } .tile strong { font: 700 22px/1.25 var(--head); overflow-wrap: anywhere } a.tile:hover { box-shadow: 0 0 0 1.5px var(--p2) }
.cols { display: flex; gap: 12px; height: 190px } .cols > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; min-width: 0; font-size: 13px } .cols b { font-size: 12px } .cols i { height: calc(var(--h) * .74); min-height: 3px; background: #AEBADF; border-radius: 8px 8px 3px 3px; width: min(54px, 100%); margin: 3px auto 5px } .cols i.now { background: var(--p2) }
.step { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1.5px var(--ln) } .step:hover { background: var(--soft) } .step b, .step small { display: block }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px } .facts small, .facts b { display: block }
.more { font-weight: 800 }

/* attendance, exams */
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px }
.kid { display: flex; gap: 10px; align-items: center; min-height: 56px; padding: 7px 11px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--ln) } .kid b, .kid small { display: block } .kid span { min-width: 0; overflow-wrap: anywhere } .kid i { width: 34px; height: 34px; border-radius: 34px; display: grid; place-items: center; background: var(--okb); color: var(--ok); font: 800 13px/1 var(--body); flex: none }
.kid:hover { background: var(--soft) } .kid.a { background: var(--dgb); box-shadow: none } .kid.a i { background: var(--dg); color: #fff } .kid.a small { color: var(--dg) } .kid.l { background: var(--wnb); box-shadow: none } .kid.l i { background: var(--am); color: #2B1B00 } .kid.l small { color: var(--wn) }
.counts { display: flex; flex-wrap: wrap; gap: 6px } .stick { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 14px 0 4px } .stick .btn { min-width: 220px }
.days input { width: auto; min-height: 40px }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px } .cardlink { text-decoration: none; color: inherit } .cardlink:hover { box-shadow: 0 0 0 1.5px var(--p2) } .cardlink small { display: block }
.ec { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center } .ec > * { margin: 0 } .ec img { border-radius: 14px } .ec .grow { flex: 1 1 16em }
.wide-scroll { overflow: auto; max-height: 74vh; border-radius: 12px; box-shadow: 0 0 0 1px var(--ln) }
.marks { width: auto; min-width: 100%; border-collapse: separate; border-spacing: 0 } .marks th, .marks td { border-bottom: 1px solid var(--ln2); padding: 3px 5px; background: #fff }
.marks thead th { position: sticky; top: 0; z-index: 2; background: #F4F6FB; padding: 6px } .marks thead button { display: block; width: 100%; min-width: 68px; text-align: center; border-radius: 8px } .marks thead button:hover { background: #E2E8F8 } .marks thead :is(b, small) { display: block }
.marks th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; text-align: start; min-width: 170px; max-width: 240px; font-weight: 700 } .marks thead th:first-child { z-index: 3 }
.marks tbody th i { display: inline-block; min-width: 26px; font: 800 13px/1 var(--body); color: var(--t2) } .marks tbody th small { display: block }
.marks td input { text-align: center; font-weight: 800; min-height: 40px; min-width: 64px; padding: 4px; font-variant-numeric: tabular-nums } .marks td input.away { color: var(--dg); background: var(--ln2) } .marks td input.bad { border-color: var(--dg); background: var(--dgb); color: var(--dg) }
.marks .sum { white-space: nowrap; text-align: center }
.place { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 32px; background: var(--soft); font: 800 14px/1 var(--body); color: var(--p) } .top3 { background: var(--am); color: #2B1B00 }

/* settings, help */
.logo { display: flex; gap: 16px; align-items: center } .logo img { width: 84px; height: 84px; object-fit: contain; border-radius: 14px; box-shadow: 0 0 0 1px var(--ln) }
.chat { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px } .msg { align-self: flex-end; max-width: 82% } .msg p { background: var(--soft); border-radius: 16px; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere } .msg small { display: block; padding: 1px 8px; text-align: end } .msg.us { align-self: flex-start } .msg.us p { background: #F1F2F6 } .msg.us small { text-align: start }
.talk textarea { flex: 1 1 14em; resize: vertical }
details { border-top: 1px solid var(--ln2); padding: 8px 0 } summary { font-weight: 800; cursor: pointer } details p { padding-top: 5px; color: var(--t2) }

/* the door */
.gate { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center } .gate .left { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 30px } .gate .left h1 { font-size: 40px } .gate .left p { max-width: 26em; font-size: 18px; color: #E5EAFB }
.gate .card { width: min(430px, calc(100vw - 28px)); margin: 24px auto; background: #fff; border-radius: 24px; box-shadow: var(--lift); padding: 24px } .gate .card > * + * { margin-top: 13px } .gate .card h2 { font-size: 24px } .gate ol { padding-inline-start: 22px } .gate li { padding: 2px 0 } .gate .btn { width: 100% } hr { border: 0; border-top: 1px solid var(--ln) }
.gate > .card:only-child { grid-column: 1 / -1; text-align: center }

/* paper: vouchers, receipts, report cards */
#paper { display: none }
.page { background: #fff; color: #111; font-size: 13px; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact } [lang="ur"] .page { line-height: 1.7 }
.page article { display: flex; flex-direction: column } .page header { display: flex; align-items: center; gap: 10px; text-align: center; border-bottom: 2px solid var(--p); padding-bottom: 6px; margin-bottom: 6px } .page header div { flex: 1; min-width: 0 } .page header :is(img, i) { width: 46px; height: 46px; object-fit: contain; flex: none } .page h1 { font-size: 18px; color: var(--p) } .page h2 { text-align: center; font-size: 14px; margin: 4px 0 6px }
.page .line { display: flex; gap: 10px; padding: 2px 0 } .page .line span { flex: 1 } .page .line b { text-align: end; overflow-wrap: anywhere } .page .sum { font-size: 17px; background: #EEF1FB; padding: 5px 8px; border-radius: 6px } .page hr { border-top: 1px dashed #99A; margin: 5px 0; width: 100% }
.page.card footer { margin-top: auto; padding-top: 60px; display: flex; gap: 24px } .page.card footer span, .voucher footer, .receipt footer { border-top: 1px solid #555; flex: 1; text-align: center; padding-top: 4px }
.voucher { display: flex } .voucher article { flex: 1; min-width: 0; padding: 0 14px; border-inline-end: 1px dashed #889 } .voucher article:last-child { border: 0 } .voucher .copy { text-align: center; font-weight: 800; font-size: 12px; color: #555 } .accounts { border: 1px solid #BBC; border-radius: 6px; padding: 5px 8px; margin: 7px 0; font-size: 12px }
.voucher footer { margin-top: auto; flex: none } .receipt footer { flex: none; margin-top: 60px }
.receipt article { max-width: 340px; margin: 0 auto }
.known { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin: 8px 0 } .page.card table { font-size: 14px } .page.card :is(th, td) { border: 1px solid #99A3BF; padding: 6px 9px; text-align: center } .page.card :is(th, td):first-child { text-align: start } .page.card :is(thead, tfoot) { background: #EEF1FB; font-weight: 800 } .page.card .many :is(th, td) { padding: 3px 8px; font-size: 13px } .page.card .low { color: var(--dg) }
.boxes { display: flex; gap: 10px; margin: 14px 0 } .boxes div { flex: 1; border: 1.5px solid var(--p); border-radius: 10px; text-align: center; padding: 7px } .boxes b { font-size: 20px; display: block } .page.card article > p { padding: 3px 0; font-size: 15px } .page.card h1 { font-size: 25px } .page.card h2 { font-size: 16px } .page.card header :is(img, i) { width: 66px; height: 66px }
.look { overflow-x: auto; padding: 4px } .look .page { width: 1040px; min-height: 620px; padding: 22px 8px; border-radius: 10px; box-shadow: var(--lift) }
@page { size: A4; margin: 12mm }
@page land { size: A4 landscape; margin: 9mm 5mm }
@media print {
  body { background: #fff } #app, dialog, .toast { display: none !important } #paper { display: block }
  .page { break-after: page } .page:last-child { break-after: auto } .voucher { page: land; height: 188mm } .page.card article { min-height: 262mm }
}

@media (max-width: 1080px) { .two { grid-template-columns: minmax(0, 1fr) } .tiles { grid-template-columns: 1fr 1fr } }
@media (max-width: 820px) {
  #app.in { display: block; padding-bottom: 68px } main { margin: 0; border-radius: 0; padding: 14px 12px 24px; box-shadow: none; min-height: calc(100vh - 68px) } main > * + *, .two > div:not(.panel) > * + * { margin-top: 12px } .two { gap: 12px }
  h1 { font-size: 22px } .hero { padding: 18px } .hero h1 { font-size: 24px } .hero .btn { flex: 1 }
  .low { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; background: #fff; box-shadow: 0 -1px 0 var(--ln), 0 -10px 24px -14px rgba(20,27,61,.3); padding-bottom: env(safe-area-inset-bottom) } .low > * { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 64px; text-decoration: none; color: var(--t2); font-size: 12px; font-weight: 700; min-width: 0 } .low [aria-current] { color: var(--p); font-weight: 900 } .low .dot { position: absolute; margin: 0; transform: translate(16px, -22px) }
  aside { position: fixed; z-index: 8; inset-block: 0; inset-inline-start: 0; width: 272px; background: var(--cv); visibility: hidden; transform: translateX(-100%); transition: transform .18s, visibility .18s } [dir="rtl"] aside { transform: translateX(100%) } #app.open aside { transform: none; visibility: visible } #app.open .veil { display: block; position: fixed; inset: 0; z-index: 7; background: rgba(13,18,42,.5) }
  :is(th, td, span, small).wide { display: none } .panel { padding: 13px } .tiles { gap: 10px } .tile { padding: 11px 12px; column-gap: 9px } .tile svg { width: 34px } .tile strong { font-size: 18px }
  .top small.grow { flex: 1 0 auto } .tools { min-width: 0 } .tools > .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding: 2px 12px; max-width: 100vw; scrollbar-width: none } .list td.act { white-space: normal } .list td, .list th { padding-inline: 5px }
  dialog, dialog.wide { margin-bottom: 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0 } .kids { grid-template-columns: 1fr 1fr } .stick { bottom: 64px } .marks th:first-child { min-width: 118px; max-width: 130px } .demo { inset-block-end: 70px; inset-inline: 8px; font-size: 13px }
  .gate { display: block } .gate .left { min-height: 0; padding: 26px 20px } .gate .left svg { width: 60px; height: 60px } .gate .left h1 { font-size: 28px } .gate .left p { font-size: 15px }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important } }

/* the admin page */
.cols.thin { gap: 4px; height: 170px } .cols.thin i { width: min(22px, 100%); border-radius: 5px 5px 2px 2px } .cols.thin span { font-size: 11px; white-space: nowrap }
.talks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) } .chat.tall { max-height: 56vh } .cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw }
@media (max-width: 820px) { .talks { grid-template-columns: minmax(0, 1fr) } .talks > :nth-child(2) { order: -1 } .cut { max-width: 60vw } }
