/* ============================================================
   PlotCheck: self-hosted fonts (LAN deployment: no CDN fetches)
   ============================================================ */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond-italic-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   PlotCheck: design tokens
   ============================================================ */
:root {
  /* "Candlelit manuscript desk": wax-seal garnet + gilt page-edge gold,
     not generic tech-violet. Grounded in what the tool does (editorial
     red-ink markup) and the genre it edits (dark romantic fantasy: crowns,
     wax seals, gilded oaths). */
  --bg: #F4F1F5;
  --bg-blob-1: #F7DEC0;
  --bg-blob-2: #EAD0DE;
  --ink: #22151F;
  --ink-muted: #5E4E5A;
  --ink-faint: #93818D;

  /* solid card surfaces (formerly frosted glass): crisp white cards on
     flat cream, the same card language as the contours app */
  --glass: #FFFFFF;
  --glass-border: rgba(34, 21, 31, 0.07);
  --glass-strong: #FFFFFF;
  --surface-solid: #FFFFFF;

  --accent: #8E2140;
  --accent-deep: #5E1128; /* hard "pressed edge" under chunky buttons */
  --accent-2: #C9972E;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(142, 33, 64, 0.11);

  --good: #1E9E6B;
  --good-deep: #14724C;
  --warn: #B8791B;
  --bad: #B8203F;

  --line: rgba(34, 21, 31, 0.10);
  --line-strong: rgba(34, 21, 31, 0.18);
  --shadow: 0 20px 60px -20px rgba(94, 20, 45, 0.32);
  --shadow-sm: 0 8px 24px -12px rgba(94, 20, 45, 0.26);

  /* Fraunces for headings (display serif with actual personality at large
     sizes), EB Garamond for "book text" moments (the manuscript excerpt
     and evidence quotes), so quoted fiction reads like typeset fiction.
     UI chrome stays on the system sans. */
  --font-display: "Fraunces", Georgia, "Iowan Old Style", serif;
  --font-book: "EB Garamond", Georgia, "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
}

/* System "dark" setting applies automatically, UNLESS the user has picked
   a theme explicitly via the toggle (data-theme on <html>). An explicit
   light choice must beat a dark OS preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1119;
    --bg-blob-1: #4A2033;
    --bg-blob-2: #2E2038;
    --ink: #F3ECF1;
    --ink-muted: #C4AEBE;
    --ink-faint: #927E8C;

    --glass: #2B1C25;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-strong: #30212B;
    --surface-solid: #271A22;

    --accent: #E0577B;
    --accent-deep: #9C2F4F;
    --accent-2: #E8B94A;
    --accent-ink: #241019;
    --accent-soft: rgba(224, 87, 123, 0.18);

    --good: #4CD394;
    --good-deep: #2C8F63;
    --warn: #F0B429;
    --bad: #FF7A93;

    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 10px 28px -12px rgba(0, 0, 0, 0.5);
  }
}

/* Explicit toggle choice wins over prefers-color-scheme in both
   directions since [data-theme="dark"] has higher specificity than the
   bare :root light defaults, regardless of the OS setting. */
:root[data-theme="dark"] {
  --bg: #1B1119;
  --bg-blob-1: #4A2033;
  --bg-blob-2: #2E2038;
  --ink: #F3ECF1;
  --ink-muted: #C4AEBE;
  --ink-faint: #927E8C;

  --glass: #2B1C25;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-strong: #30212B;
  --surface-solid: #271A22;

  --accent: #E0577B;
  --accent-deep: #9C2F4F;
  --accent-2: #E8B94A;
  --accent-ink: #241019;
  --accent-soft: rgba(224, 87, 123, 0.18);

  --good: #4CD394;
  --good-deep: #2C8F63;
  --warn: #F0B429;
  --bad: #FF7A93;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 28px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Reset + base
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  background: var(--bg);
  background-image:
    radial-gradient(680px 480px at 8% -6%, var(--bg-blob-1), transparent 60%),
    radial-gradient(720px 520px at 105% 10%, var(--bg-blob-2), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
h1, h2 { font-family: var(--font-display); font-weight: 900; margin: 0; text-wrap: balance; }
h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
button { font-family: inherit; }
input { font-family: inherit; font-size: inherit; color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .check-card, .toast, .dropzone, .modal-card, input, .status-pill { transition: all .16s ease; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Layout shell
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--accent) 70%, white), var(--accent) 65%);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.28), inset 0 1px 1px rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.2);
}
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.account-bar { display: flex; align-items: center; gap: 12px; }
.account-bar[hidden] { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.credit-pill {
  /* monospace counter pill, same species as the "pulls left" counter
     on the contours app */
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1.5px solid var(--line-strong);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.credit-pill-icon { font-size: 12px; color: var(--accent-2); align-self: center; }
.credit-amount { font-weight: 700; color: var(--accent); font-size: 15px; }
.credit-label { font-size: 12px; color: var(--ink-muted); }

main#main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 80px; }
.view { display: block; }
.view[hidden] { display: none; }

/* ============================================================
   Buttons / inputs
   ============================================================ */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-accent {
  /* flat solid garnet with a hard "pressed" bottom edge: the chunky
     tactile button treatment shared with the contours app */
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-deep), var(--shadow-sm);
}
.btn-accent:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 5px 0 var(--accent-deep), var(--shadow-sm); }
.btn-accent:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-outline {
  background: var(--surface-solid);
  border: 2px solid var(--line-strong);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--line-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-outline:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }
.btn-good {
  background: var(--good);
  color: #fff;
  box-shadow: 0 4px 0 var(--good-deep);
}
.btn-good:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.btn-good:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--good-deep); }
.btn-ghost { background: transparent; color: var(--ink-muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.link-btn {
  background: none; border: none; padding: 0; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
}
.link-btn:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.field-hint { font-size: 11.5px; color: var(--ink-faint); }
.field input, input[type="email"], input[type="password"], input[type="number"] {
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14.5px;
}
.field input:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ============================================================
   Glass panel primitive
   ============================================================ */
.panel, .auth-card, .modal-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 24px 26px; margin-bottom: 22px; }
.panel h2 { font-size: 19px; margin-bottom: 16px; }

/* ============================================================
   Auth view
   ============================================================ */
#view-auth { display: flex; justify-content: center; padding-top: 40px; }
#view-auth[hidden] { display: none; } /* ID beats .view[hidden] on specificity alone otherwise */
.auth-card { width: 100%; max-width: 400px; padding: 30px 30px 26px; }
.auth-tagline {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--ink-muted); text-align: center; margin: 0 0 20px;
}
.auth-tabs { display: flex; gap: 4px; margin-bottom: 22px; background: var(--accent-soft); padding: 4px; border-radius: 999px; }
.auth-tab {
  flex: 1; border: none; background: transparent; padding: 8px 0; border-radius: 999px;
  font-weight: 600; font-size: 13.5px; color: var(--ink-muted); cursor: pointer;
}
.auth-tab.active { background: var(--surface-solid); color: var(--accent); box-shadow: var(--shadow-sm); }
.auth-form[hidden] { display: none; }
.form-lede { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 14px; }
.form-message { min-height: 18px; font-size: 13px; color: var(--bad); margin: 4px 0 0; }

/* ============================================================
   Workspace
   ============================================================ */
.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 18px;
  text-align: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--surface-solid) 40%, transparent);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-active { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-icon { font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.dropzone-title { font-weight: 700; margin: 0 0 3px; }
.dropzone-hint { font-size: 12.5px; color: var(--ink-faint); margin: 0; }
.dropzone-file { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--accent); }

.chapter-range { margin-top: 16px; }
.chapter-range-inputs { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.chapter-range-inputs input { width: 84px; }
.chapter-range-detected { font-size: 12px; color: var(--ink-faint); }

.checks-heading { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin: 22px 0 10px; }
.checks-grid { display: grid; gap: 10px; }

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
  cursor: pointer;
}
.check-card:hover { border-color: var(--line-strong); }
.check-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.checks-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 -2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.checks-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check-card-addon { border-style: dashed; }

.check-card-toggle {
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  margin-top: 2px;
}
.check-card-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform .18s cubic-bezier(.4,0,.2,1);
}
.check-card input:checked + .check-card-toggle {
  background: var(--accent);
}
.check-card input:checked + .check-card-toggle::after { transform: translateX(16px); }
.check-card input:focus-visible + .check-card-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }

.check-card-body { display: flex; flex-direction: column; gap: 3px; }
.check-card-title { font-weight: 700; font-size: 14px; display: flex; align-items: baseline; gap: 8px; }
.check-card-price { font-weight: 500; font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.check-card-desc { font-size: 12.5px; color: var(--ink-muted); line-height: 1.4; }

.quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.quote-total { display: flex; flex-direction: column; }
.quote-label { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.quote-amount { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- results panel ---- */
.empty-state { color: var(--ink-faint); font-size: 13.5px; padding: 30px 4px; text-align: center; }
.progress-block[hidden], .report-block[hidden] { display: none; }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  width: 2%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .35s ease;
}
.progress-detail { font-size: 13.5px; font-weight: 600; margin: 0 0 10px; }
.progress-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress-log li { padding: 5px 8px; border-radius: 6px; background: color-mix(in srgb, var(--surface-solid) 30%, transparent); }

.report-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.report-summary { font-size: 13.5px; color: var(--ink-muted); }

/* ---- jobs table ---- */
.table-scroll { overflow-x: auto; }
.jobs-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.jobs-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-faint); padding: 8px 10px; border-bottom: 1px solid var(--line-strong);
}
.jobs-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.jobs-table td.num { font-variant-numeric: tabular-nums; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--line);
  color: var(--ink-muted);
}
.status-completed { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.status-failed { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.status-running, .status-queued { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.status-cancelled { background: var(--line); color: var(--ink-faint); }

/* ============================================================
   Modal
   ============================================================ */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 6, 24, 0.45); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 420px; margin: 20px; padding: 26px; background: var(--glass-strong); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: none; border: none; font-size: 14px; color: var(--ink-muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); background: var(--line); }

/* ---- billing modal: wide enough for a real pricing grid, not a cramped list ---- */
.modal-card-billing { max-width: 760px; padding: 32px 34px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-card-billing h2 { max-width: 480px; font-size: clamp(20px, 3vw, 24px); }
.billing-subhead { color: var(--ink-muted); font-size: 14px; max-width: 520px; margin: 8px 0 0; }
.billing-trust {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-faint); text-align: center;
}

/* ---- waitlist modal: a centered "invitation" card, not a task panel ---- */
.modal-card-waitlist { max-width: 440px; padding: 34px 30px 30px; text-align: center; }
.modal-card-waitlist .field { text-align: left; }
.modal-card-waitlist h2 { font-size: clamp(21px, 3vw, 25px); margin: 0 0 10px; }
.modal-card-waitlist .billing-subhead { margin: 0 auto 22px; max-width: 340px; }
.modal-card-waitlist .form-message { text-align: center; }
.waitlist-seal {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--accent) 70%, white), var(--accent) 65%);
  color: var(--accent-2);
  font-size: 21px;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.28), inset 0 1px 1px rgba(255,255,255,0.35), 0 3px 10px rgba(0,0,0,0.22);
}
.waitlist-tag {
  display: block; width: fit-content; margin: 0 auto 14px;
  padding: 4px 12px; border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
}
.waitlist-joined { padding: 4px 0 2px; }
.waitlist-joined .annotation-verified { display: block; font-size: 14px; margin-bottom: 8px; }
.waitlist-joined .billing-subhead { margin: 0 auto; }

/* ---- how-it-works steps (shared by the How page) ---- */
.how-steps {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.how-steps li { display: flex; gap: 14px; align-items: flex-start; }
.how-step-num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  background: var(--accent-soft); color: var(--accent);
}
.how-steps h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.how-steps p { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }

.billing-packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
@media (max-width: 620px) { .billing-packs { grid-template-columns: 1fr; } }

/* ---- pricing page: full-width room for all four packs in a row ---- */
.pricing-packs { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
@media (max-width: 900px) { .pricing-packs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-packs { grid-template-columns: 1fr; } }

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
}
.pack-card-featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
.pack-card-badge {
  align-self: flex-start;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.pack-card-price { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); }
.pack-card-credits { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pack-card-credits span { font-weight: 500; color: var(--ink-muted); }
.pack-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.pack-card-bonus {
  font-weight: 700; color: var(--good);
  background: color-mix(in srgb, var(--good) 14%, transparent);
  padding: 2px 8px; border-radius: 999px;
}
.pack-card-rate { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.pack-card-tagline { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); margin: 0; flex: 1; }
.pack-card-cta { width: 100%; margin-top: 4px; }

/* ============================================================
   Toasts
   ============================================================ */
#toast-container { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(-6px);
}
.toast-visible { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 3px solid var(--good); }
.toast-error { border-left: 3px solid var(--bad); }
.toast-info { border-left: 3px solid var(--accent); }

/* ============================================================
   Site nav + footer
   ============================================================ */
a.brand { text-decoration: none; color: inherit; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-right: 4px; }
.nav-link {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
}
.nav-link:hover { color: var(--ink); background: var(--accent-soft); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-auth[hidden] { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 15px;
  padding: 0;
}
.nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 620px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 16px;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .site-nav.nav-open { display: flex; }
  .site-nav .nav-link { padding: 11px 12px; }
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   Landing
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 34px 0 20px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; } }
.hero-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 54ch;
  margin: 0 0 24px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 13px 24px; font-size: 15px; }
.hero-trust { font-size: 12.5px; color: var(--ink-faint); margin: 18px 0 0; max-width: 46ch; }
.hero-note { font-size: 13px; color: var(--ink-muted); margin: 16px 0 0; }
.hero-note strong { color: var(--accent); font-weight: 700; }

/* --- signature: the annotated manuscript page, framed in a product card
       like the map widget on the contours app --- */
.hero-page-wrap { position: relative; padding: 8px 8px 64px 0; }
.hero-card {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}
.hero-chip {
  position: absolute;
  top: 12px;
  left: -14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  transform: rotate(-2deg);
}
.hero-chip strong { color: var(--accent); }
.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px 4px;
}
.status-dots { display: flex; gap: 5px; }
.status-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.status-dots span:nth-child(1) { background: var(--good); }
.status-dots span:nth-child(2) { background: var(--accent-2); }
.hero-status-text { flex: 1; font-size: 12.5px; color: var(--ink-muted); font-style: italic; }
.manuscript-page {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 30px 26px;
  transform: rotate(-1.2deg);
  font-family: var(--font-book);
}
.ms-chapter {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin: 0 0 18px;
}
.ms-text { font-size: 16.5px; line-height: 1.7; margin: 0 0 12px; text-indent: 1.6em; }
.ms-text:last-child { margin-bottom: 0; }
.ms-flag {
  background: transparent;
  color: inherit;
  border-bottom: 2px solid var(--accent);
  box-shadow: inset 0 -6px 0 var(--accent-soft);
}
.annotation-card {
  position: absolute;
  right: -6px;
  bottom: 10px;
  max-width: 300px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  transform: rotate(0.8deg);
}
.annotation-kind {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.annotation-body { font-size: 13px; line-height: 1.5; color: var(--ink); margin: 0 0 8px; }
.annotation-verified { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--good); }
@media (max-width: 900px) {
  .hero-page-wrap { max-width: 480px; }
  .annotation-card { right: 0; }
}

/* --- landing sections --- */
.landing-section { padding: 44px 0 8px; }
.section-heading { font-size: clamp(23px, 3vw, 30px); margin: 0 0 22px; }
.marketing-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .marketing-checks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .marketing-checks { grid-template-columns: 1fr; } }
.mcheck {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.mcheck-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 21px;
  margin-bottom: 14px;
  background: var(--accent-soft);
}
.mcheck:nth-child(3n+2) .mcheck-icon { background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.mcheck:nth-child(3n) .mcheck-icon { background: color-mix(in srgb, var(--good) 14%, transparent); }
.mcheck h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.mcheck p { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.section-heading-center { text-align: center; font-weight: 900; }

/* --- "heads up" banner, same species as the contours app's data disclaimer --- */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 34px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.notice-banner strong { color: var(--ink); }
.notice-banner-tag {
  flex: none;
  margin-top: 1px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--good);
  background: color-mix(in srgb, var(--good) 14%, transparent);
}

.landing-verify {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .landing-verify { grid-template-columns: 1fr; gap: 28px; } }
.verify-copy p { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 12px; max-width: 52ch; }
.link-arrow { font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.landing-cta { text-align: center; padding: 52px 0 30px; }
.landing-cta p { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 20px; }

/* ============================================================
   Static pages (How it works, Sample report)
   ============================================================ */
.page { max-width: 720px; margin: 0 auto; padding-top: 18px; }
.page-title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 16px; }
.page-lede { font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 28px; }
.how-steps-page { gap: 26px; margin-top: 8px; }
.how-steps-page h3 { font-size: 16.5px; }
.how-steps-page p { font-size: 14px; }
.page-trust {
  margin: 32px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  font-size: 13px;
  color: var(--ink-muted);
}
.page-next { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 10px; }

/* --- account page --- */
.account-facts { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.account-fact { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-fact dt { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.account-fact dd { margin: 0; font-size: 14px; color: var(--ink); }
.account-security-gap { margin-top: 24px; }
.account-balance-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.account-balance-amount { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 4px; }
.account-danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--glass-border)); }

.legal-updated { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 24px; }
.legal-toc {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 34px;
  padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--glass); font-size: 13px;
}
.legal-toc a { color: var(--ink); }
.legal h2 { font-size: 21px; margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 6px; }
.legal h3 { font-size: 15px; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 14px; line-height: 1.65; color: var(--ink-muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }

/* --- sample findings --- */
.findings { display: flex; flex-direction: column; gap: 18px; margin: 4px 0 28px; }
.finding {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 18px;
}
.finding-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.finding-kind {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.finding-sev { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 999px; }
.sev-high { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.sev-med { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.sev-low { background: var(--line); color: var(--ink-muted); }
.finding-loc { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; margin-left: auto; }
.finding h3 { font-size: 17px; margin: 0 0 8px; }
.finding-why { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 14px; }
.finding-evidence { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.finding-evidence blockquote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
  font-family: var(--font-book);
  font-size: 15px;
  line-height: 1.55;
}
.ev-ch {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 8px;
}

/* ============================================================
   In-app report view (/report/{id})
   ============================================================ */
:root {
  /* candle-to-flame heat ramp, shared with the PDF's heat dots */
  --heat-none: #B9ADB4;
  --heat-mild: #C9972E;
  --heat-moderate: #C2542E;
  --heat-explicit: #8E2140;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --heat-none: #6E6069;
    --heat-mild: #E8B94A;
    --heat-moderate: #E06A3C;
    --heat-explicit: #E0577B;
  }
}
:root[data-theme="dark"] {
  --heat-none: #6E6069;
  --heat-mild: #E8B94A;
  --heat-moderate: #E06A3C;
  --heat-explicit: #E0577B;
}

.report-head { max-width: 720px; margin: 0 auto 26px; padding-top: 18px; }
#view-report .panel { max-width: 720px; margin-left: auto; margin-right: auto; }
.rp-meta { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 18px; }
.rp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rp-note { font-size: 13px; color: var(--ink-faint); margin: 0 0 14px; }

/* ---- at a glance ---- */
.rp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 560px) { .rp-stats { grid-template-columns: repeat(2, 1fr); } }
.rp-stat {
  padding: 16px 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  background: color-mix(in srgb, var(--surface-solid) 45%, transparent);
}
.rp-stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.rp-stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }

.rp-threads-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rp-threads-title { font-weight: 700; font-size: 13.5px; }
.rp-threads-counts { font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rp-threads-track { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 25%, transparent); overflow: hidden; }
.rp-threads-fill { height: 100%; border-radius: 999px; background: var(--good); }

/* ---- heat spine ---- */
.heat-spine {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 96px;
  padding: 6px 2px 0;
  border-bottom: 1px solid var(--line-strong);
}
.heat-cell {
  flex: 1;
  min-width: 14px;
  max-width: 56px;
  height: var(--heat-h, 30%);
  border: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.heat-cell:hover { filter: brightness(1.12); }
.heat-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.heat-cell-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.heat-none { background: var(--heat-none); }
.heat-mild { background: var(--heat-mild); }
.heat-moderate { background: var(--heat-moderate); }
.heat-explicit { background: var(--heat-explicit); }
.heat-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--ink-muted); }
.heat-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.heat-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---- cast index ---- */
.cast-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cast-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-solid);
  font-size: 13px;
  cursor: pointer;
}
.cast-chip:hover { border-color: var(--accent); }
.cast-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cast-chip-name { font-weight: 700; }
.cast-chip-count { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cast-chip-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cast-chip-active .cast-chip-count { color: var(--accent); }
.rp-dim { opacity: 0.3; }

/* ---- tropes ---- */
.trope-list { display: flex; flex-direction: column; gap: 14px; }
.trope-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.trope-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--warn);
}
.trope-chapters { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.trope-evidence { font-size: 13.5px; color: var(--ink-muted); margin: 6px 0 0; line-height: 1.5; }

/* ---- decision queue additions (reuses .finding cards) ---- */
.finding-fixes { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; }
.finding-fixes li { margin-bottom: 8px; }

/* ---- chapter accordions ---- */
.rp-chapters { display: flex; flex-direction: column; gap: 8px; }
.rp-chapter {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-solid) 40%, transparent);
}
.rp-chapter[open] { border-color: var(--line-strong); }
.rp-chapter-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.rp-chapter-summary::-webkit-details-marker { display: none; }
.rp-chapter-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.rp-chapter-title { font-weight: 700; font-size: 14px; flex: 1; }
.rp-chapter-meta { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rp-chapter-body { padding: 2px 16px 16px 35px; }
.rp-ch-setting { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; }
.rp-ch-summary { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.rp-ch-cast { font-size: 13px; color: var(--ink-muted); margin: 0 0 10px; }
.rp-ch-block { margin: 0 0 10px; }
.rp-ch-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 4px;
}
.rp-ch-list { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.rp-ch-list li { margin-bottom: 4px; }
.rp-quote { font-family: var(--font-book); font-style: italic; color: var(--ink-muted); }

/* ---- audit trail ---- */
.rp-audit-lens { font-size: 15px; margin: 16px 0 8px; }
.rp-audit-lens:first-child { margin-top: 0; }
.rp-audit-item { font-size: 13.5px; line-height: 1.55; margin: 0 0 8px; }
.rp-audit-holds { font-weight: 700; color: var(--accent); }
.rp-audit-dismissed { font-weight: 700; color: var(--ink-faint); }

/* ---- job row delete ---- */
.job-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.job-delete-btn {
  border: none;
  background: none;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  opacity: 0;
}
.jobs-table tr:hover .job-delete-btn,
.job-delete-btn:focus-visible { opacity: 1; }
.job-delete-btn:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.job-delete-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: none) { .job-delete-btn { opacity: 1; } }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
