/* Learner and employer app (UI spec, EFS-367). Tokens from the spec, section 3. Loaded after app.css. */
:root {
  --ink-2: #46536A; --control-edge: #6B778A; --line-ui: #E3DCCB;
  --ok-text: #1A6B3C; --ok-bg: #E6F4EA; --warn-text: #8A5300; --warn-bg: #FFF4E0; --bad-text: #B42318; --bad-bg-ui: #FEECEB;
  --saffron-tint: #FDE7C4; --info-bg: #E8EDF5; --track-navy: #2E4A73;
  --r-card: 12px; --r-btn: 10px; --bar-shadow: 0 1px 2px rgb(12 34 64 / 8%), 0 -1px 2px rgb(12 34 64 / 8%);
  --bar-h: 4.75rem;
}
body.app-page, body.in-lesson { background: var(--cream); }
body.app-page main, body.in-lesson main { min-height: 60vh; }
/* focus: 3px navy with a white gap on light surfaces, saffron on navy */
.app-page :focus-visible, .in-lesson :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 4px; }
.lesson-bar :focus-visible { outline-color: var(--saffron); box-shadow: none; }
.app-page .btn, .in-lesson .btn { border-radius: var(--r-btn); min-height: 48px; font-size: 1rem; }
.btn-wide { width: 100%; }
@media (min-width: 640px) { .btn-wide { width: auto; min-width: 16rem; } }
.notice-warn { background: var(--warn-bg); border-color: #F2CF95; color: var(--warn-text); }
.notice-warn a { color: var(--warn-text); }

/* ---------- lesson bar (replaces the site header inside a course) ---------- */
.lesson-bar { background: var(--navy); color: #fff; padding: .5rem 1rem .75rem; position: relative; z-index: 6; }
.lesson-bar-row { display: grid; grid-template-columns: 1fr minmax(0, max-content) 1fr; gap: .5rem; align-items: center; min-height: 48px; max-width: 1440px; margin-inline: auto; }
.lb-left { display: flex; align-items: center; gap: .5rem; }
.lb-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; }
.lb-mark img { width: 30px; height: auto; display: block; }
.lb-close { display: inline-flex; align-items: center; gap: .35rem; min-height: 48px; padding-right: .25rem; color: #fff; font-weight: 600; text-decoration: none; }
.lb-close:hover { text-decoration: underline; }
.lb-title { grid-column: 2; margin: 0; text-align: center; font-weight: 700; font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-bar-progress { max-width: 1440px; margin: .35rem auto 0; }
.lb-progress { display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--track-navy); }
.lb-progress::-webkit-progress-bar { background: var(--track-navy); border-radius: 999px; }
.lb-progress::-webkit-progress-value { background: var(--saffron); border-radius: 999px; }
.lb-progress::-moz-progress-bar { background: var(--saffron); border-radius: 999px; }
.lb-label { margin: .4rem 0 0; font-size: .875rem; line-height: 1.25rem; color: #fff; font-weight: 500; }
@media (min-width: 1024px) {
  .lesson-bar { padding: .5rem 2rem .75rem; }
  .lb-mark img { width: 34px; }
  .lb-title { font-size: 1.125rem; }
}

/* ---------- bottom action bar ---------- */
html:has(body.in-lesson) { scroll-padding-bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom, 0px)); }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; box-shadow: var(--bar-shadow); padding: .75rem max(1rem, env(safe-area-inset-right, 0px)) max(.75rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); }
.action-bar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; max-width: 45rem; margin-inline: auto; }
.ab-back { justify-self: start; }
.ab-next { justify-self: end; grid-column: 3; display: flex; }
.ab-back form, .ab-next form { margin: 0; display: flex; }
.ab-next:only-child, .ab-back:empty + .ab-next { grid-column: 1 / -1; justify-self: stretch; }
.ab-back:empty + .ab-next .btn, .ab-back:empty + .ab-next form, .ab-back:empty + .ab-next form .btn { width: 100%; }
.ab-pos { grid-column: 2; margin: 0; text-align: center; font-size: .875rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-bar .btn { min-height: 48px; padding: .6rem 1.1rem; }
.action-bar .btn-outline { padding-inline: .9rem; }
.next-long { display: none; }
body.in-lesson main { padding-bottom: calc(var(--bar-h) + 2rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .action-bar { position: sticky; bottom: 1rem; margin-top: 2.5rem; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: .75rem 1rem; }
  .action-bar-row { max-width: none; }
  .next-short { display: none; }
  .next-long { display: inline; max-width: 30rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.in-lesson main { padding-bottom: 2rem; }
}

/* ---------- player ---------- */
.player-layout { max-width: 1440px; margin-inline: auto; }
.rail { display: none; }
.reader { padding: 1.5rem 1rem 0; max-width: 45rem; margin-inline: auto; }
.sec-h1 { font-size: 1.5rem; line-height: 1.875rem; margin: 0 0 .35rem; text-wrap: wrap; }
.sec-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.25rem; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.sec-meta .pill { margin-left: .4rem; }
.reader .lesson-body { font-size: 1.125rem; line-height: 1.8125rem; max-width: 68ch; }
.reader .lesson-body p, .reader .lesson-body li { text-wrap: wrap; }
.reader .lesson-body img { height: auto; border-radius: 8px; }
.video-block { margin: 0 0 1.5rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1a30; border-radius: var(--r-card); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block.is-hidden .video-frame, .video-block.is-hidden .video-fail { display: none; }
.video-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .4rem 0 0; font-size: .875rem; color: var(--ink-2); }
.video-tools .linkish { min-height: 44px; padding: 0 .25rem; color: var(--navy); font-weight: 600; font-size: .9375rem; }
.video-fail { display: flex; gap: .5rem; align-items: flex-start; margin: .6rem 0 0; padding: .75rem .9rem; background: var(--info-bg); border-radius: 10px; font-size: .9375rem; }
.video-fail[hidden] { display: none; }
@media (min-width: 1024px) {
  .player-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; max-width: none; background: linear-gradient(90deg, #FBF9F4 299px, var(--line-ui) 299px, var(--line-ui) 300px, transparent 300px); min-height: calc(100vh - 6.5rem); }
  .rail { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 2rem 0; }
  .reader { padding: 2.5rem 3rem 0; max-width: calc(720px + 6rem); margin: 0 auto; width: 100%; }
  .sec-h1 { font-size: 2rem; line-height: 2.5rem; }
  .reader .lesson-body { line-height: 1.875rem; }
}
.rail-unit { margin: 0 1.5rem .25rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.rail-title { margin: 0 1.5rem .25rem; font-size: 1.25rem; line-height: 1.75rem; text-wrap: wrap; }
.rail-meta { margin: 0 1.5rem 1rem; font-size: .875rem; color: var(--ink-2); }
.rail-all { margin: 1.25rem 1.5rem 0; border-top: 1px solid var(--line-ui); padding-top: 1rem; }
.rail-all summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rail-all ol { list-style: none; margin: .25rem 0 .75rem; padding: 0; }
.rail-all li a { display: flex; gap: .6rem; align-items: center; min-height: 44px; text-decoration: none; color: var(--navy); font-size: .9375rem; }
.rail-all li a:hover { text-decoration: underline; }
.rail-all li a[aria-current] { font-weight: 700; }
.rail-all .n { width: 1.1rem; text-align: center; font-weight: 600; color: var(--ink-2); }
.rail-all .icon { color: var(--ok-text); }

/* section rows (outline and rail) */
.sec-list { list-style: none; margin: 0; padding: 0; }
.sec-row a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; min-height: 52px; padding: .5rem 1.25rem .5rem 1.5rem; text-decoration: none; color: var(--navy); }
.sec-row a:hover { background: #F4EEE2; }
.sec-row.is-current a { background: var(--saffron-tint); box-shadow: inset 5px 0 0 var(--navy); font-weight: 600; }
.sec-title { line-height: 1.35; }
.sec-note { display: block; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.sec-min { font-size: .875rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.st { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--control-edge); display: grid; place-items: center; background: #fff; }
.st .icon { width: 1rem; height: 1rem; stroke-width: 2.5; }
.st-done { background: var(--ok-text); border-color: var(--ok-text); color: #fff; }
.st-current { border-color: var(--navy); background: linear-gradient(90deg, var(--navy) 50%, #fff 50%); }
.st-quiz { border-color: var(--navy); color: var(--navy); }
.st-quiz .icon { stroke-width: 1.75; width: .95rem; height: .95rem; }

/* ---------- unit check and exam ---------- */
.solo { max-width: 45rem; margin-inline: auto; padding: 1.5rem 1rem 0; }
.solo h1 { font-size: 1.5rem; line-height: 1.875rem; margin-bottom: .75rem; text-wrap: wrap; }
@media (min-width: 1024px) { .solo { padding-top: 2.5rem; } .solo h1 { font-size: 2rem; line-height: 2.5rem; } }
.lead-line { font-size: 1.125rem; font-weight: 600; }
.q-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-text { float: left; width: 100%; padding: 0; margin: 0 0 1.25rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; text-wrap: wrap; }
.q-text + * { clear: both; }
.q-tools { text-align: right; margin: 0 0 .5rem; font-size: .9375rem; }
.q-tools a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.opt { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; min-height: 56px; padding: .6rem .9rem; background: #fff; border: 2px solid var(--control-edge); border-radius: var(--r-card); cursor: pointer; font-weight: 500; line-height: 1.35; }
label.opt:hover { border-color: var(--navy); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-letter { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid var(--control-edge); display: grid; place-items: center; font-weight: 700; font-size: .9375rem; background: #fff; }
.opt:has(input:checked) { background: var(--saffron-tint); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.opt:has(input:checked) .opt-letter { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.opt-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.opt-right, .opt-right-picked { background: var(--ok-bg); border-color: var(--ok-text); color: var(--ok-text); cursor: default; }
.opt-right .opt-letter, .opt-right-picked .opt-letter { background: var(--ok-text); border-color: var(--ok-text); color: #fff; }
.opt-picked-wrong { background: var(--warn-bg); border-color: var(--warn-text); color: var(--warn-text); cursor: default; }
.opt-picked-wrong .opt-letter { background: var(--warn-text); border-color: var(--warn-text); color: #fff; }
.opt-other { cursor: default; color: var(--ink-2); border-color: var(--line-ui); }
.opt-other .opt-letter { border-color: var(--line-ui); color: var(--ink-2); }
.opt-text { overflow-wrap: anywhere; }
@media (max-width: 420px) { .opt { grid-template-columns: 2.25rem minmax(0, 1fr); } .opt-tag { grid-column: 2; } }

/* feedback sheet: slides up after Check in the place of the bottom bar. It sits in the normal flow under the answers,
   never over them (a sticky or fixed sheet hid the lower cards and their "Your answer" label on phones), and app.js
   lands the learner on the end of the page so the sheet, its button and the marked answers above it are on screen. */
html:has(body.has-sheet) { scroll-padding-bottom: 0; }
.sheet { position: relative; z-index: 1; margin: 1.25rem -1rem 0; padding: 1.25rem 1rem max(1rem, env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -2px 12px rgb(12 34 64 / 12%); animation: sheet-up .18s ease-out; }
.sheet h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 .5rem; }
.sheet h2:focus { outline: none; }
.sheet h2:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.sheet-ok h2 { color: var(--ok-text); }
.sheet-warn h2 { color: var(--warn-text); }
.sheet p { margin: 0 0 .5rem; }
.sheet-answer { font-weight: 600; }
.sheet-actions { margin-top: 1rem; }
.sheet-actions form { margin: 0; }
.sheet-actions .btn { width: 100%; }
body.has-sheet main { padding-bottom: 0; }
@media (min-width: 1024px) { .sheet { margin: 1.5rem 0 0; border-radius: var(--r-card); border: 1px solid var(--line-ui); box-shadow: var(--bar-shadow); padding: 1.25rem 1.5rem; } .sheet-actions .btn { width: auto; min-width: 16rem; } body.has-sheet main { padding-bottom: 2rem; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.rules { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.rules li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; align-items: start; font-size: 1.0625rem; }
.rules .icon { color: var(--navy); margin-top: .1rem; }
.name-block { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.name-block.has-error { border-color: var(--bad-text); }
.name-label { margin: 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.name-value { margin: .1rem 0 .25rem; font-size: 1.375rem; font-weight: 700; overflow-wrap: anywhere; }
.name-edit summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.name-edit[open] summary { margin-bottom: .5rem; }
.name-edit .field input { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 2px solid var(--control-edge); border-radius: 10px; font: inherit; }

/* exam review */
.rv-list { list-style: none; margin: 0 0 1.5rem; padding: 0; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); overflow: hidden; }
.rv-row + .rv-row { border-top: 1px solid var(--line-ui); }
.rv-row a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .25rem .75rem; padding: .75rem 1rem; text-decoration: none; color: var(--navy); min-height: 56px; }
.rv-row a:hover { background: #F4EEE2; }
.rv-n { font-weight: 700; color: var(--ink-2); }
.rv-q { font-weight: 600; line-height: 1.35; }
.rv-a { grid-column: 2; font-size: .9375rem; color: var(--ink-2); }
.rv-change { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rv-missing { background: var(--warn-bg); }

/* results */
.score-line { font-size: 1.125rem; font-weight: 600; }
.res-h { font-size: 1.25rem; line-height: 1.75rem; margin: 1.75rem 0 .75rem; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.res-q { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem; }
.res-text { font-weight: 700; margin: 0 0 .75rem; }
.opts-small { gap: .5rem; }
.opts-small .opt { min-height: 48px; }
.res-why { margin: .75rem 0 0; font-size: .9375rem; }
.res-got { margin-top: 1.5rem; }
.res-got > summary { display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.res-got[open] > summary { margin-bottom: .75rem; }
.topics { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem 1.25rem; margin: 1.25rem 0 0; }
.topics .res-h { margin-top: 0; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.topic-unit { margin: 0; font-weight: 700; }
.topic-list ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.topic-list li li { margin: .2rem 0; }

/* ---------- status pills (always words) ---------- */
.status { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.25rem; white-space: nowrap; }
.status-done { background: var(--ok-bg); color: var(--ok-text); }
.status-progress { background: var(--info-bg); color: var(--navy); }
.status-todo { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--control-edge); }
.status-warn { background: var(--warn-bg); color: var(--warn-text); }
.status-ready { background: var(--saffron-tint); color: var(--navy); }
.status-bad { background: var(--bad-bg-ui); color: var(--bad-text); }

/* ---------- My courses ---------- */
.dash { padding-block: 1.5rem 3rem; }
.dash-hi { font-size: 1.5rem; line-height: 1.875rem; margin: 0 0 1rem; }
.dash-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .dash { padding-top: 2.5rem; } .dash-hi { font-size: 2rem; line-height: 2.5rem; } .dash-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.continue-card { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.25rem; }
@media (min-width: 640px) { .continue-card { padding: 1.75rem; } }
.cc-course { font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 .35rem; }
.cc-unit { margin: 0; font-weight: 600; }
.cc-section { margin: .15rem 0 1rem; color: var(--ink-2); }
.cc-more { margin: .75rem 0 0; font-size: .9375rem; }
.cc-more a { display: inline-flex; min-height: 44px; align-items: center; }
.meter { margin: 0 0 1rem; }
.meter progress { height: 8px; background: #EAE2D0; }
.meter progress::-webkit-progress-bar { background: #EAE2D0; }
.meter progress::-webkit-progress-value { background: var(--saffron); }
.meter progress::-moz-progress-bar { background: var(--saffron); }
.meter-words { margin: .4rem 0 0; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.dash-sub { font-size: 1.125rem; margin: 1.5rem 0 .75rem; }
.compact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.compact-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem 1.25rem; }
.compact-card > div { flex: 1; min-width: 0; }
.compact-card .meter { margin: .5rem 0 0; }
.side-card { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.25rem; }
.side-card h2 { font-size: 1.125rem; margin: 0 0 .5rem; }
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-list li { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .75rem 0; border-top: 1px solid var(--line-ui); }
.cert-list li:first-child { border-top: 0; }
.cert-list .meta { display: block; font-size: .875rem; color: var(--ink-2); }
.dash-links { margin: 1rem 0 0; }
.dash-links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.passed-card .cert-card { margin: 1rem 0; }

/* ---------- course outline ---------- */
.outline-page { padding-block: 1.25rem 3rem; max-width: 52rem; }
.outline-page h1 { font-size: 1.5rem; line-height: 1.875rem; margin-bottom: .75rem; }
@media (min-width: 1024px) { .outline-page { padding-top: 2.25rem; } .outline-page h1 { font-size: 2rem; line-height: 2.5rem; } }
.outline-top { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.25rem; margin-bottom: 1rem; }
.outline-top .meter { margin: 0; }
.outline-line { margin: 0; font-weight: 600; }
@media (min-width: 640px) { .outline-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.how { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 0 1.25rem; margin-bottom: 1.25rem; }
.how summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 700; }
.how-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.how-list li { margin-bottom: .35rem; }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.unit-row { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); overflow: hidden; }
.unit-row summary, .final-link { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; min-height: 64px; padding: .75rem 1.25rem; cursor: pointer; list-style: none; text-decoration: none; color: var(--navy); }
.unit-row summary::-webkit-details-marker { display: none; }
.unit-row summary:hover, a.final-link:hover { background: #F4EEE2; }
.unit-n { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--cream); border: 2px solid var(--line-ui); }
.unit-done .unit-n { background: var(--ok-text); border-color: var(--ok-text); color: #fff; }
.unit-done .unit-n .icon { stroke-width: 2.5; }
.unit-progress .unit-n { background: var(--saffron-tint); border-color: var(--navy); }
.unit-main { display: grid; min-width: 0; }
.unit-title { font-weight: 700; line-height: 1.35; }
.unit-meta { font-size: .875rem; color: var(--ink-2); font-weight: 500; }
.unit-row details[open] summary { border-bottom: 1px solid var(--line-ui); }
.unit-row .sec-row a { padding-left: 1.25rem; }
.unit-final .unit-n { background: var(--navy); border-color: var(--navy); color: #fff; }
.unit-final.is-locked .unit-n { background: #fff; color: var(--ink-2); border-color: var(--line-ui); }
@media (max-width: 520px) { .unit-row summary, .final-link { grid-template-columns: 2.25rem minmax(0, 1fr); } .unit-row .status { grid-column: 2; justify-self: start; } }
.course-facts { margin-top: 1.5rem; font-size: .9375rem; color: var(--ink-2); }

/* ---------- pass screen ---------- */
.pass { max-width: 40rem; padding-block: 1.5rem 3rem; }
.pass-head { text-align: center; margin-bottom: 1.25rem; }
.pass-tick { width: 4rem; height: 4rem; margin: 0 auto .5rem; display: block; }
.pass-tick circle { fill: var(--ok-text); }
.pass-tick path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 0; animation: tick-draw .45s .15s ease-out both; }
@keyframes tick-draw { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
.pass h1 { font-size: 2rem; line-height: 2.5rem; margin: 0; }
.pass-course { font-size: 1.125rem; font-weight: 700; margin: .25rem 0 0; }
.pass-score { margin: .15rem 0 0; color: var(--ink-2); font-weight: 500; }
.cert-card { margin: 0 0 1.25rem; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem; }
.cert-thumb { display: block; }
.cert-thumb img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 16px rgb(12 34 64 / 14%); border: 1px solid var(--line-ui); background: #fff; }
.cert-card figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin-top: .75rem; font-size: .9375rem; }
.pass-actions { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.pass-actions form { margin: 0; }
.pass-actions .linkish { min-height: 44px; font-weight: 600; color: var(--navy); }
.share-status { margin: 0; text-align: center; font-size: .9375rem; min-height: 1.25rem; color: var(--ok-text); font-weight: 600; }
.remind-card { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.remind-card > div { flex: 1; }
.remind-h { margin: 0 0 .5rem; font-weight: 600; }
.remind-h strong { font-size: 1.125rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; cursor: pointer; font-weight: 500; }
.remind-note { margin: .25rem 0 0; font-size: .875rem; color: var(--ink-2); }
input[type="checkbox"][switch] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 999px; background: #fff; border: 2px solid var(--control-edge); cursor: pointer; transition: background .15s ease-out; }
input[type="checkbox"][switch]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--control-edge); transition: transform .15s ease-out; }
input[type="checkbox"][switch]:checked { background: var(--ok-text); border-color: var(--ok-text); }
input[type="checkbox"][switch]:checked::before { background: #fff; transform: translateX(20px); }
input[type="checkbox"][switch]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.pass-foot { text-align: center; }
.pass-foot a { display: inline-block; padding-block: .6rem; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .pass-tick path { animation: none; }
  input[type="checkbox"][switch], input[type="checkbox"][switch]::before { transition: none; }
}

/* ---------- fixes from the first visual review ---------- */
.lb-close .icon { width: 1.25rem; height: 1.25rem; }
.lesson-body p:has(> strong:only-child), .lesson-body p:has(> b:only-child) { margin-top: 1.75em; margin-bottom: .5em; }
.sheet h2:focus, .sheet h2:focus-visible, .in-lesson .sheet h2:focus-visible { outline: none; box-shadow: none; }
.opt-tag .icon { width: 1rem; height: 1rem; }
.action-bar .btn { white-space: nowrap; }
.unit-row summary { grid-template-columns: 2.25rem minmax(0, 1fr) auto 1.25rem; align-items: start; }
.unit-row summary::after { content: ""; width: .6rem; height: .6rem; margin-top: .55rem; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); justify-self: center; transition: transform .15s ease-out; }
.unit-row details[open] summary::after { transform: rotate(-135deg); margin-top: .85rem; }
.unit-row summary .status, .final-link .status { margin-top: .3rem; }
.final-link { align-items: start; }
.unit-n { margin-top: .05rem; }
@media (max-width: 520px) {
  .unit-row summary { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; }
  .unit-row summary .status { grid-column: 2; grid-row: 2; justify-self: start; margin-top: .1rem; }
  .unit-row summary::after { grid-column: 3; grid-row: 1; }
  .final-link .status { white-space: normal; }
}
.st { border-color: #5F6B7E; }
.pass-links { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; font-size: .9375rem; }
.pass-links a { display: inline-flex; align-items: center; min-height: 44px; }
.remind-h strong { font-weight: 700; }
.share-status:empty { display: none; }
.switch-row span { flex: 1; }
@media (prefers-reduced-motion: reduce) { .unit-row summary::after { transition: none; } }

/* site header inside the app: account links only, never wrapping */
@media (min-width: 1000px) { .site-menu a, .site-menu .linkish { white-space: nowrap; } }

/* ---------- thanks page: start my course ---------- */
.start-card { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.5rem; margin-bottom: 1.25rem; }
.start-card h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.give-instead { margin-top: .5rem; }
.give-instead > summary { display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.give-instead[open] > summary { margin-bottom: .75rem; }

/* ---------- redeem and join ---------- */
.code-opens { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: start; background: var(--ok-bg); border-radius: 10px; padding: .9rem 1rem; margin: .5rem 0 1.25rem; }
.code-opens .icon { color: var(--ok-text); width: 1.75rem; height: 1.75rem; }
.code-opens p { margin: 0; }
.code-opens-title { font-weight: 700; font-size: 1.0625rem; }
.join-form h1 { margin-top: 0; }
.join-from { margin: 0 0 .25rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Your team ---------- */
.team-page { padding-block: 1.5rem 3rem; }
.team-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.team-head h1 { font-size: 1.5rem; line-height: 1.875rem; margin: 0; }
.team-biz { margin: .2rem 0 0; color: var(--ink-2); font-weight: 600; }
.team-switch { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.team-switch select { min-height: 44px; border: 2px solid var(--control-edge); border-radius: 10px; padding: 0 .6rem; font: inherit; background: #fff; }
.team-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 600px) { .team-actions { width: 100%; } .team-actions .btn { flex: 1 1 100%; } }
@media (min-width: 1024px) { .team-page { padding-top: 2.25rem; } .team-head h1 { font-size: 2rem; line-height: 2.5rem; } }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line-ui); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.strip { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.strip-card { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem; text-decoration: none; color: var(--navy); min-height: 6.5rem; }
.strip-card:hover { border-color: var(--navy); }
.strip-title { font-weight: 700; font-size: .9375rem; }
.strip-n { font-size: 2rem; line-height: 1; font-weight: 700; }
.strip-words { font-size: .875rem; color: var(--ink-2); font-weight: 500; }
.strip-warn { background: var(--warn-bg); border-color: #F2CF95; }
.strip-warn .strip-title, .strip-warn .strip-n, .strip-warn .strip-words { color: var(--warn-text); }
.strip-info { background: var(--info-bg); border-color: #C9D3E3; }
.strip-ok { background: var(--ok-bg); border-color: #B5DCC2; }
.strip-ok .strip-title, .strip-ok .strip-n { color: var(--ok-text); }
.seg { display: flex; gap: 3px; height: 10px; }
.seg span { flex: 1; border-radius: 3px; background: #E3DCCB; }
.seg span.on { background: var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.pills a[aria-current] { background: var(--navy); color: #fff; }
.pill-n { font-variant-numeric: tabular-nums; }
.search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.search input, .search select { min-height: 44px; border: 2px solid var(--control-edge); border-radius: 10px; padding: 0 .75rem; font: inherit; background: #fff; }
.search input { width: min(100%, 16rem); }
@media (max-width: 600px) { .search { width: 100%; } .search input { flex: 1; width: auto; min-width: 0; } }
.people-wrap { border-color: var(--line-ui); border-radius: var(--r-card); overflow: visible; }
table.team-people td { vertical-align: middle; }
table.team-people tr.bucket-needs td:first-child { box-shadow: inset 4px 0 0 #E0A030; }
.person-name { font-weight: 700; }
.person-sub { display: block; font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.chips li { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chip-course { font-weight: 600; font-size: .875rem; min-width: 3.5rem; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { display: inline-flex; vertical-align: middle; margin-left: .5rem; }
.row-actions form { margin: 0; }
.row-link { min-height: 44px; align-items: center; font-weight: 600; }
.row-menu { position: relative; }
.row-menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 10px; cursor: pointer; font-weight: 600; list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary::after { content: ""; width: .45rem; height: .45rem; margin-left: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.row-menu summary:hover { background: #F4EEE2; }
.row-menu-list { position: absolute; right: 0; top: 100%; z-index: 3; min-width: 13rem; background: #fff; border: 1px solid var(--line-ui); border-radius: 10px; box-shadow: 0 8px 24px rgb(12 34 64 / 14%); padding: .35rem; display: grid; text-align: left; white-space: normal; }
.row-menu-list a, .row-menu-list .linkish { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 500; width: 100%; text-align: left; }
.row-menu-list a:hover, .row-menu-list .linkish:hover { background: var(--cream); }
@media (max-width: 760px) {
  table.team-people thead { display: none; }
  table.team-people, table.team-people tbody, table.team-people tr, table.team-people td { display: block; width: 100%; }
  table.team-people tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line-ui); }
  table.team-people td { border: 0; padding: .2rem 0; }
  table.team-people td[data-label="Last active"]::before, table.team-people td[data-label="Refresh by"]::before { content: attr(data-label) " "; font-weight: 600; color: var(--ink-2); }
  table.team-people tr.bucket-needs td:first-child { box-shadow: none; }
  table.team-people tr.bucket-needs { box-shadow: inset 4px 0 0 #E0A030; }
  .row-actions { text-align: left; padding-top: .5rem !important; }
  .row-actions > * { margin: 0 .5rem 0 0; }
  .row-menu-list { left: 0; right: auto; }
}
.empty-card { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.5rem; }
.team-foot { margin-top: 1rem; }
.team-foot a { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.person-card { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.25rem; max-width: 46rem; }
.person-card h2 { margin-bottom: .2rem; font-size: 1.5rem; }
.record-course { border-top: 1px solid var(--line-ui); padding: 1rem 0; }
.record-course h3 { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: 1.0625rem; }
.record-course dl.facts { margin-bottom: .75rem; }
.places-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .places-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.pool { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.pool-title { margin: 0 0 .5rem; font-weight: 700; }
.pool-words { margin: .5rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.give-card { margin: 1rem 0; }
.give-card h2, .topup h2, .join-col h2, .settings-grid h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.give-card textarea { width: 100%; border: 2px solid var(--control-edge); border-radius: 10px; padding: .6rem .75rem; font: inherit; resize: vertical; }
.give-card select { width: 100%; min-height: 48px; border: 2px solid var(--control-edge); border-radius: 10px; padding: 0 .6rem; font: inherit; background: #fff; }
.give-course { font-weight: 600; }
.topup { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.25rem; }
.topup ul { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .75rem; }
.topup li { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.join-card { background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 1.25rem; margin-bottom: .75rem; }
.join-card.is-off { background: #F4F1EA; }
.join-card h3 { display: flex; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--control-edge); border-radius: 10px; padding: 0 .75rem; font: inherit; font-size: .9375rem; background: #fff; color: var(--navy); }
.copy-status { margin: .35rem 0 0; min-height: 1.25rem; font-size: .875rem; color: var(--ok-text); font-weight: 600; }
.join-foot { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: space-between; align-items: center; margin-top: .5rem; }
.join-foot form { margin: 0; }
.join-foot .switch-row { gap: .75rem; }
.settings-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .settings-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.manager-list { list-style: none; margin: 1rem 0; padding: 0; }
.manager-list li { display: flex; gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line-ui); flex-wrap: wrap; }
.manager-list li > span:first-child { flex: 1; min-width: 12rem; }
.manager-list form { margin: 0; }
.manager-list .linkish { min-height: 44px; font-weight: 600; }

/* QR poster for the staff room */
.poster-wrap { padding-block: 1.5rem 3rem; }
.poster-wrap .no-print { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.poster { max-width: 40rem; margin: 1rem auto 0; background: #fff; border: 1px solid var(--line-ui); border-radius: var(--r-card); padding: 2.5rem 2rem; text-align: center; }
.poster img { width: 240px; height: auto; }
.poster h1 { font-size: 2rem; line-height: 2.5rem; margin: 1.5rem 0 .5rem; }
.poster-course { font-size: 1.25rem; font-weight: 600; }
.poster-qr { width: min(100%, 22rem); margin: 1.5rem auto; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-steps { font-size: 1.125rem; max-width: 30rem; margin-inline: auto; }
.poster-url { font-weight: 700; overflow-wrap: anywhere; }
@media print {
  .poster-page .site-header, .poster-page .site-footer, .no-print { display: none !important; }
  .poster { border: 0; padding: 0; }
}

.brand { flex-shrink: 0; }

/* ---------- second review round ---------- */
/* phones: Close on the left, the mark on the right, so the unit title sits in the true centre */
@media (max-width: 1023px) {
  .lb-left { display: contents; }
  .lb-close { grid-column: 1; grid-row: 1; justify-self: start; }
  .lb-title { grid-column: 2; grid-row: 1; }
  .lb-mark { grid-column: 3; grid-row: 1; justify-self: end; }
}
.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip-pool { grid-column: 1 / -1; min-height: 0; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } .strip-pool { grid-column: auto; min-height: 6.5rem; } }
@media (max-width: 420px) { .strip-card { padding: .85rem .75rem; } .strip-title { font-size: .875rem; } .strip-words { font-size: .8125rem; } }
.search { flex-wrap: nowrap; }
.search select { width: auto; }
.row-actions form .btn { min-width: 8.25rem; }
.row-actions > .muted { min-width: 8.25rem; justify-content: flex-end; }
.topup li .btn { white-space: nowrap; flex: none; }
.join-empty { display: flex; gap: .4rem; align-items: flex-start; margin: .25rem 0 .5rem; padding: .6rem .75rem; background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; font-size: .875rem; }
.join-empty .icon { margin-top: .1rem; }
.copy-status:empty { min-height: .5rem; }

/* ---------- third review round ---------- */
.sheet a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sheet-answer { font-weight: 500; }
/* the marketing site's cookie notice sits above the lesson action bar, never over Next */
body.in-lesson .cookie-note { bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { body.in-lesson .cookie-note { bottom: 1.25rem; } }
.cookie-manage[hidden] { display: none; }

/* ---------- fourth review round ---------- */
.sheet a:not(.btn) { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sheet a.btn { text-decoration: none; }
.video-tools { flex-wrap: wrap; row-gap: 0; }
.video-tools .linkish { white-space: nowrap; margin-left: auto; }
.cert-card figcaption { font-size: 1rem; font-weight: 600; }
.remind-card { display: block; }
.remind-card .switch-row { gap: 1rem; }
.remind-card .switch-row span { flex: 1 1 auto; min-width: 0; }
.seg span { max-width: 2.75rem; }
table.team-people td { vertical-align: top; }
table.team-people td[data-label="Last active"], table.team-people td[data-label="Refresh by"] { white-space: nowrap; padding-right: 1.25rem; }
.person-name { overflow-wrap: anywhere; }
table.team-people td[data-label="Name"] { max-width: 18rem; }
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.row-actions > * { margin-left: 0; }
.row-actions > form .btn, .row-actions > .muted, .row-actions > .row-link { min-width: 9.25rem; justify-content: center; text-align: center; display: inline-flex; }
@media (max-width: 760px) { .row-actions { justify-content: flex-start; } .row-actions > .muted, .row-actions > .row-link { min-width: 0; } }

/* ---------- fifth review round ---------- */
.sec-row a { align-items: start; }
.sec-row .st, .sec-row .sec-min { margin-top: .05rem; }
.unit-n { font-size: .9375rem; }
.rv-change { align-self: start; }
.topup li { flex-wrap: wrap; }
.topup li > span { flex: 1 1 14rem; }
.poster-course { text-wrap: balance; }
.give-instead > summary { font-weight: 500; }

/* ---------- layout gate fixes (layout_alignment_audit on staging) ---------- */
.app-page h1, .app-page h2, .app-page h3, .in-lesson h1, .in-lesson h2, .app-page p, .in-lesson p { text-wrap: wrap; }
.lb-label { margin-top: .5rem; }
.lb-mark { justify-content: flex-end; }
@media (min-width: 1024px) { .lb-mark { justify-content: flex-start; } }
.video-tools { margin-top: .6rem; row-gap: .35rem; }
.cert-card figcaption { flex-direction: column; align-items: flex-start; gap: .15rem; }
.search .btn { min-height: 44px; }
.topup > :last-child, .form-card > :last-child, .join-card > :last-child, .settings-grid .form-card .how-list { margin-bottom: 0; }
.join-col h2, .topup h2 { margin-bottom: .75rem; }
.unit-row summary .unit-n, .final-link .unit-n { margin-top: -.4rem; }
.chips { gap: .5rem; }
.chips li { gap: .5rem; }

/* the reminder label stays on one line down to 360 */
.remind-card .switch-row { gap: .75rem; font-size: 1rem; }
@media (max-width: 400px) { .remind-card { padding: 1rem; } .remind-card .switch-row { font-size: .9375rem; } }
.video-tools { row-gap: .5rem; }
@media (min-width: 640px) { .outline-top { align-items: start; } }

/* row actions: the cell stays a table cell (so row borders line up); its contents line up in one column */
table.team-people td.row-actions { display: table-cell; text-align: right; }
.ra { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.ra form { margin: 0; }
.ra > form .btn, .ra > .muted, .ra > .row-link { min-width: 9.25rem; justify-content: center; text-align: center; display: inline-flex; }
table.team-people th.th-actions { text-align: right; padding-right: 1.25rem; }
@media (max-width: 760px) { table.team-people td.row-actions { display: block; } .ra { justify-content: flex-start; } .ra > .muted, .ra > .row-link { min-width: 0; } }

/* the team table stacks as cards up to 900px (at 768 five columns and long emails don't fit) */
@media (max-width: 900px) {
  table.team-people thead { display: none; }
  table.team-people, table.team-people tbody, table.team-people tr, table.team-people td, table.team-people td.row-actions { display: block; width: 100%; }
  table.team-people tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line-ui); }
  table.team-people td { border: 0; padding: .2rem 0; max-width: none; }
  table.team-people td[data-label="Last active"]::before, table.team-people td[data-label="Refresh by"]::before { content: attr(data-label) " "; font-weight: 600; color: var(--ink-2); }
  table.team-people tr.bucket-needs td:first-child { box-shadow: none; }
  table.team-people tr.bucket-needs { box-shadow: inset 4px 0 0 #E0A030; }
  .ra { justify-content: flex-start; padding-top: .5rem; }
  .ra > .muted, .ra > .row-link { min-width: 0; }
  .row-menu-list { left: 0; right: auto; }
}
