/* SEM Media LMS · the LMS's own shell pieces on top of the v2 kit (lms.css stays exactly as the guide ships it).
   Only kit tokens are used here, so every LMS colour and both themes work. */

/* Header: the page name when a screen gives no heading of its own, and the signed-out brand + language. */
.top-head{min-width:0}
.top-title{margin:0;font-size:20px;font-weight:700;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container app (min-width:700px){.top-title{font-size:24px}}
.top-brand .brand{padding:0;text-decoration:none;color:var(--fg)}
.foot-lang{display:flex;gap:6px;align-items:center;margin:0}
.foot-lang .inp{width:auto;padding-block:6px}
.top .top-head h1{margin:0}

/* The LMS's logo: uploaded by the SEM Media team, light and dark versions. */
.brand{color:var(--fg)}
.brand-logo{max-height:40px;max-width:200px;width:auto;height:auto;vertical-align:middle}
.brand-logo.on-plate{background:#fff;padding:4px 8px;border-radius:8px}
.side .brand-logo{max-width:72px;max-height:48px}
.side nav{display:grid;gap:2px}

/* The bell: a panel over the page. */
.bell{position:relative}
.bell>summary{list-style:none;cursor:pointer}
.bell>summary::-webkit-details-marker{display:none}
.bell .cnt{top:0;right:0}
.bell-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:min(380px,calc(100vw - 32px));max-height:min(70vh,560px);
  display:flex;flex-direction:column;background:var(--surface);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.bell-head,.bell-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px}
.bell-head{border-bottom:1px solid var(--line)}
.bell-head form{margin:0}
.bell-foot{border-top:1px solid var(--line);font-size:13px}
.bell-foot a{color:var(--accent);font-weight:600;text-decoration:none}
.bell-list{list-style:none;margin:0;padding:4px 0;overflow-y:auto}
.bell-item{display:grid;grid-template-columns:10px 1fr;gap:10px;padding:10px 16px}
.bell-item+.bell-item{border-top:1px solid color-mix(in oklab,var(--line) 60%,transparent)}
.bell-dot{width:8px;height:8px;border-radius:50%;margin-top:7px}
.bell-item.is-new .bell-dot{background:var(--accent)}
.bell-title{margin:0;font-weight:600;overflow-wrap:anywhere}
.bell-title a{color:inherit;text-decoration:none}
.bell-title a:hover,.bell-title a:focus-visible{text-decoration:underline}
.bell-body{margin:2px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.bell-time{margin:4px 0 0;color:var(--muted);font-size:12px}
.bell-empty{padding:20px 16px;color:var(--muted);margin:0}
@container app (max-width:699px){.bell-panel{position:fixed;top:64px;right:12px;left:12px;width:auto}}

/* The line under every page: theme (signed out), sign out, and the optional SEM Media credit. */
.foot-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:18px 0 6px;color:var(--muted);font-size:13px}
.foot-line form{margin:0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.foot-line .btn[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft)}
.platform-credit{width:100%;margin:4px 0 0;text-align:center;font-size:12px;color:var(--muted)}
.platform-credit a{color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
/* 1.26.4 (owner): the credit is the name only; the font's narrow spaces made "SEM MEDIA (PVT) LTD" look run together. */
.credit-name,.co-name{word-spacing:.25em;letter-spacing:.02em;white-space:nowrap}

/* Banners carry a form or button at the end. */
.banner form{margin:0}
.banner .i{width:18px;height:18px}
.toasts{position:fixed;left:0;right:0;bottom:0;pointer-events:none;padding:0 12px 90px;display:grid;gap:8px;justify-items:center;z-index:70}
.toasts .toast{pointer-events:auto;position:static}
@container app (min-width:700px){.toasts{padding-bottom:24px}}

/* Show/hide password: keep room for the eye button inside the filled field. */
.pw-field>input[type="password"],.pw-field>input[type="text"]{padding-right:52px}

/* Chips that are buttons (language and theme on the sign-in card). */
.chips button{border:0;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;font-weight:600;color:var(--muted);background:transparent;cursor:pointer;min-height:32px}
.chips button.on{background:var(--accent);color:var(--accent-fg)}
.chips button:hover:not(.on){background:var(--surface2)}
form.chips{margin:0}
.authcard .seg{justify-self:center}
.authcard .banner{text-align:left}
.authcard form{display:grid;gap:12px}
.authcard form.chips{display:flex}
.seg{display:inline-flex;flex-wrap:wrap;gap:2px;padding:4px;border:0}
.seg .btn{background:transparent;min-height:36px}
.seg .btn.on{background:var(--accent);color:var(--accent-fg)}
.seg label.btn{cursor:pointer}

/* Registration (guide screen 02): progress bars and the countdown in the header. */
.reg-card{border:0;border-radius:24px;box-shadow:0 1px 2px color-mix(in oklab,var(--fg) 5%,transparent)}
.reg-steps{display:flex;gap:6px;margin:0 0 30px}
.reg-steps li{flex:1;display:block;position:relative}
.reg-steps li span{display:block;width:auto;height:6px;border-radius:99px;background:var(--line);font-size:0;box-shadow:none}
.reg-steps li.is-current span,.reg-steps li.is-done span{background:var(--accent);box-shadow:none}
.reg-steps li em{display:none}
.reg-steps li.is-current em{display:block;position:absolute;left:0;top:14px;white-space:nowrap;font-size:13px;color:var(--muted)}
.top .timer.reg-timer{margin:0;color:var(--warn)}
.top .timer.is-expired{white-space:normal;font-size:12px;max-width:50%}
@container app (max-width:699px){.top:has(h1) .top-brand .brand>div:not(.logo){display:none}}
.foot-lang select{width:auto}

/* Rows that are links, and rows built from spans. */
a.row{color:inherit;text-decoration:none}
a.row:hover .t{color:var(--accent)}
.row span.grow,.row span.t,.row span.s{display:block}
.row span.grow{flex:1;min-width:0}
.lesson.u-prose{max-width:none}

/* The sign-in picture or icon the SEM Media team set for this LMS. */
.sign-in-image{display:block;justify-self:center;max-width:100%;max-height:160px;width:auto;height:auto;border-radius:16px;object-fit:contain}

/* Older screens' link lists, drawn as kit rows (icon, text, chevron on one line). */
.link-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.link-list>li{display:block}
.link-list .link-row{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:52px;padding:10px 10px;color:var(--fg);text-decoration:none;border-radius:12px;border-bottom:0;background:transparent}
.link-list .link-row:hover{background:var(--surface2)}
.link-list .link-row>.icon:first-child{flex:none;box-sizing:content-box;width:18px;height:18px;padding:8px;border-radius:12px;color:var(--accent);background:var(--accent-soft)}
.link-list .link-row>span:first-of-type{flex:1;min-width:0}
.link-list .link-row .chev{flex:none;margin-left:auto}

/* Long titles (course names, Sinhala and Tamil) wrap to two lines instead of being cut. */
.top h1,.top .top-title{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.2}
.side nav{width:100%;min-width:0}
.side nav a{max-width:100%;min-width:0;overflow-wrap:break-word;hyphens:auto}
/* 1.9.1: in the icon rail a long label ("Assessments") keeps its word whole instead of breaking mid-word. */
@container app (min-width:700px){.side nav a{padding-inline:2px;font-size:10.5px;letter-spacing:-.01em;word-spacing:.12em}}
.side .brand{max-width:100%}

/* Printing (ID cards, certificates, receipts): only the page, full width, on white. */
@media print{
  .side,.bbar,.top,.foot-line,.toasts,.skip-link{display:none!important}
  .app{display:block;min-height:0;background:#fff;color:#000}
  body{background:#fff}
  .content{padding:0}
}

/* 1.9.0: the footer sits at the bottom of the screen. The page area grows, so a
   short page pushes the footer down instead of leaving it half way up. */
.main>.content{flex:1 0 auto}
.main>.foot-line{padding:14px 16px 16px}

/* 1.9.0 overview: figures that are links, each staff member's day, and the help desk. */
a.kpi{color:inherit;text-decoration:none;display:block}
a.kpi:hover{border-color:var(--accent)}
.staff-row{align-items:flex-start}
.staff-row .stack{gap:6px}
.staff-row .s .i{width:14px;height:14px;vertical-align:-2px}
.plan-lines{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13px}
.plan-lines li{display:flex;gap:8px;align-items:center;min-width:0}
.plan-lines li.done span:last-child{color:var(--muted);text-decoration:line-through}
.plan-lines .tick{width:18px;height:18px}
.desk-row{align-items:flex-start;flex-wrap:wrap}
.desk-row .desk-text{white-space:normal;overflow-wrap:anywhere}
.plan-form{display:grid;gap:10px;grid-template-columns:1fr}
@container app (min-width:700px){.plan-form{grid-template-columns:160px 130px minmax(0,1fr) auto;align-items:end}}
.tick-btn{border:0;background:transparent;padding:4px;cursor:pointer;border-radius:50%}
.tick-btn:focus-visible{outline:2px solid var(--accent)}
.tw{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
/* A row of filters above a list: the search box grows, the rest take what they need. */
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.filters>.field{flex:1 1 150px}
.filters>.field.grow-2{flex:3 1 240px}
.row.u-p0{padding:0}
img.av{object-fit:cover}

/* 1.9.0 orders list: sortable headings, the ⋮ menu, and how each order was paid. */
.tbl th a.sort{color:inherit;text-decoration:none;display:inline-flex;gap:4px;align-items:center}
.tbl th a.sort.on{color:var(--accent)}
.tbl th a.sort .i{width:14px;height:14px}
.tbl td.wrap{white-space:normal;min-width:160px}
.tbl .t{font-weight:600;color:var(--fg);text-decoration:none}
.tbl a.t:hover{color:var(--accent)}
.nowrap{flex-wrap:nowrap}
.inp.inp-auto{width:auto}
details.menu{position:relative}
details.menu>summary{list-style:none}
details.menu>summary::-webkit-details-marker{display:none}
.menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:200px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:6px;display:grid;gap:2px}
.menu-panel form{display:grid;gap:2px;margin:0}
.menu-item{display:flex;gap:8px;align-items:center;padding:8px 10px;border-radius:8px;border:0;background:transparent;color:var(--fg);font:inherit;font-size:13px;text-align:left;cursor:pointer;text-decoration:none;width:100%}
.menu-item:hover{background:var(--surface2)}
.pill.paid-card-free{background:var(--ok-bg);color:var(--ok)}
.pill.paid-card-half{background:var(--warn-bg);color:var(--warn)}
.pill.paid-card-full,.pill.paid-full{background:var(--accent-soft);color:var(--accent)}
.pill.paid-discounted{background:var(--bad-bg);color:var(--bad)}
.thumb-sm{width:56px;height:32px;border-radius:6px;object-fit:cover;flex:none;background:var(--surface2)}
.chip-person{display:inline-flex;align-items:center;gap:6px;margin:2px 8px 2px 0}
.tbl .s{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
form.inline{display:inline}
.link-button{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
.quick-edit .menu-panel{left:0;right:auto;min-width:300px;padding:12px;white-space:normal}
.quick-edit>summary{display:inline}
label.check{display:flex;gap:6px;align-items:center;font-size:13px}

/* 1.9.0 Lessons page: recordings on each card and the student's own recordings strip. */
.shop-rec{position:absolute;left:8px;bottom:8px;display:inline-flex;gap:5px;align-items:center;padding:3px 9px;border-radius:99px;background:rgba(0,0,0,.62);color:#fff;font-size:12px;font-weight:600}
.shop-rec .i{width:13px;height:13px}
.rec-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,240px);gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
.rec-card{display:grid;gap:4px;color:var(--fg);text-decoration:none;min-width:0}
.rec-card b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rec-thumb{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,color-mix(in oklab,var(--accent) 30%,var(--surface)),var(--surface2))}
.rec-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rec-play{position:relative;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.92);color:#111;display:grid;place-items:center}
.rec-card:hover .rec-play{background:var(--accent);color:var(--accent-fg)}

/* 1.9.0 reports: a ring chart with its legend, bar meters in tables, and wider bar charts. */
.donut-wrap{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.donut{width:150px;height:150px;flex:none}
.donut .track{stroke:var(--surface2)}
.donut .c0,.dot.c0{stroke:var(--accent);background:var(--accent)}
.donut .c1,.dot.c1{stroke:var(--warn);background:var(--warn)}
.donut .c2,.dot.c2{stroke:var(--ok);background:var(--ok)}
.donut .c3,.dot.c3{stroke:var(--bad);background:var(--bad)}
.donut .c4,.dot.c4{stroke:color-mix(in oklab,var(--accent) 45%,var(--surface));background:color-mix(in oklab,var(--accent) 45%,var(--surface))}
.donut .c5,.dot.c5{stroke:var(--muted);background:var(--muted)}
.legend{list-style:none;margin:0;padding:0;display:grid;gap:8px;flex:1;min-width:200px}
.legend li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:13px}
.legend li .note{width:100%;padding-left:18px}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.card>.bars{max-width:560px;width:100%;justify-self:center}
.meter{display:flex;gap:8px;align-items:center;min-width:140px}
.meter .prog{flex:1}
.meter span{font-variant-numeric:tabular-nums;font-weight:600;font-size:12px;min-width:36px;text-align:right}
.register-row{flex-wrap:wrap}
.seg button.btn{border:0;cursor:pointer}

/* 1.9.0: the kit's own classes for pieces every older screen had. These replace the bridge's
   .panel, .stat-row, .section-head, .notice, .empty-state, .chip-row and friends. */
.tabs a[aria-current="page"]{background:var(--accent);color:var(--accent-fg)}
ul.kpis{list-style:none;margin:0;padding:0}
.kpi{display:flex;flex-direction:column;gap:2px}
.kpi>b{order:-1}
.kpi .note{font-size:11px}
.sec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.sec-head>*{min-width:0}
.sec-head h2,.sec-head h3,.sec-head p{margin:0}
p.banner,div.banner{margin:0}
.banner a{color:inherit;font-weight:600}
.empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:32px 16px;color:var(--muted)}
.empty .empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--surface2);color:var(--accent)}
.crumb{margin:0;font-size:13px;color:var(--muted)}
.crumb a{color:var(--accent)}
.note.block,.block{display:block}
.inline-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:100%}
.inline-form>*{min-width:0;max-width:100%}
.inline-form input,.inline-form select{flex:1 1 10rem;width:auto}
ul.list,ol.list{list-style:none;margin:0;padding:0}
ul.list>li,ol.list>li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--line);min-width:0}
ul.list>li:last-child,ol.list>li:last-child{border-bottom:0}
ul.list>li>p{margin:0}
.card>h2,.card>h3{margin:0}
.card>h2{font-size:15px;font-weight:650}
.card>p{margin:0}
.btnrow>form{margin:0}
/* 1.18.0 (R-135, R-136): a row of small buttons that belong together (Add, Import, Export menu, ...). */
.btngrp{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.btngrp>form{margin:0}
.btngrp .menu-panel{left:0;right:auto}
.btngrp .cols-menu .menu-panel{min-width:min(21rem,calc(100vw - 2rem));padding:12px;white-space:normal}
.btngrp summary.btn{list-style:none}
.btngrp .cols-menu .column-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,10rem),1fr));gap:6px 14px;max-height:50vh;overflow-y:auto}
.u-bad.note{color:var(--bad)}
/* My learning: the kit's course cards, with the course's picture when it has one. */
.cols.course-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.course .img{position:relative;overflow:hidden;text-decoration:none}
.course .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.course .course-title{white-space:normal;color:var(--fg);text-decoration:none}
.av.av-lg{width:56px;height:56px;font-size:18px}
.card>*,.cols>*{min-width:0}
.tw>.tbl{display:table;width:100%}
.tw{position:relative}

/* 1.9.0: on a phone a header button with an icon shows the icon only, so the page title keeps its room
   (the words stay for screen readers). */
@media (max-width:600px){
  .top>.btn:has(svg)>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .top>.btn:has(svg){padding-inline:12px}
}
/* 1.10.0: the total on a bill from SEM Media. */
.bill-total .t,.bill-total .v{font-weight:700}

/* 1.11.0: the student home's slides, chart keys and the study log. */
.home-slider .slides{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:4px}
.home-slider .slide{flex:0 0 100%;scroll-snap-align:start;display:grid;gap:10px;align-content:start;min-width:0}
.home-slider .slide-img{width:100%;max-height:160px;object-fit:cover;border-radius:12px}
@media (min-width:900px){.home-slider .slide{flex-basis:calc(50% - 6px)}}
.chart-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.chart-key .key{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:-6px}
.chart-key .key-acc{background:var(--accent)}
.chart-key .key-muted{background:var(--muted);opacity:.45}
.study-log{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;align-items:end;margin-top:12px}
[data-countdown].is-live{background:var(--ok-bg);color:var(--ok)}
/* 1.11.0: the two-step course wizard. */
.steps-mini{display:flex;gap:8px;list-style:none;margin:0 0 12px;padding:0;flex-wrap:wrap;counter-reset:s}
.steps-mini li{counter-increment:s;padding:6px 12px;border-radius:999px;background:var(--surface2);color:var(--muted);font-size:13px}
.steps-mini li::before{content:counter(s) ". "}
.steps-mini li.on{background:var(--accent);color:var(--accent-fg)}
/* 1.16.0 (R-63): a step already done (the payment page's progress), in place of the bridge's .pay-steps. */
.steps-mini li.done{background:var(--ok-bg);color:var(--ok)}
.steps-mini li.done::before{content:"✓ "}
.choice-cards{border:0;margin:0;padding:0;display:grid;gap:10px}
.choice-cards legend{font-weight:600;margin-bottom:6px}
.choice-card{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
.choice-card:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.choice-card input{margin-top:4px}
.choice-card small{display:block;margin-top:2px}
/* 1.11.0: the course builder's sections and lesson-type buttons. */
.curriculum-section>summary{list-style:none;cursor:pointer}
.curriculum-section>summary::-webkit-details-marker{display:none}
.lesson-types{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.lesson-meeting{margin:12px 0}
.faq-row{border-bottom:1px solid var(--line);padding-bottom:8px}

/* 1.11.2: the computer's sidebar fits the screen instead of scrolling: tighter on shorter or
   narrower screens, icons only (the name shows on hover and is read out) on the smallest. */
@container app (min-width:700px){
  .side{max-height:100dvh}
}
@media (min-width:700px) and (max-height:900px){
  .side nav a{padding-block:7px;gap:3px}
  .side nav a svg{width:20px;height:20px}
  .side .brand{padding-bottom:8px}
}
@media (min-width:700px) and (max-height:760px){
  .side{gap:2px;padding-block:10px}
  .side nav a{padding-block:5px;gap:2px;font-size:10px}
  .side nav a svg{width:18px;height:18px}
  .side .logo{width:34px;height:34px}
}
@media (min-width:700px) and (max-height:640px), (min-width:700px) and (max-width:1100px){
  .app:not(.auth){grid-template-columns:68px minmax(0,1fr)}
  .side{padding-inline:8px}
  .side nav a{padding:9px 4px}
  .side nav a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .side nav a svg{width:20px;height:20px}
}

/* 1.14.0 (R-24): every scrolling menu follows the screen and the zoom level. Heights come from the
   dynamic viewport (100dvh, with 100vh for browsers without it) less room for the bar the menu hangs
   from; sizes are in rem so the text-size setting scales them too (browser zoom shrinks the viewport
   in CSS pixels, so the same rules fit it). Each one scrolls inside itself, never drags the page
   behind it, and never runs off the screen: static/js/ui.js flips row menus upwards near the bottom. */
.side{max-height:100vh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.row-menu-body,.menu-panel{box-sizing:border-box;max-height:calc(100vh - 6rem);max-height:calc(100dvh - 6rem);overflow-y:auto;overscroll-behavior:contain;
  max-width:calc(100vw - 1rem);min-width:min(11rem,calc(100vw - 1rem));scrollbar-width:thin}
.quick-edit .menu-panel{min-width:min(18.75rem,calc(100vw - 1rem))}
.bell-panel{max-height:min(70vh,35rem);max-height:min(70dvh,35rem)}
.bell-list{min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
@container app (max-width:699px){.bell-panel{max-height:calc(100vh - 9rem);max-height:calc(100dvh - 9rem)}}
.hour-list,.course-pick{max-height:min(26rem,60vh);max-height:min(26rem,60dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
dialog{max-height:calc(100vh - 3rem);max-height:calc(100dvh - 3rem);overflow-y:auto;overscroll-behavior:contain}
dialog.wa-setup{max-height:calc(100vh - 3rem);max-height:calc(100dvh - 3rem)}

/* 1.14.0 (R-33): the Preferences heading on the profile page. */
.pref-title{display:flex;align-items:center;gap:.5rem;margin:0}
#preferences{scroll-margin-top:1rem}

/* 1.16.0 (R-47): every button looks like a button without hovering, light and dark, on phones too. The
   "Tonal" skin gave a plain .btn a background almost the colour of its card and no border, so in the dark
   theme it read as plain text until the pointer arrived. The accent-tinted fill and edge below keep it
   visible on any card; ghost and quiet buttons stay text-like on purpose; .pri, .seg and pressed buttons
   have their own, more specific, looks. The fallback after --accent covers pages outside .app. */
.btn:where(:not(.ghost):not(.btn-quiet)){
  background:color-mix(in oklab,var(--accent,var(--brand)) 14%,var(--surface));
  border:1px solid color-mix(in oklab,var(--accent,var(--brand)) 55%,var(--line))}
.btn:where(:not(.ghost):not(.btn-quiet)):hover{background:color-mix(in oklab,var(--accent,var(--brand)) 24%,var(--surface))}
.btn:focus-visible{outline:2px solid var(--accent,var(--brand));outline-offset:2px}

/* 1.18.0 (R-112): the Lessons page as rows. Each row of cards scrolls sideways with snap (works with no JS);
   static/js/shop-rows.js adds the arrows and the "1-4 of 12" range, and folds the filters on a phone. */
.shop{min-width:0}
.shop-chips{margin-bottom:18px}
.shop-chips a{text-decoration:none}
.sec-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.sec-head .sp{margin-left:auto;display:flex;align-items:center;gap:8px}
.sec-head .lnk{display:inline-flex;align-items:center;gap:2px;margin-left:6px;color:var(--accent);font-weight:600;font-size:13px;text-decoration:none;white-space:nowrap}
.sec-head .lnk .i{width:16px;height:16px}
.sec-head .lnk:hover{text-decoration:underline}
.shop-row-title{margin:0;font-size:1.25rem;line-height:1.2}
.shop-row-title .cnt{color:var(--muted);font-size:.8em;font-weight:500}
.shop-row-range{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.shop-row-btn{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--surface2);color:var(--fg);cursor:pointer}
.shop-row-btn:hover:not(:disabled){background:var(--accent);color:var(--accent-fg)}
.shop-row-btn:disabled{opacity:.4;cursor:default}
.shop-row-btn[hidden],.shop-row-range[hidden],.shop-filter-toggle[hidden]{display:none}
.shop-row{display:flex;gap:16px;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 4px 12px;margin:-4px -4px 0;scroll-padding-inline:4px}
.shop-row::-webkit-scrollbar{display:none}
.shop-row>*{flex:0 0 280px;min-width:0;scroll-snap-align:start}
.shop-row-rec>*{flex-basis:270px;align-self:flex-start}
.shop-row-more{display:grid;flex:0 0 150px;place-content:center;justify-items:center;gap:6px;padding:12px;border:1px dashed var(--line);border-radius:12px;color:var(--accent);font-weight:600;text-align:center;text-decoration:none}
.shop-row-more:hover{background:var(--surface2)}
.shop-owned{text-decoration:none}
.shop-back{margin:0 0 12px}
.shop-subgroup{margin-bottom:22px}
.shop-sub-title{margin:0 0 10px;font-size:.9375rem;color:var(--muted)}
.rec-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.shop-filter-toggle{display:none}
.shop-filter-extra{display:contents}
@container app (max-width:699px){
  .shop-row{margin-inline:-14px;padding-inline:14px;scroll-padding-inline:14px;gap:12px}
  .shop-row>*{flex-basis:262px}
  .shop-row-rec>*{flex-basis:230px}
  .shop-row-btn,.shop-row-range{display:none!important}
  .shop-row-title{font-size:1.125rem}
  .shop-filters.is-collapsible .shop-filter-toggle{display:inline-flex}
  .shop-filters.is-collapsible:not(.open) .shop-filter-extra{display:none}
  .shop-filters.is-collapsible .shop-filter-extra{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:1 0 100%}
  .shop-filters.is-collapsible .shop-filter-extra select{width:100%}
  .shop-filters.is-collapsible .shop-filter-extra .btn{grid-column:1 / -1}
}
/* 1.18.0 (R-116): the profile and Edit profile pages. Compact cards in a grid (one column on a phone, two
   or three on a computer), no full-width row holding a single field. */
.profile-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));align-items:start;margin:0 0 12px}
.profile-grid>.card{margin:0}
.profile-grid>.profile-devices{grid-column:1/-1}
.av.av-xl{width:72px;height:72px;font-size:24px;flex:none}
.profile-who{display:flex;align-items:center;gap:12px}
.profile-who img.av{object-fit:cover}
.profile-name{margin:0;font-size:18px;overflow-wrap:anywhere}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:8px 16px;margin:12px 0 4px}
.kv>div{min-width:0}
.kv dt{font-size:12px;color:var(--muted)}
.kv dd{margin:0;overflow-wrap:anywhere}
.profile-idcard{display:grid;gap:8px;justify-items:start;margin-top:12px}
.pref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.pref-field{display:grid;gap:4px;margin:0;align-content:start}
.pref-field label{margin:0;font-size:13px}
.pref-field select{width:100%}
.sec-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.sec-row>.grow{flex:1 1 10rem}
ul.devices>li>.grow{flex:1 1 10rem}
ul.devices .note{margin:2px 0 0}
.form-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:0 16px}
/* 1.18.0 (R-122): the logo is a link (home); it keeps the look it had as a plain block. */
.side a.brand{padding:4px 8px 14px;color:var(--fg);background:none;font-weight:inherit}
.side a.brand:hover{background:none}
@container app (min-width:700px){.side a.brand{justify-content:center;padding:4px 0 14px}}
@media (min-width:700px) and (max-height:900px){.side a.brand{padding-bottom:8px}}
/* 1.18.0 (R-122): a bigger bell and "?" in the top bar on a computer (still inside the bar). */
@container app (min-width:700px){.top .help-link,.top .bell>summary{width:44px;height:44px}.top .help-link .i,.top .bell>summary .i{width:24px;height:24px}}
/* 1.18.0 (R-118): the student's phone bar has the shop as a raised round button in the middle
   (Home, Learn, shop, Live Sessions, More). Only kit tokens, so both themes and every LMS colour work. */
.bbar{overflow:visible}
.bbar a.raise{position:relative;margin-top:-30px;gap:3px;min-width:60px;color:var(--accent);font-weight:700}
.bbar a.raise .raise-btn{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--accent);color:var(--accent-fg);
  box-shadow:0 0 0 5px var(--surface),0 6px 16px color-mix(in oklab,var(--fg) 30%,transparent)}
.bbar a.raise svg,.bbar a.raise.on svg{width:26px;height:26px;padding:0;border-radius:0;background:transparent}
.bbar a.raise.on .raise-btn{box-shadow:0 0 0 5px var(--surface),0 0 0 8px color-mix(in oklab,var(--accent) 35%,transparent),0 6px 16px color-mix(in oklab,var(--fg) 30%,transparent)}
.bbar a.raise:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:12px}
@media print{.bbar a.raise{margin-top:0}}

/* 1.18.0 (R-114): My payments. Subscriptions sit in one row (slide sideways when they don't fit; "View more" ends
   the row and opens the rest); All payments are cards, two to a row on a computer and one on a phone. */
.pay-block{display:grid;gap:12px;align-content:start;min-width:0}
.pay-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.pay-head h2{margin:0;font-size:18px;font-weight:700}
.pay-count{color:var(--muted);font-size:14px;font-weight:600}
.pay-subs{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}
.pay-subs.is-open{flex-wrap:wrap;overflow:visible}
.pay-sub{flex:0 0 min(86%,20rem);max-width:24rem;gap:8px;scroll-snap-align:start}
.pay-sub.is-urgent{border-color:var(--bad)}
.pay-sub-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px}
.pay-price{font-size:12px;font-weight:600;color:var(--muted)}
.pay-sub h3{margin:0;font-size:15px;overflow-wrap:anywhere}
.pay-sub .note,.pay-sub .btnrow{margin:0}
.pay-due{display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px;border-radius:9px;background:var(--surface2);font-weight:650}
.pay-due .i{width:17px;height:17px}
.pay-due.is-overdue{background:var(--bad-bg);color:var(--bad)}
.pay-due.is-today{background:var(--warn-bg);color:var(--warn)}
.pay-more{flex:0 0 8.5rem;display:grid;place-content:center;justify-items:center;gap:6px;padding:14px;text-align:center;
  border:1px dashed var(--line);border-radius:var(--r);background:var(--surface2);color:var(--fg);text-decoration:none;scroll-snap-align:end}
.pay-more:hover{border-color:var(--accent)}
.pay-more:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pay-more-arrow{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent);color:var(--accent-fg)}
.pay-fewer{margin:0;text-align:right}
.pay-list{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
.pay-item{gap:8px}
.pay-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pay-item-main{min-width:0}
.pay-item-main h3{display:block;margin:0;font-size:14px;overflow-wrap:anywhere}
.pay-item-main h3 a{color:inherit;text-decoration:none}
.pay-item-main .note{margin:2px 0 0;overflow-wrap:anywhere}
.pay-amount{flex:none;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.pay-item .banner{margin:0}
.pay-item-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.pay-links{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
.pay-show-more{margin:4px 0 0;text-align:center}
@container app (min-width:960px){
  .pay-sub{flex:1 0 16.5rem}
  .pay-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 1.19.0 (R-150): fixes from the real-browser UI sweep (scripts/ui_sweep.py). */
/* Text colours that were just under 4.5:1 on their tinted backgrounds (light theme; the dark shades already pass). */
:root{--ok:#177341;--warn:#8A5508;--bad:#B5352A}
.kpi:first-child span,.kpi:first-child small{opacity:1}
/* A form with a label above each box and the button below it (profile: email and mobile number, the code box). */
.inline-form.stack{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;justify-items:start;width:100%}
.inline-form.stack>label{font-weight:600}
.inline-form.stack>input,.inline-form.stack>select{width:100%;max-width:28rem;flex:none}
.inline-form.stack>.btn{margin-top:6px}
/* A notice keeps its text readable: the text takes a line of its own before the button wraps below it. */
.banner{flex-wrap:wrap}
.banner>span,.banner>p{flex:1 1 14rem;min-width:0;overflow-wrap:anywhere}
.banner>.btn,.banner>form{flex:none}
.banner+.banner,.banner+section.card{margin-top:0}
/* "Choose your language and theme": the legend sits above its buttons, not on a border. */
fieldset.field{border:0;padding:0;margin:0}
fieldset.field>legend{padding:0;margin:0 0 6px;font-weight:600}
/* The name beside the picture in the narrow side rail wraps instead of being cut. */
.side .me-top span.me-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.2;text-align:center;max-width:100%}
/* Chosen options in boxes that were a few pixels too narrow: a little less padding, an ellipsis as the last resort. */
select{text-overflow:ellipsis;padding-inline:8px 4px}
.msg-search .inp{flex:1 1 15rem;min-width:min(100%,15rem)}
@media (max-width:700px){
  /* Phone: every tap target is at least 40 px. */
  .top .ib,.ib{min-width:40px;min-height:40px}
  .btn.sm,.btn-small,.pill[href],a.pill,.tabs a,.seg button,.foot-lang button,.foot-lang select,.theme-form button,.lang-form button{min-height:40px}
  .btn.sm{padding-inline:12px}
  .brand,a.brand{min-height:40px}
  .banner>a.btn{min-height:40px}
  td>a,.list>li>a,.menu-item{display:inline-flex;align-items:center;min-height:40px}
  .inline-form select,.list-toolbar select,.bulk-bar select,.shop-filters select{max-width:100%}
  .inline-form select,.set-body select{width:100%;flex:1 1 100%}
}
/* A row of several controls (a student's name, a note box and a button) wraps rather than squeezing; a long name wraps. */
.row.wrap{flex-wrap:wrap}
.row.wrap>.grow{flex:1 1 8rem}
.row.wrap>select,.row.wrap>.inp{flex:1 1 11rem;min-width:0;width:auto}
.row .t{white-space:normal;overflow-wrap:anywhere}
/* The password box (with its show/hide button) is as wide as the other boxes of a stacked form. */
.inline-form.stack>.pw-field{width:100%;max-width:28rem}
/* In the narrow side rail the figure on an entry (a count of open items) stays visible. */
.side nav a span.cnt{position:absolute;width:auto;height:auto;overflow:visible;clip:auto;white-space:nowrap}
/* A figure after a heading ("(12)") is plain text, not the red badge. */
.shop-row-title .cnt{position:static;min-width:0;padding:0;background:none;line-height:inherit;border-radius:0}
/* A figure card on the accent colour keeps its link readable. */
.kpi:first-child a,.kpi:first-child .note{color:var(--accent-fg)}
.foot-theme .btn[aria-pressed="true"]{color:var(--fg);font-weight:700;border-color:var(--accent)}
#log-q{min-width:min(100%,17rem)}
@media (max-width:700px){
  .foot-theme .btn,.foot-theme button{min-height:40px}
  .inline-form input:not([type="checkbox"]):not([type="radio"]){flex:1 1 100%}
  /* A settings table that lists one control per row stacks on the phone. */
  table.stack-phone,table.stack-phone tbody,table.stack-phone tr,table.stack-phone td{display:block;width:100%}
  table.stack-phone tr{padding:8px 0;border-bottom:1px solid var(--line)}
  table.stack-phone td select{width:100%}
}
.phone-sum{display:none}
@media (max-width:700px){
  .chips button,.chips a,a.chip,.billing-tabs a,.share-btn,.btn-small,a.sort,a.r,a.lnk,.link-button,summary.link-button,.sec-head a,.kpi a.note,
  .tabs a,nav.tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:40px}
  /* 1.25.0 (owner's phone screenshot): a tab keeps its words' width; the row scrolls instead of squeezing them. */
  .tabs>a{flex:0 0 auto}
  /* The order page's one-row Items table: one cell under another, so the total's box stays on the screen. */
  /* The orders list on a phone: each order's state and total under its name (the other columns scroll). */
  .phone-sum{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:4px}
  table.order-items thead{display:none}
  table.order-items,table.order-items tbody,table.order-items tr,table.order-items td{display:block;width:100%}
  table.order-items td{padding:4px 0;border:0}
  table.order-items .phone-label{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:block}
  button:not(.pw-toggle):not(.cnt){min-height:40px}
  a.brand{min-width:40px}
  .list li>a:only-child,.card li>a:only-child{display:flex;align-items:center;min-height:40px}
}
/* Settings side menu and the other lists of links: 40 px high on the phone. */
a[data-set-link],.set-card-head.set-link,.set-row.link{min-height:40px}
a[data-set-link]{display:flex;align-items:center}
/* The follow-up "how it works" card keeps to the screen; its table scrolls inside it. */
.follow-how,.follow-how>*{min-width:0;max-width:100%}
.follow-how>summary{white-space:normal}
.row.wrap>.grow>input{min-width:min(100%,12rem)}
#log-q{flex:1 1 22rem;width:min(100%,22rem)}
div:has(>#log-q){flex:1 1 22rem}
.follow-how{grid-template-columns:minmax(0,1fr)}
.card fieldset.field>.seg{background:transparent;padding:0}

/* 1.20.0 (R-165): the sign-in code step and the authenticator set-up step look different.
   Sign-in: a lock, who is signing in, one big code box. Set-up: a tag, numbered steps beside the QR code. */
.step-head{display:flex;align-items:center;gap:10px}
.step-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent-soft);color:var(--accent);flex:none}
.step-icon svg{width:22px;height:22px}
.code-step .who{margin:0 0 4px;color:var(--muted)}
.code-step input.code-big{font-size:1.75rem;letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums;padding:14px 10px;min-height:60px}
.code-step input.code-big[inputmode="text"]{letter-spacing:.08em;font-size:1.25rem}
.code-step .other-way{text-align:center;margin:12px 0 4px}
.code-step form.not-you{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:4px;font-size:.92rem}
.code-step button.linkish{min-height:0;padding:0 .2rem;border:0;background:none;color:var(--accent);text-decoration:underline;font-weight:600;cursor:pointer}
.setup-tag{display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.setup-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin:8px 0}
.setup-grid .qr-frame{margin:0;max-width:220px}
.setup-steps{margin:0;padding-left:1.3em;display:grid;gap:8px}
@media (max-width:640px){.setup-grid{grid-template-columns:1fr}.setup-grid .qr-frame{margin:0 auto}}

/* 1.25.0 (R-189): the easiest pages for a student (docs/design/UI_1250_PLAN.md). */
/* A1: the course's own pages, every button whole; on a phone three to a row. */
.tabs.course-tabs a{gap:6px;flex:0 0 auto}
@media (max-width:640px){
  .tabs.course-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible}
  .tabs.course-tabs a{flex-direction:column;gap:4px;padding:10px 4px;min-height:60px;white-space:normal;text-align:center;font-size:12px;line-height:1.2}
}
/* B4: the whole lesson row opens the lesson. */
.lesson-row{position:relative}
.lesson-row a.lesson-go{text-decoration:none;font-weight:600;color:var(--text)}
.lesson-row a.lesson-go::after{content:"";position:absolute;inset:0}
.lesson-row a.lesson-go:focus-visible{outline:none}
.lesson-row:has(a.lesson-go:focus-visible){outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}
.lesson-row .btn{position:relative;z-index:1}
.lesson-row.is-done a.lesson-go{color:var(--muted)}
/* A2: a course picture that did not load. */
.img-fallback{display:grid;place-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 20%,var(--surface)),var(--surface2))}
.img-initials{font-weight:800;font-size:1.6rem;color:var(--accent);letter-spacing:.02em}
/* B5: one course on its own fills the row on a phone, instead of 70% of it with a gap beside. */
@media (max-width:640px){
  .shop-row>*:only-child{flex-basis:100%}
  .shop-row>*{flex-basis:min(280px,86%)}
}
.slides>.course-slide:only-child{flex-basis:100%}
@media (min-width:600px){.slides>.course-slide:only-child{flex-basis:calc(50% - 6px)}}
/* B3: the home figures in one row of three on a phone. */
@media (max-width:640px){
  .kpis.kpis-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .kpis.kpis-3 .kpi{padding:10px}
  .kpis.kpis-3 .kpi b{font-size:1.35rem}
  .kpis.kpis-3 .kpi span{font-size:11.5px;line-height:1.25}
}
/* A4: the payment page names the course; the amount stands out on its row; the receipt row stacks on a phone. */
.pay-amount{font-weight:800;font-size:1.05rem;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:640px){
  .row.receipt-row{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center}
  .row.receipt-row .grow{min-width:0}
  .row.receipt-row .btn{justify-content:center}
  /* Download receipt and View on one row, at one height. */
  .row.receipt-row .btn:first-of-type{grid-column:1}
  .row.receipt-row .btn+.btn{grid-column:2}
}
/* B7: the parent's child row is the way into the report. */
a.child-link{color:inherit;text-decoration:none;min-height:44px}
a.child-link:hover b,a.child-link:focus-visible b{text-decoration:underline}

/* 1.25.0 (G-171): registration offers the language and the theme as one optional pair, side by side on a computer. */
.reg-look{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:0;margin:4px 0 0;min-width:0}
.reg-look legend{font-weight:700;padding:0;margin-bottom:8px}
.reg-look .note{grid-column:1/-1;margin:0}
.reg-look .reg-field{grid-column:auto;margin:0}
@media (max-width:420px){.reg-look{grid-template-columns:1fr}.reg-look .reg-field{grid-column:1/-1}}

/* 1.25.0: buttons line up (owner, 2026-10-25). */
/* Sign-in: "Password" and "Code by SMS or email" are one two-part switch, both halves the same width. */
.authcard .seg{display:grid;grid-template-columns:1fr 1fr;justify-self:stretch;width:100%;gap:4px;padding:0}
.authcard .seg .btn{width:100%;min-width:0;min-height:40px;white-space:normal;text-align:center;justify-content:center;margin:0;padding-inline:8px}
/* Sign-in: the parent button is full width under New Student, like it. */
.authcard .signin-parent{display:grid;margin-top:0}
.authcard .signin-parent .btn{width:100%}
/* Language and theme buttons: centred, evenly spaced, the same height in both rows. */
.authcard form.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0}
.authcard form.chips button{flex:0 0 auto;min-height:40px;padding-inline:16px;white-space:normal}
/* Registration: the step title shows once (the bold one under the progress bar). */
.reg-steps li.is-current em{display:none}
.reg-steps{margin-bottom:16px}
/* Registration: the step is not a grey box under its title (the fieldset rule painted one, offset from the card). */
.reg-step{background:none;border-radius:0;padding:0;margin:0}
.reg-look{background:none;border-radius:0}
.reg-step>legend{margin-bottom:12px}
.reg-button{font-family:inherit}
/* Registration: the white card has the sign-in card's border and shadow, so it shows against the page. */
.reg-card{border:1px solid var(--line);box-shadow:0 1px 2px color-mix(in oklab,var(--fg) 5%,transparent)}
/* Every button sits on one line with the button beside it, at one height (a link and a button alike). */
.btn,a.btn,button.btn{box-sizing:border-box;line-height:1.2}
.btnrow,.inline-form,.btngrp,.actions,.reg-nav,.signin-choices{align-items:center}
.btnrow>.btn,.inline-form>.btn,.btngrp>.btn,.actions>.btn,.reg-nav>.btn,.signin-choices>.btn{margin-top:0;margin-bottom:0}
.btnrow>.btn+.btn,.btngrp>.btn+.btn,.actions>.btn+.btn{margin-left:0}
/* The language select and its Change button, and the theme buttons, share one height. */
.foot-line .btn,.foot-lang select,.foot-lang button{min-height:36px}
@media (max-width:700px){.foot-line .btn,.foot-lang select,.foot-lang button{min-height:40px}}
/* A recording whose course picture does not load shows the course initials in the corner, with the play button kept in the middle. */
.rec-thumb .img-initials{position:absolute;top:10px;left:14px;font-size:1.2rem}
/* Course tabs on a computer: the icon sits beside its word, centred on it, with a gap. */
.tabs.course-tabs a{display:inline-flex;align-items:center}
/* A parent's child card on a phone: the report button across the top, Attendance and Payments side by side under it. */
@media (max-width:520px){
  .child-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .child-actions .btn{justify-content:center;margin:0;width:100%}
  .child-actions:has(>.btn:nth-child(3)) .btn.pri{grid-column:1/-1}
}
