/* PickupLink - modern dark theme */
:root {
  --bg: #0b0f1a;
  --bg-2: #0f1524;
  --card: #151c2e;
  --card-2: #1b2438;
  --line: #263044;
  --text: #e7eaf2;
  --muted: #98a2b8;
  --primary: #6d8bff;
  --primary-strong: #8aa2ff;
  --primary-ink: #0b0f1a;
  --accent: #2dd4bf;
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.14);
  --danger: #fb7185;
  --danger-bg: rgba(251, 113, 133, 0.14);
  --info-bg: rgba(109, 139, 255, 0.14);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* The hidden attribute must win over any display rule below (.btn, .row, ...), or JS-toggled buttons show anyway. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(109, 139, 255, 0.16), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(45, 212, 191, 0.10), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; padding: 28px 16px 56px; }
.container { max-width: 1120px; margin: 0 auto; width: 100%; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 24px 0 8px; }
h3 { font-size: 1.05rem; margin: 14px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.inline { display: inline; }
.narrow { max-width: 540px; margin-left: auto; margin-right: auto; }
.mt { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex: none; }
.ic-lg { width: 28px; height: 28px; }

/* Top bar */
.topbar { background: rgba(11, 15, 26, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: inline-flex; align-items: center; justify-content: center; color: var(--primary-ink); }
.brand-school { font-weight: 500; color: var(--muted); font-size: 0.9rem; border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 0.93rem; }
.nav a, .nav button.link { color: var(--muted); padding: 6px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav button.link:hover { color: var(--text); background: var(--card-2); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--card-2); font-weight: 600; }
.nav a.btn { color: var(--primary-ink); }
.nav select { padding: 6px 10px; font-size: 0.9rem; width: auto; }
.role-menu { position: relative; margin-right: 6px; }
.role-menu-trigger { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font-size: 0.9rem; line-height: 1.15; cursor: pointer; user-select: none; }
.role-menu-trigger::-webkit-details-marker { display: none; }
.role-menu-trigger:hover, .role-menu[open] .role-menu-trigger { background: var(--card-2); }
.role-menu-current { display: flex; flex-direction: column; align-items: flex-start; }
.role-menu-current small, .role-menu-text small { font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.role-menu-caret { color: var(--muted); transition: transform 0.15s ease; }
.role-menu[open] .role-menu-caret { transform: rotate(180deg); }
.role-menu-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.role-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer; }
.role-menu-item .ic { color: var(--muted); flex: none; }
.role-menu-item:hover, .role-menu-item:focus-visible { background: var(--card-2); }
.role-menu-item.is-active { background: var(--info-bg); font-weight: 600; }
.role-menu-item.is-active .ic { color: var(--primary-strong); }
.role-menu-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.role-menu-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-menu-check { color: var(--primary-strong) !important; }
.nav-toggle { display: none; align-items: center; gap: 8px; margin-left: auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; }
.nav-toggle-close { display: none; }
.topbar-inner.is-open .nav-toggle-open { display: none; }
.topbar-inner.is-open .nav-toggle-close { display: inline-flex; }
@media (max-width: 860px) {
  .topbar { position: static; }
  .topbar-inner { padding: 10px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
  .topbar-inner.is-open .nav { display: flex; }
  .nav a, .nav button.link { padding: 10px 12px; }
  .nav a.btn { justify-content: center; margin-top: 6px; }
  .nav form.inline { display: block; }
  .nav select { width: 100%; }
  .role-menu { margin: 0 0 8px; }
  .role-menu-trigger { display: flex; width: 100%; padding: 10px 12px; }
  .role-menu-current { flex: 1; }
  .role-menu-list { position: static; margin-top: 4px; min-width: 0; box-shadow: none; }
}
.nav-end { display: contents; }

/* Signed-in sidebar: on wide screens the header becomes a fixed-width left column (brand on top, links stacked,
   Account / Sign out pinned to the bottom). Below 860px the mobile top bar + Menu button above still applies.
   Scoped by the body class set in partials/head.ejs (app-<role>); public pages keep the horizontal top bar. */
@media (min-width: 861px) {
  body[class^="app-"] { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  /* Every part is pinned to its row: with no impersonation banner, row 1 is simply empty. Left to
     auto-placement, main would take row 1 and the sidebar would land beside the footer. */
  body[class^="app-"] .impersonation-bar { grid-column: 1 / -1; grid-row: 1; }
  body[class^="app-"] .topbar { grid-column: 1; grid-row: 2 / span 2; align-self: start; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; border-bottom: 0; border-right: 1px solid var(--line); }
  body[class^="app-"] main { grid-column: 2; grid-row: 2; padding: 28px 32px 56px; }
  body[class^="app-"] .footer { grid-column: 2; grid-row: 3; }
  body[class^="app-"] .topbar-inner { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; padding: 16px 12px; min-height: 100%; max-width: none; }
  body[class^="app-"] .brand { flex-wrap: wrap; padding: 4px 8px 12px; border-bottom: 1px solid var(--line); }
  body[class^="app-"] .brand-school { flex-basis: 100%; border-left: 0; padding-left: 0; margin-top: 2px; font-size: 0.82rem; line-height: 1.3; }
  body[class^="app-"] .nav { flex: 1; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; }
  body[class^="app-"] .nav a, body[class^="app-"] .nav button.link { display: flex; width: 100%; padding: 9px 12px; }
  body[class^="app-"] .nav form.inline { display: block; }
  body[class^="app-"] .nav > .muted { padding: 6px 12px; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[class^="app-"] .nav-end { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
  body[class^="app-"] .role-menu { margin: 0 0 8px; }
  body[class^="app-"] .role-menu-trigger { display: flex; width: 100%; padding: 9px 12px; }
  body[class^="app-"] .role-menu-current { flex: 1; min-width: 0; }
  body[class^="app-"] .role-menu-list { position: static; margin-top: 4px; min-width: 0; box-shadow: none; }
}
.footer { border-top: 1px solid var(--line); padding: 18px 16px; font-size: 0.85rem; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 16px; }

/* Cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
.stat { text-align: center; }
.stat .n { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: 0.9rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table-wrap { overflow-x: auto; }

/* Forms */
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 5px; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg-2); color: var(--text);
}
input::placeholder, textarea::placeholder { color: #66708a; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }

/* Search box (partials/search.ejs): a pill input with a magnifier on the left and a clear button on the right */
.search { position: relative; display: flex; align-items: center; width: 100%; max-width: 340px; }
.search > .ic { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; transition: color 0.15s; }
.search input[type=search] {
  width: 100%; padding: 9px 38px 9px 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--text);
  font: inherit; -webkit-appearance: none; appearance: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search input[type=search]::-webkit-search-decoration, .search input[type=search]::-webkit-search-cancel-button, .search input[type=search]::-webkit-search-results-button { -webkit-appearance: none; display: none; }
.search input[type=search]:hover { border-color: #33405a; }
.search input[type=search]:focus { outline: none; border-color: var(--primary); background: var(--bg); box-shadow: 0 0 0 3px rgba(109, 139, 255, 0.22); }
.search:focus-within > .ic { color: var(--primary-strong); }
.search-clear { position: absolute; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.search-clear:hover { background: var(--card-2); color: var(--text); }
.search-clear:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.search.is-empty .search-clear { display: none; }
/* Inline filter forms (search box, optional dropdown, button in a .row) stay on one line: the search box
   and the dropdown must not claim the full width the generic input rules give them. */
.row > .search { width: auto; flex: 1 1 220px; max-width: 340px; }
.row > select { width: auto; flex: 0 0 auto; }
.field { margin-bottom: 14px; }
.field .help { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }
.ac-host { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; z-index: 30; margin-top: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.ac-item { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.ac-item:hover, .ac-item.active { background: var(--info-bg); }
.ac-item .ac-main { display: block; font-weight: 600; }
.ac-item .ac-sub { display: block; font-size: 0.85rem; color: var(--muted); }
.ac-powered { font-size: 0.72rem; color: var(--muted); padding: 5px 12px; border-top: 1px solid var(--line); text-align: right; }
.fields-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fields-3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .fields-2, .fields-3 { grid-template-columns: 1fr; } }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-right: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .05s ease, background .15s ease;
}
.btn:hover { background: #222c44; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-success { background: var(--success); border-color: var(--success); color: var(--primary-ink); }
.btn-success:hover { background: #5eead4; }
.btn-danger { color: var(--danger); border-color: rgba(251, 113, 133, 0.4); background: transparent; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 6px 10px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 16px 24px; font-size: 1.15rem; width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* "Continue with Google": Google's light button on our dark cards, per their sign-in branding guidelines. */
.btn-google { background: #fff; border-color: #dadce0; color: #1f1f1f; }
.btn-google:hover { background: #f1f3f4; color: #1f1f1f; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
button.link { background: none; border: 0; color: var(--primary-strong); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { text-decoration: underline; }
.errors { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(251, 113, 133, 0.35); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.flash-success { background: var(--success-bg); color: var(--success); border-color: rgba(52, 211, 153, 0.35); }
.flash-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(251, 113, 133, 0.35); }
.flash-info { background: var(--info-bg); color: #c7d2ff; border-color: rgba(109, 139, 255, 0.35); }
.flash a { color: inherit; text-decoration: underline; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge-waiting { background: #232c40; color: var(--muted); }
.badge-arrived { background: var(--warn-bg); color: var(--warn); }
.badge-picked_up { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
pre { background: var(--bg-2); border: 1px solid var(--line); padding: 12px; border-radius: 10px; overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--line); }

/* Marketing */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 36px 0 24px; }
@media (max-width: 860px) {
  /* Single column: eyebrow + headline, then the photo, then the lead and buttons. */
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 4px 0 32px; }
  .hero-copy { display: contents; }
  .hero .eyebrow, .hero h1 { order: 0; }
  .hero .eyebrow { margin-bottom: -4px; }
  .hero h1 { margin-bottom: 0; }
  .hero-media { order: 1; }
  .hero p.lead { order: 2; margin-bottom: 0; }
  .hero-points { order: 2; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .hero p.lead { font-size: 1.05rem; }
}
.hero h1 { font-size: 2.7rem; line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(90deg, var(--primary-strong), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 16px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1rem; }
.hero-points .safety-check { width: 24px; height: 24px; margin-top: 0; }
.hero-points .safety-check svg { width: 14px; height: 14px; }
.hero-media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); aspect-ratio: 4 / 3; position: relative; }
/* Hero demo: the parent's check-in button appears, gets tapped, bursts like a firecracker, and the teacher's "Parent has arrived" bubble takes its place. One 9s loop. */
.hero-demo { position: absolute; left: 18px; bottom: 18px; }
.hero-cta, .hero-bubble { position: absolute; left: 0; bottom: 0; white-space: nowrap; }
.hero-cta { display: inline-block; }
.hero-cta-face { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: linear-gradient(135deg, #5eead4, var(--accent)); color: var(--primary-ink); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.18) inset; position: relative; animation: hero-cta 9s ease-in-out 0.4s infinite both; }
.hero-cta-face svg { width: 18px; height: 18px; }
.hero-tap { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: hero-tap 9s ease-out 0.4s infinite both; }
.hero-bang { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; animation: hero-bang 9s ease-out 0.4s infinite both; }
.hero-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.hero-sparks i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 10px var(--c, #fff); opacity: 0; animation: hero-spark 9s cubic-bezier(0.1, 0.8, 0.3, 1) 0.4s infinite both; }
.hero-sparks i:nth-child(1)  { --x: 0px;    --y: -110px; --c: #ffd166; }
.hero-sparks i:nth-child(2)  { --x: 70px;   --y: -95px;  --c: #fff; }
.hero-sparks i:nth-child(3)  { --x: 120px;  --y: -45px;  --c: var(--accent); }
.hero-sparks i:nth-child(4)  { --x: 130px;  --y: 20px;   --c: #ffd166; }
.hero-sparks i:nth-child(5)  { --x: 95px;   --y: 75px;   --c: var(--primary-strong); }
.hero-sparks i:nth-child(6)  { --x: 25px;   --y: 105px;  --c: #fff; }
.hero-sparks i:nth-child(7)  { --x: -45px;  --y: 100px;  --c: var(--success); }
.hero-sparks i:nth-child(8)  { --x: -110px; --y: 55px;   --c: #ffd166; }
.hero-sparks i:nth-child(9)  { --x: -130px; --y: -15px;  --c: var(--accent); }
.hero-sparks i:nth-child(10) { --x: -100px; --y: -75px;  --c: #fff; }
.hero-sparks i:nth-child(11) { --x: -50px;  --y: -105px; --c: var(--primary-strong); }
.hero-sparks i:nth-child(12) { --x: 45px;   --y: 40px;   --c: var(--success); width: 5px; height: 5px; }
.hero-sparks i:nth-child(even) { width: 6px; height: 6px; animation-delay: 0.6s; }
.hero-bubble { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(11, 15, 26, 0.82); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: var(--shadow); backdrop-filter: blur(8px); transform-origin: left bottom; animation: hero-bubble 9s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.4s infinite both; }
.hero-bubble-icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--success); color: var(--primary-ink); flex: none; }
.hero-bubble-icon svg { width: 18px; height: 18px; }
.hero-bubble-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-bubble-text strong { font-size: 0.95rem; color: var(--text); }
.hero-bubble-text small { font-size: 0.75rem; color: var(--muted); }
/* Timeline (percent of 9s): 0-6% button slides in, 20-23% pressed, 23.5-38.5% flash and firework burst (~1.35s), 35-42% arrived bubble pops in, 94-100% fade out. */
@keyframes hero-cta {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  6%, 20% { opacity: 1; transform: none; filter: brightness(1); }
  23% { opacity: 1; transform: scale(0.92); filter: brightness(0.8); }
  25% { opacity: 1; transform: scale(1.2); filter: brightness(2.2) saturate(0.2); }
  29%, 100% { opacity: 0; transform: scale(0.1); filter: brightness(1); }
}
@keyframes hero-tap {
  0%, 20% { opacity: 0; transform: scale(0.4); }
  22% { opacity: 0.95; transform: scale(1); }
  24% { opacity: 0; transform: scale(2.5); }
  100% { opacity: 0; transform: scale(2.5); }
}
@keyframes hero-bang {
  0%, 23.5% { opacity: 0; transform: scale(0.3); border-width: 6px; }
  25.5% { opacity: 1; transform: scale(2); border-width: 4px; }
  36.5% { opacity: 0; transform: scale(9); border-width: 1px; }
  100% { opacity: 0; transform: scale(9); }
}
@keyframes hero-spark {
  0%, 23.5% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  25.5% { opacity: 1; transform: translate(calc(var(--x) * 0.15), calc(var(--y) * 0.15)) scale(1.4); }
  38.5% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 30px)) scale(0.2); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 30px)) scale(0.2); }
}
@keyframes hero-bubble {
  0%, 35% { opacity: 0; transform: scale(0.6); }
  42%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(10px) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta { display: none; }
  .hero-bubble { animation: none; }
}
.hero-media > img, .hero-media > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.safety { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; border-color: rgba(45, 212, 191, 0.35); background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 55%), var(--card); }
.safety h2 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.safety-list li { display: flex; gap: 12px; align-items: flex-start; }
.safety-list strong { display: block; color: var(--text); }
.safety-list li > div { color: var(--muted); }
.safety-check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--success-bg); color: var(--success); margin-top: 2px; }
.safety-check svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; gap: 18px; } .safety h2 { font-size: 1.45rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.feature { padding: 22px; }
.feature .icon, .role-card .icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--info-bg); color: var(--primary-strong); margin-bottom: 6px; }
.role-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; }
.role-card.admin .icon { background: rgba(45, 212, 191, 0.14); color: var(--accent); }
.role-card p.muted { flex: 1; }
.role-card .btn { margin-right: 6px; margin-bottom: 6px; }
/* How it works: vertical timeline. Numbered nodes on a connector line, one entry per step. */
.steps { counter-reset: step; list-style: none; margin: 18px 0 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  grid-row: 1 / span 3; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px rgba(109, 139, 255, 0.25); z-index: 1;
}
.step::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: linear-gradient(var(--primary), var(--line)); }
.step:last-child::after { display: none; }
.step-when { grid-column: 2; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); line-height: 36px; }
.step h3 { grid-column: 2; margin: 2px 0 4px; font-size: 1.05rem; }
.step p { grid-column: 2; margin: 0; }

/* Live board */
.board-row.arrived td { background: rgba(251, 191, 36, 0.07); }
.board-row.picked_up { color: var(--muted); }
.board-row.flash-new td { animation: pop 1.4s ease-out; }
.board-row { cursor: pointer; }
.board-row.open td { border-bottom-color: transparent; }
.row-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -3px 6px 0 -4px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; vertical-align: middle; }
.row-toggle:hover { background: var(--card-2); color: var(--text); }
.row-toggle .ic { transition: transform 0.15s ease; }
.board-row.open .row-toggle .ic { transform: rotate(180deg); }
.board-details td { padding: 0 10px 12px 40px; font-size: 0.9rem; }
.board-details .details { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.board-details .details > span > .muted:first-child { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
.badge-logged { background: var(--info-bg); color: var(--primary-strong); }
/* Student cell: chevron | name over (play button + class). The play slot is on every row so the class text stays aligned.
   The td stays a table cell (no flex on it) so the row tint and bottom border span the full row height; the chevron floats beside the name instead. */
#board .th-student { width: 38%; }
.c-student { min-width: 240px; }
.c-student .row-toggle { float: left; margin: 0 4px 0 -4px; }
.student-main { overflow: hidden; }
.student-sub { display: flex; align-items: center; gap: 4px; margin-top: 2px; min-height: 24px; }
.say-slot { display: inline-flex; width: 28px; justify-content: flex-start; vertical-align: middle; }
.say { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--warn-bg); color: var(--warn); cursor: pointer; vertical-align: middle; }
.say .ic { width: 12px; height: 12px; }
.say:hover, .say.is-playing { background: var(--warn); color: var(--primary-ink); }
/* Per-row "more" menu on the live board (a <details>, so it works without JS too). */
/* Every control in the actions cell shares one height, so the icon-only menu button lines up with the text buttons. */
.c-actions { white-space: nowrap; text-align: right; }
.c-actions .btn { height: 34px; box-sizing: border-box; vertical-align: middle; }
.row-menu { position: relative; display: inline-block; vertical-align: middle; }
.row-menu > summary { list-style: none; cursor: pointer; padding: 0; width: 34px; justify-content: center; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { background: var(--card-2); }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.row-menu-list .btn { width: 100%; justify-content: flex-start; border-color: transparent; background: transparent; }
.row-menu-list .btn:hover { background: var(--card-2); }
/* Let an open menu hang below the table instead of being clipped by the horizontal-scroll wrapper. */
.table-wrap:has(.row-menu[open]) { overflow: visible; }
.c-actions .chooser { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c-actions .chooser .muted { margin-right: 4px; }
/* Modal dialogs (native <dialog>): "Who is here?" on the live board. */
.dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); padding: 22px 24px; width: 380px; max-width: 92vw; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(4, 6, 12, 0.65); backdrop-filter: blur(2px); }
.dialog h2 { margin: 0 0 4px; }
.dialog-options { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.dialog-options .btn { width: 100%; justify-content: flex-start; font-size: 1rem; padding: 12px 14px; }
.board-row .wait { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-row.arrived .wait { color: var(--warn); font-weight: 600; }
.tabs button .ic { vertical-align: -0.2em; }
@keyframes pop { 0% { background: rgba(251, 191, 36, 0.45); } 100% { background: rgba(251, 191, 36, 0.07); } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #66708a; }
.live.on .dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.toast { position: fixed; right: 16px; bottom: 16px; background: var(--card-2); color: var(--text); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 340px; z-index: 50; }
.toast.hidden { display: none; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button, .tabs a.btn { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; }
.tabs button.active, .tabs a.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* Parent */
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: var(--card); box-shadow: var(--shadow); }
.group.focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--info-bg), var(--shadow); }
.group h2 { margin-top: 0; }
.kid { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.kid:last-child { border-bottom: 0; }
.status-line { margin-top: 10px; font-size: 0.95rem; }
.status-line.err { color: var(--danger); }
.status-line.ok { color: var(--success); font-weight: 600; }
.checkin-map { margin: 12px 0 0; }
.checkin-map img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #e4e7eb; }
.checkin-map figcaption { margin-top: 6px; }

/* Super admin */
.impersonation-bar { background: linear-gradient(90deg, #7c2d12, #9a3412); color: #fff; padding: 8px 16px; font-size: 0.9rem; }
.impersonation-bar .btn { background: #fff; color: #7c2d12; border-color: #fff; }
.role-pill { text-transform: capitalize; }

/* Terms of Service */
.terms { max-width: 820px; line-height: 1.6; }
.terms h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.terms ol, .terms ul { padding-left: 22px; }
.terms li { margin-bottom: 8px; }
.terms-box { max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; background: var(--bg-2); margin-bottom: 16px; }
.badge-marketing { background: var(--success-bg); color: var(--success); }

/* Pricing */
.pricing-intro { text-align: center; max-width: 640px; margin: 24px auto 8px; }
.pricing-intro h1 { font-size: 2.3rem; letter-spacing: -0.02em; }
.pricing-intro h1 span { background: linear-gradient(90deg, var(--primary-strong), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; margin: 28px 0 8px; }
.plan { display: flex; flex-direction: column; gap: 8px; position: relative; margin-bottom: 0; padding-top: 26px; }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--info-bg), var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--primary-ink); }
.plan.featured .tag { background: var(--primary); }
.plan h2 { margin: 0; font-size: 1.3rem; }
.plan .tagline { color: var(--muted); min-height: 2.6em; margin: 0; }
.plan .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.plan .price small { display: block; font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.plan .price .was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 1.2rem; margin-left: 6px; }
.plan ul.includes { list-style: none; padding: 0; margin: 10px 0 14px; flex: 1; }
.plan ul.includes li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plan ul.includes li:last-child { border-bottom: 0; }
.plan ul.includes li svg { color: var(--success); margin-top: 4px; }
.plan ul.includes strong { font-variant-numeric: tabular-nums; }
.plan .btn { justify-content: center; width: 100%; }
.plan .fine { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.everything { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 8px 0 0; }
.everything li { display: flex; gap: 10px; align-items: flex-start; }
.everything li svg { color: var(--accent); margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.faq summary h3 { display: inline; margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 22px; font-size: 0.92rem; }
.definition { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 0 0 24px; color: var(--muted); max-width: 820px; }
.definition strong { color: var(--text); }

/* Subscription usage meters */
.usage { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 14px 0; }
.meter .label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; }
.meter .label span:first-child { color: var(--muted); text-transform: capitalize; }
.meter .label strong { font-variant-numeric: tabular-nums; }
.meter .bar { height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.meter.warn .bar i { background: var(--warn); }
.meter.full .bar i { background: var(--danger); }
.badge-plan { background: var(--info-bg); color: var(--primary-strong); }
.badge-trialing { background: var(--success-bg); color: var(--success); }
.badge-active { background: var(--info-bg); color: var(--primary-strong); }
.badge-past_due { background: var(--warn-bg); color: var(--warn); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }

/* Attendance on the live board */
.badge-absent { background: var(--danger-bg); color: var(--danger); }
.badge-unmarked { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.board-row.unmarked td strong { color: var(--muted); }
.board-row.absent { color: var(--muted); }
.board-row.absent td strong { text-decoration: line-through; text-decoration-color: rgba(251, 113, 133, 0.6); }
.badge-early { background: var(--info-bg); color: var(--primary-strong); }
/* Parent checked in without a verified location (offered only after a failed location attempt) */
.badge-nolocation { background: var(--warn-bg); color: var(--warn); border: 1px dashed currentColor; }

/* Name recorder: two rows of controls ("Now": hear / play / remove; "New recording": record / preview / save).
   The record button counts "3, 2, 1, GO" inside itself with an expanding ring, then pulses its red dot
   while the microphone is live. */
.rec-rows { display: grid; gap: 10px; margin-top: 6px; }
.rec-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rec-row-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); min-width: 110px; }
.rec-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 132px; justify-content: center; transition: background 0.15s ease, color 0.15s ease; }
.rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.rec-btn.is-counting { background: var(--danger); color: #fff; border-color: var(--danger); font-weight: 700; white-space: nowrap; animation: rec-ring 0.6s ease-out infinite; }
.rec-btn.is-counting .rec-dot { opacity: 0.6; }
.rec-btn.is-recording { background: var(--danger); color: #fff; border-color: var(--danger); }
.rec-btn.is-recording .rec-dot { animation: rec-pulse 1s ease-in-out infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.25; transform: scale(0.6); } }
.rec-name { color: var(--warn); font-weight: 700; }
@keyframes rec-ring { 0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.65); } 100% { box-shadow: 0 0 0 12px rgba(251, 113, 133, 0); } }

/* Student report */
.report-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.report-verdict { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; }
.report-verdict .glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; flex: none; }
.report-verdict.good { background: var(--success-bg); border-color: rgba(52, 211, 153, 0.35); }
.report-verdict.good .glyph { background: var(--success); color: var(--primary-ink); }
.report-verdict.ok { background: var(--info-bg); border-color: rgba(109, 139, 255, 0.35); }
.report-verdict.ok .glyph { background: var(--primary); color: var(--primary-ink); }
.report-verdict.bad { background: var(--danger-bg); border-color: rgba(251, 113, 133, 0.35); }
.report-verdict.bad .glyph { background: var(--danger); color: var(--primary-ink); }
.report-verdict.none { background: var(--card); }
.report-verdict.none .glyph { background: var(--card-2); color: var(--muted); }
.report-verdict h2 { margin: 0 0 2px; font-size: 1.15rem; }
.report-verdict p { margin: 0; color: var(--muted); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .label { font-size: 0.8rem; color: var(--muted); }
.kpi .value { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.kpi .sub { font-size: 0.8rem; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.meter.good > span { background: var(--success); }
.meter.ok > span { background: var(--warn); }
.meter.bad > span { background: var(--danger); }
.stack { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: transparent; margin: 12px 0 8px; }
.stack > span { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: var(--primary-ink); min-width: 0; overflow: hidden; white-space: nowrap; border-radius: 4px; }
.stack .s-on_time { background: var(--success); }
.stack .s-late { background: var(--warn); }
.stack .s-absent { background: var(--danger); }
.stack .s-none { background: #66708a; color: var(--text); }
.stack .s-unmarked { background: var(--card-2); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); }
.legend .sw { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; margin-right: 6px; font-size: 0.7rem; font-weight: 700; color: var(--primary-ink); vertical-align: middle; }
.daygrid { display: grid; gap: 6px; margin-top: 12px; }
.daygrid .dow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: center; }
.daygrid .wk { display: contents; }
.day { aspect-ratio: 1; min-height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 0.9rem; font-weight: 700; color: var(--primary-ink); position: relative; cursor: default; border: 1px solid transparent; }
.day .d { position: absolute; top: 3px; left: 5px; font-size: 0.62rem; font-weight: 600; opacity: 0.8; }
.day.on_time { background: var(--success); }
.day.late { background: var(--warn); }
.day.absent { background: var(--danger); }
.day.none { background: var(--card-2); color: var(--muted); border-color: var(--line); }
.day.unmarked { background: transparent; color: var(--muted); border: 1px dashed var(--danger); }
.day.no_school { background: transparent; color: var(--muted); border: 1px dashed var(--line); opacity: 0.6; }
.day:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.day[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; z-index: 10; box-shadow: var(--shadow); }
.wait-bar { display: inline-block; height: 8px; border-radius: 999px; background: var(--warn); vertical-align: middle; margin-right: 6px; }
.wait-bar.ok { background: var(--success); }
.badge-late { background: var(--warn-bg); color: var(--warn); }
.badge-on_time { background: var(--success-bg); color: var(--success); }
.badge-none { background: #232c40; color: var(--muted); }

/* Live board on phones: the four-column table scrolled sideways, hiding the Status column and every action button.
   Each student row becomes a stacked card instead: student, then dismissal time, then the status badges, then the
   buttons on their own full-width line. The details row keeps following its student row (the JS re-sorts rows, not cells). */
@media (max-width: 640px) {
  #board, #board tbody, #board tr.board-row, #board tr.board-details, #board td { display: block; }
  #board thead { display: none; }
  #board td { border-bottom: 0; padding: 0; }
  #board tr.board-row { padding: 12px 10px; border-bottom: 1px solid var(--line); }
  #board tr.board-row:nth-last-child(2) { border-bottom: 0; }
  #board tr.board-row.open { border-bottom-color: transparent; }
  .board-row.arrived td, .board-row:hover td { background: transparent; }
  .board-row.arrived { background: rgba(251, 191, 36, 0.07); }
  .board-row.flash-new td { animation: none; }
  .board-row.flash-new { animation: pop 1.4s ease-out; }
  .c-student { min-width: 0; }
  #board .c-student + td { margin-top: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
  #board .c-status { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; }
  #board .c-actions { white-space: normal; text-align: left; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .c-actions > .btn { flex: 1 1 auto; justify-content: center; }
  .c-actions > .row-menu { flex: 0 0 auto; }
  .c-actions .chooser { width: 100%; }
  #board .board-details td { padding: 0 10px 12px 10px; }
  .board-details .details { gap: 6px 16px; }
  /* Summary cards: five in a row do not fit, so let them share the width over two rows. */
  .row > .card.stat { flex: 1 1 30%; padding: 8px 10px !important; }
  .stat .n { font-size: 1.5rem; }
  .stat .l { font-size: 0.8rem; }
}
