/* Train Wizard AI staff training pages (/courses). Same look as the live site
   trainwizard.com.au (28 Nov 2026): navy header and footer, cream page, teal
   rounded buttons with navy text, Plus Jakarta Sans, "Train Wizard AI" with
   Wizard in steel and AI in teal. Colours are its tokens, converted to hex.
   Plus Jakarta Sans is served from here (SIL Open Font License, see
   app/_fonts/README). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/courses/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --navy: #0D1A2C; --navy-soft: #18273C; --teal: #62B9B3; --teal-dark: #4FA6A0; --cream: #F7F5F0;
  --steel: #5A7EA3; --brand-steel: #7B9CC4; --on-dark: #F7F5F0; --on-dark-muted: #A9B9CA;
  --ink: var(--navy); --grey: #46576C; --line: #DBD7CF; --input: #D5D0C6; --muted: #EBE7E0;
  --radius: 16px; --radius-btn: 14px;
  /* Score chips and check marks, from the same palette */
  --good: #1F6F6A; --good-bg: #DDF1EF; --ok: #3B5F86; --ok-bg: #E4ECF5; --low: #8A4B26; --low-bg: #F6E7DA;
}
* { box-sizing: border-box; min-width: 0; }
body { margin: 0; font: 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
a { color: var(--steel); }
h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; margin: 8px 0 6px; letter-spacing: -0.03em; font-weight: 800; color: var(--navy); }
p { margin: 0 0 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 32px; padding-bottom: 56px; max-width: 1000px; }
main.wrap.wide { max-width: 1120px; }
.muted, small { color: var(--grey); }
small { display: block; font-size: 13px; }
.steel { color: var(--brand-steel); } .teal { color: var(--teal); }

/* Eyebrows: small uppercase labels, spaced like the live site's */
.eyebrow, .card h2 { color: var(--steel); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 10px; }

/* Header: the same bar as trainwizard.com.au (logo, its four pages, Sign in, Book a demo) */
.nav { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 65px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); flex: none; }
.logo-mark { height: 34px; width: auto; display: block; }
.logo-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.site-links { display: flex; gap: 30px; margin: 0 auto; }
.site-links a, .my-links a, .my-links .link { color: var(--on-dark-muted); text-decoration: none; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.site-links a:hover, .my-links a:hover, .my-links .link:hover { color: var(--on-dark); }
.nav-right { display: flex; align-items: center; gap: 18px; flex: none; }
.my-links { display: flex; align-items: center; gap: 18px; }
.my-links form { margin: 0; }
.my-links a.is-current { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 2px; }
.nav-right .btn.small { color: var(--navy); box-shadow: 0 0 28px rgba(98,185,179,.35); }
.link { background: none; border: 0; padding: 0; cursor: pointer; }
/* The phone menu: hidden on wide screens */
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--on-dark); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 10px 22px 18px; display: grid; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); }
.menu-panel a, .menu-panel .link { display: block; padding: 12px 0; color: var(--on-dark); text-decoration: none; font: inherit; font-size: 17px; font-weight: 500; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.menu-panel a.is-current { color: var(--teal); }
.menu-panel form { margin: 0; }
.menu-panel hr { border: 0; height: 0; margin: 6px 0; }
.sample { background: var(--ok-bg); color: var(--ok); text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 1000px) { .site-links { gap: 20px; } }
@media (max-width: 900px) {
  .site-links, .my-links { display: none; }
  .nav-right { margin-left: auto; gap: 8px; }
  .menu { display: block; }
}

/* Footer: the live site's */
.footer { background: var(--navy); color: var(--on-dark); padding: 40px 0 28px; font-size: 15px; }
.footer p { margin: 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-name { font-weight: 800; font-size: 20px; }
.footer-tag { margin-top: 6px !important; color: var(--on-dark-muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); }
.footer-base { padding-top: 18px; display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-muted); }
.footer-base a { color: var(--on-dark); }

/* Cards: white on cream, rounded, soft shadow */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 18px; box-shadow: 0 20px 50px -30px rgba(13,26,44,.35); }
.card.narrow { max-width: 460px; margin: 48px auto; }
.narrow-ish { max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 18px 0; }
.cards .card { margin: 0; }
.big { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; color: var(--navy); }
.note { background: var(--cream); border-left: 3px solid var(--teal); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.note.warn { background: #FFF6E5; border-left-color: #D9A441; }
.small-print { font-size: 14px; color: var(--grey); margin: 16px 0 0; }
.scroll { overflow-x: auto; }

/* Buttons: teal with navy text, rounded like the live site */
.btn { display: inline-block; background: var(--teal); color: var(--navy); border: 0; border-radius: var(--radius-btn); padding: 13px 24px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--teal-dark); box-shadow: 0 0 24px rgba(98,185,179,.35); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost:hover { background: rgba(13,26,44,.05); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; color: var(--navy); }
label.inline { display: inline-flex; gap: 6px; font-weight: 400; font-size: 15px; margin-right: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
input[type=email], input[type=text], input:not([type]) { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--input); border-radius: 12px; background: #fff; width: 100%; color: var(--navy); }
input[type=radio] { accent-color: var(--teal-dark); }
.row input { flex: 1 1 220px; width: auto; }
input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Score chips */
.tag { display: inline-block; font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 999px; background: var(--muted); color: var(--navy); white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.low { background: var(--low-bg); color: var(--low); }

/* Programme squares */
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.dot { width: 14px; height: 14px; border-radius: 4px; background: var(--muted); }
.dot.done { background: var(--teal); }
.dot.next { background: #fff; box-shadow: inset 0 0 0 2px var(--steel); }

table.grid { border-collapse: collapse; width: 100%; font-size: 15px; }
.grid th { text-align: left; font-size: 12px; color: var(--steel); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.team td:first-child a { text-decoration: none; color: var(--navy); }

details.call { border-top: 1px solid var(--line); }
details.call > summary { list-style: none; display: grid; grid-template-columns: 110px 1fr auto 52px; gap: 12px; align-items: center; padding: 12px 8px; cursor: pointer; border-radius: 10px; }
details.call > summary::-webkit-details-marker { display: none; }
details.call > summary:hover { background: var(--cream); }
details.call[open] > summary { background: var(--cream); }
.when, .who { font-weight: 600; }
.len { color: var(--grey); text-align: right; font-size: 14px; }
.call-body { padding: 12px 8px 20px; }
.checks { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; }
.checks li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding: 3px 0; font-size: 15px; }
.checks b.good { color: var(--good); } .checks b.ok { color: var(--ok); } .checks b.low { color: var(--low); }
audio { width: 100%; max-width: 520px; margin: 4px 0 8px; }
details.tr > summary { cursor: pointer; font-weight: 600; color: var(--steel); padding: 6px 0; }
.lines { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--cream); }
.lines p { margin: 0 0 8px; font-size: 15px; }
.lines p.me b { color: var(--teal-dark); }

body.embed main.wrap { padding-top: 14px; }
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  details.call > summary { grid-template-columns: 1fr auto; }
  .when { grid-column: 1 / -1; font-weight: 400; color: var(--grey); }
  .when small { display: inline; margin-left: 6px; }
  .len { display: none; }
  /* Team table: one small card per person on a phone */
  .card.scroll:has(table.team) { padding: 4px 16px; }
  table.team, table.team tbody, table.team tr, table.team td { display: block; width: 100%; }
  table.team thead { display: none; }
  table.team tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.team tr:last-child { border-bottom: 0; }
  table.team td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; align-items: flex-start; }
  table.team td:first-child { display: flex; align-items: baseline; gap: 8px; justify-content: flex-start; text-align: left; padding-bottom: 6px; font-size: 17px; }
  table.team td:first-child small { display: inline; }
  table.team td[data-label]::before { content: attr(data-label); color: var(--steel); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding-top: 2px; white-space: nowrap; }
}

/* The page fills the screen, so there's no blank space under the footer */
body { min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { flex: 1 0 auto; width: 100%; }

/* Signed-out pages: a split product login (navy panel left, card right) */
.auth-main { flex: 1 0 auto; display: flex; width: 100%; }
.auth { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); width: 100%; }
.auth-side { position: relative; overflow: hidden; display: flex; align-items: center; padding: 64px 56px; color: var(--on-dark);
  background: radial-gradient(900px 500px at 0% 0%, rgba(98,185,179,.18), transparent 60%), radial-gradient(700px 420px at 100% 100%, rgba(123,156,196,.16), transparent 60%), var(--navy); }
.auth-side-in { width: 100%; max-width: 540px; margin-left: auto; }
.eyebrow.on-dark { color: var(--teal); }
.auth-title { color: var(--on-dark); font-size: clamp(42px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 6px 0 14px; }
.auth-lead { font-size: 20px; line-height: 1.5; color: var(--on-dark-muted); margin: 0 0 30px; }
.points { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.points svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(98,185,179,.14); box-shadow: inset 0 0 0 1px rgba(98,185,179,.35);
  fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.points b { display: block; font-size: 17px; color: var(--on-dark); }
.points span { display: block; font-size: 15px; color: var(--on-dark-muted); line-height: 1.5; }
.auth-photo { margin: 0; }
.auth-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.auth-card-wrap { display: flex; align-items: center; justify-content: center; padding: 64px 32px; }
.auth-card { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px 40px; box-shadow: 0 30px 70px -36px rgba(13,26,44,.45); }
.auth-h { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); margin: 0 0 10px; }
.auth-sub { font-size: 17px; color: var(--grey); margin: 0 0 22px; }
.auth-card label { font-size: 15px; }
.auth-card input[type=email] { padding: 16px 16px; font-size: 17px; border-radius: 14px; }
.btn-big { width: 100%; padding: 17px 24px; font-size: 17px; }
.auth-card .small-print { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 22px 44px; }
  .auth-side-in { margin: 0 auto; }
  .auth-title { font-size: 44px; }
  .auth-lead { font-size: 18px; margin-bottom: 24px; }
  .points { margin-bottom: 0; gap: 10px; }
  .points li { grid-template-columns: 38px 1fr; align-items: center; }
  .points svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; }
  .points span { display: none; }
  .auth-photo { display: none; }
  .auth-card-wrap { padding: 28px 16px 44px; }
  .auth-card { padding: 30px 22px; border-radius: 20px; }
  .auth-h { font-size: 28px; }
}

/* ---------- Scoreboard and manager page ---------- */
.section-h { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 26px 0 4px; color: var(--navy); }
.boards-wrap { margin-bottom: 22px; }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -30px rgba(13,26,44,.35); overflow: hidden; }
.board header { background: var(--navy); color: var(--on-dark); padding: 14px 18px 12px; }
.board h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.board h3 span { font-size: 13px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; margin-left: 4px; }
.board header p { margin: 2px 0 0; font-size: 13px; color: var(--on-dark-muted); }
.board ol { list-style: none; margin: 0; padding: 6px 18px 12px; }
.board li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.b-row { display: flex; align-items: center; gap: 10px; }
.b-name { flex: 1; font-size: 16px; }
.place { flex: none; min-width: 38px; text-align: center; font-size: 12px; font-weight: 800; padding: 3px 6px; border-radius: 999px; background: var(--muted); color: var(--grey); }
.place.p1 { background: #F4E3B5; color: #6B4E0E; }
.place.p2 { background: #E3E7EC; color: #3E4A59; }
.place.p3 { background: #F1D9C6; color: #7A4420; }
.b-line { margin: 6px 0 0 48px; font-size: 14px; color: var(--grey); font-style: italic; }
.b-line::before { content: "\201C"; } .b-line::after { content: "\201D"; }
details.listen { margin: 6px 0 0 48px; }
details.listen > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--teal-dark); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.listen > summary::-webkit-details-marker { display: none; }
details.listen > summary::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
details.listen[open] > summary::before { border-left-color: transparent; border-top: 8px solid currentColor; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
details.listen audio { display: block; margin-top: 8px; }
.not-yet { margin-top: 14px; font-size: 14px; }

/* Programme grid: people x practice customers */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px 4px; }
table.pgrid, table.heat { border-collapse: separate; border-spacing: 3px; font-size: 14px; }
.pgrid th { font-size: 12px; font-weight: 700; color: var(--navy); text-align: center; white-space: nowrap; padding: 2px 0; vertical-align: bottom; }
.pgrid th small { font-size: 10px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
.pgrid tr.stages th { font-size: 10px; color: var(--steel); letter-spacing: .12em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.pgrid th.who, .heat tbody th { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; padding-right: 10px; font-size: 15px; }
.pgrid th.who a { color: var(--navy); text-decoration: none; }
.pgrid th.who small { font-size: 12px; font-weight: 500; }
.pgrid td { padding: 0; }
.box { position: relative; display: inline-grid; place-items: center; width: 39px; height: 36px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.box.pass { background: var(--good-bg); color: var(--good); }
.box.done { background: #FBEFD5; color: #7A5A12; }
.box.next { background: #fff; color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--teal); font-size: 11px; border-radius: 10px; }
.box.none { background: var(--muted); color: #9AA3AE; font-weight: 600; }
.star { position: absolute; top: -7px; right: -5px; font-style: normal; font-size: 13px; color: #C9961A; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.star-key { color: #C9961A; }
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--grey); margin: 12px 0 0; }
.key .box, .key .heat-box { width: 34px; height: 24px; font-size: 11px; border-radius: 7px; }

/* Strengths heatmap: people x the 10 checks */
.heat thead th { font-size: 13px; color: var(--navy); font-weight: 700; text-align: center; padding: 0 2px 4px; white-space: nowrap; }
.heat tbody th { font-weight: 600; white-space: nowrap; }
.heat td { padding: 0; }
.heat-box { display: inline-grid; place-items: center; width: 54px; height: 32px; border-radius: 9px; font-weight: 800; font-size: 14px; }
.heat-box.strong { background: #2F8F88; color: #fff; }
.heat-box.ok { background: var(--good-bg); color: var(--good); }
.heat-box.work { background: #FBEFD5; color: #7A5A12; }
.heat-box.weak { background: #F6D9CC; color: #8A3B1E; }
.heat-box.none { background: var(--muted); color: #9AA3AE; }
.heat-box.team { box-shadow: inset 0 0 0 2px var(--navy); }

/* Team strengths bars (scoreboard) */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.two .card { margin: 0; }
.bars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(0, 190px) 1fr 34px; gap: 12px; align-items: center; font-size: 14px; }
.bar-name { font-weight: 600; }
.bar { height: 10px; background: var(--muted); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar i.strong { background: #2F8F88; } .bar i.ok { background: var(--teal); } .bar i.work { background: #E2B65A; } .bar i.weak { background: #D9805B; }
.bars b { text-align: right; } .bars b.strong, .bars b.ok { color: var(--good); } .bars b.work { color: #7A5A12; } .bars b.weak { color: #8A3B1E; }

/* Recent calls */
.recent { list-style: none; margin: 6px 0 0; padding: 0; }
.recent-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.r-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.r-cust { color: var(--grey); flex: 1; }
.r-when { width: 100%; font-size: 13px; color: var(--grey); }
.recent details.listen { margin-left: 0; }
.open { font-weight: 700; text-decoration: none; white-space: nowrap; }
.small-note { font-size: 14px; margin: 12px 0 0; }

@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .boards { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: minmax(0, 1fr) 70px 30px; }
  .box { width: 40px; height: 34px; }
  .heat-box { width: 46px; }
  .section-h { font-size: 21px; }
}

/* Bar widths: w0 to w50 is 0.0 to 5.0 (no inline styles: the pages block them) */
.bar i.w0{width:0%}.bar i.w1{width:2%}.bar i.w2{width:4%}.bar i.w3{width:6%}.bar i.w4{width:8%}.bar i.w5{width:10%}.bar i.w6{width:12%}.bar i.w7{width:14%}.bar i.w8{width:16%}.bar i.w9{width:18%}
.bar i.w10{width:20%}.bar i.w11{width:22%}.bar i.w12{width:24%}.bar i.w13{width:26%}.bar i.w14{width:28%}.bar i.w15{width:30%}.bar i.w16{width:32%}.bar i.w17{width:34%}.bar i.w18{width:36%}.bar i.w19{width:38%}
.bar i.w20{width:40%}.bar i.w21{width:42%}.bar i.w22{width:44%}.bar i.w23{width:46%}.bar i.w24{width:48%}.bar i.w25{width:50%}.bar i.w26{width:52%}.bar i.w27{width:54%}.bar i.w28{width:56%}.bar i.w29{width:58%}
.bar i.w30{width:60%}.bar i.w31{width:62%}.bar i.w32{width:64%}.bar i.w33{width:66%}.bar i.w34{width:68%}.bar i.w35{width:70%}.bar i.w36{width:72%}.bar i.w37{width:74%}.bar i.w38{width:76%}.bar i.w39{width:78%}
.bar i.w40{width:80%}.bar i.w41{width:82%}.bar i.w42{width:84%}.bar i.w43{width:86%}.bar i.w44{width:88%}.bar i.w45{width:90%}.bar i.w46{width:92%}.bar i.w47{width:94%}.bar i.w48{width:96%}.bar i.w49{width:98%}
.bar i.w50{width:100%}
.pgrid th.who small { text-transform: none; letter-spacing: 0; }
.swipe { display: none; font-size: 13px; font-weight: 600; color: var(--steel); margin: 0 0 6px; }
@media (max-width: 640px) { .swipe { display: block; } }
@media (max-width: 640px) { .card.scroll:has(table.team) h2 { margin-top: 16px; } .card.scroll:has(table.team) .small-note { margin-bottom: 16px; } }
.pgrid th.who { padding-right: 4px; }

/* Mobile sign-in (texted code) */
input[type=tel] { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--input); border-radius: 12px; background: #fff; width: 100%; color: var(--navy); }
.auth-card input[type=tel], .auth-card input.code-box { padding: 16px 16px; font-size: 17px; border-radius: 14px; }
.auth-card input.code-box { font-size: 24px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.switch-way { margin: 16px 0 0; font-size: 15px; text-align: center; }
.resend { margin: 16px 0 0; font-size: 15px; color: var(--grey); text-align: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--steel); text-decoration: underline; cursor: pointer; }
.signin-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 720px) { .signin-fields { grid-template-columns: 1fr; } }
.auth-sub b { white-space: nowrap; }

/* Staff profile: job title, up to 3 mobiles, job types (Team page and a person's page). */
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.three-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.jobs .muted { margin: 0 0 8px; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 12px; }
.jobs-grid label.inline { margin: 0; align-items: center; }
input[type=checkbox] { accent-color: var(--teal-dark); width: 18px; height: 18px; margin: 0; flex: none; }
.more-mobiles summary { cursor: pointer; color: var(--steel); font-size: 14px; font-weight: 600; }
.more-mobiles[open] summary { margin-bottom: 10px; }
form.profile fieldset > .muted { margin: 0 0 8px; }
@media (max-width: 720px) { .two-fields, .three-fields { grid-template-columns: 1fr; } }
.add-staff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px 32px; align-items: start; }
.add-staff .add-btn { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .add-staff { grid-template-columns: 1fr; } }

/* Signed in: staff links only (no sales links), public site in the footer. */
.nav.signed-in .nav-right { margin-left: auto; }
.footer-links a.footer-site { font-size: 13px; opacity: .85; }
@media (max-width: 900px) {
  /* Phone sign-in: the form first, the "Staff training" panel below it. */
  .auth-card-wrap { order: -1; padding: 28px 16px 32px; }
  .auth-card { padding: 30px 22px; }
}
@media (max-width: 640px) {
  .footer-inner { padding-bottom: 30px; row-gap: 18px; }
  .footer-links { row-gap: 12px; }
}

/* My training: ring the practice line. */
.call-card { border: 2px solid var(--teal); }
.call-card .call-lead { font-size: 17px; margin: 0 0 12px; }
.call-card p { margin-bottom: 0; }
.call-card p + p { margin-top: 10px; }
.call-btn { text-align: center; max-width: 460px; }
/* Call rows: a small arrow says "tap to open". */
details.call > summary { grid-template-columns: 110px 1fr auto 52px 16px; }
.open-arrow { color: var(--steel); font-size: 22px; line-height: 1; font-weight: 700; transition: transform .15s; text-align: center; }
details.call[open] > summary .open-arrow { transform: rotate(90deg); }
@media (max-width: 640px) { details.call > summary { grid-template-columns: 1fr auto 16px; } }

/* A form that was turned away: the message sits next to its box. */
.field-err { display: block; margin-top: 6px; color: #9A3412; font-size: 14px; font-weight: 600; }
input[aria-invalid=true] { border-color: #C2410C; box-shadow: 0 0 0 2px rgba(194,65,12,.15); }
.jobs > .field-err { margin: 0 0 8px; }

/* Remove from team. */
.remove-card summary { cursor: pointer; color: #9A3412; font-weight: 600; }
.remove-card details[open] summary { margin-bottom: 8px; }
.btn.danger { background: #B4401A; color: #fff; }
.btn.danger:hover { background: #962F10; box-shadow: none; }

/* Programme grid: customers not in that person's programme are greyed out. */
.box.off { background: transparent; color: #B8BFC8; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.box.pass.off, .box.done.off { opacity: .55; }

/* Scoreboard boards: a grid on a computer, folded on a phone (tap to open). */
.boards-phone { display: none; }
@media (max-width: 640px) {
  .boards-desk { display: none; }
  .boards-phone { display: block; margin-top: 10px; }
  .boards-phone .small-note { margin: 0 0 10px; }
  details.board-fold { margin-bottom: 10px; }
  details.board-fold > summary { list-style: none; cursor: pointer; background: var(--navy); color: var(--on-dark); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  details.board-fold > summary::-webkit-details-marker { display: none; }
  details.board-fold > summary::after { content: "›"; font-size: 22px; color: var(--teal); transition: transform .15s; }
  details.board-fold[open] > summary::after { transform: rotate(90deg); }
  .bf-name { font-size: 18px; font-weight: 800; }
  .bf-name span { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; margin-left: 4px; }
  .bf-meta { margin-left: auto; font-size: 13px; color: var(--on-dark-muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .bf-sub { margin: 0; padding: 10px 16px 0; font-size: 13px; color: var(--grey); }
}
/* Boxes in a row stay level when one has a message under it. */
.three-fields label, .add-staff label { align-content: start; }
.three-fields { align-items: start; }
.call-btn .call-num { display: block; white-space: nowrap; font-size: 22px; font-weight: 800; letter-spacing: .02em; margin-top: 2px; }

/* Email/text code box: the button stays off until 6 digits are typed (like the fitness app, without scripts). */
form:has(.code-box:invalid) .btn { opacity: 0.5; pointer-events: none; }
.auth-card input.code-box { text-align: center; }

/* Course plan (start date, new or existing staff): today's calls, on-track view. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.day-plan { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.day-plan li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.day-plan li small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.dp-mark { width: 20px; height: 20px; flex: none; border: 2px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.day-plan li.done { color: var(--grey); }
.day-plan li.done .dp-mark { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.team td small.flag { display: block; color: var(--low); font-weight: 700; font-size: 12px; margin-top: 4px; }
.on-track h3 { font-size: 16px; margin: 16px 0 6px; color: var(--navy); }
.ot-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.nudge { list-style: none; padding: 0; margin: 0; }
.nudge li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.nudge li a { color: var(--navy); text-decoration: none; }
.nudge li small { flex-basis: 100%; }
.course-plan label.inline { display: flex; margin: 4px 0; }
.course-plan label:not(.inline) { margin-top: 8px; }
.course-plan .small-note { margin-top: 6px; }
input[type=date] { font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--input); border-radius: 12px; background: #fff; width: 100%; max-width: 240px; color: var(--navy); min-height: 46px; display: block; }

/* Score over time (staff page and a manager's person page): server-drawn SVG,
   a wide drawing on a computer and a narrow one on a phone. */
.score-chart svg { display: block; width: 100%; height: auto; }
.score-chart .sc-phone { display: none; }
@media (max-width: 600px) { .score-chart .sc-desk { display: none; } .score-chart .sc-phone { display: block; } }
.sc-grid { stroke: var(--muted); stroke-width: 1; }
.sc-y, .sc-x { fill: var(--grey); font-family: inherit; }
.sc-band { fill: var(--good-bg); opacity: .55; }
.sc-pass { stroke: var(--good); stroke-width: 2; stroke-dasharray: 6 5; }
.sc-pass-label { fill: var(--good); font-weight: 700; font-family: inherit; }
.sc-line { fill: none; stroke: var(--steel); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: .7; }
.sc-dot { stroke: #fff; stroke-width: 2; }
.sc-dot.good { fill: var(--good); } .sc-dot.ok { fill: var(--ok); } .sc-dot.low { fill: var(--low); }
.chart-facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--grey); }
.chart-facts b { color: var(--navy); }

/* Owner setup page (/courses/setup) */
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.setup-steps li { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.setup-steps li a { font-weight: 700; text-decoration: none; color: var(--navy); display: block; }
.setup-steps li span { display: block; font-size: 14px; color: var(--grey); }
.setup-steps li.done { box-shadow: inset 3px 0 0 var(--teal); }
textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--input); border-radius: 12px; background: #fff; width: 100%; color: var(--navy); resize: vertical; min-height: 64px; }
select, input[type=url], input[type=file] { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--input); border-radius: 12px; background: #fff; width: 100%; color: var(--navy); }
.qlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: q; }
.qlist > li { display: grid; gap: 6px; }
.qlist .q-n { color: var(--steel); font-weight: 800; margin-right: 4px; }
.qlist .q-h { font-weight: 400; font-size: 14px; color: var(--grey); }
.q-section { margin: 26px 0 12px; font-size: 18px; color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.q-section:first-child { margin-top: 6px; }
.save-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.kinds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 6px 0 4px; }
.kinds label { font-weight: 600; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.file-list .f-name { font-weight: 600; overflow-wrap: anywhere; }
.file-list .f-meta { font-size: 13px; color: var(--grey); }
.file-list form { margin-left: auto; }
.linkish.danger-text { color: #A8381A; }
.tq-list { list-style: none; padding: 0; margin: 0; }
.tq-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.tq-list li.approved .tq-q { border-color: var(--teal); background: #F4FBFA; }
.tq-list .tq-ok, .tq-list .tq-rm { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; white-space: nowrap; padding-top: 12px; }
.tq-list .tq-rm { color: var(--grey); font-weight: 500; }
.tq-list .tq-edited { grid-column: 2; font-size: 12px; color: var(--grey); margin-top: -4px; }
.tq-list .tq-q { min-height: 0; line-height: 1.4; }
.tq-topic { margin: 18px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 600px) {
  .tq-list li { grid-template-columns: 1fr auto; }
  .tq-list .tq-ok { grid-column: 1; grid-row: 2; padding-top: 0; }
  .tq-list .tq-q { grid-column: 1 / -1; grid-row: 1; }
  .tq-list .tq-rm { grid-column: 2; grid-row: 2; padding-top: 0; }
  .tq-list .tq-edited { grid-column: 1 / -1; }
}
.setup-link-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
