/* UrbanBird University. The look is the BSR site's: neutral paper, white panels, dark buttons, and color that
   carries meaning only (amber = still to do, green = done, red = needs attention). System font, no outside files.
   People pick their own theme on the Account page; the theme files in static/themes are the BSR ones. */
:root {
  --paper: #F2F2F0; --card: #FFFFFF; --ink: #1C1C1E; --ink-2: #55555C; --ink-3: #8A8A92;
  --line: #DADADF; --line-2: #ECECEF;
  --todo: #C98A00; --todo-bg: #FFF6DD; --done: #2E7D4F; --done-bg: #E6F4EC; --bad: #C62828; --bad-bg: #FDECEC;
  --mid: #B26B00; --mid-bg: #FFF0D6; --btn: #1C1C1E; --btn-ink: #FFFFFF; --focus: #2F6FEB; --white-band: #F7F7F8;
  --radius-lg: 18px; --radius: 12px; --radius-sm: 8px; --pad: 16px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #121214; --card: #1D1D20; --ink: #F2F2F4; --ink-2: #B4B4BC; --ink-3: #85858E; --line: #34343A; --line-2: #2A2A2F;
    --todo: #E8B23A; --todo-bg: #3A2E10; --done: #5CC08A; --done-bg: #15301F; --bad: #FF6B6B; --bad-bg: #3A1717;
    --mid: #F0A53A; --mid-bg: #3A2A10; --btn: #F2F2F4; --btn-ink: #121214; --white-band: #26262A; color-scheme: dark;
  }
}
:root[data-scheme="dark"] {
  --paper: #121214; --card: #1D1D20; --ink: #F2F2F4; --ink-2: #B4B4BC; --ink-3: #85858E; --line: #34343A; --line-2: #2A2A2F;
  --todo: #E8B23A; --todo-bg: #3A2E10; --done: #5CC08A; --done-bg: #15301F; --bad: #FF6B6B; --bad-bg: #3A1717;
  --mid: #F0A53A; --mid-bg: #3A2A10; --btn: #F2F2F4; --btn-ink: #121214; --white-band: #26262A; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; } a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 650; margin-bottom: 10px; } h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); } .faint, .tiny, .hint { color: var(--ink-3); font-size: 13.5px; } .small { font-size: 14px; } .hint { margin-top: 3px; }
.num { font-variant-numeric: tabular-nums; }

/* top bar */
.banner { background: var(--todo-bg); color: var(--todo); font-size: 14px; font-weight: 600; padding: 8px 16px; text-align: center; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line-2);
  padding: calc(env(safe-area-inset-top) + 10px) var(--pad) 10px; }
.topbar-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.topnav { display: flex; gap: 2px; align-items: center; }
.topnav a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 9px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600;
  background: transparent; box-shadow: 0 0 0 1px transparent; transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, padding .28s ease; }
@media (hover: hover) and (pointer: fine) { .topnav a:hover, .topnav a:focus-visible { color: var(--ink); background: var(--line-2); } }
.topnav a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-width: 40px; justify-content: center; }
.topnav a.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.topnav .lb { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-left: 0;
  transition: max-width .3s cubic-bezier(.2,.8,.2,1), opacity .22s ease, margin-left .3s cubic-bezier(.2,.8,.2,1); }
.topnav a.on .lb { max-width: 90px; opacity: 1; margin-left: 8px; }
@media (hover: hover) and (pointer: fine) { .topnav a:hover .lb, .topnav a:focus-visible .lb { max-width: 90px; opacity: 1; margin-left: 8px; } }
@media (prefers-reduced-motion: reduce) { .topnav a, .topnav .lb { transition: none; } }
.nav-dot { position: absolute; top: 1px; right: 1px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 700; }
.search-form { position: relative; flex: 0 1 260px; min-width: 140px; }
.search-form svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-form input, .search-form input:not([type]) { padding: 8px 14px 8px 38px !important; min-height: 38px; border-radius: 999px; font-size: 15px; }
@media (max-width: 640px) { .topnav a.on .lb { max-width: 0; opacity: 0; margin-left: 0; } .topnav a { padding: 0 8px; } }

.wrap { max-width: 760px; margin: 0 auto; padding: 20px var(--pad) calc(env(safe-area-inset-bottom) + 40px); }
.wrap.wide { max-width: 1100px; } .wrap.narrow { max-width: 560px; }
.page-head { margin: 8px 0 20px; } .page-head p { margin-top: 6px; }
.tabs { display: flex; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 12px; margin-bottom: 16px; overflow-x: auto; }
.tabs a { flex: 1 0 auto; text-align: center; text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 9px; color: var(--ink-2); white-space: nowrap; }
.tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* blocks */
.panel { background: var(--card); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; box-shadow: 0 0 0 1px var(--line-2); }
.panel.hero { box-shadow: 0 0 0 1px var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: 0 0 0 1px var(--line-2); }
.stat b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; } .stat span { font-size: 14px; color: var(--ink-2); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.flash { background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 0 0 1px var(--line); }
.error-box { background: var(--bad-bg); color: var(--bad); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.todo { background: var(--todo-bg); color: var(--todo); } .pill.done { background: var(--done-bg); color: var(--done); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.plain { background: var(--line-2); color: var(--ink-2); }
.pill.role-owner, .pill.role-admin { background: var(--ink); color: var(--paper); } .pill.role-franchisee { background: #E8DDF6; color: #5B2A86; }
.pill.role-dm { background: #DCEBFA; color: #0B4A8F; } .pill.role-gm { background: var(--todo-bg); color: var(--todo); }
.pill.role-crew { background: var(--line-2); color: var(--ink-2); } .pill.role-author { background: var(--done-bg); color: var(--done); }
.ph { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.bar { height: 8px; background: var(--todo-bg); border-radius: 999px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--done); border-radius: 999px; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 17px; min-height: 50px; padding: 0 22px;
  border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; background: var(--btn); color: var(--btn-ink); }
.btn.block { width: 100%; } .btn.big { min-height: 56px; font-size: 18px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { background: var(--card); color: var(--bad); box-shadow: inset 0 0 0 1px var(--line); }
.btn.sm { min-height: 38px; font-size: 15px; padding: 0 14px; border-radius: 10px; }
.btn:disabled, .btn.off { opacity: .5; pointer-events: none; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
label, label.f { display: block; font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], input[type=date], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
textarea { min-height: 90px; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; font-weight: 400; margin: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer;
  transition: background .2s; margin: 0; box-shadow: inset 0 0 0 1px rgba(128,128,128,.28); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--todo); } .switch input:checked::after { transform: translateX(20px); } .switch .txt { flex: 1; }
.auth { max-width: 420px; margin: 0 auto; padding: 40px 0 24px; } .auth .panel { margin-top: 22px; }
.lang-pick { display: grid; gap: 12px; margin-top: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }
.matrix th { white-space: normal; min-width: 90px; text-align: center; } .matrix td.c { text-align: center; }
.matrix td.n { position: sticky; left: 0; background: var(--card); min-width: 170px; } .matrix .pct { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.hbar { display: grid; grid-template-columns: 150px 1fr 56px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; } .hbar .bar { height: 12px; }

/* marks: color is never the only signal */
.chk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; font-weight: 800; vertical-align: middle; }
.chk.done { background: var(--done); color: #fff; } .chk.open { background: var(--todo-bg); color: var(--todo); box-shadow: inset 0 0 0 1.5px var(--todo); }
.chk.locked { background: var(--line-2); color: var(--ink-3); } .chk.late { background: var(--bad); color: #fff; }
.chk.none { background: transparent; box-shadow: inset 0 0 0 2px var(--line); font-size: 0; }
.steps { display: flex; gap: 6px; align-items: center; white-space: nowrap; font-size: 13px; color: var(--ink-3); } .steps .s { display: inline-flex; gap: 5px; align-items: center; }
.steps .s.ok { color: var(--done); font-weight: 600; } .steps .sep { width: 14px; height: 2px; background: var(--line); border-radius: 2px; }

/* the learning path: modules in order, locked until the one before is finished */
.path { max-width: 760px; margin: 18px auto 0; }
.mod { display: flex; gap: 16px; align-items: stretch; background: var(--card); border-radius: 22px; padding: 18px 20px; color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 1.5px var(--line); }
a.mod:hover { box-shadow: 0 0 0 1.5px var(--ink-3); }
.mod .ico { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); box-shadow: inset 0 0 0 1.5px var(--line); align-self: center; color: var(--ink-2); }
.mod .ico svg { width: 26px; height: 26px; }
.mod .body { flex: 1; min-width: 0; } .mod .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mod h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.mod .sub { color: var(--ink-3); font-size: 14px; margin: 6px 0 8px; min-height: 20px; }
.mod .score { min-width: 68px; text-align: center; padding: 4px 12px; border-radius: 10px; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; background: var(--done-bg); color: var(--done); }
.mod .score.empty { background: var(--line-2); color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.mod .track { height: 12px; background: var(--line-2); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); } .mod .track i { display: block; height: 100%; background: var(--done); border-radius: 999px; }
.mod.open { box-shadow: 0 0 0 2.5px var(--todo); background: var(--todo-bg); } .mod.open .ico { background: var(--todo-bg); color: var(--todo); box-shadow: inset 0 0 0 1.5px var(--todo); }
.mod.done { box-shadow: 0 0 0 2.5px var(--done); } .mod.done .ico { background: var(--done); color: #fff; box-shadow: none; }
.mod.locked { background: var(--line-2); box-shadow: 0 0 0 1.5px var(--line); cursor: not-allowed; } .mod.locked h3 { color: var(--ink-2); } .mod.locked .track { background: var(--line); }
.mod .due { color: var(--bad); font-weight: 600; }
.link { width: 3px; height: 28px; background: var(--line); margin: 0 auto; border-radius: 2px; } .link.on { background: var(--done); }
.mod.score { display: inline-block; }

/* chapter list, video, questions */
.chap { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); } .chap:last-child { border-bottom: 0; }
.chap .no { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-weight: 700; }
.chap.done .no { background: var(--done); color: #fff; } .chap.lock { opacity: .55; } .chap .t { flex: 1; font-weight: 600; }
.video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius-lg); display: block; }
.video-missing { background: #1C1C1E; color: #F2F2F4; border-radius: var(--radius-lg); padding: 48px 20px; text-align: center; }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--card); }
.q.right { border-color: var(--done); background: var(--done-bg); } .q.wrongq { border-color: var(--bad); background: var(--bad-bg); } .q .p { font-weight: 600; margin-bottom: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin: 6px 0; cursor: pointer; font-weight: 400; font-size: 16px; background: var(--card); }
.choice:hover { border-color: var(--ink-3); } .choice input { margin-top: 3px; flex: none; } .q select { margin: 4px 0; }
dialog { border: 0; border-radius: 18px; padding: 22px; max-width: 520px; width: calc(100% - 28px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(0,0,0,.55); }
.cert { background: #fff; color: #1C1C1E; border: 8px double #1C1C1E; padding: 48px 30px; text-align: center; max-width: 760px; margin: 20px auto; border-radius: 6px; }
.cert h1 { font-size: 38px; } .cert .name { font-size: 34px; font-weight: 700; margin: 18px 0; }
code.pw { font: 700 28px ui-monospace, Menlo, monospace; background: var(--line-2); padding: 6px 14px; border-radius: 8px; letter-spacing: .08em; }

/* page info and footer, like the BSR site */
.page-info { margin-top: 28px; padding: 12px 16px; border-radius: var(--radius); background: var(--line-2); color: var(--ink-2); font-size: 14px; }
.page-info summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; } .page-info summary::-webkit-details-marker { display: none; }
.page-info .i { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--card); font-size: 12px; font-weight: 700; }
.page-info p { margin: 8px 0 0; line-height: 1.5; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 24px; padding: 20px 16px 48px; border-top: 1px solid var(--line-2); font-size: 12px; opacity: .85; }
.site-foot a { color: var(--ink-3); text-decoration: none; } .site-foot a:hover, .site-foot a:focus-visible { color: var(--ink-2); text-decoration: underline; }
.site-foot .ver { opacity: .6; font-size: 12px; font-variant-numeric: tabular-nums; }
.legal h2 { margin-top: 22px; } .legal h2:first-of-type { margin-top: 8px; } .legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.noprint {} @media print { .topbar, .site-foot, .noprint, .banner, .tabs { display: none !important; } body { background: #fff; } }

/* Admin and Builder tab bar with the store picker */
.tabbar { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; } .tabbar .tabs { flex: 1 1 360px; margin-bottom: 0; }
.store-pick { flex: 0 0 auto; } .store-pick select { min-height: 44px; padding: 8px 14px; border-radius: 12px; font-weight: 600; width: auto; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row.head { margin-bottom: 18px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; } .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.acct-sec > summary { min-height: 28px; } .acct-sec[open] > summary { margin-bottom: 4px; }

.acct-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; color: var(--ink-2); }
.acct-sec > summary { gap: 12px; }

body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; padding-bottom: 150px; }

/* overview: one box with a small pie */
.pie-stat { display: flex; align-items: center; gap: 16px; grid-column: span 2; }
.pie-stat b { display: block; font-size: 28px; line-height: 1.1; }
.pie { flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: conic-gradient(var(--done) calc(var(--p) * 1%), var(--bad) 0); position: relative; }
.pie::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--card); }
@media (max-width: 520px) { .pie-stat { grid-column: auto; } }
.pie.empty { background: var(--line-2); }

/* tutorial */
.tut-step { display: flex; gap: 16px; align-items: flex-start; }
.tut-step h2 { font-size: 19px; margin-bottom: 4px; } .tut-step p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.tut-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--line-2); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* account link rows */
.acct-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.acct-row b { font-size: 19px; } .acct-row:hover, .acct-row:focus-visible { box-shadow: 0 0 0 2px var(--line); }
.acct-row .grow { flex: 1; min-width: 0; } .acct-row .chev { color: var(--ink-3); font-size: 26px; line-height: 1; }
.row-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.timer-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--todo-bg); }

/* icons sit level with their headings */
.acct-h { display: flex; align-items: center; gap: 12px; line-height: 1.2; margin: 0 0 6px; }
.acct-h .acct-ico { width: 28px; height: 28px; }
.acct-ico svg { display: block; }
/* drop-down arrows: our own arrow, set in from the edge, same in every browser */
select { -webkit-appearance: none; appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%238a8a93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 14px 9px; }
select[multiple] { background-image: none; padding-right: 14px; }
/* privacy and acceptable use bar, well below the page */
body > main { padding-bottom: 120px; }
.site-foot { margin-top: 40px; padding-top: 26px; }

/* quiz questions: yellow until answered, green with a check once they are, like the BSR form */
.q { border-width: 2px; transition: border-color .2s ease, background-color .2s ease; scroll-margin-top: 90px; }
.q .p { display: flex; gap: 10px; align-items: flex-start; }
.qmark { flex: none; position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--todo); color: var(--todo); box-sizing: border-box; }
.qmark::after { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; line-height: 1; }
.q.answered { border-color: var(--done); background: var(--done-bg); }
.q.answered .qmark { background: var(--done); border-color: var(--done); color: #fff; }
.q.answered .qmark::after { content: "\2713"; font-size: 14px; }
.q.missing { border-color: var(--todo); background: var(--todo-bg); }
.q.right .qmark, .q.wrongq .qmark { display: none; }
.quiz-warn { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--todo-bg); color: var(--todo); font-weight: 600; }

/* ---- ported from the BSR site: the red ring spinner and Working on it, skeletons, What's New, the phone description clip ---- */
/* ---- red ring spinner (drawn by ui.js): a ring draws itself clockwise from north, then un-draws while sliding a
   quarter turn, so it shrinks to a dot at east — then redraws from east, and so on: north, east, south, west ---- */
:root { --spin: #E0303E; }
.spin { width: 48px; height: 48px; flex: none; overflow: visible; color: var(--spin); }
.spin path { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.spin circle { fill: currentColor; }
.busy { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 55%, transparent); backdrop-filter: blur(2px); }
.busy[hidden] { display: none; }
.busy-card { display: flex; flex-direction: column; align-items: center; gap: 14px; background: var(--card);
  padding: 24px 28px; border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 300px; text-align: center; }
.busy-card p { margin: 0; font-weight: 600; }
.busy-page { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
/* ---- skeletons: gray placeholder shapes while the Server page's numbers and charts load */
.skel { display: block; background: var(--line-2); border-radius: 6px; position: relative; overflow: hidden; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 70%, transparent), transparent);
  animation: skel 1.3s ease-in-out infinite; }
@keyframes skel { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }
.skel-v { width: 70%; height: 26px; margin: 4px 0; }
.skel-chart { height: 180px; margin: 6px 0; border-radius: var(--radius); }
.skel-lines { display: grid; gap: 10px; padding: 4px 0; }
.skel-lines i { display: block; height: 14px; border-radius: 6px; background: var(--line-2); position: relative; overflow: hidden; }
.skel-lines i:nth-child(2) { width: 82%; } .skel-lines i:nth-child(3) { width: 60%; }
.skel-lines i::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 70%, transparent), transparent);
  animation: skel 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skel-lines i::after { animation: none; } }
html.wn-open, html.wn-open body { overflow: hidden; }
.wn-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.42); display: none; }
.wn-bg.open { display: block; }
.wn-card { position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 1px var(--line-2); }
.wn-card[hidden] { display: none; }
.wn-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; padding-right: 34px; }
.wn-head h2 { font-size: 22px; }
.wn-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--todo); background: var(--todo-bg); padding: 3px 9px; border-radius: 999px; }
.wn-body { overflow: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.wn-list { margin: 0; padding-left: 20px; }
.wn-list li { margin: 0 0 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.wn-list li b { color: var(--ink); }
.wn-sub { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 14px 0 8px; }
.wn-list.coming li::marker { content: "→  "; }
.wn-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.wn-foot .wn-ack { flex: 1; padding: 4px 0; }
.wn-foot .btn { min-width: 108px; }
.wn-foot-close { justify-content: flex-end; }
.wn-foot-close[hidden] { display: none; }
.wn-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--line-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.wn-x:hover { background: var(--line); }
@media (max-width: 520px) {
  .wn-card { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; border-radius: 20px 20px 0 0;
    max-height: calc(100dvh - 40px); padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }
  .wn-foot { flex-wrap: wrap; } .wn-foot .wn-ack { flex: 1 1 100%; } .wn-foot .btn { flex: 1; }
}
.pdf-load { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px 16px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pdf-load[hidden] { display: none; }
html.pdf-wait { overflow: hidden; }
.pdf-sheet { width: min(300px, 78vw); aspect-ratio: 8.5 / 11; background: var(--card); border-radius: 6px; padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 12px; }
.sk { display: block; background: var(--line-2); border-radius: 4px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 70%, transparent), transparent);
  animation: sk-shine 1.4s ease-in-out infinite; }
@keyframes sk-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
.sk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sk-title { height: 16px; width: 55%; }
.sk-ring { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.sk-sub { height: 9px; width: 38%; }
.sk-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.sk-bars .sk { height: 34px; border-radius: 6px; }
.sk-row { display: flex; align-items: center; gap: 8px; }
.sk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sk-line { height: 9px; }
.pdf-msg { margin: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pdf-msg b { font-size: 16px; }
.pdf-msg span { font-size: 13.5px; color: var(--ink-3); }

/* phones: long page descriptions fold to two lines with a small arrow (ui.js) */
.desc-clip:not(.desc-open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc-more { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.desc-more::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; margin-left: 2px; }
.desc-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.desc-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wn-headline { margin: 2px 0 0; font-weight: 600; color: var(--ink-2); }


/* owner and admin: the Video timer switch in the top bar */
.timer-corner { display: flex; justify-content: flex-end; margin: -6px 0 8px; } .timer-sw { margin: 0; } .tsw { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 4px 10px 4px 4px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tsw .knob { width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; } .tsw .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.tsw.on { color: var(--ink); } .tsw.on .knob { background: var(--done); } .tsw.on .knob::after { transform: translateX(14px); }

/* People: Add people strip like the BSR invite strip, and the Filter button */
.invite-panel { padding: 12px 16px; } .invite { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; } .invite .grow { flex: 1; min-width: 220px; line-height: 1.35; }
.btn .ico { vertical-align: -3px; }
.pp-search input[type=search] { flex: 1; min-width: 0; } .fbtn { white-space: nowrap; } .fbtn.on { box-shadow: inset 0 0 0 2px var(--ink); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; } .fgrid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13.5px; margin: 0; }
.nowrap { white-space: nowrap; }
.ok-t { color: var(--done); } .mid-t { color: var(--mid); } .bad-t { color: var(--bad); } tr.tot td { border-top: 2px solid var(--line); }
.banner-test { background: #F59E0B; color: #1C1C1E; }
.switch-person { margin: 0 0 0 8px; display: flex; flex: none; }
.switch-person .btn { white-space: nowrap; }
.switch-person .sp-short { display: none; }
@media (max-width: 520px) { .switch-person { margin-left: 4px; } .switch-person .btn { font-size: 12px; padding: 6px 9px; }
  .switch-person .sp-long { display: none; } .switch-person .sp-short { display: inline; } }
/* Phones: the Added, email, Signed in steps wrap instead of pushing the page sideways */
@media (max-width: 560px) { .steps { flex-wrap: wrap; row-gap: 4px; } .steps .stepline { display: none; } }
@media (max-width: 520px) {
  body:has(.switch-person) .topbar-in { flex-wrap: nowrap; gap: 6px; }
  body:has(.switch-person) .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
  .switch-person { flex: none; }
}
.switch-person .btn { font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
.btn.sp-btn { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
