/*
  Faultline Tier 1 Brand System
  Shared static layer for homepage, demo packet, and public Decision Hold renderer.
*/

:root {
  --fl-bg-page: #080a0d;
  --fl-bg-ink: #0b0e12;
  --fl-bg-panel: #151b22;
  --fl-bg-panel-elevated: #19212a;
  --fl-bg-panel-soft: rgba(21, 27, 34, 0.88);
  --fl-text-primary: #ffffff;
  --fl-text-body: #f2eee6;
  --fl-text-muted: #8e96a1;
  --fl-text-disabled: #626b76;
  --fl-border: rgba(255, 255, 255, 0.085);
  --fl-border-strong: rgba(255, 255, 255, 0.145);
  --fl-accent-warning: #e1a13a;
  --fl-accent-hold: #c94a3f;
  --fl-accent-hold-dark: #8e2f2a;
  --fl-danger: #e14434;
  --fl-danger-strong: #ff4438;
  --fl-danger-text: #ff2f24;
  --fl-accent-no-hold: #738a76;
  --fl-accent-info: #6f8794;
  --fl-font-display: "Antonio", "Inter", Impact, sans-serif;
  --fl-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fl-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fl-step-0: 0;
  --fl-step-1: 0.25rem;
  --fl-step-2: 0.5rem;
  --fl-step-3: 0.75rem;
  --fl-step-4: 1rem;
  --fl-step-5: 1.5rem;
  --fl-step-6: 2rem;
  --fl-step-7: 3rem;
  --fl-radius: 0;
  --fl-shadow-panel: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  --fl-container: min(1180px, calc(100vw - 48px));
  --fl-container-narrow: min(920px, calc(100vw - 48px));
  --fl-packet-inset: clamp(2rem, 4vw, 3.5rem);

  /* Legacy aliases used by existing static pages and renderer fallback CSS. */
  --graphite: var(--fl-bg-page);
  --graphite-2: var(--fl-bg-ink);
  --slate: #10151b;
  --panel: var(--fl-bg-panel);
  --panel-2: var(--fl-bg-panel-elevated);
  --line: var(--fl-border);
  --line-strong: var(--fl-border-strong);
  --line-hot: rgba(184, 121, 36, 0.42);
  --white: var(--fl-text-primary);
  --bone: var(--fl-text-body);
  --bone-dim: #cfc7b7;
  --muted: var(--fl-text-muted);
  --muted-2: var(--fl-text-disabled);
  --amber: #c27d25;
  --amber-bright: var(--fl-accent-warning);
  --amber-dim: #6f4414;
  --red: var(--fl-accent-hold);
  --red-hot: var(--fl-danger);
  --green: var(--fl-accent-no-hold);
  --blueprint: #2a3441;
  --page-black: var(--fl-bg-page);
  --ivory: #f5f5f0;
  --ivory-text: var(--fl-text-body);
  --card-charcoal: var(--fl-bg-panel);
  --elevated-charcoal: var(--fl-bg-panel-elevated);
  --divider-border: var(--fl-border);
  --strong-divider: var(--fl-border-strong);
  --muted-text: var(--fl-text-muted);
  --disabled: var(--fl-text-disabled);
  --warning-amber: var(--fl-accent-warning);
  --decision-hold-oxide: var(--fl-accent-hold);
  --deep-critical: var(--fl-accent-hold-dark);
  --accent-hold-text: var(--fl-danger-text);
  --threshold-high: var(--fl-danger-text);
  --validated-green: var(--fl-accent-no-hold);
  --info-slate: var(--fl-accent-info);
  --bg: var(--fl-bg-page);
  --bg-2: var(--fl-bg-ink);
  --surface: var(--fl-bg-panel);
  --surface-2: var(--fl-bg-panel-elevated);
  --ink: var(--fl-text-body);
  --ink-soft: #d9d2c3;
  --ink-muted: var(--fl-text-muted);
  --ink-faint: var(--fl-text-disabled);
  --rule: var(--fl-border);
  --accent-hold: var(--fl-accent-hold);
  --accent-gold: var(--fl-accent-warning);
  --accent-no-hold: var(--fl-accent-no-hold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: var(--fl-radius);
}

html {
  background: var(--fl-bg-page);
  color: var(--fl-text-body);
}

body.fl-page-shell,
.fl-page-shell {
  background:
    radial-gradient(circle at 50% -10%, rgba(42, 52, 65, 0.18), transparent 34rem),
    linear-gradient(180deg, #080a0d 0%, #090c10 52%, #07090c 100%);
  color: var(--fl-text-body);
  font-family: var(--fl-font-body);
  text-rendering: geometricPrecision;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.fl-back-link:focus-visible,
.fl-pattern-card:focus-visible {
  outline: 2px solid var(--fl-accent-warning);
  outline-offset: 2px;
}

.fl-container,
.section-inner {
  width: var(--fl-container);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page.fl-container,
.page-shell {
  width: var(--fl-container-narrow);
  max-width: 100%;
}

.fl-site-header,
nav,
.brand-bar,
.top-bar {
  border-bottom: 1px solid var(--fl-border);
  background: rgba(8, 10, 13, 0.92);
  color: var(--fl-text-body);
}

.brand-word,
.brand-mark,
.meta,
.doc-meta,
.packet-id,
.label,
.mini-label,
.section-label,
.section-kicker,
.trace-label,
.status-label,
.cta-link {
  font-family: var(--fl-font-mono);
}

.brand-word {
  color: var(--fl-text-primary);
  letter-spacing: 0.18em;
}

.label,
.mini-label,
.section-label,
.section-kicker,
.trace-label,
.meta,
.doc-meta,
.packet-id,
.top-line {
  color: var(--fl-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-headline,
.section-heading,
.example-headline,
.packet-card h1,
.packet-card h2,
.packet-card h3,
.doc-header h1,
.doc-header h2,
.doc-header h3,
.fl-heading {
  color: var(--fl-text-primary);
  font-family: var(--fl-font-display);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero-headline,
.section-heading,
.example-headline {
  line-height: 0.98;
}

.hero-headline em,
.example-headline span,
.hl-amber {
  color: var(--fl-accent-warning);
}

.fl-hero,
#hero {
  min-height: min(100vh, 860px);
}

.fl-panel,
.fl-card,
.analysis-rig,
.loop-box,
.naive-doc,
.finding-block,
.artifact-preview-card,
.failure-mode-card,
.failure-mode-card-link,
.contrast-grid,
.cta-card,
.packet-card,
.packet-section,
.decision-card,
.diagnostic-block,
.evidence-block,
.trace-grid,
.cta-strip {
  border: 1px solid var(--fl-border);
  background: var(--fl-bg-panel-soft);
  box-shadow: var(--fl-shadow-panel);
}

.fl-card,
.input-card,
.finding-card,
.metric,
.use-case,
.callout,
.nested-card,
table {
  border-color: var(--fl-border);
  background: rgba(245, 245, 240, 0.018);
}

.fl-cta-primary,
.btn-primary,
.nav-cta,
.cta-link.primary {
  border: 1px solid var(--fl-text-primary);
  background: var(--fl-text-primary);
  color: var(--fl-bg-page);
  font-family: var(--fl-font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fl-cta-secondary,
.btn-secondary,
.nav-link,
.cta-link.secondary,
.artifact-back,
.artifact-mini-nav a,
.fl-back-link {
  border-color: var(--fl-border-strong);
  color: var(--fl-text-muted);
  font-family: var(--fl-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-back,
.artifact-mini-nav a {
  font-size: 10.5px;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-transform: none;
  white-space: nowrap;
}

.artifact-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 208px minmax(0, 920px);
  gap: 18px;
  align-items: start;
}

.artifact-shell .page {
  max-width: 920px;
  margin: 0;
  padding: 40px 32px 70px;
}

.artifact-rail {
  position: sticky;
  top: 82px;
  padding-top: 40px;
  padding-right: 14px;
  border-right: 1px solid rgba(225, 161, 58, 0.16);
}

.artifact-back {
  display: inline-block;
  margin-bottom: 18px;
}

.artifact-back-mobile {
  display: none;
}

.artifact-mini-nav {
  display: grid;
  gap: 9px;
  padding: 14px 0 0;
  border-top: 1px solid var(--fl-border);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

.artifact-mini-nav .label {
  margin: 0 0 6px;
  color: var(--fl-text-disabled);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artifact-mini-nav a {
  color: var(--fl-text-disabled);
  overflow-wrap: normal;
}

.artifact-rail {
  background: transparent;
  box-shadow: none;
}

section[id],
.safer-move[id] {
  scroll-margin-top: 80px;
}

.fl-cta-primary:hover,
.btn-primary:hover,
.nav-cta:hover,
.cta-link.primary:hover,
.fl-cta-secondary:hover,
.btn-secondary:hover,
.cta-link.secondary:hover,
.fl-back-link:hover {
  border-color: var(--fl-accent-warning);
  color: var(--fl-text-primary);
}

.fl-cta-primary:hover,
.btn-primary:hover,
.nav-cta:hover,
.cta-link.primary:hover {
  color: var(--fl-bg-page);
}

.btn-secondary:hover,
.cta-link.secondary:hover {
  color: var(--fl-text-primary);
  background: rgba(217, 119, 6, 0.08);
}

.fl-status-badge,
.status-hold,
.verdict-badge,
.naive-status,
.submitted-meta-value.is-hold {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.fl-status-badge--hold,
.status-hold,
.verdict-badge,
.submitted-meta-value.is-hold {
  border: 1px solid var(--fl-accent-hold);
  background: var(--fl-accent-hold);
  color: var(--fl-text-primary);
}

.fl-status-badge--no-hold {
  border: 1px solid var(--fl-accent-no-hold);
  background: var(--fl-accent-no-hold);
  color: var(--fl-bg-page);
}

.fl-status-badge--pending {
  border: 1px solid var(--fl-border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--fl-text-muted);
}

.fl-decision-callout,
.verdict,
.risk-callout,
.memo-verdict-card {
  border: 1px solid color-mix(in srgb, var(--fl-accent-hold) 72%, transparent);
  border-left: 4px solid var(--fl-accent-hold);
  background: linear-gradient(135deg, rgba(201, 74, 63, 0.16), rgba(21, 27, 34, 0.88) 64%);
}

.fl-decision-callout--no-hold {
  border-color: color-mix(in srgb, var(--fl-accent-no-hold) 72%, transparent);
  border-left-color: var(--fl-accent-no-hold);
  background: linear-gradient(135deg, rgba(115, 138, 118, 0.16), rgba(21, 27, 34, 0.88) 64%);
}

.fl-diagnostic-block,
.diagnostic-block,
.callout,
.finding-card {
  border-left: 2px solid var(--fl-accent-warning);
}

.fl-evidence-block,
.evidence-block,
.artifact-preview-card {
  border-top: 1px solid var(--fl-border-strong);
}

.fl-trace-block,
.trace-grid,
.trace-note {
  border-color: color-mix(in srgb, var(--fl-accent-info) 55%, var(--fl-border));
}

th,
td,
.trace-row,
.field-row,
.failure-list li,
.sequence-list li {
  border-color: var(--fl-border);
}

th,
.trace-label,
dt {
  color: var(--fl-text-muted);
}

td,
.trace-value,
dd,
.section-body {
  color: var(--fl-text-body);
}

.fl-back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  gap: var(--fl-step-2);
  margin-bottom: var(--fl-step-5);
  text-decoration: none;
}

.fl-public-safe-label {
  display: grid;
  gap: var(--fl-step-2);
  margin: var(--fl-step-4) 0 var(--fl-step-5);
  padding: var(--fl-step-4) var(--fl-step-5);
  border: 1px solid var(--fl-border);
  border-left: 2px solid var(--fl-accent-info);
  background: rgba(111, 135, 148, 0.07);
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.fl-public-safe-label strong {
  color: var(--fl-text-primary);
  font-family: var(--fl-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fl-library-page {
  margin: 0 auto;
  padding: 40px 32px 70px;
}

.fl-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fl-step-4);
}

.fl-pattern-card {
  min-height: 184px;
  display: grid;
  gap: var(--fl-step-3);
  align-content: start;
  padding: var(--fl-step-5);
  border: 1px solid var(--fl-border);
  background: linear-gradient(135deg, rgba(21, 27, 34, 0.92), rgba(255, 255, 255, 0.018));
  color: var(--fl-text-body);
  text-decoration: none;
}

.fl-pattern-card[href]:hover {
  border-color: rgba(225, 161, 58, 0.58);
  transform: translateY(-1px);
}

.fl-pattern-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fl-step-2);
  align-items: center;
  justify-content: space-between;
}

.fl-pattern-code,
.fl-pattern-cta {
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fl-pattern-category {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(225, 161, 58, 0.24);
  padding: 3px 6px;
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.fl-pattern-title {
  margin: 0;
  color: var(--fl-text-primary);
  font-size: 19px;
  line-height: 1.12;
}

.fl-pattern-summary {
  margin: 0;
  max-width: 62ch;
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.fl-library-intro {
  max-width: 72ch;
  margin: -0.35rem 0 var(--fl-step-5);
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.fl-artifact-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fl-artifact-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.032);
  color: var(--fl-text-muted);
  font-family: var(--fl-font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.15;
  text-transform: uppercase;
}

.fl-artifact-status--plan {
  border-color: rgba(225, 161, 58, 0.35);
  background: rgba(225, 161, 58, 0.07);
  color: var(--fl-accent-warning);
}

.fl-home .fl-artifact-story {
  padding: 58px 0 12px;
}

.fl-home .fl-artifact-story .section-inner {
  border: 1px solid var(--fl-border-strong);
  background:
    linear-gradient(135deg, rgba(194, 125, 37, 0.075), rgba(255, 255, 255, 0.014)),
    rgba(8, 10, 13, 0.38);
  box-shadow: var(--fl-shadow-panel);
  padding: clamp(22px, 3vw, 32px);
}

.fl-artifact-story__intro {
  max-width: 840px;
}

.fl-artifact-story__intro .section-heading {
  margin: 0.35rem 0 0.75rem;
}

.fl-artifact-story__intro p:not(.label),
.fl-artifact-story__note {
  max-width: 78ch;
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.62;
}

.fl-artifact-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: var(--fl-step-5) 0;
}

.fl-artifact-flow__item {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(225, 161, 58, 0.22);
  background: rgba(21, 27, 34, 0.76);
  color: var(--fl-text-primary);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fl-artifact-flow__item:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 1;
  width: 10px;
  transform: translateY(-50%);
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 12px;
  line-height: 1;
}

.fl-artifact-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--fl-step-4);
}

.fl-artifact-tile {
  min-width: 0;
  min-height: 190px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  background: linear-gradient(135deg, rgba(21, 27, 34, 0.88), rgba(255, 255, 255, 0.018));
  color: var(--fl-text-body);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.fl-artifact-tile:hover {
  border-color: rgba(225, 161, 58, 0.56);
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(21, 27, 34, 0.96), rgba(194, 125, 37, 0.04));
}

.fl-artifact-tile__kicker,
.fl-artifact-tile__cta {
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.fl-artifact-tile h3 {
  margin: 0;
  color: var(--fl-text-primary);
  font-size: 19px;
  line-height: 1.12;
}

.fl-artifact-tile p {
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 13px;
  line-height: 1.52;
}

.fl-artifact-tile__cta {
  align-self: end;
  margin-top: 4px;
}

.fl-causal-diagram {
  margin: var(--fl-step-6) 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--fl-border-strong);
  background: linear-gradient(135deg, rgba(21, 27, 34, 0.92), rgba(8, 10, 13, 0.72));
  box-shadow: var(--fl-shadow-panel);
  overflow: hidden;
}

.fl-causal-diagram__header {
  max-width: 760px;
  margin-bottom: var(--fl-step-5);
}

.fl-causal-diagram__title {
  margin: 0.3rem 0 0.65rem;
  color: var(--fl-text-primary);
  font-family: var(--fl-font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fl-causal-diagram__body {
  max-width: 70ch;
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.fl-causal-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.fl-causal-step {
  min-width: 0;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--fl-border);
  background: rgba(8, 10, 13, 0.38);
}

.fl-causal-step__index {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 161, 58, 0.42);
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fl-causal-step__title {
  color: var(--fl-text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.22;
}

.fl-causal-step__body {
  color: var(--fl-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fl-causal-connector {
  position: relative;
}

.fl-causal-connector::after {
  content: "\2192";
  position: absolute;
  top: calc(50% - 11px);
  right: -2px;
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 16px;
  opacity: 0.82;
}

.fl-causal-track .fl-causal-step:last-child .fl-causal-connector::after {
  content: "";
}

.fl-causal-risk,
.fl-causal-outcome {
  margin-top: var(--fl-step-4);
  padding: 14px 16px;
  border: 1px solid var(--fl-border);
  color: var(--fl-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fl-causal-risk {
  border-left: 3px solid var(--fl-accent-hold);
  background: rgba(201, 74, 63, 0.07);
}

.fl-causal-outcome {
  border-left: 3px solid var(--fl-accent-no-hold);
  background: rgba(115, 138, 118, 0.075);
}

.fl-causal-risk strong,
.fl-causal-outcome strong {
  color: var(--fl-text-primary);
}

.fl-source-link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fl-step-3);
  align-items: center;
  justify-content: space-between;
  margin: var(--fl-step-5) 0;
  padding: 14px 16px;
  border: 1px solid rgba(225, 161, 58, 0.28);
  background: rgba(194, 125, 37, 0.055);
}

.fl-source-link-strip p {
  max-width: 68ch;
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fl-source-link-strip a,
.fl-inline-source-link {
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.fl-source-link-strip a:hover,
.fl-inline-source-link:hover {
  color: var(--fl-text-primary);
}

.fl-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fl-step-4);
}

.fl-source-card {
  min-width: 0;
  padding: var(--fl-step-5);
  border: 1px solid var(--fl-border);
  background: rgba(17, 23, 30, 0.86);
  box-shadow: var(--fl-shadow-panel);
}

.fl-source-card h2,
.fl-source-card h3 {
  margin: 0.35rem 0 0.55rem;
  color: var(--fl-text-primary);
  font-size: 18px;
  line-height: 1.2;
}

.fl-source-card p {
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.fl-source-note {
  margin: var(--fl-step-5) 0;
  padding: var(--fl-step-5);
  border: 1px solid var(--fl-border-strong);
  border-left: 3px solid var(--fl-accent-warning);
  background: rgba(8, 10, 13, 0.36);
}

.fl-source-note h2,
.fl-source-note h3 {
  margin: 0 0 0.55rem;
  color: var(--fl-text-primary);
  font-size: 18px;
  line-height: 1.2;
}

.fl-source-note p {
  margin: 0;
  color: var(--fl-text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.fl-sample-cta,
.fl-bottom-cta {
  border: 1px solid var(--fl-border-strong);
  background: rgba(21, 27, 34, 0.86);
}

section.fl-sample-cta {
  border: 0;
  border-top: 1px solid var(--fl-border);
  background: transparent;
  box-shadow: none;
}

.fl-bottom-cta {
  padding: var(--fl-step-6);
}

.fl-section-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--fl-step-2);
  align-items: baseline;
  color: var(--fl-text-muted);
}

.fl-section-number {
  color: var(--fl-accent-warning);
}

.fl-section-title {
  color: var(--fl-text-muted);
}

.fl-decision-packet .packet-card,
.fl-decision-packet,
.fl-rendered-packet .packet-section {
  max-width: 100%;
  padding: clamp(24px, 4vw, 44px);
  overflow-wrap: break-word;
}

.fl-decision-packet .packet-section {
  max-width: 100%;
  padding: clamp(28px, 3.4vw, 40px) var(--fl-packet-inset);
}

.fl-decision-packet .section-body,
.fl-decision-packet .exception-list {
  min-width: 0;
  font-size: 15px;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.fl-decision-packet .section-body p,
.fl-rendered-packet .section-body p {
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.56;
}

.fl-decision-packet .callout {
  min-width: 0;
  max-width: 100%;
  gap: var(--fl-step-2);
  padding: 20px 22px;
  overflow-wrap: anywhere;
}

.fl-decision-packet .callout p,
.fl-decision-packet .evidence-block p {
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.55;
}

.fl-decision-packet .callout strong {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.fl-decision-packet .failure-list li,
.fl-decision-packet .sequence-list li,
.fl-sequence-row {
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--fl-step-6);
  padding: 1.15rem var(--fl-step-5);
}

.fl-decision-packet .packet-header,
.fl-decision-packet .packet-meta-row,
.fl-decision-packet .packet-verdict-row,
.fl-decision-packet .scenario-summary-block,
.fl-decision-packet .evidence-grid,
.fl-decision-packet .evidence-block,
.fl-decision-packet .trace-grid,
.fl-decision-packet .trace-row,
.fl-decision-packet .table-wrap,
.fl-rendered-packet .packet-section,
.fl-rendered-packet .table-wrap {
  min-width: 0;
  max-width: 100%;
}

.fl-decision-packet .table-wrap,
.fl-rendered-packet .table-wrap {
  overflow-x: visible;
}

.fl-static-packet .brand-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
}

.fl-static-packet .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.fl-static-packet .brand-square {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(194, 125, 37, 0.76);
  box-shadow: inset 0 0 0 1px rgba(194, 125, 37, 0.16);
}

.fl-static-packet .brand-word {
  color: var(--fl-text-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.fl-static-packet .scenario-context,
.fl-static-packet .decision-card,
.fl-static-packet .diagnostic-block,
.fl-static-packet .asymmetry-box,
.fl-static-packet .safer-move,
.fl-static-packet .evidence-status,
.fl-static-packet details,
.fl-static-packet .doc-next {
  border: 1px solid var(--fl-border);
  background: rgba(17, 23, 30, 0.86);
  box-shadow: var(--fl-shadow-panel);
}

.fl-static-packet .scenario-context {
  margin-bottom: 2.8rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(194, 125, 37, 0.7);
  background: rgba(21, 28, 36, 0.72);
}

.fl-static-packet .scenario-context p,
.fl-static-packet p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

.fl-static-packet .scenario-context p {
  color: var(--fl-text-muted);
  font-size: 15px;
}

.fl-static-packet p:last-child {
  margin-bottom: 0;
}

.fl-static-packet .doc-header {
  margin-bottom: 2.35rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid var(--fl-border);
}

.fl-static-packet .doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.fl-static-packet .doc-date {
  margin-left: auto;
  color: var(--fl-text-disabled);
  font-family: var(--fl-font-mono);
  font-size: 10px;
}

.fl-static-packet .doc-header h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.08;
}

.fl-static-packet .subtitle {
  color: var(--fl-text-muted);
  font-size: 14px;
}

.fl-static-packet .verdict {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2.25rem;
  padding: 1.3rem 1.45rem;
  box-shadow: 0 22px 70px rgba(201, 74, 63, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.fl-static-packet .verdict--delay {
  border-color: rgba(225, 161, 58, 0.58);
  border-left-color: var(--fl-accent-warning);
  background: linear-gradient(135deg, rgba(194, 125, 37, 0.16), rgba(21, 27, 34, 0.88) 64%);
}

.fl-static-packet .verdict-text {
  color: var(--fl-text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.38;
}

.fl-static-packet .fl-status-badge--delay {
  border: 1px solid var(--fl-accent-warning);
  background: var(--fl-accent-warning);
  color: var(--fl-bg-page);
}

.fl-static-packet .decision-card {
  margin-bottom: 2.45rem;
  padding: 1.45rem;
}

.fl-static-packet .card-label,
.fl-static-packet .scenario-context .label,
.fl-static-packet .section-label,
.fl-static-packet .diagnostic-header .label,
.fl-static-packet .safer-move .label,
.fl-static-packet .asym-label,
.fl-static-packet .doc-type,
.fl-static-packet .doc-id {
  color: var(--fl-text-disabled);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fl-static-packet .card-label,
.fl-static-packet .scenario-context .label,
.fl-static-packet .section-label {
  color: var(--fl-accent-warning);
}

.fl-static-packet .section-label {
  margin-bottom: 0.75rem;
}

.fl-static-packet .card-row {
  display: flex;
  gap: 1.15rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--fl-border);
  color: var(--fl-text-body);
  font-size: 14px;
  line-height: 1.55;
}

.fl-static-packet .card-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fl-static-packet .card-field {
  flex: 0 0 140px;
  color: var(--fl-text-disabled);
  font-family: var(--fl-font-mono);
  font-size: 12px;
}

.fl-static-packet .failure-mode-name {
  color: var(--fl-text-body);
  font-weight: 700;
}

.fl-static-packet .failure-mode-alias {
  margin-top: 2px;
  color: var(--fl-text-muted);
  font-size: 12px;
}

.fl-static-packet section {
  margin-bottom: 2.55rem;
}

.fl-static-packet .diagnostic-block {
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.fl-static-packet .diagnostic-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fl-border);
  background: rgba(25, 33, 42, 0.86);
}

.fl-static-packet .diagnostic-header .name {
  color: var(--fl-text-primary);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.fl-static-packet .diagnostic-steps {
  padding: 1.35rem 1.5rem;
}

.fl-static-packet .diagnostic-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: var(--fl-text-body);
  font-size: 14.5px;
  line-height: 1.65;
}

.fl-static-packet .diagnostic-step:last-child {
  margin-bottom: 0;
}

.fl-static-packet .step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  border: 1px solid rgba(194, 125, 37, 0.45);
  border-radius: 999px;
  background: rgba(194, 125, 37, 0.2);
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 600;
}

.fl-static-packet .step-text em {
  display: block;
  margin-top: 4px;
  color: var(--fl-text-muted);
  font-size: 13.5px;
  font-style: normal;
}

.fl-static-packet .threshold-note {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid rgba(194, 125, 37, 0.75);
  background: rgba(194, 125, 37, 0.105);
  color: var(--fl-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fl-static-packet .threshold-table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.fl-static-packet .threshold-table th,
.fl-static-packet .threshold-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--fl-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.fl-static-packet .threshold-table th {
  background: rgba(25, 33, 42, 0.82);
  color: var(--fl-text-disabled);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fl-static-packet .threshold-table tr:last-child td {
  border-bottom: 0;
}

.fl-static-packet .threshold-range {
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 12px;
  font-weight: 700;
}

.fl-static-packet .threshold-range.t-low {
  color: var(--fl-accent-no-hold);
}

.fl-static-packet .callout {
  margin-bottom: 1rem;
  padding: 0.85rem 1.15rem;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.018);
  color: var(--fl-text-body);
  font-size: 14.5px;
  line-height: 1.62;
}

.fl-static-packet .callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fl-static-packet .asymmetry-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--fl-border);
}

.fl-static-packet .asym-side {
  padding: 1.05rem 1.25rem;
  background: rgba(17, 23, 30, 0.92);
}

.fl-static-packet .asym-cost {
  margin-bottom: 0.45rem;
  color: var(--fl-text-body);
  font-size: 13.5px;
  line-height: 1.55;
}

.fl-static-packet .asym-severity {
  font-family: var(--fl-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fl-static-packet .asym-low {
  color: var(--fl-accent-no-hold);
}

.fl-static-packet .safer-move {
  padding: 1.3rem 1.5rem;
  border-color: rgba(115, 138, 118, 0.42);
  background: linear-gradient(135deg, rgba(115, 138, 118, 0.16), rgba(115, 138, 118, 0.07));
}

.fl-static-packet .safer-move .label {
  color: #9ac09d;
}

.fl-static-packet .change-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-static-packet .change-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--fl-border);
  color: var(--fl-text-body);
  font-size: 14.5px;
  line-height: 1.55;
}

.fl-static-packet .change-list li:last-child {
  border-bottom: 0;
}

.fl-static-packet .change-list li::before {
  content: "\2192";
  flex: 0 0 auto;
  color: var(--fl-accent-warning);
}

.fl-static-packet details {
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.fl-static-packet summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  color: var(--fl-text-body);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
}

.fl-static-packet summary::-webkit-details-marker {
  display: none;
}

.fl-static-packet summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--fl-accent-warning);
  font-size: 18px;
  font-weight: 300;
}

.fl-static-packet details[open] summary {
  border-bottom: 1px solid var(--fl-border);
  background: rgba(25, 33, 42, 0.56);
}

.fl-static-packet details[open] summary::after {
  content: "-";
}

.fl-static-packet .details-body {
  padding: 1.25rem 1.5rem;
}

.fl-static-packet .evidence-status {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--fl-text-muted);
  font-size: 12px;
}

.fl-static-packet .evidence-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--fl-accent-warning);
}

.fl-static-packet .doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fl-border);
  color: var(--fl-text-disabled);
  font-family: var(--fl-font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.fl-static-packet .doc-next {
  margin-top: 2.1rem;
  padding: 1rem 1.1rem;
  border-color: rgba(194, 125, 37, 0.34);
  background: rgba(194, 125, 37, 0.08);
  box-shadow: none;
}

.fl-static-packet .doc-next p {
  color: var(--fl-text-body);
  font-size: 14px;
  line-height: 1.55;
}

.fl-static-packet .doc-next .label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fl-static-packet .doc-next a {
  display: inline-block;
  margin-top: 0.5rem;
  border-bottom: 1px solid rgba(194, 125, 37, 0.42);
  color: var(--fl-accent-warning);
  font-family: var(--fl-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.fl-decision-packet table,
.fl-rendered-packet table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.fl-decision-packet th,
.fl-decision-packet td,
.fl-rendered-packet th,
.fl-rendered-packet td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.fl-decision-packet pre,
.fl-rendered-packet pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fl-decision-packet .idx {
  padding-left: var(--fl-step-2);
}

.fl-fault-divider,
.fault-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  margin: var(--fl-step-6) 0;
  color: var(--fl-accent-warning);
}

.fl-fault-divider span,
.fault-divider span {
  display: block;
  width: min(34vw, 260px);
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

.fl-fault-divider i,
.fault-divider i {
  display: block;
  width: 7px;
  height: 34px;
  border-left: 2px solid currentColor;
  transform: skewX(-18deg);
}

.fl-footer,
footer,
.footer {
  border-top: 1px solid var(--fl-border);
  color: var(--fl-text-muted);
  font-family: var(--fl-font-mono);
}

.section-kicker,
.section-label {
  color: var(--fl-text-muted);
}

.idx,
.threshold-band,
.metric-value,
.signal-box .value,
.hl-red {
  color: var(--fl-accent-warning);
}

.hl-red,
.status-unverified {
  color: var(--fl-danger);
}

.t-high,
.t-stop,
.asym-high {
  color: var(--fl-danger-strong);
}

.verdict .verdict-text {
  color: var(--fl-text-primary);
}

.threshold-range.t-high,
.threshold-range.t-stop,
.asym-severity.asym-high {
  color: var(--fl-danger-strong);
}

.threshold-table .threshold-range.t-high,
.threshold-table .threshold-range.t-stop,
.asymmetry-box .asym-severity.asym-high {
  display: inline-block;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fl-danger-text);
  font-weight: 800;
  opacity: 1;
}

.threshold-table .hl-red,
.diagnostic-block .hl-red,
.decision-card .hl-red,
.asymmetry-box .hl-red {
  color: var(--fl-accent-hold) !important;
  font-weight: 800;
}

.hl-green,
.status-validated,
.status-no-hold {
  color: var(--fl-accent-no-hold);
}

@media (max-width: 760px) {
  :root {
    --fl-container: min(100% - 32px, 1180px);
    --fl-container-narrow: min(100% - 32px, 920px);
    --fl-packet-inset: 1.15rem;
  }

  .artifact-shell {
    display: block;
    width: auto;
  }

  .artifact-shell .page {
    padding: 32px 18px 56px;
  }

  .artifact-rail {
    display: none;
  }

  .artifact-back-mobile {
    display: inline-block;
    margin-bottom: 18px;
  }

  .fl-causal-track {
    grid-template-columns: 1fr;
  }

  .fl-causal-connector::after {
    top: auto;
    right: auto;
    bottom: -19px;
    left: 4px;
    transform: rotate(90deg);
  }

  .fl-causal-track .fl-causal-step {
    margin-bottom: 12px;
  }

  .fl-source-link-strip {
    display: grid;
  }

  .fl-source-link-strip a {
    white-space: normal;
  }

  .fl-source-grid {
    grid-template-columns: 1fr;
  }

  .fl-library-page {
    padding: 32px 18px 56px;
  }

  .fl-pattern-grid {
    grid-template-columns: 1fr;
  }

  .fl-artifact-flow,
  .fl-artifact-tile-grid {
    grid-template-columns: 1fr;
  }

  .fl-artifact-flow__item:not(:last-child)::after {
    content: none;
  }

  .fl-static-packet .card-row,
  .fl-static-packet .asymmetry-box {
    grid-template-columns: 1fr;
  }

  .fl-static-packet .card-row {
    display: block;
  }

  .fl-static-packet .card-field {
    width: auto;
    margin-bottom: 0.3rem;
  }

  .fl-static-packet .doc-date {
    margin-left: 0;
  }

  .fl-static-packet .threshold-table {
    font-size: 13px;
  }

  .fl-static-packet .threshold-table th,
  .fl-static-packet .threshold-table td {
    padding: 0.65rem 0.55rem;
  }

  .fl-fault-divider span,
  .fault-divider span {
    width: 28vw;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body.fl-static-packet,
  body.fl-rendered-packet,
  body:has(.artifact-shell) {
    --fl-bg-page: #ffffff;
    --fl-bg-ink: #ffffff;
    --fl-bg-panel: #ffffff;
    --fl-bg-panel-elevated: #ffffff;
    --fl-bg-panel-soft: #ffffff;
    --fl-text-primary: #111418;
    --fl-text-body: #1f2429;
    --fl-text-muted: #555f6a;
    --fl-text-disabled: #646d77;
    --fl-border: #d5d9de;
    --fl-border-strong: #9aa3ad;
    --fl-accent-warning: #4d535a;
    --fl-accent-hold: #111418;
    --fl-accent-no-hold: #555f6a;
    --fl-accent-info: #555f6a;
    --bg: #ffffff;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --ink: #1f2429;
    --ink-soft: #1f2429;
    --ink-muted: #555f6a;
    --ink-faint: #646d77;
    --rule: #d5d9de;
    --rule-strong: #9aa3ad;
    background: #ffffff !important;
    color: #1f2429 !important;
    font-size: 10.5pt;
    line-height: 1.45;
    print-color-adjust: economy;
    -webkit-print-color-adjust: economy;
  }

  body.fl-static-packet .brand-bar,
  body.fl-rendered-packet .brand-bar,
  body:has(.artifact-shell) > .brand-bar,
  .artifact-shell .artifact-rail,
  .artifact-shell .artifact-back,
  .artifact-shell .artifact-back-mobile,
  body.fl-static-packet .artifact-back,
  .fl-rendered-packet .fl-back-link,
  .fl-rendered-packet .fl-bottom-cta,
  .fl-rendered-packet .cta-strip,
  .artifact-shell .doc-next,
  .fl-static-packet .doc-next,
  .fl-static-packet .fl-source-link-strip,
  .fl-static-packet .fl-pattern-cta {
    display: none !important;
  }

  .artifact-shell,
  body.fl-static-packet .page,
  body.fl-rendered-packet .page,
  .artifact-shell .page,
  .fl-library-page,
  .fl-proof-page .page {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .artifact-shell {
    display: block !important;
  }

  body.fl-static-packet :is(.scenario-context, .decision-card, .diagnostic-block, .asymmetry-box, .safer-move, .evidence-status, details, .doc-next, .fl-source-card, .fl-source-note, .fl-public-safe-label, .fl-pattern-card, .callout, .threshold-note),
  body.fl-rendered-packet :is(.verdict, .packet-section, .fl-card, .fl-public-safe-label),
  .artifact-shell :is(.scenario-context, .decision-card, .diagnostic-block, .asymmetry-box, .safer-move, .evidence-status, details, .doc-next, .callout, .threshold-note) {
    border-color: #d5d9de !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #1f2429 !important;
  }

  body.fl-static-packet :is(.doc-header, section),
  body.fl-rendered-packet :is(.doc-header, section),
  .artifact-shell :is(.doc-header, section) {
    margin-bottom: 18pt !important;
  }

  body.fl-static-packet .doc-header,
  body.fl-rendered-packet .doc-header,
  .artifact-shell .doc-header {
    padding-bottom: 12pt !important;
    border-bottom: 1pt solid #9aa3ad !important;
  }

  body.fl-static-packet :is(h1, h2, h3, .doc-header h1, .verdict-text, .failure-mode-name, .diagnostic-header .name, .card-value, .step-text, .threshold-action, .asym-cost, .details-body, .section-body, p, li, td, dd),
  body.fl-rendered-packet :is(h1, h2, h3, .doc-header h1, .verdict p, .section-body, p, li, td, dd),
  .artifact-shell :is(h1, h2, h3, .doc-header h1, .verdict-text, .failure-mode-name, .diagnostic-header .name, .card-value, .step-text, .threshold-action, .asym-cost, .details-body, p, li, td, dd) {
    color: #1f2429 !important;
  }

  body.fl-static-packet :is(.label, .mini-label, .section-label, .card-label, .doc-type, .doc-id, .doc-date, .subtitle, .failure-mode-alias, .card-field, .diagnostic-header .label, .asym-label, .evidence-status, .fl-pattern-code, .fl-pattern-category, .fl-pattern-summary, .fl-source-card p, .fl-source-note p),
  body.fl-rendered-packet :is(.doc-meta, .section-label, .fl-section-kicker, dt, .fl-public-safe-label),
  .artifact-shell :is(.label, .mini-label, .section-label, .card-label, .doc-type, .doc-id, .doc-date, .subtitle, .failure-mode-alias, .card-field, .diagnostic-header .label, .asym-label, .evidence-status) {
    color: #555f6a !important;
  }

  body.fl-static-packet :is(.verdict, .fl-decision-callout),
  body.fl-rendered-packet :is(.verdict, .fl-decision-callout),
  .artifact-shell :is(.verdict, .fl-decision-callout) {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1.5pt solid #111418 !important;
    border-left: 5pt solid #111418 !important;
    background: #ffffff !important;
  }

  body.fl-static-packet .fl-decision-callout--no-hold,
  body.fl-rendered-packet .fl-decision-callout--no-hold {
    border-left-color: #555f6a !important;
  }

  body.fl-static-packet :is(.fl-status-badge, .status-hold, .verdict-badge, .naive-status),
  body.fl-rendered-packet :is(.fl-status-badge, .status-hold, .verdict-badge),
  .artifact-shell :is(.fl-status-badge, .status-hold, .verdict-badge) {
    border: 1.5pt solid #111418 !important;
    background: #ffffff !important;
    color: #111418 !important;
    box-shadow: none !important;
  }

  body.fl-static-packet .fl-status-badge--no-hold,
  body.fl-rendered-packet .fl-status-badge--no-hold {
    border-style: double !important;
    border-color: #555f6a !important;
  }

  body.fl-static-packet :is(.decision-card, .diagnostic-block, .asymmetry-box, .safer-move, .evidence-status, .fl-public-safe-label, .fl-source-card, .fl-source-note, .fl-pattern-card, .callout, .threshold-note),
  body.fl-rendered-packet :is(.packet-section, .fl-public-safe-label, .field-row, .nested-card),
  .artifact-shell :is(.decision-card, .diagnostic-block, .asymmetry-box, .safer-move, .evidence-status, .callout, .threshold-note, .card-row, .diagnostic-step, .change-list li) {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.fl-static-packet :is(.diagnostic-header, .asym-side),
  .artifact-shell :is(.diagnostic-header, .asym-side) {
    background: #f6f7f8 !important;
  }

  body.fl-static-packet details > .details-body,
  .artifact-shell details > .details-body {
    display: block !important;
    border-top: 1pt solid #d5d9de !important;
  }

  body.fl-static-packet summary,
  .artifact-shell summary {
    break-after: avoid;
    border-bottom: 0 !important;
    background: #f6f7f8 !important;
    color: #1f2429 !important;
  }

  body.fl-static-packet summary::after,
  .artifact-shell summary::after {
    content: "" !important;
    display: none !important;
  }

  body.fl-static-packet :is(.threshold-table, table),
  body.fl-rendered-packet table,
  .artifact-shell :is(.threshold-table, table) {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 9.5pt !important;
    overflow: visible !important;
  }

  body.fl-static-packet :is(th, td),
  body.fl-rendered-packet :is(th, td),
  .artifact-shell :is(th, td) {
    padding: 6pt !important;
    border: 1pt solid #d5d9de !important;
    background: #ffffff !important;
    color: #1f2429 !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
  }

  body.fl-static-packet th,
  body.fl-rendered-packet th,
  .artifact-shell th {
    background: #f6f7f8 !important;
    color: #555f6a !important;
  }

  body.fl-static-packet thead,
  body.fl-rendered-packet thead,
  .artifact-shell thead {
    display: table-header-group;
  }

  body.fl-static-packet tr,
  body.fl-rendered-packet tr,
  .artifact-shell tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.fl-static-packet :is(.threshold-range, .t-low, .t-mid, .t-high, .t-stop, .asym-low, .asym-high, .hl-red, .hl-green),
  .artifact-shell :is(.threshold-range, .t-low, .t-mid, .t-high, .t-stop, .asym-low, .asym-high, .hl-red, .hl-green) {
    color: #111418 !important;
    font-weight: 800 !important;
    text-decoration: underline;
    text-underline-offset: 2pt;
    white-space: normal !important;
  }

  body.fl-static-packet :is(a, p, li, td, dd, .card-value, .step-text, .details-body),
  body.fl-rendered-packet :is(a, p, li, td, dd, .section-body),
  .artifact-shell :is(a, p, li, td, dd, .card-value, .step-text, .details-body) {
    overflow-wrap: anywhere !important;
    word-break: normal;
    hyphens: auto;
  }

  body.fl-static-packet :is(.fl-pattern-grid, .fl-source-grid),
  .fl-proof-page .fl-source-grid,
  .fl-library-page .fl-pattern-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10pt !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
