:root {
  color-scheme: light;
  --paper: #fffdf9;
  --surface: #ffffff;
  --surface-warm: #fff9ef;
  --surface-red: #fff6f3;
  --ink: #2b1712;
  --ink-soft: #564944;
  --muted: #776d68;
  --faint: #9a9691;
  --line: #e9ded3;
  --line-strong: #ddc9b7;
  --gold: #f8c20a;
  --orange: #f59b00;
  --passion-red: #e94829;
  --china-red: #c8152d;
  --missing: #8c8b88;
  --header-height: 72px;
  --footer-height: 34px;
  --page-gutter: clamp(20px, 3.2vw, 52px);
  --frame-width: 1540px;
  --radius-panel: 10px;
  --radius-control: 8px;
  --font-ui: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-numeric: "DIN Alternate", "DIN 2014", "Arial Narrow", "Roboto Condensed", var(--font-ui);
  --shadow-warm: 0 12px 34px rgba(146, 74, 17, 0.07);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% -15%, rgba(248, 194, 10, 0.13), transparent 30%),
    linear-gradient(180deg, #fff 0, var(--paper) 28%, #fff 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(245, 155, 0, 0.38);
  outline-offset: 3px;
}

svg { display: block; }

.dashboard-app {
  min-height: 100dvh;
  padding-bottom: var(--footer-height);
}

.report-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
}

.report-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0 3%, var(--gold) 15%, var(--orange) 42%, var(--passion-red) 68%, transparent 97%);
  content: "";
  opacity: 0.48;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-lockup img {
  width: 166px;
  height: auto;
  flex: 0 0 auto;
}

.brand-lockup > span {
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}

.brand-lockup strong {
  overflow: hidden;
  color: #8f4d00;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-tabs {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.view-tabs button {
  position: relative;
  min-width: 86px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}

.view-tabs button::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--china-red));
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.view-tabs button:hover { color: var(--ink); }
.view-tabs button[aria-selected="true"] { color: var(--ink); }
.view-tabs button[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.freshness {
  overflow: hidden;
  max-width: 230px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-action, .refresh-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-action {
  width: 38px;
  height: 38px;
  padding: 0;
}

.refresh-action {
  min-height: 38px;
  gap: 7px;
  padding: 0 13px;
  border-color: var(--orange);
  background: var(--surface-warm);
  color: #8a4900;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.icon-action svg, .refresh-action svg { width: 17px; height: 17px; stroke-width: 1.8; }
.icon-action:hover, .refresh-action:hover { border-color: var(--orange); background: #fff7e6; }
.icon-action:active, .refresh-action:active { transform: translateY(1px); }
.refresh-action:disabled { cursor: wait; opacity: 0.55; }
.refresh-action.is-loading svg { animation: spin 0.8s linear infinite; }

.error-banner {
  position: fixed;
  z-index: 70;
  top: calc(var(--header-height) + 12px);
  right: var(--page-gutter);
  display: flex;
  max-width: min(520px, calc(100vw - 32px));
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #f0b5ad;
  border-radius: var(--radius-control);
  background: #fff8f6;
  box-shadow: var(--shadow-warm);
  color: #8f1b2e;
  font-size: 12px;
}

.error-banner[hidden] { display: none; }

.error-banner svg { width: 18px; height: 18px; flex: 0 0 auto; }
.error-banner span { flex: 1; }
.error-banner button { border: 0; background: transparent; color: var(--china-red); cursor: pointer; font-weight: 700; }

.preview-notice {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 7px var(--page-gutter);
  border-bottom: 1px solid #f0d7b8;
  background: #fff8e9;
  color: var(--ink-soft);
  font-size: 11px;
}
.preview-notice[hidden] { display: none; }
.preview-notice > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--orange); }
.preview-notice > span { flex: 1; }
.preview-notice > a { display: inline-flex; align-items: center; gap: 5px; color: #955500; font-weight: 700; text-decoration: none; white-space: nowrap; }
.preview-notice > a svg { width: 13px; height: 13px; }

.dashboard-stage { min-height: calc(100dvh - var(--header-height) - var(--footer-height)); }
.dashboard-view[hidden] { display: none; }

.dashboard-view {
  min-height: calc(100dvh - var(--header-height) - var(--footer-height));
  padding: 20px var(--page-gutter) 16px;
}

.dashboard-view.is-active .view-frame { animation: view-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }

.view-frame {
  width: min(100%, var(--frame-width));
  margin: 0 auto;
}

.view-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 17px;
}

.view-intro > div:first-child { min-width: 0; }

.view-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.25vw, 36px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.24;
}

.view-intro p {
  max-width: 1060px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.65;
}

.overview-intro h1 { max-width: 1180px; font-size: clamp(25px, 2.05vw, 34px); }

.headline-mark {
  display: inline-block;
  width: 24px;
  height: 5px;
  margin: 0 12px 7px 0;
  background: var(--china-red);
}

.evidence-stamp {
  display: flex;
  min-width: 160px;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 4px;
  text-align: right;
}

.evidence-stamp span { color: var(--muted); font-size: 11px; }
.evidence-stamp strong { font-family: var(--font-numeric); font-size: 12px; font-variant-numeric: tabular-nums; }

.mechanism-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 0.72fr) minmax(280px, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: stretch;
}

.flow-lane { min-width: 0; }
.flow-lane > h2 {
  margin: 0 0 10px;
  color: #9b5a00;
  font-size: 15px;
  font-weight: 730;
  text-align: center;
}

.source-list, .output-list { display: grid; gap: 8px; }

.flow-source {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #f0d7b8;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.9);
}

.flow-source::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  border-top: 1px solid var(--orange);
  content: "";
}

.flow-source > svg {
  width: 27px;
  height: 27px;
  color: var(--orange);
  stroke-width: 1.7;
}

.source-app-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  object-fit: contain;
}

.source-app-icon--recorder {
  background: linear-gradient(145deg, #ff7a45, #e94829);
  box-shadow: 0 5px 12px rgba(233, 72, 41, 0.2);
  color: #fff;
}

.source-app-icon--tasks {
  background: linear-gradient(145deg, #ffc928, #f59b00);
  box-shadow: 0 5px 12px rgba(245, 155, 0, 0.2);
  color: #fff;
}

.source-app-icon svg { width: 21px; height: 21px; stroke-width: 1.9; }

.flow-source > div { display: flex; min-width: 0; flex-direction: column; }
.flow-source strong { font-size: 13px; }
.flow-source div span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.flow-source > b { color: var(--ink-soft); font-family: var(--font-numeric); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.evidence-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
}

.evidence-tag--live { color: #e86809; }
.evidence-tag--history { color: #a86800; background: #fffbf1; }
.evidence-tag--missing { border-color: #d6d1cc; background: #faf9f7; color: var(--missing); }

.hermes-spine {
  position: relative;
  overflow: hidden;
  min-height: 326px;
  padding: 14px 17px 12px;
  border: 1px solid rgba(245, 155, 0, 0.42);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.17), transparent 34%),
    linear-gradient(180deg, var(--gold) 0%, var(--orange) 58%, #ee5e05 82%, var(--passion-red) 100%);
  box-shadow: 0 18px 40px rgba(232, 107, 8, 0.16);
  color: #fff;
}

.hermes-spine::before {
  position: absolute;
  top: -32px;
  right: -55px;
  width: 150px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.hermes-heading { display: flex; align-items: center; gap: 10px; }
.hermes-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hermes-symbol svg { width: 22px; height: 22px; stroke-width: 1.7; }
.hermes-heading h2 { margin: 0; font-size: 18px; }
.hermes-heading p { margin: 1px 0 0; color: rgba(255, 255, 255, 0.84); font-size: 10px; line-height: 1.45; }

.hermes-stages { margin: 12px 0 9px; padding: 0; list-style: none; }
.hermes-stages li {
  position: relative;
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 650;
}
.hermes-stages li:last-child { border-bottom: 0; }
.hermes-stages li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(45deg);
}
.hermes-stages svg { width: 21px; height: 21px; stroke-width: 1.7; }

.hermes-state {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 3px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
}
.hermes-state strong { font-size: 10px; }
.hermes-state span:last-child { margin-left: auto; text-align: right; }
.state-signal { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #fff; }
.state-signal--error { background: var(--china-red); }

.hermes-state.is-running {
  border-color: rgba(13, 143, 74, 0.32);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(8, 101, 52, 0.12);
  color: #0b7a3e;
}

.hermes-state.is-running .state-signal {
  background: #10a55a;
  box-shadow: 0 0 0 4px rgba(16, 165, 90, 0.14);
}

.hermes-state.is-running strong,
.hermes-state.is-running span:last-child { color: #0b7a3e; }
.hermes-state.is-running:not(.is-connected) span:last-child { color: #8f1b2e; }

.output-list article {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid #f0d7b8;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.9);
}

.output-list > .output-link {
  display: block;
  min-width: 0;
  border-radius: var(--radius-control);
  color: inherit;
  text-decoration: none;
}

.output-list > .output-link article { height: 100%; }
.output-list > .output-link:hover article {
  border-color: rgba(245, 155, 0, 0.76);
  box-shadow: 0 12px 30px rgba(185, 91, 12, 0.1);
}

.output-list article::before {
  position: absolute;
  top: 50%;
  left: -18px;
  width: 18px;
  border-top: 1px solid var(--orange);
  content: "";
}

.output-list article > svg { width: 25px; height: 25px; color: var(--orange); stroke-width: 1.7; }
.output-list article > span { font-size: 13px; font-weight: 620; }
.output-list article > strong { color: var(--china-red); font-family: var(--font-numeric); font-size: 11px; font-variant-numeric: tabular-nums; }
.output-list article > .output-copy { display: grid; gap: 2px; }
.output-copy small { color: var(--muted); font-size: 9px; font-weight: 520; line-height: 1.35; }

.feedback-loop {
  position: relative;
  height: 72px;
  margin: 2px 1.6% 0;
}
.feedback-loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.feedback-loop > div { position: absolute; top: 23px; right: 28%; left: 28%; display: flex; flex-direction: column; align-items: center; padding: 2px 16px 3px; border-radius: 999px; background: rgba(255, 253, 249, 0.88); box-shadow: 0 0 24px 14px rgba(255, 253, 249, 0.82); text-align: center; }
.feedback-loop strong { color: var(--passion-red); font-size: 14px; }
.feedback-loop span { color: var(--muted); font-size: 9px; }

.overview-evidence-strip {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.25fr 0.78fr;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-warm);
}
.overview-evidence-strip article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
}
.overview-evidence-strip article:last-child { border-right: 0; }
.overview-evidence-strip svg { width: 29px; height: 29px; flex: 0 0 auto; color: #bd7600; stroke-width: 1.6; }
.overview-evidence-strip article > div { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.overview-evidence-strip span { color: var(--muted); font-size: 10px; }
.overview-evidence-strip strong { font-family: var(--font-numeric); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.overview-evidence-strip strong b { color: var(--china-red); font-size: 23px; }
.overview-evidence-strip small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.overview-evidence-strip .summary-alert svg, .overview-evidence-strip .summary-alert strong { color: var(--china-red); }

.overview-evidence-strip .summary-alert {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 243, 0.84));
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.overview-evidence-strip .summary-alert:hover {
  background: #fff6f3;
  box-shadow: inset 0 0 0 1px rgba(200, 21, 45, 0.24);
  transform: translateY(-2px);
}

.overview-evidence-strip .summary-alert:active { transform: translateY(0); }

.view-footnote {
  padding-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.025em;
  text-align: center;
}

.evidence-legend { display: flex; align-items: center; gap: 20px; padding-top: 9px; white-space: nowrap; }
.evidence-legend span { position: relative; padding-left: 17px; color: var(--muted); font-size: 10px; }
.evidence-legend span::before { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%; content: ""; transform: translateY(-50%); }
.legend-live::before { background: var(--orange); }
.legend-history::before { border: 2px solid #bd7600; background: #fff; }
.legend-missing::before { border: 1px dashed var(--missing); background: #fff; }

.operations-flow {
  display: grid;
  grid-template-columns: 1.02fr 0.92fr 1.02fr 0.95fr 0.95fr;
  gap: 34px;
}
.operation-step {
  position: relative;
  min-width: 0;
  min-height: 254px;
  padding: 10px 12px 12px;
  border: 1px solid #efd5b5;
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.94);
}
.operation-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -25px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}
.operation-step header { display: flex; min-height: 38px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.operation-step header > b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--gold), var(--orange)); color: #fff; font-family: var(--font-numeric); }
.operation-step header h2 { min-width: 0; flex: 1; margin: 0; font-size: 14px; }
.operation-step header .evidence-tag { padding-inline: 5px; font-size: 8px; }
.operation-icon { display: grid; height: 78px; place-items: center; color: var(--orange); }
.operation-icon svg { width: 52px; height: 52px; stroke-width: 1.45; }
.operation-icon--loop svg { color: var(--passion-red); }
.operation-step p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; text-align: center; }
.operation-step > strong { display: block; margin-top: 12px; color: var(--ink); font-family: var(--font-numeric); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.operation-step dl { margin: 0; }
.operation-step dl div { display: flex; min-height: 27px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f2e8df; }
.operation-step dl div:last-child { border-bottom: 0; }
.operation-step dt { color: var(--ink-soft); font-size: 10px; }
.operation-step dd { margin: 0; color: var(--china-red); font-family: var(--font-numeric); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }

.operations-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: 49px;
  margin: 2px 4% 3px;
  color: #ab5c00;
  font-size: 9px;
  font-weight: 650;
  text-align: center;
}
.operations-ribbon::before {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(248, 194, 10, 0.25), var(--gold), var(--orange), var(--passion-red), var(--china-red));
  clip-path: polygon(0 60%, 92% 0, 100% 50%, 92% 100%, 0 78%);
  content: "";
}

.operations-lower { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(285px, 0.9fr); gap: 18px; }
.evidence-ledger, .executive-conclusion { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: rgba(255, 255, 255, 0.94); }
.evidence-ledger { padding: 12px 18px 8px; }
.evidence-ledger > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.evidence-ledger h2 { margin: 0; font-size: 15px; }
.evidence-ledger header span { color: #9b5a00; font-size: 9px; }
.ledger-row { display: grid; grid-template-columns: 30px 126px 140px minmax(0, 1fr) 130px; min-height: 46px; align-items: center; gap: 10px; border-bottom: 1px solid #efe5db; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row svg { width: 21px; height: 21px; color: var(--orange); stroke-width: 1.6; }
.ledger-row strong { font-size: 11px; }
.ledger-row b { color: var(--ink); font-family: var(--font-numeric); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-row span { color: var(--muted); font-family: var(--font-numeric); font-size: 10px; font-variant-numeric: tabular-nums; }
.ledger-row small { color: var(--muted); font-size: 9px; text-align: right; }

.executive-conclusion { display: flex; flex-direction: column; padding: 16px 18px; }
.executive-conclusion header { display: flex; align-items: center; gap: 8px; }
.executive-conclusion header svg { width: 20px; height: 20px; color: var(--china-red); }
.executive-conclusion h2 { margin: 0; font-size: 14px; }
.executive-conclusion blockquote { margin: 18px 0; color: var(--china-red); font-size: clamp(16px, 1.45vw, 22px); font-weight: 760; line-height: 1.5; }
.conclusion-caveat { display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }
.conclusion-caveat svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--china-red); }
.executive-conclusion > a, .workflow-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: #955500; font-size: 10px; font-weight: 700; text-decoration: none; }
.executive-conclusion > a svg, .workflow-link svg { width: 14px; height: 14px; }

.workflows-intro { margin-bottom: 13px; }
.mobile-workflow-tabs { display: none; }
.specialty-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.96fr); gap: 16px; }
.workflow-lane { position: relative; min-width: 0; padding: 15px 18px 12px; border: 1px solid #efd5b5; border-radius: var(--radius-panel); background: rgba(255, 255, 255, 0.94); }
.workflow-title { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.workflow-title svg { width: 23px; height: 23px; color: var(--orange); stroke-width: 1.7; }
.workflow-title h2 { margin: 0; font-size: 18px; }

.meeting-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.meeting-flow li { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.meeting-flow li:not(:last-child)::after { position: absolute; top: 28px; right: -9px; width: 10px; height: 10px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); content: ""; transform: rotate(45deg); }
.meeting-flow li > span { display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; background: #fffdf9; color: var(--orange); }
.meeting-flow li svg { width: 25px; height: 25px; stroke-width: 1.6; }
.meeting-flow strong { margin-top: 7px; font-size: 9px; font-weight: 620; line-height: 1.35; }

.meeting-evidence { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-control); }
.meeting-evidence > div { display: flex; min-height: 50px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px; border-right: 1px solid var(--line); text-align: center; }
.meeting-evidence > div:last-child { border-right: 0; }
.meeting-evidence span { color: var(--ink-soft); font-size: 9px; }

.meeting-result { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; min-height: 48px; align-items: center; gap: 9px; margin-top: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.meeting-result > svg { width: 21px; height: 21px; color: var(--orange); }
.meeting-result strong { font-family: var(--font-numeric); font-size: 13px; font-variant-numeric: tabular-nums; }
.meeting-result > span { color: var(--ink); font-family: var(--font-numeric); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.workflow-note { margin: 8px 0 0; padding: 7px 10px; background: #fff8e9; color: var(--ink-soft); font-size: 9px; }
.workflow-link { position: absolute; right: 18px; bottom: 18px; }

.weekly-funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 7px; }
.weekly-funnel article { position: relative; display: flex; min-width: 0; min-height: 79px; flex-direction: column; align-items: center; justify-content: center; padding: 7px 4px; background: linear-gradient(150deg, var(--gold), var(--orange)); color: #fff; text-align: center; clip-path: polygon(0 0, 90% 6%, 100% 50%, 90% 94%, 0 100%); }
.weekly-funnel article:nth-child(3) { background: linear-gradient(150deg, #fb8d0d, #f06b13); }
.weekly-funnel article:nth-child(4) { background: linear-gradient(150deg, #f05f17, var(--passion-red)); }
.weekly-funnel article:nth-child(5) { background: linear-gradient(150deg, var(--passion-red), var(--china-red)); }
.weekly-funnel strong { font-family: var(--font-numeric); font-size: 22px; font-variant-numeric: tabular-nums; }
.weekly-funnel span { font-size: 9px; font-weight: 650; }

.weekly-outputs { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.weekly-outputs h3 { margin: 0 0 5px; font-size: 11px; text-align: center; }
.weekly-outputs ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.weekly-outputs li { padding: 3px 5px; border-right: 1px solid var(--line); color: var(--ink-soft); font-size: 8px; text-align: center; }
.weekly-outputs li:last-child { border-right: 0; }

.weekly-history { margin-top: 8px; border-top: 1px solid var(--line); }
.weekly-history > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; min-height: 38px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.weekly-history > div:last-child { border-bottom: 0; }
.weekly-history svg { width: 18px; height: 18px; color: var(--orange); }
.weekly-history span { color: var(--ink-soft); font-family: var(--font-numeric); font-size: 10px; font-variant-numeric: tabular-nums; }

.mechanism-comparison { display: grid; grid-template-columns: 128px 108px repeat(5, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: #fff; }
.mechanism-comparison > header { display: grid; grid-column: 1; grid-row: 1 / 4; place-items: center; padding: 10px; border-right: 1px solid var(--line); }
.mechanism-comparison h2 { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; text-align: center; }
.comparison-head, .comparison-row { display: contents; }
.comparison-head span { padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 650; text-align: center; }
.comparison-row strong, .comparison-row span { min-height: 40px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 9px; text-align: center; }
.comparison-row strong { color: var(--china-red); }
.comparison-row span { color: var(--ink-soft); }
.comparison-row:last-child strong, .comparison-row:last-child span { border-bottom: 0; }
.comparison-row small { color: var(--missing); font-size: 8px; }

.workflow-conclusion { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 10px; border: 1px solid #f1b8ae; border-radius: var(--radius-control); background: var(--surface-red); color: var(--china-red); }
.workflow-conclusion svg { width: 22px; height: 22px; }
.workflow-conclusion strong { font-size: 14px; }

.global-footer {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: var(--footer-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.97);
  color: var(--muted);
  font-size: 9px;
}

.evidence-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: 0 28px 90px rgba(78, 36, 5, 0.2);
}
.evidence-dialog::backdrop { background: rgba(43, 23, 18, 0.34); backdrop-filter: blur(3px); }
.dialog-shell { max-height: min(760px, calc(100dvh - 40px)); padding: 22px; overflow-y: auto; }
.dialog-shell > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.dialog-shell h2 { margin: 0; font-size: 21px; }
.dialog-shell header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.dialog-shell section { margin-top: 18px; }
.dialog-shell h3 { margin: 0 0 8px; font-size: 13px; }
.dialog-shell section p, .dialog-shell li { color: var(--muted); font-size: 10px; line-height: 1.65; }
.source-inventory { display: grid; gap: 1px; margin-top: 15px; background: var(--line); border: 1px solid var(--line); }
.source-row { display: grid; grid-template-columns: 108px 86px minmax(0, 1fr); min-height: 44px; align-items: center; gap: 10px; padding: 7px 10px; background: #fff; }
.source-row strong { font-size: 11px; }
.source-row span { color: var(--muted); font-family: var(--font-numeric); font-size: 9px; font-variant-numeric: tabular-nums; }

.no-script { margin: 80px auto; padding: 20px; color: var(--china-red); text-align: center; }

@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1250px) {
  .report-header { grid-template-columns: minmax(260px, 1fr) auto minmax(160px, 0.65fr); }
  .brand-lockup strong { display: none; }
  .freshness { display: none; }
  .mechanism-grid { grid-template-columns: minmax(230px, 1fr) minmax(230px, 0.78fr) minmax(240px, 1fr); gap: 19px; }
  .flow-source::after { right: -12px; width: 12px; }
  .output-list article::before { left: -12px; width: 12px; }
  .flow-source { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .flow-source > .evidence-tag { display: none; }
  .output-list article { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .output-list article > strong + .evidence-tag, .output-list article > .evidence-tag { display: none; }
  .operations-flow { gap: 24px; }
  .operation-step:not(:last-child)::after { right: -18px; }
  .ledger-row { grid-template-columns: 28px 104px 120px minmax(0, 1fr); }
  .ledger-row small { display: none; }
  .meeting-flow strong { font-size: 8px; }
}

@media (max-width: 980px) {
  :root { --header-height: 112px; --footer-height: 0px; }
  .dashboard-app { padding-bottom: 0; }
  .report-header { grid-template-columns: 1fr auto; grid-template-rows: 67px 45px; height: var(--header-height); padding-inline: 20px; }
  .brand-lockup img { width: 150px; }
  .brand-lockup strong { display: block; font-size: 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .view-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .view-tabs button { flex: 1; min-width: 0; }
  .global-footer { display: none; }
  .dashboard-view { min-height: calc(100dvh - var(--header-height)); padding: 18px 20px 24px; }
  .mechanism-grid { grid-template-columns: 1fr 0.76fr 1fr; gap: 14px; }
  .overview-evidence-strip article { padding-inline: 11px; }
  .overview-evidence-strip small { display: none; }
  .operations-flow { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .operation-step { scroll-snap-align: start; }
  .specialty-layout { grid-template-columns: 1fr; }
  .workflow-link { position: static; }
  .workflow-lane { padding-bottom: 12px; }
  .mechanism-comparison { grid-template-columns: 110px repeat(5, minmax(92px, 1fr)); overflow-x: auto; }
}

@media (max-width: 720px) {
  :root { --header-height: 122px; }
  body { background: var(--paper); }
  .report-header { grid-template-columns: 1fr auto; grid-template-rows: 72px 50px; padding: 0 16px; }
  .brand-lockup { gap: 9px; }
  .brand-lockup img { width: 130px; }
  .brand-lockup > span { height: 24px; }
  .brand-lockup strong { max-width: 112px; font-size: 11px; line-height: 1.25; white-space: normal; }
  .header-actions { gap: 7px; }
  .header-actions .icon-action { display: none; }
  .refresh-action { width: 38px; padding: 0; }
  .refresh-action span { display: none; }
  .view-tabs button { padding: 0 6px; font-size: 12px; }
  .dashboard-view { padding: 18px 16px 26px; }
  .preview-notice { align-items: flex-start; padding: 8px 16px; font-size: 10px; }
  .preview-notice > a { align-self: center; }
  .view-intro { display: block; margin-bottom: 18px; }
  .view-intro h1 { font-size: 27px; letter-spacing: -0.04em; }
  .overview-intro h1 { font-size: 25px; }
  .headline-mark { width: 18px; height: 4px; margin-right: 8px; }
  .view-intro p { font-size: 13px; line-height: 1.7; }
  .evidence-stamp { min-width: 0; align-items: flex-start; margin-top: 10px; padding: 0; text-align: left; }
  .evidence-legend { margin-top: 11px; padding: 0; gap: 14px; }

  .mechanism-grid { display: flex; flex-direction: column; gap: 14px; }
  .flow-lane > h2 { text-align: left; }
  .flow-source { grid-template-columns: 36px minmax(0, 1fr) auto; min-height: 56px; }
  .flow-source::after, .output-list article::before { display: none; }
  .hermes-spine { min-height: 0; padding: 16px; }
  .hermes-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .hermes-stages li { min-width: 0; min-height: 76px; flex-direction: column; justify-content: center; gap: 6px; padding: 5px 2px; border-right: 1px solid rgba(255, 255, 255, 0.3); border-bottom: 0; font-size: 9px; text-align: center; }
  .hermes-stages li:last-child { border-right: 0; }
  .hermes-stages li:not(:last-child)::after { top: 35px; right: -3px; bottom: auto; transform: rotate(-45deg); }
  .output-list article { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .feedback-loop { height: auto; margin: 12px 0 16px; padding: 12px 13px 12px 18px; border-left: 5px solid var(--passion-red); background: #fff8ed; }
  .feedback-loop svg { display: none; }
  .feedback-loop > div { position: static; align-items: flex-start; padding: 0; background: transparent; box-shadow: none; text-align: left; }
  .feedback-loop strong { font-size: 13px; }
  .feedback-loop span { font-size: 10px; }

  .overview-evidence-strip { grid-template-columns: 1fr; }
  .overview-evidence-strip article { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-evidence-strip article:last-child { border-bottom: 0; }
  .overview-evidence-strip small { display: block; }

  .operations-flow { display: flex; overflow: visible; flex-direction: column; gap: 14px; padding: 0; }
  .operation-step { min-height: 0; padding: 11px 13px; }
  .operation-step:not(:last-child)::after { top: auto; right: 50%; bottom: -12px; width: 10px; height: 10px; transform: translateX(50%) rotate(135deg); }
  .operation-icon { height: 66px; }
  .operation-icon svg { width: 44px; height: 44px; }
  .operations-ribbon { display: none; }
  .operations-lower { grid-template-columns: 1fr; margin-top: 16px; }
  .evidence-ledger { padding-inline: 13px; }
  .ledger-row { grid-template-columns: 28px minmax(92px, 0.8fr) 1fr; gap: 8px; }
  .ledger-row span { grid-column: 2 / -1; padding: 0 0 7px; }
  .ledger-row small { display: none; }
  .executive-conclusion blockquote { font-size: 20px; }

  .mobile-workflow-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
  .mobile-workflow-tabs button { position: relative; min-height: 46px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
  .mobile-workflow-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--orange); content: ""; opacity: 0; }
  .mobile-workflow-tabs button[aria-selected="true"] { color: var(--passion-red); }
  .mobile-workflow-tabs button[aria-selected="true"]::after { opacity: 1; }
  .specialty-layout { display: block; }
  #view-workflows[data-mobile-workflow="meeting"] .weekly-lane { display: none; }
  #view-workflows[data-mobile-workflow="weekly"] .meeting-lane { display: none; }
  .workflow-lane { padding: 14px; }
  .meeting-flow { grid-template-columns: 1fr; gap: 0; }
  .meeting-flow li { min-height: 72px; flex-direction: row; gap: 14px; text-align: left; }
  .meeting-flow li > span { width: 50px; height: 50px; flex: 0 0 auto; }
  .meeting-flow li:not(:last-child)::after { top: auto; right: auto; bottom: -1px; left: 23px; width: 12px; height: 12px; transform: rotate(135deg); }
  .meeting-flow strong { margin: 0; font-size: 13px; }
  .meeting-evidence { grid-template-columns: 1fr; }
  .meeting-evidence > div { min-height: 48px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .meeting-evidence > div:last-child { border-bottom: 0; }
  .meeting-result { grid-template-columns: 26px 1fr auto; }
  .meeting-result > span { grid-column: 2 / -1; }
  .meeting-result .evidence-tag { grid-column: 3; grid-row: 1; }
  .weekly-funnel { gap: 4px; }
  .weekly-funnel article { min-height: 78px; clip-path: none; border-radius: 5px; }
  .weekly-funnel strong { font-size: 20px; }
  .weekly-funnel span { font-size: 8px; }
  .weekly-outputs ul { grid-template-columns: 1fr 1fr; }
  .weekly-outputs li { min-height: 30px; border-bottom: 1px solid var(--line); }
  .weekly-outputs li:nth-child(even) { border-right: 0; }
  .mechanism-comparison { display: none; }
  .workflow-conclusion { align-items: flex-start; margin-top: 12px; padding: 13px; }
  .workflow-conclusion strong { font-size: 13px; }

  .view-footnote { padding-top: 12px; font-size: 10px; text-align: left; }
  .error-banner { top: calc(var(--header-height) + 8px); right: 16px; left: 16px; }
  .source-row { grid-template-columns: 96px 74px 1fr; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .dashboard-view { padding-top: 12px; }
  .view-intro { margin-bottom: 10px; }
  .mechanism-grid { transform-origin: top center; }
  .flow-source { min-height: 53px; }
  .hermes-spine { min-height: 306px; }
  .hermes-stages li { min-height: 39px; }
  .feedback-loop { height: 56px; }
  .overview-evidence-strip { min-height: 82px; }
  .operation-step { min-height: 226px; }
  .operation-icon { height: 64px; }
  .ledger-row { min-height: 41px; }
}

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

/* Leadership cockpit redesign: airy hierarchy, explicit actions and narrative flow. */
:root {
  --paper: #fffdf9;
  --surface: #ffffff;
  --surface-soft: #fffaf1;
  --line: #eadfd5;
  --line-strong: #dfc9b5;
  --header-height: 76px;
  --footer-height: 38px;
  --page-gutter: clamp(24px, 3.2vw, 52px);
  --frame-width: 1480px;
  --radius-panel: 14px;
  --radius-control: 10px;
  --shadow-warm: 0 16px 48px rgba(135, 67, 13, 0.09);
  --shadow-active: 0 18px 42px rgba(232, 107, 8, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background:
    radial-gradient(circle at 92% -8%, rgba(248, 194, 10, 0.12), transparent 26%),
    linear-gradient(180deg, #fff 0, var(--paper) 42%, #fff 100%);
}

.report-header {
  height: var(--header-height);
  grid-template-columns: minmax(330px, 1fr) auto minmax(300px, 1fr);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 34px rgba(94, 49, 15, 0.035);
}

.brand-lockup img { width: 174px; }
.brand-lockup strong { font-size: 16px; }
.view-tabs { gap: 12px; }
.view-tabs button { min-width: 96px; padding-inline: 18px; font-size: 14px; }
.header-actions { gap: 12px; }
.freshness { max-width: 250px; font-size: 12px; }
.icon-action, .refresh-action { min-height: 44px; }
.icon-action { width: 44px; height: 44px; }
.refresh-action { padding-inline: 16px; font-size: 13px; }

.preview-notice {
  min-height: 44px;
  gap: 12px;
  padding-block: 8px;
  font-size: 12px;
}

.dashboard-view {
  min-height: calc(100dvh - var(--header-height) - var(--footer-height));
  padding: clamp(26px, 3vw, 42px) var(--page-gutter) 48px;
}

.dashboard-view.is-active .view-frame { animation: view-in 420ms var(--ease-out) both; }
.view-frame { width: min(100%, var(--frame-width)); }
.view-intro { gap: 36px; margin-bottom: 28px; }
.view-intro h1 {
  font-size: clamp(30px, 2.5vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.22;
}
.overview-intro h1 { max-width: 1120px; font-size: clamp(29px, 2.25vw, 37px); }
.view-intro p { max-width: 980px; margin-top: 10px; font-size: 14px; line-height: 1.75; }
.headline-mark { width: 28px; height: 6px; margin: 0 13px 8px 0; border-radius: 999px; }

.intro-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}
.evidence-stamp { min-width: 142px; padding: 0; }
.evidence-stamp span { font-size: 12px; }
.evidence-stamp strong { font-size: 13px; }
.evidence-legend { padding: 0; gap: 22px; }
.evidence-legend span { font-size: 11px; }

.motion-toggle,
.action-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}
.motion-toggle {
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  color: #8c4b00;
  cursor: pointer;
}
.motion-toggle:hover { border-color: var(--orange); background: #fff8e8; box-shadow: 0 8px 20px rgba(221, 127, 17, 0.1); }
.motion-toggle:active, .action-link:active { transform: translateY(1px) scale(0.985); }
.motion-toggle:disabled { cursor: default; opacity: 0.72; }
.motion-toggle svg, .action-link svg { width: 17px; height: 17px; flex: 0 0 auto; stroke-width: 1.8; }
.motion-icon--play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-icon--pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-icon--play { display: block; }

.action-link {
  width: fit-content;
  padding: 0 18px;
  border: 1px solid var(--orange);
  text-decoration: none;
}
.action-link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 88, 11, 0.15); }
.action-link--primary { border-color: var(--china-red); background: var(--china-red); color: #fff; }
.action-link--primary:hover { border-color: #a80f25; background: #a80f25; color: #fff; }
.action-link--outline { background: #fff; color: #985000; }
.action-link--outline:hover { background: #fff7e6; color: #7f4200; }
.action-link--compact { min-height: 44px; padding-inline: 14px; background: #fff; color: #8f4d00; font-size: 12px; }

[data-flow]:focus-visible,
.feedback-loop:focus-visible {
  outline: 3px solid rgba(200, 21, 45, 0.32);
  outline-offset: 5px;
}

.mechanism-grid {
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.84fr) minmax(310px, 1fr);
  align-items: stretch;
  gap: clamp(28px, 3vw, 46px);
}
.flow-lane > h2 { margin-bottom: 14px; font-size: 16px; }
.source-list, .output-list { gap: 11px; }
.flow-source {
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  min-height: 72px;
  gap: 12px;
  padding: 11px 14px;
  border-color: var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(120, 70, 28, 0.035);
  transition: transform 380ms var(--ease-out), border-color 320ms ease, box-shadow 320ms ease, opacity 320ms ease;
}
.flow-source::after { right: calc(clamp(28px, 3vw, 46px) * -1); width: clamp(28px, 3vw, 46px); }
.flow-source > svg { width: 29px; height: 29px; }
.flow-source strong { font-size: 14px; }
.flow-source div span { font-size: 11px; }
.flow-source > b { font-size: 12px; }
.evidence-tag { min-height: 24px; padding: 3px 8px; border-radius: 6px; font-size: 10px; }

.hermes-spine {
  min-height: 410px;
  padding: 20px 22px 16px;
  border-radius: var(--radius-panel);
  box-shadow: 0 22px 54px rgba(232, 107, 8, 0.2);
}
.hermes-symbol { width: 46px; height: 46px; }
.hermes-heading h2 { font-size: 21px; }
.hermes-heading p { font-size: 11px; }
.hermes-stages { margin: 17px 0 12px; }
.hermes-stages li {
  min-height: 55px;
  gap: 14px;
  padding: 9px 8px;
  border-radius: 8px;
  border-bottom-color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  transition: transform 380ms var(--ease-out), background-color 320ms ease, opacity 320ms ease;
}
.hermes-stages svg { width: 23px; height: 23px; }
.hermes-state { min-height: 34px; font-size: 10px; }
.hermes-state strong { font-size: 11px; }

.output-list article {
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  min-height: 61px;
  gap: 11px;
  padding: 10px 14px;
  border-color: var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(120, 70, 28, 0.035);
  transition: transform 380ms var(--ease-out), border-color 320ms ease, box-shadow 320ms ease, opacity 320ms ease;
}
.output-list article::before { left: calc(clamp(28px, 3vw, 46px) * -1); width: clamp(28px, 3vw, 46px); }
.output-list article > svg { width: 28px; height: 28px; }
.output-list article > span { font-size: 14px; }
.output-list article > strong { font-size: 12px; }

.feedback-loop { height: 92px; margin: 4px 2.5% 2px; }
.feedback-loop > div { top: 31px; right: 25%; left: 25%; }
.feedback-loop strong { font-size: 16px; }
.feedback-loop span { font-size: 11px; }
.feedback-loop path { transition: stroke-width 320ms ease, opacity 320ms ease; }

.overview-evidence-strip {
  min-height: 112px;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-warm);
}
.overview-evidence-strip article { gap: 15px; padding: 17px 22px; }
.overview-evidence-strip svg { width: 32px; height: 32px; }
.overview-evidence-strip span { font-size: 11px; }
.overview-evidence-strip strong { font-size: 19px; }
.overview-evidence-strip strong b { font-size: 27px; }
.overview-evidence-strip small { font-size: 10px; }
.view-footnote { padding-top: 14px; font-size: 10px; }

[data-flow-step].is-flow-active { position: relative; z-index: 3; }
.flow-source.is-flow-active,
.output-list article.is-flow-active {
  border-color: rgba(245, 155, 0, 0.88);
  box-shadow: var(--shadow-active);
  transform: translateY(-4px) scale(1.012);
}
.flow-source.is-flow-complete,
.output-list article.is-flow-complete { border-color: rgba(245, 155, 0, 0.46); }
.flow-source.is-flow-active::after,
.output-list article.is-flow-active::before {
  border-top-width: 3px;
  box-shadow: 0 0 12px rgba(248, 194, 10, 0.9);
  animation: connector-pulse 900ms var(--ease-out) infinite alternate;
}
.hermes-stages li.is-flow-active { background: rgba(255, 255, 255, 0.18); transform: translateX(6px) scale(1.015); }
.hermes-stages li.is-flow-complete { background: rgba(255, 255, 255, 0.07); }
.feedback-loop.is-flow-active path:first-of-type { stroke-width: 7; stroke-dasharray: 18 12; animation: feedback-dash 760ms linear infinite; }
.feedback-loop.is-flow-active strong { animation: loop-emphasis 900ms var(--ease-out) infinite alternate; }

.operations-flow {
  position: relative;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
  margin-top: 4px;
}
.operations-flow::before {
  position: absolute;
  z-index: 0;
  top: 108px;
  right: 7%;
  left: 7%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--orange) 52%, var(--china-red));
  content: "";
  opacity: 0.62;
}
.operation-step {
  display: grid;
  min-height: 330px;
  grid-template-rows: auto 112px 1fr;
  padding: 0 2px 16px;
  border: 0;
  background: transparent;
  transition: transform 420ms var(--ease-out), opacity 320ms ease;
}
.operation-step:not(:last-child)::after { display: none; }
.operation-step header { min-height: 54px; border: 0; }
.operation-step header > b { width: 32px; height: 32px; }
.operation-step header h2 { font-size: 16px; }
.operation-step header .evidence-tag { font-size: 9px; }
.operation-icon {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  align-self: center;
  margin: 0 auto;
  border: 2px solid rgba(245, 155, 0, 0.62);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(192, 101, 13, 0.08);
  transition: transform 420ms var(--ease-out), border-color 320ms ease, box-shadow 320ms ease, background-color 320ms ease;
}
.operation-icon svg { width: 48px; height: 48px; }
.operation-detail {
  align-self: stretch;
  margin: 4px 0 0;
  padding: 17px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(120, 70, 28, 0.035);
}
.operation-detail p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; text-align: left; }
.operation-detail > strong { display: block; margin-top: 12px; font-family: var(--font-numeric); font-size: 14px; line-height: 1.65; text-align: left; }
.operation-detail dl { margin: 0; }
.operation-step dl div { min-height: 36px; }
.operation-step dt { font-size: 11px; }
.operation-step dd { font-size: 12px; }
.operation-step.is-flow-active { transform: translateY(-7px); }
.operation-step.is-flow-active .operation-icon { border-color: var(--orange); background: #fffaf0; box-shadow: 0 0 0 9px rgba(248, 194, 10, 0.1), 0 18px 36px rgba(232, 107, 8, 0.2); transform: scale(1.08); }
.operation-step.is-flow-complete .operation-icon { border-color: rgba(232, 107, 8, 0.78); }
.operations-ribbon { display: none; }
.operations-lower { grid-template-columns: minmax(0, 2.2fr) minmax(320px, 0.9fr); gap: 24px; margin-top: 28px; }
.evidence-ledger, .executive-conclusion { border-radius: var(--radius-panel); box-shadow: 0 12px 34px rgba(120, 70, 28, 0.045); }
.evidence-ledger { padding: 17px 22px 10px; }
.evidence-ledger h2 { font-size: 17px; }
.evidence-ledger header span { font-size: 11px; }
.ledger-row { grid-template-columns: 34px 134px 154px minmax(0, 1fr) 142px; min-height: 56px; }
.ledger-row strong { font-size: 13px; }
.ledger-row b { font-size: 18px; }
.ledger-row span { font-size: 11px; }
.ledger-row small { font-size: 10px; }
.executive-conclusion { padding: 22px; }
.executive-conclusion h2 { font-size: 16px; }
.executive-conclusion blockquote { margin: 22px 0; font-size: clamp(20px, 1.75vw, 27px); }
.conclusion-caveat { font-size: 12px; line-height: 1.6; }
.executive-conclusion > .action-link { width: 100%; margin-top: 22px; padding-top: 0; }
.executive-conclusion > .action-link.action-link--primary { color: #fff; }

.workflows-intro { margin-bottom: 24px; }
.specialty-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; }
.workflow-lane {
  padding: 23px 24px 21px;
  border-color: var(--line);
  border-radius: var(--radius-panel);
  box-shadow: 0 14px 40px rgba(120, 70, 28, 0.055);
}
.workflow-title { margin-bottom: 18px; }
.workflow-title svg { width: 27px; height: 27px; }
.workflow-title h2 { font-size: 21px; }
.meeting-flow { gap: 12px; }
.meeting-flow li { transition: transform 420ms var(--ease-out), opacity 320ms ease; }
.meeting-flow li > span {
  width: 68px;
  height: 68px;
  border-width: 2px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(186, 96, 12, 0.06);
  transition: transform 420ms var(--ease-out), border-color 320ms ease, box-shadow 320ms ease, background-color 320ms ease;
}
.meeting-flow li:not(:last-child)::after { top: 33px; right: -10px; }
.meeting-flow li svg { width: 29px; height: 29px; }
.meeting-flow strong { margin-top: 10px; font-size: 11px; line-height: 1.45; }
.meeting-flow li.is-flow-active { transform: translateY(-5px); }
.meeting-flow li.is-flow-active > span { background: #fff9e9; border-color: var(--orange); box-shadow: 0 0 0 8px rgba(248, 194, 10, 0.1), 0 16px 30px rgba(232, 107, 8, 0.18); transform: scale(1.07); }
.meeting-flow li.is-flow-complete > span { border-color: rgba(232, 107, 8, 0.75); }
.meeting-evidence { margin-top: 24px; border-radius: var(--radius-control); }
.meeting-evidence > div { min-height: 62px; padding: 10px; }
.meeting-evidence span { font-size: 11px; }
.meeting-result { min-height: 58px; margin-top: 12px; padding: 9px 12px; }
.meeting-result strong, .meeting-result > span { font-size: 14px; }
.workflow-note { margin-top: 12px; padding: 11px 13px; border-radius: 8px; font-size: 11px; line-height: 1.6; }
.workflow-link { position: static; margin: 18px 0 0 auto; padding-top: 0; }

.weekly-funnel { gap: 10px; margin-top: 10px; }
.weekly-funnel article {
  min-height: 102px;
  padding: 12px 7px;
  transition: transform 420ms var(--ease-out), filter 320ms ease, box-shadow 320ms ease, opacity 320ms ease;
}
.weekly-funnel strong { font-size: 27px; }
.weekly-funnel span { font-size: 11px; }
.weekly-funnel article.is-flow-active { z-index: 2; filter: saturate(1.08) brightness(1.04); box-shadow: 0 18px 32px rgba(201, 40, 45, 0.2); transform: translateY(-7px) scale(1.035); }
.weekly-funnel article.is-flow-complete { filter: saturate(0.9); }
.weekly-outputs { margin-top: 16px; padding: 12px 14px; }
.weekly-outputs h3 { margin-bottom: 8px; font-size: 13px; }
.weekly-outputs li { min-height: 28px; font-size: 10px; }
.weekly-history { margin-top: 12px; }
.weekly-history > div { min-height: 48px; }
.weekly-history span { font-size: 11px; }
.mechanism-comparison { grid-template-columns: 150px 122px repeat(5, 1fr); margin-top: 26px; border-radius: var(--radius-panel); }
.mechanism-comparison h2 { font-size: 13px; }
.comparison-head span { padding: 9px; font-size: 10px; }
.comparison-row strong, .comparison-row span { min-height: 48px; padding: 10px; font-size: 11px; }
.comparison-row small { font-size: 9px; }
.workflow-conclusion { min-height: 58px; margin-top: 16px; padding: 12px 18px; }
.workflow-conclusion strong { font-size: 16px; }

.global-footer { height: var(--footer-height); font-size: 10px; }

@keyframes connector-pulse {
  from { opacity: 0.45; filter: saturate(0.8); }
  to { opacity: 1; filter: saturate(1.2); }
}
@keyframes feedback-dash { to { stroke-dashoffset: -30; } }
@keyframes loop-emphasis { from { transform: scale(0.98); } to { transform: scale(1.035); } }

@media (max-width: 1250px) {
  .report-header { grid-template-columns: minmax(245px, 1fr) auto minmax(210px, 0.75fr); }
  .brand-lockup strong { display: none; }
  .freshness { display: none; }
  .mechanism-grid { grid-template-columns: minmax(250px, 1fr) minmax(260px, 0.84fr) minmax(260px, 1fr); gap: 24px; }
  .flow-source::after { right: -24px; width: 24px; }
  .output-list article::before { left: -24px; width: 24px; }
  .flow-source { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .flow-source > .evidence-tag { display: none; }
  .output-list article { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .output-list article > strong + .evidence-tag, .output-list article > .evidence-tag { display: none; }
  .operations-flow { gap: 18px; }
  .operation-step header { align-items: flex-start; flex-wrap: wrap; }
  .operation-step header h2 { min-width: calc(100% - 42px); }
  .operation-step header .evidence-tag { margin-left: 40px; }
  .ledger-row { grid-template-columns: 30px 112px 128px minmax(0, 1fr); }
  .ledger-row small { display: none; }
  .meeting-flow strong { font-size: 10px; }
}

@media (max-width: 1024px) {
  :root { --header-height: 116px; --footer-height: 0px; }
  .dashboard-app { padding-bottom: 0; }
  .report-header { grid-template-columns: 1fr auto; grid-template-rows: 68px 48px; height: var(--header-height); padding-inline: 20px; }
  .brand-lockup img { width: 152px; }
  .brand-lockup strong { display: block; font-size: 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .view-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .view-tabs button { min-width: 0; flex: 1; }
  .global-footer { display: none; }
  .dashboard-view { min-height: calc(100dvh - var(--header-height)); padding: 24px 20px 40px; }
  .view-intro { gap: 22px; }
  .intro-tools { align-items: flex-end; flex-direction: column; gap: 10px; }
  .mechanism-grid { grid-template-columns: 1fr; gap: 22px; }
  .flow-lane > h2 { text-align: left; }
  .flow-source::after, .output-list article::before { display: none; }
  .hermes-spine { min-height: 0; }
  .hermes-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .hermes-stages li { min-height: 88px; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255, 255, 255, 0.25); border-bottom: 0; text-align: center; }
  .hermes-stages li:not(:last-child)::after { top: 42px; right: -3px; bottom: auto; transform: rotate(-45deg); }
  .feedback-loop { margin-inline: 0; }
  .overview-evidence-strip { grid-template-columns: 1fr 1fr; }
  .overview-evidence-strip article:nth-child(2) { border-right: 0; }
  .overview-evidence-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .operations-flow { grid-template-columns: repeat(5, minmax(210px, 1fr)); overflow-x: auto; padding: 12px 8px 18px; scroll-snap-type: x mandatory; }
  .operations-flow::before { right: 80px; left: 80px; width: 850px; }
  .operation-step { scroll-snap-align: start; }
  .operations-lower { grid-template-columns: 1fr; }
  .specialty-layout { grid-template-columns: 1fr; }
  .mechanism-comparison { grid-template-columns: 132px repeat(5, minmax(112px, 1fr)); overflow-x: auto; }
}

@media (max-width: 720px) {
  :root { --header-height: 126px; }
  .report-header { grid-template-rows: 74px 52px; padding-inline: 16px; }
  .brand-lockup { gap: 8px; }
  .brand-lockup img { width: 126px; }
  .brand-lockup > span { height: 24px; }
  .brand-lockup strong { max-width: 104px; font-size: 10px; line-height: 1.3; white-space: normal; }
  .header-actions { gap: 7px; }
  .header-actions .icon-action { display: none; }
  .refresh-action { width: 44px; padding: 0; }
  .refresh-action span { display: none; }
  .view-tabs { gap: 0; }
  .view-tabs button { padding-inline: 6px; font-size: 12px; }
  .preview-notice { align-items: flex-start; padding: 9px 16px; font-size: 11px; }
  .preview-notice > span { line-height: 1.55; }
  .preview-notice > .action-link { min-height: 36px; padding-inline: 10px; }
  .dashboard-view { padding: 24px 16px 34px; }
  .view-intro { display: block; margin-bottom: 24px; }
  .view-intro h1, .overview-intro h1 { font-size: 27px; line-height: 1.3; }
  .view-intro p { font-size: 13px; }
  .intro-tools { align-items: flex-start; flex-direction: row; justify-content: space-between; margin-top: 14px; }
  .evidence-stamp { align-items: flex-start; margin: 0; text-align: left; }
  .evidence-legend { flex-wrap: wrap; gap: 11px 14px; }
  .motion-toggle { min-width: 44px; padding-inline: 11px; }
  .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .source-list, .output-list { gap: 10px; }
  .flow-source { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 66px; }
  .output-list article { grid-template-columns: 38px minmax(0, 1fr) auto; min-height: 60px; }
  .hermes-spine { padding: 18px 16px 15px; }
  .hermes-stages { grid-template-columns: 1fr; gap: 0; }
  .hermes-stages li { min-height: 56px; flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.26); text-align: left; }
  .hermes-stages li:not(:last-child)::after { top: auto; right: 12px; bottom: -5px; transform: rotate(45deg); }
  .feedback-loop { height: auto; margin: 16px 0 18px; padding: 15px 16px 15px 20px; border-left: 5px solid var(--passion-red); background: #fff8ed; }
  .feedback-loop svg { display: none; }
  .feedback-loop > div { position: static; align-items: flex-start; padding: 0; background: transparent; box-shadow: none; text-align: left; }
  .overview-evidence-strip { grid-template-columns: 1fr; }
  .overview-evidence-strip article { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-evidence-strip article:nth-child(2) { border-right: 0; }
  .overview-evidence-strip article:last-child { border-bottom: 0; }
  .overview-evidence-strip small { display: block; white-space: normal; }
  .operations-flow { display: flex; overflow: visible; flex-direction: column; gap: 16px; padding: 0; }
  .operations-flow::before { top: 36px; bottom: 36px; left: 44px; width: 3px; height: auto; }
  .operation-step { min-height: 0; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 12px; padding: 0; }
  .operation-step header { grid-column: 2; grid-row: 1; min-height: 52px; align-items: center; }
  .operation-step header .evidence-tag { margin-left: 0; }
  .operation-icon { grid-column: 1; grid-row: 1 / 3; width: 66px; height: 66px; margin: 0; }
  .operation-icon svg { width: 38px; height: 38px; }
  .operation-detail { grid-column: 2; grid-row: 2; margin: 0; padding: 14px; }
  .operations-lower { margin-top: 24px; }
  .evidence-ledger { padding-inline: 14px; }
  .ledger-row { grid-template-columns: 30px minmax(96px, 0.8fr) 1fr; gap: 8px; }
  .ledger-row span { grid-column: 2 / -1; padding-bottom: 8px; }
  .executive-conclusion blockquote { font-size: 21px; }
  .mobile-workflow-tabs { display: grid; }
  .specialty-layout { display: block; }
  #view-workflows[data-mobile-workflow="meeting"] .weekly-lane { display: none; }
  #view-workflows[data-mobile-workflow="weekly"] .meeting-lane { display: none; }
  .workflow-lane { padding: 18px 16px; }
  .meeting-flow { grid-template-columns: 1fr; gap: 0; }
  .meeting-flow li { min-height: 78px; flex-direction: row; gap: 15px; text-align: left; }
  .meeting-flow li > span { width: 56px; height: 56px; flex: 0 0 auto; }
  .meeting-flow li:not(:last-child)::after { top: auto; right: auto; bottom: -2px; left: 25px; transform: rotate(135deg); }
  .meeting-flow strong { margin: 0; font-size: 13px; }
  .meeting-evidence { grid-template-columns: 1fr; }
  .meeting-evidence > div { min-height: 52px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .meeting-result { grid-template-columns: 26px 1fr auto; }
  .meeting-result > span { grid-column: 2 / -1; }
  .meeting-result .evidence-tag { grid-column: 3; grid-row: 1; }
  .workflow-link { width: 100%; margin-top: 16px; }
  .weekly-funnel { gap: 5px; }
  .weekly-funnel article { min-height: 86px; clip-path: none; border-radius: 7px; }
  .weekly-funnel strong { font-size: 22px; }
  .weekly-funnel span { font-size: 9px; }
  .weekly-outputs ul { grid-template-columns: 1fr 1fr; }
  .weekly-outputs li { min-height: 34px; border-bottom: 1px solid var(--line); }
  .weekly-outputs li:nth-child(even) { border-right: 0; }
  .mechanism-comparison { display: none; }
  .workflow-conclusion { align-items: flex-start; }
  .workflow-conclusion strong { font-size: 14px; }
  .view-footnote { font-size: 11px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  [data-flow-step] { opacity: 1 !important; transform: none !important; }
}

/* P01 evidence detail drawer. */
.evidence-detail-trigger {
  cursor: pointer;
}

html.detail-drawer-open { overflow: hidden; }

.evidence-detail-trigger:hover {
  border-color: rgba(245, 155, 0, 0.72);
  box-shadow: 0 12px 30px rgba(185, 91, 12, 0.1);
}

.hermes-state.evidence-detail-trigger {
  margin: 0 -8px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
}

.hermes-state.evidence-detail-trigger.is-running {
  border-color: rgba(13, 143, 74, 0.32);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(8, 101, 52, 0.12);
}

.hermes-state.evidence-detail-trigger.is-running:hover {
  border-color: rgba(13, 143, 74, 0.62);
  box-shadow: 0 10px 26px rgba(8, 101, 52, 0.18);
}

.detail-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  box-shadow: -24px 0 72px rgba(70, 34, 9, 0.18);
  color: var(--ink);
}

.detail-drawer[open] {
  display: block;
  animation: detail-drawer-in 300ms var(--ease-out) both;
}

.detail-drawer::backdrop {
  background: rgba(43, 23, 18, 0.38);
  backdrop-filter: blur(2px);
}

.detail-drawer-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.detail-drawer-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fffdf9, #fff8e9);
}

.detail-drawer-header > div { min-width: 0; }
.detail-drawer-header span { color: #9a5500; font-size: 12px; font-weight: 720; }
.detail-drawer-header h2 { margin: 5px 0 0; font-size: 24px; line-height: 1.3; }
.detail-drawer-header .icon-action { flex: 0 0 auto; background: #fff; }

.detail-drawer-status {
  flex: 0 0 auto;
  margin: 18px 24px 0;
  padding: 11px 13px;
  border: 1px solid #f0d7b8;
  border-radius: var(--radius-control);
  background: #fff8e9;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.detail-drawer[data-state="loading"] .detail-drawer-status::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border: 2px solid rgba(245, 155, 0, 0.3);
  border-top-color: var(--orange);
  border-radius: 50%;
  content: "";
  animation: spin 0.8s linear infinite;
}

.detail-drawer[data-state="error"] .detail-drawer-status {
  border-color: #f0b5ad;
  background: #fff8f6;
  color: #8f1b2e;
}

.detail-drawer[data-state="unavailable"] .detail-drawer-status {
  border-color: #d8d2cc;
  background: #faf9f7;
  color: var(--missing);
}

.detail-drawer-content {
  min-height: 0;
  flex: 1 1 auto;
  padding: 4px 24px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-drawer-content[hidden] { display: none; }
.detail-drawer-content section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-drawer-content h3 { margin: 0 0 12px; font-size: 14px; }
.detail-drawer-content p,
.detail-drawer-content li { color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.detail-drawer-content p { margin: 0; }
.detail-drawer-content ul { margin: 0; padding-left: 20px; }

.detail-facts,
.detail-metrics { margin: 0; }
.detail-facts > div,
.detail-metrics > div {
  display: grid;
  grid-template-columns: minmax(108px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #f2e9df;
}
.detail-facts > div:last-child,
.detail-metrics > div:last-child { border-bottom: 0; }
.detail-facts dt,
.detail-metrics dt { color: var(--muted); font-size: 12px; }
.detail-facts dd,
.detail-metrics dd { margin: 0; color: var(--ink); font-family: var(--font-numeric); font-size: 13px; font-weight: 680; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.detail-source-link { width: 100%; margin-top: 24px; }
.detail-source-link[hidden] { display: none; }

.detail-alerts-section[hidden] { display: none; }
.detail-alert-list { display: grid; gap: 12px; }

.detail-alert-card {
  padding: 15px;
  border: 1px solid #f0b5ad;
  border-radius: var(--radius-control);
  background: linear-gradient(145deg, #fffaf8, #fff5f2);
}

.detail-alert-card header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-alert-card header svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--china-red);
}

.detail-alert-card header strong {
  color: #8f1b2e;
  font-size: 14px;
  line-height: 1.5;
}

.detail-alert-card dl { display: grid; gap: 10px; margin: 0; }
.detail-alert-card dl > div { display: grid; gap: 3px; }
.detail-alert-card dt { color: var(--muted); font-size: 11px; font-weight: 720; }
.detail-alert-card dd { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }

.detail-alert-empty {
  padding: 16px;
  border: 1px solid #b9dfca;
  border-radius: var(--radius-control);
  background: #f3fbf6;
  color: #0b7a3e;
  font-size: 13px;
  line-height: 1.65;
}

@keyframes detail-drawer-in {
  from { opacity: 0.8; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 520px) {
  .detail-drawer { width: 100%; border-left: 0; }
  .detail-drawer-header { padding: 20px 18px 17px; }
  .detail-drawer-header h2 { font-size: 21px; }
  .detail-drawer-status { margin: 14px 18px 0; }
  .detail-drawer-content { padding: 2px 18px 28px; }
  .detail-facts > div,
  .detail-metrics > div { grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-drawer[open],
  .detail-drawer[data-state="loading"] .detail-drawer-status::before { animation: none !important; }
}

/* AI Plus -> AI First -> AI Native evolution example. */
.workflow-conclusion.ai-evolution {
  display: block;
  min-height: 0;
  padding: 20px;
  border-color: #efc8be;
  background: linear-gradient(145deg, #fffaf7 0%, #fff7f1 52%, #fff9ed 100%);
  color: var(--ink);
}

.ai-evolution-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efd8cf;
}

.ai-evolution-header span {
  display: block;
  margin-bottom: 5px;
  color: var(--china-red);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.ai-evolution-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.ai-evolution-header p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.ai-evolution-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ai-evolution-stage {
  position: relative;
  min-width: 0;
  padding: 15px 16px 16px;
  border: 1px solid #eadbd4;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.82);
}

.ai-evolution-stage:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -13px;
  width: 24px;
  height: 24px;
  border: 1px solid #efd6cc;
  border-radius: 50%;
  background: #fffaf6;
  color: var(--orange);
  content: "→";
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  transform: translateY(-50%);
}

.ai-evolution-stage > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8eee9;
  color: #8f5e51;
  font-size: 9px;
  font-weight: 720;
}

.workflow-conclusion.ai-evolution .ai-evolution-stage > strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.ai-evolution-stage h3 {
  margin: 8px 0 0;
  color: var(--china-red);
  font-size: 13px;
  line-height: 1.45;
}

.ai-evolution-stage p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.ai-evolution-stage--first {
  border-color: #ef9f84;
  background: linear-gradient(150deg, #fff 0%, #fff2ea 100%);
  box-shadow: 0 10px 24px rgba(210, 57, 45, 0.08);
}

.ai-evolution-stage--first > span {
  background: var(--china-red);
  color: #fff;
}

.ai-evolution-stage--native {
  border-color: #edc66f;
  background: linear-gradient(150deg, #fff 0%, #fff9e8 100%);
}

.ai-evolution-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--surface-red);
  color: var(--china-red);
  text-align: center;
}

.ai-evolution-summary svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.workflow-conclusion.ai-evolution .ai-evolution-summary strong {
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .workflow-conclusion.ai-evolution { padding: 17px 15px; }
  .ai-evolution-header { display: block; }
  .ai-evolution-header h2 { font-size: 19px; }
  .ai-evolution-header p { margin-top: 7px; text-align: left; }
  .ai-evolution-path { grid-template-columns: 1fr; gap: 13px; }
  .ai-evolution-stage:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -19px;
    content: "↓";
    transform: translateX(50%);
  }
  .ai-evolution-summary { align-items: flex-start; text-align: left; }
}
