/* FireAxis brand: Barlow Condensed headings, Source Sans 3 body, logo orange, warm neutrals.
   --brand is the logo orange (decoration); --accent is a deeper shade that passes contrast for text and buttons.
   Status colours follow FireAxis: green done, yellow waiting, red late/denied, grey closed. */
:root {
  --bg:#f6f5f3; --surface:#fff; --fg:#1d1f22; --muted:#5b6066; --line:#dedcd8; --input:#cfccc7;
  --brand:#f84018; --accent:#c8380c; --accent-ink:#fff; --accent-hover:#a92f0a; --topbar:#1d1f22; --topbar-fg:#e9e7e4;
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif; --body:"Source Sans 3","Segoe UI",Arial,sans-serif;
  --ok-bg:#dcf3e3; --ok:#14653a; --wait-bg:#fcefc7; --wait:#7a4b00; --bad-bg:#fbe1de; --bad:#a1231b;
  --info-bg:#e1e9f6; --info:#24477f; --slate-bg:#e7e9ec; --slate:#3d4652; --off-bg:#ebeae7; --off:#666a70;
  --flash-bg:#e6f4ea; --flash-line:#b5dcc1; --note-bg:#f3f1ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#16181b; --surface:#1f2226; --fg:#e9e7e4; --muted:#a3a7ad; --line:#34383d; --input:#454a50;
  --brand:#f8692a; --accent:#fb7a3c; --accent-ink:#16181b; --accent-hover:#fc9461; --topbar:#0f1012; --topbar-fg:#e9e7e4;
  --ok-bg:#163a24; --ok:#7fd8a0; --wait-bg:#3d3112; --wait:#f2cd6a; --bad-bg:#45201d; --bad:#f4958c;
  --info-bg:#1d2d47; --info:#9dbcf0; --slate-bg:#2b3038; --slate:#c3cad4; --off-bg:#2a2c2f; --off:#9a9ea4;
  --flash-bg:#16301f; --flash-line:#2c5a3b; --note-bg:#25282c; color-scheme: dark; } }

* { box-sizing:border-box; }
body { margin:0; font:16px/1.5 var(--body); background:var(--bg); color:var(--fg); min-height:100vh; display:flex; flex-direction:column; }
main { max-width:1280px; width:100%; margin:0 auto; padding:28px 16px; flex:1; }
h1, h2, legend, .wordmark, .product, .eyebrow, th, .tab, .badge { font-family:var(--display); }
h1 { margin:0 0 16px; font-size:clamp(28px,4vw,38px); line-height:1.05; letter-spacing:.01em; }
h2 { margin:0 0 12px; font-size:22px; letter-spacing:.02em; }
.eyebrow { text-transform:uppercase; letter-spacing:.08em; font-weight:700; font-size:14px; color:var(--accent); }
a { color:var(--accent); }

/* top bar */
.topbar { background:var(--topbar); border-bottom:3px solid var(--brand); }
nav { max-width:1280px; margin:0 auto; display:flex; gap:20px; align-items:center; padding:10px 16px; flex-wrap:wrap; }
nav a, nav button.link, .who { color:var(--topbar-fg); text-decoration:none; }
nav .links { display:flex; gap:18px; flex-wrap:wrap; }
nav .links a { font-weight:600; opacity:.85; } nav .links a:hover { opacity:1; }
.brand { display:flex; align-items:center; gap:10px; }
.nav-logo { height:34px; width:auto; }
.wordmark { font-weight:700; font-size:26px; letter-spacing:.01em; color:#fff; line-height:1; }
.wordmark span { color:#f8692a; }
.product { text-transform:uppercase; letter-spacing:.1em; font-size:15px; font-weight:600; color:#a3a7ad; }
.spacer { flex:1; }
.role { font-size:12px; text-transform:uppercase; letter-spacing:.06em; padding:1px 7px; border:1px solid #4a4f55; border-radius:4px; margin-left:4px; opacity:.8; }

/* surfaces */
.card { background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:20px; margin-bottom:16px; }
.narrow { max-width:520px; }
.note { border-left:4px solid var(--accent); background:var(--surface); }
.warn { border-left:4px solid var(--bad); background:var(--bad-bg); border-color:var(--bad); }
.flash { background:var(--flash-bg); border:1px solid var(--flash-line); padding:10px 14px; border-radius:6px; margin-bottom:16px; }
.foot { text-align:center; color:var(--muted); font-size:14px; padding:18px 16px 26px; border-top:1px solid var(--line); }

/* login */
.login { max-width:440px; margin:6vh auto 0; }
.login-brand { text-align:center; margin-bottom:22px; }
.login-logo img { height:110px; width:auto; }
.login-name .wordmark { font-size:44px; color:var(--fg); } .login-name .wordmark span { color:var(--brand); }
.login .card { max-width:none; border-top:4px solid var(--brand); }
body.public { background:var(--bg) url(/logo-watermark.png) no-repeat right -60px bottom -40px / 520px auto; }
body.public::before { content:""; position:fixed; inset:0; background:var(--bg); opacity:.94; z-index:-1; }
body.public main, body.public .foot { position:relative; }

/* forms */
.stack { display:flex; flex-direction:column; gap:14px; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:space-between; }
form.row { justify-content:flex-start; }
label { display:flex; flex-direction:column; gap:5px; font-weight:600; }
label.check { flex-direction:row; align-items:center; gap:10px; font-weight:400; }
fieldset { border:1px solid var(--line); border-radius:6px; padding:10px 14px; }
legend { font-weight:700; font-size:17px; padding:0 4px; }
input, select, textarea { font:inherit; padding:9px 11px; border:1px solid var(--input); border-radius:5px; background:var(--surface); color:var(--fg); text-transform:none; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--brand); outline-offset:1px; border-color:transparent; }
input[type=checkbox], input[type=radio] { accent-color:var(--accent); width:18px; height:18px; }
input:disabled, select:disabled, textarea:disabled { background:var(--note-bg); color:var(--fg); opacity:1; }
button, .button { font:600 16px var(--body); padding:9px 16px; border-radius:5px; border:1px solid var(--input); background:var(--surface); color:var(--fg); cursor:pointer; text-decoration:none; display:inline-block; }
button:hover { border-color:var(--fg); }
button.primary, .button { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
button.secondary, .button.secondary { background:var(--surface); border-color:var(--input); color:var(--fg); }
button.secondary:hover, .button.secondary:hover { border-color:var(--fg); background:var(--surface); }
.block { display:block; width:100%; text-align:center; }
button.primary:hover, .button:not(.secondary):not(.danger):hover { background:var(--accent-hover); border-color:var(--accent-hover); }
button.danger, .button.danger { background:var(--surface); color:var(--bad); border-color:var(--bad); }
button.danger:hover { background:var(--bad-bg); }
button.link { background:none; border:none; padding:0; font-weight:400; }
form.inline { display:inline; }

/* tables */
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); }
th { font-size:15px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
tbody tr:hover { background:var(--note-bg); }
.muted { color:var(--muted); } .error { color:var(--bad); font-weight:600; }

/* status */
.badge { display:inline-block; padding:2px 11px; border-radius:4px; font-size:15px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.badge.green{background:var(--ok-bg);color:var(--ok)} .badge.amber{background:var(--wait-bg);color:var(--wait)}
.badge.red{background:var(--bad-bg);color:var(--bad)} .badge.blue{background:var(--info-bg);color:var(--info)}
.badge.slate{background:var(--slate-bg);color:var(--slate)} .badge.gray{background:var(--off-bg);color:var(--off)}
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.tab { padding:5px 14px; border-radius:4px; text-decoration:none; color:var(--fg); background:var(--surface); border:1px solid var(--line); font-size:17px; font-weight:600; letter-spacing:.02em; }
.tab.active { background:var(--fg); color:var(--bg); border-color:var(--fg); }
.count { opacity:.7; font-size:14px; margin-left:4px; }

/* assignment page */
.head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:16px; align-items:start; }
.pdf iframe { width:100%; height:80vh; border:1px solid var(--line); border-radius:4px; background:#fff; }
.timeline { list-style:none; padding:0; margin:0; } .timeline li { padding:9px 0; border-bottom:1px solid var(--line); }
.comment { margin-top:4px; padding:6px 10px; background:var(--note-bg); border-radius:4px; }
@media (max-width:860px) {
  .split { grid-template-columns:1fr; } .pdf iframe { height:60vh; }
  .card { padding:16px; } table { display:block; overflow-x:auto; }
}

/* sign-in, account, people, settings */
.small { font-size:14px; } .ok { color:var(--ok); font-weight:600; } .warn-text { color:var(--wait); font-weight:600; }
.google-btn { display:flex; align-items:center; justify-content:center; gap:10px; padding:10px 16px; border:1px solid var(--input);
  border-radius:5px; background:#fff; color:#1f1f1f; font:600 16px var(--body); text-decoration:none; }
.google-btn:hover { border-color:#1f1f1f; }
.divider { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:14px; margin:18px 0 14px; }
.divider::before, .divider::after { content:""; flex:1; border-top:1px solid var(--line); }
.login .card h1 { margin-bottom:12px; }
.grid2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px; align-items:start; }
.grid2 .card { margin-bottom:0; }
.chip { display:inline-block; padding:1px 9px; border-radius:4px; background:var(--slate-bg); color:var(--slate); font-size:13px; font-weight:600; margin:0 0 4px; }
.ok-chip { background:var(--ok-bg); color:var(--ok); }
.code-input { font:600 24px/1 ui-monospace,Menlo,Consolas,monospace; letter-spacing:.3em; text-align:center; max-width:220px; }
.qr { margin:10px 0; } .qr svg { width:200px; height:200px; background:#fff; padding:6px; border-radius:6px; border:1px solid var(--line); }
.secret, .codes { font:15px/1.6 ui-monospace,Menlo,Consolas,monospace; background:var(--note-bg); padding:8px 12px; border-radius:5px; display:inline-block; word-break:break-all; }
.codes { display:block; columns:2; margin:0 0 14px; white-space:pre; }
.steps { padding-left:22px; margin:0 0 12px; display:grid; gap:14px; }
.linkbox { border-left:4px solid var(--brand); } .linkbox input { flex:1; min-width:240px; font-size:14px; }
.row > input[readonly] { flex:1; width:100%; min-width:0; font-size:14px; }
.small-btn { padding:4px 10px; font-size:14px; margin:2px 0; }
td.actions { white-space:normal; }
details summary { cursor:pointer; color:var(--accent); }
@media (max-width:860px) { .grid2 { grid-template-columns:1fr; } }

/* page structure */
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.page-head h1 { margin:2px 0 0; }
h3 { font-family:var(--display); font-size:18px; letter-spacing:.02em; margin:0 0 6px; }
.card h3 + p, .note p, .warn p { margin:0; }
.card-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:12px; }
.card-head h2 { margin:0; }
hr { border:0; border-top:1px solid var(--line); margin:18px 0; }
.right { text-align:right; } .center { text-align:center; }
.strong-link { font-weight:600; text-decoration:none; } .strong-link:hover { text-decoration:underline; }
.meta { display:flex; flex-wrap:wrap; gap:10px 36px; margin:0 0 18px; padding:14px 20px; background:var(--surface); border:1px solid var(--line); border-radius:6px; }
.meta dt { font-family:var(--display); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.meta dd { margin:2px 0 0; font-weight:600; }
.note { border-left:4px solid var(--brand); } .warn { border-left:4px solid var(--bad); background:var(--bad-bg); }

/* forms */
.form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px; align-items:end; }
.form-grid .form-actions { margin:0; }
.form-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin-top:4px; }
.form-actions.start { justify-content:flex-start; }
.hint { font-size:14px; color:var(--muted); font-weight:400; margin:0; }
.optional { font-weight:400; font-size:13px; color:var(--muted); margin-left:6px; }

.label-row { display:flex; justify-content:space-between; align-items:baseline; }
.label-link { font-weight:400; font-size:14px; }
.options { display:flex; flex-wrap:wrap; gap:6px 22px; }
.copy-row { display:flex; gap:8px; } .copy-row input { flex:1; min-width:0; font-size:14px; font-weight:400; }
.option-card { flex-direction:row; align-items:flex-start; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:6px; cursor:pointer; font-weight:400; }
.option-card > span { display:flex; flex-direction:column; gap:2px; }
.option-card.selected, .option-card:has(input:checked) { border-color:var(--accent); background:var(--note-bg); }
.option-card input { margin-top:3px; }

/* alerts, empty and error states */
.alert { padding:10px 14px; border-radius:6px; margin:0 0 14px; border:1px solid; font-size:15px; }
.alert-error { background:var(--bad-bg); color:var(--bad); border-color:var(--bad); }
.alert-ok { background:var(--ok-bg); color:var(--ok); border-color:var(--ok); }
.alert-warn { background:var(--wait-bg); color:var(--wait); border-color:var(--wait); }
.empty { text-align:center; padding:36px 16px; } .empty h2 { margin-bottom:6px; } .empty p { color:var(--muted); margin:0 0 16px; }
.error-page { max-width:520px; margin:8vh auto; text-align:center; }
.error-code { font-family:var(--display); font-weight:700; font-size:88px; line-height:1; color:var(--brand); }
.error-page p { color:var(--muted); margin:0 0 22px; }
.below-card { text-align:center; color:var(--muted); font-size:14px; margin-top:16px; }

/* account */
.method-list { list-style:none; margin:0 0 10px; padding:0; }
.method-list li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.method-list li:last-child { border-bottom:0; }
.steps h3 { margin-top:0; } .steps p { margin:0 0 6px; color:var(--muted); }
.tl-head { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.timeline { list-style:none; padding:0; margin:0; }

/* file picker */
input[type=file] { padding:6px; }
input[type=file]::file-selector-button { font:600 15px var(--body); padding:6px 12px; margin-right:12px; border:1px solid var(--input);
  border-radius:4px; background:var(--surface); color:var(--fg); cursor:pointer; }
input[type=file]::file-selector-button:hover { border-color:var(--fg); }

/* compact top bar on phones */
@media (max-width:640px) {
  nav { gap:10px 14px; padding:10px 16px; }
  .nav-logo { height:28px; } .wordmark { font-size:22px; }
  .product, .who .role { display:none; }
  nav .links { order:3; width:100%; gap:18px; flex-wrap:nowrap; overflow-x:auto; white-space:nowrap; padding-top:8px; border-top:1px solid #33373c; scrollbar-width:none; }
  .tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; } .tab { white-space:nowrap; }
  table.responsive { display:block; } table.responsive thead { display:none; } table.responsive tbody { display:block; }
  table.responsive tr { display:block; padding:12px 0; border-bottom:1px solid var(--line); } table.responsive tr:last-child { border-bottom:0; }
  table.responsive tbody tr:hover { background:none; }
  table.responsive td { display:flex; justify-content:space-between; align-items:center; gap:16px; border:0; padding:4px 0; text-align:right; }
  table.responsive td::before { content:attr(data-label); font-family:var(--display); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); text-align:left; flex-shrink:0; }
  table.responsive td.primary-cell { display:block; text-align:left; font-size:17px; padding-bottom:6px; } table.responsive td.primary-cell::before { display:none; }
  table.responsive td.hide-sm { display:none; }
  .page-head .button { width:100%; text-align:center; }
  .who { font-size:15px; }
  .page-head { align-items:flex-start; }
  .error-code { font-size:64px; }
}

/* assignment workspace */
.workspace { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start; }
.workspace-side { position:sticky; top:16px; display:flex; flex-direction:column; gap:16px; }
.workspace-side .card { margin:0; }
.workspace-side .block + .block { margin-top:0; }
.form-card { padding:16px; }
.segmented { display:inline-flex; border:1px solid var(--input); border-radius:6px; overflow:hidden; }
.segmented button { border:0; border-radius:0; background:var(--surface); color:var(--muted); font:600 15px var(--body); padding:6px 14px; }
.segmented button + button { border-left:1px solid var(--input); }
.segmented button.active { background:var(--fg); color:var(--bg); }
.list-page + .list-page { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.list-page h3 { margin-bottom:12px; }

/* Form View: PDF page with inputs placed over its fields */
.doc { display:flex; flex-direction:column; gap:16px; background:var(--note-bg); padding:16px; border-radius:6px; }
.doc-page { position:relative; width:100%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.18); container-type:inline-size; }
.doc-page canvas { position:absolute; inset:0; width:100%; height:100%; }
.doc-loading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#5b6066; font-size:15px; }
.doc-page.ready .doc-loading { display:none; }
.doc-fields { position:absolute; inset:0; }
.ff { position:absolute; margin:0; padding:0 .35cqw; border:0; border-radius:2px; background:rgba(66,133,244,.11); color:#111;
  font:400 calc(100cqw / var(--pw) * var(--fs)) / 1.1 Helvetica, Arial, sans-serif; outline:none; min-width:0; -webkit-appearance:none; appearance:none; }
.ff:hover:not(:disabled) { background:rgba(66,133,244,.2); }
.ff:focus { background:rgba(255,255,255,.95); box-shadow:0 0 0 2px var(--brand); z-index:2; }
.ff-multi { resize:none; padding-top:.3cqw; line-height:1.15; }
select.ff { padding-right:0; cursor:pointer; text-align-last:center; }
.ff-check { cursor:pointer; }
.ff-check::before { content:""; position:absolute; inset:14%; }
.ff-check:checked::before { background:#111; clip-path:polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.ff-radio { border-radius:50%; } .ff-radio:checked::before { clip-path:none; border-radius:50%; inset:24%; }
.ff:disabled { background:transparent; cursor:default; opacity:1; color:#111; -webkit-text-fill-color:#111; }
select.ff:disabled { appearance:none; }

/* sticky action bar for long forms on small screens */
.action-bar { display:none; }
@media (max-width:1000px) {
  .workspace { grid-template-columns:1fr; } .workspace-side { position:static; }
  .action-bar { display:flex; gap:10px; position:sticky; bottom:0; margin:16px -16px 0; padding:12px 16px; background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -2px 8px rgba(0,0,0,.08); z-index:5; }
  .action-bar button { flex:1; }
}
@media (max-width:640px) { .doc { padding:8px; margin:0 -8px; } .form-card .card-head { flex-direction:column; align-items:flex-start; } }

/* field states in Form View */
.ff.ff-auto, .ff.ff-auto:disabled { background:rgba(22,163,74,.13); }
.ff.ff-other:disabled { background:transparent; }
.ff-sig { display:flex; align-items:center; overflow:hidden; pointer-events:auto; }
.ff-sig img { max-width:100%; max-height:100%; object-fit:contain; object-position:left center; }
.ff-sig.pending img { opacity:.55; }
.legend { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:14px; color:var(--muted); margin:0 0 12px; }
.legend .sw { display:inline-block; width:14px; height:14px; border-radius:3px; margin-right:-8px; border:1px solid var(--line); vertical-align:middle; }
.sw-edit { background:rgba(66,133,244,.35); } .sw-auto { background:rgba(22,163,74,.35); } .sw-other { background:#fff; }
.sig-status { display:flex; flex-direction:column; gap:6px; margin-top:12px; padding:10px; border:1px solid var(--line); border-radius:6px; }
.sig-status img { max-height:48px; max-width:100%; object-fit:contain; object-position:left; background:#fff; border-radius:4px; padding:4px; }

/* reports */
.slots { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.slot { margin:0; display:flex; flex-direction:column; gap:10px; }
.slot-head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.slot-head h3 { font-size:24px; margin:0; }
.slot-meta { margin:0; display:grid; gap:6px; }
.slot-meta dt { font-family:var(--display); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.slot-meta dd { margin:0; font-weight:600; }
.slot .button { margin-top:auto; }
.empty-slot { border-style:dashed; }
.slot-more summary { margin-top:4px; }
.annual-chip { background:var(--wait-bg); color:var(--wait); }
.plain-list { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
fieldset.plain { border:0; padding:0; margin:0; } fieldset.plain legend { padding:0; margin-bottom:8px; font-family:var(--body); font-size:16px; font-weight:600; }
.option-card.disabled { opacity:.55; cursor:not-allowed; }
.grid2.tight { gap:12px; }
@media (max-width:1000px) { .slots { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:560px) { .slots { grid-template-columns:1fr; } }

/* template setup */
.sf { position:absolute; border:1.5px solid; border-radius:2px; cursor:pointer; }
.sf[data-section="shared"] { background:rgba(100,116,139,.22); border-color:#64748b; }
.sf[data-section="general"] { background:rgba(66,133,244,.2); border-color:#4285f4; }
.sf[data-section="q1"] { background:rgba(37,99,235,.22); border-color:#2563eb; }
.sf[data-section="q2"] { background:rgba(13,148,136,.22); border-color:#0d9488; }
.sf[data-section="q3"] { background:rgba(147,51,234,.2); border-color:#9333ea; }
.sf[data-section="q4"] { background:rgba(202,138,4,.24); border-color:#ca8a04; }
.sf[data-section="annual"] { background:rgba(248,64,24,.18); border-color:#f84018; }
.sf[data-section="deficiencies"] { background:rgba(219,39,119,.16); border-color:#db2777; }
.sf[data-role] { border-style:dashed; border-width:2px; }
.sf[data-short]::after { content:attr(data-short); position:absolute; top:-1px; right:-1px; transform:translateY(-100%); font:700 9px/1.2 Arial, sans-serif; color:#fff; background:#111; padding:0 3px; border-radius:2px; white-space:nowrap; pointer-events:none; }
.sf.sel { outline:2.5px solid #111; outline-offset:1px; z-index:3; box-shadow:0 0 0 4px rgba(255,255,255,.8); }
.legend .sw[data-section] { width:14px; height:14px; }
.legend .sw[data-section="shared"] { background:#64748b; } .legend .sw[data-section="general"] { background:#4285f4; }
.legend .sw[data-section="q1"] { background:#2563eb; } .legend .sw[data-section="q2"] { background:#0d9488; } .legend .sw[data-section="q3"] { background:#9333ea; }
.legend .sw[data-section="q4"] { background:#ca8a04; } .legend .sw[data-section="annual"] { background:#f84018; } .legend .sw[data-section="deficiencies"] { background:#db2777; }
.legend .sw-role { background:transparent; border:2px dashed var(--fg); }
.drag-band { position:absolute; border:1.5px solid #111; background:rgba(17,17,17,.08); z-index:4; pointer-events:none; }
.setup .doc { user-select:none; touch-action:none; }

/* signature pad */
.sig-tabs { margin:12px 0 10px; }
.sig-pad-wrap { position:relative; height:170px; border:1px solid var(--input); border-radius:6px; background:#fff; }
.sig-pad { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:crosshair; }
.sig-line { position:absolute; left:20px; right:20px; bottom:38px; border-top:1px solid #c9c6c0; pointer-events:none; }
.sig-placeholder { position:absolute; left:22px; bottom:12px; font:600 13px var(--body); color:#9a9ea4; text-transform:uppercase; letter-spacing:.08em; pointer-events:none; }
.sig-upload { margin-bottom:10px; }
.sig-current { padding:10px; border:1px solid var(--line); border-radius:6px; background:#fff; margin-top:10px; }
.sig-current img { max-height:70px; max-width:100%; }
.sig-form { margin-top:10px; }
.danger-link { color:var(--bad); font-size:14px; text-decoration:underline; }

/* policy pages and footer links */
.legal { max-width:780px; margin:0 auto; padding:28px 32px; }
.legal h2 { margin-top:26px; } .legal p, .legal li { line-height:1.65; } .legal ul { padding-left:22px; display:grid; gap:6px; }
.legal-nav { margin-top:28px; padding-top:16px; border-top:1px solid var(--line); font-size:14px; }
.foot-links { display:flex; justify-content:center; gap:18px; margin-top:6px; }
.foot-links a { color:var(--muted); }
@media (max-width:640px) { .legal { padding:20px 18px; } }
