/* Northstar — EU AI Act compliance workspace */
:root {
  --navy: #101c33;
  --navy-soft: #1b2b49;
  --ink: #17243b;
  --slate: #5a6b85;
  --muted: #596a83;
  --line: #e3e9f1;
  --bg: #f5f7fb;
  --card: #ffffff;
  --teal: #09766a;
  --teal-dark: #075f55;
  --teal-wash: #e7f6f3;
  --red: #c0392b;
  --red-wash: #fdeceb;
  --amber: #b7791f;
  --amber-wash: #fdf4e3;
  --blue: #2b6cb0;
  --blue-wash: #eaf2fb;
  --grey-wash: #eef1f6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 28, 51, .05), 0 8px 24px rgba(16, 28, 51, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* Author `display` rules below would otherwise override the UA [hidden] rule. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; }
.muted { color: var(--slate); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--teal); }
.fineprint { font-size: 11.5px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 13px; cursor: pointer; transition: .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: #b9c6db; border-color: rgba(255,255,255,.14); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.07); color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c9c5; }
.btn-danger:hover:not(:disabled) { background: var(--red-wash); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--teal); padding: 0; font-weight: 600; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Auth ---------- */
.auth-view { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-brand {
  background: linear-gradient(160deg, #101c33 0%, #16263f 55%, #0c5c55 160%);
  color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.brand-row { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--teal);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 4px 14px rgba(13, 143, 128, .4);
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.auth-pitch { max-width: 470px; }
.auth-pitch .eyebrow { color: #6fd8c9; }
.auth-pitch h1 { font-size: 40px; line-height: 1.13; margin: 16px 0 18px; letter-spacing: -.03em; }
.lead { color: #bccade; font-size: 15px; line-height: 1.7; }
.pitch-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.pitch-list li { display: flex; gap: 11px; align-items: flex-start; color: #d6e0ee; font-size: 13.5px; }
.pitch-dot { width: 7px; height: 7px; border-radius: 50%; background: #4bc7b6; margin-top: 7px; flex: none; }
.auth-legal { color: #7e91ad; font-size: 11.5px; max-width: 460px; }
.auth-panel { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 26px; gap: 4px; }
.auth-tab { background: none; border: none; padding: 11px 16px; font-weight: 600; color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.is-active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.auth-form { display: grid; gap: 14px; }
.auth-form h2 { font-size: 21px; }
.auth-form > .muted { margin-top: -8px; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink); }
.field > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea, .input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,143,128,.12); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: var(--slate); cursor: pointer; }
.checkbox-row input { accent-color: var(--teal); }
.form-error { background: var(--red-wash); color: var(--red); border: 1px solid #f2cdc9; padding: 9px 11px; border-radius: 8px; font-size: 12.5px; }
.auth-footer { margin-top: 30px; color: var(--muted); font-size: 11px; text-align: center; }

/* ---------- Shell ---------- */
.app-shell { display: grid; grid-template-columns: 238px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #c9d5e7; display: flex; flex-direction: column; padding: 22px 15px 18px; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { color: #fff; padding: 2px 8px 26px; }
.sidebar-label { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #6f829f; padding: 0 10px; margin: 6px 0 10px; font-weight: 700; }
.nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 8px; color: #b8c6dc; font-size: 13px; font-weight: 550; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.is-active { background: var(--teal); color: #fff; }
.nav-icon { width: 17px; text-align: center; opacity: .9; font-size: 14px; }
.nav-badge { margin-left: auto; background: rgba(255,255,255,.14); border-radius: 20px; padding: 1px 7px; font-size: 10.5px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }
.plan-chip { background: var(--navy-soft); border: 1px solid rgba(255,255,255,.09); border-radius: 9px; padding: 11px 12px; font-size: 12px; }
.plan-chip strong { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }
.plan-chip span { color: #8fa3bf; }
.company-line { padding: 0 4px; display: grid; gap: 2px; }
.company-line span { color: #e4ecf7; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-line small { color: #6f829f; font-size: 10.5px; }
.main-area { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar h1 { font-size: 20px; }
.topbar .muted { font-size: 12.5px; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.asof { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate); }
.asof-label { white-space: nowrap; }
.asof input { border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--ink); background: #fff; font-size: 12px; }
.page { padding: 26px 30px 60px; max-width: 1400px; }

/* ---------- Cards & layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h3 { font-size: 14px; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 2fr 1fr; }
.grid-2-even { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title { margin: 26px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-weight: 700; }

/* ---------- Stat cards ---------- */
.stat { padding: 16px 18px; display: grid; gap: 8px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--slate); font-weight: 700; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-note { font-size: 11.5px; color: var(--muted); }
.stat-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.tone-red { background: var(--red-wash); color: var(--red); }
.tone-amber { background: var(--amber-wash); color: var(--amber); }
.tone-blue { background: var(--blue-wash); color: var(--blue); }
.tone-grey { background: var(--grey-wash); color: var(--slate); }
.tone-teal { background: var(--teal-wash); color: var(--teal-dark); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-prohibited { background: var(--red-wash); color: var(--red); }
.badge-high_risk { background: #fdeee3; color: #a4531c; }
.badge-transparency { background: var(--blue-wash); color: var(--blue); }
.badge-minimal { background: var(--grey-wash); color: var(--slate); }
.badge-out_of_scope { background: var(--grey-wash); color: var(--slate); }
.badge-unassessed { background: #f3f5f9; color: #93a1b7; border: 1px dashed #d7dfeb; }
.badge-open { background: var(--amber-wash); color: var(--amber); }
.badge-paid { background: var(--teal-wash); color: var(--teal-dark); }
.badge-active { background: var(--teal-wash); color: var(--teal-dark); }
.badge-past_due { background: var(--red-wash); color: var(--red); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 11px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 700; border-bottom: 1px solid var(--line); background: #fbfcfe; }
td { padding: 12px 16px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfd; }
.cell-strong { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 44px 20px; text-align: center; color: var(--slate); }
.empty h3 { margin-bottom: 6px; color: var(--ink); }
.empty p { font-size: 13px; max-width: 380px; margin: 0 auto 16px; }

/* ---------- Dashboard widgets ---------- */
.progress { height: 8px; border-radius: 20px; background: var(--grey-wash); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: 20px; }
.deadline { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.deadline:last-child { border-bottom: none; }
.deadline-date { min-width: 84px; font-size: 12px; font-weight: 700; color: var(--ink); }
.deadline-body { flex: 1; min-width: 0; }
.deadline-body strong { font-size: 12.5px; font-weight: 600; display: block; }
.deadline-body small { color: var(--muted); font-size: 11.5px; }
.tminus { font-size: 11px; font-weight: 700; color: var(--teal-dark); background: var(--teal-wash); padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.tminus.urgent { color: var(--red); background: var(--red-wash); }
.gap-item { display: flex; gap: 9px; align-items: center; padding: 7px 0; font-size: 12.5px; color: var(--slate); }
.gap-item::before { content: "○"; color: var(--amber); }
.activity { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #eef2f7; font-size: 12.5px; }
.activity:last-child { border-bottom: none; }
.activity time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.activity code { background: var(--grey-wash); padding: 1px 6px; border-radius: 4px; font-size: 11px; color: var(--slate); }

/* ---------- Wizard ---------- */
.wizard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.stepper { display: grid; gap: 4px; }
.step { display: flex; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 9px; font-size: 12.5px; color: var(--slate); cursor: pointer; border: 1px solid transparent; }
.step:hover { background: #fff; }
.step.is-active { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
.step.is-done .step-num { background: var(--teal); color: #fff; border-color: var(--teal); }
.step-num { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; background: #fff; }
.question { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; }
.question-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.qnum { background: var(--teal-wash); color: var(--teal-dark); font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.question-head h4 { font-size: 13.5px; font-weight: 600; flex: 1; line-height: 1.5; }
.why { margin-top: 9px; font-size: 12px; color: var(--slate); background: #f8fafc; border-left: 3px solid var(--teal); padding: 9px 11px; border-radius: 0 6px 6px 0; }
.why summary { cursor: pointer; font-weight: 650; color: var(--teal-dark); }
.why p { margin-top: 6px; line-height: 1.55; }
.choice-list { display: grid; gap: 7px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.choice:hover { border-color: #b9d9d4; background: #fafefd; }
.choice.is-checked { border-color: var(--teal); background: var(--teal-wash); }
.choice input { accent-color: var(--teal); margin-top: 2px; flex: none; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented label { padding: 8px 20px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--slate); border-right: 1px solid var(--line); }
.segmented label:last-child { border-right: none; }
.segmented input { display: none; }
.segmented label.is-checked { background: var(--teal); color: #fff; }
.wizard-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.preview-box { display: flex; gap: 16px; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: 10px; flex-wrap: wrap; }
.preview-box .preview-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8fa3bf; }
.preview-box strong { font-size: 14px; }
.preview-box .preview-metrics { display: flex; gap: 18px; margin-left: auto; font-size: 12px; color: #c9d7e9; }

/* ---------- Results ---------- */
.result-hero { padding: 22px 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, #101c33, #1b3550); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.result-hero.prohibited { background: linear-gradient(120deg, #7b241c, #a93226); }
.result-hero.high_risk { background: linear-gradient(120deg, #7a4318, #af6a24); }
.result-hero.transparency { background: linear-gradient(120deg, #1b3a63, #2b6cb0); }
.result-hero.minimal { background: linear-gradient(120deg, #26364d, #3d5372); }
.result-hero h2 { font-size: 24px; margin-bottom: 4px; }
.result-hero p { color: #c9d7e9; font-size: 12.5px; }
.result-facts { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 14px 26px; min-width: 280px; }
.result-facts .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #8fa3bf; }
.result-facts .v { font-size: 13px; font-weight: 600; color: #fff; }
.reason-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
.reason-item:last-child { border-bottom: none; }
.reason-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--teal-wash); color: var(--teal-dark); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.reason-mark.supporting { background: var(--grey-wash); color: var(--slate); }
.reason-body strong { font-size: 12.5px; }
.reason-body .cite { font-size: 11px; color: var(--teal-dark); font-weight: 700; }
.reason-body .evidence { font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.obligation { padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.obligation:last-child { border-bottom: none; }
.obligation-top { display: flex; gap: 10px; align-items: flex-start; }
.obligation-cite { font-size: 11px; font-weight: 700; color: var(--blue); min-width: 116px; }
.obligation strong { font-size: 12.5px; }
.obligation p { font-size: 12px; color: var(--slate); margin-top: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tab { background: none; border: none; padding: 10px 14px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--slate); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.signoff { background: var(--teal-wash); border: 1px solid #bfe5df; border-radius: 10px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.signoff.pending { background: var(--amber-wash); border-color: #f0dcb0; }

/* ---------- Billing / plans ---------- */
.plan-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan-card > .btn { margin-top: auto; }
.plan-card.is-current { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,143,128,.1), var(--shadow); }
.plan-price { font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.plan-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 12px; color: var(--slate); }
.plan-features li { display: flex; gap: 8px; }
.plan-features li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.notice { background: var(--amber-wash); border: 1px solid #f0dcb0; color: #8a6218; padding: 12px 15px; border-radius: 9px; font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start; }
.notice-blue { background: var(--blue-wash); border-color: #cadcf3; color: #245789; }

/* ---------- Modal / toast ---------- */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); padding: 10px 14px; background: #fff; color: var(--ink); }
.skip-link:focus { transform: none; }
.workspace-data .card-head h2 { font-size: 16px; }
.evidence-exports { padding-left: 20px; overflow-wrap: anywhere; }
.modal::backdrop { background: rgba(16,28,51,.5); }
.modal { background: #fff; border: 0; border-radius: 14px; width: calc(100% - 40px); max-width: 480px; max-height: calc(100dvh - 40px); margin: auto; padding: 0; box-shadow: 0 24px 70px rgba(16,28,51,.25); }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 20px; display: grid; gap: 14px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast-root { position: fixed; bottom: 22px; right: 22px; display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(16,28,51,.25); max-width: 360px; }
.toast.error { background: var(--red); }

/* ---------- Misc ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { flex: 1; min-width: 200px; max-width: 340px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 9px 14px; font-size: 12.5px; }
.kv dt { color: var(--slate); } .kv dd { margin: 0; font-weight: 600; }
.loading { padding: 50px; text-align: center; color: var(--slate); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report-card { padding: 20px; display: grid; gap: 10px; }
.report-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-wash); color: var(--teal-dark); display: grid; place-items: center; font-size: 18px; }
.report-card p { font-size: 12.5px; color: var(--slate); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .report-grid { grid-template-columns: 1fr; }
  .wizard-layout { grid-template-columns: 1fr; }
  .stepper { display: flex; overflow-x: auto; gap: 6px; }
  .step { white-space: nowrap; }
}
@media (max-width: 820px) {
  .auth-view { grid-template-columns: 1fr; }
  .auth-brand { padding: 30px; }
  .auth-pitch h1 { font-size: 30px; }
  .pitch-list, .auth-legal { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
  .sidebar-brand { padding: 0 10px 0 0; }
  .sidebar-label, .sidebar-bottom .plan-chip, .sidebar-bottom .company-line { display: none; }
  .sidebar-bottom { margin: 0 0 0 auto; }
  .nav { order: 1; display: flex; overflow-x: auto; flex: 1 0 100%; min-width: 0; }
  .nav-item { white-space: nowrap; width: auto; }
  .topbar { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
  .page { padding: 18px; }
  .grid-4, .grid-2-even, .field-grid { grid-template-columns: 1fr; }
}

/* ---------- Evidence attachments ---------- */
.gap-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef2f7; font-size: 12.5px; color: var(--slate); }
.gap-row:last-child { border-bottom: none; }
.gap-row > span:first-child { width: 14px; flex: none; color: var(--amber); font-weight: 700; }
.gap-row.is-covered > span:first-child { color: var(--teal); }
.gap-row > span:nth-child(2) { flex: 1; min-width: 0; }
.gap-row .btn, .gap-row .badge { margin-left: auto; flex: none; }
td code { background: var(--grey-wash); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--slate); }

.auth-home { display: inline-block; margin-bottom: 1rem; color: var(--muted); }
.billing-workspace { max-width: 680px; }
.billing-workspace .kv dd { overflow-wrap: anywhere; }
.billing-actions, .review-file-actions { display: flex; gap: .65rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  #review-comparison .gap-row { grid-template-columns: auto minmax(0, 1fr); }
  #review-comparison .review-file-actions { grid-column: 2; }
}
