/* ETC MS · components (docs/07-design-system.md). Values come from tokens.css. */
:root { --tch-red: #D32027; --focus-ring: 0 0 0 3px rgba(58,100,150,.18); }

/* ---- Top bar (60 px) ---- */
.topbar { height: 60px; display: flex; align-items: center; gap: var(--s-5); padding: 0 var(--s-7);
  background: var(--surface); border-bottom: 1px solid var(--border); position: relative; }
.topbar-logo img { height: 26px; width: auto; }
.topbar-divider { width: 1px; height: 26px; background: var(--border); }
.topbar-nav { display: flex; align-items: center; gap: var(--s-7); height: 100%; }
.topbar-nav ul { display: flex; gap: var(--s-7); list-style: none; margin: 0; padding: 0; height: 100%; }
.topbar-nav li { display: flex; align-items: center; }
.nav-link { position: relative; display: flex; align-items: center; height: 60px; font-size: 15px;
  color: var(--muted); text-decoration: none; cursor: pointer; transition: color var(--dur-fast); }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--action); }
.nav-link.is-soon, .menu-item.is-soon { color: var(--muted-disabled); cursor: default; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }

.save-state { display: flex; align-items: center; gap: var(--s-2); font-size: 14px; color: var(--muted); }
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bar-green); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--action-tint); color: var(--action); font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---- Menus (details/summary, no script needed) ---- */
.menu { position: relative; height: 100%; display: flex; align-items: center; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 200px; margin: 0;
  padding: var(--s-2); list-style: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-preview); }
.menu-right .menu-list { left: auto; right: 0; top: calc(100% + 8px); }
.menu-item { display: block; width: 100%; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink); text-align: left; text-decoration: none; }
a.menu-item:hover, .menu-button:hover { background: var(--paper); }
.menu-button { border: 0; background: none; cursor: pointer; }
.menu-meta { padding: var(--s-2) var(--s-3) var(--s-3); margin: 0 0 var(--s-1); font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--divider); }
.menu-meta strong { color: var(--ink); font-weight: 600; }

/* ---- Page header ---- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-6) var(--s-8) var(--s-4); }
.page-title { font-size: 34px; line-height: 1; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 44px;
  padding: 0 var(--s-5); border-radius: var(--r-md); font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--input-border); }
.btn-secondary:hover { border-color: var(--action); color: var(--action); }
.btn-text { background: none; border: 0; color: var(--action); padding: 0; height: auto; }
.btn-lg { height: 48px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---- Forms ---- */
.field { margin-bottom: var(--s-4); }
.field label { display: block; margin-bottom: var(--s-1h); font-size: 14px; font-weight: 600; }
.input { width: 100%; height: 46px; padding: 0 var(--s-3h); font-size: 15px; background: var(--surface);
  border: 1.5px solid var(--input-border); border-radius: var(--r-md); transition: border-color var(--dur-fast); }
.input:focus { outline: none; border-color: var(--action); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-help { margin-top: var(--s-1h); font-size: 13px; color: var(--muted); }
.form-error { margin: var(--s-3) 0 0; font-size: 14px; color: var(--error); }
.form-ok { margin: var(--s-3) 0 0; font-size: 14px; color: var(--green-text); }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-6); }
.card-title { font-size: 22px; margin-bottom: var(--s-2); }

/* ---- Footer (40 px) ---- */
.app-footer { height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--s-8); font-size: 13px; color: var(--muted); }
.endorse { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 13px; color: var(--muted); }
.endorse img { width: 14px; height: auto; }
.endorse b { font-weight: 600; }
.endorse-tch { color: #383838; }
.endorse-jozi { color: var(--tch-red); }

/* ---- Login (S01) and setup ---- */
.auth { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s-16) var(--s-6) var(--s-8); }
.auth-inner { width: 100%; max-width: 680px; display: flex; flex-direction: column; align-items: center; }
.auth-logo { width: 100%; max-width: 680px; height: auto; }
.auth-tagline { margin: var(--s-5) 0 var(--s-10); font-family: var(--font-display); font-style: italic;
  font-weight: 500; font-size: 22px; color: var(--muted); }
.auth-form { width: 100%; max-width: 360px; }
.auth-title { font-size: 26px; margin-bottom: var(--s-5); text-align: center; }
.auth-links { margin-top: var(--s-4); font-size: 14px; text-align: center; }
.auth-links summary { color: var(--action); cursor: pointer; display: inline; list-style: none; }
.auth-links summary::-webkit-details-marker { display: none; }
.auth-links p { margin-top: var(--s-2); color: var(--muted); }
.auth-footer { padding: var(--s-6) 0; display: flex; justify-content: center; }

/* ---- Dashboard (S02) ---- */
.dash { padding: 0 var(--s-8) var(--s-7); }
.empty-state { max-width: 560px; margin: var(--s-10) auto; text-align: center; padding: var(--s-10) var(--s-8); }
.empty-state .card-title { font-size: 26px; }
.empty-bars { display: flex; justify-content: center; align-items: flex-end; gap: var(--s-1h); height: 40px; margin-bottom: var(--s-5); }
.empty-bars span { width: 12px; border-radius: var(--r-xs); }
.empty-bars span:nth-child(1) { height: 22px; background: var(--bar-blue); }
.empty-bars span:nth-child(2) { height: 32px; background: var(--bar-purple); }
.empty-bars span:nth-child(3) { height: 40px; background: var(--bar-green); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: var(--s-4) 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--border); }
.table td { padding: var(--s-3); border-bottom: 1px solid var(--divider); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Badges + pass/fail text ---- */
.badge { display: inline-block; padding: 2px var(--s-2); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.badge-pass { background: var(--green-tint); color: var(--green-text); }
.badge-fail { background: var(--error-bg); color: var(--error); }
.badge-wait { background: var(--divider); color: var(--muted); }
.text-pass { color: var(--green-text); }
.text-fail { color: var(--error); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---- Scoring self-test (admin) ---- */
.st-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1h); }

/* ---- Admin pages: Clients (#9 item 3) ---- */
.flash { margin: 0 0 var(--s-4); }
.admin-form { max-width: 560px; margin-bottom: var(--s-6); }
.form-actions { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: var(--ink); color: #fff; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions a + a { margin-left: var(--s-4); }
.row-actions form { margin: 0; }
.deleted-list { margin-top: var(--s-6); }
.deleted-list > summary { cursor: pointer; margin-bottom: 0; }
.deleted-list[open] > summary { margin-bottom: var(--s-2); }

/* ---- Campaign wizard (S06, #9 item 4) ---- */
.wiz { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); align-items: start;
  padding: 0 var(--s-8) var(--s-7); }
.wiz-rail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-3); }
.wiz-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.wiz-step > a, .wiz-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2h) var(--s-3);
  border-radius: var(--r-md); font-size: 14px; color: var(--muted); text-decoration: none; }
.wiz-step > a { color: var(--ink); }
.wiz-step > a:hover { background: var(--paper); }
.wiz-dot { flex: 0 0 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1.5px solid var(--input-border); background: var(--surface); color: var(--muted); }
.wiz-step.is-done .wiz-dot { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-text); }
.wiz-step.is-current .wiz-row { background: var(--action-tint); color: var(--ink); font-weight: 600; }
.wiz-step.is-current .wiz-dot { background: var(--action); border-color: var(--action); color: #fff; }
.wiz-panel { max-width: 720px; }
.wiz-title { font-size: 26px; margin-bottom: var(--s-2); }

.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { display: block; padding: 0; margin-bottom: var(--s-1h); font-size: 14px; font-weight: 600; }
.field-error { margin: var(--s-1h) 0 0; font-size: 13px; color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.input-narrow { width: 120px; }
.input-suffix { display: flex; align-items: center; gap: var(--s-3); font-size: 14px; color: var(--muted); }
select.input { padding-right: var(--s-8); }

.choice-card { display: block; margin-bottom: var(--s-3); padding: var(--s-4); cursor: pointer;
  border: 1.5px solid var(--input-border); border-radius: var(--r-lg); background: var(--surface); }
.choice-card:has(input[type="radio"]:checked) { border: 2px solid var(--action); background: var(--action-tint-soft); }
.choice-head { display: flex; align-items: center; gap: var(--s-2h); font-weight: 600; }
.choice-head input { width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.choice-body { display: block; margin-top: var(--s-3); padding-left: 28px; }

.swatches { display: flex; flex-wrap: wrap; gap: var(--s-2h); }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sw { display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--input-border); }
.swatch input:checked + .sw { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + .sw { box-shadow: 0 0 0 2px var(--ink), var(--focus-ring); }
.sw-navy { background: var(--action); }
.sw-blue { background: var(--bar-blue); }
.sw-purple { background: var(--bar-purple); }
.sw-green { background: var(--bar-green); }
.sw-steel { background: var(--steel); }
.sw-amber { background: var(--amber-text); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--divider); border-radius: var(--r-md); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented span { display: block; padding: var(--s-2) var(--s-5); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-thumb); }
.segmented input:focus-visible + span { box-shadow: var(--focus-ring); }

.logo-row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.logo-preview { max-width: 200px; max-height: 80px; padding: var(--s-2); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); }
.file-input { font-size: 14px; }

.save-state.is-busy .save-dot { background: var(--steel); }
.save-state.is-offline .save-dot { background: var(--amber-text); }
.save-state.is-error .save-dot { background: var(--error); }
.save-state.is-error { color: var(--error); }

/* ---- Dashboard drafts list (#9 item 4) ---- */
.drafts { margin-top: var(--s-6); }

/* ---- Scorecard builder (S07, #9 item 6) ---- */
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.role-tabs { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.role-tab { padding: var(--s-1h) var(--s-4); border-radius: var(--r-pill); border: 1.5px solid var(--input-border);
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.role-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.role-tab.is-empty { color: var(--muted-disabled); border-style: dashed; }
#sb-root > .card { margin-bottom: var(--s-4); }
.sb-head .field { max-width: 560px; }
.wbar { display: flex; gap: 2px; height: 14px; border-radius: var(--r-pill); overflow: hidden; background: var(--divider); }
.wseg { flex: 0 0 0; min-width: 0; }
.seg-blue { background: var(--bar-blue); }
.seg-purple { background: var(--bar-purple); }
.seg-green { background: var(--bar-green); }
.wmsg { margin: var(--s-3) 0 0; font-weight: 600; }
.input-sm { height: 38px; padding: 0 var(--s-2h); font-size: 14px; }
.input-num { width: 90px; }
.input-code { width: 80px; font-family: var(--font-mono); }
.textarea { height: auto; padding: var(--s-2h) var(--s-3h); line-height: 1.4; resize: vertical; }
.sb-cats td, .sb-items td { vertical-align: middle; }
.sb-cats .handle, .sb-items .handle { color: var(--muted); cursor: grab; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-cat.is-open > td { background: var(--purple-tint-soft); }
.sb-detail > td { background: var(--purple-tint-soft); padding: var(--s-4); }
.sb-items { background: var(--surface); }
.center { text-align: center; }
.icon-btn { width: 32px; height: 32px; border: 1.5px solid var(--input-border); border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink); cursor: pointer; font-size: 14px; }
.icon-btn:hover:not([disabled]) { border-color: var(--action); color: var(--action); }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }
.icon-danger:hover:not([disabled]) { border-color: var(--error); color: var(--error); }
.row-actions .icon-btn + .icon-btn { margin-left: var(--s-1); }
.check-row { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0; font-weight: 600; cursor: pointer; }
.sb-bonus { padding-left: var(--s-6); }
.err-list { margin: var(--s-2) 0 0; padding-left: var(--s-5); font-size: 14px; color: var(--error); }
.sb-savebar .form-actions { margin-top: var(--s-3); }

/* ---- Wizard step 3: roles and scorecard sources (#9 item 7) ---- */
.role-cards { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
.role-card { display: flex; align-items: center; gap: var(--s-3h); padding: var(--s-4); cursor: pointer;
  border: 1.5px solid var(--input-border); border-radius: var(--r-lg); background: var(--surface); }
.role-card input { width: 24px; height: 24px; margin: 0; border-radius: var(--r-sm); }
.role-card-body { flex: 1; display: grid; gap: 2px; }
.role-card-title { font-size: 17px; font-weight: 600; }
.role-card-sub { font-size: 14px; color: var(--muted); }
.role-bar { width: 8px; height: 40px; border-radius: var(--r-xs); }
.role-bar-blue .role-bar, .role-bar-blue input { background: var(--bar-blue); accent-color: var(--bar-blue); }
.role-bar-purple .role-bar, .role-bar-purple input { background: var(--bar-purple); accent-color: var(--bar-purple); }
.role-bar-green .role-bar, .role-bar-green input { background: var(--bar-green); accent-color: var(--bar-green); }
.role-card:has(input:checked) { border-width: 2px; }
.role-bar-blue.role-card:has(input:checked) { border-color: var(--bar-blue); box-shadow: 0 0 0 4px rgba(80,129,187,.15); }
.role-bar-purple.role-card:has(input:checked) { border-color: var(--bar-purple); box-shadow: 0 0 0 4px rgba(130,99,156,.15); }
.role-bar-green.role-card:has(input:checked) { border-color: var(--bar-green); box-shadow: 0 0 0 4px rgba(153,189,101,.18); }
.wiz-panel > .card + .card, .wiz-panel > .card + form.card { margin-top: var(--s-4); }
.sc-card { border-left-width: 4px; }
.sc-card.role-bar-blue { border-left-color: var(--bar-blue); }
.sc-card.role-bar-purple { border-left-color: var(--bar-purple); }
.sc-card.role-bar-green { border-left-color: var(--bar-green); }
.source-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.source-card { margin: 0; cursor: default; }
.source-card .choice-body { padding-left: 0; display: grid; gap: var(--s-2); justify-items: start; }
.btn-sm { height: 38px; padding: 0 var(--s-4); font-size: 14px; }
.sc-card .form-actions form { margin: 0; }

/* ---- Users + change password (#9 item 7b) ---- */
.temp-pwd { max-width: 560px; margin-bottom: var(--s-6); border-color: var(--amber-text); background: var(--amber-bg-soft); }
.temp-pwd-value { font-size: 22px; letter-spacing: .04em; margin: var(--s-2) 0; color: var(--ink); }
.auth-logo-sm { max-width: 360px; margin-bottom: var(--s-6); }

/* ---- Wizard step 7: review & open (#9 item 8) ---- */
.review-list { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-2h); font-size: 15px; }
.review-list .muted strong { color: inherit; }
.unlock-form { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--divider); }

/* ---- Call list S03 + Add person drawer (#11 items 2-3) ---- */
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3h); flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-1h); padding: var(--s-1h) var(--s-3h); border-radius: var(--r-pill);
  border: 1.5px solid var(--input-border); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--action); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.cl-search .input { width: 300px; }
.cl-table .cl-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cl-table .cl-name:hover { color: var(--action); text-decoration: underline; }
.cl-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tag-new { display: inline-block; padding: 1px var(--s-1h); border-radius: var(--r-xs); font-size: 11px; font-weight: 600; color: var(--action); background: var(--action-tint); vertical-align: 1px; }
.role-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: var(--s-2); vertical-align: 1px; }
.role-bar-blue.role-dot { background: var(--bar-blue); }
.role-bar-purple.role-dot { background: var(--bar-purple); }
.role-bar-green.role-dot { background: var(--bar-green); }
.status-chip { display: inline-block; padding: 2px var(--s-2h); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip-wait { background: var(--divider); color: var(--muted); }
.chip-action { background: var(--action-tint); color: var(--action); }
.chip-amber { background: var(--amber-bg); color: var(--amber-text); }
.chip-error { background: var(--error-bg); color: var(--error); }
.chip-purple { background: var(--purple-tint); color: var(--purple-text); }
.chip-pass { background: var(--green-tint); color: var(--green-text); }
.form-actions-center { justify-content: center; }
.drawer-backdrop { position: fixed; inset: 60px 0 0 0; background: rgba(30,43,58,.18); z-index: 30; }
.drawer { position: fixed; top: 60px; right: 0; bottom: 0; width: 440px; max-width: 100%; z-index: 31; overflow-y: auto;
  background: var(--surface); box-shadow: var(--shadow-drawer); padding: var(--s-6); display: flex; flex-direction: column; }
.drawer form { display: flex; flex-direction: column; flex: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-1); }
.drawer-title { font-size: 26px; }
.drawer-close { font-size: 28px; line-height: 1; color: var(--muted); text-decoration: none; padding: 0 var(--s-2); }
.drawer-close:hover { color: var(--ink); }
.drawer-foot { margin-top: auto; padding-top: var(--s-4); display: flex; justify-content: flex-end; gap: var(--s-3); border-top: 1px solid var(--divider); }
.call-entry { max-width: 560px; }
.kicker-caps { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--s-1); }
.call-name { font-size: 24px; }
.call-number { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; margin: var(--s-3) 0; }
.call-number a { color: var(--ink); text-decoration: none; }

/* ---- Import call list S04 (#11 items 4-6) ---- */
.ci-drop { max-width: 640px; margin: var(--s-6) auto; text-align: center; padding: var(--s-10) var(--s-8);
  border: 2px dashed var(--steel); background: var(--action-tint-soft); }
.ci-drop.is-over { border-color: var(--action); background: var(--action-tint); }
.ci-grid { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.ci-left > .card + .card { margin-top: var(--s-4); }
.ci-file { display: flex; align-items: center; gap: var(--s-3h); margin-bottom: var(--s-3); }
.ci-file > div { flex: 1; min-width: 0; }
.ci-file-name { font-family: var(--font-ui); font-size: 15px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.xlsx-badge { width: 40px; height: 48px; flex: 0 0 40px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: var(--s-1h);
  border-radius: var(--r-sm); background: var(--green-tint); color: var(--green-text); font-size: 10px; font-weight: 700; }
.ci-roles { display: grid; gap: var(--s-2); }
.role-chip { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-1h) var(--s-2h); border-radius: var(--r-md); background: var(--paper); }
.role-chip .input { width: auto; }
.role-chip-sales { background: rgba(80,129,187,.10); }
.role-chip-service { background: var(--purple-tint-soft); }
.role-chip-parts { background: var(--green-tint); }
.ci-counts { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-2); }
.ci-rows tr.row-dup > td { background: var(--amber-bg-soft); }
.ci-rows tr.row-err > td { background: var(--error-bg-soft); }
.ci-dup { color: var(--amber-text); }
.ci-fix { margin-top: var(--s-1); max-width: 220px; }
.ci-preview #ci-result { margin-top: var(--s-4); }

/* ---- Call mode S08 (#13 item 4) ---- */
.page-call { background: var(--paper); }
.cm-top { height: 60px; display: flex; align-items: center; gap: var(--s-5); padding: 0 var(--s-7); background: var(--surface); border-bottom: 1px solid var(--border); }
.cm-crumbs { font-size: 14px; color: var(--muted); }
.cm-crumbs a { color: var(--muted); }
.cm-crumbs strong { color: var(--ink); font-weight: 600; }
.cm-top .save-state { margin-left: auto; }
.cm-offline, .cm-readonly { margin: 0; padding: var(--s-2h) var(--s-7); font-size: 14px; font-weight: 600; }
.cm-offline { background: var(--amber-bg); color: var(--amber-text); }
.cm-readonly { background: var(--divider); color: var(--ink); }
.cm { padding: var(--s-4) var(--s-7) 120px; }
.cm-progress { display: flex; gap: 6px; }
.cm-seg { flex: 1; height: 8px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.cm-seg-fill { display: block; height: 100%; width: 0; border-radius: 4px; transition: width var(--dur-base) var(--ease-out); }
.cm-seg.is-current { outline: 2px solid var(--ink); outline-offset: 1px; }
.cm-count { text-align: right; font-size: 13px; color: var(--muted); margin: var(--s-1h) 0 var(--s-4); font-variant-numeric: tabular-nums; }
.cm-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.cm-left > .card + .card, .cm-left > details + .card, .cm-left > .card + details { margin-top: var(--s-4); }
.cm-name { font-size: 24px; margin: 0 0 var(--s-1); }
.cm-number { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; margin: var(--s-2) 0 var(--s-3); }
.cm-number a { color: var(--ink); text-decoration: none; }
.cm-method { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.segbar { display: inline-flex; padding: 3px; gap: 2px; background: var(--divider); border-radius: var(--r-md); }
.seg-btn { border: 0; background: transparent; padding: var(--s-1h) var(--s-4); border-radius: var(--r-sm); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-thumb); }
.cm-timer .btn-block + .btn-text { margin-top: var(--s-2); display: block; }
.cm-live { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; margin: 0; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.cm-clock { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; margin: var(--s-2) 0 var(--s-3); }
.cm-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-2) 0; }
.cm-chip { border: 1.5px solid var(--input-border); background: var(--surface); border-radius: var(--r-pill); padding: var(--s-1h) var(--s-3); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.cm-chip.is-on { background: var(--action); border-color: var(--action); color: #fff; }
.cm-chip[disabled] { opacity: .45; cursor: not-allowed; }
.cm-transfers-label { margin: var(--s-3) 0 0; }
.cm-suggest { border-color: var(--action); background: var(--action-tint-soft); display: grid; gap: var(--s-2); justify-items: start; }
.cm-suggest p { margin: 0; font-weight: 600; }
.cm-cheat summary { cursor: pointer; margin: 0; }
.cm-cheat[open] summary { margin-bottom: var(--s-3); }
.cm-scenario { font-size: 14px; white-space: pre-line; }
.cm-cheat-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); max-height: 360px; overflow-y: auto; }
.cm-cheat-q { font-weight: 600; margin: 0; }
.cm-cheat-a { margin: 2px 0 0; color: var(--muted); }
.cm-sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.cm-role-text { color: var(--purple-text); margin: 0; }
.cm-sec-title { font-size: 32px; margin: var(--s-1) 0 var(--s-2); }
.cm-yousay { margin: var(--s-3) 0 var(--s-4); }
.cm-prompt { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.4; margin: 0; }
.cm-items { padding: var(--s-2) 0; }
.cm-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--divider); cursor: pointer; }
.cm-row:last-child { border-bottom: 0; }
.cm-row.is-current { background: var(--purple-tint-soft); box-shadow: inset 3px 0 0 var(--bar-purple); }
.cm-row.is-current .cm-text { font-weight: 600; }
.cm-row.is-future .cm-text { color: var(--muted); }
.cm-code { font-size: 15px; font-weight: 700; color: var(--muted); }
.cm-row.is-current .cm-code { color: var(--purple-text); }
.cm-text { margin: 0; font-size: 16px; line-height: 1.4; }
.cm-note-line { margin: var(--s-1) 0 0; font-size: 13px; color: var(--muted); }
.cm-note { grid-column: 2 / 4; }
.cm-btns { display: flex; gap: var(--s-1h); flex-wrap: wrap; justify-content: flex-end; }
.sbtn { min-width: 48px; height: 44px; padding: 0 var(--s-2h); border: 1.5px solid var(--input-border); border-radius: var(--r-md); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-spring); }
.sbtn:hover:not([disabled]) { border-color: var(--action); }
.sbtn.is-on { background: var(--action); border-color: var(--action); color: #fff; font-weight: 700; animation: sbtn-pick var(--dur-fast) var(--ease-spring); }
@keyframes sbtn-pick { from { transform: scale(.96); } to { transform: scale(1); } }
.sbtn[disabled] { opacity: .45; cursor: not-allowed; }
.sbtn-num { width: 48px; padding: 0; }
.sbtn-l { display: none; }
.sbtn-t { white-space: nowrap; }
.sbtn-na { color: var(--muted); }
.cm-secnote { margin-top: var(--s-4); }
.cm-foot { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 0 var(--s-7); background: var(--surface); border-top: 1px solid var(--border); z-index: 20; }
.cm-keys { margin: 0; font-size: 13px; color: var(--muted); }
.cm-foot-actions { display: flex; align-items: center; gap: var(--s-3); }
.cm-endorse { display: flex; justify-content: center; padding: var(--s-4) 0 90px; }
.cm-dialog { position: fixed; inset: 0; background: rgba(30,43,58,.28); display: flex; align-items: center; justify-content: center; z-index: 40; }
.cm-dialog-card { width: 420px; max-width: calc(100% - 32px); }
.cm-radio { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1h) 0; font-weight: 500; cursor: pointer; }
/* Focus mode (F): only the current item, centred, big labelled buttons. */
.cm-focus-mode .cm-left { display: none; }
.cm-focus-mode .cm-grid { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cm-focus-mode .cm-row:not(.is-current) { display: none; }
.cm-focus-mode .cm-row.is-current { grid-template-columns: 1fr; text-align: center; padding: var(--s-8); box-shadow: none; }
.cm-focus-mode .cm-text { font-size: 22px; }
.cm-focus-mode .cm-btns { justify-content: center; }
.cm-focus-mode .sbtn { height: 112px; min-width: 120px; flex-direction: column; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); }
.cm-focus-mode .sbtn-num { width: 120px; }
.cm-focus-mode .sbtn-n { font-size: 28px; }
.cm-focus-mode .sbtn-l { display: block; font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .live-dot, .sbtn.is-on { animation: none; } }

/* ---- Assessment detail S09 (#13 item 6) ---- */
.ad-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.page-title .status-chip { font-family: var(--font-ui); vertical-align: middle; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s-4); border-left: 2px solid var(--divider); display: grid; gap: var(--s-4); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--s-4) - 6px); top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--steel); }
.tl-head { margin: 0 0 var(--s-1); display: flex; align-items: center; gap: var(--s-2); }
.tl-note { font-size: 14px; margin: var(--s-1) 0; }
.ad-final { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--action); margin: 0 0 var(--s-3); }
.ad-final .meta { font-family: var(--font-ui); font-size: 14px; font-weight: 400; }

/* ---- Wizard step 4 (#13 item 7) ---- */
.st4-role > summary { cursor: pointer; margin: 0; }
.st4-role[open] > summary { margin-bottom: var(--s-3); }
.wiz-panel > .card + details.card, .wiz-panel > details.card + details.card { margin-top: var(--s-4); }
.st4-block { padding-top: var(--s-4); margin-top: var(--s-4); border-top: 1px solid var(--divider); }
.st4-cat { display: block; font-size: 14px; font-weight: 600; margin: var(--s-3) 0 var(--s-1); }
.st4-cheat { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-3); }
.st4-cheat li { display: flex; justify-content: space-between; gap: var(--s-4); align-items: start; }
.st4-cheat form { margin: 0; flex: 0 0 auto; }

/* ---- Post-call review S10 (#15 item 4) + motion M5 ---- */
.rv-grid { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rv-right { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); align-items: start; }
.rv-wide { grid-column: 1 / -1; }
.rv-banner { border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font-weight: 600; }
.rv-banner p { margin: 0; }
.rv-banner p + p { margin-top: var(--s-1h); font-weight: 400; }
.rv-ok { background: var(--green-tint); color: var(--green-text); }
.rv-warn { background: var(--amber-bg); color: var(--amber-text); }
.rv-ph { color: var(--amber-text); }
.rv-final { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-4) var(--s-3) 0; border-top: 2px solid var(--ink); margin-top: var(--s-2); }
.rv-final span { font-weight: 600; }
.rv-final-n { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--action); font-variant-numeric: tabular-nums; }
.rv-fact { margin-bottom: var(--s-3); }
.rv-fact-l { font-size: 13px; color: var(--muted); margin: 0; }
.rv-fact-v { font-size: 15px; font-weight: 600; margin: 0; }
.rv-quality .sbtn { width: 44px; min-width: 44px; }
.rv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.rv-tile { border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; justify-items: start; }
.rv-tile.is-empty { border: 2px dashed var(--steel); background: var(--action-tint-soft); }
.rv-tile-t { font-weight: 600; margin: 0; }
.rv-up { color: var(--green-text); font-weight: 600; font-size: 13px; }
.rv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.rv-checks li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.rv-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-8); flex-wrap: wrap; }
#rv-complete { height: 50px; }
.rv-done { position: fixed; inset: 0; z-index: 50; background: rgba(251,250,247,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); }
.rv-done-bars { display: flex; align-items: flex-end; gap: var(--s-1h); height: 48px; }
.rv-done-bars span { width: 14px; border-radius: var(--r-xs); animation: bar-hop 420ms var(--ease-spring) both; }
.rv-done-bars span:nth-child(1) { height: 26px; background: var(--bar-blue); }
.rv-done-bars span:nth-child(2) { height: 38px; background: var(--bar-purple); animation-delay: 80ms; }
.rv-done-bars span:nth-child(3) { height: 48px; background: var(--bar-green); animation-delay: 160ms; }
@keyframes bar-hop { 0% { transform: translateY(12px); opacity: 0; } 60% { transform: translateY(-6px); opacity: 1; } 100% { transform: translateY(0); } }
.rv-done-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: var(--s-3) 0 0; animation: fade-up 300ms var(--ease-out) 300ms both; }
.rv-done-tag { font-family: var(--font-display); font-style: italic; color: var(--muted); margin: 0; animation: fade-up 300ms var(--ease-out) 380ms both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-done-bars span, .rv-done-title, .rv-done-tag { animation: none; } }
.text-amber { color: var(--amber-text); }
.ad-wide { grid-column: 1 / -1; }
/* ---- Dashboard work lists (#15 item 5) ---- */
.db-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-6); align-items: start; }
.db-head { display: flex; justify-content: space-between; align-items: baseline; }
.db-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.db-checks li { display: flex; justify-content: space-between; gap: var(--s-3); align-items: start; }
.db-check-name { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.db-checks .meta { font-size: 13px; margin: 2px 0 0; }
.assign { display: inline-block; text-align: left; margin-right: var(--s-3); }
.assign > summary { cursor: pointer; display: inline; }
.assign-form { position: absolute; right: var(--s-8); z-index: 10; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-preview); padding: var(--s-4); max-height: 320px; overflow-y: auto; min-width: 320px; }
.assign-form .check-row { font-weight: 500; margin: var(--s-1h) 0; }

/* S11 · Recordings (#17 item 4; docs/02 S11). */
.rc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-6); align-items: start; }
.rc-drop { min-height: 110px; border: 2px dashed var(--steel); background: var(--action-tint-soft); text-align: center; transition: border-color var(--dur-fast) var(--ease-out); }
.rc-drop.is-over { border-color: var(--action); }
.rc-drop .empty-bars { height: 24px; margin-bottom: var(--s-3); }
.rc-drop .empty-bars span { width: 8px; }
.rc-drop .empty-bars span:nth-child(1) { height: 12px; }
.rc-drop .empty-bars span:nth-child(2) { height: 18px; }
.rc-drop .empty-bars span:nth-child(3) { height: 24px; }
.rc-table td { vertical-align: top; }
.rc-file { text-align: left; word-break: break-all; font-size: 13px; }
.rc-pick { max-width: 100%; }
.wave { display: flex; align-items: center; gap: 3px; height: 48px; margin: var(--s-4) 0; }
.wave span { flex: 1; border-radius: var(--r-xs); background: var(--steel); height: 30%; }
.wave span:nth-child(3n+1) { height: 60%; }
.wave span:nth-child(4n+2) { height: 90%; }
.wave span:nth-child(5n+3) { height: 45%; }
.is-playing .wave span { background: var(--action); animation: rc-wave 900ms var(--ease-out) infinite alternate; }
.is-playing .wave span:nth-child(2n) { animation-delay: 150ms; }
.is-playing .wave span:nth-child(3n) { animation-delay: 300ms; }
@keyframes rc-wave { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.player-row { display: flex; align-items: center; gap: var(--s-3); }
.play-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--action); color: var(--surface); font-size: 16px; cursor: pointer; flex: none; }
.play-btn:hover:not(:disabled) { background: var(--action-hover); }
.play-btn:disabled { background: var(--divider); color: var(--muted-disabled); cursor: default; }
.rc-speed { width: auto; margin-left: auto; }
@media (max-width: 1100px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .is-playing .wave span { animation: none; } .rc-drop { transition: none; } }
.db-grid > div > .card + .card { margin-top: var(--s-6); }
.tl-rec { margin-top: var(--s-2); }
.tl-rec audio, .rv-tile audio { display: block; width: 100%; max-width: 420px; height: 36px; margin-bottom: var(--s-1); }

/* Results: S05 overview, S12 rep result, S13 overall + team (#19). Bar sizes come from lib/results.js (data-pct). */
.rs-pick { display: inline-flex; gap: var(--s-2); align-items: center; }
.rs-blue { background: var(--bar-blue); }
.rs-purple { background: var(--bar-purple); }
.rs-green { background: var(--bar-green); }
.co-matrix td { vertical-align: top; }
.co-sw { display: inline-block; width: 18px; height: 6px; border-radius: var(--r-xs); margin-right: var(--s-2); vertical-align: middle; }
.co-score { display: inline-block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.co-score:hover { text-decoration: underline; }
.co-none { color: var(--muted); }
.co-team { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--action); font-variant-numeric: tabular-nums; }
.rr-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rr-wide { grid-column: 1 / -1; }
.rr-final { font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1.05; color: var(--action); margin: var(--s-2) 0; font-variant-numeric: tabular-nums; }
.rr-final.rr-none { color: var(--muted); }
.rr-cats { list-style: none; margin: 0; padding: 0; }
.rr-cats li { margin-bottom: var(--s-3); }
.rr-cats-sm li { margin-bottom: var(--s-2); font-size: 13px; }
.rr-cat-head { display: flex; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-1); }
.rr-track { height: 10px; border-radius: var(--r-pill); background: var(--divider); overflow: hidden; }
.rr-cats-sm .rr-track { height: 6px; }
.rr-bar { display: block; height: 100%; width: 0; border-radius: var(--r-pill); transition: width 560ms var(--ease-out); }
.rr-summary { white-space: pre-wrap; }
.rr-sub { font-size: 15px; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
.rr-links { margin: 0; padding-left: var(--s-5); }
.rx-grid { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rx-grid > div > .card + .card { margin-top: var(--s-6); }
.rx-kicker { color: var(--purple-text); letter-spacing: .08em; }
.rx-team { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: var(--s-1) 0; }
.rx-score { font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--action); line-height: 1.05; margin: var(--s-3) 0; font-variant-numeric: tabular-nums; }
.rx-bars { margin: var(--s-4) 0; }
.rx-plot { position: relative; display: flex; align-items: flex-end; gap: var(--s-4); height: 120px; border-bottom: 1px solid var(--border); }
.rx-bars-big .rx-plot { height: 180px; }
.rx-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.rx-vbar { display: block; width: 100%; height: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; transform-origin: bottom; }
.rx-vbar.is-growing { animation: rx-grow 560ms var(--ease-out) both; }
.rx-median { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--ink); transform-origin: left; }
.rx-median.is-drawing { animation: rx-draw 300ms var(--ease-out) 700ms both; }
@keyframes rx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rx-draw { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
.rx-labels { display: flex; gap: var(--s-4); margin-top: var(--s-2); }
.rx-labels > div { flex: 1; display: flex; flex-direction: column; }
.rx-runners, .rx-ranking, .rx-wait { list-style: none; margin: 0; padding: 0; }
.rx-runners li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--divider); }
.rx-runners li:last-child { border-bottom: 0; }
.rx-rank { display: inline-block; min-width: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.rx-rname { flex: 1; }
.rx-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 64px; gap: var(--s-3); align-items: center; width: 100%; padding: var(--s-2); border: 0;
  border-radius: var(--r-md); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rx-row:hover, .rx-row.is-on { background: var(--action-tint-soft); }
.rx-track { height: 24px; border-radius: var(--r-sm); background: var(--divider); overflow: hidden; }
.rx-hbar { display: block; height: 100%; width: 0; transition: width 560ms var(--ease-out); }
.rx-action { background: var(--action); }
.rx-blue { background: var(--bar-blue); }
.rx-steel { background: var(--steel); }
.rx-val { text-align: right; font-variant-numeric: tabular-nums; }
.rx-foot { margin-top: var(--s-4); }
.rx-teamview { margin-top: var(--s-6); }
.rx-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.rx-wait li { padding: var(--s-1h) 0; }
.rx-dialog { max-width: 560px; border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-6); background: var(--surface); color: var(--ink); }
.rx-dialog::backdrop { background: rgba(16, 24, 40, .4); }
.rx-how { padding-left: var(--s-5); margin-bottom: var(--s-5); }
.rx-how li { margin-bottom: var(--s-2); }
@media (max-width: 1100px) { .rr-grid, .rx-grid { grid-template-columns: minmax(0, 1fr); } .rx-roles { grid-template-columns: minmax(0, 1fr); } .rx-row { grid-template-columns: 140px minmax(0, 1fr) 56px; } }
@media (prefers-reduced-motion: reduce) { .rr-bar, .rx-hbar { transition: none; } .rx-vbar.is-growing, .rx-median.is-drawing { animation: none; } }
.co-cell + .co-cell { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px dashed var(--divider); }
/* Wizard step 6 (#21). */
.st6-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
.st6-current { margin: var(--s-2) 0; }
.st6-check { min-height: 1.2em; }
/* S14 Exports (#21). */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s-5); margin: var(--s-5) 0 var(--s-6); }
.ex-ready { font-weight: 600; margin: var(--s-2) 0; }
.ex-last { margin-top: var(--s-3); }
.ex-status { min-height: 1.2em; }
/* Results PDF print view (#21 item 8): A4 landscape, no app chrome. */
.page-print { background: var(--surface); }
.rp { max-width: 1100px; margin: 0 auto; padding: var(--s-6); }
.rp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: var(--s-3); margin-bottom: var(--s-4); }
.rp-client { max-height: 40px; width: auto; }
.rp-winner, .rp-rank, .rp-table { margin-top: var(--s-5); break-inside: avoid; }
.rp-row { cursor: default; padding: var(--s-1) 0; }
@page { size: A4 landscape; margin: 12mm; }
@media print {
  .rp-actions, .skip-link { display: none; }
  .rp { padding: 0; max-width: none; }
  .rx-hbar, .rr-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; transition: none; }
  .rx-track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
