/* RTO Assess & Assist — design language from the landing mock:
   light grey canvas, white rounded cards, royal-blue accent, navy text. */

/* Any element also carrying a class that sets its own `display` (e.g. .btn's
   inline-flex) would otherwise cancel the native [hidden] behaviour, since
   author rules of equal specificity beat the UA stylesheet. */
[hidden] { display: none !important; }

:root {
  --blue: #2c4bf5;
  --blue-dark: #1f38c9;
  --navy: #131a33;
  --ink: #333c56;
  --muted: #6b7390;
  --canvas: #f5f6fa;
  --card: #ffffff;
  --line: #e5e8f2;
  --green: #12873f;
  --green-bg: #e4f6ea;
  --red: #d92c2c;
  --red-bg: #fdeaea;
  --orange: #d97706;
  --orange-bg: #fdf1df;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(19, 26, 51, .07), 0 8px 24px rgba(19, 26, 51, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .4em; font-weight: 700; }
a { color: var(--blue); text-decoration: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 28px;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 12px 32px; position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 800; color: var(--navy); font-size: 17px; white-space: nowrap; }
.brand-mark { margin-right: 2px; }
.topnav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.topnav a { color: var(--ink); font-weight: 500; font-size: 14px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.topnav a.active, .topnav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.topbar-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.signin-link { color: var(--ink); font-size: 14px; }
.credit-chip {
  background: #eef1ff; color: var(--blue-dark); font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: 999px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 9px 18px; transition: all .15s ease; text-align: center;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.ghost { background: var(--card); color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.approve { background: var(--green); color: #fff; }
.btn.approve:hover { filter: brightness(1.08); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.btn.lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* ── Layout ──────────────────────────────────────────────── */
.container { width: min(1080px, calc(100% - 48px)); margin: 32px auto; flex: 1; }
.container.wide { width: min(1320px, calc(100% - 48px)); }
.landing { width: 100%; margin: 0 auto; flex: 1; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.site-footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 26px 0 34px; border-top: 1px solid var(--line); margin-top: 48px;
  background: var(--card);
}
.site-footer a { color: var(--muted); text-decoration: underline; }
.footer-links { margin-bottom: 8px; }
.footer-copy { font-size: 12px; }

/* ── Legal pages ─────────────────────────────────────────── */
.legal-doc { max-width: 760px; margin: 0 auto; padding: 34px 38px; }
.legal-doc h1 { font-size: 26px; margin: 0 0 14px; }
.legal-doc h2 { font-size: 19px; margin: 26px 0 10px; }
.legal-doc h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink); font-size: 14px; line-height: 1.7; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; }
.legal-doc blockquote {
  border-left: 4px solid var(--orange); background: var(--orange-bg);
  margin: 12px 0; padding: 10px 14px; border-radius: 6px;
}
.legal-doc blockquote p { margin: 0; }
.legal-doc table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 8px 10px; font-size: 13.5px; text-align: left; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ── Welcome tour ────────────────────────────────────────── */
.tour-wrap { max-width: 900px; margin: 0 auto; padding: 24px 0; }
.tour-head { text-align: center; margin-bottom: 26px; }
.tour-head h1 { font-size: 30px; margin-bottom: 6px; }
.tour-tagline { color: var(--muted); font-size: 17px; margin: 0; }
.tour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-card { padding: 20px 18px; text-align: left; }
.tour-card h3 { margin: 10px 0 8px; font-size: 17px; }
.tour-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.tour-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.tour-pages { padding: 20px 22px; margin-bottom: 22px; }
.tour-pages h3 { margin: 0 0 10px; font-size: 16px; }
.tour-pages ul { margin: 0; padding-left: 18px; }
.tour-pages li { color: var(--muted); font-size: 14px; line-height: 1.9; }
.tour-pages li strong { color: var(--navy); }
.plan-seats { color: var(--navy); font-size: 13px; font-weight: 700; margin: -4px 0 10px; }
.agree-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink); }
.agree-row input { margin-top: 3px; flex: none; width: auto; }
.agree-row a { color: var(--blue); }
.tour-cta { text-align: center; }
.tour-cta .btn { font-size: 16px; padding: 14px 34px; }
.tour-cta p { margin-top: 10px; font-size: 13px; }

.page-head { text-align: center; margin-bottom: 30px; }
.page-head.left { text-align: left; }
.page-head h1 { font-size: 30px; }
.page-head p { color: var(--muted); margin: 0; }
.section-title { margin: 34px 0 14px; font-size: 20px; }

/* ── Landing ─────────────────────────────────────────────── */
.hero { text-align: center; padding: 72px 24px 48px; background: var(--card); }
.pill {
  display: inline-block; background: #f0f2fa; border: 1px solid var(--line);
  color: var(--ink); font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 6px 16px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.08; letter-spacing: -1px; }
.hero .accent { color: var(--blue); }
.hero-sub { max-width: 620px; margin: 18px auto 26px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fineprint { color: var(--muted); font-size: 12.5px; margin-top: 16px; }

.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; padding: 38px 6vw; border-top: 1px solid var(--line);
  background: var(--canvas); text-align: center;
}
.stat {
  background: var(--blue); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(44, 75, 245, 0.22);
  padding: 24px 18px;
}
.stat strong { display: block; color: #fff; font-size: 30px; font-weight: 800; }
.stat span { color: rgba(255, 255, 255, 0.88); font-size: 13.5px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; padding: 40px 6vw;
}
.feature h3 { font-size: 16.5px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.reviews { padding: 12px 6vw 40px; text-align: center; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.review-card p { font-size: 14.5px; color: var(--ink); }
.review-card span { color: var(--muted); font-size: 13px; }

.cta-band { text-align: center; margin: 20px 6vw 56px; padding: 44px; }

/* ── Pricing / billing ───────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.plan-grid.tight { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(44, 75, 245, .25), var(--shadow); }
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px;
}
.plan-price { font-size: 32px; font-weight: 800; color: var(--navy); }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-blurb { color: var(--muted); font-size: 13.5px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan-list li { font-size: 13.5px; padding: 3px 0; }
.demo-banner {
  background: var(--orange-bg); border: 1px solid #f3ddb5; color: #8a5a10;
  border-radius: 10px; padding: 10px 16px; font-size: 13.5px; margin-bottom: 20px;
}

/* ── Account / assessor management ───────────────────────── */
.section-title-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.section-title-row h2 { margin: 0; }
.inline-form {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.inline-form input {
  flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px;
}
.invite-result {
  background: #eef1ff; border: 1px solid #d8dcfa; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 18px;
}
.invite-result p { margin: 0 0 10px; font-size: 13.5px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; background: #fff;
}
.btn.danger {
  background: var(--red); color: #fff;
}
.btn.danger:hover { background: #b71c1c; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: 30px 0; }
.auth-card { width: min(420px, 100%); padding: 30px; }
.auth-card label { display: block; font-weight: 600; font-size: 13.5px; color: var(--navy); margin-bottom: 14px; }
.auth-card input, .trainer-bar input, textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; color: var(--ink);
}
.auth-card input:focus, .trainer-bar input:focus, textarea:focus { outline: 2px solid rgba(44, 75, 245, .35); border-color: var(--blue); }
.auth-card .btn { margin: 8px 0 14px; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; }

/* ── Split-panel sign-in (matches the supplied page design) ─ */
.auth-split {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; margin: 0; flex: 1; min-height: 100vh;
}
body:has(.auth-split) .topbar, body:has(.auth-split) .site-footer { display: none; }
.auth-left {
  background: linear-gradient(165deg, #2c4bf5 0%, #1f38c9 100%);
  color: #fff; padding: 52px 60px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
}
.auth-brand { font-weight: 800; font-size: 17px; }
.auth-left h1 { color: #fff; font-size: clamp(26px, 3vw, 38px); line-height: 1.14; margin: 30px 0 14px; }
.auth-left-sub { color: #d7dfff; max-width: 480px; font-size: 15px; }
.auth-benefits { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 15px; }
.auth-benefits li { display: flex; align-items: center; gap: 13px; font-size: 14.5px; }
.benefit-icon {
  width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.auth-testimonial { background: rgba(255,255,255,.10); border-radius: 12px; padding: 18px 20px; max-width: 540px; }
.auth-testimonial-card { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.auth-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
}
.auth-testimonial-role { font-size: 12.5px; color: #c4cfff; }
.auth-quote { font-style: italic; color: #e6eaff; font-size: 13.5px; margin: 0; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--canvas); }
.auth-form-wrap { width: min(430px, 100%); }
.auth-form-wrap h1 { font-size: 30px; margin: 20px 0 4px; }
.auth-back { color: var(--muted); font-size: 13.5px; }
.auth-form-wrap label { display: block; font-weight: 600; font-size: 13.5px; color: var(--navy); margin: 0 0 16px; }
.auth-form-wrap input {
  width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.auth-form-wrap input:focus { outline: 2px solid rgba(44, 75, 245, .35); border-color: var(--blue); }
.auth-form-wrap .btn { margin: 6px 0 18px; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* ── Audit log (blue-banner compliance table) ─────────────── */
.audit-log-card { padding: 0; overflow: hidden; }
.audit-banner {
  background: #1f3bd6; color: #fff; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; padding: 14px 20px; flex-wrap: wrap;
}
.audit-banner h3 { color: #fff; margin: 0; font-size: 15px; letter-spacing: .4px; text-transform: uppercase; }
.audit-banner .audit-meta { color: #cdd7ff; font-size: 13px; }
.audit-log-card .table-scroll { padding: 6px 16px 16px; }
.audit-table thead th { color: #1f3bd6; }
.audit-table tbody tr:nth-child(even) { background: #f7f8fd; }

/* ── Review board list states ─────────────────────────────── */
.badge.blue { background: #e4ecff; color: #1f38c9; }
.btn.warn { background: var(--orange); color: #fff; }
.btn.warn:hover { filter: brightness(1.08); }
.list-substats { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }
.list-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.list-progress-fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .3s ease; }
.search-box {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; margin-bottom: 12px;
}
.search-box:focus { outline: 2px solid rgba(44, 75, 245, .35); border-color: var(--blue); }
.assessed-list .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.state-chip { font-size: 11.5px; font-weight: 700; }
.state-chip::before { content: "● "; font-size: 9px; }
.state-chip.orange { color: var(--orange); }
.state-chip.green { color: var(--green); }
.state-chip.blue { color: #1f38c9; }

/* ── Review & Approve workflow (design import: "AssessFlow" one-page
   layout, https://claude.ai/design/p/c280fb4c-adbf-4a91-a4eb-f0ba31a0d964)
   Scoped under .workflow so the rest of the site keeps its own type/colours —
   only this page loads the Nunito/Public Sans fonts (see head_extra block
   in review.html). ─────────────────────────────────────────────────── */
.workflow {
  font-family: 'Public Sans', "Segoe UI", system-ui, sans-serif;
  --wf-blue: #3a56ff; --wf-blue-dark: #2740d6;
  --wf-ink: #1f2440; --wf-muted: #8a90ad;
  --wf-line: #e6e7f1; --wf-radius: 16px;
  --wf-green: #17915a; --wf-green-bg: #e7f7ee;
  --wf-red: #cf3030; --wf-red-bg: #fdecec;
  --wf-orange: #c9760f; --wf-orange-bg: #fdf4e3; --wf-orange-line: #efe7d8;
}
.workflow h1, .workflow h2, .workflow h3, .workflow h4 { font-family: 'Nunito', sans-serif; font-weight: 800; }
.workflow .card { border-radius: var(--wf-radius); }

.step-header { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.step-header:first-of-type { margin-top: 22px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--wf-blue); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.step-header h2 { font-size: 18px; margin: 0; color: var(--wf-ink); }
.step-sub { font-size: 13px; color: var(--wf-muted); }

.trainer-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; padding: 16px 22px; }
.trainer-label { font-weight: 700; color: var(--navy); white-space: nowrap; }
.trainer-bar input { max-width: 420px; margin-top: 0; }
.save-note { color: var(--wf-green); font-size: 13px; font-weight: 600; }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-col { border: 1px solid var(--wf-line); border-radius: var(--wf-radius); background: #fff; overflow: hidden; }
.drop-zone {
  border-bottom: 2px dashed #d3d7ea; background: #fbfbfe;
  padding: 22px 20px; text-align: center; cursor: pointer; transition: all .15s ease;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--wf-blue); background: #f0f3ff; }
.drop-zone .dz-icon { font-size: 28px; }
.drop-zone h3 { font-size: 15px; margin: 6px 0 2px; color: var(--wf-ink); }
.drop-zone p { margin: 2px 0; color: var(--wf-muted); font-size: 12.5px; }
.drop-zone .hint { font-size: 11.5px; }
.drop-zone .btn { margin-top: 10px; }

.file-box-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid #eef0f6; }
.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.file-box-head h3, .col-head h3, .col-head h4 { margin: 0; font-size: 13.5px; }
.file-box-actions { display: flex; align-items: center; gap: 10px; }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { background: #b71c1c; }
.count-chip {
  background: #eaeafc; color: var(--wf-blue-dark, var(--blue-dark)); font-weight: 800; font-size: 11px;
  min-width: 22px; text-align: center; padding: 1px 8px; border-radius: 999px; margin-left: 4px;
}
.file-list { list-style: none; margin: 0; padding: 0; max-height: 172px; overflow-y: auto; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid #f4f5fa; font-size: 12.5px;
}
.file-list li:last-child { border-bottom: 0; }
.file-list .del { color: var(--red); cursor: pointer; font-weight: 700; background: none; border: 0; font-size: 14px; }
.file-list li.uploading { opacity: 0.55; }
.file-list li.uploading em { color: var(--muted); font-size: 12.5px; font-style: italic; white-space: nowrap; }
.placeholder { color: var(--muted); font-size: 13.5px; font-style: italic; }
.workflow .file-box .placeholder { padding: 12px 16px; }
.actions-row { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 18px; }
.actions-row.left { justify-content: flex-start; margin: 0 0 20px; }
.toggle-label {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: var(--ink); font-weight: 500;
}
.toggle-label input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer;
}
.buy-credits-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px;
  text-decoration: none;
}
.buy-credits-link:hover { background: var(--blue-dark); }

/* ── Grade-the-batch card (step 2) ────────────────────────── */
.grade-card-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.grade-actions { display: flex; gap: 10px; }
.run-btn, .stop-btn { border-radius: 12px; white-space: nowrap; font-family: 'Nunito', sans-serif; font-weight: 800; }
.run-btn {
  background: var(--blue); color: #fff; font-size: 15px; padding: 13px 22px;
}
.run-btn:not(:disabled) { box-shadow: 0 6px 14px rgba(44, 75, 245, .3); }
.stop-btn {
  background: var(--red); color: #fff; font-size: 15px; padding: 13px 22px;
}
.stop-btn:not(:disabled) { box-shadow: 0 6px 14px rgba(214, 48, 49, .28); }
.stop-btn:disabled { opacity: 1; filter: none; cursor: not-allowed; }
.grade-toggles { display: flex; flex-direction: column; gap: 8px; }
.grade-progress-wrap { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.grade-progress-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.run-chip { font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: #eef1ff; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .03em; }
.run-chip.running { background: var(--orange-bg); color: var(--orange); }
.run-chip.completed { background: var(--green-bg); color: var(--green); }
.run-chip.failed { background: var(--red-bg); color: var(--red); }
.run-chip.stopped { background: var(--orange-bg); color: var(--orange); }
.run-progress { height: 10px; background: var(--canvas); border-radius: 8px; overflow: hidden; }
.run-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #6f86ff); border-radius: 8px; transition: width .4s ease; }
.run-warnings { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.run-warning { color: var(--red); font-size: 13px; font-weight: 600; }
.run-warning::before { content: "⚠ "; }
.run-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.live-log {
  background: #10142b; color: #c8d2f5; border-radius: 10px; margin: 10px 0 0;
  padding: 14px 16px; font: 12.5px/1.6 Consolas, monospace;
  height: 46vh; min-height: 320px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
}

/* ── Review & decide card (step 3) ─────────────────────────── */
.review-card { padding: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(20, 20, 50, .04); }
.review-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 18px; background: #fbfbfe; border-bottom: 1px solid #eef0f6;
}
.review-head-name { min-width: 0; flex: 1; }
.doc-student {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 17px; color: var(--wf-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.review-head-grade { text-align: right; line-height: 1.2; }
.grade-label { font-size: 10.5px; color: var(--wf-muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.grade-value { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 16px; color: var(--wf-muted); }
.grade-value.green { color: var(--wf-green); }
.grade-value.red { color: var(--wf-red); }
.grade-value.orange { color: var(--wf-orange); }
.grade-sub { font-size: 11px; color: var(--wf-muted); font-weight: 600; margin-top: 1px; }
.review-head-divider { width: 1px; height: 38px; background: var(--wf-line); }
.review-head-actions { display: flex; gap: 10px; }
.review-head-actions .btn {
  display: flex; align-items: center; gap: 7px; font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 14px; padding: 11px 18px; border-radius: 11px;
}

/* Reason bar: dull hint until a decision is made, then reason-chips + textarea */
.override-box { padding: 13px 18px; background: #fbfbfe; border-bottom: 1px solid #eef0f6; transition: background .2s ease, opacity .2s ease; }
.override-box.dull { opacity: .55; pointer-events: none; }
.override-box.mode-approve { background: var(--wf-green-bg); }
.override-box.mode-override { background: var(--wf-red-bg); }
.override-choice { display: flex; gap: 16px; margin-bottom: 10px; font-size: 13.5px; }
.override-box textarea { resize: vertical; margin-bottom: 10px; }
.decided-note { font-size: 13px; color: var(--wf-green); font-weight: 600; }
.reason-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.reason-chip {
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 20px;
  background: #fff; border: 1px solid var(--wf-line); color: var(--wf-ink); cursor: pointer;
  transition: border-color .12s, color .12s;
}
.reason-chip:hover { border-color: var(--wf-blue); color: var(--wf-blue); }

/* 3-column body: submissions queue | submission viewer | marker comments */
.review-body { display: flex; height: 600px; }
@media (max-width: 1100px) { .review-body { flex-direction: column; height: auto; } }

.queue-col {
  flex: none; width: 250px; display: flex; flex-direction: column;
  border-right: 1px solid #eef0f6; padding: 12px 13px 9px;
}
@media (max-width: 1100px) { .queue-col { width: auto; border-right: 0; border-bottom: 1px solid #eef0f6; max-height: 320px; } }
.queue-col .col-head { margin-bottom: 6px; }
.queue-col h3 { font-size: 13px; }
.list-substats { color: var(--wf-orange); font-size: 11px; font-weight: 700; margin: 0 0 9px; }
.list-progress { height: 5px; background: var(--wf-line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.list-progress-fill { height: 100%; width: 0; background: var(--wf-green); border-radius: 999px; transition: width .3s ease; }
.search-box {
  width: 100%; padding: 8px 12px; font: inherit; font-size: 12.5px;
  border: 1px solid #e0e2ee; border-radius: 9px; background: #f6f7fc; margin-bottom: 10px;
}
.search-box:focus { outline: 2px solid rgba(58, 86, 255, .25); border-color: var(--wf-blue); }
.assessed-list { list-style: none; margin: 2px 0 0; padding: 0 0 4px; flex: 1; overflow-y: auto; }
.assessed-list li {
  border: 1px solid var(--wf-line); background: #fff; border-radius: 11px;
  padding: 9px 11px; margin-bottom: 7px; cursor: pointer; transition: all .12s ease;
}
.assessed-list li:hover { border-color: var(--wf-blue); }
.assessed-list li.selected { border-color: #c9d3ff; background: #eef1ff; }
.assessed-list .file-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12.5px; color: var(--wf-ink); word-break: break-word; }
.assessed-list .unit-line { font-size: 10px; color: #9297b5; margin: 1px 0 7px; letter-spacing: .02em; }
.assessed-list .row2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .03em;
  border-radius: 5px; padding: 2px 6px; text-transform: uppercase;
}
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.state-chip { font-size: 10.5px; font-weight: 700; }
.state-chip::before { content: "● "; font-size: 9px; }
.state-chip.orange { color: var(--wf-orange); }
.state-chip.green { color: var(--wf-green); }
.state-chip.blue { color: var(--wf-blue); }

.doc-col { flex: 1.55; min-width: 0; overflow-y: auto; background: #fdfdff; padding: 20px 26px 30px; }
@media (max-width: 1100px) { .doc-col { padding: 16px; max-height: 70vh; } }
.doc-viewer {
  max-width: 760px; margin: 0 auto; border: 1px solid #ebedf5; border-radius: 14px;
  background: #fff; padding: 24px 28px; font-size: 14px;
}
.doc-viewer table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.doc-viewer td, .doc-viewer th { border: 1px solid #d9deed; padding: 6px 9px; vertical-align: top; }
.doc-viewer img { max-width: 100%; }
.doc-viewer .ai-mark {
  background: #fff3a3;
  outline: 2px solid #f2d024;
  border-radius: 3px;
}
/* The document's own feedback colours, carried through from the Word file:
   green = answer with a feedback comment, yellow = AI-flagged section. */
/* display:block (not inline-block) so a multi-line answer gets ONE box
   around the whole paragraph — same shape as .ai-mark's whole-cell box —
   instead of a separate little highlight fragment per wrapped line, which
   is what a plain inline <mark> gives you. */
.doc-viewer mark.hl-green {
  display: block; background: #8ee08e; outline: 2px solid #3fa34d; color: inherit;
  padding: 10px 14px; border-radius: 8px; margin: 6px 0;
}
.doc-viewer mark.hl-yellow { background: #ffe066; color: inherit; padding: 0 1px; border-radius: 2px; }
/* Blank answer box: mammoth can't carry the cell's own wash through, so this
   stands in for it — same D9F2D9 fill the downloaded doc gets (annotator.OUR_BLANK_FILL). */
.doc-viewer mark.hl-blank {
  display: block; background: #d9f2d9; outline: 2px solid #3fa34d; color: #2f6b3f;
  font-style: italic; padding: 10px 14px; border-radius: 8px; margin: 6px 0;
}

/* Marker comments: cream panel, jumpable note cards then the AI-flag card last */
.doc-comments {
  flex: none; width: 340px; background: #faf8f4; border-left: 1px solid #eef0f6;
  display: flex; flex-direction: column; margin: 0; padding: 0;
}
@media (max-width: 1100px) { .doc-comments { width: auto; border-left: 0; border-top: 1px solid #eef0f6; } }
.doc-comments .col-head { padding: 12px 15px 0; margin-bottom: 3px; }
.doc-comments .comments-sub { font-size: 11px; color: #a9925f; margin: 0; padding: 0 15px 9px; }
.doc-comments-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 15px 15px; }
@media (max-width: 1100px) { .doc-comments-scroll { max-height: 320px; } }
.ai-flag {
  margin: 10px 0 0; background: #fbe9ea; border: 1px solid #f1c9ca; border-left: 4px solid var(--wf-red);
  border-radius: 0 10px 10px 0; color: #6a3735; font-size: 12.5px; line-height: 1.5; padding: 12px 13px; text-align: left;
  cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.ai-flag:hover { background: #f7dbdc; transform: translateX(2px); }
.ai-flag strong { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11px; color: #c0392b; letter-spacing: .03em; text-transform: uppercase; }
.ai-flag ul, .ai-flag ol { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.ai-flag li { margin-bottom: 4px; }
.doc-comments ul { list-style: none; padding: 0; margin: 0; }
.doc-comments li {
  background: var(--wf-orange-bg); border-left: 4px solid var(--wf-orange);
  border-radius: 0 10px 10px 0; padding: 11px 13px; margin-bottom: 10px; font-size: 12.5px; line-height: 1.5; color: #5c4a26;
}
.doc-comments li strong { display: block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11px; color: var(--wf-orange); letter-spacing: .02em; margin-bottom: 4px; }
.doc-comments li.jumpable { cursor: pointer; transition: background 0.15s, transform 0.15s; }
.doc-comments li.jumpable:hover { background: #fbead0; transform: translateX(2px); }
.doc-comments li.deletable { cursor: context-menu; }

/* Right-click menu on a marker comment — delete it from the document */
.cmt-menu {
  position: fixed; z-index: 1000; background: #fff; border: 1px solid #e0e2ee;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(42, 47, 74, 0.18); padding: 4px;
}
.cmt-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  font-family: 'Public Sans', sans-serif; font-size: 12.5px; color: #8a3b34;
  padding: 9px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.cmt-menu button:hover { background: #fbe9ea; }

/* Assessor feedback → student, full width under the 3-column body */
.feedback-footer { padding: 14px 18px; border-top: 1px solid #eef0f6; }
.feedback-footer textarea {
  width: 100%; resize: vertical; border: 1px solid #e0e2ee; border-radius: 12px;
  padding: 13px 15px; font-family: 'Public Sans', sans-serif; font-size: 13.5px; line-height: 1.6;
  color: #2a2f4a; background: #fbfbfe;
}
.doc-viewer .jump-flash { animation: jumpFlash 1.6s ease-out; border-radius: 3px; }
@keyframes jumpFlash {
  0% { background: #ffd966; outline: 2px solid var(--orange); }
  100% { background: transparent; outline: 2px solid transparent; }
}
/* Invisible per-comment jump target injected at each comment's true spot. */
.doc-viewer .cmt-anchor { display: inline; width: 0; height: 0; font-size: 0; }
/* Keep a jumped-to block clear of the sticky top bar. */
.doc-viewer td, .doc-viewer p, .doc-viewer li { scroll-margin-top: 70px; }
/* Every question sits in its own table cell, so mammoth emits a separate
   <ol> per question — the browser restarts each one's numbering at 1,
   making every question read "1." and the document unnavigable. Reset a
   single counter once for the whole document and increment it across
   every <li> in document order regardless of which <ol> it's in. */
.doc-viewer { counter-reset: qnum; }
.doc-viewer ol { list-style: none; padding-left: 0; margin: 0; }
.doc-viewer ol > li { counter-increment: qnum; position: relative; padding-left: 30px; }
.doc-viewer ol > li::before { content: counter(qnum) ". "; position: absolute; left: 0; font-weight: 700; color: var(--navy); }

/* ── Reports / dashboards ────────────────────────────────── */
.table-card { padding: 18px 20px; }
.table-scroll { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table th {
  text-align: left; color: var(--muted); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 2px solid var(--line); padding: 8px 10px; white-space: nowrap;
}
.audit-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.audit-table .nowrap { white-space: nowrap; }
.reason-cell { max-width: 340px; }
.audit-table tr.date-head td {
  background: #eef1ff; color: var(--blue-dark); font-weight: 800;
  font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase;
  padding: 9px 10px; border-bottom: 1px solid var(--line);
}
.audit-table tr.has-decision td { border-bottom: 0; }
.audit-table tr.decision-row td {
  background: #f4faf5; border-bottom: 1px solid var(--line);
  padding: 6px 10px 9px 28px;
}
.decision-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }

.dash-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.stat-tile { text-align: center; padding: 20px; }
.stat-label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat-num.sm { font-size: 20px; }
.cta-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }

/* ── ASQA / marketing landing additions ──────────────────── */
.asqa-section { padding: 48px 6vw; background: var(--card); border-top: 1px solid var(--line); }
.asqa-section.alt { background: var(--canvas); }
.asqa-section h2 { text-align: center; font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 10px; }
.asqa-section .section-lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 32px; font-size: 16px; }
.asqa-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; max-width: 1200px; margin: 0 auto;
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 1100px; margin: 0 auto;
}
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.asqa-card { display: flex; gap: 16px; align-items: flex-start; }
.asqa-icon {
  width: 46px; height: 46px; border-radius: 12px; background: #eef1ff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: none;
}
.asqa-card h4 { font-size: 15.5px; margin: 0 0 6px; }
.asqa-card p { color: var(--muted); font-size: 13.8px; margin: 0; }

.how-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; max-width: 1000px; margin: 0 auto;
}
.how-step { text-align: center; padding: 28px; }
.how-step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.how-step h4 { font-size: 17px; margin-bottom: 8px; }
.how-step p { color: var(--muted); font-size: 14px; margin: 0; }

.report-preview {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; max-width: 1100px; margin: 0 auto;
}
@media (max-width: 860px) { .report-preview { grid-template-columns: 1fr; } }
.report-preview .report-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.report-preview .report-card h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.report-preview .report-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.report-preview .report-card li { font-size: 14px; color: #d7dfff; display: flex; gap: 10px; }
.report-preview .report-card li::before { content: "✓"; color: #67e8a0; font-weight: 800; }
.report-preview .report-blurb h3 { font-size: 24px; margin-bottom: 12px; }
.report-preview .report-blurb p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* ── Pain points ─────────────────────────────────────────── */
.pain-section { padding: 56px 6vw; background: var(--blue); text-align: center; }
.pain-section h2 { color: #fff; font-size: 28px; }
.pain-section .section-lead { color: rgba(255, 255, 255, 0.82); max-width: 640px; margin: 10px auto 30px; }
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; text-align: left; max-width: 940px; margin: 0 auto;
}
@media (max-width: 720px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius); padding: 22px 20px;
}
.pain-card h4 { color: #fff; font-size: 16.5px; margin: 0 0 8px; }
.pain-card p { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.pain-card .pain-fix { color: #fff; font-weight: 700; margin: 0; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 18px;
}
.trust-pill {
  background: var(--blue); border: 0; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(44, 75, 245, 0.22);
  padding: 12px 20px; font-size: 13.5px; font-weight: 700; color: #fff;
}


