/* ATSR B2B QA Audit - styles. Light and dark themes built on tokens; brand colours from the ATSR brand system. */

@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/HostGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/HostGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/HostGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/HostGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---- tokens: light (default) ---- */
:root {
  color-scheme: light;
  --font: "Host Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bg: #f6faf8;
  --surface: #ffffff;
  --surface-2: #e8f5ee;          /* mint tint panels */
  --text: #232428;
  --muted: #6e7074;
  --line: #d8e2dd;
  --accent: #0d4b3f;             /* primary buttons, active states */
  --accent-hover: #08332b;
  --on-accent: #ffffff;
  --accent-text: #0d4b3f;        /* headings, links */
  --thead: #0d4b3f;
  --on-thead: #ffffff;
  --focus: #27eaa6;
  --pass-bg: #d3f1e4;  --pass-fg: #0d4b3f;  --pass-solid: #0d4b3f;
  --coach-bg: #fff4de; --coach-fg: #b7791f; --coach-solid: #b7791f;
  --fail-bg: #fbeceb;  --fail-fg: #b3261e;  --fail-solid: #b3261e;
  --none-bg: #eceff0;  --none-fg: #6e7074;  --na-solid: #6e7074;
  --fail-row-bg: #fffafa; --fail-row-line: #e7b9b6;
  --note-bg: #fff9e6;  --note-line: #f0dfa8;
  --disabled: #b9c9c3; --on-disabled: #ffffff;
  --danger-line: #efc7c4;
  --score-none: #9aa7a2;
}

/* ---- tokens: dark ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1311; --surface: #151b19; --surface-2: #1b2522; --text: #e6eeea; --muted: #97a59f; --line: #29332f;
    --accent: #27eaa6; --accent-hover: #5ff0bd; --on-accent: #06231d; --accent-text: #5ff0bd;
    --thead: #0d4b3f; --on-thead: #eafff5; --focus: #27eaa6;
    --pass-bg: rgba(39,234,166,.14); --pass-fg: #5ff0bd; --pass-solid: #1c8f6a;
    --coach-bg: rgba(234,170,60,.14); --coach-fg: #f0b85a; --coach-solid: #b7791f;
    --fail-bg: rgba(240,90,80,.15); --fail-fg: #ff8a80; --fail-solid: #c8392f;
    --none-bg: #232c29; --none-fg: #97a59f; --na-solid: #56605c;
    --fail-row-bg: #231615; --fail-row-line: #5a2e2a;
    --note-bg: #2a2415; --note-line: #5c4d22;
    --disabled: #2c3733; --on-disabled: #6f7c77;
    --danger-line: #5a2e2a; --score-none: #3a4541;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1311; --surface: #151b19; --surface-2: #1b2522; --text: #e6eeea; --muted: #97a59f; --line: #29332f;
  --accent: #27eaa6; --accent-hover: #5ff0bd; --on-accent: #06231d; --accent-text: #5ff0bd;
  --thead: #0d4b3f; --on-thead: #eafff5; --focus: #27eaa6;
  --pass-bg: rgba(39,234,166,.14); --pass-fg: #5ff0bd; --pass-solid: #1c8f6a;
  --coach-bg: rgba(234,170,60,.14); --coach-fg: #f0b85a; --coach-solid: #b7791f;
  --fail-bg: rgba(240,90,80,.15); --fail-fg: #ff8a80; --fail-solid: #c8392f;
  --none-bg: #232c29; --none-fg: #97a59f; --na-solid: #56605c;
  --fail-row-bg: #231615; --fail-row-line: #5a2e2a;
  --note-bg: #2a2415; --note-line: #5c4d22;
  --disabled: #2c3733; --on-disabled: #6f7c77;
  --danger-line: #5a2e2a; --score-none: #3a4541;
}

/* ---- logo swap: dark-text logo on light, light-text logo on dark ---- */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ---- base ---- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.45; font-size: 15px; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 30px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; color: var(--accent-text); }
h2 { font-size: 19px; font-weight: 600; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 22px 0 10px; color: var(--accent-text); }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.warn { color: var(--fail-fg); }
.empty { padding: 40px 0; color: var(--muted); }

/* ---- top bar ---- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 20px; position: sticky; top: 0; z-index: 5; }
.topbar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand span { border-left: 1px solid var(--line); padding-left: 14px; color: var(--muted); font-weight: 500; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--text); font-weight: 500; opacity: .8; }
.topbar nav a:hover { opacity: 1; text-decoration: none; color: var(--accent-text); }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 6px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn svg { width: 17px; height: 17px; }
.status { max-width: 1120px; margin: 0 auto; padding: 4px 20px 0; font-size: 13px; min-height: 22px; color: var(--muted); }
.status.ok { color: var(--accent-text); }
.status.err { color: var(--fail-fg); }

main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 80px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 8px 0 22px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 6px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; line-height: 1; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn.primary:disabled { background: var(--disabled); color: var(--on-disabled); cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--accent-text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn.danger { background: var(--surface); color: var(--fail-fg); border-color: var(--danger-line); }
.btn.danger:hover { background: var(--fail-bg); }
.btn.block { width: 100%; margin-top: 8px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; }
button.link:hover { text-decoration: underline; }

/* ---- team cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.member-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.member .role { color: var(--muted); font-size: 13px; }
.member-actions { display: flex; gap: 8px; margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.stats.wide { grid-template-columns: repeat(4, minmax(120px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 0 0 8px; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-weight: 600; font-size: 17px; }

/* ---- badges ---- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.pass { background: var(--pass-bg); color: var(--pass-fg); }
.badge.coach { background: var(--coach-bg); color: var(--coach-fg); }
.badge.fail { background: var(--fail-bg); color: var(--fail-fg); }
.badge.none { background: var(--none-bg); color: var(--none-fg); }

/* ---- tables and panels ---- */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 18px 14px; align-self: start; }
.panel h3 { margin-top: 12px; }
ul.plain { padding-left: 18px; margin: 0 0 6px; font-size: 13.5px; }
ul.plain li { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
.list th { text-align: left; background: var(--thead); color: var(--on-thead); font-weight: 600; padding: 9px 12px; font-size: 13px; }
.list td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.list tbody tr[onclick] { cursor: pointer; }
.list tbody tr:hover { background: var(--surface-2); }
.list tr.dim td { color: var(--muted); }
.row-actions { white-space: nowrap; }
.row-actions a, .row-actions button { margin-right: 10px; }

/* ---- forms ---- */
input[type=text], input[type=date], input[type=email], input[type=password], select, textarea { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--surface); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; font-size: 14px; }
.inline-form { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.inline-form input { max-width: 320px; }
.inline-form select { max-width: 240px; }

/* ---- audit header ---- */
.head-block { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.meta-grid { display: grid; gap: 12px; }
.meta-grid.three { grid-template-columns: repeat(3, 1fr); }
.meta-grid .span2 { grid-column: span 2; }
.meta-grid .span3 { grid-column: 1 / -1; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 13px; }
.facts:empty { display: none; }
.facts b { color: var(--accent-text); font-weight: 600; margin-right: 4px; }
.people { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.people-title { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.when { font-size: 13.5px; color: var(--muted); margin: 12px 2px 14px; }
.remind { background: var(--surface-2); border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; font-size: 13px; }
.remind.college { background: var(--note-bg); border: 1px solid var(--note-line); }
.remind strong { color: var(--accent-text); }
.remind ul { margin: 4px 0 0; padding-left: 18px; }
.remind li { margin: 2px 0; }

/* ---- audit layout and checks ---- */
.audit { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.audit-main { min-width: 0; }
h3.phase { margin: 22px 0 8px; font-size: 14px; }
h3.phase .muted { font-weight: 400; font-size: 12px; margin-left: 6px; }
.item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
.item.is-fail { border-color: var(--fail-row-line); background: var(--fail-row-bg); }
.item-n { font-weight: 600; color: var(--muted); font-size: 14px; padding-top: 2px; }
.item-body p { margin: 0 0 6px; font-size: 14.5px; }
.item-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.who { color: var(--accent-text); font-weight: 600; }
.ref { color: var(--muted); }
.crit { color: var(--fail-fg); font-weight: 600; }
.note { margin-top: 8px; font-size: 13px; resize: none; overflow: hidden; min-height: 34px; }
.note-ro { margin-top: 8px; font-size: 13px; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; align-self: start; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; background: var(--surface); border: 0; border-left: 1px solid var(--line); padding: 8px 12px; cursor: pointer; color: var(--muted); }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--surface-2); }
.seg button.on[data-r=pass] { background: var(--pass-solid); color: #fff; }
.seg button.on[data-r=fail] { background: var(--fail-solid); color: #fff; }
.seg button.on[data-r=na] { background: var(--na-solid); color: #fff; }
.seg.wide { display: flex; width: 100%; margin-bottom: 12px; }
.seg.wide button { flex: 1; padding: 10px 12px; white-space: nowrap; }
.seg.wide button.on { background: var(--accent); color: var(--on-accent); }
.readonly .seg { border: 0; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; color: #fff; }
.pill.pass { background: var(--pass-solid); }
.pill.fail { background: var(--fail-solid); }
.pill.na { background: var(--na-solid); }
.pill.none { background: var(--none-bg); color: var(--none-fg); }
.coaching { margin-top: 18px; }
.coaching textarea { font-size: 14px; }
.coaching-ro { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; font-size: 14px; }

/* ---- result panel ---- */
.result-panel { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.score { position: relative; overflow: hidden; border-radius: 8px; padding: 18px 16px 16px; color: #fff; background: #0d4b3f; }
.score > * { position: relative; z-index: 1; }
.score .big { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.score .word { margin-top: 6px; font-size: 16px; font-weight: 600; }
.score .why { margin-top: 4px; font-size: 12.5px; opacity: .9; }
.score.pass { background: #0d4b3f; }
.score.pass .word { color: #d8ff5e; }
.score.pass::after { content: ""; position: absolute; right: -14px; bottom: -18px; width: 120px; height: 88px; background: url("../assets/tick-w.png") no-repeat center / contain; opacity: .16; z-index: 0; }
.score.coach { background: #b7791f; }
.score.fail { background: var(--fail-solid); }
.score.none { background: var(--score-none); }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.tally div { text-align: center; background: var(--surface-2); border-radius: 6px; padding: 6px 2px; }
.tally dt { font-size: 11px; color: var(--muted); }
.tally dd { margin: 0; font-weight: 700; font-size: 16px; }
.people-scores { margin: 4px 0 8px; }
.ps { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ps > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.ps-r { font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.ps-r.pass { background: var(--pass-bg); color: var(--pass-fg); }
.ps-r.coach { background: var(--coach-bg); color: var(--coach-fg); }
.ps-r.fail { background: var(--fail-bg); color: var(--fail-fg); }
.ps-r.none { background: var(--none-bg); color: var(--none-fg); }

/* ---- checks view ---- */
.card-def { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.card-def summary { cursor: pointer; font-size: 15px; }
.def-list { padding-left: 22px; font-size: 14px; }
.def-list li { margin: 6px 0; }
.def-list .ref { margin-left: 6px; font-size: 12px; }
.def-list .crit { margin-left: 8px; font-size: 12px; }

@media (max-width: 860px) {
  .audit, .two-col { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .meta-grid.three, .people-grid { grid-template-columns: 1fr 1fr; }
  .item { grid-template-columns: 26px 1fr; }
  .item .seg { grid-column: 2; justify-self: start; }
  .seg.wide { flex-direction: column; }
  .seg.wide button { border-left: 0; border-top: 1px solid var(--line); }
  .seg.wide button:first-child { border-top: 0; }
  .stats.wide, .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar-in { height: auto; min-height: 54px; padding: 8px 0; flex-wrap: wrap; }
  .brand span { display: none; }
  .brand img { height: 26px; }
  .topbar nav { gap: 12px; flex-wrap: wrap; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* permissions panel */
.perm { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 18px 12px; }
.perm h3 { margin-top: 12px; }
.perm-list { margin: 8px 0 12px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.perm-row:first-child { border-top: 0; }
button.link.danger-link { color: var(--fail-fg); }

/* sign-in, account, logins, roles */
body.auth main { max-width: 440px; padding-top: 48px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 18px; max-width: 440px; }
.auth-card h1 { font-size: 24px; }
.auth-card form label { margin-top: 12px; }
.auth-card form button { margin-top: 18px; }
.auth-card .btn.ghost.block { margin-top: 10px; }
.topbar nav a.account { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; opacity: 1; font-size: 13px; }
.member-form { display: grid; grid-template-columns: 260px 1fr auto; gap: 12px; align-items: start; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); font-weight: 400; white-space: nowrap; }
.chk input { width: auto; margin: 0; accent-color: var(--accent); }
.temp-box { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }
.temp-box code { display: block; font-size: 22px; letter-spacing: .08em; margin: 6px 0; font-family: ui-monospace, Consolas, monospace; user-select: all; }
@media (max-width: 860px) { .member-form { grid-template-columns: 1fr; } }
.facts .fact-warn, .facts .fact-warn b { color: var(--fail-fg); }
.person-notes { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.person-notes:empty { display: none; }
.person-notes label { margin-top: 8px; }
.person-notes textarea { font-size: 13px; }
.ps button.link.small { font-size: 12px; margin-top: 2px; text-align: left; }

/* per-check reassignment, drafts */
.who-sel { width: auto; max-width: 220px; padding: 2px 6px; font-size: 12px; margin-left: 4px; }
.item.is-reassigned { border-left: 3px solid var(--coach-fg); }
.reassigned { color: var(--coach-fg); font-weight: 600; font-size: 11px; }
h1 .badge { vertical-align: middle; font-size: 13px; margin-left: 6px; }

/* ---- v2.4: audit life cycle, coaching log, change requests ---- */
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
h1 .chip { font-size: 12px; margin-left: 6px; }
.chip.st-draft { background: var(--none-bg); color: var(--none-fg); }
.chip.st-scored { background: var(--coach-bg); color: var(--coach-fg); }
.chip.st-final { background: var(--pass-bg); color: var(--pass-fg); }
.chip.st-pending { background: var(--note-bg); color: var(--coach-fg); border-color: var(--note-line); }
.pending { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 10px 16px 14px; margin: 0 0 16px; }
.pending h3 { margin: 6px 0 6px; }
.pending ul.small { font-size: 13px; margin: 4px 0 10px; padding-left: 18px; }
.pending label { display: block; font-size: 13px; margin: 8px 0; }
.pending label input { width: 100%; box-sizing: border-box; margin-top: 4px; }
.pending-list { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 6px 16px 10px; margin: 0 0 18px; font-size: 14px; }
.pending-list h3 { margin: 8px 0 6px; }
.pending-list p { margin: 4px 0; }
.changes { font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.changes ul { margin: 4px 0 0; padding-left: 18px; }
.changes li { margin: 2px 0; }
.result-panel label.reason { display: block; font-size: 13px; margin: 8px 0; }
.result-panel label.reason textarea { width: 100%; box-sizing: border-box; margin-top: 4px; font-size: 13px; }
.history { font-size: 13px; padding-left: 18px; }
.history li { margin: 6px 0; }
.history ul.small { margin: 2px 0 0; padding-left: 16px; color: var(--muted); }
.coach-ro { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; font-size: 14px; }
.coach-ro p { margin: 6px 0 0; white-space: pre-wrap; }
.coach { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px 16px; }
.coach > label { display: block; margin: 10px 0; font-size: 13px; }
.coach textarea, .coach input[type="date"] { width: 100%; box-sizing: border-box; margin-top: 4px; font-size: 14px; }
.coach input[type="date"] { width: auto; display: block; }
.pn { margin: 12px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.pn > strong { display: block; margin-bottom: 2px; }
.pn label { display: block; font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.pn textarea { width: 100%; box-sizing: border-box; margin-top: 3px; font-size: 14px; color: var(--text); }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 14px 0; }
label.check input { width: auto; margin: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
