:root {
  color-scheme: light;
  --ink: #142f3b;
  --ink-2: #254451;
  --muted: #65767c;
  --line: #d8d5ca;
  --paper: #f4f1e8;
  --paper-deep: #e9e4d7;
  --surface: #fffdf8;
  --surface-2: #f8f6ef;
  --saffron: #d69430;
  --saffron-pale: #f7ecd7;
  --mint: #dceee5;
  --green: #2c6b55;
  --red: #a3443b;
  --red-pale: #f5e5e1;
  --blue-pale: #e6eef0;
  --shadow: 0 14px 34px rgba(26, 43, 47, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
#app { min-height: 100vh; }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px 2px 8px 2px; color: #f6d99f; font-family: Georgia, serif; font-size: 21px; font-weight: 700; letter-spacing: -2px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; height: 100vh; padding: 23px 16px 16px; color: #ecf0eb; background: var(--ink); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-title { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.1; letter-spacing: .01em; }
.brand-subtitle { margin-top: 5px; color: #aebec0; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.nav-section { margin: 25px 0 9px 10px; color: #9eb2b5; font-size: 9px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 11px; border: 0; border-radius: 6px; background: transparent; color: #d1dcda; text-align: left; font-size: 13px; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: rgba(255,255,255,.08); color: white; }
.nav-link.active { background: #294753; color: white; box-shadow: inset 3px 0 0 var(--saffron); }
.nav-link .icon { width: 16px; height: 16px; color: #b6c6c5; }
.nav-link.active .icon { color: #f1c879; }
.nav-label { flex: 1; }
.nav-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 5px; background: rgba(255,255,255,.1); color: #c3d0cf; font-size: 10px; }
.side-footer { margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.12); }
.mode-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(223,171,82,.4); border-radius: 999px; color: #f2d597; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mode-dot { width: 6px; height: 6px; border-radius: 50%; background: #e8ac4e; box-shadow: 0 0 0 3px rgba(232,172,78,.12); }
.side-note { margin: 10px 0 0; color: #aebec0; font-size: 11px; line-height: 1.55; }

.main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 30px; background: rgba(244,241,232,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar-context { display: flex; align-items: center; gap: 9px; }
.context-control { display: grid; gap: 3px; min-width: 136px; }
.context-control label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.context-control select { min-width: 0; max-width: 212px; padding: 6px 28px 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; margin-left: 3px; border: 1px solid #c8d6d1; border-radius: 50%; background: var(--mint); color: var(--green); font-family: Georgia, serif; font-size: 13px; font-weight: 700; }
.mobile-brand { display: none; }
.content { max-width: 1540px; margin: 0 auto; padding: 28px 30px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 22px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3vw, 38px); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
h2 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; line-height: 1.15; }
h3 { margin-bottom: 7px; font-size: 14px; font-weight: 760; }
.lede { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.overline { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 750; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-link:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(214,148,48,.34); outline-offset: 2px; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--ink-2); }
.button-secondary { border-color: #bdc8c4; background: transparent; color: var(--ink); }
.button-secondary:hover { background: #eef0e9; }
.button-warm { background: var(--saffron); color: #241f14; }
.button-warm:hover { background: #e3a84d; }
.button-safe { border-color: #b6d1c3; background: var(--mint); color: #205743; }
.button-danger { border-color: #dfb7b0; background: var(--red-pale); color: var(--red); }
.button-small { min-height: 29px; padding: 6px 9px; font-size: 10px; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-head .button { white-space: nowrap; }

.card { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 17px 18px 13px; border-bottom: 1px solid var(--line); }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.card-body { padding: 17px 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.card-footer p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.panel { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.panel-pad { padding: 15px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stack { display: grid; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 10px; line-height: 1.5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rule { height: 1px; margin: 13px 0; background: var(--line); }

.hero-card { position: relative; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(230px,.6fr); gap: 22px; padding: 25px 26px; border: 1px solid #b9c7c0; border-radius: 7px; background: linear-gradient(115deg, #fffdf8 0%, #f4f2e9 72%, #e8efe9 100%); box-shadow: var(--shadow); overflow: hidden; }
.hero-card:after { content: ""; position: absolute; top: -30px; right: 27%; width: 1px; height: 150%; background: rgba(20,47,59,.1); transform: rotate(21deg); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 560px; font-size: clamp(31px, 4vw, 46px); }
.hero-copy .lede { max-width: 610px; }
.hero-side { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 15px 3px 2px 17px; border-left: 1px solid rgba(20,47,59,.16); }
.hero-stat { font-family: Georgia, serif; font-size: 28px; }
.hero-stat-label { max-width: 190px; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.hero-callout { padding: 10px 12px; border-left: 3px solid var(--saffron); background: rgba(255,253,248,.8); color: var(--ink-2); font-size: 11px; line-height: 1.5; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--blue-pale); color: var(--ink-2); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.status-pill.pending { background: var(--saffron-pale); color: #805413; }
.status-pill.safe { background: var(--mint); color: var(--green); }
.status-pill.blocked { background: var(--red-pale); color: var(--red); }
.status-pill .tiny-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.kpi-card { padding: 14px 16px; border-top: 2px solid var(--ink); }
.kpi-card.pending { border-top-color: var(--saffron); }
.kpi-card.safe { border-top-color: var(--green); }
.kpi-value { margin: 6px 0 3px; font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.kpi-caption { color: var(--muted); font-size: 10px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 11px; }
.section-title h2 { margin: 0; font-size: 19px; }
.section-title .overline { margin-left: auto; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px; border-bottom: 1px solid #e8e5dc; color: var(--ink-2); font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-primary { color: var(--ink); font-weight: 720; }
.table-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }

.callout { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #e2c994; border-radius: 5px; background: #fbf2df; color: #654a1c; font-size: 10px; line-height: 1.5; }
.callout.blue { border-color: #c6d6d9; background: #edf3f3; color: #31535d; }
.callout.safe { border-color: #bbd8c8; background: #edf6f0; color: #315f4c; }
.callout strong { color: inherit; }
.callout-mark { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 11px; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #c9c9be; border-radius: 4px; background: #fffefa; color: var(--ink); font-size: 11px; }
.field input, .field select { min-height: 35px; padding: 8px 9px; }
.field textarea { min-height: 152px; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.5; resize: vertical; }
.field input[readonly] { background: #f1efe8; color: #56676d; }
.field-hint { color: var(--muted); font-size: 9px; line-height: 1.45; }
.form-label-inline { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 10px; }
.form-label-inline input { accent-color: var(--green); }
.code-line { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 4px; background: #f4f3ed; color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.method-badge { width: 41px; flex: 0 0 auto; padding: 4px 3px; border-radius: 3px; background: var(--mint); color: var(--green); font-size: 8px; font-weight: 900; text-align: center; letter-spacing: .06em; }
.method-badge.post { background: var(--saffron-pale); color: #835719; }

.result-box { margin-top: 14px; border: 1px solid #bad6c8; border-radius: 5px; background: #f1f8f2; overflow: hidden; }
.result-box.fail { border-color: #e1b7b0; background: #fcf2ef; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid rgba(44,107,85,.15); }
.result-box.fail .result-head { border-bottom-color: rgba(163,68,59,.15); }
.result-body { padding: 11px; color: var(--ink-2); font-size: 10px; line-height: 1.55; }
.result-body p { margin: 0 0 6px; }
.result-body p:last-child { margin-bottom: 0; }
.result-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 850; }
.request-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); align-items: start; gap: 16px; }
.scenario-list { display: grid; gap: 7px; }
.scenario-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 5px; background: var(--surface-2); text-align: left; }
.scenario-option:hover { border-color: #c2d0cb; }
.scenario-option.active { border-color: #b7c8c2; background: #edf3ef; box-shadow: inset 3px 0 0 var(--green); }
.scenario-option .scenario-num { color: var(--muted); font-family: Georgia, serif; font-size: 14px; }
.scenario-option strong { display: block; margin: 0 0 3px; color: var(--ink); font-size: 10px; }
.scenario-option small { display: block; color: var(--muted); font-size: 9px; line-height: 1.4; }

.route-list { display: grid; gap: 8px; }
.route-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.route-item .path { overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; font-weight: 700; }
.route-item .route-summary { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }

.story-card { padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.story-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.story-head h3 { margin: 3px 0 6px; font-family: Georgia, serif; font-size: 17px; font-weight: 500; line-height: 1.28; }
.story-summary { margin: 8px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.story-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; color: var(--muted); font-size: 9px; }
.story-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.provenance { margin-top: 12px; padding: 11px; border: 1px solid #d6ddd8; border-radius: 4px; background: #f4f6f1; }
.provenance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; }
.provenance .label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.provenance .value { overflow-wrap: anywhere; color: var(--ink-2); font-size: 9px; line-height: 1.45; }
.workflow-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 10px 0 14px; }
.workflow-step { padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; background: #fbfaf6; color: var(--muted); font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.workflow-step.current { border-color: #c99c58; background: var(--saffron-pale); color: #79541a; }
.workflow-step.done { border-color: #bfd5c8; background: var(--mint); color: var(--green); }
.workflow-arrow { color: #9a9f98; font-size: 10px; }

.audit-row { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid #e8e5dc; }
.audit-row:last-child { border-bottom: 0; }
.audit-time { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.5; }
.audit-action { margin-bottom: 3px; color: var(--ink); font-size: 10px; font-weight: 780; }
.audit-detail { color: var(--muted); font-size: 9px; line-height: 1.45; }
.audit-actor { margin-top: 4px; color: #49616a; font-size: 8px; }

.matrix-cell { text-align: center; }
.matrix-yes { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 9px; font-weight: 800; }
.matrix-no { display: inline-flex; align-items: center; gap: 5px; color: var(--red); font-size: 9px; font-weight: 800; }
.matrix-limited { display: inline-flex; align-items: center; gap: 5px; color: #8a5b15; font-size: 9px; font-weight: 800; }

.feed-source { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(230px,.7fr); gap: 15px; }
.feed-preview-row { display: grid; grid-template-columns: minmax(0,1fr) 88px; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e8e5dc; }
.feed-preview-row:last-child { border-bottom: 0; }
.feed-preview-row h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 14px; font-weight: 500; line-height: 1.3; }
.feed-preview-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.feed-status { align-self: start; justify-self: end; }
.empty-state { padding: 24px 16px; border: 1px dashed #c9c8bd; border-radius: 5px; background: #fbfaf5; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.5; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(440px, calc(100vw - 36px)); padding: 12px 15px; border: 1px solid #a9c7b7; border-radius: 5px; background: #eff7f1; color: #275d48; box-shadow: 0 12px 30px rgba(14,40,46,.16); font-size: 11px; line-height: 1.45; }
.toast.error { border-color: #ddb6ae; background: #fcf0ed; color: var(--red); }
.footer-note { margin-top: 18px; color: var(--muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 1120px) {
  .shell { grid-template-columns: 218px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .content { padding: 24px 22px 40px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .request-layout { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: minmax(0,1.2fr) minmax(180px,.8fr); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; min-height: auto; height: auto; padding: 10px 12px; overflow: visible; }
  .brand { padding: 0 5px 9px; border-bottom: 0; }
  .brand-mark { width: 31px; height: 31px; font-size: 18px; }
  .brand-title { font-size: 15px; }
  .brand-subtitle { font-size: 8px; }
  .sidebar .nav-section, .sidebar .side-footer { display: none; }
  .nav-list { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
  .nav-link { width: auto; flex: 0 0 auto; gap: 7px; padding: 8px 9px; font-size: 10px; }
  .nav-link .icon { width: 14px; height: 14px; }
  .nav-count { display: none; }
  .topbar { position: relative; align-items: flex-start; flex-direction: column; gap: 11px; min-height: auto; padding: 11px 14px; }
  .topbar-context { width: 100%; align-items: end; }
  .context-control { flex: 1; min-width: 0; }
  .context-control select { width: 100%; max-width: none; font-size: 10px; }
  .content { padding: 20px 13px 36px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 11px; }
  .hero-card { grid-template-columns: 1fr; padding: 20px 17px; }
  .hero-card:after { display: none; }
  .hero-side { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .kpi-card { padding: 12px; }
  .kpi-value { font-size: 24px; }
  .feed-source { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 85px minmax(0,1fr); }
  .audit-row > :last-child { grid-column: 2; justify-self: start; }
  .provenance-grid { grid-template-columns: 1fr; }
  .context-control label { font-size: 8px; }
  .avatar { flex: 0 0 auto; width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Supplemental layout utilities */
.hero-pills { margin-top: 17px; }
.context-value { margin-top: 5px; font-size: 12px; font-weight: 750; }
.context-hint { margin: 8px 0 0; }
.callout-spaced { margin-bottom: 15px; }
.form-actions { margin-top: 14px; }
.result-empty { margin-top: 14px; }
.workflow-caption { margin-left: auto; }
.story-badges { display: grid; justify-items: end; gap: 5px; }
.provenance-title { margin-bottom: 9px; }
.feed-url { margin: 5px 0 3px; overflow-wrap: anywhere; }
.panel-pad { padding: 15px; }
.audit-search input { width: min(260px, 100%); min-height: 32px; padding: 7px 9px; border: 1px solid #c9c9be; border-radius: 4px; background: #fffefa; color: var(--ink); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Black Friday campaign: an editorial promo strip in the existing BACKBONE palette. */
.bf-banner { position: relative; z-index: 15; border-bottom: 3px solid var(--saffron); background: var(--ink); color: #fffdf8; }
.bf-banner-inner { width: min(100%, 1600px); display: grid; grid-template-columns: minmax(165px, .78fr) minmax(210px, 1fr) auto max-content; align-items: center; gap: 18px; margin: 0 auto; padding: 10px 30px; }
.bf-brand-lockup { display: flex; align-items: center; gap: 10px; }
.bf-brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(239, 193, 112, .65); border-radius: 4px; color: var(--saffron); font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.bf-brand-name { display: grid; gap: 3px; color: #fffdf8; font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: .04em; }
.bf-brand-name span { color: #f1c879; font-family: inherit; font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.bf-banner-copy { display: grid; gap: 2px; }
.bf-date-label { color: #c4d1cf; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bf-banner-copy strong { color: #fffdf8; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.1; }
.bf-banner-subtitle { color: #c4d1cf; font-size: 9px; }
.bf-countdown-block { display: grid; justify-items: center; gap: 4px; }
.bf-countdown-label { color: #f1c879; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-align: center; }
.bf-countdown { display: flex; align-items: center; gap: 5px; }
.bf-time-unit { min-width: 29px; display: grid; justify-items: center; gap: 1px; }
.bf-time-unit strong { color: #fffdf8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.bf-time-unit small { color: #c4d1cf; font-size: 7px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.bf-time-separator { align-self: flex-start; padding-top: 1px; color: #f1c879; font-size: 12px; }
.bf-banner-cta { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--saffron); border-radius: 4px; background: var(--saffron); color: #241f14; font-size: 10px; font-weight: 800; white-space: nowrap; transition: background .15s ease, transform .15s ease; }
.bf-banner-cta:hover { transform: translateY(-1px); background: #e3a84d; }
.bf-banner-cta:focus-visible { outline: 3px solid rgba(241, 200, 121, .55); outline-offset: 3px; }
.bf-banner-cta .icon { width: 13px; height: 13px; }
.bf-expired .bf-banner-cta { border-color: #b7c3c0; background: #e6e9e3; color: var(--ink); }
.bf-deals { scroll-margin-top: 84px; margin: 24px 0 8px; padding: 20px; border: 1px solid #c8c9bc; border-radius: 7px; background: linear-gradient(118deg, #fffdf8 0%, #f4f2e9 77%, #e8efe9 100%); box-shadow: var(--shadow); }
.bf-deals:focus { outline: 3px solid rgba(214, 148, 48, .34); outline-offset: 3px; }
.bf-deals-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.bf-deals-heading .eyebrow { margin-bottom: 5px; }
.bf-deals-heading h2 { margin-bottom: 5px; }
.bf-deals-intro { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.bf-offer-note { min-width: 220px; display: grid; gap: 5px; padding: 10px 13px; border-left: 3px solid var(--saffron); background: rgba(255, 253, 248, .85); }
.bf-offer-note span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; line-height: 1.35; }
.bf-offer-note strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bf-deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.bf-deal-card { min-width: 0; min-height: 202px; display: flex; flex-direction: column; padding: 13px 14px 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 254, 250, .93); }
.bf-deal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bf-deal-index { color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.bf-deal-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d3d8ce; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.bf-deal-icon .icon { width: 14px; height: 14px; }
.bf-deal-card h3 { margin: 0 0 5px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; line-height: 1.2; }
.bf-deal-card p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.bf-deal-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #e8e5dc; }
.bf-deal-card-footer > span { color: #805413; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bf-deal-card-footer .button { min-height: 29px; }
.bf-deal-card-footer .icon { width: 12px; height: 12px; }
.bf-deals-disclaimer { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
@media (max-width: 1100px) {
  .bf-banner-inner { grid-template-columns: minmax(140px, .65fr) minmax(180px, 1fr) auto; gap: 12px; padding-left: 22px; padding-right: 22px; }
  .bf-countdown-block { grid-column: 2; grid-row: 2; justify-items: start; }
  .bf-banner-cta { grid-column: 3; grid-row: 1 / span 2; }
  .bf-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-deal-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .bf-banner-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand cta" "offer offer" "timer timer"; gap: 8px 12px; padding: 10px 14px 11px; }
  .bf-brand-lockup { grid-area: brand; }
  .bf-banner-copy { grid-area: offer; grid-template-columns: auto auto; align-items: baseline; justify-content: start; gap: 2px 8px; }
  .bf-banner-copy strong { font-size: 16px; }
  .bf-banner-subtitle { grid-column: 1 / -1; }
  .bf-date-label { align-self: center; }
  .bf-countdown-block { grid-area: timer; grid-column: auto; grid-row: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .bf-countdown-label { text-align: left; }
  .bf-banner-cta { grid-area: cta; grid-column: auto; grid-row: auto; min-height: 32px; padding: 7px 9px; }
  .bf-deals { margin-top: 18px; padding: 15px 13px; }
  .bf-deals-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .bf-offer-note { min-width: 0; }
  .bf-deal-grid { grid-template-columns: 1fr; gap: 9px; }
  .bf-deal-card:last-child { grid-column: auto; }
  .bf-deal-card { min-height: 0; }
}

.bf-exit-popup { position: fixed; z-index: 50; right: 24px; bottom: 24px; width: min(400px, calc(100vw - 32px)); padding: 17px 18px 15px; border: 1px solid #b9c7c0; border-top: 3px solid var(--saffron); border-radius: 7px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(14, 40, 46, .23); animation: bf-exit-arrive .2s ease-out both; }
@keyframes bf-exit-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.bf-exit-popup-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bf-exit-kicker { color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.bf-exit-close { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; }
.bf-exit-close:hover { background: var(--surface-2); }
.bf-exit-close:focus-visible { outline: 3px solid rgba(214, 148, 48, .34); outline-offset: 2px; }
.bf-exit-popup h2 { margin: 0 0 10px; font-size: 21px; }
.bf-exit-offer { margin-bottom: 9px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.1; }
.bf-exit-copy { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.bf-exit-cta { width: 100%; min-height: 38px; }
.bf-exit-cta .icon { width: 14px; height: 14px; }
.bf-exit-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
@media (max-width: 760px) {
  .bf-exit-popup { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 24px)); padding: 15px; }
}

@media (max-width: 760px) {
  .audit-search { width: 100%; }
  .audit-search input { width: 100%; }
  .workflow-caption { width: 100%; margin: 3px 0 0; }
  .story-badges { justify-items: start; }
  .story-head { align-items: flex-start; flex-direction: column; }
}
