/* Interactive product walkthrough. No application state or live execution. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/dist/fonts/SpaceGrotesk-variable.8e085aa43809.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root,
body[data-theme="dark"] {
  color-scheme: dark;
  --guide-bg: #171923;
  --guide-surface: #222531;
  --guide-raised: #2a2e3b;
  --guide-soft: #1c1f2a;
  --guide-ink: #f4f6f8;
  --guide-muted: #aeb5c4;
  --guide-line: #3b4050;
  --guide-green: #0ab39c;
  --guide-accent: #54dac4;
  --guide-tint: rgba(10, 179, 156, .1);
  --guide-danger: #ffb0a9;
  --guide-danger-bg: #422c33;
  --guide-warning: #efd291;
  --guide-warning-bg: #3b3427;
  --guide-info: #aecdfb;
  --guide-info-bg: #273448;
  --guide-shadow: 0 16px 42px rgba(0, 0, 0, .17);
  --guide-sidebar: #343541;
  --guide-radius: 10px;
}

body[data-theme="light"] {
  color-scheme: light;
  --guide-bg: #f2f2f2;
  --guide-surface: #fff;
  --guide-raised: #f8f9fa;
  --guide-soft: #f3f5f6;
  --guide-ink: #343541;
  --guide-muted: #646a78;
  --guide-line: #dce0e5;
  --guide-accent: #087c6c;
  --guide-tint: #eaf8f5;
  --guide-danger: #a83139;
  --guide-danger-bg: #fff0ee;
  --guide-warning: #886117;
  --guide-warning-bg: #fff7e4;
  --guide-info: #315e98;
  --guide-info-bg: #eef4fd;
  --guide-shadow: 0 16px 42px rgba(52, 53, 65, .075);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--guide-bg);
  color: var(--guide-ink);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--guide-green);
  outline-offset: 4px;
}
a { color: var(--guide-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { letter-spacing: -.04em; }
p + p { margin-top: 12px; }
strong { font-weight: 600; }
code, .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em;
  overflow-wrap: anywhere;
}
::selection { background: rgba(10, 179, 156, .28); }
.muted { color: var(--guide-muted); }
.eyebrow, .section-eyebrow {
  display: block;
  color: var(--guide-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* The top bar belongs to the walkthrough; the workspace below resembles the app. */
.guide-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 28px;
  background: var(--guide-surface);
  border-bottom: 1px solid var(--guide-line);
}
.guide-brand { display: flex; align-items: center; gap: 15px; color: var(--guide-ink); text-decoration: none; }
.guide-brand img { width: 155px; height: 28px; object-fit: contain; object-position: left center; }
.guide-brand > span { padding-left: 15px; border-left: 1px solid var(--guide-line); color: var(--guide-muted); font-size: 12px; }
.guide-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--guide-line);
  border-radius: 7px;
  background: transparent;
  color: var(--guide-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.toolbar-control:hover { background: var(--guide-raised); border-color: var(--guide-muted); }
.simulation-banner {
  position: sticky;
  top: 72px;
  z-index: 29;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--guide-soft);
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}
.simulation-banner strong { color: var(--guide-accent); }

/* The selection page is a concise agenda, not another slide deck. */
.chooser { max-width: 1280px; margin: 0 auto; padding: 48px 28px 64px; }
.chooser-heading { max-width: 830px; margin-bottom: 32px; }
.chooser-heading .eyebrow { margin-bottom: 12px; text-transform: none; }
.chooser-heading h1 { font-size: clamp(32px, 4vw, 50px); text-wrap: balance; }
.chooser-heading p { max-width: 720px; margin-top: 17px; color: var(--guide-muted); font-size: 17px; line-height: 1.6; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 246px;
  padding: 25px;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
  background: var(--guide-surface);
  text-align: left;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .025);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.scenario-card:hover { border-color: var(--guide-green); background: var(--guide-raised); transform: translateY(-2px); }
.scenario-card.recommended { border-color: var(--guide-green); background: var(--guide-tint); }
.scenario-number { color: var(--guide-accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.scenario-number > span { margin-left: 12px; font-size: 10px; }
.chooser-note { margin-top: 24px; max-width: 860px; color: var(--guide-muted); font-size: 12px; }
.chooser-heading .eyebrow { text-transform: none; }
.scenario-audience { margin-top: 9px; color: var(--guide-muted); font-size: 11px; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; }
.scenario-card h2 { max-width: 540px; margin: 12px 0; font-size: 24px; letter-spacing: -.025em; text-wrap: balance; }
.scenario-card p { max-width: 630px; margin-bottom: 24px; color: var(--guide-muted); font-size: 14px; }
.scenario-outcome { display: block; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--guide-line); color: var(--guide-accent); font-size: 12px; font-weight: 600; }
.scenario-readiness { margin-top: 24px; border-top: 1px solid var(--guide-line); padding-top: 16px; }
.scenario-readiness summary { cursor: pointer; color: var(--guide-accent); font-weight: 600; }
.scenario-readiness > p { margin: 14px 0; max-width: 880px; color: var(--guide-muted); }
.scenario-readiness dt { margin-top: 12px; font-weight: 600; }
.scenario-readiness dd { margin: 4px 0 0; color: var(--guide-muted); }
.scenario-readiness table { min-width: 640px; }
.scenario-readiness th[scope="row"] { min-width: 170px; text-transform: none; letter-spacing: normal; }

/* App shell and the independently labelled guide rail. */
.tour-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 280px;
  align-items: stretch;
  width: calc(100% - 40px);
  max-width: 1560px;
  min-height: calc(100vh - 150px);
  margin: 22px auto 32px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  overflow: clip;
  background: var(--guide-surface);
  box-shadow: var(--guide-shadow);
}
.app-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 24px 13px 16px; background: var(--guide-sidebar); color: #fff; }
.app-name { padding: 0 11px 18px; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.app-name > span { display: block; margin-top: 3px; font-size: 10px; color: #c6c8d3; letter-spacing: .12em; text-transform: uppercase; }
.app-name img { width: 132px; height: 24px; object-fit: contain; }
.project-chip { margin: 0 5px 25px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.17); border-radius: 7px; color: #f5f5f7; background: rgba(255,255,255,.04); font-size: 12px; }
.project-chip > span { display: block; margin-bottom: 3px; color: #c6c8d3; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.module-nav { display: flex; flex-direction: column; gap: 5px; }
.module-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d8d9e2;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}
.module-nav button:hover:not(:disabled) { background: rgba(255,255,255,.065); color: #fff; }
.module-nav button.is-active { color: #fff; border-color: rgba(10,179,156,.34); background: rgba(10,179,156,.15); font-weight: 600; }
.module-nav button.is-active::before { position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--guide-green); content: ""; }
.nav-symbol { flex: 0 0 20px; color: #aeb4c4; text-align: center; font-size: 15px; }
.is-active .nav-symbol { color: #63dfca; }
.sidebar-footer { margin-top: auto; padding: 28px 10px 0; color: #c3c5d1; font-size: 11px; line-height: 1.5; }
.sidebar-footer strong { display: block; margin-bottom: 4px; color: #fff; font-weight: 500; }
.sidebar-footer button { display: block; padding: 8px 0; border: 0; background: none; color: #e2e3eb; text-align: left; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.app-workspace { min-width: 0; background: var(--guide-bg); }
.workspace-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; min-height: 94px; padding: 20px 26px; background: var(--guide-surface); border-bottom: 1px solid var(--guide-line); }
.workspace-breadcrumb { display: block; margin-bottom: 6px; color: var(--guide-muted); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; }
.workspace-header h1 { font-size: 23px; letter-spacing: -.03em; }
#workspace-title:focus { outline: none; }
.workspace-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.workspace-body { display: grid; gap: 18px; min-width: 0; padding: 24px; align-content: start; }
.workspace-body > * { min-width: 0; }
.guide-coach { display: flex; flex-direction: column; gap: 21px; min-width: 0; padding: 24px 20px; border-left: 1px solid var(--guide-line); background: var(--guide-surface); }
.coach-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.coach-top h2 { font-size: 16px; }
.step-count { color: var(--guide-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.progress-track { width: 100%; height: 4px; overflow: hidden; background: var(--guide-line); border-radius: 4px; }
.progress-track span { display: block; height: 100%; width: var(--progress, 0%); max-width: 100%; background: var(--guide-green); border-radius: inherit; transition: width .22s ease; }
.step-nav { display: grid; gap: 4px; list-style: none; padding: 0; margin: 0; }
.step-nav li { min-width: 0; }
.step-nav button { display: flex; align-items: baseline; gap: 9px; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--guide-muted); font-size: 12px; line-height: 1.4; text-align: left; }
.step-nav button:hover { background: var(--guide-raised); color: var(--guide-ink); }
.step-nav .current button, .step-nav button.current, .step-nav button[aria-current="step"] { border-color: rgba(10,179,156,.3); background: var(--guide-tint); color: var(--guide-accent); font-weight: 600; }
.step-nav .done button, .step-nav button.done { color: var(--guide-ink); }
.step-nav .done button::after, .step-nav button.done::after { content: "✓"; margin-left: auto; color: var(--guide-accent); }
.coach-copy { padding-top: 18px; border-top: 1px solid var(--guide-line); }
.coach-copy h2 { margin-bottom: 12px; font-size: 21px; letter-spacing: -.025em; }
.coach-copy p { color: var(--guide-muted); font-size: 13px; line-height: 1.65; }
.coach-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.coach-actions button, button.primary, button.secondary, .screen-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 13px; border: 1px solid var(--guide-line); border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.coach-actions .primary, button.primary, .screen-action { border-color: var(--guide-green); background: var(--guide-green); color: #092d28; }
.coach-actions .secondary, button.secondary { background: transparent; color: var(--guide-ink); }
.coach-actions button:hover:not(:disabled), .screen-action:hover:not(:disabled) { filter: brightness(1.08); }
.autoplay { margin-top: -9px; }
.autoplay button { width: 100%; min-height: 35px; border: 0; border-radius: 5px; background: transparent; color: var(--guide-muted); font-size: 11px; }
.autoplay button:hover { color: var(--guide-accent); background: var(--guide-tint); }
.autoplay button[aria-pressed="true"] { color: var(--guide-accent); }
.autoplay p { margin-top: 7px; font-size: 10px; color: var(--guide-muted); line-height: 1.5; }
.coach-tip { margin-top: auto; padding: 13px 0 0; border-top: 1px solid var(--guide-line); color: var(--guide-muted); font-size: 11px; line-height: 1.55; }

/* Shared workspace content primitives. */
.panel { min-width: 0; padding: 21px; border: 1px solid var(--guide-line); border-radius: var(--guide-radius); background: var(--guide-surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading .section-eyebrow { margin-bottom: 6px; }
.panel-title, .panel-heading h2 { font-size: 18px; letter-spacing: -.02em; }
.panel-heading p { margin-top: 5px; color: var(--guide-muted); font-size: 12px; }
.panel > .muted { font-size: 13px; }
.panel > .metric-grid, .panel > .callout, .panel > .data-table-wrap, .panel > .flow-list, .panel > .consent-card, .panel > .muted { margin-top: 18px; }
.panel .result-lead { color: var(--guide-muted); margin-bottom: 12px; }
.callout { padding: 13px 15px; border: 1px solid var(--guide-line); border-left: 3px solid var(--guide-accent); border-radius: 6px; background: var(--guide-soft); font-size: 12px; line-height: 1.55; }
.callout strong { display: block; margin-bottom: 4px; }
.callout.warn { border-color: color-mix(in srgb, var(--guide-warning) 32%, transparent); border-left-color: var(--guide-warning); background: var(--guide-warning-bg); color: var(--guide-warning); }
.callout.info { border-color: color-mix(in srgb, var(--guide-info) 32%, transparent); border-left-color: var(--guide-info); background: var(--guide-info-bg); color: var(--guide-info); }
.callout.success { border-color: rgba(10,179,156,.3); border-left-color: var(--guide-green); background: var(--guide-tint); color: var(--guide-accent); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 16px 17px; border: 1px solid var(--guide-line); border-radius: 8px; background: var(--guide-surface); }
.metric-label { color: var(--guide-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.metric-value { font-size: clamp(23px, 2.25vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric > p, .metric > small { color: var(--guide-muted); font-size: 10px; }
.metric.danger .metric-value, .metric-value.danger { color: var(--guide-danger); }
.metric.success .metric-value, .metric-value.success { color: var(--guide-accent); }
.data-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--guide-line); border-radius: 7px; scrollbar-width: thin; scrollbar-color: var(--guide-muted) transparent; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { padding: 12px 13px; color: var(--guide-muted); background: var(--guide-raised); font-size: 10px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; line-height: 1.4; vertical-align: bottom; }
.data-table td { padding: 13px; border-top: 1px solid var(--guide-line); vertical-align: top; line-height: 1.5; }
.data-table td small { display: block; margin-top: 3px; color: var(--guide-muted); font-size: 10px; }
.data-table tbody tr:hover { background: var(--guide-tint); }
.data-table td .code { font-size: 10px; }
.data-table button { padding: 0; border: 0; background: transparent; color: var(--guide-accent); text-align: left; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-flex; align-items: center; min-height: 22px; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid var(--guide-line); border-radius: 5px; background: var(--guide-soft); color: var(--guide-muted); font-size: 10px; font-weight: 600; letter-spacing: .015em; line-height: 1.3; overflow-wrap: anywhere; }
.status-pill[data-tone="success"] { border-color: rgba(10,179,156,.3); background: var(--guide-tint); color: var(--guide-accent); }
.status-pill[data-tone="danger"] { border-color: color-mix(in srgb, var(--guide-danger) 30%, transparent); background: var(--guide-danger-bg); color: var(--guide-danger); }
.status-pill[data-tone="warning"] { border-color: color-mix(in srgb, var(--guide-warning) 30%, transparent); background: var(--guide-warning-bg); color: var(--guide-warning); }
.status-pill[data-tone="muted"] { background: var(--guide-soft); color: var(--guide-muted); }
.flow-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.flow-node { display: flex; align-items: flex-start; gap: 13px; padding: 13px; border: 1px solid var(--guide-line); border-radius: 7px; background: var(--guide-raised); }
.flow-index { display: inline-flex; flex: 0 0 29px; justify-content: center; align-items: center; width: 29px; height: 29px; border: 1px solid var(--guide-line); border-radius: 7px; color: var(--guide-accent); font-size: 11px; font-weight: 600; }
.flow-copy { flex: 1; min-width: 0; }
.flow-copy h3, .flow-copy strong { display: block; font-size: 13px; }
.flow-copy p { margin-top: 5px; color: var(--guide-muted); font-size: 12px; }
.flow-copy > span { display: block; margin-top: 5px; color: var(--guide-muted); font-size: 11px; }
.flow-node { position: relative; }
.flow-node:not(:last-child)::after { content: ''; position: absolute; left: 27px; bottom: -15px; height: 14px; border-left: 1px solid var(--guide-muted); }
.flow-node > .status-pill { flex-shrink: 0; margin-top: 3px; }
.flow-connector { display: block; width: 1px; height: 16px; margin-left: 28px; background: var(--guide-line); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.detail-pair { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--guide-line); }
.detail-pair > span:first-child, .detail-pair dt { display: block; margin-bottom: 5px; color: var(--guide-muted); font-size: 10px; font-weight: 500; letter-spacing: .035em; text-transform: uppercase; }
.detail-pair strong, .detail-pair dd { display: block; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.detail-pair p { margin-top: 4px; color: var(--guide-muted); font-size: 11px; }
.screen-action { margin-top: 16px; }
.preview-bars { display: grid; gap: 17px; padding: 3px 0; }
.result-chart { margin-top: 22px; padding: 17px; border: 1px solid var(--guide-line); border-radius: 7px; background: var(--guide-raised); }
.result-chart figcaption { margin-bottom: 17px; font-size: 12px; font-weight: 600; }
.preview-bar { display: grid; grid-template-columns: minmax(95px, .9fr) minmax(0, 2fr) auto; align-items: center; gap: 14px; font-size: 12px; }
.preview-bar > span:first-child { color: var(--guide-muted); }
.preview-bar strong { min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 16px; border-radius: 3px; background: var(--guide-soft); overflow: hidden; }
.bar-fill { display: block; width: var(--bar-width, var(--value, 0%)); max-width: 100%; height: 100%; background: var(--guide-green); border-radius: inherit; transition: width .4s ease; }
.preview-bar.danger .bar-fill { background: var(--guide-danger); }
.preview-bar.neutral .bar-fill { background: var(--guide-info); }

/* Consent is an illustrative review, never an actual OAuth transaction. */
.consent-card { padding: 23px; border: 1px solid var(--guide-line); border-radius: var(--guide-radius); background: var(--guide-surface); }
.consent-card h2 { margin-bottom: 10px; font-size: 21px; }
.consent-card > p { color: var(--guide-muted); font-size: 13px; }
.resource-scope { display: grid; gap: 10px; margin: 18px 0; padding: 17px 0; border-top: 1px solid var(--guide-line); border-bottom: 1px solid var(--guide-line); }
.resource-scope > p { font-size: 12px; color: var(--guide-muted); }
.scope-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-field { display: block; padding: 4px 7px; border: 1px solid var(--guide-line); border-radius: 4px; background: var(--guide-raised); font-size: 11px; overflow-wrap: anywhere; }
.scope-field > span:first-child { color: var(--guide-muted); }
.scope-field strong { text-align: right; overflow-wrap: anywhere; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--guide-line); border-radius: 7px; background: var(--guide-soft); font-size: 12px; line-height: 1.55; }
.consent-check input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--guide-green); }
.connection-state { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--guide-line); font-size: 12px; }

/* The assistant stays distinct from both source facts and guide narration. */
.chat-window { min-width: 0; border: 1px solid var(--guide-line); border-radius: var(--guide-radius); overflow: hidden; background: var(--guide-surface); }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 16px 19px; background: var(--guide-raised); border-bottom: 1px solid var(--guide-line); }
.chat-header strong { display: block; font-size: 15px; }
.chat-header h2 { font-size: 17px; }
.chat-header p { margin-top: 4px; color: var(--guide-muted); font-size: 11px; }
.chat-empty { padding: 8px 22px 28px; color: var(--guide-muted); }
.chat-header small, .chat-header .muted { display: block; margin-top: 2px; font-size: 10px; }
.chat-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid rgba(10,179,156,.3); border-radius: 8px; background: var(--guide-tint); color: var(--guide-accent); font-size: 12px; font-weight: 600; }
.message-user { max-width: calc(100% - 46px); margin: 22px 20px 20px 46px; padding: 15px 17px; border: 1px solid var(--guide-line); border-radius: 10px 10px 2px 10px; background: var(--guide-raised); font-size: 13px; }
.message-assistant { display: flex; gap: 11px; padding: 0 20px 22px; }
.chat-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.65; }
.chat-text h3 { margin-bottom: 10px; font-size: 17px; }
.chat-text > .section-eyebrow { margin-bottom: 9px; }
.chat-text > .callout { margin-top: 16px; }
.chat-text ul, .chat-text ol { margin: 10px 0; padding-left: 19px; }
.chat-text li + li { margin-top: 6px; }
.chat-text .data-table-wrap { margin: 13px 0; }
.chat-question { margin-bottom: 11px; color: var(--guide-ink); font-size: 16px; font-weight: 500; line-height: 1.45; }
.chat-citations { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--guide-line); font-size: 10px; color: var(--guide-muted); }
.chat-citations button, .chat-citations a { padding: 5px 8px; border: 1px solid var(--guide-line); border-radius: 5px; background: var(--guide-raised); color: var(--guide-accent); font-size: 10px; text-decoration: none; overflow-wrap: anywhere; text-align: left; }
.chat-next { margin-top: 15px; padding: 12px 14px; border-left: 3px solid var(--guide-green); background: var(--guide-tint); font-size: 12px; }
.chat-next strong { display: block; margin-bottom: 4px; color: var(--guide-accent); }
.chat-footer { padding: 12px 19px; border-top: 1px solid var(--guide-line); color: var(--guide-muted); font-size: 10px; }

.evidence-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.evidence-event { position: relative; padding: 0 0 18px; }
.evidence-event:last-child { padding-bottom: 0; }
.event-time { color: var(--guide-muted); font-size: 10px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.event-dot { position: relative; width: 8px; height: 8px; margin-top: 6px; border: 2px solid var(--guide-green); border-radius: 50%; background: var(--guide-surface); }
.event-dot[data-tone="danger"] { border-color: var(--guide-danger); }
.event-dot[data-tone="muted"] { border-color: var(--guide-muted); }
.event-copy { min-width: 0; }
.event-copy strong { display: block; font-size: 13px; }
.event-copy p { margin-top: 4px; color: var(--guide-muted); font-size: 12px; }
.event-reference { display: inline-block; margin-top: 6px; font-size: 10px; color: var(--guide-accent); overflow-wrap: anywhere; }
.evidence-event button { display: grid; grid-template-columns: 74px 10px minmax(0,1fr) auto; gap: 10px; align-items: start; width: 100%; padding: 12px; border: 1px solid var(--guide-line); border-radius: 6px; background: var(--guide-raised); color: var(--guide-ink); font-size: 11px; text-align: left; }
.evidence-event button:hover { border-color: var(--guide-green); }
.evidence-event .status-pill { font-size: 9px; }
.finish-card { padding: 28px; border: 1px solid rgba(10,179,156,.35); border-radius: var(--guide-radius); background: var(--guide-tint); }
.finish-card h2 { margin-bottom: 14px; font-size: 27px; letter-spacing: -.03em; }
.finish-card .section-eyebrow { margin-bottom: 12px; }
.finish-card p { max-width: 600px; color: var(--guide-muted); font-size: 14px; }
.finish-card ul { padding-left: 19px; margin: 16px 0; }
.finish-card li + li { margin-top: 9px; }
.finish-card .screen-action { margin-right: 8px; }

dialog.evidence-dialog { width: min(850px, calc(100vw - 40px)); max-height: min(86vh, 920px); padding: 0; border: 1px solid var(--guide-line); border-radius: 12px; background: var(--guide-surface); color: var(--guide-ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog.evidence-dialog::backdrop { background: rgba(10,14,23,.7); backdrop-filter: blur(3px); }
.evidence-dialog > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 25px; border-bottom: 1px solid var(--guide-line); background: var(--guide-surface); }
.evidence-dialog h2 { font-size: 23px; letter-spacing: -.025em; }
.dialog-close { flex-shrink: 0; min-height: 35px; padding: 7px 11px; border: 1px solid var(--guide-line); border-radius: 6px; background: var(--guide-raised); font-size: 12px; }
.dialog-close:hover { border-color: var(--guide-green); color: var(--guide-accent); }
.dialog-content { display: grid; gap: 20px; padding: 25px; }
.dialog-content > p { color: var(--guide-muted); font-size: 13px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.comparison-grid > * { min-width: 0; padding: 18px; border: 1px solid var(--guide-line); border-radius: 8px; background: var(--guide-raised); }
.comparison-grid h3 { margin-bottom: 9px; font-size: 16px; }
.comparison-grid p { color: var(--guide-muted); font-size: 12px; }
.comparison-grid .metric-value { font-size: 28px; color: var(--guide-ink); margin-bottom: 14px; }
.comparison-grid .status-pill { margin-bottom: 12px; }

@media (min-width: 1600px) {
  .tour-shell { grid-template-columns: 200px minmax(0, 1fr) 300px; }
  .workspace-body { padding: 28px; }
  .guide-coach { padding: 27px 24px; }
}
@media (max-width: 1200px) {
  .tour-shell { grid-template-columns: 165px minmax(0, 1fr) 255px; width: calc(100% - 28px); }
  .workspace-body { padding: 18px; gap: 15px; }
  .workspace-header { padding: 19px; }
  .guide-coach { padding: 21px 16px; }
  .panel { padding: 17px; }
  .app-sidebar { padding-inline: 9px; }
  .module-nav button { font-size: 11px; gap: 8px; padding-inline: 8px; }
  .metric { padding: 13px; }
  .metric-grid { gap: 9px; }
  .data-table th, .data-table td { padding: 10px; }
}
@media (max-width: 1020px) {
  .guide-brand > span { display: none; }
  .tour-shell { grid-template-columns: 175px minmax(0, 1fr); }
  .guide-coach { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 28px; border-left: 0; border-top: 1px solid var(--guide-line); padding: 23px; }
  .coach-top, .progress-track { grid-column: 1 / -1; }
  .step-nav { grid-column: 1; grid-row: span 3; align-self: start; }
  .coach-copy { grid-column: 2; border-top: 0; padding-top: 0; }
  .coach-actions, .autoplay { grid-column: 2; }
  .coach-tip { grid-column: 1 / -1; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-card.recommended { min-height: 215px; }
  .workspace-body { padding: 24px; }
}
@media (max-width: 700px) {
  .guide-topbar { position: relative; min-height: 65px; align-items: flex-start; padding: 17px 18px; gap: 13px; flex-wrap: wrap; }
  .guide-brand { min-height: 32px; }
  .guide-brand img { width: 133px; height: 25px; }
  .guide-top-actions { gap: 6px; margin-left: auto; }
  .toolbar-control { min-height: 33px; padding: 6px 9px; font-size: 11px; }
  .simulation-banner { top: 0; display: block; padding: 10px 18px; text-align: left; font-size: 11px; }
  .simulation-banner strong { margin-right: 5px; }
  .chooser { padding: 32px 18px 40px; }
  .chooser-heading { margin-bottom: 25px; }
  .chooser-heading h1 { font-size: 34px; }
  .chooser-heading p { font-size: 15px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 12px; }
  .scenario-card, .scenario-card.recommended { grid-column: auto; min-height: 0; padding: 22px; }
  .scenario-card h2 { font-size: 23px; }
  .scenario-card p { margin-bottom: 19px; }
  .tour-shell { width: calc(100% - 20px); margin-top: 13px; grid-template-columns: minmax(0, 1fr); border-radius: 9px; }
  .app-sidebar { padding: 13px 12px 10px; }
  .app-name { display: none; }
  .project-chip { margin: 0 3px 11px; padding: 7px 10px; width: fit-content; font-size: 11px; }
  .project-chip > span { display: inline; margin-right: 8px; }
  .module-nav { flex-direction: row; gap: 6px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; scrollbar-color: #6a7183 transparent; }
  .module-nav button { flex: 0 0 auto; width: auto; min-height: 35px; white-space: nowrap; }
  .module-nav button.is-active::before { left: 8px; right: 8px; top: auto; bottom: -4px; width: auto; height: 2px; }
  .nav-symbol { display: none; }
  .sidebar-footer { display: none; }
  .workspace-header { min-height: 83px; padding: 18px; }
  .workspace-header h1 { font-size: 22px; }
  .workspace-body { padding: 15px; gap: 14px; }
  .guide-coach { display: flex; gap: 17px; padding: 21px; }
  .coach-copy { padding-top: 17px; border-top: 1px solid var(--guide-line); }
  .step-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .step-nav button { padding: 8px 7px; font-size: 11px; }
  .coach-copy h2 { font-size: 22px; }
  .coach-actions button { min-height: 44px; font-size: 13px; }
  .coach-tip { margin-top: 0; }
  .panel { padding: 16px; }
  .panel-heading { flex-wrap: wrap; gap: 10px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 12px 10px; }
  .metric-value { font-size: 25px; }
  .metric-label { font-size: 10px; }
  .data-table { min-width: 440px; }
  .detail-grid { gap: 0 15px; }
  .flow-node { flex-wrap: wrap; gap: 10px; }
  .flow-copy { flex-basis: calc(100% - 44px); }
  .flow-node > .status-pill { margin-left: 39px; }
  .preview-bar { grid-template-columns: minmax(74px, 1fr) minmax(0, 1.6fr) auto; gap: 10px; font-size: 11px; }
  .bar-track { height: 14px; }
  .consent-card { padding: 18px; }
  .scope-field { gap: 14px; }
  .message-user { margin: 18px 14px 18px 31px; max-width: calc(100% - 45px); padding: 13px; }
  .message-assistant { gap: 9px; padding: 0 14px 20px; }
  .message-assistant .chat-avatar { flex-basis: 24px; width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
  .chat-text { font-size: 12px; }
  .chat-text .data-table { min-width: 390px; }
  .chat-header, .chat-footer { padding-inline: 15px; }
  .chat-question { font-size: 15px; }
  .chat-citations { gap: 6px; }
  .finish-card { padding: 22px; }
  .finish-card h2 { font-size: 25px; }
  .evidence-event button { grid-template-columns: 54px 8px minmax(0,1fr); gap: 8px; }
  .evidence-event .status-pill { grid-column: 3; }
  dialog.evidence-dialog { width: calc(100vw - 20px); max-height: 90dvh; }
  .evidence-dialog > header { padding: 17px; gap: 12px; }
  .evidence-dialog h2 { font-size: 20px; }
  .dialog-content { padding: 17px; gap: 16px; }
  .comparison-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .guide-top-actions { margin-left: 0; width: 100%; }
  .chooser-heading h1 { font-size: 30px; }
  .workspace-body { padding: 11px; }
  .panel { padding: 13px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; }
  .metric-value { grid-column: 2; grid-row: 1; font-size: 25px; }
  .metric-label { grid-column: 1; grid-row: 1; font-size: 11px; }
  .metric > small, .metric > p { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scenario-card:hover { transform: none; }
}
@media print {
  body { color-scheme: light; background: #fff; color: #222; }
  .guide-topbar { position: static; }
  .guide-top-actions, .coach-actions, .autoplay, .screen-action { display: none; }
  .tour-shell { width: 100%; max-width: none; display: block; box-shadow: none; }
  .app-sidebar { display: none; }
  .guide-coach { border: 0; border-top: 1px solid #aaa; }
  .panel, .metric, .consent-card, .chat-window { break-inside: avoid; }
  .data-table-wrap { overflow: visible; }
}
