@layer controls, layout;
@layer controls {
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/roboto-mono-latin-regular.woff2") format("woff2");
}

/* approved Store Overview and Connection frames. */
.store-workspace-frame[data-store-workspace-active-tab="overview"],
.store-workspace-frame[data-store-workspace-active-tab="gate"],
.store-workspace-frame[data-store-workspace-active-tab="connect"] {
  display: grid;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 761px) {
  .store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) {
    width: 100%;
    gap: 14px;
    margin-top: 24px;
  }

  .store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tabs a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
.approved-store-back { margin-bottom: -2px; }
.approved-store-back a,
.store-overview-text-link { color: var(--accent); text-decoration: none; }
.approved-store-identity h1 { margin: 0 0 4px; font-size: 24px; line-height: 34px; }
.approved-store-identity p { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tabs {
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  border: 0;
  padding: 0;
}
.store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tabs a {
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  padding: 11px 12px;
}
.store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tabs a[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.store-workspace-tab-row { display: contents; }
.approved-store-overview,
.approved-store-connection { display: grid; gap: 16px; min-width: 0; }
.store-overview-section-head,
.store-overview-latest-head,
.store-overview-recent > header,
.approved-existing-client > header,
.approved-connection-check > header,
.approved-connection-setup > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.store-overview-section-head { align-items: center; }
.store-overview-section-head h1 { margin: 0; font-size: 20px; line-height: 29px; }
.store-overview-section-head p { margin: 4px 0 0; }
.store-overview-section-head > .secondary-button { min-height: 40px; border-color: var(--line); background: var(--panel); font-size: 13px; font-weight: 500; line-height: 20px; }
.store-overview-latest,
.store-overview-history,
.approved-store-overview > .store-contents,
.approved-store-overview > .store-world-history,
.store-overview-recent,
.approved-hosted-mcp,
.approved-existing-client,
.approved-connection-check,
.approved-connection-setup {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: none;
}
.store-overview-latest-head { align-items: center; }
.store-overview-latest-head h2,
.store-overview-history h2,
.store-overview-recent h2,
.approved-store-connection h2 { margin: 0 0 4px; font-size: 16px; line-height: 24px; }
.store-overview-latest-head h2 { font-size: 20px; line-height: 29px; }
.store-overview-latest-head p,
.store-overview-history p,
.approved-store-connection p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.store-overview-latest-head p { font-size: 13px; line-height: 19px; }
.store-overview-latest-head .store-overview-text-link,
.store-overview-history > header .store-overview-text-link,
.store-overview-recent > header > a,
.store-overview-run-actions .secondary-button,
.approved-hosted-mcp .store-overview-text-link,
.approved-connection-check .secondary-button,
.approved-setup-actions button,
.approved-version-summary .store-overview-text-link {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
.store-overview-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.store-overview-choice {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}
.store-overview-choice:hover:not(:disabled) { border-color: var(--line-strong); background: #f4f6f9; }
.store-overview-choice:disabled { opacity: .72; cursor: not-allowed; }
.store-overview-choice > span { display: grid; gap: 3px; min-width: 0; }
.store-overview-choice strong { font-size: 14px; line-height: 20px; }
.store-overview-choice em,
.store-overview-choice small { color: var(--muted); font-size: 13px; font-style: normal; line-height: 20px; overflow-wrap: anywhere; }
.store-overview-included-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.store-run-quote-retry { margin-top: 10px; }
.store-overview-situation { margin-top: 16px; border-top: 1px solid var(--line); }
.store-overview-situation dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 240px));
  gap: 18px 32px;
  justify-content: start;
  margin: 0;
}
.store-overview-situation dl > div { display: flex; flex-direction: column; padding-top: 18px; }
.store-overview-situation dt { order: 2; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 18px; }
.store-overview-situation dd { order: 1; margin: 0; font-size: 24px; font-weight: 600; line-height: 35px; }
.store-overview-situation p { margin-top: 16px; color: var(--muted); font-size: 13px; }
.store-overview-history > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.store-overview-history-metric { display: grid; gap: 8px; margin: 26px 0 12px; }
.store-overview-history-metric strong { font-size: 24px; font-weight: 600; line-height: 35px; }
.store-overview-history-metric span { color: var(--muted); font-size: 13px; line-height: 19px; }
.store-overview-history .store-baseline-toolbar { justify-content: flex-start; margin: 0 0 8px; }
.store-overview-history .store-baseline-toolbar > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.store-overview-history .store-baseline-segmented {
  gap: 4px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.store-overview-history .store-baseline-zoom-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-dark);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: none;
}
.store-overview-history .store-baseline-zoom-button:hover,
.store-overview-history .store-baseline-zoom-button[aria-pressed="true"],
.store-overview-history .store-baseline-zoom-button[aria-pressed="true"]:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.store-overview-history .store-baseline-chart-shell { margin-top: 8px; }
.store-overview-history .store-generation { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.store-overview-history-note { margin-top: 12px !important; }
.approved-store-overview .store-contents { box-shadow: none; }
.approved-store-overview .store-contents-head h3 { font-size: 16px; }
.approved-store-overview .store-contents-head .eyebrow { display: none; }
.store-overview-run-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(180px, 1fr) auto minmax(210px, auto);
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 0;
}
.store-overview-run-row:first-child { margin-top: 12px; }
.store-overview-run-row > span:first-child { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.store-overview-run-row > span:nth-child(2),
.store-overview-run-row time { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.store-overview-run-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.approved-hosted-mcp { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.approved-connection-materials { display: grid; gap: 16px; margin: 16px 0; }
.approved-connection-materials > div { position: relative; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--soft); padding: 12px; }
.approved-connection-materials dt { padding-right: 40px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 18px; }
.approved-connection-materials dd { min-width: 0; margin: 18px 0 0; }
.approved-connection-materials code { display: block; min-width: 0; font-family: "Roboto Mono", monospace; font-size: 12px; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; }
.approved-connection-materials .icon-copy { position: absolute; top: 7px; right: 8px; }
.icon-copy { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); padding: 5px 7px; }
.icon-copy svg { display: block; width: 20px; height: 20px; }
.approved-version-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; line-height: 19px; }
.approved-version-summary a { color: var(--accent); text-decoration: none; }
.approved-connection-check header { align-items: center; }
.approved-existing-client > header h2 { margin-bottom: 16px; }
.approved-connection-check-copy { margin-top: 12px; }
.approved-connection-check-copy p + p { margin-top: 4px; }
.approved-setup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.store-api-setup-jump { display: flex; flex-wrap: wrap; gap: 4px; }
.store-api-setup-jump button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; padding: 8px 12px; color: var(--accent); font-size: 13px; font-weight: var(--w-med); line-height: 20px; }
.store-api-setup-support,
.store-api-setup-section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; align-self: stretch; min-width: 0; }
.store-api-setup-support { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 16px; }
.store-api-setup-support h3,
.store-api-setup-section h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 24px; }
.store-api-setup-default { margin: 0; color: var(--ink); font-size: 14px; font-weight: var(--w-med); line-height: 21px; }
.store-api-setup-dates { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.store-api-setup-dates p { margin: 0; }
.store-api-setup-section > header { display: flex; align-items: center; gap: 8px; align-self: stretch; }
.store-api-setup-section > header h3 { flex: 1 1 auto; min-width: 0; }
.store-api-setup-copied { color: var(--muted); font-size: 13px; line-height: 19px; }
.store-api-setup-code { align-self: stretch; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 16px; color: var(--ink); font-family: "Roboto Mono", monospace; font-size: 12px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.store-api-setup-unavailable { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.store-panel-drawer { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(510px, 100vw); height: 100dvh; overflow: hidden; padding: 0; border-radius: 0; background: var(--panel); }
.store-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; }
.store-panel-head h2 { margin: 0; font-size: 18px; line-height: 1.5; }
.store-panel-close { min-height: 40px; border: 0; background: transparent; padding: 0; color: var(--accent); }
.store-panel-close-narrow { display: none; }
.store-panel-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 24px; overflow-wrap: anywhere; }
.store-panel-content > * { max-width: 100%; margin: 0; }
.store-panel-heading { font-size: 20px; line-height: 1.45; }
.store-panel-subject { color: var(--ink); font-size: 14px; font-weight: var(--w-med); line-height: 1.5; }
.store-panel-status,
.store-panel-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.store-panel-copy { color: var(--ink); font-size: 14px; line-height: 1.5; }
.store-panel-copy.store-panel-muted { color: var(--muted); }
.store-panel-facts { display: grid; gap: 12px; align-self: stretch; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 16px; }
.store-panel-facts > div { display: grid; gap: 2px; }
.store-panel-facts dt { color: var(--muted); font-size: 12px; font-weight: var(--w-med); line-height: 1.5; }
.store-panel-facts dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: var(--w-med); line-height: 1.5; }
.store-panel-action { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; align-self: stretch; }
.store-panel-action + .store-panel-action { border-top: 1px solid var(--line); padding-top: 16px; }
.store-panel-action h4 { margin: 0; font-size: 16px; line-height: 1.5; }
.store-panel-action p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.store-panel-action .store-refresh-status { font-size: 13px; }
.store-panel-content .drawer-input { align-self: stretch; }
.store-panel-content .drawer-status:empty { display: none; }
.store-panel-content .store-cleanup-blocked-actions { align-self: stretch; margin: 0; }
.store-panel-footer { display: flex; flex-wrap: wrap; gap: 8px; background: var(--panel); padding: 24px; }

@media (max-width: 760px) {
  .store-panel-drawer { width: 100vw; max-width: none; border-left: 0; }
  .store-panel-head { min-height: 72px; padding: 0 16px 0 24px; }
  .store-panel-content,
  .store-panel-footer { padding: 16px; }
  .store-panel-close-wide { display: none; }
  .store-panel-close-narrow { display: inline; }
  .store-workspace-frame[data-store-workspace-active-tab="overview"],
  .store-workspace-frame[data-store-workspace-active-tab="connect"] { gap: 16px; }
  .approved-store-identity h1 { font-size: 20px; line-height: 28px; }
  .store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tabs { display: grid; gap: 8px; }
  .store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tab-row { display: flex; flex-wrap: nowrap; gap: 8px; }
  .store-workspace-frame:is([data-store-workspace-active-tab="overview"], [data-store-workspace-active-tab="gate"], [data-store-workspace-active-tab="connect"]) .store-workspace-tabs a { min-width: 0; padding: 11px 12px; text-align: center; white-space: nowrap; }
  .store-overview-section-head { flex-direction: row; align-items: center; }
  .store-overview-latest-head,
  .store-overview-recent > header,
  .approved-existing-client > header,
  .approved-connection-check > header,
  .approved-connection-setup > header { align-items: stretch; flex-direction: column; }
  .store-overview-latest,
  .store-overview-history,
  .approved-store-overview > .store-contents,
  .approved-store-overview > .store-world-history,
  .store-overview-recent,
  .approved-hosted-mcp,
  .approved-existing-client,
  .approved-connection-check,
  .approved-connection-setup { padding: 20px; }
  .store-overview-choices,
  .store-overview-situation dl { grid-template-columns: minmax(0, 1fr); }
  .store-overview-situation dl > div { padding-top: 16px; }
  .store-overview-run-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .store-overview-run-actions { justify-content: flex-start; }
  .approved-hosted-mcp { align-items: flex-start; flex-direction: column; }
  .approved-hosted-mcp { padding-bottom: 31px; }
  .approved-version-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .approved-setup-actions { flex-direction: column; }
  .approved-setup-actions > button { width: 100%; }
}

:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --ink: #171923;
  --muted: #697386;
  --line: #e5e8ef;
  --line-strong: #d8dde8;
  --soft: #f8fafc;
  --text: var(--ink);
  --danger: var(--red-ink);
  --accent: #6258f6;
  --accent-dark: #463ed1;
  --accent-soft: #eeedff;
  --color-background-info: #eef6ff;
  --store-dev: #c98210;
  --store-virtual: #2f9d68;
  --green: #dff6e8;
  --green-ink: #11613a;
  --amber: #fff1d8;
  --amber-ink: #855400;
  --red: #ffe4e2;
  --red-ink: #a1261d;
  --gray: #eef1f5;
  --gray-ink: #4b5565;
  --status-supported-bg: var(--green);
  --status-supported-border: #b8d8c5;
  --status-supported-ink: var(--green-ink);
  --status-supported-icon: #2f9d68;
  --status-rejected-bg: #fff0ee;
  --status-rejected-border: #efaaa4;
  --status-rejected-ink: #8f2a20;
  --status-rejected-icon: #c74436;
  --status-unsupported-bg: #fff8e8;
  --status-unsupported-border: #ecd092;
  --status-unsupported-ink: var(--amber-ink);
  --status-unsupported-icon: #b7790e;
  --status-error-bg: var(--red);
  --status-error-border: #f0b9b5;
  --status-error-ink: var(--red-ink);
  --status-error-icon: var(--red-ink);
  --status-neutral-bg: var(--gray);
  --status-neutral-border: var(--line-strong);
  --status-neutral-ink: var(--gray-ink);
  --status-neutral-icon: var(--gray-ink);
  --status-lifecycle-bg: #eef2ff;
  --status-lifecycle-border: #c8d3ff;
  --status-lifecycle-ink: var(--accent-dark);
  --status-lifecycle-icon: var(--accent);
  --status-sample-bg: #f3efff;
  --status-sample-border: #d6c7ff;
  --status-sample-ink: #5f3d9a;
  --status-sample-icon: #7c5ac7;
  --shadow: 0 10px 24px rgba(21, 27, 38, 0.05);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w-reg: 400;
  --w-med: 500;
  --w-semi: 600;
  --w-bold: 700;
  --type-body: 13px;
  --type-secondary: 12px;
  --type-micro: 11px;
  --type-section: 16px;
  --type-title: 20px;
  --type-display: 24px;
}

/* the receipt is a technical evaluation first; modeled economics are context. */
.report-detail-page .receipt-document {
  width: min(1150px, 100%);
  margin-inline: auto;
  gap: 16px;
}

#viewReportDetail .report-detail-head h1 {
  margin-top: 3px;
  font-size: var(--type-section);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.receipt-document .receipt-answer-layer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.receipt-document .receipt-answer-layer > * {
  grid-column: 1;
}

.receipt-identity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 var(--receipt-inline-gutter) 12px;
}

.receipt-identity-header .receipt-primary-identity {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-agent-status {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--amber-ink) 25%, var(--line));
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 5px 9px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  white-space: nowrap;
}

.receipt-document .receipt-answer-layer > .receipt-hero {
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-ink);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px var(--receipt-inline-gutter);
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 0;
  padding: 0;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > i {
  align-self: center;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > strong {
  /* the page's ONE authority for this headline's size. It was declared three times --
     here, in the receipt-detail route block, and again under #viewReportDetail -- so a display leaf went
     to a sentence. Body size, semibold; the display token belongs to the money. */
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > em {
  color: var(--green-ink);
  font-weight: var(--w-semi);
}

.receipt-verdict-supporting {
  grid-column: 1 / -1;
  max-width: 900px;
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.5;
}

.receipt-scope-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.receipt-scope {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 7px 10px;
  font-size: var(--type-secondary);
  line-height: 1.3;
}

.receipt-scope strong {
  color: var(--ink);
}

.receipt-scope-observed {
  border-color: color-mix(in srgb, var(--green-ink) 20%, var(--line));
  background: color-mix(in srgb, var(--green) 55%, var(--panel));
}

.receipt-scope-modeled {
  border-color: color-mix(in srgb, var(--amber-ink) 18%, var(--line));
  background: color-mix(in srgb, var(--amber) 48%, var(--panel));
}

.receipt-document .receipt-technical-summary,
.receipt-document .receipt-evaluation-answers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0;
  overflow: hidden;
}

.receipt-technical-summary > div,
.receipt-evaluation-answers > div {
  min-width: 0;
  padding: 14px var(--receipt-inline-gutter);
}

.receipt-technical-summary > div + div,
.receipt-evaluation-answers > div + div {
  border-left: 1px solid var(--line);
}

.receipt-technical-summary span,
.receipt-evaluation-answers span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.receipt-technical-summary strong,
.receipt-evaluation-answers strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: var(--type-body);
}

.receipt-technical-summary p,
.receipt-evaluation-answers p {
  margin-top: 4px;
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.receipt-document .receipt-modeled-outcome {
  border: 1px solid color-mix(in srgb, var(--amber-ink) 15%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--amber) 32%, var(--panel));
  padding: 16px var(--receipt-inline-gutter);
}

.receipt-modeled-outcome .eyebrow {
  color: var(--amber-ink);
}

.receipt-modeled-boundary {
  max-width: 920px;
}

.receipt-modeled-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.receipt-modeled-values > div {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--amber-ink) 12%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  padding: 11px 12px;
}

.receipt-modeled-values span {
  display: block;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-modeled-values strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--type-section);
  font-variant-numeric: tabular-nums;
}

.receipt-modeled-refusal {
  margin-bottom: 0;
}

.receipt-document .receipt-primary-moment {
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px var(--receipt-inline-gutter);
}

.receipt-primary-moment p {
  margin: 0;
  color: var(--gray-ink);
  font-size: var(--type-body);
}

.receipt-actions-primary {
  display: grid;
  gap: 7px;
  padding: 2px var(--receipt-inline-gutter) 0;
}

.receipt-actions-visible {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-actions-primary > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-action-overflow {
  position: relative;
}

.receipt-action-overflow > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
}

.receipt-action-overflow > summary::-webkit-details-marker {
  display: none;
}

.receipt-action-overflow > summary::after {
  content: "···";
  margin-left: 7px;
  letter-spacing: 1px;
}

.receipt-action-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 6px;
  box-shadow: var(--shadow);
}

.receipt-action-menu button {
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.receipt-action-menu button:hover {
  background: var(--soft);
}

.receipt-actions-secondary {
  margin-top: 0;
}

@media (max-width: 760px) {
  .receipt-identity-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .receipt-agent-status {
    white-space: normal;
  }

  .receipt-document .receipt-verdict[data-receipt-verdict-hero] {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .receipt-document .receipt-verdict[data-receipt-verdict-hero] > em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .receipt-scope-legend,
  .receipt-document .receipt-technical-summary,
  .receipt-document .receipt-evaluation-answers,
  .receipt-modeled-values {
    grid-template-columns: 1fr;
  }

  .receipt-scope {
    border-radius: 7px;
  }

  .receipt-technical-summary > div + div,
  .receipt-evaluation-answers > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .receipt-action-overflow {
    position: relative;
  }

  .receipt-action-menu {
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 32px));
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: var(--w-reg);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent, #fff);
  padding: 0 12px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:hover { background: var(--accent-dark); }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.secondary-button {
  background: #fff;
  color: var(--accent);
  border-color: var(--line-strong);
}

.secondary-button:hover {
  border-color: var(--accent);
  background: var(--panel);
}

a.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--accent);
  text-decoration: none;
}

a.secondary-button.small-button {
  min-height: 26px;
  padding: 0 9px;
  font-size: var(--type-secondary);
}

.danger-button {
  background: #fff;
  color: var(--red-ink);
  border-color: #f1b8b3;
}

.danger-button:hover {
  background: var(--red);
  border-color: #dc7b72;
  color: var(--red-ink);
}

.danger-button.solid {
  background: var(--red-ink);
  border-color: var(--red-ink);
  color: #fff;
}

.danger-button.solid:hover {
  background: #7f1d1d;
  border-color: #7f1d1d;
  color: #fff;
}

.small-button {
  min-height: 26px;
  padding: 0 9px;
  font-size: var(--type-secondary);
}

.link-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
}

.link-button:hover { background: transparent; text-decoration: underline; }

input,
select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
strong {
  font-weight: var(--w-semi);
}

h1 { font-size: var(--type-title); }
h2 { font-size: var(--type-section); }
h3,
h4 { font-size: var(--type-body); }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 22px 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
}

.wordmark strong {
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  letter-spacing: 0.04em;
}

.wordmark .stage {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 2px 8px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.02em;
}

.workspace-switcher {
  position: relative;
  margin: 12px 0 20px;
}

.workspace-switcher[hidden] ~ .nav {
  margin-top: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.workspace-switcher-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--ink);
  padding: 7px 8px 7px 11px;
  text-align: left;
}

.workspace-switcher-button:hover {
  border-color: #c8c5ff;
  background: #fbfbff;
}

.workspace-switcher-button:focus-visible,
.workspace-option:focus-visible,
.workspace-archived-group summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.workspace-switcher-button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

.workspace-switcher-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.workspace-switcher-copy strong {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  font-size: var(--type-secondary);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switcher-copy strong small,
.workspace-option small {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.02em;
}

.workspace-switcher-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switcher-button svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.workspace-switcher-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.workspace-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  width: min(292px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 100px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(26, 31, 44, 0.16);
  padding: 7px;
}

.workspace-group {
  display: grid;
  gap: 4px;
}

.workspace-group-label {
  color: var(--muted);
  padding: 5px 7px 3px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-option-list {
  display: grid;
  gap: 2px;
}

.workspace-option {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-ink);
  padding: 7px;
  text-align: left;
}

.workspace-option:hover {
  background: var(--soft);
  color: var(--ink);
}

.workspace-option.current {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.workspace-popover-manage {
  display: block;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding: 9px 7px 4px;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.workspace-option > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-option i {
  color: var(--accent);
  font-size: var(--type-micro);
  font-style: normal;
}

.workspace-archived-group {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 5px;
}

.workspace-archived-group summary {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 4px 7px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.workspace-archived-group summary::-webkit-details-marker {
  display: none;
}

.workspace-archived-group summary:hover {
  background: var(--soft);
  color: var(--ink);
}

.workspace-archived-group summary span {
  min-width: 20px;
  border-radius: 999px;
  background: var(--gray);
  padding: 2px 6px;
  text-align: center;
  font-size: var(--type-micro);
}

.workspace-switch-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav {
  display: grid;
  gap: 3px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 6px;
  color: var(--gray-ink);
  padding: 0 10px;
  text-decoration: none;
  font-size: var(--type-body);
}

.status-token-supported {
  --status-chip-bg: var(--status-supported-bg);
  --status-chip-border: var(--status-supported-border);
  --status-chip-ink: var(--status-supported-ink);
  --status-chip-icon: var(--status-supported-icon);
  --status-chip-symbol: "✓";
}

.status-token-rejected {
  --status-chip-bg: var(--status-rejected-bg);
  --status-chip-border: var(--status-rejected-border);
  --status-chip-ink: var(--status-rejected-ink);
  --status-chip-icon: var(--status-rejected-icon);
  --status-chip-symbol: "!";
}

.status-token-unsupported {
  --status-chip-bg: var(--status-unsupported-bg);
  --status-chip-border: var(--status-unsupported-border);
  --status-chip-ink: var(--status-unsupported-ink);
  --status-chip-icon: var(--status-unsupported-icon);
  --status-chip-symbol: "!";
}

.status-token-error {
  --status-chip-bg: var(--status-error-bg);
  --status-chip-border: var(--status-error-border);
  --status-chip-ink: var(--status-error-ink);
  --status-chip-icon: var(--status-error-icon);
  --status-chip-symbol: "x";
}

.status-token-neutral {
  --status-chip-bg: var(--status-neutral-bg);
  --status-chip-border: var(--status-neutral-border);
  --status-chip-ink: var(--status-neutral-ink);
  --status-chip-icon: var(--status-neutral-icon);
  --status-chip-symbol: "";
}

.status-token-lifecycle {
  --status-chip-bg: var(--status-lifecycle-bg);
  --status-chip-border: var(--status-lifecycle-border);
  --status-chip-ink: var(--status-lifecycle-ink);
  --status-chip-icon: var(--status-lifecycle-icon);
  --status-chip-symbol: "";
}

.status-token-sample {
  --status-chip-bg: var(--status-sample-bg);
  --status-chip-border: var(--status-sample-border);
  --status-chip-ink: var(--status-sample-ink);
  --status-chip-icon: var(--status-sample-icon);
  --status-chip-symbol: "";
}

.nav-ico {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gray-soft, #98a2b3);
}

.nav a:hover .nav-ico,
.nav a.active .nav-ico {
  color: var(--accent);
}

.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.main {
  --main-gutter: 26px;
  --main-bottom: 34px;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  min-width: 0;
  padding: 18px 26px 34px;
}

body.signed-out-session-active .shell {
  grid-template-columns: minmax(0, 1fr);
}

body.signed-out-session-active .sidebar,
body.signed-out-session-active .main > :not(.signed-out-session) {
  display: none !important;
}

.signed-out-session {
  width: min(620px, 100%);
  min-height: calc(100vh - 52px);
  align-self: center;
  padding: clamp(54px, 14vh, 150px) 0;
}

.signed-out-session-copy {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.signed-out-session-copy h1 {
  font-size: var(--type-display);
  line-height: 1.15;
}

.signed-out-session-copy p {
  max-width: 560px;
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.6;
}

.signed-out-session-actions {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.signed-out-session-actions a {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  text-underline-offset: 0.18em;
}

@media (max-width: 480px) {
  body.signed-out-session-active .main {
    padding: 20px;
  }

  .signed-out-session {
    min-height: calc(100vh - 40px);
    padding: 58px 0;
  }

  .signed-out-session-copy {
    padding: 20px;
  }
}

.command {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 16px;
}

.command label,
.launch-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.api-field input,
.key-field input {
  font-family: var(--mono);
  font-size: var(--type-secondary);
}

.connection-details {
  min-width: 0;
  align-self: end;
}

.connection-details summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--gray-ink);
  cursor: pointer;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  list-style: none;
  padding: 0 12px;
}

.connection-details summary::-webkit-details-marker {
  display: none;
}

.connection-details summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: var(--w-bold);
}

.connection-details[open] summary::after {
  content: "-";
}

.connection-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 0.8fr);
  gap: 10px;
  margin-top: 8px;
}

.connection-settings-link {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.connection-settings-link a {
  color: var(--accent-dark);
  font-weight: var(--w-semi);
}

.auth-field {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 44px;
}
.auth-actions {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}
.trial-status-shell {
  position: relative;
  min-width: 0;
}

.trial-status-button {
  min-height: 32px;
  max-width: 270px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-overflow: ellipsis;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.trial-status-button:hover,
.trial-status-button:focus-visible {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.trial-status-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-user {
  min-width: 0;
  overflow: hidden;
  font-size: var(--type-body);
  font-weight: var(--w-med);
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command .search-field {
  position: relative;
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}

.search-field-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

#filterInput {
  height: 44px;
  min-height: 44px;
  padding-right: 12px;
  padding-left: 39px;
}

#connectionDetails[hidden] ~ .search-field {
  grid-column: 1;
  justify-self: start;
  width: 100%;
}

.account-menu-shell {
  position: relative;
  flex: none;
}

.account-menu-trigger {
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gray-ink);
  padding: 0;
}

.account-menu-trigger svg {
  width: 19px;
  height: 19px;
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
}

.account-menu-trigger:focus-visible,
.account-menu-panel :is(a, button):focus-visible,
.application-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-menu-tooltip {
  position: absolute;
  z-index: 92;
  top: calc(100% + 7px);
  right: 0;
  visibility: hidden;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 4px 7px;
  font-size: var(--type-micro);
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  white-space: nowrap;
}

.account-menu-trigger:not([aria-expanded="true"]):hover + .account-menu-tooltip,
.account-menu-trigger:not([aria-expanded="true"]):focus-visible + .account-menu-tooltip {
  visibility: visible;
  opacity: 1;
}

.account-menu-panel {
  position: absolute;
  z-index: 91;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: min(268px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 35, 56, 0.16);
  padding: 6px;
}

.account-menu-identity {
  overflow: hidden;
  padding: 9px 10px 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.account-menu-panel hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 5px 0;
}

.account-menu-panel :is(a, button) {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--gray-ink);
  padding: 0 10px;
  font-size: var(--type-body);
  font-weight: var(--w-med);
  text-align: left;
  text-decoration: none;
}

.account-menu-panel :is(a, button):hover {
  background: var(--soft);
  color: var(--ink);
}

#signOutButton {
  border: 0;
  background: transparent;
  color: var(--gray-ink);
}

.application-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line-strong);
  margin: auto calc(var(--main-gutter) * -1) calc(var(--main-bottom) * -1);
  background: var(--panel);
  padding: 18px var(--main-gutter) 22px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.application-footer p {
  max-width: 720px;
}

.application-footer a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.application-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.application-footer-links a {
  flex: none;
  font-weight: var(--w-med);
  white-space: nowrap;
}

.application-footer a:hover {
  color: var(--accent-dark);
}

#firstRunGuideMount {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: min(430px, calc(100vw - 32px));
  justify-items: end;
  pointer-events: none;
}

#firstRunGuideMount > .first-run-guide {
  pointer-events: auto;
}

.command > #connectButton {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
}

.notice,
.run-banner,
.console-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--gray-ink);
  margin-bottom: 14px;
}

.console-note {
  border-color: #d9ddff;
  background: #fbfbff;
  color: var(--muted);
  font-size: var(--type-body);
}

.console-note a {
  color: var(--accent-dark);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.console-note a:hover {
  text-decoration: underline;
}

.console-note.trial-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-color: var(--line);
  background: #fbfcff;
  color: var(--muted);
  font-weight: var(--w-med);
}

.console-note.trial-banner > span:first-child {
  color: var(--ink);
  font-weight: var(--w-semi);
}

.console-note.trial-banner.expired {
  border-color: #9bd7b0;
  background: var(--green);
  color: var(--green-ink);
}

.console-note.trial-banner a {
  color: inherit;
  text-decoration: underline;
}

.console-note.tier-enforcement-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #e7b86f;
  background: #fff9ee;
  color: #5f4317;
}

.tier-enforcement-note > div:first-child {
  display: grid;
  gap: 3px;
}

.tier-enforcement-note strong {
  color: #3f2b0e;
}

.tier-enforcement-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.tier-enforcement-actions button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .console-note.tier-enforcement-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

.mode-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: stretch;
  gap: 18px;
  border: 1px solid #dce2ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.archived-workspace-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: #ecd092;
  background: #fffaf0;
  box-shadow: none;
  padding: 11px 14px;
}

.archived-workspace-banner > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.archived-workspace-banner strong {
  color: var(--amber-ink);
  font-size: var(--type-body);
}

.archived-workspace-banner span {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--type-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archived-workspace-banner a {
  color: var(--amber-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.mode-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.mode-copy h1 {
  max-width: 760px;
  font-size: var(--type-title);
  line-height: 1.08;
}

.mode-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.mode-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.mode-stats span {
  display: grid;
  gap: 2px;
  min-width: 112px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  text-transform: uppercase;
}

.mode-stats strong {
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1;
}

.mode-controls {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-width: 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray);
  padding: 3px;
}

.mode-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.mode-switch button:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.mode-switch button.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 2px rgba(21, 27, 38, 0.06);
}

.mode-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.mode-actions a,
.first-receipt-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.mode-actions a:hover,
.first-receipt-actions a:hover {
  text-decoration: underline;
}

.notice.fail,
.run-banner.fail {
  border-color: #ffd0cc;
  background: var(--red);
  color: var(--red-ink);
}

.notice-copy-fallback {
  display: grid;
  gap: 8px;
}

.notice-copy-fallback strong {
  color: var(--red-ink);
}

.notice-copy-fallback textarea {
  min-height: 86px;
  width: 100%;
  resize: vertical;
  border: 1px solid #f1b8b3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  font: var(--type-secondary)/1.35 var(--mono);
}

.run-banner.ok {
  border-color: #c4edd4;
  background: var(--green);
  color: var(--green-ink);
}

.run-banner.waiting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #d8def5;
  background: #f7f8ff;
  color: var(--gray-ink);
}

.run-banner-copy {
  line-height: 1.5;
}

.run-banner-copy strong {
  color: var(--ink);
}

.run-banner.waiting button {
  flex: 0 0 auto;
}

.activity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  margin-bottom: 16px;
}

.activity > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity strong {
  display: block;
  font-size: var(--type-body);
  font-weight: var(--w-med);
  color: var(--gray-ink);
  white-space: nowrap;
}

.activity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.activity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--gray-ink);
  padding: 3px 8px;
  font-size: var(--type-micro);
  font-weight: var(--w-reg);
  white-space: nowrap;
}

button.activity-pill:hover {
  border-color: var(--line-strong);
  background: var(--gray);
  color: var(--ink);
}

.view {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.view > * {
  min-width: 0;
}

.view-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.view-head.compact {
  align-items: center;
}

.status-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.view-head h1 {
  margin-top: 2px;
  font-size: var(--type-title);
  line-height: 1.05;
  font-weight: var(--w-semi);
}

.view-subtitle {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.record-head h1 {
  font-size: var(--type-title);
}

.kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kpi {
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.kpi strong {
  display: block;
  font-size: var(--type-section);
  line-height: 1;
}

.kpi span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.record-kpis {
  gap: 0;
}

.record-head-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.record-kpis .kpi {
  min-width: auto;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 6px 20px;
}

.record-kpis .kpi:first-child {
  border-left: 0;
}

.record-kpis .kpi strong {
  font-size: var(--type-title);
}

.store-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.store-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-records {
  display: grid;
  gap: 12px;
}

#fleetSubtitle > span {
  display: block;
}

#fleetSubtitle > span + span {
  margin-top: 4px;
}

.coverage-map {
  display: grid;
  gap: 14px;
}

.coverage-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.coverage-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.coverage-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-section);
  font-weight: var(--w-bold);
}

.coverage-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.shopify-app-distribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.shopify-app-distribution > div {
  display: grid;
  gap: 4px;
}

.shopify-app-distribution strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.shopify-app-distribution p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.shopify-app-distribution > a {
  flex: none;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.inline-gloss {
  display: inline;
  vertical-align: baseline;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.inline-gloss > span {
  display: inline;
  color: inherit;
  font: inherit;
}

.coverage-list,
.coverage-card-grid {
  display: grid;
  gap: 8px;
}

.coverage-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.coverage-agent-groups {
  display: grid;
  gap: 14px;
}

.coverage-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coverage-catalog-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coverage-catalog-filters button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.coverage-catalog-filters button span {
  color: inherit;
  font-size: var(--type-micro);
  opacity: 0.72;
}

.coverage-selected-empty,
.coverage-selected-template {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 16px;
}

.coverage-selected-empty {
  display: grid;
  gap: 5px;
}

.coverage-selected-empty p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.coverage-selected-template {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
}

.coverage-selected-copy {
  display: grid;
  gap: 5px;
}

.coverage-selected-copy h3,
.coverage-selected-copy p {
  margin: 0;
}

.coverage-selected-copy h3 {
  color: var(--text);
  font-size: var(--type-title);
}

.coverage-selected-copy > p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.coverage-selected-copy .coverage-safety-line {
  color: var(--accent-dark);
  font-weight: var(--w-semi);
}

.coverage-selected-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.coverage-selected-actions a {
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.coverage-creation-status,
.coverage-creation-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.coverage-creation-status { color: var(--accent-dark); }
.coverage-creation-error { color: var(--red-ink); }

.coverage-agent-group {
  display: grid;
  gap: 8px;
}

.coverage-agent-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--line);
}

.coverage-agent-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-body);
  font-weight: var(--w-bold);
}

.coverage-agent-group-head span {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.coverage-agent-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: #fbfcff;
  font-size: var(--type-body);
}

.coverage-row,
.coverage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.coverage-card.selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.coverage-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, auto) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  cursor: pointer;
}

.coverage-row:hover,
.coverage-row:focus-visible,
.coverage-card:hover,
.coverage-card:focus-visible {
  border-color: rgba(105, 83, 238, 0.45);
  box-shadow: 0 0 0 3px rgba(105, 83, 238, 0.1);
  outline: none;
}

.coverage-row.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.coverage-row-main strong,
.coverage-row-main span,
.coverage-row-status,
.coverage-row-faced,
.coverage-row-verdict,
.coverage-card span {
  min-width: 0;
}

.coverage-row-main strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: var(--w-bold);
}

.coverage-row-main > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.coverage-row-world-promise {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.coverage-row-verdict {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.coverage-row-verdict .chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.coverage-row-status,
.coverage-row-faced {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  gap: 5px;
}

.coverage-row-faced.empty {
  color: var(--muted);
}

.coverage-row-label {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.coverage-run-empty {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  line-height: 1.35;
}

.coverage-run-count {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.coverage-latest-worse {
  display: inline-flex;
}

.coverage-card {
  display: grid;
  align-self: start;
  gap: 10px;
  min-height: 128px;
  padding: 14px;
  text-align: left;
  color: inherit;
}

.coverage-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.coverage-card-head > div {
  display: grid;
  gap: 5px;
}

.coverage-card-title {
  color: var(--text);
  font-size: var(--type-body);
  font-weight: var(--w-bold);
}

.coverage-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.coverage-card-head button {
  flex: 0 0 auto;
}

.coverage-card-detail-button {
  justify-self: flex-start;
}

.coverage-card-lines {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.coverage-card-line {
  display: grid;
  gap: 2px;
  color: #43516a;
  font-size: var(--type-body);
  line-height: 1.35;
}

.coverage-card-line b {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coverage-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.22);
}

.coverage-detail-popup {
  width: min(560px, 100%);
  max-height: calc(100dvh - 24px);
  display: grid;
  gap: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.18);
  padding: 18px;
}

.coverage-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.coverage-detail-head h3 {
  margin: 4px 0;
  color: var(--text);
  font-size: var(--type-section);
}

.coverage-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.coverage-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.coverage-suite-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 14px 16px;
}

.coverage-suite-action h2 {
  margin: 4px 0;
  color: var(--text);
  font-size: var(--type-section);
}

.coverage-suite-action p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.coverage-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #fbfcff;
}

.surface-state {
  display: grid;
  gap: 7px;
}

.surface-state strong,
.surface-state h2 {
  color: var(--ink);
}

.surface-state h2 {
  margin: 0;
  font-size: var(--type-body);
}

.surface-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.surface-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.support-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--red-ink) 18%, var(--line));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.support-code > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-code code {
  min-width: 0;
  overflow: hidden;
  color: var(--gray-ink);
  font-family: var(--mono);
  font-size: var(--type-micro);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-code button {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .support-code {
    grid-template-columns: 1fr;
  }

  .support-code > span {
    grid-column: auto;
  }

  .support-code button {
    justify-self: start;
  }
}

/* borderless semantic key/value facts. */
.layout-fact-table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: transparent;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.4;
}

.layout-fact-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.layout-fact-table tbody,
.layout-fact-table tr,
.layout-fact-table th,
.layout-fact-table td {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.layout-fact-table tr {
  cursor: default;
  transition: none;
}

.layout-fact-table tr:hover {
  background: transparent;
}

.layout-fact-table th,
.layout-fact-table td {
  height: auto;
  padding: 5px 0;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.layout-fact-table th {
  width: min(34%, 190px);
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.layout-fact-table td {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.layout-fact-table-value {
  overflow-wrap: anywhere;
}

.layout-fact-table-link {
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-underline-offset: 3px;
}

.layout-fact-table small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

/* one payload well with recursive, typed JSON disclosure. */
.layout-payload-well {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--ink);
  font-size: var(--type-body);
}

.layout-payload-well-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.layout-payload-well-count,
.layout-json-count,
.layout-json-kind,
.layout-payload-copy-status {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-reg);
}

.layout-payload-well-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 7px 10px;
}

.layout-payload-well-toolbar button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 2px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.layout-json-tree,
.layout-json-tree ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layout-json-tree {
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.layout-json-tree ul {
  margin-left: 10px;
  padding-left: 12px;
}

.layout-json-node {
  border: 0;
}

.layout-json-node > summary,
.layout-json-leaf {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.layout-json-node > summary {
  cursor: pointer;
  padding: 2px 0;
}

.layout-json-node > summary::-webkit-details-marker {
  color: var(--muted);
}

.layout-json-key {
  color: var(--gray-ink);
  overflow-wrap: anywhere;
}

.layout-json-key::after {
  content: ':';
}

.layout-json-kind {
  color: var(--accent-dark);
}

.layout-json-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.layout-json-string { color: var(--green-ink); }
.layout-json-number { color: var(--accent-dark); }
.layout-json-boolean { color: var(--amber-ink); }
.layout-json-null { color: var(--muted); }

/* the heading owns one continuous semantic group. */
.layout-heading-owned-group {
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.layout-heading-owned-group > header,
.layout-heading-owned-content {
  display: grid;
  gap: 4px;
}

.layout-heading-owned-eyebrow {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.layout-heading-owned-group h2 {
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.3;
}

.layout-heading-owned-content,
.layout-heading-owned-content > * {
  margin: 0;
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.5;
}

/* machine name, one sentence, and right-edge metadata. */
.layout-two-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 0;
  text-decoration: none;
}

.layout-two-line-row:first-child {
  border-top: 1px solid var(--line);
}

.layout-two-line-row-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.layout-two-line-row-name {
  font-family: var(--mono);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  overflow-wrap: anywhere;
}

.layout-two-line-row-sentence {
  margin: 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.layout-two-line-row-meta {
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

a.layout-two-line-row:hover .layout-two-line-row-name {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .layout-two-line-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .layout-two-line-row-meta {
    text-align: left;
    white-space: normal;
  }
}

/* one compact, document-scale identity treatment across lineage surfaces. */
.lineage-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--soft);
  color: var(--gray-ink);
  padding: 3px 6px;
  font: 500 var(--type-secondary)/1.35 var(--sans);
  text-align: left;
  cursor: copy;
}

.lineage-id-chip code {
  min-width: 0;
  color: var(--ink);
  font: 500 var(--type-secondary)/1.35 var(--mono);
  overflow-wrap: anywhere;
}

.lineage-id-chip span {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
}

.lineage-id-chip i {
  color: var(--accent-dark);
  font-size: var(--type-micro);
  font-style: normal;
  font-weight: 600;
}

.lineage-id-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lineage-id-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.receipt-lineage,
.lineage-links,
.gate-history-lineage,
.vstore-activity-lineage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.lineage-links a,
.gate-history-lineage a {
  font-size: var(--type-secondary);
  font-weight: 600;
}

.coverage-row-main > .lineage-id-chip,
.home-list-row .lineage-id-chip,
.record-primary > .lineage-id-chip {
  justify-self: start;
  margin-top: 4px;
}

/* final cascade guard: later legacy Console rules still exist for historical pages, so the
   mounted island pins its operative context to one row at the standard desktop viewport. */
:is(#viewConsole, .store-console-host) .practice-console-context {
  display: flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

:is(#viewConsole, .store-console-host) .practice-console-context > * { min-width: 0; }
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-field:first-child { flex: 1 1 260px; }
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-version-field { flex: 0 0 205px; }
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-path { flex: 0 1 245px; }
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-clock-position { flex: 0 1 230px; }
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-context-meta { flex: 0 0 auto; }
:is(#viewConsole, .store-console-host) [data-console-environment-store] {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  :is(#viewConsole, .store-console-host) .practice-console-context {
    align-items: stretch;
    flex-direction: column;
    white-space: normal;
  }

  :is(#viewConsole, .store-console-host) .practice-console-context-separator { display: none; }
  :is(#viewConsole, .store-console-host) .practice-console-context .practice-console-field:first-child,
  :is(#viewConsole, .store-console-host) .practice-console-context .practice-console-version-field,
  :is(#viewConsole, .store-console-host) .practice-console-context .practice-console-path,
  :is(#viewConsole, .store-console-host) .practice-console-context .practice-console-clock-position { flex: 0 0 auto; }
}

/* the Console is the editor and wire. The host-owned context is one line; curriculum and
   libraries follow the workbench as disclosures instead of pushing it below the fold. */
.practice-console-header { order: 0; }
.practice-console-context { order: 1; }
.practice-console-probe-boundary { order: 2; }
.practice-console-run-breadcrumb { order: 3; }
.practice-console-shell > .practice-console-state { order: 4; }
.practice-console-ide { order: 5; }
.practice-console-library { order: 6; }
.practice-console-secondary { order: 7; }
.practice-console-foot { order: 8; }

.practice-console-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

.practice-console-context .practice-console-field {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.practice-console-context .practice-console-field > span {
  color: var(--muted);
  font-size: var(--type-micro);
}

.practice-console-context .practice-console-field:first-child { flex: 1 1 250px; }
.practice-console-context .practice-console-version-field { flex: 0 1 150px; }
.practice-console-context .practice-console-field select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  padding: 0 8px;
  font-size: var(--type-secondary);
}

.practice-console-context .practice-console-field:first-child select { flex: 1 1 auto; }
.practice-console-context-separator { color: var(--line-strong); }
.practice-console-context .practice-console-path {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: var(--type-secondary);
}

.practice-console-clock-position {
  min-width: 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.practice-console-context-meta {
  flex: 0 0 auto;
  align-self: center;
  gap: 6px;
}

.practice-console-probe-boundary,
.practice-console-run-breadcrumb {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.practice-console-run-breadcrumb {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.practice-console-run-breadcrumb code { color: var(--ink); }

.practice-console-recipe-contract {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 9px 12px;
}

.practice-console-recipe-contract > div:first-child { min-width: 0; }
.practice-console-recipe-contract > div:first-child p { display: block; }

.practice-console-recipe-summary {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  white-space: nowrap;
}

.practice-console-recipe-isolation,
.practice-console-recipe-contract > .practice-console-recipe-template-list,
.practice-console-recipe-contract > .practice-console-recipe-boundary,
.practice-console-recipe-contract > .practice-console-recipe-version,
.practice-console-recipe-contract > .practice-console-recipe-prerequisites,
.practice-console-recipe-contract > .practice-console-recipe-outcome {
  grid-column: 1 / -1;
  min-width: 0;
}

.practice-console-recipe-contract > .practice-console-recipe-boundary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 7px 9px;
}

.practice-console-recipe-contract > .practice-console-recipe-boundary span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-recipe-contract > .practice-console-recipe-boundary p {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-secondary);
}

.practice-console-evidence-count {
  color: var(--muted);
  font-size: var(--type-micro);
  white-space: nowrap;
}

.practice-console-library {
  position: relative;
  gap: 8px;
  padding: 10px 12px;
}

.practice-console-library-head {
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: end;
}

.practice-console-library-combobox-label { display: grid; gap: 5px; }
.practice-console-library-combobox-label input {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.practice-console-library-count {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-console-library-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.practice-console-library-group {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  background: #fff;
  padding: 8px;
}

.practice-console-library-group-label {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.practice-console-library-option {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  padding: 7px 8px;
  text-align: left;
}

.practice-console-library-option:hover,
.practice-console-library-option:focus-visible { background: var(--soft); }
.practice-console-library-option span { color: var(--muted); font-size: var(--type-micro); }
.practice-console-library-option.archived { opacity: .65; }

.practice-console-library-selected,
.practice-console-library-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.practice-console-library-selected {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-console-library-footer { border-top: 1px solid var(--line); padding-top: 8px; }
.practice-console-probe-set-door { border-top: 1px solid var(--line); }

.practice-console-secondary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.practice-console-secondary > summary {
  cursor: pointer;
  color: var(--gray-ink);
  padding: 11px 13px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.practice-console-secondary > :not(summary) { border: 0; border-top: 1px solid var(--line); border-radius: 0; }

@media (max-width: 900px) {
  .practice-console-context { align-items: stretch; flex-direction: column; white-space: normal; }
  .practice-console-context-separator { display: none; }
  .practice-console-context .practice-console-field:first-child,
  .practice-console-context .practice-console-version-field { flex: 0 0 auto; }
  .practice-console-context .practice-console-field select { width: 100%; }
  .practice-console-library-head,
  .practice-console-library-options { grid-template-columns: 1fr; }
  .practice-console-recipe-contract { grid-template-columns: 1fr; }
  .practice-console-recipe-summary { white-space: normal; }
}

.coverage-sample {
  order: 20;
}

.coverage-dev-stores {
  order: 10;
}

.panel,
.table-wrap,
.launch-preview,
.report-item,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.store-table .record-primary {
  min-width: 240px;
}

.store-table .chip + .row-note {
  display: block;
  margin-top: 4px;
}

.store-table tr.vstore-row {
  background: #fcfcff;
}

.store-table tbody tr.active {
  background: #f7f7ff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.store-title {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 0 !important;
  color: inherit !important;
}

.store-type-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(47, 157, 104, 0.12);
  flex: 0 0 auto;
}

.store-type-dot.dev {
  background: var(--store-dev);
  box-shadow: 0 0 0 3px rgba(201, 130, 16, 0.14);
}

.store-type-dot.virtual {
  background: var(--store-virtual);
}

.store-kind-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid #cfeadd;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--green-ink);
  padding: 0 7px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  line-height: 1;
  white-space: nowrap;
}

.store-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 150px;
}

.store-delete-action {
  display: inline-grid;
  gap: 2px;
}

.store-delete-status {
  max-width: 180px;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.25;
}

.store-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.store-page-head {
  align-items: flex-start;
}

.store-page-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}

.store-page-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.store-workspace-frame,
.store-workspace-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.store-console-host,
.store-gate-host,
.store-gate-host .gate-page {
  min-width: 0;
}

.store-gate-host .gate-page {
  margin: 0;
}

.store-workspace-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.store-workspace-breadcrumb a {
  color: var(--accent-dark);
  font-weight: var(--w-semi);
  text-underline-offset: 3px;
}

.store-workspace-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 2px;
}

.store-workspace-tabs a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 10px 12px 9px;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
  white-space: nowrap;
}

.store-workspace-tabs a[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.store-workspace-tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.store-workspace-bridge {
  display: grid;
  justify-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.store-workspace-bridge h2,
.store-workspace-bridge p {
  margin: 0;
}

.store-runs-ledger,
.integrated-store-run-chrome {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.store-runs-ledger > header,
.integrated-run-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.store-runs-ledger > header h2,
.store-runs-ledger > header p,
.integrated-run-heading h1 {
  margin: 0;
}

.store-runs-ledger > header p {
  margin-top: 4px;
  color: var(--muted);
}

.store-runs-ledger .record-primary a {
  color: inherit;
  text-decoration: none;
}

.store-runs-ledger .record-primary a:hover strong,
.store-runs-ledger .record-primary a:focus-visible strong {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.integrated-store-run-detail > .integrated-store-run-chrome {
  margin-bottom: 18px;
}

.integrated-store-run-detail > .view-head,
.integrated-store-run-detail .detail-layout .view-head.compact {
  display: none;
}

.store-run-breadcrumb code {
  color: var(--ink);
}

.integrated-run-heading > div {
  display: grid;
  gap: 5px;
}

.store-workspace-bridge p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.5;
}

.store-page-actions,
.store-workbench-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.store-workbench-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.store-workbench-action h2 {
  margin-top: 2px;
  font-size: var(--type-section);
  line-height: 1.2;
}

.store-workbench-action p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.store-workbench-buttons button {
  white-space: nowrap;
}

.vstore-connect-path {
  align-items: start;
}

.store-connection-workspace {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
}

.store-connection-step-header,
.store-connection-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.store-connection-step-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.store-connection-step-transition {
  display: grid;
  min-block-size: 280px;
  gap: 16px;
}

.store-connection-step-transition.complete {
  border: 1px solid var(--status-supported-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 38%, var(--panel));
  padding: 16px;
}

.store-connection-step-transition.complete > .store-connection-step-header {
  border-bottom-color: color-mix(in srgb, var(--green-ink) 18%, var(--line));
}

.store-connection-next {
  min-width: 0;
}

.store-connection-next .connect-start-primary,
.store-connection-next .connect-active-run {
  box-shadow: none;
}

.store-connection-step-error {
  max-width: 720px;
  margin-top: 10px;
  color: var(--danger) !important;
  font-weight: var(--w-semi);
}

.store-connection-observed {
  scroll-margin-top: 22px;
}

.store-connection-observed:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green-ink) 28%, transparent);
  outline-offset: 3px;
}

.store-connection-step-header h2,
.store-connection-card-head h2 {
  margin: 3px 0 0;
  font-size: var(--type-title);
}

.store-connection-card-head > div,
.store-connection-step-header > div {
  min-width: 0;
}

.store-connection-wiring {
  align-items: start;
}

.store-quickstart-row {
  display: grid;
  grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding-top: 4px;
}

.store-quickstart-row .vstore-step-affordance,
.store-quickstart-row .vstore-quickstart-preview {
  border-top: 0;
}

.store-run-workspace {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.store-run-reference {
  margin-top: 16px;
}

.vstore-connect-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.vstore-secondary-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.vstore-step-affordance {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.vstore-step-affordance button {
  justify-self: end;
}

.store-workbench-action .vstore-step-affordance p {
  margin: 2px 0 0;
  font-size: var(--type-micro);
}

.vstore-quickstart-preview {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.vstore-quickstart-preview > div {
  display: grid;
  gap: 2px;
}

.vstore-quickstart-preview strong {
  font-size: var(--type-secondary);
}

.vstore-quickstart-preview span {
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.35;
}

.vstore-quickstart-preview pre {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
  padding: 9px;
  color: var(--ink);
  font-size: var(--type-micro);
  line-height: 1.45;
  text-align: left;
  white-space: pre;
}

.vstore-connect-copy {
  min-width: 0;
}

.vstore-connect-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.store-workbench-action p.vstore-connect-status {
  margin-top: 10px;
}

.vstore-connect-status.green {
  border-color: #b8ebd0;
  background: #edfdf5;
  color: var(--green-ink);
}

.vstore-connect-status.amber {
  border-color: #f1d19b;
  background: #fff8ea;
  color: var(--amber-ink);
}

.vstore-connect-status.red {
  border-color: #f3c4c4;
  background: #fff4f4;
  color: var(--red-ink);
}

.vstore-connect-status.gray {
  background: #fff;
  color: var(--muted);
}

.vstore-connect-actions {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.vstore-connect-actions button {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.vstore-latest-proof {
  border-color: #b8d8c5;
  background: #fbfffd;
}

.suite-overview {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.suite-overview-head,
.drawer-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.suite-overview-head h2,
.drawer-section-head h4 {
  margin-top: 2px;
}

.suite-overview-head p,
.drawer-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.4;
}

.suite-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.suite-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.suite-catalog-source {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.suite-catalog-detail {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.suite-catalog-detail strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.suite-catalog-refresh-option {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 4px;
  padding: 9px 10px;
}

.suite-catalog-refresh-option.selected {
  border-color: rgba(63, 125, 246, 0.35);
  box-shadow: 0 0 0 2px rgba(63, 125, 246, 0.08);
}

.suite-catalog-refresh-option span {
  display: grid;
  gap: 2px;
}

.suite-catalog-freshness-note {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

.suite-template-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.suite-template-option.selected {
  border-color: rgba(63, 125, 246, 0.35);
  box-shadow: 0 0 0 2px rgba(63, 125, 246, 0.08);
}

.suite-template-option input {
  margin-top: 3px;
}

.suite-template-option strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
}

.suite-template-option span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.suite-matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.suite-source-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #c7d9ef;
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px 12px;
  color: #40546d;
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.suite-ensemble-line {
  border: 1px solid #c7d9ef;
  border-radius: 8px;
  background: #f7fbff;
  color: #40546d;
  padding: 9px 12px;
  margin: 0;
  font-size: var(--type-secondary);
  font-weight: 700;
  line-height: 1.35;
}

.suite-ensemble-line.loud {
  border-color: #f1b8b3;
  background: #fff4f4;
  color: var(--danger);
}

.suite-ensemble-line + .suite-source-summary,
.suite-ensemble-line + .suite-matrix {
  margin-top: 10px;
}

.suite-source-summary + .suite-matrix {
  margin-top: 10px;
}

#vstoreSuiteSourceSummary:not([hidden]) {
  margin-bottom: 10px;
}

.suite-evidence-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

#vstoreSuiteEvidenceBundle:not([hidden]),
.suite-evidence-record + .suite-matrix {
  margin-top: 10px;
}

.suite-evidence-record strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-body);
}

.suite-evidence-record span {
  display: block;
  margin-top: 2px;
}

.suite-source-summary strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.suite-source-summary span {
  text-align: right;
}

.suite-source-summary.warning {
  border-color: #ead19a;
  background: #fffaf0;
  color: #72551b;
}

.suite-matrix-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.suite-matrix-row:last-child {
  border-bottom: 0;
}

.suite-matrix-row.header {
  min-height: 34px;
  background: #fafbfc;
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.suite-matrix-row strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.suite-matrix-row span {
  display: block;
  margin-top: 2px;
}

.suite-matrix-row .suite-token-map {
  color: #40546d;
  font-weight: var(--w-semi);
}

.suite-token-map code {
  color: var(--ink);
  font-size: var(--type-micro);
  overflow-wrap: anywhere;
}

.suite-matrix-row .suite-source-warning {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #fff4d8;
  color: #805b13;
  padding: 2px 7px;
  font-weight: var(--w-semi);
}

.suite-matrix-row .suite-impact {
  color: var(--ink);
  font-weight: var(--w-semi);
}

.gate-page {
  display: grid;
  gap: 14px;
}

.gate-health-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 16px;
}

.gate-health-banner strong {
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.35;
}

.gate-health-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.gate-health-banner.ready {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
}

.gate-health-banner.ready .gate-health-icon {
  background: var(--status-supported-icon);
}

.gate-health-banner.needs-review {
  border-color: var(--status-unsupported-border);
  background: var(--status-unsupported-bg);
}

.gate-health-banner.needs-review .gate-health-icon {
  background: var(--status-unsupported-icon);
}

.gate-health-banner.blocked {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
}

.gate-health-banner.blocked .gate-health-icon {
  background: var(--status-error-icon);
}

.gate-health-banner.waiting,
.gate-health-banner.sample {
  border-color: var(--status-neutral-border);
  background: var(--status-neutral-bg);
}

.gate-health-banner.status-token-supported,
.gate-verdict.status-token-supported {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.gate-health-banner.status-token-unsupported,
.gate-verdict.status-token-unsupported {
  border-color: var(--status-unsupported-border);
  background: var(--status-unsupported-bg);
  color: var(--status-unsupported-ink);
}

.gate-health-banner.status-token-error,
.gate-verdict.status-token-error {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.gate-health-banner.status-token-neutral,
.gate-verdict.status-token-neutral {
  border-color: var(--status-neutral-border);
  background: var(--status-neutral-bg);
  color: var(--status-neutral-ink);
}

.gate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.28fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.gate-hero-single {
  grid-template-columns: 1fr;
}

.gate-copy h1 {
  max-width: 760px;
  margin: 4px 0 0;
  font-size: var(--type-title);
  line-height: 1.1;
}

.gate-copy p,
.gate-section-head p,
.gate-empty-state p,
.gate-ci-panel p,
.gate-receipt-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.gate-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.gate-copy .gate-actions {
  margin-top: 14px;
}

.gate-actions a,
.home-text-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.gate-actions a:hover,
.home-text-action:hover {
  text-decoration: underline;
}

.gate-verdict {
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 16px;
}

.gate-verdict span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-verdict strong {
  font-size: var(--type-title);
  line-height: 1.1;
}

.gate-verdict p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.gate-verdict.green {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.gate-verdict.red {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.gate-verdict.yellow {
  border-color: var(--status-unsupported-border);
  background: var(--status-unsupported-bg);
  color: var(--status-unsupported-ink);
}

.gate-verdict.blue {
  border-color: var(--status-lifecycle-border);
  background: var(--status-lifecycle-bg);
  color: var(--status-lifecycle-ink);
}

.gate-proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gate-stat {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 13px 16px;
}

.gate-stat:last-child {
  border-right: 0;
}

.gate-stat strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1;
}

.gate-stat:first-child strong {
  font-size: var(--type-display);
}

.gate-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.gate-stat em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-style: normal;
  line-height: 1.25;
}

.gate-panel,
.gate-ci-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.gate-section-head,
.gate-empty-state,
.gate-ci-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.gate-section-head h2,
.gate-empty-state h2,
.gate-ci-panel h2 {
  margin: 4px 0 0;
  font-size: var(--type-title);
  line-height: 1.2;
}

.gate-matrix {
  margin-top: 14px;
}

.suite-history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.suite-history-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.22fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.suite-history-row.selected {
  border-color: rgba(63, 125, 246, 0.35);
  box-shadow: inset 3px 0 0 var(--accent);
}

.suite-history-row strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.suite-history-row p,
.suite-history-empty {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.suite-history-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
}

.gate-steps {
  display: grid;
  gap: 12px;
}

.gate-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.gate-step > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: var(--w-semi);
}

.gate-step h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: var(--type-body);
}

.gate-step p,
.gate-step-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.gate-key-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 8px;
}

.gate-key-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.gate-runner-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gate-runner-snippet {
  max-height: 360px;
  margin: 10px 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  line-height: 1.45;
  white-space: pre;
}

.settings-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.settings-page-shell > *,
.connection-settings-page,
.connection-settings-page > * {
  min-width: 0;
  max-width: 100%;
}

.settings-section-nav {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 3px;
}

.settings-section-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 6px;
  color: var(--gray-ink);
  padding: 0 13px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.settings-section-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.settings-section-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.settings-section-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-admin-page {
  display: grid;
  gap: 14px;
}

.account-admin-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px 18px;
}

.account-admin-heading h1 {
  margin: 4px 0 0;
  font-size: var(--type-title);
  line-height: 1.1;
}

.account-admin-heading p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.48;
}

.account-admin-stats {
  display: flex;
  gap: 20px;
  margin: 0;
}

.account-admin-stats div {
  display: grid;
  gap: 3px;
}

.account-admin-stats dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-admin-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.account-admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 17px 18px;
}

.account-admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-admin-panel-head h2 {
  margin: 4px 0 0;
  font-size: var(--type-title);
}

.account-deletion-panel {
  display: grid;
  gap: 12px;
  border-color: color-mix(in srgb, var(--red-ink) 28%, var(--line));
  border-left: 4px solid var(--red-ink);
  background: color-mix(in srgb, var(--red-ink) 3%, var(--panel));
}

.account-deletion-panel .eyebrow {
  color: var(--red-ink);
}

.account-deletion-panel > p,
.account-deletion-reauth p {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.55;
}

.account-deletion-panel > p strong {
  color: var(--gray-ink);
}

.account-deletion-progress {
  display: grid;
  gap: 4px;
  border-block: 1px solid color-mix(in srgb, var(--red-ink) 14%, var(--line));
  padding-block: 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.account-deletion-progress strong {
  color: var(--gray-ink);
  font-size: var(--type-body);
}

.account-deletion-reauth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 7px;
  background: var(--soft);
  padding: 10px 12px;
}

.account-deletion-form {
  display: grid;
  grid-template-columns: minmax(220px, 480px) auto;
  align-items: end;
  gap: 8px 12px;
}

.account-deletion-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.account-deletion-panel > .field-error {
  margin: 0;
  color: var(--red-ink);
  font-size: var(--type-secondary);
}

.account-name-readonly {
  margin-top: 16px;
  font-size: var(--type-section);
  font-weight: var(--w-semi);
}

.account-rename-form {
  display: grid;
  grid-template-columns: minmax(220px, 480px) auto;
  gap: 6px 12px;
  align-items: end;
  margin-top: 14px;
}

.account-rename-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.account-rename-form > div {
  display: flex;
  gap: 8px;
}

.account-rename-form .field-error {
  grid-column: 1;
  min-height: 16px;
  color: var(--red-ink);
  font-size: var(--type-micro);
}

.account-admin-loading,
.account-admin-status,
.account-admin-error {
  margin-top: 12px;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: var(--type-secondary);
}

.account-admin-loading {
  background: var(--soft);
  color: var(--muted);
}

.account-admin-status {
  border: 1px solid var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.account-admin-error {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  border: 1px solid var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.account-admin-error button {
  margin-left: auto;
}

.account-invite-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(180px, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.account-invite-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.account-invite-form .field-error {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--red-ink);
  font-size: var(--type-micro);
}

.invitation-created {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(260px, 1.5fr) auto;
  gap: 14px 20px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--status-supported-border);
  border-radius: 8px;
  background: var(--status-supported-bg);
  padding: 13px 14px;
  color: var(--status-supported-ink);
}

.invitation-created h3,
.invitation-created p { margin: 0; }

.invitation-created h3 { font-size: var(--type-body); }
.invitation-created p { font-size: var(--type-secondary); line-height: 1.45; }

.account-invites-table {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.account-invite-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(130px, .8fr) 145px 145px 80px minmax(170px, .8fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
}

.account-invite-head {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.account-invite-person { display: grid; gap: 2px; }
.account-invite-person small { color: var(--muted); }

.invitation-gated .sidebar .nav,
.invitation-gated:not(.viewer-reviewing) .workspace-switcher,
.invitation-gated .main > :not(#workspaceMode) {
  display: none !important;
}

.invitation-gated .main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 28px;
}

.invitation-gated.viewer-reviewing .main { place-items: start center; }
.viewer-review-mode { width: min(920px, 100%); }
.viewer-review-shell { display: grid; gap: 18px; width: 100%; min-width: 0; padding: 6px 0 40px; }
.viewer-review-shell > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.viewer-review-shell h1 { margin: 3px 0 0; }
.viewer-review-shell header p { margin: 6px 0 0; color: var(--muted); }
.viewer-review-announcement { min-height: 20px; margin: 0; color: var(--muted); }
.viewer-share-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: stretch; padding: 14px 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.viewer-share-row:last-child { border-bottom: 1px solid var(--line); }
.viewer-share-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.viewer-share-row small { color: var(--muted); }
.viewer-share-row em { align-self: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: var(--type-secondary); font-style: normal; font-weight: 700; white-space: nowrap; }
.viewer-state-rail { width: 4px; min-height: 38px; border-radius: 999px; background: var(--accent); }
.viewer-detail-heading { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.viewer-detail-heading p { margin: 5px 0 0; color: var(--muted); }
.viewer-artifact-document { min-width: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.viewer-artifact-section { display: grid; gap: 12px; min-width: 0; }
.viewer-artifact-section h2, .viewer-artifact-section p { margin: 0; overflow-wrap: anywhere; }
.viewer-artifact-section dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0; }
.viewer-artifact-section dl div { border-left: 2px solid var(--line); padding-left: 10px; min-width: 0; }
.viewer-artifact-section dt { color: var(--muted); font-size: var(--type-secondary); }
.viewer-artifact-section dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.viewer-artifact-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.viewer-artifact-timeline li { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.viewer-artifact-timeline span { color: var(--muted); }
.viewer-artifact-what-changed { display: grid; gap: 8px; padding-top: 4px; }
.viewer-artifact-what-changed h3 { margin: 0; font-size: var(--type-body); }
.viewer-artifact-changes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.viewer-artifact-changes li { display: grid; gap: 2px; border-left: 2px solid var(--purple); padding: 7px 10px; background: var(--purple-soft); }
.viewer-artifact-changes span, .viewer-artifact-changes small { color: var(--muted); }
.viewer-review-panel { display: grid; gap: 12px; border-left: 4px solid var(--accent); padding: 14px 16px; background: var(--panel); }
.viewer-review-panel.is-disabled { border-left-color: var(--muted); }
.viewer-review-panel p { margin: 0; }
.viewer-review-panel > div { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer-review-panel label { display: grid; gap: 7px; }
.viewer-review-panel textarea { width: 100%; min-height: 120px; resize: vertical; }
.viewer-artifact-expired { border-left: 4px solid var(--amber-ink); padding: 12px 14px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .viewer-review-shell > header { align-items: start; }
  .viewer-share-row, .viewer-detail-heading { grid-template-columns: 4px minmax(0, 1fr); }
  .viewer-share-row em, .viewer-detail-heading .client-share-stamp { grid-column: 2; justify-self: start; }
  .viewer-artifact-section dl { grid-template-columns: 1fr; }
}

.invitation-gate-shell {
  width: min(880px, 100%);
  border: 0;
  background: transparent;
  padding: 0;
}

.invitation-gate,
.invitation-gate-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.invitation-gate-heading {
  max-width: 620px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.invitation-gate-heading h1,
.invitation-gate-card h1 { margin: 5px 0 7px; font-size: var(--type-title); }
.invitation-gate-heading p,
.invitation-gate-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.invitation-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
}

.invitation-card.expired { background: var(--soft); }
.invitation-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.invitation-card-head h2 { margin: 4px 0 0; font-size: var(--type-title); }
.invitation-card dl { display: flex; gap: 28px; margin: 0; }
.invitation-card dl div { display: grid; gap: 3px; }
.invitation-card dt { color: var(--muted); font-size: var(--type-micro); font-weight: var(--w-semi); letter-spacing: .07em; text-transform: uppercase; }
.invitation-card dd { margin: 0; font-size: var(--type-body); }
.invitation-scope { color: var(--gray-ink) !important; font-size: var(--type-secondary); font-weight: var(--w-semi); }
.invitation-actions,
.invitation-decline-confirm > div { display: flex; gap: 8px; flex-wrap: wrap; }

.invitation-decline-confirm {
  display: grid;
  gap: 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 14px;
}

.invitation-gate-error,
.invitation-card-error {
  border: 1px solid var(--status-error-border);
  border-radius: 7px;
  background: var(--status-error-bg);
  padding: 10px 12px;
  color: var(--status-error-ink);
  font-size: var(--type-secondary);
}

.invitation-announcement {
  border: 1px solid var(--status-supported-border);
  border-radius: 7px;
  background: var(--status-supported-bg);
  padding: 10px 12px;
  color: var(--status-supported-ink);
}

.invitation-empty { display: grid; gap: 8px; justify-items: start; padding: 14px 0; }
.invitation-empty p { margin: 0; color: var(--muted); }

.workspace-admin-list { display: grid; gap: 10px; }

.workspace-capacity-contract {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-ink);
  border-radius: 7px;
  background: var(--panel);
  padding: 11px 13px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.workspace-capacity-contract strong { color: var(--gray-ink); }
.workspace-capacity-contract.at-limit {
  border-color: color-mix(in srgb, var(--amber-ink) 35%, var(--line));
  border-left-color: var(--amber-ink);
  background: color-mix(in srgb, var(--amber-ink) 5%, var(--panel));
}
.workspace-capacity-contract a { margin-left: auto; color: var(--accent-dark); font-weight: var(--w-semi); }

.workspace-admin-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 100px minmax(260px, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 15px 16px;
}

.workspace-admin-row.selected { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.workspace-admin-identity > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.workspace-admin-identity h2 { margin: 0; font-size: var(--type-section); }
.workspace-admin-identity p { margin: 5px 0 0; color: var(--muted); font-size: var(--type-micro); }
.workspace-lifecycle { font-size: var(--type-micro); font-weight: var(--w-semi); }
.workspace-lifecycle.archived { color: var(--amber-ink); }
.workspace-lifecycle.deleting { color: var(--red-ink); }
.workspace-lifecycle.active { color: var(--green-ink); }
.workspace-admin-actions { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }

.workspace-create-form,
.workspace-rename-form {
  display: grid;
  grid-template-columns: minmax(220px, 480px) auto;
  gap: 6px 12px;
  align-items: end;
}

.workspace-rename-form,
.workspace-purge-contract { grid-column: 1 / -1; }
.workspace-create-form label,
.workspace-rename-form label,
.workspace-purge-contract label { display: grid; gap: 5px; color: var(--muted); font-size: var(--type-secondary); }
.workspace-create-form > div,
.workspace-rename-form > div,
.workspace-purge-contract > div { display: flex; gap: 8px; flex-wrap: wrap; }
.workspace-create-form .field-error,
.workspace-rename-form .field-error { min-height: 16px; color: var(--red-ink); font-size: var(--type-micro); }

.workspace-purge-contract {
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--red-ink) 25%, var(--line));
  border-left: 4px solid var(--red-ink);
  border-radius: 7px;
  background: color-mix(in srgb, var(--red-ink) 4%, var(--panel));
  padding: 13px 14px;
}

.workspace-purge-contract p { margin: 0; font-size: var(--type-secondary); }
.workspace-purge-heading { display: grid; gap: 3px; }
.workspace-purge-heading .eyebrow { color: var(--red-ink); }
.workspace-purge-heading strong { color: var(--gray-ink); font-size: var(--type-body); }
.workspace-purge-progress {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px 16px;
  align-items: center;
  border-block: 1px solid color-mix(in srgb, var(--red-ink) 14%, var(--line));
  padding-block: 9px;
  color: var(--muted);
}
.workspace-purge-progress span { text-transform: capitalize; }
.workspace-purge-progress strong { color: var(--gray-ink); font-size: var(--type-secondary); font-variant-numeric: tabular-nums; }

.account-keys-table { display: grid; }
.settings-api-keys-page { gap: 12px; }
.settings-key-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.settings-key-heading h2 { margin: 0 0 6px; font-size: var(--type-section); }
.settings-key-heading p,
.settings-key-card p,
.settings-key-drawer-content p { margin: 0; color: var(--muted); font-size: var(--type-secondary); line-height: 1.5; }
.settings-key-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 18px; }
.settings-key-card-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--type-secondary); }
.settings-key-workspace { display: inline-block; margin-left: 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); padding: 4px 8px; font-weight: var(--w-semi); }
.settings-key-empty { display: grid; gap: 7px; padding-top: 16px; }
.settings-key-empty strong,
.settings-key-use strong { color: var(--ink); font-size: var(--type-body); }
.settings-key-state { display: grid; justify-items: start; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.settings-key-card-head + .settings-key-state { border: 0; padding-inline: 0; background: transparent; }
.settings-key-row { display: grid; grid-template-columns: minmax(150px, 1.25fr) minmax(145px, .85fr) minmax(110px, .7fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.settings-key-row:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-key-identity { display: grid; min-width: 0; gap: 5px; }
.settings-key-identity code { color: var(--muted); overflow-wrap: anywhere; }
.settings-key-date { color: var(--muted); font-size: var(--type-secondary); }
.settings-key-use { display: grid; padding-block: 0; }
.settings-key-use > div { position: relative; display: grid; gap: 5px; padding: 16px 120px 16px 0; border-bottom: 1px solid var(--line); }
.settings-key-use > div:last-child { border-bottom: 0; }
.settings-key-use button,
.settings-key-use a { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
.settings-key-use a { color: var(--accent-dark); font-size: var(--type-secondary); }
.settings-key-drawer { width: min(480px, 100vw); padding: 0; }
.settings-key-drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 68px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.settings-key-drawer-head h2 { margin: 0; font-size: var(--type-section); }
.settings-key-drawer-content { display: grid; align-content: start; gap: 20px; padding: 24px; }
.settings-key-drawer-content > button,
.settings-key-drawer-content form > button { justify-self: start; }
.settings-key-drawer-workspace,
.settings-key-drawer-identity { overflow-wrap: anywhere; }
.settings-key-label { display: grid; gap: 9px; color: var(--muted); font-size: var(--type-secondary); }
.settings-key-label input { width: 100%; min-height: 44px; }
.settings-key-drawer-content form { display: grid; gap: 20px; }
.settings-key-drawer-content form > button { justify-self: start; }
.settings-key-drawer-actions { display: flex; gap: 10px; }
.settings-key-snippet { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 16px; }
.settings-key-snippet pre { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: var(--type-secondary)/1.55 var(--mono); }
.settings-key-snippet input { width: 100%; margin-bottom: 12px; border: 0; background: transparent; font: var(--type-secondary)/1.5 var(--mono); }
.settings-key-setup-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.settings-key-setup-tabs button { min-height: 38px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.settings-key-setup-tabs button.active { border-radius: 7px; background: var(--accent-soft); color: var(--accent-dark); }
.account-key-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, .7fr) minmax(135px, .9fr) minmax(100px, .7fr) minmax(170px, auto);
  gap: 10px;
  align-items: center;
}
.account-key-head {
  min-height: 34px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.archived-key-note { margin-bottom: 10px; }

@media (max-width: 760px) {
  .settings-key-heading { display: grid; }
  .settings-key-heading > button { justify-self: start; }
  .settings-key-row { grid-template-columns: 1fr; gap: 6px; }
  .settings-key-row .account-key-actions { justify-content: flex-start; }
  .settings-key-use > div { padding-right: 0; padding-bottom: 48px; }
  .settings-key-use button,
  .settings-key-use a { top: auto; right: auto; bottom: 16px; left: 0; transform: none; }
  .settings-key-drawer { width: 100vw; }
  .account-invite-form,
  .invitation-created {
    grid-template-columns: 1fr;
  }

  .account-invite-row,
  .account-invite-head,
  .workspace-admin-row,
  .workspace-create-form,
  .workspace-rename-form,
  .account-key-row,
  .oauth-grant-row {
    grid-template-columns: 1fr;
  }

  .account-invite-head { display: none; }
  .account-key-head { display: none; }
  .account-invite-row > [data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--type-micro); font-weight: var(--w-semi); text-transform: uppercase; }
  .invitation-gated .main { padding: 24px 14px; }
  .invitation-gate-heading h1,
  .invitation-gate-card h1 { font-size: var(--type-title); }
  .invitation-card dl { display: grid; gap: 10px; }
  .invitation-actions,
  .invitation-decline-confirm > div { display: grid; }
  .workspace-admin-actions { justify-content: flex-start; }
  .workspace-purge-progress { grid-template-columns: 1fr; gap: 4px; }
}

.account-members-table {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.account-member-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) 130px 90px 150px minmax(190px, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
}

.account-members-table:not(.owner-actions) .account-member-row {
  grid-template-columns: minmax(210px, 1.4fr) 130px 90px 150px;
}

.account-member-head {
  min-height: 34px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-member-person {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-member-person strong,
.account-member-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-member-person strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.account-member-person small {
  color: var(--muted);
  font-size: var(--type-micro);
}

.account-member-row.revoked {
  color: var(--muted);
  opacity: 0.72;
}

.account-member-action {
  min-width: 0;
}

.account-member-action .inline-confirm-control,
.account-member-action .inline-confirm-line {
  align-items: flex-start;
}

.connection-settings-page {
  display: grid;
  gap: 14px;
}

/* global Connect uses the approved client-setup composition. */
.global-connect { gap: 24px; }
.global-connect-heading h1 { margin: 0; font-size: 24px; line-height: 35px; }
.global-connect-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.global-connect-endpoint,
.global-connect-card,
.global-connect-advanced {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}
.global-connect-endpoint { padding: 16px; }
.global-connect-card { padding: 24px; }
.global-connect-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--w-med);
  line-height: 18px;
}
.global-connect-endpoint-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 8px; }
.global-connect-endpoint-row code { min-width: 0; color: var(--ink); font: var(--w-med) 14px/21px var(--sans); overflow-wrap: anywhere; }
.global-connect-endpoint-row button { flex: none; }
.global-connect-error { color: var(--danger, #a52533); }
.global-connect-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.global-connect-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  padding: 9px 14px;
}
.global-connect-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.global-connect-tabs button:focus-visible,
.global-connect-copy-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.global-connect-columns { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.global-connect-card h2 { margin: 0 0 16px; font-size: 16px; line-height: 24px; }
.global-connect-setup h2 { font-size: 18px; line-height: 27px; }
.global-connect-steps { margin: 0; padding: 0; list-style: none; counter-reset: connect-step; display: grid; gap: 16px; }
.global-connect-steps li { position: relative; min-width: 0; padding-left: 20px; counter-increment: connect-step; }
.global-connect-steps li::before {
  content: counter(connect-step) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 21px;
  font-weight: var(--w-med);
}
.global-connect-steps strong { display: block; font-size: 14px; font-weight: var(--w-med); line-height: 21px; }
.global-connect-steps p,
.global-connect-boundary span,
.global-connect-advanced p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.global-connect-steps a,
.global-connect-handoff a { display: inline-block; margin-top: 12px; color: var(--accent-dark); font-size: 13px; text-decoration: none; }
.global-connect-command,
.global-connect-task { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 16px; }
.global-connect-command { display: grid; gap: 8px; margin-top: 8px; padding: 12px; }
.global-connect-command code { display: block; overflow-x: auto; font: 12px/18px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.global-connect-copy-link { justify-self: start; border: 0; background: transparent; color: var(--accent-dark); padding: 0; font-size: 13px; }
.global-connect-copy-link:disabled { color: var(--muted); }
.global-connect-boundary { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-top: 16px; padding: 16px; }
.global-connect-boundary strong { font-size: 13px; line-height: 20px; }
.global-connect-unavailable { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 19px; }
.global-connect-task { margin-bottom: 16px; color: var(--ink); font-size: 13px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.global-connect-handoff button { display: block; }
.global-connect-advanced { padding: 16px 24px; }
.global-connect-advanced summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 600; }
.global-connect-advanced[open] summary { margin-bottom: 16px; }
.global-connect-advanced-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.global-connect-advanced-row span { flex: 0 0 110px; color: var(--muted); font-size: 13px; }
.global-connect-advanced-row code { min-width: 0; flex: 1; font: 12px/18px var(--mono); overflow-wrap: anywhere; }
.global-connect-advanced-row button { flex: none; }
@media (max-width: 760px) {
  .global-connect-columns { grid-template-columns: minmax(0, 1fr); }
  .global-connect-endpoint { padding: 16px; }
  .global-connect-card { padding: 24px; }
  .global-connect-endpoint-row { align-items: flex-start; flex-direction: column; }
  .global-connect-tabs { flex-wrap: nowrap; gap: 4px; }
  .global-connect-tabs button { flex: none; padding: 9px 8px; font-size: 12px; white-space: nowrap; }
  .global-connect-advanced-row { align-items: flex-start; flex-direction: column; }
  .global-connect-advanced-row span { flex-basis: auto; }
}

.connection-scope-ledger p,
.connection-operator-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.48;
}

.connection-agent-lead {
  border-color: var(--accent);
}

.connection-agent-instruction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.connection-agent-instruction code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.55;
}

.connection-scope-summary {
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--status-lifecycle-border);
  border-radius: 8px;
  background: var(--status-lifecycle-bg);
  color: var(--status-lifecycle-ink);
  padding: 16px;
}

.connection-scope-summary > span {
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-scope-summary strong code {
  background: transparent;
  color: inherit;
  font-size: var(--type-title);
}

.connection-scope-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.connection-scope-ledger article {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 17px 18px 18px;
}

.connection-scope-ledger article:last-child {
  border-right: 0;
}

.connection-scope-ledger article.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.connection-scope-ledger article > span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-scope-ledger h2 {
  margin: 6px 0 9px;
  font-size: var(--type-section);
}

.connection-scope-ledger code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
}

.connection-scope-ledger a,
.connection-settings-actions a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.connection-settings-panel,
.connection-operator-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 17px 18px;
}

.connection-snippet-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.connection-snippet-tabs button {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--gray-ink);
}

.connection-snippet-tabs button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.connection-settings-snippet {
  max-height: 340px;
  margin: 10px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #f9fafb;
  padding: 14px 16px;
  font: var(--type-secondary)/1.6 var(--mono);
  white-space: pre;
}

.connection-settings-snippet code {
  color: inherit;
  font: inherit;
}

.connection-settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.connection-settings-actions a {
  margin-top: 0;
}

.connection-settings-next {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.48;
}

.connection-settings-next code {
  overflow-wrap: anywhere;
}

.connection-operator-note summary {
  color: var(--gray-ink);
  cursor: pointer;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.oauth-grants-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.oauth-grant-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.oauth-grant-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.oauth-grant-identity code {
  overflow-wrap: anywhere;
  color: var(--gray-ink);
  font-size: var(--type-micro);
}

.oauth-grant-identity span {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.oauth-grant-row ul {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oauth-grant-row li {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 6px 8px;
}

.oauth-grant-row li span {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.oauth-grant-row li code {
  color: var(--muted);
  font-size: var(--type-micro);
}

.account-key-timestamps {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.account-key-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.gate-history-list {
  display: grid;
  gap: 8px;
}

.gate-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.gate-history-filters .active {
  border-color: var(--text);
  color: var(--text);
  background: #f8fafc;
}

.gate-history-filters span {
  color: var(--muted);
  font-size: var(--type-micro);
}

.gate-history-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.gate-history-row span,
.gate-history-row em {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
}

.gate-history-row > div {
  min-width: 0;
}

.gate-history-register {
  display: grid;
  gap: 4px;
}

.gate-history-register strong,
.gate-history-register span {
  display: block;
}

.gate-history-row-probe-set {
  align-items: start;
}

.gate-probe-set-matrix-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
  margin-top: 8px;
}

.gate-probe-set-matrix {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.gate-probe-set-matrix-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gate-probe-set-matrix-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #f8fafc;
  color: var(--text);
}

.gate-probe-set-matrix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gate-probe-set-export-notice,
.gate-probe-set-export-status,
.gate-probe-set-export-error {
  margin: 0;
  font-size: var(--type-secondary);
}

.gate-probe-set-export-notice,
.gate-probe-set-export-status {
  color: var(--muted);
}

.gate-probe-set-export-error {
  color: var(--danger);
}

.gate-probe-set-matrix-scroll {
  overflow-x: auto;
}

.gate-probe-set-matrix table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--type-secondary);
}

.gate-probe-set-matrix th,
.gate-probe-set-matrix td {
  border: 1px solid var(--line);
  padding: 6px;
  vertical-align: top;
  text-align: left;
}

.gate-probe-set-matrix th small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.gate-probe-set-cell {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.gate-probe-set-cell.green {
  border-color: #86efac;
  background: #f0fdf4;
}

.gate-probe-set-cell.yellow {
  border-color: #fde68a;
  background: #fffbeb;
}

.gate-probe-set-cell.red {
  border-color: #fecaca;
  background: #fef2f2;
}

/* dense temporal Gate evidence. The matrix stays quiet; the time rail carries the identity. */
.gate-temporal-matrix-scroll { overflow-x: auto; }
.gate-temporal-matrix table { min-width: 720px; }
.gate-temporal-matrix th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 170px; }
.gate-temporal-cell { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 6px 8px; text-align: left; }
.gate-temporal-cell > span { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; font-size: var(--type-micro); flex: 0 0 auto; }
.gate-temporal-cell-name { display: none; }
.gate-temporal-cell b { font-weight: 600; }
.gate-temporal-matrix-note { margin: 0; color: var(--muted); font-size: var(--type-secondary); }
.gate-temporal-detail { display: grid; gap: 18px; }
.gate-temporal-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.gate-temporal-detail-facts > div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.gate-temporal-detail-facts dt { color: var(--muted); font-size: var(--type-micro); text-transform: uppercase; letter-spacing: .06em; }
.gate-temporal-detail-facts dd { margin: 3px 0 0; }
.gate-temporal-assertions h4,
.gate-temporal-rail h4 { margin: 2px 0 8px; }
.gate-temporal-assertions ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gate-temporal-assertions li { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }
.gate-temporal-assertions li.failed,
.gate-temporal-assertions li.error { border-left: 3px solid var(--danger); }
.gate-temporal-assertions code { overflow-wrap: anywhere; white-space: normal; }
.gate-temporal-rail > ol { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 0; }
.gate-temporal-rail > ol > li { position: relative; border-left: 1px solid #cbd5e1; padding: 0 0 22px 24px; display: grid; gap: 9px; }
.gate-temporal-rail > ol > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.gate-temporal-rail-node { position: absolute; left: -7px; top: 2px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gate-temporal-checkpoint-head { display: flex; justify-content: space-between; gap: 12px; }
.gate-temporal-checkpoint-head span { color: var(--muted); font-size: var(--type-secondary); }
.gate-temporal-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 12px; }
.gate-temporal-metrics > span { display: grid; min-width: 0; }
.gate-temporal-metrics small { color: var(--muted); text-transform: capitalize; }
.gate-temporal-metrics code { overflow-wrap: anywhere; }
.gate-temporal-observation { border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; }
.gate-temporal-observation > div { display: grid; }
.gate-temporal-observation span { color: var(--muted); font-size: var(--type-secondary); }
.gate-temporal-observation pre { grid-column: 1 / -1; max-height: 340px; overflow: auto; margin: 3px 0 0; }

@media (max-width: 720px) {
  .gate-temporal-matrix-scroll table,
  .gate-temporal-matrix-scroll thead,
  .gate-temporal-matrix-scroll tbody,
  .gate-temporal-matrix-scroll tr,
  .gate-temporal-matrix-scroll th,
  .gate-temporal-matrix-scroll td { display: block; min-width: 0; }
  .gate-temporal-matrix-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .gate-temporal-matrix-scroll tbody { display: grid; gap: 10px; }
  .gate-temporal-matrix-scroll tr { border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
  .gate-temporal-matrix-scroll th:first-child { position: static; border: 0; padding: 0 0 7px; }
  .gate-temporal-matrix-scroll td { border: 0; padding: 3px 0; }
  .gate-temporal-cell-name { display: inline; color: var(--text); font-weight: 600; margin-right: auto; }
  .gate-temporal-detail-facts,
  .gate-temporal-metrics { grid-template-columns: 1fr; }
  .gate-temporal-assertions li { grid-template-columns: 1fr; }
  .gate-temporal-observation { grid-template-columns: 1fr; }
}

.upgrade-page {
  max-width: 1180px;
}

.upgrade-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.upgrade-panel h1 {
  margin: 4px 0 0;
  font-size: var(--type-title);
}

.upgrade-panel p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

/* launch pricing and Stripe-backed account billing. */
.upgrade-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  color: #424b59;
}

.upgrade-state-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.upgrade-state-chip.ok { color: #1a7f4e; border-color: #bfe4d0; background: #f1faf5; }
.upgrade-state-chip.warn { color: #92600a; border-color: #ecd9ab; background: #fdf7e8; }
.upgrade-state-chip.bad { color: #b3382c; border-color: #efc7c2; background: #fdf2f1; }
.upgrade-state-chip.muted { color: #5a6472; }

.upgrade-panel .upgrade-error {
  border: 1px solid #efc7c2;
  border-radius: 6px;
  background: #fdf2f1;
  padding: 10px 12px;
  color: #8f2c22;
}

.upgrade-checkout-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  background: #f7f9fc;
  margin-top: 14px;
  padding: 11px 12px;
  color: var(--text);
}

.upgrade-checkout-state strong { color: var(--ink); }
.upgrade-checkout-state span { flex: 1 1 440px; line-height: 1.45; }
.upgrade-checkout-state.waiting { border-color: #d8d0ff; background: #f7f5ff; }
.upgrade-checkout-state.confirmed { border-color: #bfe4d0; background: #f1faf5; color: #1a6a45; }
.upgrade-checkout-state.delayed { border-color: #ecd9ab; background: #fdf7e8; color: #76500d; }
.upgrade-checkout-state.cancelled { color: var(--muted); }

.upgrade-panel .upgrade-note-label {
  display: block;
  margin: 4px 0 6px;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.upgrade-panel textarea {
  width: 100%;
  margin-bottom: 14px;
  resize: vertical;
}

.upgrade-panel .gate-actions button {
  min-width: 130px;
}

.upgrade-panel code {
  font-size: var(--type-body);
  background: #f4f6f8;
  border-radius: 4px;
  padding: 1px 5px;
}

.billing-checkout-actions { display: grid; gap: 8px; }
.billing-checkout-actions button { width: 100%; }
.billing-capability-warning,
.billing-checkout-confirmation {
  display: grid;
  gap: 7px;
  border-left: 3px solid #b9790d;
  border-radius: 4px;
  background: #fdf7e8;
  margin: 0 0 14px;
  padding: 10px 12px;
  color: #68470d;
  font-size: var(--type-secondary);
  line-height: 1.45;
}
.billing-capability-warning strong,
.billing-checkout-confirmation strong { color: #543705; }
.billing-capability-warning span,
.billing-checkout-confirmation span { display: block; }
.billing-checkout-confirmation { margin-top: auto; }
.billing-checkout-confirmation button { width: 100%; }
.upgrade-panel .billing-legal { margin: 10px 0 0; color: var(--muted); font-size: var(--type-micro); line-height: 1.45; }
.upgrade-panel .billing-legal a { color: var(--purple); }
.upgrade-panel .upgrade-owner-note { margin: 8px 0 0; font-size: var(--type-secondary); }
.upgrade-panel .billing-usage-note { margin-top: 14px; color: var(--text); }
.upgrade-panel .billing-placeholder-note,
.tier-placeholder-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.gate-receipt-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.gate-receipt-row.clickable {
  cursor: pointer;
}

.gate-receipt-row.clickable:hover,
.gate-receipt-row.clickable:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  outline: 0;
}

.gate-receipt-row strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.client-share-ledger {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.client-share-ledger-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 18px 0 12px; }
.client-share-ledger-head h2 { margin: 2px 0 0; }
.client-share-announcement { min-height: 20px; margin: 0; color: var(--muted); }
.client-share-empty { margin: 0; padding: 18px 0 22px; color: var(--muted); border-top: 1px solid var(--line); }
.client-share-row { position: relative; display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.client-share-state-rail { align-self: stretch; min-height: 42px; background: var(--accent); border-radius: 999px; }
.client-share-row.is-revoked .client-share-state-rail { background: var(--muted); }
.client-share-main { display: grid; gap: 4px; min-width: 0; }
.client-share-main > span, .client-share-main > p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.client-share-stamp { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: var(--type-secondary); font-weight: 700; white-space: nowrap; }
.client-share-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.client-share-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-drawer { width: min(520px, calc(100vw - 24px)); overflow-x: hidden; }
.share-drawer-step { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; }
.share-drawer-step p { margin: 0; color: var(--muted); }
.share-audience-picker { min-width: 0; margin: 18px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; }
.share-audience-picker label { display: flex; gap: 9px; align-items: center; padding: 7px 8px; border-radius: 6px; }
.share-audience-picker label.is-invalid { outline: 2px solid var(--danger); }
.share-audience-picker input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; }
.share-drawer-error { color: var(--danger); overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .client-share-row { grid-template-columns: 4px minmax(0, 1fr); }
  .client-share-stamp { grid-column: 2; justify-self: start; }
  .client-share-actions { grid-column: 2; }
  .share-drawer { width: 100%; max-width: 100%; }
}

.gate-ci-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
  min-width: min(360px, 100%);
}

.gate-ci-steps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafbfc;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  padding: 7px 10px;
  white-space: nowrap;
}

.store-overview-identity {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 2px 0 16px;
  border-bottom: 1px solid var(--line);
}

[data-store-room-heading] {
  scroll-margin-top: 22px;
}

[data-store-room-heading]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 4px;
}

.store-world-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.store-world-heading > div {
  flex: 1 1 340px;
  min-width: min(100%, 340px);
}

.store-world-heading h1,
.store-world-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: var(--type-title);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.store-overview-identity p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.store-world-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edfdf5;
  color: #18794e;
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  white-space: nowrap;
}

.store-world-status.muted {
  background: var(--soft);
  color: var(--muted);
}

.store-world-status.amber {
  background: var(--amber);
  color: var(--amber-ink);
}

.home-store-status.amber {
  color: var(--amber-ink);
  font-weight: var(--w-med);
}

.store-world-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 9px;
  color: var(--muted);
  font-size: var(--type-body);
}

.store-world-meta span {
  overflow-wrap: anywhere;
}

.store-connection-access {
  display: grid;
  gap: 12px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.store-connection-access-head,
.store-connection-access-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.store-connection-access-head > div {
  display: grid;
  gap: 2px;
}

.store-connection-access-head strong {
  font-size: var(--type-body);
}

.store-connection-materials {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.store-connection-materials > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.store-connection-materials dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.store-connection-materials dd {
  min-width: 0;
  margin: 0;
}

.store-connection-materials code {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--type-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-connection-materials > div > span {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.35;
}

.store-connection-access-actions {
  justify-content: flex-start;
}

.store-connection-access-actions > div {
  display: grid;
  gap: 4px;
}

/* the try-it curl carries the preview≡clipboard pane. It stays out of the
   "Copy and go" density until the reader hovers, focuses, or taps into the affordance. */
.store-connection-try-it .store-connection-curl-preview,
.store-connection-try-it [data-vstore-curl-preview-note] {
  display: none;
  max-width: 420px;
}

.store-connection-try-it:hover .store-connection-curl-preview,
.store-connection-try-it:focus-within .store-connection-curl-preview,
.store-connection-try-it:hover [data-vstore-curl-preview-note],
.store-connection-try-it:focus-within [data-vstore-curl-preview-note] {
  display: block;
}

.store-connection-access-actions span {
  max-width: 260px;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.35;
}

.store-connection-access-error {
  margin: 0 !important;
  color: var(--danger) !important;
  font-size: var(--type-secondary);
}

.store-world-actions {
  display: grid;
  justify-content: flex-end;
  justify-items: end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.store-world-utilities {
  align-content: center;
}

.store-world-next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.store-world-step {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  white-space: nowrap;
}

.store-world-step-map {
  position: relative;
}

.store-world-step-map > summary {
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.store-world-step-map > summary::-webkit-details-marker {
  display: none;
}

.store-world-step-map > summary > span {
  display: inline-block;
  color: var(--accent-dark);
  font-size: var(--type-body);
  transition: transform 140ms ease;
}

.store-world-step-map[open] > summary {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.store-world-step-map[open] > summary > span {
  transform: rotate(180deg);
}

.store-world-step-map-panel {
  position: fixed;
  z-index: 80;
  top: 88px;
  right: 24px;
  width: min(340px, calc(100vw - 44px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(31, 35, 56, 0.18);
  padding: 12px;
  text-align: left;
}

.store-world-step-map-panel > strong {
  font-size: var(--type-secondary);
}

.first-receipt-steps.store-world-step-map-list {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 7px 0 0;
}

.first-receipt-steps.store-world-step-map-list li {
  border-top: 0;
  padding-top: 7px;
  font-size: var(--type-secondary);
}

.store-world-next-button {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.store-world-secondary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.store-world-utility-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.store-world-link {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  line-height: 1.25;
}

.store-world-link:hover {
  color: var(--accent);
}

.store-world-link.danger-link {
  color: var(--danger);
}

.store-world-link.danger-link.pending {
  font-weight: var(--w-bold);
}

.store-world-link.danger-link:hover {
  color: #9f1239;
}

.store-world-actions button {
  max-width: 100%;
  white-space: nowrap;
}

.store-world-actions .store-world-next-button {
  white-space: normal;
}

.store-world-detail .store-baseline:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.store-world-detail {
  min-width: 0;
  min-height: 360px;
}

.store-world-detail .store-contents {
  min-height: 180px;
}

.store-passport-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.store-passport-section-head h2 {
  margin-top: 2px;
  font-size: var(--type-section);
  line-height: 1.2;
}

.store-passport-section-head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.vstore-activity-list {
  display: grid;
  gap: 8px;
}

.vstore-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.vstore-activity-row strong,
.vstore-activity-row span {
  display: block;
  overflow-wrap: anywhere;
}

.vstore-activity-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.vstore-manage-section .store-world-utility-links {
  justify-content: flex-start;
}

.store-zero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
  gap: 14px;
}

.store-zero-main {
  min-width: 0;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: var(--shadow);
  padding: 14px;
}

.recommendation-card h2 {
  margin-top: 2px;
  font-size: var(--type-section);
  line-height: 1.2;
}

.recommendation-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.recommendation-steps {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.recommendation-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.recommendation-steps span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.recommendation-actions {
  display: grid;
  gap: 8px;
}

.first-receipt-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.first-receipt-copy {
  min-width: 0;
}

.first-receipt-copy h2,
.first-receipt-copy h1,
.section-inline-head h2 {
  margin-top: 4px;
  font-size: var(--type-title);
  line-height: 1.15;
}

.first-receipt-copy p,
.first-receipt-side p,
.section-inline-head p,
.first-muted {
  margin-top: 7px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.first-receipt-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.first-receipt-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--ink);
  font-size: var(--type-body);
}

.first-receipt-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.first-receipt-steps li.done {
  color: var(--muted);
}

.first-receipt-steps li.done span {
  border-color: var(--green);
  background: var(--green);
  color: var(--green-ink);
}

.first-receipt-steps li.current {
  border-top-color: var(--accent);
  color: var(--ink);
}

.first-receipt-steps li.current span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.first-receipt-steps strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.first-receipt-steps li em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  white-space: nowrap;
}

.first-receipt-steps li.current em {
  color: var(--accent-dark);
}

.guide-restore-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-med);
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.guide-restore-button:hover,
.guide-restore-button:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.guide-restore-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.first-run-guide {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 97%, var(--accent-soft));
  box-shadow: 0 10px 28px rgba(31, 35, 56, 0.12);
}

.first-run-guide.expanded {
  padding: 16px;
}

.first-run-guide.progress-pulse {
  animation: first-run-guide-progress-pulse 520ms ease-out 1;
}

@keyframes first-run-guide-progress-pulse {
  0% { border-color: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 32%, transparent); }
  100% { border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); box-shadow: 0 0 0 10px transparent; }
}

.first-run-guide > header {
  display: flex;
  align-items: center;
}

.first-run-guide > header {
  justify-content: space-between;
  gap: 14px;
}

.first-run-guide > header > div:first-child {
  display: grid;
  gap: 2px;
}

.first-run-guide-heading {
  margin: 0;
}

.first-run-guide > header > div:last-child {
  display: flex;
  gap: 3px;
}

.first-run-guide > header strong {
  font-size: var(--type-body);
}

.guide-icon-button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--type-section);
  line-height: 1;
}

.guide-icon-button:hover {
  border-color: var(--line-strong);
  background: var(--soft);
  color: var(--ink);
}

.first-run-guide progress {
  display: block;
  width: 100%;
  height: 4px;
  margin: 12px 0 4px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: var(--line);
  accent-color: var(--accent);
}

.first-run-guide progress::-webkit-progress-bar { background: var(--line); }
.first-run-guide progress::-webkit-progress-value { background: var(--accent); }

.first-run-guide-steps {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 8px 0 12px;
}

.first-run-guide-steps li {
  border-top: 0;
  padding-top: 7px;
  font-size: var(--type-secondary);
}

.first-run-guide-steps li:not(.done, .current) {
  color: var(--muted);
}

.first-run-guide-rule {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.first-run-guide-action {
  width: 100%;
  min-height: 38px;
  font-weight: var(--w-semi);
}

.first-run-guide-complete {
  margin: 0;
  color: var(--green-ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.first-run-guide-refusal {
  margin: 0 0 10px;
  padding: 10px 11px;
}

.first-run-guide-refusal span {
  max-height: 6.2em;
  overflow: auto;
}

@media (max-width: 390px) {
  .first-run-guide.expanded {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-run-guide.progress-pulse {
    animation: none;
  }
}

.first-receipt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.home-journey {
  margin-top: 0;
}

.home-first-contact {
  display: grid;
  max-width: 1160px;
  gap: 16px;
}

.home-future-shape {
  overflow: hidden;
  border: 1px dashed #cfd3df;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 244, 250, 0.88));
  color: var(--gray-ink);
}

.home-future-shape > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(216, 221, 232, 0.75);
}

.home-future-shape h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.25;
}

.home-preview-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 9px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-future-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
}

.home-future-module {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 5px;
  padding: 15px 18px;
  border-right: 1px solid rgba(216, 221, 232, 0.72);
  border-bottom: 1px solid rgba(216, 221, 232, 0.72);
}

.home-future-module:nth-child(3),
.home-future-module:last-child {
  border-right: 0;
}

.home-future-module:nth-child(n + 4) {
  border-bottom: 0;
}

.home-future-module.run {
  grid-row: span 2;
  min-height: 208px;
  background: linear-gradient(135deg, rgba(238, 237, 255, 0.55), rgba(255, 255, 255, 0.45));
}

.home-future-module > span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-future-module strong {
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
}

.home-future-module small {
  max-width: 360px;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .home-future-shape > header {
    padding: 14px;
  }

  .home-future-grid {
    grid-template-columns: 1fr;
  }

  .home-future-module,
  .home-future-module.run,
  .home-future-module:nth-child(3),
  .home-future-module:nth-child(n + 4) {
    grid-row: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 221, 232, 0.72);
    padding: 12px 14px;
  }

  .home-future-module:last-child {
    border-bottom: 0;
  }
}

.home-journey .first-receipt-copy h1 {
  max-width: 680px;
  font-size: var(--type-title);
}

.home-guide-exit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.home-guide-exit p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.home-guide-exit .link-button {
  min-height: 28px;
  padding-inline: 0;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.compact-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
}

.home-primary-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.home-primary-action .store-world-next {
  justify-content: flex-start;
}

.home-action-note {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.home-secondary-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.home-secondary-links a,
.home-current-store a,
.home-current-store .link-button {
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.home-secondary-links a:hover,
.home-current-store a:hover,
.home-current-store .link-button:hover {
  text-decoration: underline;
}

.home-context {
  gap: 14px;
}

.home-current-store {
  display: grid;
  gap: 7px;
}

.home-current-store.selected {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.home-current-store strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.2;
}

.home-current-store > span:last-of-type {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.4;
}

.home-defaults {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.home-defaults > div {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 9px 0;
}

.home-defaults dt,
.home-defaults dd {
  margin: 0;
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.home-defaults dt {
  color: var(--muted);
  font-weight: var(--w-med);
}

.home-defaults dd {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: var(--w-semi);
}

.home-safe-default {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.home-safe-default strong {
  color: var(--green-ink);
  font-size: var(--type-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-store-id {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.home-store-id summary {
  width: max-content;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: var(--w-semi);
}

.home-store-id code {
  display: inline-block;
  margin-top: 4px;
  color: var(--gray-ink);
  overflow-wrap: anywhere;
}

.home-current-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.home-dashboard {
  display: grid;
  gap: 16px;
}

.demo-workspace {
  display: grid;
  gap: 14px;
}

.demo-workspace.revised {
  padding-bottom: 70px;
}

.demo-scenario-chooser {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.demo-scenario-chooser h2,
.demo-scenario-chooser p {
  margin: 5px 0 0;
}

.demo-scenario-chooser p {
  color: var(--muted);
  font-size: var(--type-body);
}

.demo-scenario-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-scenario-option {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 13px 14px;
  text-align: left;
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.demo-scenario-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.demo-scenario-option strong {
  font-size: var(--type-section);
}

.demo-scenario-option small {
  color: var(--muted);
  line-height: 1.35;
}

.demo-current-outcome {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.demo-current-outcome.losing {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.demo-current-outcome strong {
  color: var(--ink);
  font-size: var(--type-section);
}

.demo-current-outcome span {
  color: var(--muted);
  font-size: var(--type-body);
}

.demo-act {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.demo-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.demo-verdict.loading {
  align-content: center;
  min-height: 320px;
}

.demo-verdict-copy {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.demo-verdict h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.12;
  letter-spacing: 0;
}

.demo-verdict p,
.demo-act-head p,
.demo-moment-card p,
.demo-count-note,
.demo-repro-line,
.demo-evidence-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.48;
}

.demo-primary-actions,
.demo-tertiary-actions,
.demo-replay-controls,
.demo-sticky-cta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.demo-tertiary-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.demo-dismiss-landing {
  color: var(--muted);
  font-size: var(--type-body);
}

.demo-repro-line {
  color: var(--gray-ink);
}

.demo-repro-line summary {
  width: fit-content;
  cursor: pointer;
  color: var(--gray-ink);
}

.demo-repro-line p {
  margin: 6px 0 0;
  color: var(--muted);
}

.demo-verdict-side {
  display: grid;
  gap: 14px;
}

.demo-moment-card {
  border: 1px solid #d3e7dc;
  border-radius: 8px;
  background: #f6fbf8;
  padding: 16px;
}

.demo-moment-card.primary {
  padding: 16px;
}

.demo-moment-card h2,
.demo-moment-card h3 {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.18;
}

.demo-moment-card h2 {
  font-size: var(--type-title);
}

.demo-moment-card h3 {
  font-size: var(--type-section);
}

.demo-moment-card small {
  display: block;
  margin-top: 10px;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.demo-moment-details {
  margin-top: 10px;
}

.demo-moment-details summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.demo-moment-details dl {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
}

.demo-moment-details div {
  display: grid;
  gap: 2px;
}

.demo-moment-details dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.demo-moment-details dd {
  margin: 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  overflow-wrap: anywhere;
}

.demo-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.demo-stat-strip span,
.demo-replay-stats span {
  display: grid;
  gap: 3px;
  background: #fff;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.2;
  padding: 10px;
}

.demo-stat-strip span + span {
  border-left: 1px solid var(--line);
}

.demo-stat-strip strong,
.demo-replay-stats strong {
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1;
}

.demo-preparing-panel {
  min-height: 280px;
}

.demo-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--gray-ink);
  font-size: var(--type-body);
}

.demo-progress span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 850ms linear infinite;
}

.demo-replay,
.demo-evidence {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.demo-act-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.demo-act-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.15;
}

.demo-replay-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #ddd9ff;
  border-radius: 8px;
  background: #f8f7ff;
  padding: 8px 10px;
}

.demo-replay-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.demo-recording-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  border: 1px solid #d6d0ff;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  padding: 4px 8px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.demo-recording-chip i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.demo-recording-chip.paused i { background: #9ca3af; }
.demo-recording-chip.finished i { background: var(--green-ink); }

.demo-replay-controls {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  flex-wrap: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  padding: 3px;
}

.demo-transport-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  border-color: transparent;
  background: transparent;
  color: var(--gray-ink);
  padding: 0 9px;
  font-size: var(--type-secondary);
}

.demo-transport-button:hover:not(:disabled) {
  background: var(--panel);
  color: var(--accent-dark);
}

.demo-transport-button.primary {
  background: var(--accent);
  color: #fff;
}

.demo-transport-button.primary:hover:not(:disabled) {
  background: var(--accent-dark);
  color: #fff;
}

.demo-transport-button:disabled {
  background: transparent;
  color: var(--muted);
  transform: none;
}

.demo-transport-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  transition: transform 120ms ease;
}

.demo-transport-icon[data-demo-transport-icon="play"] {
  transform: translateX(0.75px);
}

.demo-transport-button:hover:not(:disabled) .demo-transport-icon[data-demo-transport-icon="play"] {
  transform: translateX(0.75px) scale(1.06);
}

.demo-transport-button:active:not(:disabled) .demo-transport-icon[data-demo-transport-icon="play"] {
  transform: translateX(0.75px) scale(0.94);
}

.demo-replay-timeline {
  display: grid;
  gap: 6px;
}

.demo-replay-meter {
  height: 8px;
  border-radius: 999px;
  background: #eef1f5;
  overflow: hidden;
}

.demo-replay-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 320ms ease;
}

.demo-replay-timecode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--type-micro);
}

.demo-replay-timecode strong {
  color: var(--gray-ink);
  font-variant-numeric: tabular-nums;
}

.demo-replay-grid {
  display: grid;
  grid-template-columns: 160px minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.demo-day-counter {
  display: grid;
  align-content: center;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.demo-day-counter span,
.demo-day-counter em {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
}

.demo-day-counter strong {
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 0.95;
}

.demo-replay-stats {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.demo-replay-stats span + span {
  border-top: 1px solid var(--line);
}

.demo-replay-stats span,
.demo-replay-stats strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-replay-log {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.demo-replay-log > div:not(.empty-state):not(.demo-replay-ghost) {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 9px;
}

.demo-replay-log > div.decisive {
  border-color: #d3e7dc;
  background: #f6fbf8;
}

.demo-replay-log span,
.demo-replay-log em {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
}

.demo-replay-log strong {
  min-width: 0;
  color: var(--ink);
  font-size: var(--type-body);
  overflow-wrap: anywhere;
}

.demo-replay-start {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 188px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-align: center;
}

.demo-replay-start-action {
  display: grid;
  place-items: center;
  gap: 8px;
}

.demo-replay-start .demo-transport-icon {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 11px;
  box-shadow: 0 4px 12px rgba(70, 54, 180, 0.2);
}

.demo-replay-start .demo-replay-start-label {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.demo-replay-start:hover .demo-transport-icon {
  background: var(--accent-dark);
  transform: translateX(0.75px) translateY(-1px) scale(1.04);
}

.demo-replay-start:active .demo-transport-icon {
  transform: translateX(0.75px) scale(0.94);
}

.demo-replay-start strong {
  font-size: var(--type-body);
}

.demo-replay-start em {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
}

.demo-replay-ghost {
  display: grid;
  gap: 7px;
  opacity: 0.36;
  pointer-events: none;
}

.demo-replay-ghost div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 9px;
}

.demo-replay-idle {
  display: grid;
  place-content: center;
  gap: 5px;
  min-height: 188px;
  color: var(--muted);
  text-align: center;
}

.demo-replay-idle strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.demo-replay-idle span {
  font-size: var(--type-secondary);
}

.demo-replay-finished {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #b9ddc8;
  border-radius: 8px;
  background: #f3faf6;
  padding: 16px;
}

.demo-replay-finished h3 {
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: var(--type-title);
}

.demo-replay-finished p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.first-run-guide-action {
  width: auto;
  justify-self: start;
}

.demo-replay-finished-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.demo-zero-note {
  margin: -2px 0 0;
  color: var(--ink);
  font-size: var(--type-secondary);
  line-height: 1.42;
}

.demo-evidence-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.demo-evidence-panel summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.demo-evidence-panel summary::-webkit-details-marker {
  display: none;
}

.demo-evidence-panel summary::after {
  content: "+";
  color: var(--muted);
  font-size: var(--type-section);
  line-height: 1;
}

.demo-evidence-panel[open] summary::after {
  content: "-";
}

.demo-evidence-panel summary strong {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.demo-evidence-panel > :not(summary) {
  margin: 0 16px 16px;
}

.demo-evidence-panel .receipt-card,
.demo-evidence-panel .report-section,
.demo-evidence-panel .report-empty-note {
  box-shadow: none;
}

.demo-call-row.open {
  background: #f8fafc;
}

.demo-call-table th:first-child,
.demo-call-table td:first-child {
  width: 92px;
  white-space: nowrap;
}

.demo-call-day {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.demo-call-status {
  color: var(--gray-ink);
  font-weight: var(--w-med);
}

.demo-call-status.dim {
  color: var(--muted);
  font-weight: var(--w-reg);
  opacity: 0.66;
}

.demo-call-status.emphasis {
  color: var(--red-ink);
  font-weight: var(--w-bold);
}

.demo-call-detail-toggle {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  padding: 0;
  text-align: left;
}

.demo-call-detail-toggle:hover,
.demo-call-detail-toggle:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.demo-call-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.62;
  transform: rotate(-45deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

.demo-call-row.open .demo-call-chevron {
  opacity: 0.9;
  transform: rotate(45deg);
}

.demo-call-detail-row td {
  background: #fbfcfe;
  padding: 0 12px 14px clamp(24px, 8vw, 116px);
  border-top: 0;
}

.demo-call-detail-panel {
  border-left: 2px solid rgba(99, 91, 255, 0.3);
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
}

.demo-call-forensic {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.demo-call-detail-row dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
}

.demo-call-detail-row div {
  display: grid;
  gap: 3px;
}

.demo-call-detail-row dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-call-detail-row dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-secondary);
}

.demo-call-preview-footer td {
  background: #fbfcfe;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.demo-evidence-teach,
.demo-evidence-story {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.55;
}

.demo-evidence-story {
  color: var(--ink);
}

.demo-evidence-exit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.demo-evidence-exit p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.demo-call-preview-footer .link-button {
  color: var(--accent);
  font-weight: var(--w-med);
}

.demo-sticky-cta {
  position: sticky;
  z-index: 5;
  bottom: 12px;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.demo-sticky-cta span {
  margin-right: auto;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.demo-sticky-cta a {
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.demo-sticky-cta a:hover {
  text-decoration: underline;
}

.home-dashboard-hero,
.home-run-hero,
.home-section,
.home-ci-panel,
.home-nightly-hook {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-workspace-dashboard {
  max-width: 1160px;
}

.home-run-hero {
  overflow: hidden;
  border-color: #d9d7ff;
  background: linear-gradient(135deg, #fff 0%, #fbfaff 68%, #f2f0ff 100%);
  box-shadow: 0 16px 40px rgba(58, 49, 140, 0.08);
}

.home-run-hero > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}

.home-run-hero h1 {
  margin: 4px 0 0;
  font-size: var(--type-title);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.home-run-instruments {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2fr);
  gap: 20px;
  border-top: 1px solid rgba(104, 93, 232, 0.16);
  border-bottom: 1px solid rgba(104, 93, 232, 0.16);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 20px;
}

.home-run-progress {
  display: grid;
  align-content: center;
  gap: 9px;
}

.home-run-progress span {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.home-run-progress progress,
.home-usage-module progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e9e7f7;
  accent-color: var(--accent);
}

.home-run-instruments dl {
  display: grid;
  grid-template-columns: minmax(190px, 1.65fr) repeat(3, minmax(92px, 1fr));
  margin: 0;
}

.home-run-instruments dl > div {
  display: grid;
  align-content: center;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding: 0 14px;
}

.home-run-instruments dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-run-instruments dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
  font-weight: var(--w-semi);
  line-height: 1.2;
}

.home-run-instruments small {
  color: var(--muted);
  font-size: var(--type-micro);
}

.home-run-hero > .home-dashboard-actions {
  padding: 14px 20px 18px;
}

.home-usage-module p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.home-usage-module.watch progress { accent-color: #8f6b18; }
.home-usage-module.warning progress,
.home-usage-module.critical progress { accent-color: var(--status-error-icon); }

.home-gate-nightly {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.home-empty-row strong,
.home-empty-row span {
  display: block;
}

.home-empty-row strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.store-type-dot.active {
  box-shadow: 0 0 0 4px rgba(33, 163, 102, 0.12);
}

.home-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.home-orientation-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-orientation-strip > a,
.home-orientation-strip > button {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 13px 16px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.home-orientation-strip > :last-child {
  border-right: 0;
}

.home-orientation-strip > a:hover,
.home-orientation-strip > button:hover {
  background: #fafaff;
  text-decoration: none;
}

.home-orientation-strip span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-orientation-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-orientation-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dashboard-hero h1,
.home-ci-panel h2,
.home-nightly-hook h2 {
  margin: 4px 0 0;
  font-size: var(--type-title);
  line-height: 1.15;
}

.home-dashboard-hero p,
.home-ci-panel p,
.home-nightly-hook p,
.home-list-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.4;
}

.home-hero-meta {
  color: var(--gray-ink) !important;
  font-weight: var(--w-med);
}

.home-dashboard-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.home-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 12px;
  font-size: var(--type-body);
  font-weight: var(--w-med);
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-primary-link:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.home-section {
  padding: 14px 16px 16px;
}

.home-section .section-inline-head {
  margin-bottom: 10px;
}

.home-section .section-inline-head a,
.home-ci-panel a,
.home-row-actions a {
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.home-section .section-inline-head a:hover,
.home-ci-panel a:hover,
.home-row-actions a:hover {
  text-decoration: underline;
}

.home-list {
  display: grid;
  gap: 8px;
}

.home-list-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.home-list-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-list-row strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: var(--type-body);
}

.home-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  white-space: nowrap;
}

.home-status.large {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  font-size: var(--type-body);
}

.home-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--muted);
}

.home-status.green {
  color: var(--status-supported-ink);
}

.home-status.green i {
  background: var(--status-supported-icon);
}

.home-status.blue {
  color: var(--status-lifecycle-ink);
}

.home-status.blue i {
  background: var(--status-lifecycle-icon);
}

.home-status.red {
  color: var(--status-error-ink);
}

.home-status.red i {
  background: var(--status-error-icon);
}

.home-status.yellow {
  color: var(--status-unsupported-ink);
  white-space: normal;
}

.home-status.yellow i {
  background: var(--status-unsupported-icon);
}

.home-status.gray i {
  background: #fff;
  border: 1.5px solid var(--status-neutral-border);
}

.home-status.sample {
  color: var(--status-sample-ink);
}

.home-status.sample i {
  background: var(--status-sample-icon);
}

.home-status.status-token-supported {
  color: var(--status-supported-ink);
}

.home-status.status-token-supported i {
  background: var(--status-supported-icon);
}

.home-status.status-token-rejected {
  color: var(--status-rejected-ink);
}

.home-status.status-token-rejected i {
  background: var(--status-rejected-icon);
}

.home-status.status-token-unsupported {
  color: var(--status-unsupported-ink);
}

.home-status.status-token-unsupported i {
  background: var(--status-unsupported-icon);
}

.home-status.status-token-error {
  color: var(--status-error-ink);
}

.home-status.status-token-error i {
  background: var(--status-error-icon);
}

.home-status.status-token-neutral {
  color: var(--status-neutral-ink);
}

.home-status.status-token-neutral i {
  background: #fff;
  border: 1.5px solid var(--status-neutral-border);
}

.home-status.status-token-lifecycle {
  color: var(--status-lifecycle-ink);
}

.home-status.status-token-lifecycle i {
  background: var(--status-lifecycle-icon);
}

.home-status.status-token-sample {
  color: var(--status-sample-ink);
}

.home-status.status-token-sample i {
  background: var(--status-sample-icon);
}

[data-receipt-list-status] {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-row-verdict [data-receipt-list-status] .chip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.home-empty-row {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 14px;
  font-size: var(--type-body);
}

.home-feed-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 10px 12px;
  text-decoration: none;
}

.home-feed-row:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.home-feed-row strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.home-feed-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.4;
}

.home-ci-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.home-nightly-hook {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.first-receipt-side {
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.first-receipt-side h3 {
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.25;
}

.first-safety-grid {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.first-safety-grid span {
  display: flex;
  align-items: center;
  min-height: 30px;
  border-top: 1px solid var(--line);
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.first-store-list {
  display: grid;
  gap: 10px;
}

.section-inline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-inline-head > div {
  min-width: 0;
}

.first-store-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.first-store-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.first-store-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.first-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.first-empty {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.first-empty strong {
  font-size: var(--type-body);
}

.first-empty span {
  color: var(--muted);
  font-size: var(--type-body);
}

.recommendation-actions button {
  width: 100%;
}

.zero-store-empty strong,
.zero-store-empty span {
  display: block;
}

.zero-store-empty strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.zero-store-empty span {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-body);
}

.store-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 14px;
}

.store-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.store-detail-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: var(--type-section);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.store-detail-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.store-detail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.store-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.store-detail-grid > div {
  min-width: 0;
  min-height: 92px;
  border-right: 1px solid var(--line);
  padding: 12px 14px 10px 0;
  margin-right: 14px;
}

.store-detail-grid > div:last-child {
  border-right: 0;
  margin-right: 0;
}

.store-detail-grid span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-detail-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: var(--type-body);
  overflow-wrap: anywhere;
}

.store-detail-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.store-detail-note {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.store-refresh-status.success { color: var(--green-ink); }
.store-refresh-status.error { color: var(--red-ink); }

.store-baseline {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  min-width: 0;
  padding-top: 14px;
}

.store-baseline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.store-baseline-head h3 {
  margin-top: 2px;
  font-size: var(--type-section);
  line-height: 1.2;
}

.store-baseline-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.store-baseline-snapshot {
  min-width: 188px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  text-align: right;
}

.store-baseline-snapshot span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-baseline-snapshot small {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
}

.store-baseline-snapshot strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: var(--type-title);
  font-weight: var(--w-bold);
  line-height: 1.05;
}

.store-baseline-snapshot small {
  margin-top: 5px;
  color: var(--gray-ink);
  font-weight: var(--w-med);
  text-transform: none;
}

.store-baseline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.store-baseline-chart {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.store-baseline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-baseline-toolbar > span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-baseline-segmented {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.store-baseline-zoom-button {
  min-height: 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.store-baseline-zoom-button:hover {
  background: #f6f8fc;
  color: var(--gray-ink);
}

.store-baseline-zoom-button:last-child {
  border-right: 0;
}

.store-baseline-zoom-button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.store-baseline-zoom-button[aria-pressed="true"]:hover {
  background: var(--ink);
  color: #fff;
}

.store-baseline-interactive-chart {
  position: relative;
}

.store-baseline-svg {
  display: block;
  width: 100%;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: crosshair;
}

.baseline-grid-line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.baseline-y-grid-line {
  stroke: #e8ecf4;
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.baseline-y-axis-line {
  stroke: #d7dce7;
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.baseline-y-axis-label,
.baseline-y-tick text {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0;
}

.baseline-y-axis-label {
  text-anchor: start;
  text-transform: uppercase;
}

.baseline-y-tick text {
  text-anchor: end;
}

.baseline-demand-bar {
  fill: #dbe4ff;
  opacity: 0.58;
}

.baseline-revenue-line {
  fill: none;
  stroke: var(--accent-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.baseline-current-line {
  stroke: var(--ink);
  stroke-dasharray: 3 4;
  stroke-width: 1;
  opacity: 0.65;
}

.baseline-endpoint-dot,
.baseline-current-dot {
  fill: #fff;
  stroke: var(--accent-dark);
  stroke-width: 1.7;
}

.baseline-current-dot {
  stroke: var(--ink);
}

.baseline-current-label {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.baseline-current-chip rect {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.baseline-current-chip text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.02em;
  text-anchor: middle;
  text-transform: uppercase;
}

.baseline-axis-line,
.baseline-axis-tick line {
  stroke: var(--line);
  stroke-width: 1;
}

.baseline-axis-tick text {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0;
  text-anchor: middle;
}

.baseline-axis-tick text.day-label,
.playback-axis-tick text.day-label {
  transform-box: fill-box;
  transform-origin: center top;
  transform: rotate(-24deg);
}

.baseline-axis-tick text.start {
  text-anchor: start;
}

.baseline-axis-tick text.end {
  text-anchor: end;
}

.baseline-hover-layer {
  pointer-events: none;
}

.baseline-hover-line {
  stroke: var(--ink);
  stroke-dasharray: 3 4;
  stroke-width: 1;
  opacity: 0.48;
}

.baseline-hover-dot {
  fill: var(--panel);
  stroke: var(--accent-dark);
  stroke-width: 2;
}

.baseline-hover-layer[hidden] {
  display: none;
}

.store-baseline-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 210px;
  max-width: 260px;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(32, 40, 66, 0.16);
  color: var(--muted);
  font-size: var(--type-secondary);
  pointer-events: none;
  transform: translate(-50%, -112%);
}

.store-baseline-tooltip strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.store-baseline-tooltip[hidden] {
  display: none;
}

.store-baseline-empty {
  min-height: 148px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: #fbfcfe;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: var(--type-secondary);
  text-align: center;
}

.store-baseline-chart-meta,
.store-baseline-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: var(--type-micro);
}

.store-baseline-chart-meta span,
.store-baseline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.store-baseline-chart-meta strong {
  color: var(--gray-ink);
  font-weight: var(--w-semi);
}

.legend-line,
.legend-bar {
  display: inline-block;
  flex: none;
}

.legend-line {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--accent-dark);
}

.legend-line.current {
  border-top-color: var(--ink);
  border-top-style: dashed;
}

.legend-bar {
  width: 14px;
  height: 7px;
  border-radius: 2px;
  background: #b9c7f8;
}

.store-pressure {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
}

.store-pressure-head,
.store-pressure-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-pressure-head span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-pressure-head strong {
  color: var(--green-ink);
  font-size: var(--type-body);
}

.store-pressure.watch .store-pressure-head strong {
  color: var(--amber-ink);
}

.store-pressure.tight .store-pressure-head strong {
  color: var(--red-ink);
}

.store-pressure.unknown .store-pressure-head strong {
  color: var(--gray-ink);
}

.store-pressure-track {
  height: 7px;
  margin: 8px 0 7px;
  border-radius: 999px;
  background: var(--gray);
  overflow: hidden;
}

.store-pressure-track i {
  display: block;
  width: max(4px, var(--pressure, 0%));
  height: 100%;
  border-radius: inherit;
  background: var(--green-ink);
}

.store-pressure.watch .store-pressure-track i {
  background: var(--amber-ink);
}

.store-pressure.tight .store-pressure-track i {
  background: var(--red-ink);
}

.store-pressure.unknown .store-pressure-track i {
  background: var(--line-strong);
}

.store-pressure-foot span {
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.3;
}

.store-baseline-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.store-baseline-metric {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.store-baseline-metric span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-baseline-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store-baseline-metric p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.3;
}

.store-generation {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.store-generation-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.store-generation-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.2;
}

.store-generation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.store-generation-fact {
  min-width: 0;
  min-height: 76px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.store-generation-fact span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-generation-fact strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.store-generation-fact p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.3;
}

.store-run-list {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 8px;
  display: grid;
}

.store-run-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.store-run-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(100px, 0.7fr) minmax(110px, 0.8fr) auto;
  gap: 12px;
  min-height: 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-secondary);
}

.store-run-row.vstore-world-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 0.8fr) minmax(190px, 1fr) auto;
}

.store-run-row:last-child {
  border-bottom: 0;
}

.store-run-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.store-run-row .small-button {
  justify-self: end;
}

.launch-form select:disabled,
.launch-form input:disabled {
  background: #f6f8fb;
  color: var(--muted);
  cursor: not-allowed;
}

.store-contents {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.store-contents-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.store-contents-head h3 {
  margin-top: 2px;
  font-size: var(--type-body);
  line-height: 1.2;
}

.store-contents-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.store-contents-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.store-contents-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
}

.store-contents-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

.store-contents-table {
  min-width: 620px;
  font-size: var(--type-secondary);
}

.store-contents-table th,
.store-contents-table td {
  height: 34px;
  padding: 7px 10px;
}

.store-contents-table td:first-child strong,
.store-contents-table td:first-child span {
  display: block;
}

.store-contents-table td:first-child span {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
}

.row-note {
  color: var(--muted);
  font-size: var(--type-secondary);
}

/* the honest "No recorded calls" note that replaces an unavailable run-level Console handoff. */
.evidence-handoff-empty {
  align-self: center;
  white-space: nowrap;
  font-style: italic;
}

.onboard-strip {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.35fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.onboard-strip strong {
  display: block;
  font-size: var(--type-body);
}

.onboard-strip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.onboard-strip .onboard-owned {
  margin-top: 0;
  text-align: right;
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.22);
}

.drawer {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 24px));
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
  box-shadow: -18px 0 40px rgba(21, 27, 38, 0.14);
  padding: 22px;
  animation: drawerIn 180ms ease;
}

@keyframes drawerIn {
  from { transform: translateX(24px); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-head h2 {
  margin-top: 2px;
  font-size: var(--type-title);
  line-height: 1.08;
}

.drawer-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.drawer-state-row {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 16px;
}

.drawer.store-world-drawer,
.store-world-drawer .drawer {
  width: min(680px, calc(100vw - 24px));
}

.store-cleanup-target {
  display: grid;
  gap: 8px;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 16px;
}

.store-cleanup-target strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--w-med);
  overflow-wrap: anywhere;
}

.store-cleanup-target code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.store-cleanup-status.fail {
  color: var(--red-ink);
}

.store-cleanup-blocked-actions {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  margin-top: 10px;
  padding: 12px;
}

.store-cleanup-blocked-actions[hidden] {
  display: none;
}

.store-cleanup-blocked-actions p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.store-cleanup-blocked-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.drawer-steps li {
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  padding: 0 0 8px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.drawer-steps li.active {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.drawer-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.drawer-step > * {
  min-width: 0;
  max-width: 100%;
}

.drawer-step > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.drawer-input {
  display: grid;
  gap: 7px;
}

.drawer-input span {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.drawer-input em {
  color: #9aa3b2;
  font-style: normal;
  font-weight: var(--w-semi);
}

.drawer-input input,
.drawer-input select,
.drawer-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.drawer-input input,
.drawer-input select {
  min-height: 42px;
  padding: 0 12px;
}

.drawer-textarea {
  min-height: 132px;
  padding: 11px 12px;
  resize: vertical;
}

.drawer-input input:focus,
.drawer-input select:focus,
.drawer-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  outline: none;
}

.vstore-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.vstore-profile {
  width: 100%;
  min-width: 0;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 13px;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background 120ms ease;
}

.vstore-profile:hover {
  border-color: var(--accent);
  background: #fbfbff;
  transform: translateY(-1px);
}

.vstore-profile.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.vstore-profile .vstore-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.vstore-profile strong {
  display: block;
  font-size: var(--type-body);
  line-height: 1.25;
}

.vstore-profile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.vstore-profile .vstore-profile-badge {
  flex: 0 0 auto;
  margin-top: 0;
  border: 1px solid rgba(216, 71, 110, 0.22);
  border-radius: 999px;
  background: #fff3f6;
  color: var(--accent-dark);
  padding: 2px 7px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  line-height: 1.4;
}

.vstore-profile .vstore-profile-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vstore-profile .vstore-profile-capabilities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 11px;
}

.vstore-profile-capabilities span {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 5px;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.3;
}

.vstore-profile-capabilities b {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vstore-profile-capabilities span > :not(b),
.vstore-template-mapping span > :not(b) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vstore-mutation-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 12px;
  padding: 12px;
}

.vstore-mutation-surface > * {
  min-width: 0;
  max-width: 100%;
}

.vstore-mutation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vstore-mutation-head > div {
  min-width: 0;
}

.vstore-mutation-head h4 {
  margin: 0;
  font-size: var(--type-body);
}

.vstore-mutation-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.vstore-mutation-head > span {
  flex: 0 0 auto;
  border: 1px solid #b8d8c5;
  border-radius: 999px;
  background: #fbfffd;
  color: var(--green-ink);
  padding: 3px 8px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.vstore-mutation-surface details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.vstore-mutation-surface summary {
  cursor: pointer;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.vstore-mutation-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 260px;
  margin-top: 8px;
  overflow: auto;
}

.vstore-mutation-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: var(--type-micro);
}

.vstore-mutation-table th,
.vstore-mutation-table td {
  border-top: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.vstore-mutation-table th {
  color: var(--gray-ink);
  font-weight: var(--w-semi);
}

.vstore-mutation-recipes,
.vstore-mutation-boundaries {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.vstore-mutation-recipes li,
.vstore-mutation-boundaries li,
.vstore-template-mapping {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.vstore-mutation-recipes li {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 8px;
}

.vstore-mutation-recipes b,
.vstore-template-mapping strong,
.vstore-template-mapping b {
  color: var(--ink);
}

.vstore-template-mapping {
  display: grid;
  gap: 5px;
}

.vstore-template-mapping span {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.vstore-template-details {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.vstore-template-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 0 14px;
}

.vstore-template-review > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 14px 0;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.vstore-template-review > summary > span:first-child {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.vstore-template-review > summary small {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vstore-template-review > summary strong {
  font-size: var(--type-body);
}

.vstore-template-review[open] > summary {
  border-bottom: 1px solid var(--line);
}

.vstore-template-review .practice-store-template-detail {
  padding: 16px 0;
}

.practice-store-reference-link {
  justify-self: start;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.vstore-template-details h4 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-secondary);
  line-height: 1.25;
}

.vstore-template-details p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.vstore-template-boundary {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.vstore-template-rubric-grades {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.vstore-template-boundary h4 {
  color: var(--red-ink);
}

.vstore-template-rubric-grades h4 {
  color: var(--accent-dark);
}

.vstore-catalog-source {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.vstore-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vstore-catalog-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-secondary);
}

.vstore-catalog-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.vstore-catalog-head > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  padding: 4px 8px;
}

.vstore-catalog-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.vstore-catalog-toggle label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.vstore-catalog-toggle label.selected {
  border-color: var(--accent);
  background: #eef6ff;
  color: var(--ink);
}

.vstore-catalog-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.vstore-catalog-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.vstore-catalog-save {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.vstore-catalog-saved-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  font-size: var(--type-secondary);
}

.vstore-catalog-saved-detail strong {
  color: var(--ink);
}

.vstore-catalog-saved-detail span {
  color: var(--muted);
}

.vstore-catalog-saved-detail button {
  justify-self: start;
  margin-top: 4px;
}

.vstore-catalog-change-evidence {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
}

.vstore-catalog-change-evidence p {
  color: var(--muted);
  margin: 0;
}

.vstore-catalog-change-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.vstore-catalog-change-stats span {
  background: #eef3f7;
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  gap: 1px;
  padding: 6px;
}

.vstore-catalog-change-stats b {
  color: var(--ink);
  font-size: var(--type-body);
}

.vstore-catalog-change-rows {
  display: grid;
  gap: 6px;
}

.vstore-catalog-change-rows div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 7px;
}

.vstore-catalog-change-rows strong {
  color: var(--ink);
}

.vstore-catalog-change-rows span {
  color: var(--muted);
}

.vstore-catalog-row {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  display: grid;
  grid-template-columns: 20px minmax(180px, 1fr) minmax(76px, 0.3fr) minmax(74px, 0.28fr) minmax(120px, 0.45fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  font-size: var(--type-secondary);
}

.vstore-catalog-row.selected {
  border-color: var(--accent);
  background: #f2f8ff;
}

.vstore-catalog-row strong,
.vstore-catalog-row em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vstore-catalog-row em {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-style: normal;
}

.vstore-catalog-row b {
  color: var(--ink);
  font-weight: var(--w-semi);
  text-align: right;
}

.vstore-catalog-row i {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-style: normal;
}

.vstore-catalog-row i span {
  border: 1px solid #f3c7c7;
  border-radius: 999px;
  background: #fff8f8;
  color: var(--red-ink);
  font-size: var(--type-micro);
  line-height: 1.2;
  padding: 2px 6px;
}

.vstore-catalog-note,
.vstore-catalog-error {
  margin: 10px 0 0;
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.vstore-catalog-note {
  color: var(--muted);
}

.vstore-catalog-error {
  color: var(--red-ink);
}

.vstore-world-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px 12px;
}

.vstore-world-options summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.vstore-world-options-grid,
.drawer-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.drawer-agent-metadata {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px 12px;
}

.drawer-agent-metadata summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.drawer-agent-metadata summary em {
  color: #9aa3b2;
  font-style: normal;
}

.vstore-advanced {
  grid-column: 1 / -1;
}

.drawer-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.drawer-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
}

.drawer-field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.drawer-field-stack {
  display: grid;
  gap: 10px;
}

.drawer-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.drawer-section {
  display: grid;
  gap: 10px;
}

.drawer-section + .drawer-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#vstoreSnippetSection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#vstoreConnectionFields:not([hidden]) ~ #vstoreSnippetSection {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.drawer-section h4 {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.2;
}

.drawer-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.vstore-preflight-result {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: var(--type-body);
}

.vstore-preflight-result p {
  margin: 0;
}

.preflight-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preflight-summary span,
.preflight-op {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.preflight-summary span {
  display: grid;
  gap: 2px;
  padding: 10px;
  color: var(--muted);
  font-size: var(--type-micro);
}

.preflight-summary b {
  color: var(--ink);
  font-size: var(--type-section);
}

.preflight-ops {
  display: grid;
  gap: 8px;
}

.preflight-op {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 11px 12px;
}

.preflight-op strong {
  display: block;
  color: var(--ink);
}

.preflight-op span,
.preflight-op p {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.preflight-op p {
  grid-column: 1 / -1;
}

.preflight-op > b {
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.preflight-summary .supported,
.preflight-op.supported {
  border-color: rgba(38, 132, 82, 0.22);
}

.preflight-summary .gap,
.preflight-op.gap {
  border-color: rgba(205, 146, 29, 0.28);
}

.preflight-summary .fail,
.preflight-op.fail,
.preflight-failed {
  border-color: rgba(196, 61, 61, 0.28);
  color: var(--red-ink);
}

.preflight-scope {
  color: #7b8494;
  font-size: var(--type-secondary);
}

.drawer-section-action {
  justify-self: end;
}

.drawer-clock-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.drawer-clock-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.drawer-clock-option.selected {
  border-color: #1f2937;
  box-shadow: inset 0 0 0 1px #1f2937;
}

.drawer-clock-option input[type="radio"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.drawer-clock-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.drawer-clock-option strong {
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
}

.drawer-clock-option em {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
  line-height: 1.35;
}

.drawer-clock-recommended {
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semibold);
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}

.drawer-playback-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-advanced-timing {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.drawer-advanced-timing summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.drawer-advanced-timing .drawer-playback-controls {
  margin-top: 10px;
}

.drawer-playback-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.drawer-playback-summary div {
  display: grid;
  gap: 3px;
}

.drawer-playback-summary strong {
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
}

.drawer-playback-summary span {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.drawer-webhook-controls {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.vstore-webhook-status {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.vstore-webhook-status strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .drawer-webhook-controls {
    grid-template-columns: 1fr;
  }
}

.drawer-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.drawer-config-grid div {
  min-width: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.drawer-config-grid div:nth-child(-n + 2) {
  border-top: 0;
}

.drawer-config-grid div:nth-child(2n) {
  border-left: 1px solid var(--line);
}

.drawer-config-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-config-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  line-height: 1.2;
}

.drawer-field span {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.drawer-field code,
.drawer-snippet {
  border-radius: 8px;
  background: #f5f6f8;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-secondary);
}

.drawer-field code {
  min-width: 0;
  overflow: auto;
  padding: 8px;
  white-space: nowrap;
}

.drawer-snippet {
  min-height: 104px;
  margin: 4px 0 0;
  overflow: auto;
  padding: 12px;
  white-space: pre;
}

.drawer-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  margin: 24px -22px -22px;
  padding: 14px 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 0;
  background: none;
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  letter-spacing: 0;
  white-space: nowrap;
  color: #424b59;
}

.chip.status-chip {
  color: var(--status-chip-ink, #424b59);
  font-weight: var(--w-semi);
}

.chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.chip.status-chip::before {
  content: var(--status-chip-symbol, "");
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--status-chip-border, transparent);
  background: var(--status-chip-icon, currentColor);
  color: #fff;
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  line-height: 1;
}

.chip.status-chip.status-token-neutral::before,
.chip.status-chip.status-token-lifecycle::before {
  background: #fff;
  border: 2px solid var(--status-chip-icon);
  color: var(--status-chip-icon);
}

.chip.green,
.chip.agent-proof { color: var(--status-supported-ink); }
.chip.green::before,
.chip.agent-proof::before { background: var(--status-supported-icon); }
.chip.amber,
.chip.yellow,
.chip.zero-write { color: var(--status-unsupported-ink); }
.chip.amber::before,
.chip.yellow::before,
.chip.zero-write::before { background: var(--status-unsupported-icon); }
.chip.red,
.chip.needs-attention { color: var(--status-error-ink); }
.chip.red::before,
.chip.needs-attention::before { background: var(--status-error-icon); }
.chip.gray { color: var(--status-neutral-ink); }
.chip.gray::before { background: var(--status-neutral-icon); }
.chip.sample { color: var(--status-sample-ink); }
.chip.sample::before { background: var(--status-sample-icon); }

.keys-panel { margin-top: 32px; }
.keys-list { display: grid; gap: 8px; margin-top: 12px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.key-prefix { font-family: var(--mono); font-size: var(--type-secondary); color: var(--muted); }
.new-key { margin-top: 12px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; }
.new-key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--type-body); color: var(--accent-dark); margin-bottom: 8px; }
.new-key-row { display: flex; gap: 8px; }
.new-key-value { flex: 1; font-family: var(--mono); font-size: var(--type-secondary); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.vstore-ci-key-status {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.4;
}
.vstore-ci-key-status .new-key {
  margin-top: 0;
}
.vstore-ci-key-status p {
  margin: 0;
}

.table-wrap {
  overflow: auto;
}

.record-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
}

.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #263244;
  padding: 0 15px;
  font-weight: var(--w-semi);
}

.record-tab:hover {
  border-color: var(--line-strong);
  background: #f9fafb;
  color: var(--ink);
}

.record-tab.active {
  border-color: #1f2937;
  background: #fff;
  box-shadow: inset 0 0 0 1px #1f2937;
  color: var(--ink);
}

.practice-console-shell {
  display: grid;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 0 32px;
}

.practice-console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 0;
}

.practice-console-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.1;
  letter-spacing: 0;
}

.practice-console-header p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.practice-console-header-actions,
.practice-console-context-meta,
.practice-console-response-meta,
.practice-console-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.practice-console-context-meta {
  align-self: end;
}

.practice-console-evidence-rail {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: none;
}

.practice-console-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.practice-console-rail-head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: var(--type-body);
}

.practice-console-rail-head > span,
.practice-console-evidence-rail > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.practice-console-rail-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.practice-console-rail-mark {
  flex: 0 0 min(260px, 78vw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.practice-console-rail-mark.active {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.practice-console-rail-mark.newest:not(.active) {
  border-color: var(--line-strong);
}

.practice-console-rail-mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.practice-console-rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--status-chip-icon);
  box-shadow: 0 0 0 3px var(--status-chip-bg);
}

.practice-console-rail-mark strong,
.practice-console-rail-mark em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practice-console-rail-mark strong {
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.practice-console-rail-mark em {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
}

.practice-console-rail-mark b {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-ink);
  padding: 2px 6px;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.practice-console-replay-source {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  box-shadow: var(--shadow);
}

.practice-console-replay-source.error {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.practice-console-replay-source > div {
  min-width: 0;
}

.practice-console-replay-source-chips {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.practice-console-replay-source strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.practice-console-replay-source p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.practice-console-replay-source.error strong,
.practice-console-replay-source.error p {
  color: var(--status-error-ink);
}

.practice-console-context {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(150px, 190px) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  box-shadow: none;
}

.practice-console-field {
  display: grid;
  gap: 7px;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.practice-console-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: var(--type-body);
  font-weight: var(--w-med);
}

.practice-console-version-field select {
  font-family: var(--mono);
}

.practice-console-path {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--gray-ink);
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  overflow-wrap: anywhere;
}

.practice-console-context-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.practice-console-context-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

.practice-console-context-item span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  line-height: 1.2;
  text-transform: uppercase;
}

.practice-console-context-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.practice-run-evidence,
.practice-run-evidence-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.practice-run-evidence-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  color: var(--gray-ink);
  font-size: var(--type-body);
}

.practice-run-evidence-state strong,
.practice-run-evidence-state p {
  margin: 0;
}

.practice-run-evidence-state p {
  margin-top: 4px;
  color: var(--muted);
}

.practice-run-evidence-state.error {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.practice-run-now {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2.3fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), #fff 30%);
}

.practice-run-now-primary,
.practice-run-now-side,
.practice-run-now dl > div {
  padding: 13px 15px;
}

.practice-run-now-primary {
  border-left: 3px solid var(--accent);
}

.practice-run-now-primary span,
.practice-run-now dt {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.practice-run-now-primary strong,
.practice-run-now-primary em {
  display: block;
}

.practice-run-now-primary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: var(--type-body);
}

.practice-run-now-primary em {
  margin-top: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--type-secondary);
  font-style: normal;
  font-weight: var(--w-semi);
}

.practice-run-now dl {
  display: grid;
  grid-template-columns: .65fr .9fr .9fr 1.25fr;
  min-width: 0;
  margin: 0;
}

.practice-run-now dl > div {
  min-width: 0;
  border-left: 1px solid var(--line);
}

.practice-run-now dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.practice-run-now dd span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-normal);
  line-height: 1.35;
}

.practice-run-now-side {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  border-left: 1px solid var(--line);
}

.practice-run-readonly {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.practice-run-timeline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
}

.practice-run-timeline-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: var(--type-section);
}

.practice-run-timeline-head > div:last-child {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.practice-run-timeline-head > div:last-child > span {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-run-timeline-range {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  cursor: pointer;
}

.practice-run-timeline-range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.practice-run-timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
}

.practice-run-timeline-row {
  display: grid;
  grid-template-columns: 112px 18px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.practice-run-timeline-when {
  padding: 10px 0 18px;
  text-align: right;
}

.practice-run-timeline-when time,
.practice-run-timeline-when span {
  display: block;
}

.practice-run-timeline-when time {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.practice-run-timeline-when span {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-micro);
}

.practice-run-timeline-node {
  position: relative;
  align-self: stretch;
}

.practice-run-timeline-node::before {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.practice-run-timeline-node::after {
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: var(--line);
  content: "";
}

.practice-run-timeline-row:last-child .practice-run-timeline-node::after {
  display: none;
}

.practice-run-timeline-row.accepted .practice-run-timeline-node::before {
  background: var(--status-supported-ink);
  box-shadow: 0 0 0 1px var(--status-supported-border);
}

.practice-run-timeline-row.rejected .practice-run-timeline-node::before {
  background: var(--status-error-ink);
  box-shadow: 0 0 0 1px var(--status-error-border);
}

.practice-run-timeline-row.terminal .practice-run-timeline-node::before {
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.practice-run-timeline-copy {
  min-width: 0;
  padding: 9px 0 18px;
}

.practice-run-timeline-copy > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.practice-run-timeline-copy strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.practice-run-timeline-copy > div > span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-run-timeline-row.rejected .practice-run-timeline-copy > div > span {
  color: var(--status-error-ink);
}

.practice-run-timeline-copy p,
.practice-run-timeline-copy small {
  display: block;
  margin: 4px 0 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.practice-run-timeline-copy small {
  color: var(--muted);
  font-size: var(--type-micro);
}

.practice-run-timeline-disclosure {
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  cursor: pointer;
}

.practice-run-timeline-disclosure:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.practice-run-timeline-detail-error {
  display: block;
  margin-top: 6px;
  color: var(--status-error-ink);
  font-size: var(--type-micro);
}

.practice-run-timeline-detail {
  max-height: 260px;
  margin: 9px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--gray-ink);
  padding: 10px;
  font-family: var(--mono);
  font-size: var(--type-micro);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.console-temporal-proof {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}

.practice-run-reference {
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  padding: 16px;
}

.practice-run-reference-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.practice-run-reference-head h2 {
  margin: 3px 0 2px;
  color: var(--ink);
  font-size: var(--type-section);
}

.practice-run-reference-head p,
.practice-run-reference-head small {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-micro);
}

.practice-run-reference-head > div:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.practice-run-reference-integrity {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.practice-run-reference-integrity span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--gray-ink);
  padding: 3px 7px;
  font-size: var(--type-micro);
}

.practice-run-reference-checkpoints {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.practice-run-reference-checkpoints article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

.practice-run-reference-checkpoints article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.practice-run-reference-checkpoints article > header div {
  display: grid;
  gap: 2px;
}

.practice-run-reference-checkpoints article > header span,
.practice-run-reference-checkpoints article > header small {
  color: var(--muted);
  font-size: var(--type-micro);
  text-transform: uppercase;
}

.practice-run-reference-checkpoints article > header strong {
  color: var(--ink);
  font-size: var(--type-secondary);
}

.practice-run-reference-observation {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.practice-run-reference-observation > div:first-child {
  display: grid;
  gap: 2px;
}

.practice-run-reference-observation > div:first-child strong {
  color: var(--ink);
  font-size: var(--type-secondary);
}

.practice-run-reference-observation > div:first-child small,
.practice-run-reference-empty {
  color: var(--muted);
  font-size: var(--type-micro);
}

.console-temporal-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 8px;
}

.console-temporal-proof-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
}

.console-temporal-proof-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.console-temporal-proof-integrity,
.console-temporal-proof-status,
.console-temporal-proof-error {
  margin: 0;
  padding: 0 16px 13px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.console-temporal-proof-error {
  color: var(--status-error-ink);
}

.console-temporal-proof-facts-list {
  display: grid;
  gap: 3px;
  margin: -5px 16px 13px;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.4;
}

.console-temporal-proof-setup {
  display: grid;
  grid-template-columns: 130px 150px minmax(210px, 1fr) auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fafbff;
  padding: 12px 16px;
}

.console-temporal-proof-setup label,
.console-temporal-proof-result-head label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.console-temporal-proof-setup select,
.console-temporal-proof-result-head select {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 5px 9px;
  font: inherit;
}

.console-temporal-proof-baseline {
  display: flex !important;
  min-height: 34px;
  align-items: center;
  gap: 8px !important;
  color: var(--gray-ink) !important;
  font-size: var(--type-secondary) !important;
}

.console-temporal-proof-baseline input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.console-temporal-proof-checkpoint-count {
  align-self: center;
  margin: 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.console-temporal-proof-observations {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 2px 0 0;
  border: 0;
  padding: 0;
}

.console-temporal-proof-observations legend {
  grid-column: 1 / -1;
  color: var(--gray-ink);
  padding: 0;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.console-temporal-proof-observations legend small {
  margin-left: 5px;
  color: var(--muted);
  font-weight: var(--w-regular);
}

.console-temporal-proof-observations label {
  display: flex;
  grid-template-columns: none;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 9px;
  color: var(--ink);
}

.console-temporal-proof-observations input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.console-temporal-proof-observations label span {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-size: var(--type-micro);
}

.console-temporal-proof-observations label small {
  color: var(--muted);
  font-size: var(--type-micro);
}

.console-temporal-proof-confirm {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  padding: 9px 10px;
}

.console-temporal-proof-confirm p {
  min-width: min(420px, 100%);
  flex: 1;
  margin: 0;
  color: var(--gray-ink);
  font-size: var(--type-micro);
  line-height: 1.4;
}

.console-temporal-proof-results {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.console-temporal-proof-mutation {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  padding: 10px 12px;
}

.console-temporal-proof-mutation > span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.console-temporal-proof-mutation > strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.console-temporal-proof-mutation > small {
  color: var(--gray-ink);
  font-size: var(--type-micro);
}

.console-temporal-proof-mutation ul {
  display: grid;
  gap: 3px;
  margin: 3px 0 0;
  padding: 0;
  color: var(--gray-ink);
  font-size: var(--type-micro);
  list-style: none;
}

.console-temporal-proof-result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.console-temporal-proof-result-head > div {
  display: grid;
  gap: 4px;
}

.console-temporal-proof-result-head > div > strong {
  color: var(--ink);
  font-size: var(--type-section);
}

.console-temporal-proof-result-head label {
  width: min(240px, 45%);
}

.console-temporal-proof-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.console-temporal-proof-lanes.with-baseline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.console-temporal-proof-lanes > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  background: #fff;
  padding: 10px 12px;
}

.console-temporal-proof-lanes span,
.console-temporal-proof-metrics > span,
.console-temporal-proof-facts > span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.console-temporal-proof-lanes strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.console-temporal-proof-lanes small {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  overflow-wrap: anywhere;
}

.console-temporal-proof-metrics,
.console-temporal-proof-facts {
  margin-top: 13px;
}

.console-temporal-proof-metrics > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.console-temporal-proof-metrics code {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--gray-ink);
  padding: 3px 7px;
  font-size: var(--type-micro);
}

.console-temporal-proof-facts ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.console-temporal-proof-facts li {
  display: grid;
  gap: 2px;
  border-left: 2px solid var(--line-strong);
  padding-left: 8px;
}

.console-temporal-proof-facts time,
.console-temporal-proof-facts small {
  color: var(--muted);
  font-size: var(--type-micro);
}

.console-temporal-proof-facts strong {
  color: var(--ink);
  font-size: var(--type-micro);
}

.console-temporal-proof-detail-toggle {
  margin-top: 13px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  cursor: pointer;
}

.console-temporal-proof-detail-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.console-temporal-proof-detail {
  max-height: 320px;
  margin: 10px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 11px;
  font: var(--type-micro)/1.45 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.practice-console-ide {
  --practice-console-request-basis: 50%;
  display: grid;
  grid-template-columns: minmax(0, var(--practice-console-request-basis)) 9px minmax(0, 1fr);
  align-items: stretch;
  min-height: 620px;
}

.practice-console-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.practice-console-pane:focus-within {
  border-color: var(--line-strong);
}

.practice-console-request-pane {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-radius: 8px 0 0 8px;
}

.practice-console-response-pane {
  border-radius: 0 8px 8px 0;
}

.practice-console-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  padding: 13px 14px;
}

.practice-console-pane-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.practice-console-pane-head span:first-child {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.practice-console-pane-head strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.practice-console-pane-head .record-tabs {
  justify-content: flex-end;
}

.practice-console-pane-head .record-tab {
  min-height: 30px;
  padding: 0 10px;
  font-size: var(--type-secondary);
}

.practice-console-request-pane .practice-console-pane-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.practice-console-request-pane .practice-console-pane-head .record-tabs {
  justify-content: flex-start;
}

.practice-console-recipe-picker {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px);
  align-items: center;
  justify-content: start;
  gap: 9px;
  max-width: 100%;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.practice-console-recipe-picker select {
  min-width: 0;
  width: min(360px, 100%);
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 6px 30px 6px 10px;
  font: inherit;
  font-size: var(--type-secondary);
}

.practice-console-recipe-picker select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.practice-console-recipe-recommendation {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.practice-console-recipe-contract {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
}

.practice-console-recipe-contract > div:first-child {
  display: grid;
  gap: 4px;
}

.practice-console-recipe-contract strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.practice-console-recipe-contract p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.practice-console-recipe-contract dl {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  margin: 0;
}

.practice-console-recipe-contract dl > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 8px;
}

.practice-console-recipe-fact {
  grid-column: span 2;
}

.practice-console-recipe-templates {
  grid-column: span 6;
}

.practice-console-recipe-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.practice-console-recipe-template-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 2px 7px;
  font-size: var(--type-micro);
  white-space: nowrap;
}

.practice-console-recipe-contract dl > .practice-console-recipe-boundary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 8px 10px;
}

.practice-console-recipe-boundary dd {
  margin-top: 0;
}

.practice-console-recipe-contract dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-recipe-contract dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: var(--type-secondary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.practice-console-evidence-rail:focus-visible,
.practice-console-context:focus-visible,
.practice-console-context-item:focus-visible,
.practice-console-recipe-contract:focus-visible,
.practice-console-editor:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.practice-console-editor {
  min-height: 480px;
  overflow: hidden;
}

.practice-console-editor.disabled {
  background: var(--soft);
}

.practice-console-editor .cm-editor {
  height: 100%;
  min-height: 480px;
  background: #fff;
  color: var(--ink);
  font-size: var(--type-body);
}

.practice-console-editor.disabled .cm-editor {
  background: var(--soft);
}

.practice-console-editor .cm-scroller {
  font-family: var(--mono);
  line-height: 1.55;
}

.practice-console-editor .cm-gutters {
  border-right-color: var(--line);
  background: #fbfcfe;
  color: #8a94a6;
}

.practice-console-actions {
  justify-content: flex-end;
  min-height: 50px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  padding: 9px 12px;
}

.practice-console-notice {
  flex: 1 1 220px;
  color: var(--status-error-ink);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.practice-console-confirm {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--status-rejected-border);
  border-radius: 7px;
  background: var(--status-rejected-bg);
  color: var(--status-rejected-ink);
  padding: 9px;
}

.practice-console-confirm strong {
  font-size: var(--type-secondary);
  line-height: 1.3;
}

.practice-console-confirm span {
  flex: 1 1 240px;
  min-width: 0;
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.practice-console-run {
  min-width: 150px;
}

/* inline "Copy as MCP call" preview below the request action row. */
.practice-console-mcp-preview {
  flex: 1 1 100%;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 12px;
}

.practice-console-mcp-heading {
  font-size: var(--type-secondary);
}

.practice-console-mcp-json {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  padding: 8px 10px;
  font-size: var(--type-secondary);
  line-height: 1.4;
  white-space: pre;
}

.practice-console-mcp-mutation-warning,
.practice-console-mcp-redacted {
  margin: 0;
  font-size: var(--type-secondary);
  line-height: 1.35;
  color: var(--status-rejected-ink);
  background: var(--status-rejected-bg);
  border: 1px solid var(--status-rejected-border);
  border-radius: 6px;
  padding: 7px 9px;
}

.practice-console-mcp-preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.practice-console-mcp-status {
  font-size: var(--type-secondary);
  color: var(--muted);
}

/* live-schema fallback notice + compatibility completion detail + Operation details disclosure.
   Compatibility state is conveyed as text; these styles deliberately avoid a per-state color scale so the
   established fidelity color vocabulary stays the only status coloring in Console. */
.practice-console-schema-fallback {
  margin: 6px 0 0;
  font-size: var(--type-secondary);
  line-height: 1.35;
  color: var(--muted);
}

.practice-console-compat-info {
  display: grid;
  gap: 4px;
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.practice-console-compat-label {
  justify-self: start;
  font-size: var(--type-micro);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.practice-console-compat-summary {
  color: var(--ink);
}

.practice-console-compat-limit {
  color: var(--muted);
}

.practice-console-operation-details {
  flex: 1 1 100%;
  min-width: 0;
  margin-top: 6px;
}

.practice-console-operation-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.practice-console-operation-details-coordinate {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--type-secondary);
  color: var(--muted);
}

.practice-console-operation-details-body {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 12px;
}

.practice-console-operation-details-body dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.practice-console-operation-details-body dl > div {
  display: grid;
  gap: 2px;
}

.practice-console-operation-details-body dt {
  margin: 0;
  font-size: var(--type-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.practice-console-operation-details-body dd {
  margin: 0;
  font-size: var(--type-secondary);
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-operation-details-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}

/* pre-execution compatibility guidance, shown directly below Verdict. Text-first; no per-state color
   scale so the established fidelity vocabulary stays the only status coloring. */
.practice-console-compat-guidance {
  display: grid;
  gap: 8px;
}

.practice-console-compat-coordinate {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--type-secondary);
  color: var(--ink);
}

.practice-console-compat-copy {
  margin: 0;
  font-size: var(--type-secondary);
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-compat-summary,
.practice-console-compat-boundary {
  margin: 0;
  font-size: var(--type-secondary);
  line-height: 1.4;
  color: var(--muted);
}

.practice-console-compat-alternatives {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.practice-console-compat-alternative {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 9px 11px;
}

.practice-console-compat-alternative-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.practice-console-compat-alternative .practice-console-compat-copy-coordinate {
  justify-self: start;
}

.practice-console-compat-copied {
  font-size: var(--type-secondary);
  color: var(--muted);
}

/* the isolated-probe consequence — a fixed summary plus a per-entity before/after change table. */
.practice-console-consequence {
  display: grid;
  gap: 10px;
}

.practice-console-consequence-summary {
  margin: 0;
  font-size: var(--type-secondary);
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-consequence-entity {
  display: grid;
  gap: 6px;
}

.practice-console-consequence-entity-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.practice-console-consequence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-secondary);
}

.practice-console-consequence-table th,
.practice-console-consequence-table td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.practice-console-consequence-table th {
  font-size: var(--type-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.practice-console-consequence-table td {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.practice-console-consequence-truncation {
  margin: 0;
  font-size: var(--type-secondary);
  color: var(--muted);
}

/* cost/throttle teaching — a plain-language status line above the raw numbers and the fixed
   non-parity limitation. No charts, gauges, or predictive history. */
.practice-console-cost-status {
  margin: 0 0 8px;
  font-size: var(--type-secondary);
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-cost-limitation {
  margin: 8px 0 0;
  font-size: var(--type-secondary);
  line-height: 1.35;
  color: var(--muted);
  font-style: italic;
}

.practice-console-resize {
  align-self: stretch;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to right, transparent 0 3px, var(--line-strong) 3px 6px, transparent 6px 9px);
  padding: 0;
  cursor: col-resize;
}

.practice-console-resize:hover,
.practice-console-resize:focus-visible {
  background: linear-gradient(to right, transparent 0 2px, var(--accent) 2px 7px, transparent 7px 9px);
  outline: none;
}

.practice-console-response-head {
  align-items: center;
}

.practice-console-response-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  animation: practice-console-result-in 180ms ease-out;
}

@keyframes practice-console-result-in {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-console-response-body,
  .practice-console-spinner {
    animation: none;
  }
}

.practice-console-result-inspector {
  display: grid;
  gap: 10px;
}

.practice-console-inspector-section,
.practice-console-raw {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.practice-console-inspector-section:focus-visible,
.practice-console-raw summary:focus-visible,
.practice-console-raw .small-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.practice-console-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.practice-console-inspector-head span {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-inspector-head strong {
  color: var(--ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.practice-console-inspector-section p,
.practice-console-raw-actions span {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.practice-console-response-data {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  padding: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.practice-console-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.practice-console-kv div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 8px;
}

.practice-console-kv dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-kv dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: var(--type-secondary);
  overflow-wrap: anywhere;
}

.practice-console-state-delta {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.practice-console-raw summary {
  cursor: pointer;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.practice-console-raw-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.practice-console-wire {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f172a;
  color: #e5eefc;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.practice-console-user-errors {
  border: 1px solid var(--status-rejected-border);
  border-radius: 7px;
  background: var(--status-rejected-bg);
  color: var(--status-rejected-ink);
  padding: 12px;
}

.practice-console-user-errors strong,
.practice-console-error-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: var(--type-body);
}

.practice-console-user-errors p,
.practice-console-error-list p {
  margin: 4px 0 0;
  font-size: var(--type-body);
  line-height: 1.4;
}

.practice-console-error-list {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.practice-console-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--soft);
  color: var(--gray-ink);
  padding: 18px;
  text-align: center;
}

.practice-console-response-pane .practice-console-state {
  min-height: 100%;
  margin: 14px;
}

.practice-console-state-muted {
  color: var(--muted);
}

.practice-console-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

.practice-console-foot {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .practice-console-header,
  .practice-console-rail-head,
  .practice-console-replay-source,
  .practice-console-context,
  .practice-console-pane-head,
  .practice-console-response-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .practice-console-header-actions,
  .practice-console-context-meta,
  .practice-console-response-meta,
  .practice-console-pane-head .record-tabs {
    justify-content: flex-start;
  }

  .practice-console-recipe-tabs {
    max-width: 100%;
  }

  .practice-console-recipe-contract dl {
    grid-template-columns: 1fr;
  }

  .practice-console-recipe-fact,
  .practice-console-recipe-templates,
  .practice-console-recipe-contract dl > .practice-console-recipe-boundary {
    grid-column: 1 / -1;
  }

  .practice-console-context-strip {
    grid-template-columns: 1fr;
  }

  .practice-run-now {
    grid-template-columns: 1fr;
  }

  .practice-run-now dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-run-now dl > div,
  .practice-run-now-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .practice-run-now-side {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .practice-run-timeline-row {
    grid-template-columns: 88px 16px minmax(0, 1fr);
    gap: 7px;
  }

  .practice-run-timeline-list {
    padding-right: 12px;
    padding-left: 12px;
  }

  .console-temporal-proof-head,
  .console-temporal-proof-result-head,
  .practice-run-reference-head {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-run-reference-head > div:last-child {
    justify-items: start;
  }

  .console-temporal-proof-setup {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .practice-console-recipe-picker {
    grid-template-columns: 1fr;
  }

  .practice-console-recipe-picker select {
    width: 100%;
  }

  .console-temporal-proof-result-head label {
    width: 100%;
  }

  .console-temporal-proof-lanes.with-baseline {
    grid-template-columns: 1fr;
  }

  .practice-console-kv {
    grid-template-columns: 1fr;
  }

  .practice-console-ide {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .practice-console-request-pane,
  .practice-console-response-pane {
    border-radius: 8px;
  }

  .practice-console-resize {
    display: none;
  }

  .practice-console-editor,
  .practice-console-editor .cm-editor {
    min-height: 360px;
  }
}

.record-count {
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-med);
  white-space: nowrap;
}

.record-search {
  position: relative;
  display: block;
}

.record-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.record-search::before,
.record-search::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.record-search::before {
  left: 18px;
  top: 15px;
  width: 12px;
  height: 12px;
  border: 2px solid #7b8798;
  border-radius: 999px;
}

.record-search::after {
  left: 31px;
  top: 29px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #7b8798;
  transform: rotate(45deg);
}

.record-search input {
  height: 46px;
  border-radius: 8px;
  padding-left: 48px;
  font-size: var(--type-body);
}

.record-table-wrap {
  border-radius: 8px;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body);
}

th,
td {
  height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #fafbff;
}

.record-table th {
  height: 44px;
  color: #303849;
  font-size: var(--type-secondary);
}

.runs-table {
  table-layout: fixed;
}

.runs-table th,
.runs-table td {
  box-sizing: border-box;
}

.runs-table th:nth-child(1),
.runs-table td:nth-child(1) {
  width: 30%;
}

.runs-table th:nth-child(2),
.runs-table td:nth-child(2) {
  width: 12%;
}

.runs-table th:nth-child(3),
.runs-table td:nth-child(3) {
  width: 24%;
}

.runs-table th:nth-child(4),
.runs-table td:nth-child(4) {
  width: 17%;
}

.runs-table th:nth-child(5),
.runs-table td:nth-child(5) {
  width: 17%;
}

.record-table td {
  height: 56px;
  color: #334155;
}

.runs-table td {
  white-space: normal;
  vertical-align: middle;
}

.record-table tbody tr:hover {
  background: #f8fafc;
}

.record-table tbody tr[data-receipt-expired="true"] {
  cursor: default;
}

.record-table tbody tr[tabindex]:focus-visible {
  background: #f8fafc;
  outline: 2px solid rgba(105, 83, 238, 0.38);
  outline-offset: -2px;
}

.record-primary strong {
  display: block;
  color: #1f2937;
  font-weight: var(--w-semi);
  overflow-wrap: anywhere;
}

.record-primary span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-secondary);
  overflow-wrap: anywhere;
}

.record-evidence {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
  white-space: normal;
}

.record-evidence .row-note {
  flex-basis: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.runs-table .record-evidence {
  display: table-cell;
}

.runs-table .record-evidence .source-pill,
.runs-table .record-evidence .chip {
  margin: 0 8px 4px 0;
  vertical-align: middle;
}

.runs-table .record-evidence .chip {
  white-space: nowrap;
}

.runs-table .record-evidence .row-note {
  display: block;
  margin-top: 2px;
}

.progress-cell {
  min-width: 132px;
  white-space: nowrap;
}

.progress-cell span {
  display: block;
  margin-bottom: 6px;
}

.run-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.runs-table .run-row-actions {
  display: table-cell;
  min-width: 128px;
  text-align: right;
}

.runs-table .run-row-actions span {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.runs-table .run-row-actions button {
  vertical-align: middle;
}

.row-meter {
  height: 5px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
}

.row-meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.record-empty {
  height: 80px;
  color: var(--muted);
  text-align: center;
}

.num {
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.vstore-playback-layout {
  grid-template-columns: minmax(0, 1fr);
}

.run-main,
.inspector {
  display: grid;
  gap: 14px;
  align-content: start;
}

.vstore-check-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.vstore-check-actions[hidden] {
  display: none;
}

.vstore-check-actions h2 {
  margin: 0;
  font-size: var(--type-section);
}

.vstore-check-actions p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.vstore-check-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.vstore-playback-context {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.vstore-playback-context span {
  display: grid;
  gap: 2px;
  min-width: 128px;
  border-right: 1px solid var(--line);
  padding: 9px 12px;
}

.vstore-playback-context span:last-child {
  border-right: 0;
}

.vstore-playback-context em {
  color: var(--muted);
  font-style: normal;
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vstore-playback-context strong {
  color: var(--ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vstore-playback-developer-details {
  min-width: 128px;
  border-right: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--muted);
  font-size: var(--type-micro);
}

.vstore-playback-developer-details summary {
  cursor: pointer;
  font-weight: var(--w-semi);
}

.vstore-playback-context .vstore-playback-developer-details > span {
  min-width: 0;
  border: 0;
  padding: 7px 0 0;
}

.progress-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--gray);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

.legend-line,
.legend-bar,
.legend-dot {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-line {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--accent-dark);
}

.legend-bar {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: #d8e1f6;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--panel);
}

.legend-dot.rejected {
  border-color: var(--danger);
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.metric {
  min-height: 92px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }
.metric span { color: var(--muted); font-size: var(--type-secondary); }
.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: var(--type-title);
  font-weight: var(--w-semi);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.vstore-receipt-panel {
  background: #fbfcff;
}

.vstore-receipt-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(110px, 1fr)) minmax(126px, 0.85fr);
  border-top: 1px solid var(--line);
}

.vstore-receipt-card {
  min-width: 0;
  min-height: 92px;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.vstore-receipt-card:last-child {
  border-right: 0;
}

.vstore-receipt-card span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vstore-receipt-card strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.vstore-receipt-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.3;
}

.vstore-receipt-card.wide strong {
  color: var(--accent-dark);
}

.vstore-receipt-card.action {
  display: grid;
  align-content: start;
  gap: 8px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
  line-height: 1.25;
  white-space: normal;
}

.source-pill + .row-note {
  display: block;
  margin-top: 4px;
}

.panel {
  overflow: hidden;
}

.panel-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.panel-head h2 {
  font-size: var(--type-body);
}

.panel-head span {
  color: var(--muted);
  font-size: var(--type-secondary);
}

/* a run without a named dev store states it plainly and reads as a warning. */
.panel-head span.action-context-missing {
  color: #b3382c;
  font-weight: var(--w-semi);
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.budget-item {
  min-height: 104px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.budget-item:last-child { border-right: 0; }
.budget-item span { color: var(--muted); font-size: var(--type-secondary); }
.budget-item strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: var(--type-section);
}

.budget-meter {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--gray);
  overflow: hidden;
}

.budget-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.budget-meter.warn i { background: #c98210; }
.budget-meter.fail i { background: #d33d32; }

.ledger-feed,
.line-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-row,
.line-log li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  font-size: var(--type-body);
}

.ledger-row {
  grid-template-columns: minmax(118px, 0.8fr) minmax(120px, 1fr) minmax(76px, 0.55fr) minmax(74px, auto);
  gap: 14px;
  cursor: pointer;
}

.ledger-row:hover {
  background: #fafbff;
}

.vstore-call-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.7fr) minmax(120px, 0.9fr) minmax(92px, 0.7fr) minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
  font-size: var(--type-body);
}

.vstore-call-row:hover {
  background: #fafbff;
}

.vstore-call-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vstore-call-feed {
  border-top: 1px solid var(--line);
}

.vstore-call-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(170px, 0.42fr) minmax(190px, 0.48fr) 92px auto;
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.call-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.call-filter-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 0 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.call-filter-chip.active {
  border-color: #b7d4ff;
  background: var(--color-background-info);
  color: #1f4c8f;
}

.call-log-operation,
.call-log-search,
.call-log-day {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-log-operation select,
.call-log-search input,
.call-log-day input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  text-transform: none;
  color: var(--text);
  background: var(--panel);
}

.call-log-total {
  align-self: center;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  white-space: nowrap;
}

.observe-moment-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 14px 0;
  padding: 11px 12px;
  border: 1px solid #cfeadd;
  border-radius: 8px;
  background: #f4fbf7;
  color: var(--green-ink);
  font-size: var(--type-body);
}

.observe-moment-callout strong {
  color: var(--green-ink);
}

.observe-store-life {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.observe-store-life-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.observe-store-life-row strong {
  color: var(--ink);
}

.agent-listening-card {
  display: grid;
  gap: 12px;
}

.observe-listening-card {
  padding: 18px;
  text-align: left;
}

.agent-listening-card h2,
.observe-listening-card h2,
.observe-listening-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.25;
}

.agent-listening-card p,
.observe-listening-card p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.observe-listening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.agent-listening-card details,
.observe-listening-card details {
  color: var(--muted);
  font-size: var(--type-body);
}

.agent-listening-card summary,
.observe-listening-card summary {
  width: max-content;
  color: var(--accent);
  font-weight: var(--w-semi);
  cursor: pointer;
}

.agent-listening-card ul,
.observe-listening-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.vstore-call-scroll {
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
}

.vstore-call-latest {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  background: var(--soft);
}

.vstore-call-latest button {
  min-height: 30px;
  border: 1px solid #b7d4ff;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--color-background-info);
  color: var(--accent);
  font: inherit;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  cursor: pointer;
}

.vstore-call-latest button:hover,
.vstore-call-latest button:focus-visible {
  border-color: var(--accent);
}

.vstore-call-rows {
  display: grid;
}

.vstore-call-log-entry {
  border-bottom: 1px solid var(--line);
}

.vstore-call-log-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(132px, 0.72fr) minmax(118px, 0.55fr) minmax(142px, 0.75fr) minmax(0, 1fr) auto 20px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  text-align: left;
  font: var(--type-secondary)/1.3 var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  cursor: pointer;
}

.vstore-call-log-row:hover,
.vstore-call-log-row:focus-visible,
.vstore-call-log-entry.open .vstore-call-log-row {
  background: #fbfcff;
}

.call-row-time,
.call-row-op,
.call-row-target,
.call-row-reason {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-row-time {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.call-row-time strong {
  color: var(--text);
  white-space: nowrap;
}

.call-row-time span {
  color: var(--muted);
  font-size: var(--type-micro);
}

.call-row-op {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-row-op i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #6d7280;
}

.vstore-call-log-entry.decline .call-row-op i { background: #c98210; }
.vstore-call-log-entry.approve .call-row-op i { background: #2f9d68; }
.vstore-call-log-entry.write .call-row-op i { background: #5b4ff0; }
.vstore-call-log-entry.read .call-row-op i { background: #64748b; }
.vstore-call-log-entry.error .call-row-op i { background: #d33d32; }

.vstore-call-log-entry.error {
  background: #fffafa;
}

.call-row-target {
  color: #334155;
}

.call-row-reason {
  color: var(--muted);
}

.call-row-status {
  justify-self: end;
  min-width: 44px;
  border-radius: 999px;
  padding: 3px 8px;
  text-align: center;
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  background: #ecfdf3;
  color: #16764c;
}

.call-row-status.error {
  background: var(--red);
  color: var(--danger);
  font-weight: var(--w-bold);
}

.call-row-explanation {
  padding: 0 14px 10px 176px;
  color: var(--danger);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.call-row-chevron {
  color: var(--muted);
  text-align: right;
}

.vstore-call-inline-detail {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px 96px;
  background: #fbfcff;
}

.call-wire-stack {
  display: grid;
  gap: 8px;
}

.call-log-muted {
  padding: 10px 14px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.vstore-call-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.agent-call-side-panel[hidden] {
  display: none;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.impact-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-group + .impact-group {
  border-top: 6px solid var(--soft);
}

.impact-group > header {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  background: #fbfcff;
}

.impact-group > header strong {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-regular);
  text-align: right;
}

.impact-group > .impact-card {
  min-height: 112px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.impact-group > .impact-card:nth-of-type(3n) {
  border-right: 0;
}

.impact-group.agent > .impact-card:last-child {
  grid-column: span 2;
  border-right: 0;
}

.impact-grid span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: var(--type-section);
  overflow-wrap: anywhere;
}

.impact-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

@media (max-width: 760px) {
  .impact-group {
    grid-template-columns: 1fr;
  }

  .impact-group > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .impact-group > header strong {
    text-align: left;
  }

  .impact-group > .impact-card,
  .impact-group > .impact-card:nth-of-type(3n),
  .impact-group.agent > .impact-card:last-child {
    grid-column: auto;
    border-right: 0;
  }
}

.observe-clock-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.observe-clock-head {
  display: grid;
  gap: 8px;
}

.observe-clock-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.18;
}

.observe-clock-head p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.observe-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--gray);
  overflow: hidden;
}

.observe-progress-bar i {
  display: block;
  height: 100%;
  width: var(--observe-progress, 0%);
  background: var(--accent);
}

.observe-transport {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 13px 14px;
}

.observe-transport-timecode {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: var(--type-micro);
}

.observe-transport-timecode strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-body);
}

.observe-transport-timecode span:last-child {
  text-align: right;
}

.observe-transport p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.observe-clock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.observe-clock-actions button[data-advance-selected-check] {
  min-height: 36px;
}

.observe-step-cluster {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.observe-step-cluster button[data-advance-selected-check] {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.observe-step-cluster button[data-advance-selected-check] + button[data-advance-selected-check] {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.observe-finish-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 0 100%;
  gap: 10px;
  padding-top: 2px;
}

.observe-finish-choice {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.observe-finish-choice .inline-confirm-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.observe-finish-choice .finish-check-button {
  width: 100%;
  margin: 0;
  white-space: normal;
}

.observe-finish-choice small {
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 1.45;
}

.observe-finish-choice .inline-confirm-line {
  color: #6f4a00;
  font-size: var(--type-micro);
  line-height: 1.45;
}

.observe-finish-choice[data-state="armed"] {
  border-color: #d89b2b;
  background: #fff8e9;
  box-shadow: 0 0 0 2px rgba(216, 155, 43, 0.12);
}

.observe-finish-choice[data-state="armed"] .finish-check-button {
  border-color: #8b5a00;
  background: #8b5a00;
  color: #fff;
}

.observe-finish-choice[data-state="working"] {
  border-color: var(--accent);
  background: #f7f5ff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.observe-finish-choice[data-state="working"] .finish-check-button {
  border-color: var(--accent);
  color: var(--accent-dark);
  opacity: 1;
}

.observe-finish-choice[data-state="unavailable"] {
  opacity: 0.58;
}

.observe-finish-cancel {
  grid-column: 1;
  margin: 0;
}

.observe-action-status {
  margin: -2px 0 0;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.observe-action-status.fail {
  color: var(--danger);
}

.observe-code-recency.stale {
  color: var(--danger);
}

.observe-engine-note {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.observe-engine-note summary {
  width: max-content;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: var(--w-semi);
}

.observe-engine-note p {
  max-width: 920px;
  margin: 8px 0 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .observe-finish-actions {
    grid-template-columns: 1fr;
  }

  .observe-finish-cancel {
    grid-column: 1;
  }

  .run-banner.waiting {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .observe-moment-callout {
    animation: observe-moment-in 180ms ease-out;
  }
}

@keyframes observe-moment-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ledger-time,
.ledger-id,
.ledger-action,
.ledger-status {
  min-width: 0;
}

.ledger-time {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.1;
}

.ledger-time strong,
.ledger-action,
.ledger-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-time strong {
  color: var(--ink);
  font-weight: var(--w-med);
}

.ledger-time span {
  color: var(--muted);
}

.ledger-action {
  color: var(--ink);
}

.ledger-id {
  color: var(--muted);
}

.ledger-status {
  justify-self: end;
}

code,
pre {
  font-family: var(--mono);
}

pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  font-size: var(--type-secondary);
  line-height: 1.55;
  white-space: pre-wrap;
}

.action-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.action-stack button:nth-child(n+4) {
  background: #fff;
  color: var(--accent);
  border-color: var(--line-strong);
}

.action-stack button:nth-child(n+4):hover {
  border-color: var(--accent);
}

.action-preview {
  border-top: 1px solid var(--line);
  padding: 14px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.action-preview p {
  margin-top: 6px;
}

.preview-head,
.report-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-head span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted-preview {
  margin: 0;
  color: var(--muted);
}

.launch-layout,
.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.48fr);
  gap: 16px;
}

.launch-drawer-body {
  grid-template-columns: 1fr;
}

.record-layout {
  align-items: start;
}

.launch-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.store-world-drawer .launch-form {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.field-label {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid #cfd6e3;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  line-height: 1;
  cursor: help;
}

.help-dot:focus {
  outline: 2px solid rgba(99, 82, 246, 0.25);
  outline-offset: 2px;
}

.field-tooltip {
  position: absolute;
  z-index: 50;
  left: 0;
  top: calc(100% + 7px);
  width: min(280px, 72vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 8px 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  line-height: 1.35;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.field-label:hover .field-tooltip,
.field-label:focus-within .field-tooltip,
.help-dot:hover + .field-tooltip,
.help-dot:focus + .field-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.launch-advanced {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px 12px;
}

.launch-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.launch-helper {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.launch-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.launch-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.launch-preview {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.store-world-drawer .launch-preview {
  box-shadow: none;
}

.store-world-drawer .launch-preview .empty-state {
  box-shadow: none;
}

.preview-box {
  display: grid;
  gap: 10px;
}

.preview-mini {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.preview-mini div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.preview-mini span {
  color: var(--muted);
}

.preview-mini strong {
  color: var(--ink);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  font-size: var(--type-body);
}

.preview-row strong {
  color: var(--ink);
}

.empty-state {
  border-style: dashed;
  padding: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.report-list {
  display: grid;
  gap: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.report-item {
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 12px 14px;
  cursor: pointer;
}

.report-item:last-child {
  border-bottom: 0;
}

.report-item:hover {
  background: #f8fafc;
}

.report-item[data-receipt-expired="true"] {
  cursor: default;
}

.report-item.active {
  background: #fbfbff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.report-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.report-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-open-button {
  flex: 0 0 auto;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.report-meta span {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.report-row-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.report-row-badge span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--gray);
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
}

.report-row-badge.agent-proof span {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.report-row-badge.rejected span {
  border-color: var(--status-rejected-border);
  background: var(--status-rejected-bg);
  color: var(--status-rejected-ink);
}

.report-row-badge.no-agent span {
  border-color: var(--status-neutral-border);
  background: var(--status-neutral-bg);
  color: var(--status-neutral-ink);
}

.report-row-badge.status-token-supported span,
.report-proof-banner.status-token-supported {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.report-row-badge.status-token-rejected span {
  border-color: var(--status-rejected-border);
  background: var(--status-rejected-bg);
  color: var(--status-rejected-ink);
}

.report-row-badge.status-token-unsupported span,
.report-proof-banner.status-token-unsupported {
  border-color: var(--status-unsupported-border);
  background: var(--status-unsupported-bg);
  color: var(--status-unsupported-ink);
}

.report-row-badge.status-token-error span,
.report-proof-banner.status-token-error {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.report-row-badge.status-token-neutral span,
.report-proof-banner.status-token-neutral {
  border-color: var(--status-neutral-border);
  background: var(--status-neutral-bg);
  color: var(--status-neutral-ink);
}

.report-row-badge em {
  color: var(--muted);
  font-style: normal;
}

.report-list .empty-state {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report-detail {
  min-height: 420px;
}

.report-detail-view {
  max-width: 1120px;
}

.report-detail-head {
  align-items: start;
}

.report-detail-page {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.report-detail-page.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.receipt-document {
  display: grid;
  gap: 16px;
}

.receipt-hero,
.receipt-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.receipt-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

/* scoped to a direct child. The hero's own h2 is gone; the only h2 under here now is the
   heading-owned group's, and that primitive owns its own section-size heading. */
.receipt-hero > h2 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.15;
}

.receipt-hero p,
.receipt-card p,
.receipt-card-head p,
.receipt-identity-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.receipt-agent-gloss {
  margin-top: 6px;
}

.receipt-verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 12px 7px 10px;
}

.receipt-verdict i,
.receipt-inline-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.receipt-verdict strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.receipt-verdict em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--type-secondary);
  font-style: normal;
}

.receipt-gate-note {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.receipt-verdict.agent-proof,
.receipt-inline-status.agent-proof {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.receipt-verdict.agent-proof i,
.receipt-inline-status.agent-proof::before {
  background: var(--status-supported-icon);
}

.receipt-verdict.needs-attention {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.receipt-verdict.needs-attention i {
  background: var(--status-error-icon);
}

.receipt-verdict.zero-write {
  border-color: var(--status-unsupported-border);
  background: var(--status-unsupported-bg);
  color: var(--status-unsupported-ink);
}

.receipt-verdict.zero-write i {
  background: var(--status-unsupported-icon);
}

.receipt-verdict.no-agent i,
.receipt-inline-status.no-agent::before {
  background: #fff;
  border: 1.5px solid var(--status-neutral-border);
}

.receipt-verdict.status-token-supported,
.receipt-inline-status.status-token-supported {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
}

.receipt-verdict.status-token-supported i,
.receipt-inline-status.status-token-supported::before {
  background: var(--status-supported-icon);
}

.receipt-verdict.status-token-unsupported,
.receipt-inline-status.status-token-unsupported {
  border-color: var(--status-unsupported-border);
  background: var(--status-unsupported-bg);
  color: var(--status-unsupported-ink);
}

.receipt-verdict.status-token-unsupported i,
.receipt-inline-status.status-token-unsupported::before {
  background: var(--status-unsupported-icon);
}

.receipt-verdict.status-token-error,
.receipt-inline-status.status-token-error {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-ink);
}

.receipt-verdict.status-token-error i,
.receipt-inline-status.status-token-error::before {
  background: var(--status-error-icon);
}

.receipt-verdict.status-token-neutral,
.receipt-inline-status.status-token-neutral {
  border-color: var(--status-neutral-border);
  background: var(--status-neutral-bg);
  color: var(--status-neutral-ink);
}

.receipt-verdict.status-token-neutral i,
.receipt-inline-status.status-token-neutral::before {
  background: #fff;
  border: 1.5px solid var(--status-neutral-border);
}

.receipt-suggestion a {
  color: var(--accent);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.receipt-run-diff {
  flex: 1 1 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  overflow: hidden;
}

.receipt-run-diff > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: var(--w-semi);
}

.receipt-run-diff > summary strong {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-run-diff-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.receipt-diff-group {
  display: grid;
  gap: 5px;
}

.receipt-diff-group strong {
  color: var(--ink);
}

.receipt-diff-group p,
.receipt-diff-footer {
  margin: 0;
  color: var(--muted);
}

.receipt-diff-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.receipt-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}

.receipt-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.25;
}

.receipt-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.25;
}

.receipt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.receipt-impact-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-impact-value strong {
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1;
}

.receipt-impact-value span {
  color: var(--gray-ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.receipt-boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.receipt-boundary-grid div {
  border-left: 2px solid var(--line-strong);
  padding-left: 12px;
}

.receipt-boundary-grid div:first-child {
  border-left-color: var(--green-ink);
}

.receipt-boundary-grid strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.receipt-fidelity-line {
  border-left: 3px solid var(--green-ink);
  padding-left: 12px;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  line-height: 1.45;
}

.receipt-attention {
  border-color: #f1d19b;
  background: #fffaf0;
}

.receipt-source-card {
  background: #fbfcfd;
}

.receipt-source-card h2 {
  max-width: 920px;
  font-size: var(--type-body);
}

.receipt-source-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-source-facts span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
  padding: 6px 8px;
  font-size: var(--type-secondary);
}

.receipt-source-facts b {
  color: var(--ink);
}

.receipt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--gray-ink);
  padding: 7px 10px;
  font-size: var(--type-secondary);
}

.receipt-chip strong {
  color: var(--ink);
}

.receipt-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-ink);
  padding: 6px 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  white-space: nowrap;
}

.receipt-identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.receipt-identity-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
}

.receipt-identity-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: var(--type-body);
  overflow-wrap: anywhere;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.receipt-automation-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.receipt-automation-panel:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.receipt-automation-head {
  display: grid;
  gap: 5px;
}

.receipt-automation-head h3,
.receipt-automation-head p {
  margin: 0;
}

.receipt-automation-head h3 {
  color: var(--ink);
  font-size: var(--type-section);
}

.receipt-automation-head p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.receipt-export-note {
  margin-top: 8px;
}

.receipt-reconcile {
  font-weight: var(--w-med);
}

.receipt-moment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.receipt-moment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.receipt-moment-card details {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-confidence-detail ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.receipt-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.receipt-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: var(--w-semi);
}

.receipt-accordion > summary strong {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-accordion-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.receipt-call-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.receipt-call-filters select {
  width: auto;
  min-width: 190px;
}

.receipt-call-day-control {
  margin-left: auto;
}

.receipt-call-day-badge {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 6px 10px;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.receipt-call-gloss {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

/* progressive call explorer — the toolbar owns day selection and the active day stays
   bounded to one page, so a 5,952-call receipt never renders thousands of rows at once. */
.receipt-call-count {
  margin: 6px 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-call-day-summary {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.35;
}

.receipt-call-explorer {
  min-width: 0;
}

.receipt-call-detail-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.receipt-call-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: var(--type-secondary);
  color: var(--muted);
}

.receipt-call-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.receipt-call-list {
  display: grid;
  gap: 7px;
}

.receipt-call-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.receipt-call-row.blocked {
  border-color: #efb4ae;
  background: #fff8f7;
}

.receipt-call-row.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.receipt-call-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-size: var(--type-body);
}

.receipt-call-row > summary span {
  overflow-wrap: anywhere;
}

.receipt-call-row > summary strong {
  color: var(--muted);
  font-size: var(--type-secondary);
  text-transform: uppercase;
}

.receipt-call-row.blocked > summary strong {
  color: var(--danger);
}

.receipt-call-expansion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.receipt-call-expansion pre {
  max-height: 240px;
  margin: 6px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.receipt-call-expansion p,
.receipt-call-expansion ul {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.receipt-call-inspector {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  position: sticky;
  top: 78px;
}

.receipt-call-inspector-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.receipt-call-inspector h3 {
  margin: 4px 0 0;
  font-size: var(--type-section);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.receipt-call-inspector p,
.receipt-call-inspector ul {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.receipt-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.receipt-inspector-section,
.receipt-inspector-raw {
  display: grid;
  gap: 6px;
}

.receipt-inspector-subhead {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-call-inspector pre {
  max-height: 210px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  font-family: var(--mono);
  font-size: var(--type-secondary);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.receipt-inspector-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.report-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px 20px;
}

.report-hero h2 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.15;
}

.report-hero p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.report-proof-banner {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
}

.report-proof-banner.agent-proof {
  border-color: var(--status-supported-border);
  background: var(--status-supported-bg);
}

.report-proof-banner.no-agent {
  border-color: var(--status-neutral-border);
  background: var(--status-neutral-bg);
}

.report-proof-banner span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-proof-banner strong {
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.25;
}

.report-proof-banner p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.report-summary-grid,
.report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.report-metric {
  min-height: 112px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.report-metric span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: var(--type-section);
  font-weight: var(--w-semi);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.report-metric.delta-accent strong {
  color: var(--accent-dark);
}

.report-metric p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.35;
}

.report-empty-note,
.report-method,
.report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.report-empty-note {
  background: #f8fafc;
}

/*
 * "we could not read this" must not look like "there is nothing here". A legitimately
 * empty section keeps the plain note above; an UNAVAILABLE one is marked with a left rule so the
 * two are distinguishable at a glance, before reading a word. Deliberately a neutral rule and not
 * an error colour — the run succeeded, and nothing on this card may read as a failure.
 */
.receipt-impact-unavailable {
  border-left: 3px solid var(--muted);
  background: var(--panel);
}

.report-empty-note strong,
.report-method h2,
.report-section h2 {
  color: var(--ink);
}

.report-empty-note p,
.report-method p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.report-what-happened {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.5;
}

.report-section {
  display: grid;
  gap: 12px;
}

.report-section-head h2,
.report-method h2 {
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.2;
}

.report-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body);
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.report-table th {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-detail-page > .raw-disclosure {
  margin-top: 0;
}

.activity-world-totals .report-metric {
  min-height: 98px;
}

.report-markdown {
  padding: 16px;
  display: grid;
  gap: 12px;
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.55;
}

.report-markdown h2,
.report-markdown h3,
.report-markdown h4 {
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.report-markdown h2 { font-size: var(--type-title); }
.report-markdown h3 { font-size: var(--type-section); }
.report-markdown h4 { font-size: var(--type-body); }
.report-markdown ul {
  margin: 0;
  padding-left: 18px;
}

.report-markdown code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--gray);
  padding: 1px 4px;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-secondary);
}

.markdown-table th,
.markdown-table td {
  height: auto;
  white-space: normal;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.markdown-table th {
  background: var(--gray);
  color: var(--gray-ink);
}

.entry-detail {
  padding: 14px;
}

.entry-grid {
  display: grid;
  gap: 8px;
}

.entry-grid div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.entry-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-med);
  overflow-wrap: anywhere;
}

.entry-error {
  margin-top: 10px;
  border: 1px solid #ffd0cc;
  border-radius: 6px;
  background: var(--red);
  color: var(--red-ink);
  padding: 8px 10px;
  font-size: var(--type-secondary);
}

.raw-disclosure {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.raw-disclosure summary {
  cursor: pointer;
  padding: 9px 11px;
  color: var(--accent);
  font-weight: var(--w-semi);
}

.raw-disclosure pre {
  border-top: 1px solid var(--line);
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.toggle-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.guide-panel p {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.eyebrow,
.store-detail-grid span,
.store-baseline-snapshot span,
.store-baseline-toolbar > span,
.store-pressure-head span,
.store-baseline-metric span,
.store-generation-fact span,
.store-cleanup-target span,
.drawer-config-grid span,
.timeline-points em,
.call-log-operation,
.call-log-search,
.call-log-day,
.impact-grid span,
.preview-head span,
.report-metric span,
.report-table th,
.entry-grid span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: var(--type-body);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.step-card pre,
.result-box pre {
  max-height: 260px;
}

.result-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body);
}

.result-table th,
.result-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: right;
}

.result-table th:first-child,
.result-table td:first-child {
  text-align: left;
}

.connect-flow {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.connect-hero {
  display: grid;
  gap: 10px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.connect-hero.compact {
  padding: 28px 32px;
}

.connect-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: var(--type-title);
  line-height: 1.08;
  letter-spacing: 0;
}

.connect-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-section);
  line-height: 1.6;
}

.connect-store-overview {
  gap: 20px;
  border-left: 3px solid var(--accent);
}

.connect-store-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.connect-store-overview-head > div {
  display: grid;
  gap: 9px;
}

.connect-store-overview .connect-default-state {
  flex: 0 0 auto;
  margin-top: 2px;
}

.connect-store-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.connect-store-facts > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
}

.connect-store-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.connect-store-facts > div:last-child {
  padding-right: 0;
}

.connect-store-facts dt {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-store-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.5;
}

.connect-hero .connect-store-next {
  max-width: none;
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.5;
}

.connect-store-next strong {
  color: var(--ink);
}

.connect-store-depth-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connect-store-depth-action span {
  max-width: 680px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.practice-store-depth-panel,
.practice-store-depth-disclosure {
  background: transparent;
}

.practice-store-depth-panel {
  display: grid;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
}

.practice-store-depth-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 0 20px;
}

.practice-store-depth-disclosure > summary {
  cursor: pointer;
  padding: 16px 0;
  color: var(--ink);
  font-weight: var(--w-semi);
}

.practice-store-depth-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

.practice-store-depth-disclosure .practice-store-template-detail {
  padding: 20px 0;
}

.practice-store-template-detail,
.practice-store-live-snapshot {
  display: grid;
  gap: 12px;
}

.practice-store-template-detail-head,
.practice-store-live-snapshot-head {
  display: grid;
  gap: 4px;
}

.practice-store-template-detail-head h3,
.practice-store-template-detail-head p,
.practice-store-live-snapshot-head h2 {
  margin: 0;
}

.practice-store-template-detail {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.practice-store-template-detail-head h3 {
  font-size: var(--type-section);
  line-height: 1.25;
}

.practice-store-template-detail-head p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.practice-store-live-snapshot-head h2 {
  color: var(--ink);
  font-size: var(--type-title);
  font-weight: var(--w-semi);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.practice-store-live-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.practice-store-live-metrics > div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.practice-store-live-metrics > div:first-child {
  padding-left: 0;
}

.practice-store-live-metrics > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.practice-store-live-metrics span {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.practice-store-live-metrics strong {
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.1;
}

.practice-store-customer-model,
.practice-store-live-timeline {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.practice-store-customer-model span {
  color: var(--gray-ink);
  font-weight: var(--w-semi);
}

.practice-store-live-timeline {
  padding-top: 2px;
}

.practice-store-template-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 2px 0 0;
}

.practice-store-template-detail-grid > div {
  min-width: 0;
  padding: 9px 0 12px;
}

.practice-store-template-detail-grid dt {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.practice-store-template-detail-grid dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.practice-store-template-detail-grid > .practice-store-template-action {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin: 4px 0 8px;
  padding: 13px 0 14px;
}

.practice-store-template-action dt {
  color: var(--ink);
  font-size: var(--type-micro);
}

.practice-store-template-action dd {
  color: var(--ink);
  font-size: var(--type-body);
}

.practice-store-detail-status {
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 18px;
  color: var(--muted);
}

.practice-store-detail-status.error {
  color: var(--danger);
}

.connect-scenario-grid,
.connect-clock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.connect-existing-store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.connect-existing-store h2,
.connect-existing-store p {
  margin: 3px 0 0;
}

.connect-existing-store h2 {
  color: var(--ink);
  font-size: var(--type-section);
}

.connect-existing-store p {
  color: var(--muted);
  font-size: var(--type-body);
}

.connect-existing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.connect-existing-actions details {
  position: relative;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.connect-existing-actions summary {
  cursor: pointer;
}

.connect-existing-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.connect-existing-list a {
  color: var(--accent-dark);
  text-decoration: none;
}

.connect-default-store {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.connect-default-store-head,
.connect-default-store-body,
.connect-default-store-foot,
.connect-default-store-actions {
  display: flex;
  align-items: center;
}

.connect-default-store-head,
.connect-default-store-body,
.connect-default-store-foot {
  justify-content: space-between;
  gap: 20px;
}

.connect-default-state {
  border: 1px solid var(--status-supported-border);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--status-supported-bg);
  color: var(--status-supported-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
}

.connect-default-store-body h2,
.connect-catalog-choice h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.2;
}

.connect-default-store-body h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.2;
}

.connect-default-store-body p,
.connect-catalog-choice p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.connect-default-store-actions {
  flex: 0 0 auto;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.connect-default-store-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
}

.connect-default-store-foot a {
  flex: 0 0 auto;
}

.connect-default-store-foot details {
  max-width: 360px;
  text-align: right;
}

.connect-default-store-foot summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: var(--w-semibold);
}

.connect-default-store-foot details p {
  margin: 8px 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

.connect-catalog-choice {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.connect-scenario-card,
.connect-clock-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.connect-clock-card {
  min-height: 232px;
}

.connect-scenario-card:hover,
.connect-clock-card:hover,
.connect-scenario-card.selected,
.connect-clock-card.selected {
  border-color: var(--accent);
  background: #fbfbff;
}

.connect-scenario-card.selected {
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow);
}

.connect-scenario-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}

.connect-scenario-state {
  align-self: end;
  justify-self: start;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gray-ink) !important;
  background: #fff;
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
}

.connect-scenario-card.selected .connect-scenario-state {
  border-color: var(--status-supported-border);
  color: var(--status-supported-ink) !important;
  background: var(--status-supported-bg);
}

.connect-scenario-card strong,
.connect-clock-card strong {
  font-size: var(--type-section);
  line-height: 1.25;
}

.connect-scenario-card span:not(.eyebrow),
.connect-clock-card .connect-clock-fact {
  color: var(--muted);
  line-height: 1.45;
}

.connect-clock-card .connect-clock-fact {
  display: grid;
  gap: 2px;
}

.connect-clock-card .connect-clock-fact b {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.connect-clock-card em {
  color: var(--ink);
  font-style: normal;
  font-size: var(--type-body);
  line-height: 1.45;
}

.connect-secondary-line {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
}

.connect-above-fold {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.connect-supporting-paths {
  grid-template-columns: 1fr;
}

.connect-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.connect-panel.connected {
  border-color: #b8e8cd;
  background: #fbfffd;
}

.connect-first-win {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-content: start;
}

.connect-first-win.running {
  border-color: var(--accent);
}

.connect-sample-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  line-height: 1.45;
}

.connect-sample-spinner {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid #d8dcff;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .connect-sample-spinner {
    animation: none;
  }
}

.connect-fast-path {
  align-content: start;
  border-color: #d9dee8;
  background: #fbfcfe;
}

.connect-preflight-result {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.connect-preflight-result .connect-panel-head h2 {
  font-size: var(--type-section);
}

.connect-own-agent {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.connect-own-agent.primary {
  border-color: #9daff0;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 68%);
  box-shadow: 0 12px 30px rgba(61, 70, 126, 0.12);
}

.connect-own-agent > summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  color: var(--accent);
  cursor: pointer;
}

.connect-own-agent > summary::-webkit-details-marker,
.connect-reference-evidence > summary::-webkit-details-marker {
  display: none;
}

.connect-own-agent > summary::after,
.connect-reference-evidence > summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--type-title);
  font-weight: var(--w-semi);
}

.connect-own-agent[open] > summary::after,
.connect-reference-evidence[open] > summary::after {
  content: '−';
}

.connect-own-agent-summary-copy,
.connect-reference-summary-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
}

.connect-own-agent-summary-copy strong,
.connect-reference-summary-copy strong {
  color: var(--ink);
  font-size: var(--type-title);
  line-height: 1.25;
}

.connect-own-agent-summary-copy small,
.connect-reference-summary-copy small {
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-regular);
  line-height: 1.45;
}

.connect-own-agent > summary .connect-pill,
.connect-reference-evidence > summary .connect-pill {
  margin-left: auto;
}

.connect-reference-evidence {
  display: grid;
  overflow: hidden;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fbfcfe;
}

.connect-reference-evidence > summary {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.connect-reference-evidence > .connect-first-win {
  margin: 0 20px 20px;
  padding: 20px 0 0;
}

.connect-start-primary {
  border-color: #8fa4ee;
  background: linear-gradient(135deg, #f4f6ff 0%, #fff 72%);
  box-shadow: 0 14px 34px rgba(61, 70, 126, 0.14);
}

.connect-start-primary [data-connect-start-check] {
  min-width: 180px;
}

.connect-attempt-window {
  display: grid;
  gap: 5px;
  border-left: 3px solid var(--accent);
  padding: 11px 14px;
  background: color-mix(in srgb, var(--accent-soft) 54%, #fff);
  color: var(--ink);
  line-height: 1.45;
}

.connect-attempt-window p {
  margin: 0;
  color: var(--muted);
}

.connect-attempt-window a {
  justify-self: start;
  font-size: var(--type-body);
}

.connect-start-refusal {
  display: grid;
  gap: 6px;
  border: 1px solid #e3b968;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff9ed;
  color: #624516;
  line-height: 1.45;
}

.connect-start-refusal strong {
  color: #402b0d;
  font-size: var(--type-body);
}

.connect-start-refusal span {
  font-size: var(--type-body);
}

.connect-start-refusal a {
  justify-self: start;
  color: #6048b6;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.connect-start-refusal.used-up {
  border-color: #d9c88c;
  background: #fffdf3;
}

.connect-tier-load-error {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.connect-tier-load-error button {
  min-height: auto;
  padding: 0;
}

.connect-active-run {
  border-color: #9daff0;
  background: linear-gradient(135deg, #f4f6ff 0%, #fff 72%);
  box-shadow: 0 14px 34px rgba(61, 70, 126, 0.14);
}

.connect-active-run-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.connect-active-run-facts > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-left: 1px solid var(--line);
}

.connect-active-run-facts > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.connect-active-run-facts dt {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-active-run-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  line-height: 1.45;
}

.connect-primary-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  padding: 0 12px;
  color: #fff;
  font-size: var(--type-body);
  text-decoration: none;
}

.connect-primary-action:hover {
  background: var(--accent-dark);
}

.connect-wiring-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 14px;
}

.connect-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.connect-panel-head h2 {
  margin: 4px 0 0;
  font-size: var(--type-title);
  line-height: 1.2;
}

.connect-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.connect-tabs button {
  min-height: 28px;
  background: transparent;
  color: var(--muted);
  border: 0;
}

.connect-tabs button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(21, 27, 38, 0.08);
}

.connect-code-block {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101827;
  color: #f8fafc;
  font-family: var(--mono);
  font-size: var(--type-body);
  line-height: 1.55;
}

.connect-token-note {
  margin: -4px 0 0;
  color: var(--gray-ink);
  font-size: var(--type-secondary);
}

.connect-guide-target-flash {
  outline: 3px solid rgba(99, 91, 255, 0.45);
  box-shadow: 0 0 0 6px rgba(99, 91, 255, 0.14);
  animation: connect-guide-target-pulse 1.1s ease-in-out 2;
}

@keyframes connect-guide-target-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(99, 91, 255, 0.14);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 91, 255, 0.24);
  }
}

.connect-env-block {
  display: grid;
  gap: 4px;
}

.connect-env-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.connect-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.connect-copy-feedback {
  color: var(--green-ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.connect-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.connect-call-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #b8e8cd;
  border-radius: 8px;
  background: var(--green);
  color: var(--green-ink);
}

.connect-call-card span,
.connect-muted,
.connect-check-copy {
  color: var(--muted);
  line-height: 1.5;
}

.connect-check-copy {
  margin: 0;
}

.connect-check-copy.good {
  color: var(--green-ink);
}

.connect-check-copy.warn {
  color: var(--amber-ink);
}

.connect-step-shell {
  display: grid;
  gap: 8px;
}

.connect-step-shell .first-receipt-steps {
  margin: 0;
}

.connect-inline-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: var(--w-semi);
}

.connect-inline-status.warn {
  border-color: #f2d99f;
  background: var(--amber);
  color: var(--amber-ink);
}

.connect-advanced-script {
  display: grid;
  gap: 10px;
}

.connect-advanced-script summary {
  width: max-content;
  color: var(--accent);
  font-weight: var(--w-semi);
  cursor: pointer;
}

.connect-ci-snippet {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.connect-ci-snippet h3 {
  margin: 4px 0 0;
  font-size: var(--type-section);
  line-height: 1.25;
}

@media (max-width: 1120px) {
  .shell { grid-template-columns: 196px minmax(0, 1fr); }
  .command { grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); }
  .connection-details { grid-column: 1 / -1; }
  .auth-field { grid-column: 2; grid-row: 1; }
  .search-field { grid-column: 1; }
  #connectionDetails[hidden] ~ .search-field {
    grid-column: 1;
    width: 100%;
  }
  .command > button { grid-column: 2; }
  .detail-layout,
  .launch-layout,
  .reports-layout,
  .mode-shell { grid-template-columns: 1fr; }

  .mode-controls {
    align-content: start;
  }

  .mode-actions {
    justify-content: flex-start;
  }

  .connect-scenario-grid,
  .connect-wiring-grid,
  .connect-clock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .store-zero-layout {
    grid-template-columns: 1fr;
  }

  .recommendation-card {
    order: -1;
  }

  .store-connection-access {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .store-quickstart-row {
    grid-template-columns: 1fr;
  }

  .store-world-actions {
    justify-content: flex-start;
    justify-items: start;
  }

  .store-world-next,
  .store-world-secondary-actions,
  .store-world-utility-links {
    justify-content: flex-start;
  }

  .drawer-agent-grid,
  .suite-template-grid,
  .preflight-op {
    grid-template-columns: 1fr;
  }

  .suite-matrix-row {
    grid-template-columns: 1fr;
  }

  .suite-source-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .suite-source-summary span {
    text-align: left;
  }

  .suite-evidence-record {
    align-items: flex-start;
    flex-direction: column;
  }

  .first-receipt-panel {
    grid-template-columns: 1fr;
  }

  .demo-verdict,
  .demo-scenario-chooser,
  .demo-scenario-options,
  .demo-replay-grid,
  .demo-stat-strip {
    grid-template-columns: 1fr;
  }

  .demo-act-head,
  .demo-sticky-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-replay-toolbar,
  .demo-replay-finished {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-replay-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-replay-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .demo-replay-finished-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-sticky-cta span {
    margin-right: 0;
  }

  .demo-replay-log > div:not(.empty-state):not(.demo-replay-ghost),
  .demo-replay-ghost div {
    grid-template-columns: 1fr;
  }

  .home-dashboard-hero,
  .home-list-row,
  .home-feed-row,
  .home-list-row.compact,
  .gate-hero,
  .gate-proof-band,
  .gate-history-row,
  .gate-key-form,
  .gate-step,
  .suite-history-row,
  .gate-receipt-row,
  .receipt-boundary-grid,
  .receipt-call-expansion,
  .receipt-identity-grid,
  .home-ci-panel,
  .connection-agent-instruction,
  .connection-scope-ledger,
  .account-key-row,
  .oauth-grant-row {
    grid-template-columns: 1fr;
  }

  .connection-scope-ledger article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .connection-scope-ledger article:last-child {
    border-bottom: 0;
  }

  .account-key-actions {
    justify-content: flex-start;
  }

  .home-dashboard-hero {
    display: grid;
  }

  .receipt-hero,
  .receipt-card-head,
  .gate-section-head,
  .gate-empty-state,
  .gate-ci-panel {
    flex-direction: column;
  }

  .receipt-call-workspace,
  .receipt-inspector-grid {
    grid-template-columns: 1fr;
  }

  .receipt-call-inspector {
    position: static;
  }

  .home-ci-panel,
  .home-nightly-hook,
  .gate-ci-panel {
    display: grid;
  }

  .gate-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gate-stat:last-child {
    border-bottom: 0;
  }

  .first-receipt-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }

  .preflight-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .store-connection-materials > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .store-connection-materials dt {
    grid-column: 1 / -1;
  }

  .store-connection-materials > div > span {
    grid-column: 1 / -1;
  }

  .store-connection-access-actions > * {
    width: 100%;
  }

  .store-world-step-map-panel {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }

  .vstore-step-affordance {
    grid-template-columns: 1fr;
  }

  .vstore-step-affordance button {
    justify-self: start;
  }

  .home-run-hero > header {
    display: grid;
    padding: 16px;
  }

  .home-run-instruments {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
  }

  .home-run-instruments dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    padding-top: 13px;
  }

  .home-run-instruments dl > div {
    border-left: 0;
    padding: 0 8px 0 0;
  }

  .home-run-instruments dl > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
    margin-bottom: 12px;
  }

  .home-run-instruments dd {
    font-size: var(--type-body);
  }

  .home-run-hero > .home-dashboard-actions {
    padding: 12px 16px 16px;
  }
  .workspace-switcher {
    margin-bottom: 16px;
  }
  .workspace-switcher-button {
    min-height: 48px;
  }
  .workspace-popover {
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 32px));
    min-width: 160px;
    max-height: min(460px, calc(100vh - 150px));
  }
  .archived-workspace-banner {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .archived-workspace-banner > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .main {
    --main-gutter: 14px;
    --main-bottom: 14px;
    padding: 14px;
  }
  .command,
  .metric-row,
  .launch-form,
  .connect-above-fold,
  .connect-scenario-grid,
  .connect-wiring-grid,
  .connect-clock-grid { grid-template-columns: 1fr; }
  .connect-default-store-body,
  .connect-default-store-foot,
  .connect-store-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .connect-default-store-foot details {
    max-width: none;
    text-align: left;
  }
  .connect-store-facts {
    grid-template-columns: 1fr;
  }
  .connect-active-run-facts {
    grid-template-columns: 1fr;
  }
  .connect-active-run-facts > div,
  .connect-active-run-facts > div:first-child {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .connect-active-run-facts > div:first-child {
    border-top: 0;
  }
  .connect-store-facts > div,
  .connect-store-facts > div:first-child,
  .connect-store-facts > div:last-child {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .connect-store-facts > div:first-child {
    border-top: 0;
  }
  .connect-store-depth-action {
    align-items: stretch;
    flex-direction: column;
  }
  .practice-store-template-detail-grid {
    grid-template-columns: 1fr;
  }
  .practice-store-live-metrics {
    grid-template-columns: repeat(5, minmax(116px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .practice-store-live-metrics > div,
  .practice-store-live-metrics > div:first-child,
  .practice-store-live-metrics > div:last-child {
    padding: 12px;
  }
  .practice-store-live-metrics > div:last-child {
    border-right: 0;
  }
  .practice-store-template-detail-grid > .practice-store-template-action {
    margin-bottom: 0;
  }
  .vstore-template-review > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .connect-default-store-actions {
    justify-content: flex-start;
  }
  .connect-hero,
  .connect-panel {
    padding: 18px;
  }
  .connect-hero h1 {
    font-size: var(--type-title);
  }
  .connect-panel-head {
    flex-direction: column;
  }
  .record-head-side { justify-content: flex-start; }
  .onboard-strip { grid-template-columns: 1fr; }
  .onboard-strip .onboard-owned { text-align: left; }
  .store-detail-head { flex-direction: column; }
  .store-baseline-head {
    flex-direction: column;
  }
  .store-baseline-snapshot {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
    text-align: left;
  }
  .store-page-actions,
  .store-head-actions,
  .suite-actions,
  .gate-actions,
  .mode-actions,
    .home-dashboard-actions,
    .home-row-actions,
  .first-receipt-actions,
  .first-store-actions,
  .store-workbench-buttons,
  .store-world-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .mode-switch,
  .first-receipt-steps,
  .first-store-row,
  .gate-ci-steps {
    grid-template-columns: 1fr;
  }
  .section-inline-head {
    align-items: stretch;
    flex-direction: column;
  }
  .first-store-actions {
    justify-content: flex-start;
  }
  .store-workbench-action,
  .vstore-check-actions,
  .vstore-world-options,
  .launch-advanced-grid {
    grid-template-columns: 1fr;
  }
  .vstore-check-action-buttons {
    justify-content: flex-start;
  }
  .store-world-heading {
    flex-direction: column;
  }
  .store-connection-step-header,
  .store-connection-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .store-world-heading > div {
    flex-basis: auto;
    min-width: 0;
  }
  .store-world-status {
    align-self: flex-start;
  }
  .store-world-actions,
  .store-world-utilities {
    align-content: start;
    justify-content: flex-start;
    justify-items: start;
  }
  .store-detail-grid { grid-template-columns: 1fr; }
  .store-detail-grid > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-right: 0;
    padding: 10px 0;
  }
  .store-detail-grid > div:last-child { border-bottom: 0; }
  .store-baseline-layout,
  .store-baseline-metrics,
  .vstore-receipt-grid,
  .store-generation-grid {
    grid-template-columns: 1fr;
  }
  .vstore-receipt-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .vstore-receipt-card:last-child {
    border-bottom: 0;
  }
  .store-baseline-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .store-baseline-chart-meta,
  .store-baseline-legend,
  .store-pressure-head,
  .store-pressure-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .store-run-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }
  .store-run-row.vstore-world-row { grid-template-columns: 1fr; }
  .store-contents-head { flex-direction: column; }
  .drawer { width: 100vw; padding: 18px; }
  .drawer-clock-mode,
  .drawer-playback-controls,
  .drawer-config-grid,
  .vstore-profile-grid,
  .vstore-template-details,
  .vstore-world-options-grid,
  .vstore-catalog-toggle,
  .vstore-catalog-controls,
  .vstore-catalog-save,
  .vstore-catalog-row { grid-template-columns: 1fr; }
  .vstore-catalog-row b { text-align: left; }
  .vstore-mutation-head,
  .vstore-mutation-recipes li,
  .vstore-template-mapping span {
    grid-template-columns: 1fr;
  }
  .vstore-mutation-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .drawer-config-grid div,
  .drawer-config-grid div:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }
  .drawer-config-grid div:first-child {
    border-top: 0;
  }
  .drawer-config-grid div:nth-child(2n) {
    border-left: 0;
  }
  .drawer-field { grid-template-columns: 1fr; }
  .drawer-actions {
    bottom: -18px;
    margin: 20px -18px -18px;
    padding: 12px 18px;
  }
  .command {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .search-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .auth-field {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }
  .connection-details {
    grid-column: auto;
    grid-row: auto;
  }
  #connectionDetails[hidden] ~ .search-field {
    grid-column: 1 / -1;
    width: 100%;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .connection-settings-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .auth-field {
    justify-content: flex-end;
  }
  .auth-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .trial-status-shell {
    order: 3;
    flex: 1 0 100%;
    display: flex;
    justify-content: flex-end;
  }
  .trial-status-button {
    max-width: 100%;
  }
  .account-menu-panel {
    right: 0;
    max-width: calc(100vw - 36px);
  }
  .application-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .command > button { grid-column: auto; }
  .activity,
  .view-head,
  .record-toolbar { align-items: stretch; flex-direction: column; }
  .activity-strip,
  .kpis { justify-content: flex-start; }
  .record-count { align-self: flex-start; }
  .coverage-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .coverage-row .store-actions {
    justify-content: flex-start;
  }
  .coverage-suite-action,
  .coverage-selected-template,
  .coverage-detail-head,
  .coverage-detail-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .coverage-selected-actions {
    justify-items: stretch;
  }
  .coverage-selected-actions a {
    text-align: left;
  }
  .coverage-detail-backdrop {
    align-items: end;
    padding: 12px;
  }
  .coverage-card-grid {
    grid-template-columns: 1fr;
  }
  .budget-grid { grid-template-columns: 1fr; }
  .budget-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-grid > div,
  .impact-grid > div:nth-child(3n) {
    min-height: 0;
    border-right: 0;
  }
  .ledger-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 10px 14px;
  }
  .vstore-call-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px 14px;
  }
  .vstore-call-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .call-log-total {
    justify-self: start;
  }
  .vstore-call-log-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 8px 14px;
  }
  .call-row-time,
  .call-row-op,
  .call-row-target,
  .call-row-reason {
    grid-column: 1 / -1;
  }
  .call-row-status {
    grid-column: 1;
    justify-self: start;
  }
  .call-row-chevron {
    grid-column: 2;
    grid-row: 5;
  }
  .vstore-call-inline-detail {
    padding-left: 14px;
  }
  .ledger-action,
  .ledger-id {
    grid-column: 1 / -1;
  }
  .ledger-status {
    grid-row: 1;
    grid-column: 2;
  }
  .step-card { grid-template-columns: 1fr; flex-direction: column; }
}

/* Console probe library: saved + recent + run/receipt calls, kept distinct. */
.practice-console-library {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.practice-console-library-head {
  display: grid;
  gap: 8px;
}

.practice-console-library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.practice-console-library-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.practice-console-library-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Each source gets a distinct accent so the four views read as different. */
.library-source-saved .practice-console-library-tab-dot { background: var(--accent); }
.library-source-recent .practice-console-library-tab-dot { background: #0f766e; }
.library-source-run-call .practice-console-library-tab-dot { background: #b45309; }
.library-source-receipt-call .practice-console-library-tab-dot { background: #7c3aed; }

.practice-console-library-tab.active {
  border-color: var(--accent);
}

.practice-console-library-tab-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: var(--type-secondary);
  text-align: center;
}

.practice-console-library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.practice-console-library-filter select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: var(--type-secondary);
  background: #fff;
  color: var(--ink);
}

.practice-console-library-archived {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--type-secondary);
  color: var(--muted);
}

.visually-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.practice-console-library-notice {
  font-size: var(--type-secondary);
  color: var(--ink);
  background: var(--soft);
  border-radius: 6px;
  padding: 6px 10px;
}

.practice-console-save-form,
.practice-console-rename-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.practice-console-save-form label {
  display: grid;
  gap: 4px;
  font-size: var(--type-secondary);
  color: var(--muted);
  flex: 1 1 200px;
}

.practice-console-save-form input,
.practice-console-rename-form input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: var(--type-body);
  color: var(--ink);
  background: #fff;
}

.practice-console-save-actions {
  display: flex;
  gap: 8px;
}

.practice-console-library-body {
  min-height: 40px;
}

.practice-console-library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.practice-console-library-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
}

.practice-console-library-item[data-console-library-source="saved"] { border-left-color: var(--accent); }
.practice-console-library-item[data-console-library-source="probe"] { border-left-color: #0f766e; }
.practice-console-library-item[data-console-library-source="run-call"] { border-left-color: #b45309; }
.practice-console-library-item[data-console-library-source="receipt-call"] { border-left-color: #7c3aed; }

.practice-console-library-item.active {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.practice-console-library-item.archived {
  opacity: 0.72;
}

.practice-console-library-item-main {
  display: grid;
  gap: 6px;
  flex: 1 1 320px;
  min-width: 0;
}

.practice-console-library-open {
  display: grid;
  gap: 2px;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.practice-console-library-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.practice-console-library-item-name {
  font-weight: 600;
  font-size: var(--type-body);
}

.practice-console-library-item-desc {
  font-size: var(--type-secondary);
  color: var(--muted);
}

.practice-console-library-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--type-secondary);
  color: var(--muted);
}

.practice-console-library-item-store,
.practice-console-library-item-op {
  color: var(--ink);
}

.practice-console-library-item-recency {
  color: var(--muted);
}

.practice-console-library-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.practice-console-library-empty,
.practice-console-library-loading {
  margin: 0;
  font-size: var(--type-secondary);
  color: var(--muted);
}

.practice-console-library-error {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--type-secondary);
  color: var(--danger, #b91c1c);
}

.chip.subtle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* a restored partial snapshot explains what was not captured, never fabricates values. */
.practice-console-partial-note {
  margin: 6px 0 0;
  font-size: var(--type-secondary);
  color: var(--muted);
  font-style: italic;
}

/* Store Passport activity rows can carry both "Open receipt" and "Open in Console". */
.vstore-activity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.practice-console-library-clear {
  justify-self: start;
  font-size: var(--type-secondary);
}

/* two-store read comparison mode. The compare pane replaces the response pane while active; it
   keeps the editor visible on the left and lays two lanes side by side (stacked on narrow screens). */
.practice-console-compare-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}

.practice-console-compare-setup {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow-y: auto;
}

.practice-console-compare-field {
  display: grid;
  gap: 4px;
  font-size: var(--type-body);
}

.practice-console-compare-field > span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.practice-console-compare-field select,
.practice-console-compare-field output {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.practice-console-compare-field output {
  color: var(--muted);
  background: var(--soft);
}

.practice-console-compare-mutation {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--amber);
  border-radius: 6px;
  background: var(--status-lifecycle-bg, #fff8e6);
  color: var(--amber-ink, #7a5200);
  font-size: var(--type-body);
}

.practice-console-compare-run {
  justify-self: start;
}

.practice-console-compare-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  overflow-y: auto;
}

.practice-console-compare-result-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.practice-console-compare-result-head time {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-console-compare-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.practice-console-compare-lane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.practice-console-compare-lane-heading {
  margin: 0;
  font-size: var(--type-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.practice-console-compare-lane-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.practice-console-compare-lane-facts > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.practice-console-compare-lane-facts dt {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-console-compare-lane-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--type-body);
}

.practice-console-compare-lane-errors {
  margin: 0;
  padding-left: 18px;
  color: var(--red-ink, #a11);
  font-size: var(--type-secondary);
}

.practice-console-compare-lane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.practice-console-compare-raw {
  max-height: 240px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--type-secondary);
  overflow: auto;
  white-space: pre;
}

.practice-console-compare-diff {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.practice-console-compare-diff-heading {
  margin: 0;
  font-size: var(--type-body);
}

.practice-console-compare-diff-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--type-body);
}

.practice-console-compare-diff-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.practice-console-compare-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-secondary);
}

.practice-console-compare-diff-table th,
.practice-console-compare-diff-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.practice-console-compare-diff-table th {
  color: var(--muted);
  font-weight: 600;
}

.practice-console-compare-url {
  margin: 0;
  font-size: var(--type-secondary);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.practice-console-compare-error {
  margin: 0 14px 12px;
  color: var(--red-ink, #a11);
  font-size: var(--type-body);
}

.practice-console-compare-live {
  margin: 0;
  padding: 6px 14px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-console-compare-pane :is(select, button, [aria-expanded]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .practice-console-compare-lanes {
    grid-template-columns: 1fr;
  }
}

/* discarded-fork mutation comparison: the confirmation panel, the discarded-fork badge, per-lane
   before/after consequence tables, and the collapsed fork-provenance disclosure. */
.practice-console-compare-confirm {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--amber, #e0a800);
  border-radius: 8px;
  background: var(--status-lifecycle-bg, #fff8e6);
}

.practice-console-compare-confirm ul {
  margin: 0;
  padding-left: 18px;
}

.practice-console-compare-confirm .practice-console-compare-run {
  justify-self: start;
}

.practice-console-compare-fork-badge {
  margin-left: 8px;
}

.practice-console-compare-consequence {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.practice-console-compare-consequence-heading {
  margin: 0;
  font-size: var(--type-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.practice-console-compare-consequence-summary,
.practice-console-compare-consequence-empty {
  margin: 0;
  font-size: var(--type-body);
}

.practice-console-compare-consequence-table,
.practice-console-compare-consequence-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-secondary);
}

.practice-console-compare-consequence-table th,
.practice-console-compare-consequence-table td,
.practice-console-compare-consequence-diff-table th,
.practice-console-compare-consequence-diff-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.practice-console-compare-provenance-disclosure {
  font-size: var(--type-secondary);
}

.practice-console-compare-provenance-disclosure summary {
  cursor: pointer;
  color: var(--muted);
}

.practice-console-compare-fork-facts {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
}

.practice-console-compare-fork-facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
}

.practice-console-compare-fork-facts dt {
  color: var(--muted);
}

.practice-console-compare-fork-facts dd {
  margin: 0;
}

.practice-console-compare-fork-revision {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

/* the "Probe sets" library source: create form (select + reorder + name), open view, and rows. */
.practice-console-probe-sets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
}

.practice-console-probe-sets-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.practice-console-probe-set-create {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.practice-console-probe-set-mutation-notice {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--amber, #e0a800);
  border-radius: 6px;
  background: var(--status-lifecycle-bg, #fff8e6);
  color: var(--amber-ink, #7a5200);
  font-size: var(--type-body);
}

.practice-console-probe-set-picker {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.practice-console-probe-set-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-body);
}

.practice-console-probe-set-order {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.practice-console-probe-set-order li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--type-body);
}

.practice-console-probe-set-position {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.practice-console-probe-set-field {
  display: grid;
  gap: 4px;
  font-size: var(--type-body);
}

.practice-console-probe-set-field input {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.practice-console-probe-set-create-actions,
.practice-console-probe-set-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.practice-console-probe-set-error {
  margin: 0;
  color: var(--red-ink, #a11);
  font-size: var(--type-body);
}

.practice-console-probe-set-private-notice {
  margin: 0;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  padding: 8px 10px;
  font-size: var(--type-body);
}

.practice-console-probe-set-open {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.practice-console-probe-set-open-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.practice-console-probe-set-open-items {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.practice-console-probe-set-open-items li {
  display: grid;
  gap: 6px;
  font-size: var(--type-body);
  min-width: 0;
}

.practice-console-probe-set-open-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.practice-console-probe-set-open-op {
  font-family: var(--mono);
  font-size: var(--type-secondary);
  overflow-wrap: anywhere;
}

.practice-console-probe-set-request {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.practice-console-probe-set-request summary {
  cursor: pointer;
  font-weight: 650;
}

.practice-console-probe-set-request dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 10px 0;
}

.practice-console-probe-set-request dl div {
  min-width: 0;
}

.practice-console-probe-set-request dt {
  color: var(--muted);
  font-size: var(--type-micro);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.practice-console-probe-set-request dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.practice-console-probe-set-request pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre;
  padding: 8px;
  border-radius: 6px;
  background: var(--soft);
  font-size: var(--type-micro);
}

.practice-console-probe-set-item-actions {
  margin-top: 4px;
}

.practice-console-probe-set-run {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.practice-console-probe-set-run-head,
.practice-console-probe-set-matrix-head,
.practice-console-probe-set-matrix-actions,
.practice-console-probe-set-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.practice-console-probe-set-run-head p,
.practice-console-probe-set-matrix-head p,
.practice-console-probe-set-live {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.practice-console-probe-set-templates,
.practice-console-probe-set-catalog {
  display: grid;
  gap: 8px 12px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.practice-console-probe-set-templates {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.practice-console-probe-set-catalog {
  grid-template-columns: repeat(2, minmax(160px, 220px));
}

.practice-console-probe-set-templates label,
.practice-console-probe-set-catalog label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 32px;
  padding: 5px 2px;
  font-size: var(--type-body);
  line-height: 1.25;
  cursor: pointer;
}

.practice-console-shell input:is([type="checkbox"], [type="radio"]) {
  appearance: auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--accent);
}

.practice-console-probe-set-field select {
  min-width: min(320px, 100%);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.practice-console-probe-set-matrix {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.practice-console-probe-set-matrix-head h3 {
  margin: 2px 0 4px;
  font-size: var(--type-section);
}

.practice-console-probe-set-matrix-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.practice-console-probe-set-matrix-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.practice-console-probe-set-matrix-table th,
.practice-console-probe-set-matrix-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.practice-console-probe-set-matrix-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 220px;
  background: var(--panel);
}

.practice-console-probe-set-matrix-table small,
.practice-console-probe-set-card header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.practice-console-probe-set-cell {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 118px;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.practice-console-probe-set-cell span {
  color: var(--muted);
  font-size: var(--type-micro);
  text-transform: uppercase;
}

.practice-console-probe-set-matrix-cards {
  display: none;
  gap: 8px;
}

.practice-console-probe-set-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.practice-console-probe-set-card > div {
  display: grid;
  gap: 6px;
}

.practice-console-probe-set-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 16, 24, 0.45);
}

.practice-console-probe-set-dialog {
  display: grid;
  gap: 12px;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

dialog.practice-console-probe-set-dialog {
  margin: auto;
}

dialog.practice-console-probe-set-dialog::backdrop {
  background: rgba(10, 16, 24, 0.45);
}

.practice-console-probe-set-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.practice-console-probe-set-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.practice-console-probe-set-detail dt {
  color: var(--muted);
  font-size: var(--type-micro);
  text-transform: uppercase;
}

.practice-console-probe-set-detail dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.practice-console-probe-set-detail pre {
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border-radius: 6px;
  background: var(--soft);
  font-size: var(--type-micro);
}

.practice-console-probe-set-truncation {
  margin: 0;
  color: var(--amber-ink, #7a5200);
  font-size: var(--type-body);
}

.practice-console-probe-sets :is(button, input, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .home-orientation-strip {
    grid-template-columns: 1fr;
  }

  .home-orientation-strip > a,
  .home-orientation-strip > button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-orientation-strip > :last-child {
    border-bottom: 0;
  }

  .connect-existing-store {
    grid-template-columns: 1fr;
  }

  .connect-existing-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .practice-console-probe-sets {
    padding-inline: 8px;
  }

  .practice-console-probe-sets-actions,
  .practice-console-probe-set-create-actions,
  .practice-console-probe-set-item-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-console-probe-set-order li {
    align-items: flex-start;
  }

  .practice-console-probe-set-request dl {
    grid-template-columns: 1fr;
  }

  .practice-console-probe-set-run-head,
  .practice-console-probe-set-matrix-head,
  .practice-console-probe-set-matrix-actions,
  .practice-console-probe-set-dialog header {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-console-probe-set-templates,
  .practice-console-probe-set-catalog {
    grid-template-columns: 1fr;
  }

  .practice-console-probe-set-matrix-table {
    display: none;
  }

  .practice-console-probe-set-matrix-cards {
    display: grid;
  }

  .practice-console-probe-set-detail dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .account-admin-heading,
  .account-rename-form,
  .account-deletion-form {
    grid-template-columns: 1fr;
  }

  .account-admin-stats {
    flex-wrap: wrap;
  }

  .account-rename-form > div,
  .account-rename-form .field-error {
    grid-column: 1;
  }

  .account-member-head {
    display: none;
  }

  .account-member-row,
  .account-members-table:not(.owner-actions) .account-member-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 10px 14px;
    padding: 14px 0;
  }

  .account-member-person,
  .account-member-action {
    grid-column: 1 / -1;
  }

  .account-member-row [data-label] {
    display: grid;
    gap: 3px;
  }

  .account-member-row [data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: var(--type-micro);
    font-weight: var(--w-semi);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .settings-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .settings-section-nav a {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
  }

  .account-admin-panel-head,
  .account-admin-error,
  .account-rename-form > div,
  .account-deletion-reauth {
    align-items: stretch;
    flex-direction: column;
  }

  .account-member-row,
  .account-members-table:not(.owner-actions) .account-member-row {
    grid-template-columns: 1fr;
  }

  .account-member-person,
  .account-member-action {
    grid-column: 1;
  }
}

/* account operations: a dense ledger with a restrained workspace rail. */
.account-ops-page {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 1180px;
}

.account-ops-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.account-ops-head h1 {
  margin: 4px 0 6px;
  font-size: var(--type-title);
  line-height: 1;
  letter-spacing: -0.04em;
}

.account-ops-head p,
.account-announcement {
  margin: 0;
  color: var(--muted);
}

.portfolio-ledger,
.usage-workspace-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.portfolio-workspace-row {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-workspace-row.is-archived {
  background: transparent;
  box-shadow: none;
}

.portfolio-workspace-head,
.customer-run-detail > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-workspace-head h2,
.customer-run-detail h1 {
  margin: 3px 0 0;
  letter-spacing: -0.025em;
}

.portfolio-workspace-head h2 {
  font-size: var(--type-title);
}

.portfolio-facts,
.customer-run-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.portfolio-facts > div,
.customer-run-facts > div {
  min-width: 0;
  padding: 11px 12px;
  background: var(--panel);
}

.portfolio-facts dt,
.customer-run-facts dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portfolio-facts dd,
.customer-run-facts dd {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: var(--type-body);
  overflow-wrap: anywhere;
}

.portfolio-facts small { color: var(--muted); font-family: var(--sans); }

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-recent {
  min-width: 0;
  padding-top: 2px;
}

.portfolio-recent h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--type-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-recent ol { margin: 0; padding: 0; list-style: none; }
.portfolio-recent li + li { border-top: 1px solid var(--line); }
.portfolio-recent p { margin: 0; color: var(--muted); }

.portfolio-run-link {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 2px;
  text-align: left;
}

.portfolio-run-link:hover { background: var(--soft); color: var(--accent-dark); }
.portfolio-run-link span { display: grid; min-width: 0; }
.portfolio-run-link small { color: var(--muted); font-size: var(--type-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-run-link em,
.portfolio-run-link time { color: var(--muted); font-size: var(--type-secondary); font-style: normal; }
.portfolio-run-link time { flex: none; font-family: var(--mono); }

.portfolio-archived {
  border-top: 1px solid var(--line-strong);
  padding-top: 4px;
}

.portfolio-archived > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: var(--w-semi);
}

.portfolio-archived > summary span { color: var(--muted); font-family: var(--mono); }

.account-state {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.account-state.error { border-style: solid; border-color: #efaaa4; color: var(--red-ink); }
.account-state p { margin: 8px 0 14px; }

.usage-period-control {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.usage-period-control input {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  padding: 0 10px;
  color: var(--ink);
  font-family: var(--mono);
}

.tier-usage-document,
.usage-account-activity,
.usage-workspace-document,
.usage-operation-document {
  min-width: 0;
}

.tier-usage-document > .layout-heading-owned-group {
  border-top-color: var(--accent);
}

.tier-usage-status { display: flex; justify-content: flex-end; }
.tier-trial-clock { margin: 0; color: var(--muted); }
.tier-trial-clock strong { color: var(--ink); }
.tier-remaining-display { display: grid; gap: 3px; }
.tier-remaining-display strong { color: var(--ink); font-family: var(--mono); font-size: var(--type-display); line-height: 1; }
.tier-remaining-display span { color: var(--ink); font-size: var(--type-body); font-weight: var(--w-semi); }
.tier-remaining-display small { color: var(--muted); font-size: var(--type-secondary); line-height: 1.4; }
.tier-usage-document progress { width: 100%; accent-color: var(--accent); }
.tier-usage-document .layout-fact-table th,
.usage-account-activity .layout-fact-table th { font-size: var(--type-body); }
.tier-usage-alert { margin: 0; padding: 10px 12px; border-left: 3px solid #c98210; background: var(--amber); color: var(--amber-ink); }
.tier-usage-alert.critical { border-left-color: var(--red-ink); background: var(--red); color: var(--red-ink); }

.usage-account-activity {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.usage-account-activity h2,
.usage-operation-document h3 {
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.3;
}

.coverage-note {
  margin: -10px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green-ink);
  background: var(--green);
  color: var(--green-ink);
}

.coverage-note.incomplete { border-left-color: #c98210; background: var(--amber); color: var(--amber-ink); }

.customer-run-detail {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.usage-workspace-document > .layout-heading-owned-group { gap: 12px; }
.usage-operation-document { display: grid; gap: 5px; padding-top: 8px; }
.usage-operation-document p { max-width: 72ch; margin: 0; color: var(--muted); font-size: var(--type-secondary); }
.customer-run-detail > header p { margin: 6px 0 0; color: var(--muted); }
.customer-run-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mono { font-family: var(--mono); }

[data-portfolio-workspace]:focus-visible,
[data-usage-period]:focus-visible,
.portfolio-archived > summary:focus-visible,
[data-gate-evaluation-id]:focus-visible,
#client-shares-title:focus-visible {
  outline: 3px solid rgba(98, 88, 246, 0.38);
  outline-offset: 3px;
}

@media (width <= 720px) {
  .account-ops-head,
  .portfolio-workspace-head,
  .customer-run-detail > header {
    align-items: stretch;
    flex-direction: column;
  }

  .account-ops-head > a,
  .usage-period-control { width: 100%; }

  .portfolio-facts,
  .customer-run-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .portfolio-run-link { align-items: flex-start; flex-direction: column; gap: 3px; }
  .portfolio-actions > * { flex: 1 1 42%; }
  .account-state { padding: 22px 16px; }
}

@media (max-width: 420px) {
  .portfolio-facts,
  .customer-run-facts { grid-template-columns: 1fr; }
}

/* bounded Shopify Exam owner workflow and immutable evidence. */
.exam-promotion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: start;
  border-left: 4px solid var(--accent);
}

.exam-promotion-card-blocked,
.exam-promotion-card-negative-control,
.exam-promotion-card-action-expanded {
  grid-template-columns: 1fr;
  gap: 16px;
}

.exam-promotion-intro {
  display: grid;
  align-content: start;
}

.exam-promotion-card-blocked .exam-promotion-intro,
.exam-promotion-card-negative-control .exam-promotion-intro,
.exam-promotion-card-action-expanded .exam-promotion-intro {
  max-width: 760px;
}

.exam-promotion-card h2,
.exam-card h2 { margin: 4px 0 7px; }
.exam-promotion-card p { margin: 0; color: var(--muted); }
.exam-promotion-action { display: grid; min-width: 0; gap: 10px; }
.exam-promotion-card-eligible:not(.exam-promotion-card-action-expanded) .exam-promotion-action > p {
  padding: 12px;
  border-radius: 6px;
  background: var(--soft);
}
.exam-blocker-summary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--status-unsupported-border);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--status-unsupported-bg);
  padding: 13px 15px;
  color: var(--status-unsupported-ink);
}
.exam-blocker-summary strong { color: inherit; font-size: var(--type-body); }
.exam-blocker-summary p { color: inherit; }
.exam-recovery-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: exam-recovery;
}
.exam-recovery-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  counter-increment: exam-recovery;
}
.exam-recovery-list li::before {
  content: counter(exam-recovery, decimal-leading-zero);
  padding-top: 1px;
  color: var(--gray-ink);
  font-family: var(--mono);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .04em;
}
.exam-recovery-list li > div { display: grid; gap: 4px; min-width: 0; }
.exam-recovery-list strong { color: var(--ink); font-size: var(--type-body); }
.exam-recovery-list p { overflow-wrap: anywhere; }
.exam-blocker-guide { font-weight: var(--w-semi); }
.exam-promotion-card-blocked details { border-top: 1px solid var(--line); padding-top: 10px; }
.exam-promotion-card-blocked details summary { cursor: pointer; color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-semi); }
.exam-promotion-card-blocked details code { overflow-wrap: anywhere; }
.exam-shop-field,
.exam-confirm-field { display: grid; gap: 6px; color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-semi); }
.exam-shop-field input,
.exam-shop-field select,
.exam-confirm-field input { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 11px; background: var(--panel); color: var(--ink); font-family: var(--mono); }
.exam-target-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-target-readiness { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.exam-target-readiness p { margin: 0; }
.exam-target-readiness.ready { border-color: #9bd7b0; background: var(--green); color: var(--green-ink); }
.exam-target-readiness.action-required { border-color: #e7b889; background: var(--amber); color: var(--amber-ink); }
.exam-target-readiness .secondary-button { justify-self: start; }

.exam-page { display: grid; gap: 18px; max-width: 1180px; margin: 0 auto; }
.exam-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 10px 0 4px; }
.exam-head > div { display: grid; gap: 7px; }
.exam-head h1 { margin: 0; font-size: var(--type-title); letter-spacing: -.04em; }
.exam-head p { margin: 0; max-width: 720px; color: var(--muted); font-size: var(--type-section); }
.exam-head a { justify-self: start; padding: 0; }
.exam-announcement:empty { display: none; }
.exam-announcement { margin: 0; color: var(--green-ink); }
.exam-error { margin: 0; padding: 12px 14px; border: 1px solid #efaaa4; border-radius: 6px; background: var(--red); color: var(--red-ink); }
.exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exam-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.exam-card dl { display: grid; gap: 1px; margin: 14px 0 0; background: var(--line); }
.exam-card dl > div { display: grid; grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr); gap: 12px; padding: 9px 10px; background: var(--panel); }
.exam-card dt { color: var(--muted); font-size: var(--type-micro); font-weight: var(--w-semi); text-transform: uppercase; letter-spacing: .06em; }
.exam-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.exam-card dd code { font-size: var(--type-micro); }
.exam-preview,
.exam-progress-card,
.exam-action-card,
.exam-receipt-card,
.exam-gate-card { display: grid; grid-template-columns: minmax(220px, .5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.exam-facts,
.exam-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-facts span { padding: 7px 9px; border-radius: 999px; background: var(--gray); color: var(--gray-ink); font-size: var(--type-secondary); }
.exam-preview-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exam-preview-evidence article { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.exam-preview-evidence h3 { margin: 0 0 7px; font-size: var(--type-secondary); }
.exam-preview-evidence h3:not(:first-child) { margin-top: 13px; }
.exam-preview-evidence p,
.exam-preview-evidence ul { margin: 0; color: var(--muted); font-size: var(--type-secondary); }
.exam-preview-evidence ul { padding-left: 18px; }
.exam-preview-evidence code { overflow-wrap: anywhere; }
.exam-budget-evidence dl { margin-top: 0; }
.exam-budget-evidence dl > div { grid-template-columns: minmax(0, 1fr) auto; padding: 5px 6px; }
.exam-action-card > div:last-child { display: grid; gap: 10px; }
.exam-action-card p,
.exam-receipt-card p,
.exam-transcript-card p,
.exam-gate-card p,
.exam-read-only { margin: 0; color: var(--muted); }
.exam-transcript-table { margin-top: 14px; overflow-x: auto; }
.exam-transcript-table table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: var(--type-secondary); }
.exam-transcript-table th,
.exam-transcript-table td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.exam-transcript-table th { color: var(--muted); font-size: var(--type-micro); text-transform: uppercase; }
.exam-webhook-disclosure { margin-top: 12px !important; }
.gate-history-row-exam { border-left: 3px solid var(--accent); }
.viewer-exam-receipt code { overflow-wrap: anywhere; }

/* one restrained Store time treatment across setup and evidence surfaces. */
.scenario-time-compact { display: inline-flex; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: var(--type-secondary); }
.scenario-time-compact b { color: var(--ink); }
.scenario-time-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin: 14px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.scenario-time-summary.shifted { border-left: 4px solid var(--amber-ink); }
.scenario-time-summary.legacy { border-left: 4px solid var(--muted); }
.scenario-time-summary > div:first-child { display: grid; gap: 4px; }
.scenario-time-summary strong { font-size: var(--type-body); }
.scenario-time-summary p { margin: 0; color: var(--muted); font-size: var(--type-secondary); }
.scenario-time-facts { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: var(--type-micro); white-space: nowrap; }
.scenario-time-disposition { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; }
.scenario-time-disposition p { margin: 0; color: var(--muted); }
.scenario-time-disposition.clock-context-mismatch,
.scenario-time-disposition.inconclusive { border-left: 4px solid var(--amber-ink); }
.managed-runner-grant { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.managed-runner-grant > div:first-child { display: grid; gap: 4px; }
.managed-runner-grant strong { font-size: var(--type-body); }
.managed-runner-grant p { margin: 0; color: var(--muted); font-size: var(--type-secondary); }
.managed-runner-evidence { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.receipt-card.managed-runner-evidence { margin-top: 0; background: var(--surface); }
.managed-runner-evidence-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.managed-runner-evidence-head h2 { margin: 2px 0 0; font-size: var(--type-section); }
.managed-runner-evidence-head p { margin: 5px 0 0; color: var(--muted); font-size: var(--type-secondary); }
.managed-runner-evidence-head > span { color: var(--muted); font-size: var(--type-secondary); white-space: nowrap; }
.managed-runner-evidence-grid { display: grid; gap: 9px; }
.managed-runner-evidence-item { display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr); gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.managed-runner-evidence-item > div { display: grid; align-content: start; justify-items: start; gap: 5px; }
.managed-runner-evidence-item strong code { overflow-wrap: anywhere; }
.managed-runner-evidence-item dl { display: grid; gap: 5px; margin: 0; }
.managed-runner-evidence-item dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 10px; }
.managed-runner-evidence-item dt { color: var(--muted); font-size: var(--type-micro); text-transform: uppercase; letter-spacing: .06em; }
.managed-runner-evidence-item dd { min-width: 0; margin: 0; font-size: var(--type-secondary); overflow-wrap: anywhere; }
.receipt-scenario-time { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 14px; }
.receipt-scenario-time .scenario-time-summary { margin: 0; }
.exam-source-time { display: grid; grid-template-columns: minmax(220px, .5fr) minmax(0, 1fr); gap: 24px; }
.exam-source-time .scenario-time-summary { margin-top: 0; }

@media (width <= 760px) {
  .exam-promotion-card,
  .exam-grid,
  .exam-preview,
  .exam-progress-card,
  .exam-action-card,
  .exam-receipt-card,
  .exam-gate-card { grid-template-columns: 1fr; }
  .exam-source-time,
  .receipt-scenario-time,
  .scenario-time-summary { grid-template-columns: 1fr; }
  .scenario-time-facts { justify-items: start; white-space: normal; }
  .managed-runner-grant { grid-template-columns: 1fr; }
  .managed-runner-evidence-head { align-items: stretch; flex-direction: column; }
  .managed-runner-evidence-head > span { white-space: normal; }
  .managed-runner-evidence-item,
  .managed-runner-evidence-item dl > div { grid-template-columns: 1fr; gap: 3px; }
  .exam-head { align-items: stretch; flex-direction: column; }
  .exam-head .chip { align-self: flex-start; }
  .exam-card { padding: 16px; }
  .exam-card dl > div { grid-template-columns: 1fr; gap: 3px; }
  .exam-preview-evidence { grid-template-columns: 1fr; }
  .exam-actions > * { width: 100%; }
}

/* hierarchy doctrine sweep. Singletons are sections; collections keep cards. */
.home-workspace-dashboard {
  gap: 28px;
}

.home-run-hero h1 {
  margin: 0;
  font-size: var(--type-title);
}

.home-run-instance {
  margin: 7px 0 0;
  color: var(--gray-ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  line-height: 1.35;
}

.home-section,
.home-ci-panel {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 21px 0 0;
}

.home-section .section-inline-head {
  margin-bottom: 12px;
}

.home-section .section-inline-head h2,
.home-ci-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.2;
}

.home-section .section-inline-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.home-usage-summary {
  display: block;
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.35;
}

.home-gate-health {
  margin-top: 8px !important;
}

#viewVstorePlayback .view-head h1 {
  font-size: var(--type-title);
  letter-spacing: -.025em;
}

#viewVstorePlayback .detail-subtitle {
  max-width: 860px;
  color: var(--gray-ink);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

#vstorePlaybackActionPanel[data-run-state-hero] {
  display: block;
  border-color: #d9d7ff;
  background: linear-gradient(135deg, #fff 0%, #fbfaff 70%, #f4f2ff 100%);
  box-shadow: 0 16px 40px rgba(58, 49, 140, .08);
  padding: 0;
}

#vstorePlaybackActionPanel .observe-clock-card {
  gap: 18px;
  padding: 20px;
}

.vstore-playback-read-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f0c8c4;
  background: #fff7f5;
  padding: 14px 20px;
}

.vstore-playback-read-error strong {
  color: var(--danger);
}

.vstore-playback-read-error p {
  max-width: 760px;
  margin: 3px 0 0;
}

.vstore-call-read-error {
  border: 1px solid #f0c8c4;
  background: #fff7f5;
}

#vstorePlaybackActionPanel .observe-clock-head h2 {
  font-size: var(--type-title);
  letter-spacing: -.025em;
}

#vstorePlaybackActionPanel .observe-transport {
  border: 0;
  border-top: 1px solid rgba(104, 93, 232, .2);
  border-bottom: 1px solid rgba(104, 93, 232, .2);
  border-radius: 0;
  background: rgba(255, 255, 255, .68);
  padding: 15px 0;
}

#vstorePlaybackActionPanel .observe-progress-bar {
  height: 10px;
}

#viewVstorePlayback .progress-block,
#viewVstorePlayback .run-main > section.panel:not([data-run-state-hero]) {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#viewVstorePlayback .vstore-playback-context {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

#viewVstorePlayback .progress-block,
#viewVstorePlayback .run-main > section.panel:not([data-run-state-hero]) {
  padding: 18px 0 0;
}

#viewVstorePlayback .metric-row {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

#viewVstorePlayback .metric {
  min-height: 74px;
  padding: 13px 16px;
}

.receipt-document {
  --receipt-inline-gutter: clamp(16px, 2vw, 24px);
  gap: 28px;
}

.receipt-answer-layer {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 14px;
}

.receipt-answer-layer > .receipt-hero,
.receipt-answer-layer > .receipt-impact,
.receipt-answer-layer > .receipt-primary-moment,
.receipt-answer-layer > [data-receipt-section="temporal-clock-context-mismatch"],
.receipt-answer-layer > .receipt-mcp-discovery {
  grid-column: 1 / -1;
}

.receipt-answer-layer .receipt-hero,
.receipt-answer-layer .receipt-card {
  padding-top: 14px;
}

.receipt-answer-layer .receipt-hero {
  gap: 10px;
}

.receipt-primary-identity {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.receipt-reader-question-card {
  align-content: start;
}

.receipt-reader-questions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.receipt-reader-questions div {
  padding-left: 10px;
}

.receipt-reader-questions p,
.receipt-reader-questions ul {
  margin-top: 4px;
  font-size: var(--type-secondary);
  line-height: 1.4;
}

.receipt-answer-layer .receipt-moment-grid {
  grid-template-columns: 1fr;
}

.receipt-answer-layer .receipt-moment-card {
  padding: 11px 12px;
}

.receipt-mcp-discovery {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 10px var(--receipt-inline-gutter) 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-mcp-discovery a {
  color: var(--accent);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.receipt-layer {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.receipt-layer > summary {
  padding-right: var(--receipt-inline-gutter);
  padding-left: var(--receipt-inline-gutter);
}

.receipt-hero,
.receipt-card {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 21px var(--receipt-inline-gutter) 0;
}

.receipt-hero > *,
.receipt-card > * {
  min-width: 0;
}

.receipt-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.receipt-verdict[data-receipt-verdict-hero] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: start;
  max-width: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  gap: 8px 12px;
  padding: 0 0 18px;
}

.receipt-verdict-role {
  grid-column: 1 / -1;
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.receipt-verdict[data-receipt-verdict-hero] strong {
  min-width: 0;
  font-size: var(--type-title);
  letter-spacing: -.025em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.receipt-verdict[data-receipt-verdict-hero] em {
  align-self: center;
  justify-self: end;
}

.receipt-actions > * {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.receipt-verdict[data-receipt-verdict-hero] .receipt-gate-note {
  grid-column: 1 / -1;
}

.receipt-card h2 {
  font-size: var(--type-section);
}

.upgrade-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.gate-health-banner[data-gate-verdict-hero] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0;
}

.gate-health-banner[data-gate-verdict-hero].ready,
.gate-health-banner[data-gate-verdict-hero].needs-review,
.gate-health-banner[data-gate-verdict-hero].blocked,
.gate-health-banner[data-gate-verdict-hero].waiting,
.gate-health-banner[data-gate-verdict-hero].sample {
  background: transparent;
}

.gate-health-banner[data-gate-verdict-hero] .gate-health-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 18px;
  height: 18px;
}

.gate-health-role {
  color: var(--gray-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gate-health-banner[data-gate-verdict-hero] strong {
  font-size: var(--type-title);
  letter-spacing: -.025em;
  line-height: 1.12;
}

.gate-hero {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 20px;
}

.gate-copy h1 {
  font-size: var(--type-title);
}

.gate-hero .gate-verdict {
  border: 0;
  border-left: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 10px 16px;
}

@media (max-width: 1024px) {
  .receipt-verdict[data-receipt-verdict-hero] {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .receipt-verdict[data-receipt-verdict-hero] em {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .home-workspace-dashboard,
  .receipt-document {
    gap: 24px;
  }

  #viewVstorePlayback .metric-row {
    grid-template-columns: repeat(4, minmax(116px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  #viewVstorePlayback .metric {
    min-height: 72px;
  }

  .receipt-verdict[data-receipt-verdict-hero] {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .receipt-verdict[data-receipt-verdict-hero] em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .receipt-answer-layer {
    grid-template-columns: 1fr;
  }

  .receipt-answer-layer > * {
    grid-column: 1;
  }

  .receipt-reader-questions {
    grid-template-columns: 1fr;
  }

  .gate-health-banner[data-gate-verdict-hero] strong {
    font-size: var(--type-title);
  }
}

@media (max-width: 360px) {
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a {
    min-width: 0;
  }
}

/* one proof boundary, one evidence trail, and a persistent call inspector. */

/* the Store clock is a shared data instrument, with absolute position first. */
.store-clock-projection {
  display: grid;
  min-width: 0;
  gap: 4px;
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
}

.store-clock-projection .eyebrow {
  margin: 0;
}

.store-clock-position {
  color: var(--ink);
  font-size: var(--type-section);
  line-height: 1.25;
}

#homePage .store-clock-position {
  font-size: var(--type-display);
}

.store-clock-line {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.35;
}

.store-clock-action {
  justify-self: start;
  margin-top: 2px;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
}

.store-clock-full {
  margin: 12px 0;
  border-radius: 8px;
}

.store-clock-compact {
  align-self: stretch;
  border-radius: 7px;
}

.store-clock-at-rest {
  align-self: stretch;
  border-radius: 7px;
}

.store-clock-standard {
  margin-top: 8px;
  max-width: 760px;
  border-radius: 7px;
}

.detail-subtitle {
  display: grid;
  gap: 4px;
}

.detail-subtitle .receipt-identity-run {
  display: block;
}

.home-run-instruments > .store-clock-compact {
  grid-column: 1 / -1;
}
.receipt-scope-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.receipt-scope-line > div {
  min-width: 0;
  padding: 11px 12px;
}

.receipt-scope-line > div + div {
  border-left: 1px solid var(--line);
}

.receipt-scope-line dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.receipt-scope-line dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: var(--type-secondary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.receipt-glossary {
  position: relative;
  display: inline;
}

.receipt-glossary-trigger {
  display: inline;
  width: auto;
  min-width: 0;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: inherit;
}

.receipt-glossary-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  width: min(300px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #fff;
  padding: 9px 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-reg);
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.receipt-answer-layer .receipt-agent-status {
  justify-self: start;
}

.receipt-layer[open] {
  overflow: visible;
}

.receipt-layer[open] > [data-receipt-layer-summary] {
  position: sticky;
  z-index: 9;
  top: 58px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(10px);
}

.receipt-layer .receipt-accordion-body {
  border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
  border-top: 0;
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--panel));
}

.receipt-evidence-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.receipt-public-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.receipt-release-diagnostics {
  display: grid;
  gap: 12px;
}

.receipt-release-diagnostics section h3 {
  margin: 0;
  font-size: var(--type-body);
}

.receipt-release-diagnostics ul,
.receipt-limits ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

/* the next technical proof reads as one more limit, not as a call to action. */
.receipt-limits .receipt-next-proof-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.receipt-limits .receipt-next-proof-line strong {
  color: var(--ink);
}

.receipt-technical-values {
  margin-top: 12px;
}

.receipt-mcp-discovery {
  padding: 16px 24px 24px;
}

.receipt-call-inspector-body {
  display: grid;
  min-height: 0;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.receipt-call-inspector-head {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--panel);
}

.receipt-call-inspector-head .icon-button {
  width: auto;
  min-width: 0;
  height: auto;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: var(--type-micro);
}

@media (min-width: 981px) {
  .receipt-developer-layer,
  .receipt-developer-layer > .receipt-accordion-body,
  .receipt-developer-layer [data-receipt-section="forensic-filters"],
  .receipt-call-workspace {
    overflow: visible;
  }

  .receipt-evidence-layer[open] > [data-receipt-layer-summary],
  .receipt-developer-layer[open] > [data-receipt-layer-summary] {
    z-index: 12;
    top: 0;
    background: var(--panel);
    backdrop-filter: none;
  }

  .receipt-call-inspector {
    position: sticky;
    top: 54px;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 70px);
    padding: 0;
    overflow: hidden;
  }

  .receipt-call-workspace.has-inspector {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .receipt-call-inspector-head {
    padding: 14px 14px 10px;
  }

  .receipt-call-inspector-body {
    padding: 0 14px 14px;
  }
}

@media (max-width: 980px) {
  .receipt-scope-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-scope-line > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .receipt-scope-line > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .receipt-call-inspector {
    position: fixed;
    z-index: 80;
    inset: 8vh max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: none;
    border-color: var(--line-strong);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
  }

  .receipt-call-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-call-inspector::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    background: rgba(21, 27, 38, .36);
  }

  .receipt-call-inspector-head {
    padding: 14px 16px 10px;
  }

  .receipt-call-inspector-body {
    padding: 0 16px 16px;
  }
}

@media (max-width: 520px) {
  .receipt-scope-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-scope-line > div + div,
  .receipt-scope-line > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .receipt-call-inspector {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .receipt-mcp-discovery {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .receipt-call-inspector,
  .receipt-call-row {
    scroll-behavior: auto;
    transition: none;
  }
}

/* compact receipt identity and a readable technical-verdict hierarchy. */
/* one heading on the integrated run route. The masthead in #reportRunDetailChrome owns
   the title, run-id chip and status; this shell header was the second one the founder read. The
   standalone receipt route keeps it -- the class only lands via renderIntegratedRunChrome. */
#viewReportDetail.integrated-store-run-detail .report-detail-head {
  display: none;
}

#viewReportDetail .report-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 18px;
}

#viewReportDetail .report-detail-head > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  column-gap: 5px;
}

#viewReportDetail .report-detail-head #backToReportsButton {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-med);
  line-height: 1.45;
}

#viewReportDetail .report-detail-head .eyebrow {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-med);
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

#viewReportDetail .report-detail-head .eyebrow::before {
  content: "/ ";
}

#viewReportDetail .report-detail-head h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  margin-top: 5px;
  font-size: var(--type-title);
  font-weight: var(--w-bold);
  letter-spacing: -.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#viewReportDetail .report-detail-head .detail-subtitle {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

#viewReportDetail .report-detail-head .store-clock-standard {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

#viewReportDetail .report-detail-head .receipt-identity-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

#viewReportDetail .report-detail-head .receipt-identity-run {
  font-family: var(--mono);
  font-size: var(--type-body);
}

#viewReportDetail .report-detail-head > .status-chip {
  align-self: start;
  margin-top: 31px;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > .receipt-verdict-role {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: start;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > em {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  min-width: 0;
  font-size: var(--type-body);
  line-height: 1.45;
  text-align: right;
  white-space: normal;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > i {
  grid-column: 1;
  grid-row: 2;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > strong {
  grid-column: 2 / -1;
  grid-row: 2;
  line-height: 1.3;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > .receipt-verdict-supporting {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: 920px;
  font-size: var(--type-section);
  line-height: 1.5;
}

.receipt-document .receipt-verdict[data-receipt-verdict-hero] > .receipt-gate-note {
  grid-column: 1 / -1;
}

.receipt-default-verdict {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: var(--type-section);
  line-height: 1.5;
}

.receipt-default-verdict > span,
.receipt-default-verdict > strong,
.receipt-default-verdict > p { margin: 0; }

.receipt-default-verdict > strong { color: var(--ink); }

.receipt-default-verdict > p { min-width: 0; }

@media (max-width: 560px) {
  .receipt-default-verdict {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

.receipt-catalog-disclosure {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.receipt-primary-moment.receipt-rejection-meguro-error {
  border-color: var(--status-error-border);
  background: var(--status-error-bg);
}

.receipt-primary-moment.receipt-rejection-meguro-error h2,
.receipt-primary-moment.receipt-rejection-meguro-error p {
  color: var(--status-error-ink);
}

@media (max-width: 1199px) and (min-width: 768px) {
  #viewReportDetail .report-detail-head .receipt-identity-recorded {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  #viewReportDetail .report-detail-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  #viewReportDetail .report-detail-head .detail-subtitle {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  #viewReportDetail .report-detail-head .receipt-identity-recorded {
    grid-column: auto;
  }

  #viewReportDetail .report-detail-head > .status-chip {
    margin-top: 30px;
  }

  .receipt-document .receipt-verdict[data-receipt-verdict-hero] {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .receipt-document .receipt-verdict[data-receipt-verdict-hero] > em {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

/* contextual Help is a bounded, non-modal field guide for the active page. */
.contextual-help-panel {
  position: fixed;
  z-index: 96;
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  width: min(390px, calc(100vw - 36px));
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 20px 54px rgba(31, 35, 56, 0.2);
  color: var(--ink);
}

.contextual-help-panel:focus-visible,
.contextual-help-panel :is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contextual-help-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--soft);
  padding: 18px 18px 16px;
}

.contextual-help-head > div {
  min-width: 0;
}

.contextual-help-head .eyebrow {
  color: var(--muted);
}

.contextual-help-head h2 {
  margin-top: 4px;
  font-size: var(--type-section);
  letter-spacing: -.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contextual-help-close {
  flex: none;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--gray-ink);
  padding: 0 10px;
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.contextual-help-close:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
}

.contextual-help-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.contextual-help-region {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 16px 18px;
}

.contextual-help-region:first-child {
  border-top: 0;
}

.contextual-help-region h3 {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-semi);
  letter-spacing: .075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.contextual-help-region > strong {
  font-size: var(--type-section);
  line-height: 1.35;
}

.contextual-help-region p,
.contextual-help-region li {
  color: var(--gray-ink);
  font-size: var(--type-body);
  line-height: 1.55;
}

.contextual-help-region ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.contextual-help-next,
.contextual-help-action {
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 10px 11px;
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  line-height: 1.45;
  text-decoration: none;
}

.contextual-help-action:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contextual-help-visible-error {
  border: 1px solid var(--status-error-border);
  border-radius: 6px;
  background: var(--status-error-bg);
  color: var(--status-error-ink) !important;
  padding: 9px 10px;
  overflow-wrap: anywhere;
}

.contextual-help-region > a:not(.contextual-help-action) {
  justify-self: start;
  color: var(--accent-dark);
  font-size: var(--type-body);
  font-weight: var(--w-semi);
  line-height: 1.45;
  text-underline-offset: 3px;
}

.contextual-help-contact {
  background: var(--soft);
}

/* the receipt detail reads from one evidence spine, not a field-card inventory. */
#viewReportDetail .receipt-document {
  gap: 22px;
}

#viewReportDetail .receipt-answer-layer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

#viewReportDetail .receipt-answer-layer > * {
  grid-column: 1;
}

#viewReportDetail .receipt-answer-layer > .receipt-scope-boundary {
  margin: 0;
  padding: 0 var(--receipt-inline-gutter);
}

#viewReportDetail > .report-detail-head {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--panel);
  padding: 14px;
}

#viewReportDetail {
  gap: 0;
}

#viewReportDetail > .report-detail-head + .report-detail-page {
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

#viewReportDetail .receipt-spine-footprint,
#viewReportDetail .receipt-spine-money {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding: 17px var(--receipt-inline-gutter) 0;
}

#viewReportDetail .receipt-spine-facts,
#viewReportDetail .receipt-spine-record {
  min-width: 0;
}

#viewReportDetail .receipt-spine-facts .layout-heading-owned-group,
#viewReportDetail .receipt-spine-record .layout-heading-owned-group {
  padding: 17px var(--receipt-inline-gutter) 0;
}

/* one header line: the section, how many calls it covers, and the way into them. */
#viewReportDetail .receipt-spine-record .layout-heading-owned-group > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

#viewReportDetail .receipt-record-header-separator,
#viewReportDetail .receipt-record-header-count {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

#viewReportDetail .receipt-record-header-explorer {
  font-size: var(--type-body);
  line-height: 1.5;
}

#viewReportDetail .receipt-spine-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
}

#viewReportDetail .receipt-spine-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-section);
}

#viewReportDetail .receipt-spine-heading p,
#viewReportDetail .receipt-spine-footprint p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

#viewReportDetail .receipt-spine-facts .layout-fact-table {
  max-width: 880px;
}

#viewReportDetail .receipt-spine-facts .layout-fact-table th {
  width: min(32%, 205px);
}

#viewReportDetail .receipt-facts-glossary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

#viewReportDetail .receipt-scope-boundary {
  max-width: 780px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

#viewReportDetail .receipt-spine-footprint {
  display: grid;
  grid-template-columns: minmax(120px, .32fr) minmax(0, .68fr);
  column-gap: 18px;
  align-items: baseline;
}

#viewReportDetail .receipt-spine-footprint > span {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

#viewReportDetail .receipt-spine-footprint > strong {
  color: var(--ink);
  font-size: var(--type-section);
}

#viewReportDetail .receipt-spine-footprint > p {
  grid-column: 2;
}

#viewReportDetail .receipt-spine-money {
  display: grid;
  gap: 10px;
}

#viewReportDetail .receipt-spine-net-contribution {
  display: grid;
  gap: 2px;
}

#viewReportDetail .receipt-spine-net-contribution span {
  color: var(--muted);
  font-size: var(--type-secondary);
}

#viewReportDetail .receipt-spine-net-contribution strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: var(--w-semi);
  letter-spacing: -.02em;
  line-height: 1;
}

#viewReportDetail .receipt-record-timeline {
  display: grid;
  max-width: 960px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#viewReportDetail .receipt-record-timeline li {
  display: block;
}

#viewReportDetail .receipt-evidence-layer.layout-payload-well {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}

#viewReportDetail .receipt-evidence-layer.layout-payload-well > .receipt-accordion-body {
  background: var(--panel);
}

@media (max-width: 520px) {
  #viewReportDetail .receipt-spine-footprint {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #viewReportDetail .receipt-spine-footprint > p {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .contextual-help-panel {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    border-radius: 8px;
  }

  .contextual-help-head,
  .contextual-help-region {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* late route overrides: preserve the document treatment after legacy route rules. */
.coverage-map > .layout-heading-owned-group { padding-top: 0; border-top: 0; }
.coverage-map > .layout-heading-owned-group > header { gap: 4px; }
.coverage-map > .layout-heading-owned-group > header + .layout-heading-owned-content { gap: 10px; }

/* approved Stores list, template chooser and template-detail drawer. */
#viewFleet[data-store-page-mode="chooser"] > [data-platform-native="stores"] > .view-head {
  display: none;
}

.approved-stores-page,
.approved-template-chooser {
  display: grid;
  gap: 24px;
  width: min(100%, 1120px);
}

.approved-store-capacity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 18px 20px;
}

.approved-store-capacity > div {
  display: grid;
  gap: 4px;
}

.approved-store-capacity strong {
  color: var(--text);
  font-size: var(--type-body);
}
.approved-store-capacity p { grid-column: 1 / -1; margin: 0; color: var(--red-ink); }

.approved-store-list-section {
  display: grid;
  gap: 12px;
}

.approved-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.approved-section-heading h2,
.approved-section-heading p {
  margin: 0;
}

.approved-section-heading h2 { color: var(--text); font-size: var(--type-section); }
.approved-section-heading p { margin-top: 4px; color: var(--muted); font-size: var(--type-body); }

.approved-store-row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(240px, .7fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  border-top: 1px solid var(--line);
  padding: 16px 4px;
  background: #fff;
}

.approved-store-row:last-child { border-bottom: 1px solid var(--line); }
.approved-store-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.approved-store-row-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.approved-store-row-main > div { display: grid; min-width: 0; gap: 4px; }
.approved-store-row-main strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.approved-store-row-main span { color: var(--muted); font-size: var(--type-secondary); }
.approved-store-promise { margin: 0; color: var(--muted); font-size: var(--type-secondary); line-height: 1.45; }

.approved-store-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark) !important;
  font-weight: var(--w-bold);
}

.approved-store-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 16px;
  margin: 0;
}

.approved-store-facts div { display: grid; gap: 3px; }
.approved-store-facts dt { color: var(--muted); font-size: var(--type-micro); font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; }
.approved-store-facts dd { margin: 0; color: var(--text); font-size: var(--type-secondary); }
.approved-store-lifecycle,
.approved-store-call-outcome { min-width: 0; align-content: start; justify-items: start; }
.approved-store-lifecycle .chip { max-width: 100%; }
.approved-store-clock { min-width: 0; }
.approved-store-clock .store-clock-projection { margin: 0; }
.approved-store-latest-run { color: var(--muted); font-size: var(--type-micro); font-weight: var(--w-med); }
.approved-store-call-outcome { grid-column: 1 / -1; }
.approved-store-call-outcome .coverage-row-faced { align-content: start; }

.approved-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.approved-store-actions .store-delete-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.approved-dev-stores {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.approved-dev-stores-head,
.approved-dev-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.approved-dev-stores-head h2,
.approved-dev-stores-head p { margin: 0; }
.approved-dev-stores-head h2 { color: var(--text); font-size: var(--type-body); }
.approved-dev-stores-head p { margin-top: 4px; color: var(--muted); font-size: var(--type-secondary); }
.approved-dev-store-list { display: grid; border-top: 1px solid var(--line); }
.approved-dev-store-row { padding-top: 12px; }
.approved-dev-store-row > div:first-child { display: grid; gap: 3px; }
.approved-dev-store-row span { color: var(--muted); font-size: var(--type-secondary); }

.approved-template-chooser {
  padding-bottom: 96px;
}

.approved-back-link {
  width: fit-content;
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.approved-template-chooser > header {
  display: grid;
  gap: 6px;
  max-width: 700px;
}

.approved-template-chooser > header h1,
.approved-template-chooser > header p { margin: 0; }
.approved-template-chooser > header h1 { color: var(--text); font-size: 24px; line-height: 35px; }
.approved-template-chooser > header p { color: var(--muted); font-size: var(--type-body); line-height: 1.5; }

.approved-template-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.approved-template-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.approved-starter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.approved-starter-template,
.approved-starter-allowance {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 24px;
}

.approved-starter-template h2,
.approved-starter-template p,
.approved-starter-allowance p { margin: 0; }
.approved-starter-template h2 { color: var(--text); font-size: 24px; line-height: 1.3; }
.approved-starter-purpose { color: var(--muted); line-height: 1.5; }
.approved-starter-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.approved-starter-facts span { color: var(--muted); font-size: var(--type-secondary); }
.approved-starter-capability,
.approved-starter-note { display: grid; gap: 8px; }
.approved-starter-capability p,
.approved-starter-note p { line-height: 1.5; }
.approved-starter-note { border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 14px; }
.approved-starter-allowance { position: sticky; top: 24px; }
.approved-starter-allowance > strong { color: var(--text); font-size: 28px; line-height: 1.2; }
.approved-starter-allowance > p,
.approved-starter-allowance > small { color: var(--muted); line-height: 1.5; }

.approved-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
}

.approved-template-results,
.approved-template-results .coverage-card-grid { min-width: 0; }

.approved-template-results .coverage-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.approved-template-results .coverage-card {
  min-height: 158px;
  border-radius: 10px;
  padding: 18px;
  box-shadow: none;
}

.approved-template-results .coverage-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.approved-template-summary {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
}

.approved-template-summary strong { color: var(--text); font-size: var(--type-title); }
.approved-template-summary p { margin: 0; color: var(--muted); line-height: 1.45; }
.approved-template-summary .coverage-safety-line { color: var(--accent-dark); font-size: var(--type-secondary); font-weight: var(--w-semi); }

.approved-template-create-bar {
  position: sticky;
  z-index: 12;
  bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  border: 1px solid rgba(105, 83, 238, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 45px rgba(30, 25, 70, .14);
  padding: 14px 16px;
  backdrop-filter: blur(14px);
}

.approved-template-create-bar > div { display: grid; gap: 3px; }
.approved-template-create-bar strong { color: var(--text); }
.approved-template-create-bar span { color: var(--muted); font-size: var(--type-secondary); }
.approved-template-create-bar p { grid-column: 1 / -1; }

.coverage-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.coverage-detail-layer > .drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 55, .28);
}

.coverage-detail-popup {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(560px, calc(100vw - 32px));
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, .16);
  padding: 0;
}

.coverage-detail-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.coverage-detail-titlebar h2 { margin: 0; color: var(--text); font-size: var(--type-title); }
.coverage-detail-body { display: grid; gap: 24px; overflow-y: auto; padding: 26px 24px; }
.coverage-detail-body > h3,
.coverage-detail-body > p,
.coverage-detail-body section h4,
.coverage-detail-body section p { margin: 0; }
.coverage-detail-body > h3 { color: var(--text); font-size: 25px; line-height: 1.2; }
.coverage-detail-body > p,
.coverage-detail-body section p { color: var(--muted); line-height: 1.5; }
.coverage-detail-body section { display: grid; gap: 7px; }
.coverage-detail-body section h4 { color: var(--text); font-size: var(--type-body); }
.coverage-detail-highlight { border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 16px; }
.coverage-detail-actions { padding: 16px 24px; border-top: 1px solid var(--line); }
.coverage-detail-actions button { width: 100%; }

@media (max-width: 720px) {
  #viewFleet > [data-platform-native="stores"] > .view-head {
    align-items: stretch;
  }

  #viewFleet > [data-platform-native="stores"] > .view-head,
  #viewFleet > [data-platform-native="stores"] > .view-head .record-head-side,
  #viewFleet > [data-platform-native="stores"] > .view-head .store-head-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  #openVstoreDrawerButton { width: 100%; }

  .approved-stores-page,
  .approved-template-chooser { gap: 18px; width: 100%; }

  .approved-store-capacity { padding: 16px 12px; }

  .approved-store-row {
    grid-template-columns: 1fr;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
  }

  .approved-store-row:last-child { border-bottom: 1px solid var(--line); }
  .approved-store-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approved-store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approved-store-actions > a,
  .approved-store-actions > button { width: 100%; }
  .approved-store-actions .store-delete-action { grid-column: 1 / -1; justify-content: flex-end; }

  .approved-dev-stores-head,
  .approved-dev-store-row { align-items: stretch; flex-direction: column; }
  .approved-dev-stores-head > button,
  .approved-dev-store-row .store-actions { width: 100%; }

  .coverage-catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px 5px;
    scrollbar-width: none;
  }

  .coverage-catalog-filters button { flex: 0 0 auto; }

  .approved-template-layout { grid-template-columns: 1fr; }
  .approved-template-results .coverage-card-grid { grid-template-columns: 1fr; }
  .approved-template-summary { position: static; }
  .approved-starter-layout { grid-template-columns: 1fr; }
  .approved-starter-template { padding: 24px; }
  .approved-starter-facts { align-items: start; flex-direction: column; }

  .approved-starter-allowance {
    position: fixed;
    z-index: 12;
    inset: auto 0 0 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 16px;
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .approved-starter-allowance .eyebrow,
  .approved-starter-allowance small { display: none; }
  .approved-starter-allowance > strong { font-size: var(--type-body); }
  .approved-starter-allowance > p { font-size: var(--type-secondary); }
  .approved-starter-allowance > button { grid-column: 2; grid-row: 1 / span 2; }

  .approved-template-create-bar {
    position: fixed;
    inset: auto 0 0 0;
    grid-template-columns: 1fr;
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .approved-template-create-bar button { width: 100%; }

  .coverage-detail-popup {
    width: 100%;
    border-left: 0;
  }

  .coverage-detail-titlebar { padding: 18px 16px; }
  .coverage-detail-body { padding: 18px 16px; }
  .coverage-detail-actions { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
}
.coverage-practice-stores .coverage-row {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}
.coverage-practice-stores .coverage-row:last-child { border-bottom: 1px solid var(--line); }
.coverage-practice-stores .coverage-row.active { box-shadow: none; }
.coverage-practice-stores .coverage-row:hover,
.coverage-practice-stores .coverage-row:focus-visible { border-color: var(--accent); box-shadow: none; }
.coverage-row-band { display: grid; min-width: 0; gap: 12px; }
.coverage-row-identity { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.coverage-row-evidence {
  grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr);
  align-items: start;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.coverage-row-evidence > div:first-child,
.coverage-row-identity > * { min-width: 0; }
.coverage-row-evidence .coverage-row-faced { align-self: start; }
.coverage-row-evidence .coverage-row-time .store-clock-projection { margin: 7px 0 0; }
.store-baseline-facts { align-self: start; min-width: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.store-baseline-facts .layout-fact-table th { width: min(38%, 150px); }
.store-generation .layout-heading-owned-group,
.vstore-activity-section .layout-heading-owned-group,
.vstore-manage-section .layout-heading-owned-group { border-top: 1px solid var(--line); }
.store-generation-grid { border: 0; }
.store-generation-fact { min-height: 0; border: 0; border-top: 1px solid var(--line); padding: 9px 12px; }
.vstore-activity-row { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0; }
.vstore-activity-list { gap: 0; }
.home-workspace-dashboard .home-list-row {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
}
.home-workspace-dashboard .home-list-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 560px) {
  .coverage-row-identity,
  .coverage-row-evidence { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .coverage-row-evidence .coverage-row-faced,
  .coverage-row-identity .store-actions { justify-items: start; justify-content: flex-start; }
}

/* approved Home composition and responsive Usage detail. */
.approved-home {
  display: grid;
  width: min(100%, 1168px);
  gap: 32px;
  margin-top: 24px;
  margin-left: 6px;
}

.approved-home-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.approved-home-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.home-mobile-search {
  position: relative;
  display: none;
}

.home-mobile-search input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 14px 0 39px;
}

.home-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.home-dashboard {
  gap: 20px;
}

.home-overview-grid .home-run-hero,
.home-allowance-card,
.home-first-use-primary,
.home-first-use-plan {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(31, 35, 48, .045);
}

.home-overview-grid .home-run-hero {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(31, 35, 48, .045);
}

.home-overview-grid .home-run-hero > header {
  padding: 24px 24px 18px;
}

.home-overview-grid .home-run-hero > header > div {
  min-width: 0;
}

.home-overview-grid .home-run-hero .home-status {
  flex: 0 0 auto;
}

.home-overview-grid .home-run-hero h1 {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-overview-grid .home-run-instance {
  margin-top: 9px;
  color: var(--ink);
  font-size: 20px;
}

.home-overview-grid .home-run-template {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-overview-grid .home-status.large {
  gap: 0;
  border: 0;
  border-radius: 7px;
  background: var(--accent-soft);
  padding: 5px 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: var(--w-reg);
}

.home-overview-grid .home-status.large i {
  display: none;
}

.home-overview-grid .home-status.large.red {
  background: var(--red);
  color: var(--red-ink);
}

.home-overview-grid .home-status.large.gray {
  background: var(--soft);
  color: var(--gray-ink);
}

.home-overview-grid .home-run-instruments {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 24px;
  background: transparent;
}

.home-run-call-facts,
.home-run-window {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.home-run-call-facts {
  padding: 0 0 14px;
}

.home-run-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.home-run-window {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-run-window span {
  color: var(--ink);
  font-weight: var(--w-reg);
}

.home-run-timing {
  display: grid;
  gap: 5px;
}

.home-run-ended {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.home-run-bottom .home-dashboard-actions {
  flex: 0 0 auto;
  grid-column: auto;
  flex-wrap: nowrap;
}

.home-allowance-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.home-allowance-card progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  appearance: none;
  background: var(--accent-soft);
}

.home-allowance-card progress::-webkit-progress-bar { background: var(--accent-soft); }
.home-allowance-card progress::-webkit-progress-value { background: var(--accent); }
.home-allowance-card progress::-moz-progress-bar { background: var(--accent); }

.home-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-card-heading h2 {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.2;
}

.home-plan-tier {
  color: var(--accent-dark);
  font-size: var(--type-secondary);
}

.home-card-heading .link-button,
.home-first-use-plan .link-button {
  min-height: 0;
  padding: 0;
  white-space: nowrap;
}

.home-usage-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-usage-consumed,
.home-usage-scope {
  margin: 0 !important;
  color: var(--muted);
  font-size: var(--type-secondary) !important;
}

.home-usage-facts {
  margin: 4px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.home-usage-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.home-usage-facts dt {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-usage-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: var(--w-semi);
}

.home-usage-summary span {
  color: var(--ink);
  font-size: 26px;
  font-weight: var(--w-bold);
  letter-spacing: -.04em;
}

.home-usage-details {
  justify-self: start;
  min-height: 0;
  padding: 0;
  color: var(--accent-dark);
}

.home-approved-section {
  padding-top: 0;
  border-top: 0;
}

.home-approved-section + .home-approved-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.home-approved-section .section-inline-head {
  margin-bottom: 14px;
}

.home-approved-section .home-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.home-approved-section .home-list-row {
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.home-approved-section .home-list-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-first-use-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 24px;
}

.home-first-use-primary,
.home-first-use-plan {
  padding: 32px;
}

.home-first-use-primary h2 {
  max-width: 650px;
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.home-first-use-primary > p,
.home-first-use-template p,
.home-first-use-plan p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-first-use-template {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  border-radius: 8px;
  background: var(--soft);
  padding: 20px;
}

.home-first-use-action {
  margin-top: 24px;
}

.home-first-use-template strong {
  color: var(--ink);
  font-size: var(--type-body);
}

.home-first-use-plan {
  display: grid;
  align-content: start;
  gap: 12px;
}

.home-first-use-plan > strong {
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.home-first-use-plan-allowance {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.home-first-use-plan-allowance strong,
.home-first-use-plan-allowance span {
  font-size: var(--type-secondary);
}

.home-first-use-plan > a {
  color: var(--accent-dark);
  font-size: var(--type-secondary);
  font-weight: var(--w-semi);
}

.home-first-use-journey {
  display: grid;
  gap: 18px;
  border-top: 0;
  padding-top: 0;
}

.home-first-use-journey h2 {
  margin: 0;
  font-size: 22px;
}

.home-first-use-journey ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-first-use-journey li {
  display: block;
  padding: 0 0 20px;
}

.home-first-use-journey li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-dark);
  font-weight: var(--w-bold);
}

.home-first-use-journey li p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-first-use-journey li strong {
  display: block;
  margin-top: 12px;
}

.home-first-use-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.home-first-use-footer a {
  color: var(--accent-dark);
  font-weight: var(--w-semi);
  text-decoration: none;
}

.usage-details-layer {
  z-index: 82;
}

.usage-details-drawer {
  width: min(480px, 100vw);
  height: 100dvh;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: var(--panel);
}

.usage-details-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.usage-details-head h2 {
  margin: 0;
  font-size: 20px;
}

.usage-details-close {
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
}

.usage-details-close-narrow {
  display: none;
}

.usage-details-content {
  height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
}

.usage-details-document {
  display: grid;
  gap: 28px;
}

.trial-details-layer {
  z-index: 82;
}

.trial-details-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(414px, 100vw);
  height: 100dvh;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: var(--panel);
}

.trial-details-head {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.trial-details-head h2 {
  margin: 0;
  font-size: 18px;
}

.trial-details-close {
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
}

.trial-details-content {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  overflow-wrap: anywhere;
}

.trial-details-heading {
  margin: 0;
  font-size: 24px;
}

.trial-details-lede,
.trial-details-state p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.6;
}

.trial-details-state {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.6;
}

.trial-details-state strong {
  color: var(--ink);
}

.trial-details-state button {
  justify-self: start;
}

.trial-details-grant {
  display: grid;
  gap: 8px;
  border: 1px solid var(--status-lifecycle-border);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 16px;
}

.trial-details-grant p {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.5;
}

.trial-details-section-title {
  margin: 8px 0 0;
  font-size: 16px;
}

.trial-details-rows {
  display: grid;
  margin: 0;
}

.trial-details-row {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.trial-details-row dt {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: var(--w-med);
}

.trial-details-row dd {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.trial-details-plans {
  justify-self: start;
  color: var(--accent-dark);
  font-weight: var(--w-semi);
}

.trial-details-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
}

.tier-usage-document {
  display: grid;
  gap: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.usage-plan-heading {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.usage-plan-heading > span {
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: var(--w-med);
}

.usage-plan-state {
  color: var(--accent-dark);
  font-size: var(--type-secondary);
}

.usage-allowance-inset {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: var(--soft);
  padding: 16px;
}

.usage-allowance-label {
  color: var(--ink);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}

.tier-usage-document > header,
.usage-account-activity > header,
.usage-workspace-document > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tier-usage-document h3,
.usage-account-activity h3,
.usage-workspace-document h4 {
  margin: 0;
  font-size: 18px;
}

.usage-plan-status {
  border-radius: 999px;
  background: var(--green);
  padding: 5px 9px;
  color: var(--green-ink);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
}

.tier-remaining-display strong {
  font-size: 32px;
}

.tier-remaining-display {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 8px;
}

.tier-remaining-display small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.usage-plan-facts,
.usage-workspace-document dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.usage-plan-facts {
  grid-template-columns: minmax(0, 1fr);
}

.usage-plan-facts > div,
.usage-plan-facts > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-left: 0;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.usage-plan-facts > div:first-child {
  border-top: 0;
}

.usage-plan-facts dd {
  margin-top: 0;
}

.usage-plan-facts > div,
.usage-workspace-document dl > div {
  min-width: 0;
  padding: 14px 10px;
  border-left: 1px solid var(--line);
}

.usage-plan-facts > div:first-child,
.usage-workspace-document dl > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.usage-plan-facts dt,
.usage-workspace-document dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.usage-plan-facts dd,
.usage-workspace-document dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: var(--w-semi);
}

.usage-plan-facts > div,
.usage-plan-facts > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-left: 0;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.usage-plan-facts > div:first-child {
  border-top: 0;
}

.usage-plan-facts dd {
  margin-top: 0;
}

.usage-meter-rule {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.usage-account-activity {
  gap: 16px;
  border-top: 0;
  padding-top: 0;
}

.usage-account-activity > strong {
  font-size: 34px;
  letter-spacing: -.04em;
}

.usage-activity-total-label {
  color: var(--muted);
  font-size: var(--type-secondary);
}

.usage-activity-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.usage-activity-total strong {
  font-size: 34px;
  letter-spacing: -.04em;
}

.usage-period-control {
  display: grid;
  width: min(220px, 100%);
  gap: 6px;
}

.usage-period-control span {
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.usage-account-activity > p:not(.coverage-note) {
  margin: -12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.usage-account-activity .coverage-note {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--type-secondary);
}

.usage-workspace-list {
  gap: 12px;
}

.usage-workspace-document {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
}

.usage-workspace-document > header > strong {
  font-size: var(--type-secondary);
}

.usage-workspace-document > p,
.usage-workspace-document > small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.usage-workspace-document dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .home-overview-grid,
  .home-first-use-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-first-use-journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .home-first-use-journey ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  #firstRunGuideMount {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .approved-home {
    gap: 24px;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
  }

  body[data-console-route="home"] .command {
    min-height: 42px;
    margin: -16px -16px 18px;
    background: var(--panel);
    padding: 0 16px;
  }

  body[data-console-route="home"] .command:has(#trialStatusShell:not([hidden])) {
    margin-top: 0;
  }

  body[data-console-route="home"] .auth-field {
    min-height: 32px;
  }

  .home-dashboard {
    gap: 20px;
  }

  .home-first-use {
    gap: 30px;
  }

  .home-dashboard .approved-home-heading > p {
    display: none;
  }

  .first-run-guide.expanded {
    padding: 24px;
  }

  .first-run-guide:not(.complete) {
    min-height: 363px;
  }

  .approved-home-heading h1 {
    font-size: 24px;
  }

  body[data-console-route="home"] .command .search-field {
    display: none;
  }

  .home-first-use .approved-home-heading .home-mobile-search {
    display: none;
  }

  .approved-home-heading .home-mobile-search {
    display: block;
    margin-top: 20px;
  }

  .home-overview-grid {
    gap: 16px;
  }

  .home-overview-grid .home-run-hero > header,
  .home-overview-grid .home-run-instruments,
  .home-overview-grid .home-run-hero > .home-dashboard-actions,
  .home-allowance-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-overview-grid .home-run-hero > header {
    display: flex;
  }

  .home-run-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .home-run-bottom .home-dashboard-actions {
    flex-direction: row;
  }

  .home-approved-section .section-inline-head {
    align-items: center;
    flex-direction: row;
  }

  .home-approved-section .home-list-row,
  .home-approved-section .home-list-row.compact {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .home-approved-section .home-row-actions {
    align-items: flex-start;
  }

  .home-first-use-primary,
  .home-first-use-plan {
    padding: 24px;
  }

  .home-first-use-primary h2 {
    font-size: 22px;
  }

  .home-first-use-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-details-drawer {
    width: 100vw;
    max-width: none;
  }

  .usage-details-head {
    min-height: 76px;
    padding: 0 16px;
  }

  .usage-details-content {
    height: calc(100dvh - 76px);
    padding: 16px;
  }

  .usage-details-close-wide {
    display: none;
  }

  .trial-details-drawer {
    width: 100vw;
    max-width: none;
  }

  .trial-details-head {
    min-height: 72px;
    padding: 0 16px;
  }

  .trial-details-content,
  .trial-details-footer {
    padding: 16px;
  }

  .usage-details-close-narrow {
    display: inline;
  }

  .usage-plan-facts,
  .usage-workspace-document dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-plan-facts > div,
  .usage-plan-facts > div:first-child,
  .usage-workspace-document dl > div,
  .usage-workspace-document dl > div:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }

  .usage-plan-facts > div:first-child,
  .usage-workspace-document dl > div:first-child {
    border-top: 0;
  }
}

/* approved Account and Workspaces Settings compositions. */
.settings-page-shell:has(.account-admin-page) {
  gap: 16px;
  overflow-x: clip;
}

.settings-context-heading {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.settings-context-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 35px;
}

.settings-context-heading p,
.account-admin-intro,
.workspace-restore-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.settings-page-shell:has(.account-admin-page) .settings-section-nav {
  width: auto;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.settings-page-shell:has(.account-admin-page) .settings-section-nav a {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: var(--w-reg);
}

.settings-section-divider {
  height: 1px;
  background: var(--line);
}

.account-admin-page {
  gap: 16px;
}

.account-admin-panel {
  box-shadow: none;
  padding: 24px;
}

.account-admin-panel-head {
  align-items: center;
}

.account-admin-panel-head h2,
.account-deletion-entrance h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.account-admin-panel-head p,
.account-deletion-entrance p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.account-profile-card {
  display: grid;
  gap: 16px;
}

.account-profile-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-profile-name > div {
  min-width: 0;
}

.account-profile-name span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.account-profile-name h2 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 29px;
}

.account-profile-summary {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.account-name-readonly {
  margin: 0;
}

.account-members-table {
  margin-top: 16px;
}

.account-member-row {
  grid-template-columns: minmax(210px, 2fr) minmax(100px, .55fr) minmax(90px, .5fr) minmax(190px, 1.2fr) minmax(160px, auto);
  gap: 16px;
  padding: 12px 0;
}

.account-members-table:not(.owner-actions) .account-member-row {
  grid-template-columns: minmax(210px, 2fr) minmax(100px, .55fr) minmax(90px, .5fr) minmax(190px, 1.2fr);
}

.account-member-person strong,
.account-invite-person strong {
  color: var(--ink);
}

.account-invitation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-invites-table {
  gap: 0;
  margin-top: 16px;
}

.account-invite-row {
  grid-template-columns: minmax(210px, 1fr) minmax(300px, 1.5fr) auto;
  gap: 16px;
  padding: 14px 0;
}

.account-invite-meta,
.account-invite-action {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.account-invite-meta {
  color: var(--muted);
  font-size: 13px;
}

.account-invite-status,
.settings-status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: var(--w-med);
  line-height: 18px;
}

.account-deletion-entrance {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-settings-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 29px;
}

.workspace-settings-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.workspace-admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 24px;
}

.workspace-capacity-contract {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr) auto;
  gap: 8px 16px;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
}

.workspace-capacity-contract.at-limit {
  border: 0;
  background: transparent;
}

.workspace-capacity-contract a {
  justify-self: end;
  margin-left: 0;
}

.workspace-admin-list {
  gap: 0;
}

.workspace-admin-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 0;
}

.workspace-admin-row.selected {
  border-color: var(--line);
}

.workspace-admin-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workspace-admin-identity h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 24px;
}

.workspace-admin-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.workspace-status-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-status-pill.selected {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.workspace-lifecycle.archived {
  background: color-mix(in srgb, var(--amber-ink) 9%, var(--panel));
}

.workspace-lifecycle.deleting {
  background: color-mix(in srgb, var(--red-ink) 8%, var(--panel));
}

.workspace-lifecycle.active {
  color: var(--muted);
}

.workspace-restore-note {
  overflow-wrap: anywhere;
}

.settings-account-drawer {
  width: min(480px, 100vw);
  padding: 0;
}

.settings-account-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0 24px;
}

.settings-account-drawer-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 29px;
}

.settings-account-drawer-content {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 24px;
}

.settings-account-drawer-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.settings-account-drawer .account-invite-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin: 0;
  border: 0;
  padding: 0;
}

.settings-account-drawer .account-invite-form label,
.settings-account-drawer .account-deletion-form label {
  gap: 8px;
}

.settings-account-drawer .account-invite-form input,
.settings-account-drawer .account-invite-form select,
.settings-account-drawer .account-deletion-form input {
  width: 100%;
  min-height: 46px;
}

.settings-account-drawer .account-invite-form > button,
.settings-account-drawer .account-deletion-form > button {
  justify-self: start;
}

.settings-account-drawer .account-invite-form > button:disabled,
.settings-account-drawer .account-deletion-form > button:disabled {
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
  opacity: 1;
}

.settings-account-drawer .account-deletion-form > button.danger-button:disabled {
  color: var(--red-ink);
}

.settings-account-drawer .account-invite-form .field-error {
  grid-column: 1;
  margin: -12px 0 0;
}

.settings-account-drawer .invitation-created {
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.settings-account-drawer .account-deletion-panel {
  gap: 26px;
  border: 0;
  border-left: 0;
  background: transparent;
  padding: 0;
}

.account-deletion-panel > p {
  max-width: none;
}

.account-deletion-panel .account-deletion-permanent {
  color: var(--red-ink);
  font-size: 16px;
  line-height: 24px;
}

.account-deletion-panel .account-deletion-permanent strong {
  color: inherit;
}

.account-deletion-panel .account-deletion-retention {
  font-size: 13px;
  line-height: 19px;
}

.account-deletion-divider {
  height: 1px;
  background: var(--line);
}

.settings-account-drawer .account-deletion-reauth {
  display: grid;
  justify-items: start;
  gap: 24px;
  background: transparent;
  padding: 0;
}

.settings-account-drawer .account-deletion-reauth p {
  color: var(--ink);
  font-size: 14px;
  font-weight: var(--w-semi);
  line-height: 21px;
}

.settings-account-drawer .account-deletion-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.settings-account-drawer .account-deletion-form label {
  gap: 12px;
}

.settings-account-drawer .account-deletion-form > button {
  margin-top: 16px;
}

.account-deletion-warning {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

@media (max-width: 760px) {
  .settings-page-shell:has(.account-admin-page) .settings-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .settings-page-shell:has(.account-admin-page) .settings-section-nav a {
    justify-content: flex-start;
  }

  .account-admin-panel {
    padding: 24px;
  }

  .account-profile-name,
  .account-admin-panel-head,
  .account-deletion-entrance,
  .workspace-settings-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-profile-name {
    flex-direction: row;
    align-items: center;
  }

  .account-admin-panel[aria-labelledby="account-members-title"] .account-admin-panel-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .workspace-settings-heading > button {
    align-self: flex-start;
  }

  .account-member-row,
  .account-members-table:not(.owner-actions) .account-member-row {
    grid-template-columns: max-content max-content;
    gap: 8px;
  }

  .account-member-person,
  .account-member-row [data-label="Joined"],
  .account-member-action {
    grid-column: 1 / -1;
  }

  .account-member-row [data-label]::before {
    content: none;
  }

  .account-member-row [data-label="Joined"]::before {
    content: "Joined ";
    display: inline;
    margin-right: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: var(--w-reg);
    letter-spacing: normal;
    text-transform: none;
  }

  .account-member-row [data-label="Joined"] {
    display: block;
  }

  .account-member-role,
  .account-member-status {
    display: inline-flex !important;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    border-radius: 6px;
    background: var(--soft);
    color: var(--muted);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: var(--w-med);
    line-height: 18px;
  }

  .account-member-role {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .account-invitation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-invite-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-invite-action,
  .workspace-admin-actions {
    justify-content: flex-start;
  }

  .workspace-admin-card {
    padding: 0 24px;
  }

  .workspace-capacity-contract,
  .workspace-admin-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-capacity-contract a {
    justify-self: start;
  }

  .settings-account-drawer {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    border-left: 0;
  }

  .settings-account-drawer-head {
    min-height: 92px;
  }
}

/* approved Billing Settings composition: compact Current plan card, then comparison. */
.settings-page-shell:has([data-settings-billing-mount]) {
  gap: 16px;
  overflow-x: clip;
}

.settings-page-shell:has([data-settings-billing-mount]) .settings-section-nav {
  width: auto;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.settings-page-shell:has([data-settings-billing-mount]) .settings-section-nav a {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: var(--w-reg);
}

.billing-settings {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.billing-settings p {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
}

.billing-current-card,
.billing-compare {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.billing-current-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.billing-current-head > div:first-child {
  min-width: 0;
}

.billing-current-role {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.billing-current-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.billing-current-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 35px;
}

.billing-current-card .upgrade-state-chip {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  font-weight: var(--w-reg);
}

.billing-current-card .upgrade-state-chip::before {
  display: none;
}

.billing-current-card .upgrade-state-chip.ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.billing-current-card .upgrade-state-chip.muted {
  background: var(--soft);
}

.billing-settings [data-billing-current-status] {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
}

.billing-current-action {
  flex: none;
}

.billing-current-action button {
  min-height: 44px;
  padding: 0 12px;
}

.billing-current-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.billing-current-facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.billing-current-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: var(--w-semi);
  line-height: 29px;
}

.billing-current-facts dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.billing-settings .billing-usage-note {
  margin-top: 16px;
  color: var(--text);
}

.billing-current-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding: 0 12px;
}

.billing-current-links a {
  color: var(--accent);
  font-size: 13px;
  line-height: 19px;
  text-decoration: none;
}

.billing-current-links a:hover {
  text-decoration: underline;
}

.billing-settings .billing-options-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}

.billing-compare-grid {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  grid-template-columns: minmax(150px, 1fr);
  grid-template-rows: repeat(9, auto);
}

.billing-compare-labels,
.billing-plan-card {
  display: grid;
  grid-row: 1 / span 9;
  grid-template-rows: subgrid;
  min-width: 0;
}

.billing-compare-labels > span,
.billing-plan-card > * {
  min-width: 0;
  padding-right: 16px;
  overflow-wrap: anywhere;
}

.billing-compare-labels > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.billing-compare-labels > span:not(:first-child, :last-child),
.billing-compare-fact {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
}

.billing-compare-labels > span:not(:first-child, :last-child) {
  font-size: 13px;
  line-height: 19px;
}

.billing-plan-heading {
  padding-bottom: 16px;
}

.billing-plan-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--w-semi);
  line-height: 19px;
}

.billing-settings .billing-price {
  margin-top: 8px;
  color: var(--ink);
}

.billing-price strong {
  font-size: 20px;
  font-weight: var(--w-semi);
  line-height: 29px;
}

.billing-settings .billing-yearly {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.billing-compare-fact {
  color: var(--ink);
  font-size: 13px;
  line-height: 19px;
}

.billing-compare-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.billing-compare-action {
  display: grid;
  align-content: start;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.billing-compare-action .billing-capability-warning {
  margin: 0;
}

.billing-settings .billing-compare-current-note {
  color: var(--muted);
}

.billing-settings .upgrade-owner-note {
  margin-top: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .settings-page-shell:has([data-settings-billing-mount]) .settings-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .settings-page-shell:has([data-settings-billing-mount]) .settings-section-nav a {
    justify-content: flex-start;
  }

  .billing-current-head {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-current-action {
    align-self: flex-start;
  }

  .billing-current-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .billing-current-facts > div {
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 16px;
  }

  .billing-current-facts dd {
    min-width: 48px;
  }

  .billing-compare-grid {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 16px;
  }

  .billing-compare-labels {
    display: none;
  }

  .billing-plan-card {
    display: block;
    grid-row: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
  }

  .billing-plan-card > * {
    padding-right: 0;
  }

  .billing-compare-fact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .billing-compare-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: var(--muted);
    white-space: normal;
  }

  .billing-compare-action:empty {
    display: none;
  }
}

/* approved Console workbench: title with the served Admin API version, one compact served
   Store/clock/connection line, the isolated-probe boundary, a recipe/library/save toolbar, a split desktop
   workbench, a state-retaining narrow Request/Response switch, and secondary drawers / full-screen sheets.
   Scoped to the island hosts so it settles the earlier legacy Console cascade. */
:is(#viewConsole, .store-console-host) .practice-console-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  min-width: 0;
  padding: 0;
}

:is(#viewConsole, .store-console-host) .practice-console-shell > * { order: 0; min-width: 0; }

:is(#viewConsole, .store-console-host) .practice-console-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
}

:is(#viewConsole, .store-console-host) .practice-console-header h1 {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: var(--w-semi);
  line-height: 29px;
}

:is(#viewConsole, .store-console-host) .practice-console-version-field select,
:is(#viewConsole, .store-console-host) .practice-console-toolbar .practice-console-recipe-picker select {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--panel);
  color: var(--accent);
  padding: 0 32px 0 12px;
  font-size: var(--type-body);
  font-weight: var(--w-med);
}

:is(#viewConsole, .store-console-host) .practice-console-context {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 18px;
  white-space: normal;
}

:is(#viewConsole, .store-console-host) .practice-console-context > * { flex: 0 1 auto; }
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-field:first-child,
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-clock-position { flex: 0 1 auto; }
:is(#viewConsole, .store-console-host) .practice-console-context-separator { display: inline; color: var(--muted); }
:is(#viewConsole, .store-console-host) .practice-console-context [data-console-environment-store] {
  color: var(--muted);
  font-size: var(--type-secondary);
  font-weight: var(--w-med);
}
:is(#viewConsole, .store-console-host) .practice-console-context .practice-console-clock-position { color: var(--muted); font-size: var(--type-secondary); }
:is(#viewConsole, .store-console-host) .practice-console-context-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

:is(#viewConsole, .store-console-host) .practice-console-probe-boundary {
  margin: 0;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 12px;
  font-size: var(--type-secondary);
  line-height: 18px;
}

:is(#viewConsole, .store-console-host) .practice-console-toolbar,
:is(#viewConsole, .store-console-host) .practice-console-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

:is(#viewConsole, .store-console-host) .practice-console-toolbar { justify-content: space-between; }
:is(#viewConsole, .store-console-host) .practice-console-toolbar .practice-console-recipe-picker { display: block; min-width: 0; max-width: 100%; }

:is(#viewConsole, .store-console-host) :is(.practice-console-toolbar, .practice-console-pane-switch, .practice-console-pane-head) .link-button,
:is(#viewConsole, .store-console-host) .practice-console-copy-mcp {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  padding: 0 12px;
  font-size: var(--type-body);
  font-weight: var(--w-med);
}

:is(#viewConsole, .store-console-host) :is(.practice-console-toolbar, .practice-console-pane-head) .link-button:disabled { color: var(--muted); text-decoration: none; }
:is(#viewConsole, .store-console-host) .practice-console-library-notice { color: var(--muted); font-size: var(--type-secondary); }

:is(#viewConsole, .store-console-host) .practice-console-pane-switch { display: none; gap: 8px; }
:is(#viewConsole, .store-console-host) .practice-console-pane-switch .link-button { min-height: 40px; color: var(--ink); }
:is(#viewConsole, .store-console-host) .practice-console-pane-switch .link-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
:is(#viewConsole, .store-console-host) .practice-console-pane-switch .link-button:hover { text-decoration: none; }

:is(#viewConsole, .store-console-host) .practice-console-ide {
  grid-template-columns: minmax(0, var(--practice-console-request-basis)) 16px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

:is(#viewConsole, .store-console-host) .practice-console-resize { background: transparent; }
:is(#viewConsole, .store-console-host) .practice-console-resize:is(:hover, :focus-visible) {
  background: linear-gradient(to right, transparent 0 6px, var(--accent) 6px 10px, transparent 10px 16px);
}

:is(#viewConsole, .store-console-host) .practice-console-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

:is(#viewConsole, .store-console-host) .practice-console-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

:is(#viewConsole, .store-console-host) .practice-console-pane-head > div:first-child { gap: 12px; }
:is(#viewConsole, .store-console-host) .practice-console-pane-head span:first-child { color: var(--ink); font-size: 14px; font-weight: var(--w-semi); line-height: 21px; }
:is(#viewConsole, .store-console-host) .practice-console-pane-head strong { color: var(--muted); font-size: var(--type-micro); font-weight: 400; line-height: 16px; }
:is(#viewConsole, .store-console-host) .practice-console-response-head strong { color: var(--muted); font-family: inherit; font-size: var(--type-secondary); font-weight: var(--w-med); }

:is(#viewConsole, .store-console-host) .practice-console-editor,
:is(#viewConsole, .store-console-host) .practice-console-editor .cm-editor { min-height: 240px; background: var(--bg); }
:is(#viewConsole, .store-console-host) .practice-console-editor { max-height: 520px; }
:is(#viewConsole, .store-console-host) .practice-console-editor .cm-gutters { background: var(--bg); }

:is(#viewConsole, .store-console-host) .practice-console-actions {
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

:is(#viewConsole, .store-console-host) .practice-console-actions .practice-console-notice { order: 10; flex: 1 1 100%; }
:is(#viewConsole, .store-console-host) .practice-console-actions .practice-console-notice:empty { display: none; }
:is(#viewConsole, .store-console-host) .practice-console-actions .practice-console-run { min-height: 40px; border-radius: 8px; padding: 0 16px; font-size: var(--type-body); }

:is(#viewConsole, .store-console-host) .practice-console-run-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-micro);
  line-height: 16px;
}

:is(#viewConsole, .store-console-host) .practice-console-run-hint kbd { font: inherit; }

:is(#viewConsole, .store-console-host) .practice-console-response-body { padding: 0; }
:is(#viewConsole, .store-console-host) .practice-console-response-pane .practice-console-state {
  min-height: 316px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  padding: 24px;
}

:is(#viewConsole, .store-console-host) .practice-console-response-pane [data-console-response-waiting] {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

:is(#viewConsole, .store-console-host) [data-console-response-waiting] strong { color: var(--ink); font-size: 16px; font-weight: var(--w-med); line-height: 24px; }
:is(#viewConsole, .store-console-host) [data-console-response-waiting] span { color: var(--muted); font-size: var(--type-body); line-height: 19px; }
:is(#viewConsole, .store-console-host) .practice-console-response-foot { margin: 0; color: var(--muted); font-size: var(--type-secondary); line-height: 18px; }

/* Secondary drawers: 510px right panel over a light backdrop; full-screen sheets on narrow screens. */
.practice-console-drawer-layer { position: fixed; inset: 0; z-index: 80; }
.practice-console-drawer-layer[hidden] { display: none; }
.practice-console-drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); }

.practice-console-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(510px, 100%);
  background: var(--panel);
  box-shadow: -12px 0 32px rgba(23, 25, 35, 0.12);
}

.practice-console-drawer-head,
.practice-console-drawer-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 24px;
}

.practice-console-drawer-head { gap: 12px; }
.practice-console-drawer-head h2 { flex: 1 1 auto; margin: 0; color: var(--ink); font-size: 18px; font-weight: var(--w-semi); line-height: 27px; }
.practice-console-drawer-close { font-size: var(--type-body); font-weight: var(--w-med); }
.practice-console-drawer-close-mobile { display: none; }
.practice-console-drawer-foot .small-button { min-height: 40px; border-radius: 8px; padding: 0 12px; font-size: var(--type-body); }

.practice-console-drawer-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
}

.practice-console-drawer-body .practice-console-recipe-contract {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}

.practice-console-drawer-body .practice-console-recipe-summary { color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-med); text-transform: uppercase; }
.practice-console-drawer-body .practice-console-recipe-contract > div:first-child { display: grid; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.practice-console-drawer-body .practice-console-recipe-contract > div:first-child strong { color: var(--ink); font-size: 24px; font-weight: var(--w-semi); line-height: 35px; }
.practice-console-drawer-body .practice-console-recipe-contract > div:first-child p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.practice-console-drawer-body .practice-console-recipe-template-list { display: grid; gap: 0; color: var(--ink); font-size: 14px; line-height: 21px; }
.practice-console-drawer-body .practice-console-recipe-template-list::before { content: "Built for"; margin-bottom: 16px; color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-med); text-transform: uppercase; }
.practice-console-drawer-body .practice-console-recipe-contract > .practice-console-recipe-boundary { display: grid; grid-template-columns: 1fr; gap: 8px; border: 0; background: var(--accent-soft); padding: 16px; }
.practice-console-drawer-body .practice-console-recipe-contract > .practice-console-recipe-boundary span { color: var(--ink); font-size: 14px; font-weight: var(--w-semi); text-transform: none; }
.practice-console-drawer-body .practice-console-recipe-contract > .practice-console-recipe-boundary p { font-size: var(--type-body); line-height: 19px; }
.practice-console-drawer-body :is(.practice-console-recipe-prerequisites, .practice-console-recipe-outcome) { display: grid; gap: 8px; }
.practice-console-drawer-body :is(.practice-console-recipe-prerequisites, .practice-console-recipe-outcome) > span,
.practice-console-recipe-others h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: var(--w-semi); line-height: 24px; }
.practice-console-drawer-body :is(.practice-console-recipe-prerequisites, .practice-console-recipe-outcome, .practice-console-recipe-isolation, .practice-console-recipe-version) p,
.practice-console-drawer-body :is(.practice-console-recipe-isolation, .practice-console-recipe-version) { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.practice-console-recipe-others { display: grid; gap: 8px; }
.practice-console-recipe-others ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.practice-console-recipe-others .link-button { color: var(--muted); font-size: var(--type-body); line-height: 19px; text-align: left; }
.practice-console-recipe-others .link-button:hover { color: var(--accent); }

.practice-console-drawer-body .practice-console-library { display: flex; flex-direction: column; gap: 16px; border: 0; background: transparent; padding: 0; }
.practice-console-drawer-body .practice-console-library-head { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.practice-console-drawer-body .practice-console-library-combobox-label { display: grid; gap: 8px; color: var(--ink); font-size: 16px; line-height: 22px; }
.practice-console-drawer-body :is(.practice-console-library-combobox-label, .practice-console-save-form label) input {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
}
.practice-console-drawer-body .practice-console-library-count { color: var(--muted); font-size: var(--type-secondary); }
.practice-console-drawer-body .practice-console-library-options { grid-template-columns: 1fr; max-height: none; }
.practice-console-library-empty-state { display: grid; gap: 12px; background: var(--bg); padding: 24px; }
.practice-console-library-empty-state strong { color: var(--ink); font-size: 18px; font-weight: var(--w-semi); line-height: 27px; }
.practice-console-library-empty-state p,
.practice-console-save-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.practice-console-library-scope { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 19px; }
.practice-console-drawer-body .practice-console-library-footer:empty { display: none; }

.practice-console-drawer-body .practice-console-save-form { display: flex; flex-direction: column; gap: 16px; border: 0; background: transparent; padding: 0; }
.practice-console-drawer-body .practice-console-save-form label { display: grid; gap: 8px; color: var(--ink); font-size: 16px; line-height: 22px; }
.practice-console-save-context { display: grid; gap: 8px; background: var(--bg); padding: 16px; }
.practice-console-save-context span { color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-med); text-transform: uppercase; }
.practice-console-save-context strong { color: var(--ink); font-size: 14px; font-weight: var(--w-med); line-height: 21px; overflow-wrap: anywhere; }
.practice-console-save-context p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 19px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  :is(#viewConsole, .store-console-host) .practice-console-shell { gap: 12px; }
  :is(#viewConsole, .store-console-host) .practice-console-toolbar { justify-content: flex-start; }
  :is(#viewConsole, .store-console-host) .practice-console-toolbar-group { flex: 1 1 100%; gap: 4px; }
  :is(#viewConsole, .store-console-host) .practice-console-pane-switch { display: flex; }
  :is(#viewConsole, .store-console-host) .practice-console-ide { grid-template-columns: minmax(0, 1fr); }
  :is(#viewConsole, .store-console-host) .practice-console-ide[data-console-mobile-pane="request"] > :not(.practice-console-request-pane),
  :is(#viewConsole, .store-console-host) .practice-console-ide[data-console-mobile-pane="response"] > :is(.practice-console-request-pane, .practice-console-resize) { display: none; }
  :is(#viewConsole, .store-console-host) .practice-console-editor,
  :is(#viewConsole, .store-console-host) .practice-console-editor .cm-editor { min-height: 262px; }
  :is(#viewConsole, .store-console-host) .practice-console-actions { flex-direction: column; align-items: flex-start; }
  :is(#viewConsole, .store-console-host) .practice-console-run-hint { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .practice-console-drawer { width: 100%; box-shadow: none; }
  .practice-console-drawer-body,
  .practice-console-drawer-foot { padding: 16px; }
  .practice-console-drawer-close-desktop { display: none; }
  .practice-console-drawer-close-mobile { display: inline; }
}

/* approved Store Configured Gate: the one-Gate rule, a CI-reading card beside Store-scoped run
   facts (stacked on narrow screens), receipt history, the read-only CI record, and the latest receipt.
   Setup and Tools open as the shared 510px drawer, full-screen on narrow screens. */
.gate-receipt-page { gap: 16px; min-width: 0; }
.gate-receipt-head { display: grid; gap: 16px; }
.gate-receipt-head :is(h1, h2) { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--w-semi); line-height: 29px; }
.gate-receipt-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.gate-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 696fr) minmax(0, 456fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.gate-summary-grid.gate-summary-single { grid-template-columns: minmax(0, 1fr); }
.gate-receipt-page :is(.gate-panel, .gate-ci-panel) {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
  padding: 24px;
}
.gate-receipt-page .eyebrow { color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-med); letter-spacing: 0; line-height: 18px; }
.gate-receipt-page :is(.gate-panel, .gate-ci-panel) :is(h2, h3) { margin: 0; color: var(--ink); font-size: var(--type-section); font-weight: var(--w-semi); line-height: 24px; }
.gate-receipt-page :is(.gate-panel, .gate-ci-panel) p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.gate-receipt-page .gate-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gate-receipt-page .gate-section-head > div:first-child { display: grid; gap: 12px; min-width: 0; }
.gate-receipt-page .gate-footnote { color: var(--muted); font-size: var(--type-secondary); line-height: 18px; }
.gate-receipt-page .gate-ci-reading h3,
.gate-receipt-page .gate-evidence-digest .gate-stat strong { font-size: var(--type-display); line-height: 35px; }
.gate-receipt-page .gate-ci-reading button { justify-self: start; min-height: 40px; border-radius: 8px; padding: 0 16px; font-size: var(--type-body); font-weight: var(--w-med); }
.gate-receipt-page .gate-proof-band { display: flex; flex-wrap: wrap; gap: 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.gate-receipt-page .gate-stat { flex: 1 1 96px; display: grid; gap: 4px; border: 0; padding: 0; text-align: left; }
.gate-receipt-page .gate-stat strong { display: block; color: var(--ink); font-weight: var(--w-semi); }
.gate-receipt-page .gate-stat span { display: block; margin: 0; color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-reg); line-height: 18px; }
.gate-receipt-page .gate-stat span::first-letter { text-transform: uppercase; }
.gate-receipt-page .gate-latest-run { display: grid; gap: 12px; }
.gate-receipt-page .gate-latest-run strong { color: var(--ink); font-size: var(--type-body); font-weight: var(--w-med); line-height: 19px; }
.gate-receipt-page .gate-latest-run span,
.gate-receipt-page .gate-evidence-digest [data-gate-open-facts] { color: var(--muted); font-size: var(--type-body); line-height: 19px; }
.gate-receipt-history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gate-receipt-history-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 8px 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.gate-receipt-history-row:last-child { padding-bottom: 0; }
.gate-receipt-history-identity { display: grid; gap: 2px; min-width: 0; }
.gate-receipt-history-identity strong { color: var(--ink); font-size: var(--type-body); font-weight: var(--w-med); line-height: 19px; overflow-wrap: anywhere; }
.gate-receipt-page .gate-receipt-history-row p { color: var(--ink); font-size: var(--type-body); line-height: 19px; }
.gate-receipt-id { color: var(--muted); font-size: var(--type-secondary); line-height: 18px; overflow-wrap: anywhere; }
.gate-receipt-history-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.gate-selected-tag { border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); padding: 2px 8px; font-size: var(--type-secondary); font-weight: var(--w-med); line-height: 18px; white-space: nowrap; }
.gate-receipt-page .link-button { min-height: 36px; font-size: var(--type-body); font-weight: var(--w-med); }
.gate-receipt-page .gate-ci-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gate-receipt-page .gate-ci-record > div { display: grid; gap: 4px; min-width: 0; }
.gate-receipt-page .gate-ci-record p { font-size: var(--type-body); line-height: 19px; }
.gate-receipt-page .gate-latest-receipt .gate-receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.gate-receipt-page .gate-latest-receipt .gate-receipt-row > div:first-child { display: grid; gap: 12px; min-width: 0; }
.gate-receipt-page .gate-latest-receipt .gate-receipt-row strong { font-size: var(--type-section); font-weight: var(--w-semi); line-height: 24px; }
.gate-receipt-page .gate-latest-receipt .gate-receipt-row p { font-size: var(--type-secondary); line-height: 18px; overflow-wrap: anywhere; }
.gate-receipt-page .gate-latest-receipt .gate-actions { gap: 8px; }
.gate-receipt-page .gate-latest-receipt .gate-actions button { min-height: 40px; border-radius: 8px; padding: 0 12px; font-size: var(--type-body); font-weight: var(--w-med); }
.gate-receipt-page .gate-latest-receipt .gate-actions button[data-open-run-console] { border-color: transparent; background: transparent; }

.gate-drawer-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.gate-drawer-dialog::backdrop { background: transparent; }
.gate-drawer-body h3 { margin: 0; color: var(--ink); font-size: var(--type-title); font-weight: var(--w-semi); line-height: 29px; }
.gate-drawer-body h4 { margin: 0; color: var(--ink); font-size: var(--type-section); font-weight: var(--w-semi); line-height: 24px; }
.gate-drawer-body p { margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 19px; overflow-wrap: anywhere; }
.gate-drawer-body .gate-drawer-lead,
.gate-drawer-body .gate-tools-config p { font-size: 14px; line-height: 21px; }
.gate-drawer-body .gate-footnote { font-size: var(--type-secondary); line-height: 18px; }
.gate-setup-context { display: grid; gap: 8px; background: var(--bg); padding: 16px; }
.gate-setup-context span { color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-med); line-height: 18px; text-transform: uppercase; }
.gate-setup-context strong { color: var(--ink); font-size: 14px; font-weight: var(--w-med); line-height: 21px; overflow-wrap: anywhere; }
.gate-drawer-body .gate-setup-context p { font-size: var(--type-secondary); line-height: 18px; }
.gate-setup-prompt-head { display: flex; align-items: center; gap: 8px; }
.gate-setup-prompt-head h4 { flex: 1 1 auto; }
.gate-drawer-body .gate-setup-prompt { background: var(--accent-soft); color: var(--ink); padding: 16px; }
.gate-drawer-body .gate-copy-status:empty { display: none; }
.gate-drawer-body .gate-copy-status { color: var(--ink); }
.gate-setup-empty { display: grid; gap: 12px; justify-items: start; background: var(--bg); padding: 24px; }
.gate-tools-config { display: grid; gap: 16px; }
.gate-drawer-body .eyebrow { color: var(--muted); font-size: var(--type-secondary); font-weight: var(--w-med); letter-spacing: 0; line-height: 18px; }
.gate-ci-kit { display: grid; gap: 12px; justify-items: start; background: var(--bg); padding: 12px; }
.gate-drawer-body .gate-ci-kit p { color: var(--ink); font-size: var(--type-secondary); line-height: 18px; }
.gate-ci-kit-steps { margin: 0; padding-left: 18px; color: var(--ink); font-size: var(--type-body); line-height: 19px; }
.gate-ci-kit-steps code { font: inherit; }
.gate-ci-kit-link { color: var(--accent); font-size: var(--type-body); line-height: 19px; text-decoration: none; }
.gate-ci-kit-digest { display: grid; gap: 2px; min-width: 0; }
.gate-ci-kit-digest span,
.gate-ci-kit-digest code { color: var(--ink); font-family: "Roboto Mono", var(--mono); font-size: 11px; line-height: 19px; overflow-wrap: anywhere; }
.gate-divider { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.gate-tool { display: grid; gap: 4px; }
.gate-tool code,
.gate-routes code { color: var(--ink); font-family: "Roboto Mono", var(--mono); font-size: var(--type-secondary); line-height: 20px; overflow-wrap: anywhere; }
.gate-routes { display: grid; }

@media (max-width: 760px) {
  .gate-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .gate-receipt-page .gate-section-head,
  .gate-receipt-page .gate-ci-record { flex-direction: column; }
  .gate-receipt-history-row { grid-template-columns: minmax(0, 1fr); }
  .gate-receipt-history-actions { justify-content: flex-start; }
  .gate-receipt-page .gate-latest-receipt .gate-actions { flex-direction: column; align-items: flex-start; }
}

}
@layer layout {
/* Customer Console palette: Figma Meguro / Color theme, Ocean (237:1).
   Keep palette values here; component rules consume these semantic roles. */
body.console-app {
  --bg: #fcfeff;
  --panel: #ffffff;
  --soft: #edf4f8;
  --emphasis: #d7e8f1;
  --subtle: #f3f7fa;
  --ink: #17242f;
  --muted: #566672;
  --line: #cedce5;
  --line-strong: #69828f;
  --accent: #235b76;
  --accent-dark: color-mix(in srgb, var(--accent) 84%, var(--ink));
  --accent-soft: var(--soft);
  --on-accent: #ffffff;
  --nav-selected: var(--accent);
  --nav-indicator: var(--nav-selected);
  --secondary-bg: #e0ecf2;
  --secondary-border: var(--line-strong);
  --secondary-ink: #203f50;
  --secondary-hover: var(--emphasis);
  --subtle-action: var(--accent);
  --disabled-bg: #e0e7ec;
  --disabled-border: #aebac4;
  --disabled-ink: #687783;
  --green-ink: #2f7d58;
  --red-ink: #b4233b;
  --red: #f9e3e9;
  --gray: var(--subtle);
  --gray-ink: var(--muted);
  --color-background-info: var(--soft);
  --danger: var(--red-ink);
  --status-supported-ink: var(--green-ink);
  --status-supported-icon: var(--green-ink);
  --status-rejected-bg: var(--red);
  --status-rejected-ink: var(--red-ink);
  --status-rejected-icon: var(--red-ink);
  --status-error-bg: var(--red);
  --status-error-ink: var(--red-ink);
  --status-error-icon: var(--red-ink);
  --status-neutral-bg: var(--gray);
  --status-neutral-border: var(--line-strong);
  --status-neutral-ink: var(--gray-ink);
  --status-neutral-icon: var(--gray-ink);
  --status-lifecycle-bg: var(--soft);
  --status-lifecycle-border: var(--line);
  --status-lifecycle-ink: var(--accent);
  --status-lifecycle-icon: var(--accent);
  --status-sample-bg: var(--subtle);
  --status-sample-border: var(--line);
  --status-sample-ink: var(--accent);
  --status-sample-icon: var(--accent);
  --text: var(--ink);
  --shadow: 0 12px 32px color-mix(in srgb, var(--ink) 10%, transparent);
  --drawer-shadow: -12px 0 40px color-mix(in srgb, var(--ink) 8%, transparent);
  --scrim: color-mix(in srgb, var(--ink) 24%, transparent);
  --type-body: 14px;
  --type-secondary: 12px;
  --type-micro: 12px;
  --type-section: 18px;
  --type-title: 28px;
  --type-display: 28px;
  background: var(--bg);
  font-size: var(--type-body);
  line-height: 22px;
}

.console-app :is(h1, h2, h3, h4) { font-weight: 500; letter-spacing: 0; }
.console-app h1 { font-size: 28px; line-height: 34px; }
.console-app h2 { font-size: 18px; line-height: 26px; }
.console-app a { color: var(--ink); }
.console-app :is(h3, h4) { font-size: 16px; line-height: 24px; }
.console-app :is(button, input, select, textarea) { font: inherit; }
.console-app :is(button, a.primary-button, a.secondary-button, .home-primary-link) {
  min-height: 40px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
.console-app button { padding: 9px 12px; }
.console-app button:active { transform: none; }
.console-app a.primary-button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); text-decoration: none; }
.console-app a.primary-button:hover { background: var(--accent-dark); }
.console-app :is(.secondary-button, a.secondary-button) {
  background: var(--secondary-bg);
  border: 1px solid var(--secondary-border);
  color: var(--secondary-ink);
}
.console-app :is(.secondary-button, a.secondary-button):hover { background: var(--secondary-hover); border-color: var(--secondary-border); }
.console-app button:disabled { background: var(--disabled-bg); border-color: var(--disabled-border); color: var(--disabled-ink); opacity: 1; }
.console-app :is(.link-button, .text-button) {
  border: 0;
  background: transparent;
  color: var(--subtle-action);
  text-decoration: none;
}
.console-app :is(.link-button, .text-button):hover { background: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.console-app :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.console-app :is(input, select, textarea) {
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 44px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 12px;
  max-width: 100%;
}
.console-app input[type="checkbox"], .console-app input[type="radio"] { min-height: auto; width: auto; accent-color: var(--accent); }
.console-app :is(.small-button, a.small-button) { min-height: 36px; font-size: 12px; padding: 7px 10px; }
.console-app .danger-button { color: var(--red-ink); background: var(--panel); border: 1px solid var(--red-ink); }
.console-app .danger-button:hover { background: var(--red); }
.console-app .danger-button.solid { background: var(--red-ink); color: var(--on-accent); }

.console-shell { min-height: 100vh; }
.app-header {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 64px;
  padding: 12px 40px;
  background: var(--soft);
  position: relative;
  z-index: 30;
}
.app-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.app-brand img { display: block; flex: none; }
.app-brand strong { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: 0; }
.app-navigation { display: flex; align-items: center; gap: 28px; }
.app-navigation a {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
}
.app-navigation a.active { font-weight: 500; color: var(--nav-selected); }
.app-navigation a.active::after { content: ""; position: absolute; width: 20px; height: 2px; bottom: 0; left: 0; background: var(--nav-indicator); }
.app-navigation a:hover { color: var(--muted); }
.app-header-auth { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.app-header .guide-restore-button { padding-inline: 0; color: var(--ink); white-space: nowrap; }
.app-help { color: var(--muted); text-decoration: none; font-size: 14px; line-height: 22px; }
.app-help:hover { color: var(--ink); text-decoration: underline; }
.app-header .account-menu-shell { position: relative; width: auto; flex: 0 1 auto; }
.app-header .account-menu-trigger {
  display: flex;
  width: auto;
  max-width: 240px;
  gap: 6px;
  align-items: center;
  border: 0;
  padding-inline: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.app-header .account-menu-trigger:hover { background: transparent; color: var(--ink); }
.app-header .account-menu-label { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header .account-menu-panel { top: calc(100% + 8px); right: 0; left: auto; bottom: auto; width: min(300px, calc(100vw - 40px)); padding: 8px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.app-header .account-menu-panel :is(a, button[role="menuitem"]) { display: flex; align-items: center; min-height: 40px; border-radius: 4px; padding: 9px 12px; font-size: 14px; line-height: 22px; color: var(--ink); }
.app-header .account-menu-panel :is(a, button[role="menuitem"]):hover { background: var(--soft); }
.app-header .account-menu-identity { padding: 8px 12px; margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.app-header .workspace-switcher { margin: 4px 0 8px; }
.app-header .workspace-switcher-button { border-color: var(--line); background: var(--soft); box-shadow: none; min-height: 56px; padding: 8px 12px; }
.app-header .workspace-switcher-button:hover { background: var(--soft); border-color: var(--line-strong); }
.app-header .workspace-popover { position: static; width: 100%; min-width: 0; box-shadow: none; margin-top: 8px; }
.app-header .workspace-option > span { display: grid; gap: 4px; text-align: left; }
.app-header .workspace-option small { color: var(--muted); font-size: 12px; line-height: 18px; }
.app-header .trial-status-shell { display: none; }
.console-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  min-width: 0;
  gap: 24px;
}
.console-main > .view { min-width: 0; width: 100%; margin: 0; }
.console-main > .view > * { min-width: 0; }
.console-main .app-search { position: relative; display: block; align-self: flex-end; margin-bottom: 0; max-width: 420px; width: 100%; }
.console-main .app-search input { border-radius: 6px; padding-left: 40px; height: 40px; }
.console-main > .application-footer { margin: auto 0 0; padding: 32px 0 0; background: transparent; border-top: 0; width: 100%; font-size: 12px; line-height: 18px; }
.console-main > .notice { margin: 0; }
.console-main > .console-note { margin: 0; font-size: 14px; line-height: 22px; }

.app-page { display: grid; gap: 24px; width: 100%; min-width: 0; }
.app-heading { display: grid; gap: 8px; min-width: 0; }
.app-kicker { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 18px; text-transform: uppercase; letter-spacing: 0; }
.app-heading h1 { margin: 0; font-size: 28px; font-weight: 500; line-height: 34px; }
.app-lead { color: var(--muted); font-size: 16px; line-height: 24px; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 32px; align-items: start; min-width: 0; }
.app-main, .app-context { display: grid; gap: 20px; min-width: 0; }
.app-card { display: grid; align-content: start; gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 24px; min-width: 0; }
.app-card > :first-child { margin-top: 0; }
.app-card > :last-child { margin-bottom: 0; }
.app-card > :is(h2, h3) { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.app-card > p { color: var(--muted); font-size: 14px; line-height: 22px; }
.app-card--soft { background: var(--soft); border: 0; border-radius: 0; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.app-actions > a:not(.primary-button):not(.secondary-button) { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 12px; color: var(--subtle-action); text-decoration: none; }
.app-actions > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-facts { display: grid; gap: 0; margin: 0; }
.app-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 8px 0; }
.app-facts dt { color: var(--muted); font-size: 14px; line-height: 22px; }
.app-facts dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.app-local-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0; border: 0; background: transparent; }
.app-local-nav :is(a, button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 22px; text-decoration: none; white-space: nowrap; }
.app-local-nav :is(a, button):hover { color: var(--ink); background: var(--soft); }
.app-local-nav :is(.active, [aria-current="page"], [aria-selected="true"]) { border-bottom-color: var(--nav-indicator); color: var(--nav-selected); }
.app-data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.app-data-table th { padding: 16px; background: var(--soft); text-align: left; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 18px; }
.app-data-table td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.app-data-table small { display: block; color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 4px; }
.app-data-table a { color: var(--ink); text-decoration: none; }
.app-data-table a:hover { text-decoration: underline; }

.console-app :is(.view-head, .record-head, .settings-header, .report-detail-head) { margin: 0 0 24px; }
.console-app :is(.view-subtitle, .drawer-subtitle) { font-size: 16px; line-height: 24px; color: var(--muted); }
.console-app .layout-fact-table th { color: var(--muted); font-weight: 400; font-size: 14px; line-height: 22px; }
.console-app .layout-fact-table td { font-size: 14px; line-height: 22px; }
.console-app :is(.drawer, .store-panel-drawer) { border-left: 1px solid var(--line); background: var(--panel); box-shadow: var(--drawer-shadow); }
.console-app :is(.drawer-head, .store-panel-head) { padding: 24px; border-bottom: 1px solid var(--line); }
.console-app :is(.drawer-head, .store-panel-head) h2 { font-size: 20px; line-height: 28px; }
.console-app :is(.store-panel-content, .drawer-section) { padding: 24px; }
.console-app :is(.drawer-scrim) { background: var(--scrim); }
.console-app :is(.store-panel-footer, .drawer-footer) { border-top: 1px solid var(--line); padding: 20px 24px; }
.console-app :is(.store-panel-close, .usage-details-close) { color: var(--ink); border: 0; background: transparent; }
.console-app .store-workspace-tab-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; border: 0; background: transparent; margin: 0 0 24px; }
.console-app .store-workspace-tab-nav a { min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; line-height: 22px; }
.console-app .store-workspace-tab-nav a.active { background: transparent; color: var(--nav-selected); border-bottom-color: var(--nav-indicator); }

#firstRunGuideMount { position: fixed; z-index: 80; top: auto; left: auto; right: 24px; bottom: 24px; width: min(400px, calc(100vw - 40px)); }
#firstRunGuideMount:empty { display: none; }
.console-app .first-run-guide { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); font-size: 14px; line-height: 22px; }
.console-app .first-run-guide.expanded { padding: 24px; max-height: calc(100dvh - 48px); overflow: auto; }
.console-app .first-run-guide > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.console-app .first-run-guide > header > div:first-child { display: grid; gap: 4px; }
.console-app .first-run-guide-heading { font-size: 18px; line-height: 26px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); }
.console-app .first-run-guide > header strong { font-size: 12px; line-height: 18px; font-weight: 400; color: var(--muted); }
.console-app .first-run-guide > header button { min-height: 32px; min-width: 32px; padding: 4px; color: var(--muted); }
.console-app .first-run-guide progress { width: 100%; height: 4px; margin: 20px 0 16px; border: 0; accent-color: var(--accent); }
.console-app .first-run-guide progress::-webkit-progress-bar { background: var(--line); }
.console-app .first-run-guide progress::-webkit-progress-value { background: var(--accent); }
.console-app .first-run-guide-steps { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.console-app .first-run-guide-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0; color: var(--muted); }
.console-app .first-run-guide-steps li > a { display: grid; grid-column: 1/-1; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; color: inherit; text-decoration: none; min-height: 40px; border-radius: 4px; }
.console-app .first-run-guide-steps li > a:hover { color: var(--ink); background: var(--soft); }
.console-app .first-run-guide-steps li :is(strong, span) { font-size: 14px; line-height: 22px; font-weight: 400; }
.console-app .first-run-guide-steps li.done { color: var(--ink); }
.console-app .first-run-guide-steps li.done > a > span:first-child { color: var(--green-ink); }
.console-app .first-run-guide-complete { margin-top: 16px; padding: 0; border: 0; background: transparent; color: var(--green-ink); font-size: 14px; line-height: 22px; }
.console-app .first-run-guide-rule { font-size: 12px; line-height: 18px; color: var(--muted); }
.console-app.signed-out-session-active .console-main > :not(.signed-out-session) { display: none !important; }
.console-app.signed-out-session-active .app-navigation { visibility: hidden; }
.console-app .signed-out-session { width: min(520px, 100%); align-self: center; padding: 64px 0; min-height: 0; }

@media (max-width: 1050px) {
  .app-header { padding-inline: 24px; gap: 20px; }
  .console-main { padding-inline: 24px; }
  .app-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); gap: 24px; }
}
@media (max-width: 720px) {
  .app-header { display: grid; grid-template-columns: 64px 64px minmax(32px, 1fr) auto; gap: 8px 16px; padding: 16px 20px 12px; }
  .app-brand { grid-column: 1/3; grid-row: 1; }
  .app-header-auth { grid-column: 3/5; grid-row: 1; margin-left: 0; justify-self: end; gap: 0; }
  .app-header .guide-restore-button { font-size: 12px; line-height: 18px; }
  .app-navigation { display: contents; }
  .app-navigation a { grid-row: 2; font-size: 14px; min-height: 32px; padding-bottom: 6px; }
  .app-navigation a:first-child { grid-column: 1; }
  .app-navigation a:nth-child(2) { grid-column: 2; }
  .app-help { grid-column: 3; grid-row: 2; align-self: center; font-size: 12px; line-height: 18px; }
  .app-header .account-menu-shell { grid-column: 4; grid-row: 2; }
  .app-header .account-menu-trigger { min-height: 32px; padding: 4px 0; max-width: 100px; font-size: 12px; line-height: 18px; }
  .console-main { min-height: calc(100dvh - 108px); padding: 32px 20px 40px; gap: 24px; }
  .console-app h1, .app-heading h1 { font-size: 24px; line-height: 30px; }
  .app-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .app-card { padding: 20px; }
  .app-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .app-actions { align-items: stretch; }
  .app-actions :is(button, a) { max-width: 100%; }
  .app-data-table :is(th, td) { padding: 12px; }
  .console-app :is(.drawer, .store-panel-drawer) { width: 100%; max-width: 100%; }
  .console-app :is(.drawer-head, .store-panel-head, .store-panel-content, .drawer-section, .store-panel-footer, .drawer-footer) { padding: 20px; }
  #firstRunGuideMount { right: 20px; bottom: 20px; }
  .console-app .first-run-guide.expanded { padding: 20px; max-height: calc(100dvh - 158px); }
}

@media (prefers-reduced-motion: reduce) {
  .console-app *, .console-app *::before, .console-app *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
}

/* Home and account presentation. Data, credentials and mutations stay in route owners. */
.workspace-home .home-records { min-width: 0; width: 100%; }
.workspace-home .home-record-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: start; font-size: 14px; line-height: 22px; }
.workspace-home .home-record-row > * { min-width: 0; overflow-wrap: anywhere; }
.workspace-home .home-record-row p { margin: 4px 0 0; font-size: 12px; line-height: 18px; }
.workspace-home .home-record-row > :nth-child(n + 3) { color: var(--muted); }
.workspace-home .home-record-title { color: var(--ink); text-decoration: none; font-weight: 400; }
.workspace-home .home-record-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.workspace-home .home-record-secondary { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 18px; }
.workspace-home .home-active-record { grid-template-columns: minmax(0, 1fr) auto; }
.workspace-home .home-empty-row { display: grid; gap: 12px; padding: 16px 0; border: 0; background: transparent; }
.workspace-home .home-empty-row h3 { margin: 0; font-size: 18px; font-weight: 500; line-height: 26px; }
.workspace-home .home-empty-row button { justify-self: start; }
.workspace-home .home-list-row { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.75fr) auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); background: transparent; align-items: start; }
.workspace-home .home-list-row strong { font-size: 14px; line-height: 22px; font-weight: 400; }
.workspace-home .home-list-row p, .workspace-home .row-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.workspace-home .home-row-actions { display: flex; align-items: start; flex-wrap: wrap; }
.workspace-home .home-status { padding: 0; min-height: 0; background: transparent; border: 0; font-size: 14px; line-height: 22px; }
.workspace-home .home-status i { display: none; }
.workspace-home .home-allowance-card { gap: 16px; box-shadow: none; border-radius: 8px; }
.workspace-home .home-guide-progress { color: var(--muted); font-size: 12px; line-height: 18px; }
.workspace-home .home-workspace-actions { margin-top: 0; }
.workspace-home .home-workspace-actions .store-world-next-button { min-height: 44px; }
.account-mobile-label { display: none; }

/* The guide is one persistent, explicitly opened reminder. */
#firstRunGuideMount .first-run-guide-action { width: 100%; min-height: 44px; margin-top: 16px; }

.client-connection-materials { display: grid; gap: 20px; margin: 0; }
.client-connection-materials > div { display: grid; gap: 8px; min-width: 0; }
.client-connection-materials dt { color: var(--ink); font-size: 14px; line-height: 22px; }
.client-connection-materials dd { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.client-connection-materials code { flex: 1; min-width: 0; color: var(--ink); background: none; overflow-wrap: anywhere; font: 14px/22px var(--sans); }
.client-connection-materials .icon-copy { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 32px; padding: 6px; border: 0; background: transparent; color: var(--muted); }
.client-connection-materials .icon-copy svg { width: 16px; height: 16px; }
.client-version-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 12px; line-height: 18px; color: var(--muted); }
.client-observed-activity { padding: 16px; border-bottom: 1px solid var(--line); }
.client-observed-activity p + p { margin-top: 4px; }

.agent-connection.global-connect { gap: 32px; }
.agent-connection .global-connect-tabs { gap: 12px; }
.agent-connection .global-connect-tabs button { min-height: 44px; margin: 0; padding: 10px 12px; font-size: 14px; line-height: 22px; }
.agent-connection .global-connect-setup { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.agent-connection .global-connect-setup h2 { margin: 0 0 16px; font-size: 16px; line-height: 24px; }
.agent-connection .global-connect-steps p { font-size: 14px; line-height: 22px; }
.agent-connection .agent-endpoint { display: grid; gap: 8px; }
.agent-connection .agent-endpoint > span { color: var(--muted); font-size: 12px; line-height: 18px; }
.agent-connection .global-connect-endpoint-row { margin: 0; border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.agent-connection .global-connect-task { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 14px; line-height: 22px; }
.agent-connection .global-connect-handoff a { margin: 0; font-size: 14px; }
.agent-connection .global-connect-boundary { background: var(--soft); border: 0; border-radius: 4px; }
.agent-connection .global-connect-advanced { display: block; }
.agent-connection .global-connect-advanced summary { font-size: 14px; line-height: 22px; font-weight: 500; }
.agent-connection .global-connect-advanced > p { margin-top: 16px; font-size: 14px; line-height: 22px; }
.agent-connection .global-connect-advanced-row { flex-wrap: wrap; }
.agent-connection [data-oauth-grants-ledger] { min-width: 0; overflow-wrap: anywhere; }

.account-surface.settings-page-shell { max-width: none; gap: 24px; }
.account-surface .settings-context-heading { margin: 0; }
.account-surface .settings-context-heading h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 500; }
.account-surface .settings-context-heading p { margin: 0; }
.account-surface.settings-page-shell .settings-section-nav { gap: 4px 8px; padding: 0; margin: 0; border: 0; background: transparent; }
.account-surface.settings-page-shell .settings-section-nav a { min-height: 44px; margin: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 12px; color: var(--muted); background: transparent; font-weight: 400; font-size: 14px; line-height: 22px; }
.account-surface.settings-page-shell .settings-section-nav a[aria-current="page"] { border-bottom-color: var(--nav-indicator); color: var(--nav-selected); background: transparent; }
.account-surface .account-admin-page, .account-surface .connection-settings-page, .account-surface .billing-settings { display: grid; gap: 20px; }
.account-surface .account-admin-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.account-surface .app-card { border-radius: 8px; padding: 24px; box-shadow: none; gap: 16px; }
.account-surface .app-card h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.account-surface .app-card p { font-size: 14px; line-height: 22px; }
.account-surface .settings-key-use { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.account-surface .settings-key-use > div { display: grid; gap: 12px; align-content: start; }
.account-surface .settings-key-use > div > * { margin: 0; }
.account-surface .workspace-admin-row, .account-surface .settings-key-row, .account-surface .account-member-row, .account-surface .account-invite-row { padding: 16px 0; border-color: var(--line); background: transparent; }
.account-surface .workspace-admin-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.account-surface .workspace-admin-row:last-child { border-bottom: 0; }
.account-surface .workspace-admin-row h2 { font-size: 14px; line-height: 22px; font-weight: 400; }
.account-surface .workspace-capacity-contract { margin: 0; background: var(--soft); border: 0; border-radius: 4px; }
.account-surface .settings-key-workspace, .account-surface .settings-status-pill { background: var(--soft); color: var(--ink); border-radius: 4px; }
.account-surface .billing-current-head { display: grid; gap: 16px; }
.account-surface .billing-current-role { display: block; color: var(--ink); font-size: 18px; line-height: 26px; font-weight: 500; }
.account-surface .billing-current-title { margin-top: 16px; }
.account-surface .billing-current-title h2 { font-size: 14px; line-height: 22px; }
.account-surface .billing-current-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; border: 0; }
.account-surface .billing-current-facts > div { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(0, 1fr); gap: 16px; padding: 8px 0; }
.account-surface .billing-current-facts dt, .account-surface .billing-current-facts dd { margin: 0; font-size: 14px; line-height: 22px; font-weight: 400; }
.account-surface .billing-current-links { margin: 0; padding: 0; }
.account-surface .billing-settings .billing-usage-note { margin: 0; }
.account-surface .billing-compare { display: grid; gap: 16px; }
.account-surface .billing-plan-card { box-shadow: none; border-color: var(--line); background: transparent; }

.usage-details-document.app-main { gap: 20px; }
.usage-details-document .app-card { gap: 16px; box-shadow: none; padding: 24px; border-radius: 8px; }
.usage-details-document .app-card h3 { font-size: 18px; line-height: 26px; font-weight: 500; }
.usage-details-document .usage-allowance-inset { border: 0; background: var(--soft); border-radius: 4px; }
.signed-out-session.app-page { max-width: 800px; margin-inline: auto; }
.signed-out-session .signed-out-session-copy { gap: 16px; border-radius: 8px; box-shadow: none; }
.signed-out-session .signed-out-session-copy h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 500; }
.signed-out-session .signed-out-session-copy p { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.contextual-help-region.app-card { margin: 0 0 20px; padding: 20px; border-radius: 8px; box-shadow: none; }
.contextual-help-region.app-card h3 { font-size: 18px; line-height: 26px; font-weight: 500; }
.contextual-help-region.app-card p, .contextual-help-region.app-card li { font-size: 14px; line-height: 22px; }

@media (max-width: 720px) {
  .workspace-home .home-record-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
  .workspace-home .home-record-row > :first-child { grid-column: 1 / -1; }
  .workspace-home .home-list-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; }
  .workspace-home .home-row-actions { justify-content: flex-start; }
  .workspace-home .home-workspace-actions { flex-direction: column; align-items: stretch; }
  .workspace-home .home-workspace-actions > * { justify-content: center; text-align: center; }
  .workspace-home .app-facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .workspace-home .home-active-record .app-actions { grid-column: 1 / -1; }
  .account-workspace-label { display: none; }
  .account-mobile-label { display: inline; }
  .agent-connection.global-connect { gap: 20px; }
  .agent-connection .global-connect-endpoint-row { flex-wrap: wrap; }
  .agent-connection .global-connect-advanced-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .agent-connection .global-connect-advanced-row button { justify-self: start; }
  .account-surface .app-card, .usage-details-document .app-card { padding: 20px; }
  .account-surface .settings-context-heading h1, .signed-out-session .signed-out-session-copy h1 { font-size: 24px; line-height: 30px; }
  .account-surface .settings-key-use { grid-template-columns: minmax(0, 1fr); }
  .account-surface .billing-current-facts > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .client-connection-materials dd { padding: 10px; }
  .signed-out-session .signed-out-session-copy { padding: 20px; }
}

.agent-setup-details > summary { cursor: pointer; color: var(--muted); font-size: 12px; line-height: 18px; }
.agent-setup-details[open] { display: grid; gap: 16px; }
.agent-setup-details[open] > * + * { margin-top: 16px; }
.agent-task-handoff > summary { display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; border-radius: 6px; padding: 10px 12px; background: var(--accent); color: var(--on-accent); font-size: 14px; line-height: 22px; }
.agent-task-handoff > summary::-webkit-details-marker { display: none; }
.agent-task-handoff[open] > * + * { margin-top: 16px; }
.agent-task-handoff > summary:focus-visible, .agent-setup-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Run evidence uses the same page, card and fact hierarchy as the Store workspace. */
#viewReportDetail.run-evidence-page,
#viewVstorePlayback.run-evidence-page,
#viewRunDetail.run-evidence-page { gap: 24px; }
.run-evidence-page .integrated-store-run-chrome { gap: 24px; margin: 0; }
.run-evidence-page .integrated-run-heading { align-items: start; }
.run-evidence-page .integrated-run-heading > div { display: grid; gap: 8px; min-width: 0; }
.run-evidence-identity { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.retained-run-back { justify-self: start; }
#viewReportDetail.run-evidence-page > .report-detail-page {
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
#viewReportDetail .receipt-document.run-evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 32px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
}
.run-evidence-layout > *,
.run-evidence-layout :is(.receipt-card, .receipt-accordion-body, .receipt-call-table-wrap, .report-table-wrap) { min-width: 0; }
#viewReportDetail .run-evidence-layout :is(.receipt-main, .receipt-context, .receipt-answer-layer) {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#viewReportDetail .run-evidence-layout :is(.receipt-main, .receipt-context) > * { width: 100%; }
#viewReportDetail .run-evidence-layout .app-card { grid-template-columns: minmax(0, 1fr); }
#viewReportDetail .run-evidence-layout :is(.app-card, .receipt-result-semantics, .receipt-evaluation-context, .receipt-mcp-discovery) {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
  padding: 24px;
}
#viewReportDetail .run-evidence-layout :is(h2, h3) {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: normal;
}
#viewReportDetail .run-evidence-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
#viewReportDetail .run-evidence-layout :is(.receipt-evaluation-card, .receipt-result-semantics, .receipt-recorded-changes, .receipt-gate-card, .receipt-actions-primary, .receipt-export-actions) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
#viewReportDetail .run-evidence-layout .receipt-hero {
  display: grid;
  gap: 16px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
#viewReportDetail .run-evidence-layout .receipt-verdict[data-receipt-verdict-hero] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
#viewReportDetail .run-evidence-layout .receipt-verdict[data-receipt-verdict-hero] > * { grid-column: auto; grid-row: auto; justify-self: start; text-align: left; }
#viewReportDetail .run-evidence-layout .receipt-verdict[data-receipt-verdict-hero] > strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
#viewReportDetail .run-evidence-layout .receipt-verdict[data-receipt-verdict-hero] > :is(em, .receipt-verdict-supporting, .receipt-gate-note) {
  position: static;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-style: normal;
}
#viewReportDetail .run-evidence-layout :is(.receipt-spine-footprint, .receipt-evaluation-answers, .receipt-technical-summary, .receipt-environment-facts) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
#viewReportDetail .run-evidence-layout :is(.receipt-evaluation-answers, .receipt-technical-summary) > div {
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
}
#viewReportDetail .run-evidence-layout :is(.receipt-evaluation-answers, .receipt-technical-summary, .receipt-spine-footprint) :is(span, p) { font-size: 12px; line-height: 18px; }
#viewReportDetail .run-evidence-layout :is(.receipt-evaluation-answers, .receipt-technical-summary, .receipt-spine-footprint) strong { font-size: 14px; line-height: 22px; font-weight: 400; }
#viewReportDetail .run-evidence-layout .receipt-spine-footprint { gap: 4px; }
#viewReportDetail .run-evidence-layout .receipt-spine-footprint > p { grid-column: auto; }
#viewReportDetail .run-evidence-layout .receipt-scope-boundary { margin: 0; padding: 0; font-size: 12px; line-height: 18px; }
#viewReportDetail .run-evidence-layout :is(.receipt-spine-record, .receipt-spine-facts) .layout-heading-owned-group { padding: 0; }
#viewReportDetail .run-evidence-layout .receipt-record-timeline { margin-top: 16px; }
#viewReportDetail .run-evidence-layout .receipt-record-timeline li { border-color: var(--line); }
#viewReportDetail .run-evidence-layout .receipt-modeled-details > summary,
#viewReportDetail .run-evidence-layout .receipt-accordion > summary {
  min-height: 24px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}
#viewReportDetail .run-evidence-layout .receipt-accordion[open] > .receipt-accordion-body,
#viewReportDetail .run-evidence-layout .receipt-modeled-details[open] > .receipt-modeled-outcome { margin-top: 20px; }
#viewReportDetail .run-evidence-layout .receipt-accordion-body {
  gap: 20px;
  border: 0;
  background: transparent;
  padding: 0;
}
#viewReportDetail .run-evidence-layout .receipt-accordion-body .receipt-card,
#viewReportDetail .run-evidence-layout .receipt-modeled-outcome { border: 0; background: transparent; padding: 0; }
#viewReportDetail .run-evidence-layout .receipt-evidence-nav { display: flex; flex-direction: column; gap: 0; }
.receipt-evidence-nav h2 { margin-bottom: 8px; }
.receipt-evidence-link {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 16px 12px;
  text-align: left;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  white-space: normal;
}
.receipt-evidence-link:last-child { border-bottom: 0; }
.receipt-evidence-link small { color: var(--muted); font-size: 12px; line-height: 18px; }
button.receipt-evidence-link:hover { background: var(--soft); color: var(--ink); }
.run-evidence-layout :is(button, .primary-button, .secondary-button) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.run-evidence-layout :is(pre, code) { max-width: 100%; }
.run-evidence-layout :is(dt, dd) { overflow-wrap: anywhere; }
.run-evidence-layout pre { overflow: auto; white-space: pre; }
.run-evidence-layout :is(.report-table-wrap, .receipt-call-table-wrap, .receipt-change-register, .receipt-facts-table) { max-width: 100%; overflow-x: auto; }
.run-evidence-layout :is(.receipt-call-filters, .receipt-call-pagination, .receipt-card-head, .receipt-actions-visible) { flex-wrap: wrap; }
.run-evidence-layout .receipt-actions-visible { justify-content: start; gap: 12px; }
.run-evidence-layout .receipt-automation-panel { max-width: 100%; overflow-x: auto; }

/* Run activity owns the page; Store totals and time controls support it. */
#viewVstorePlayback .run-evidence-playback { grid-template-columns: minmax(0, 1fr); gap: 24px; }
#viewVstorePlayback .run-evidence-playback .run-main { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#viewVstorePlayback .run-receipt-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
#viewVstorePlayback .run-receipt-status > div { min-width: 0; }
#viewVstorePlayback .run-receipt-label { display: block; color: var(--muted); font-size: 12px; line-height: 18px; margin-bottom: 4px; }
#viewVstorePlayback .run-receipt-status strong { font-size: 16px; line-height: 24px; font-weight: 500; }
#viewVstorePlayback .run-receipt-status p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 22px; }
#viewVstorePlayback .run-receipt-status button { flex-shrink: 0; }
#viewVstorePlayback .run-activity-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#viewVstorePlayback .run-activity-card { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
#viewVstorePlayback .run-activity-card > span { font-size: 14px; line-height: 22px; color: var(--muted); }
#viewVstorePlayback .run-activity-card > strong { font-size: 28px; line-height: 34px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
#viewVstorePlayback .run-activity-card > small { font-size: 12px; line-height: 18px; color: var(--muted); }
#viewVstorePlayback .run-store-state { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12px; line-height: 18px; }
#viewVstorePlayback .run-store-state :is(strong, b) { font-weight: 500; color: var(--ink); }
#viewVstorePlayback .run-store-state small { font-size: inherit; margin-left: auto; }
#viewVstorePlayback .run-evidence-playback .run-main > section.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: none; padding: 24px; }
#viewVstorePlayback .run-evidence-playback .panel-head { min-width: 0; flex-wrap: wrap; gap: 8px 12px; padding: 0 0 12px; }
#viewVstorePlayback .run-evidence-playback #vstorePlaybackActionPanel .observe-clock-card { padding: 0; gap: 12px; }
#viewVstorePlayback .run-controls-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
#viewVstorePlayback .run-time-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
#viewVstorePlayback .run-time-summary > span { color: var(--muted); font-size: 14px; line-height: 22px; }
#viewVstorePlayback .run-time-summary strong { font-size: 18px; line-height: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
#viewVstorePlayback .run-time-summary small { color: var(--muted); font-size: 12px; line-height: 18px; }
#viewVstorePlayback .run-controls-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 16px; }
#viewVstorePlayback .run-controls-help { color: var(--muted); font-size: 12px; line-height: 18px; margin: 0; }
#viewVstorePlayback #vstorePlaybackActionPanel .observe-progress-bar { height: 4px; background: var(--soft); }
#viewVstorePlayback .run-finish-options > summary { color: var(--accent); font-size: 14px; line-height: 22px; cursor: pointer; padding: 4px 0; }
#viewVstorePlayback .run-finish-options[open] { grid-column: 1 / -1; }
#viewVstorePlayback .run-finish-options .observe-finish-actions { margin-top: 12px; gap: 16px; }
#viewVstorePlayback .run-finish-options .observe-finish-choice { padding: 16px; background: var(--panel); }
#viewVstorePlayback .run-finish-options .observe-finish-choice[data-state="working"] { background: var(--soft); }
#viewVstorePlayback .run-finish-options .observe-finish-choice[data-state="armed"] { background: var(--soft); border-color: var(--accent); box-shadow: none; }
#viewVstorePlayback .run-finish-options .observe-finish-choice[data-state="armed"] .finish-check-button { background: var(--accent); border-color: var(--accent); }
#viewVstorePlayback .run-finish-options .inline-confirm-line { color: var(--ink); }
#viewVstorePlayback .run-evidence-playback .vstore-call-toolbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; background: transparent; }
#viewVstorePlayback .run-evidence-playback .call-filter-group { flex: 1 1 100%; }
#viewVstorePlayback .run-evidence-playback .call-log-operation { flex: 1 1 160px; min-width: 0; }
#viewVstorePlayback .run-evidence-playback .call-log-search { flex: 2 1 200px; min-width: 0; }
#viewVstorePlayback .run-evidence-playback .call-log-day { flex: 0 1 80px; min-width: 0; }
#viewVstorePlayback .run-evidence-playback .call-filter-chip.active { border-color: var(--nav-indicator); background: var(--soft); color: var(--nav-selected); }
#viewVstorePlayback .run-evidence-playback .run-banner { border: 1px solid var(--line); background: var(--soft); color: var(--ink); padding: 16px 24px; }
#viewVstorePlayback .run-context-details > summary { color: var(--muted); font-size: 14px; line-height: 22px; cursor: pointer; padding: 8px 0; }
#viewVstorePlayback .run-context-details .vstore-playback-context { position: static; margin-top: 12px; padding: 16px 0; box-shadow: none; background: transparent; }
#viewVstorePlayback :is(.run-finish-options, .run-context-details) > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.gate-page.app-page { gap: 24px; }
.gate-page.app-page .gate-summary-grid { display: flex; flex-direction: column; gap: 20px; }
.gate-page.app-page .gate-summary-grid > * { width: 100%; }
.gate-page.app-page .gate-panel { margin: 0; }
.exam-page.app-page { gap: 24px; }
.exam-page.app-page .exam-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: none; padding: 24px; }
.exam-page.app-page .exam-grid { gap: 20px; }
.exam-page.app-page :is(pre, table) { max-width: 100%; }
.exam-page.app-page pre { overflow: auto; }

:is(#viewConsole, .store-console-host) .practice-console-shell.app-page { gap: 24px; color: var(--ink); }
:is(#viewConsole, .store-console-host) .practice-console-shell.app-page .practice-console-pane { padding: 24px; background: var(--panel); }
:is(#viewConsole, .store-console-host) .practice-console-shell.app-page .practice-console-toolbar { gap: 12px; padding: 16px 0; border-block: 1px solid var(--line); }
:is(#viewConsole, .store-console-host) .practice-console-shell.app-page .practice-console-pane-switch .link-button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 0 12px; }
:is(#viewConsole, .store-console-host) .practice-console-shell.app-page .practice-console-pane-switch .link-button[aria-pressed="true"] { border-bottom-color: var(--nav-indicator); color: var(--nav-selected); }

@media (max-width: 720px) {
  #viewReportDetail .receipt-document.run-evidence-layout,
  #viewVstorePlayback .run-evidence-playback { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .run-evidence-page .integrated-run-heading { flex-wrap: wrap; }
  #viewReportDetail .run-evidence-layout :is(.app-card, .receipt-result-semantics, .receipt-evaluation-context, .receipt-mcp-discovery),
  #viewVstorePlayback .run-evidence-playback .run-main > section.panel,
  .exam-page.app-page .exam-card,
  :is(#viewConsole, .store-console-host) .practice-console-shell.app-page .practice-console-pane { padding: 20px; }
  .run-evidence-layout .app-actions > :is(button, a) { width: 100%; }
  #viewVstorePlayback .run-receipt-status { align-items: start; flex-direction: column; }
  #viewVstorePlayback .run-activity-summary { gap: 8px; }
  #viewVstorePlayback .run-activity-card { padding: 16px 12px; gap: 8px; }
  #viewVstorePlayback .run-activity-card > span { min-height: 36px; font-size: 12px; line-height: 18px; }
  #viewVstorePlayback .run-activity-card > strong { font-size: 24px; line-height: 30px; }
  #viewVstorePlayback .run-store-state { gap: 8px 16px; }
  #viewVstorePlayback .run-store-state small { width: 100%; margin-left: 0; }
  #viewVstorePlayback .run-time-summary { gap: 4px 12px; }
  #viewVstorePlayback .run-time-summary small { flex-basis: 100%; }
  #viewVstorePlayback .run-finish-options .observe-finish-actions { grid-template-columns: minmax(0, 1fr); }
  #viewVstorePlayback .run-controls-heading > .vstore-check-action-buttons { flex-wrap: wrap; }
  .run-evidence-layout :is(.receipt-call-table, .report-table) { min-width: 560px; }
  .run-evidence-layout .receipt-call-inspector { width: 100%; max-width: 100%; }
  .exam-page.app-page .exam-grid { grid-template-columns: minmax(0, 1fr); }
}

.stores-page,
.retained-runs-page,
.store-creation-choice,
.stores-overview {
  min-width: 0;
}

.stores-section,
.stores-section-heading,
.stores-overview .app-card,
.retained-runs-page .app-card,
.store-creation-choice .app-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.stores-section h2,
.stores-overview h2,
.retained-runs-page h2,
.store-creation-choice h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.stores-section-heading > button { align-self: flex-start; }
.store-connection-actions { flex-direction: column; align-items: stretch; }
.store-connection-actions a { text-align: center; }

.stores-section p,
.stores-overview .app-card > p,
.retained-runs-page p,
.store-creation-choice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.stores-section .approved-store-capacity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.stores-section .approved-store-capacity strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.stores-records {
  width: 100%;
  min-width: 0;
}

.stores-data-labels,
.stores-data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 144px));
  align-items: start;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 16px;
  box-sizing: border-box;
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
}

.stores-data-labels {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.stores-data-row {
  border-bottom: 1px solid var(--line);
}

.stores-data-row[data-fleet-item] {
  cursor: pointer;
}

.stores-data-row[data-fleet-item]:hover {
  background: var(--soft);
}

.stores-data-row[data-fleet-item]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.stores-row-identity,
.stores-row-value {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
  overflow-wrap: anywhere;
}

.stores-row-identity strong,
.stores-row-value strong {
  font-weight: 500;
}

.stores-row-identity > span,
.stores-row-value,
.stores-note {
  color: var(--muted);
}

.stores-row-identity > span {
  font-size: 12px;
  line-height: 18px;
}

.stores-row-actions,
.stores-row-actions .store-delete-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
}

.stores-row-actions .link-button {
  min-height: 28px;
  padding: 2px 0;
  font-size: 12px;
  line-height: 18px;
}

.stores-mobile-label {
  display: none;
}

.stores-dev-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stores-dev-row > div:first-child {
  display: grid;
  gap: 4px;
}

.stores-dev-row > div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.stores-sample-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.stores-sample-row .store-actions,
.stores-dev-row .store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stores-hidden-sample > summary,
.stores-previous > summary {
  width: fit-content;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
}

.stores-hidden-sample .contextual-help-region > h3 {
  display: none;
}

.stores-overview .app-main,
.stores-overview .app-context {
  min-width: 0;
}

body[data-console-route="store"] .store-workspace-frame.app-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 0;
}

.store-workspace-frame .store-app-heading .app-kicker {
  text-transform: uppercase;
}

.store-app-heading .app-kicker a {
  color: inherit;
  text-decoration: none;
}

.store-workspace-frame.app-page .store-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  overflow: visible;
  border: 0;
  padding: 0;
}

.store-workspace-frame.app-page .store-workspace-tabs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  box-sizing: border-box;
}

.store-workspace-frame.app-page .store-workspace-tabs a[aria-selected="true"] {
  border-bottom-color: var(--nav-indicator);
  background: transparent;
  color: var(--nav-selected);
}

.stores-overview .store-overview-latest-head {
  align-items: flex-start;
}

.stores-overview .store-overview-latest-head h2 {
  margin-bottom: 8px;
}

.stores-overview .store-overview-latest-head p {
  font-size: 14px;
  line-height: 22px;
}

.stores-overview .store-overview-situation {
  margin: 0;
  border: 1px solid var(--line);
}

.stores-overview .app-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.stores-overview .app-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 16px;
  padding: 8px 0;
}

.stores-overview .app-facts dt,
.stores-overview .app-facts dd {
  order: unset;
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.stores-overview .app-facts dt {
  color: var(--muted);
  font-weight: 400;
}

.stores-overview .app-facts dd {
  color: var(--ink);
  font-weight: 500;
}

.stores-overview .store-overview-choices {
  margin: 0;
}

.stores-overview .store-overview-choice {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 12px;
}

.stores-overview .store-overview-choice:hover:not(:disabled) {
  background: var(--soft);
}

.stores-overview .store-overview-choice em,
.stores-overview .store-overview-choice small {
  font-size: 12px;
  line-height: 18px;
}

.stores-overview .store-overview-included-note,
.stores-overview .store-run-quote-retry,
.stores-overview .store-overview-history-metric,
.stores-overview .store-overview-history-note {
  margin: 0 !important;
}

.stores-overview .store-overview-history-metric {
  gap: 4px;
}

.stores-overview .store-overview-history-metric strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.stores-overview .store-baseline-zoom-button {
  min-height: 44px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 400;
}

.stores-overview .store-baseline-zoom-button[aria-pressed="true"],
.stores-overview .store-baseline-zoom-button[aria-pressed="true"]:hover {
  border-bottom-color: var(--nav-indicator);
  background: transparent;
  color: var(--nav-selected);
}

.stores-overview .baseline-revenue-line {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.stores-overview .baseline-demand-bar {
  fill: var(--muted);
  opacity: .24;
}

.stores-overview .store-contents {
  margin: 0;
  box-shadow: none;
}

.stores-overview .stores-data-labels,
.stores-overview .stores-inventory-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, .75fr) minmax(0, 1.1fr);
}

.stores-overview .stores-inventory-row .stores-row-value {
  color: var(--ink);
}

.stores-recent-runs .store-overview-recent {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stores-recent-runs .store-overview-recent .eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.stores-recent-runs .store-overview-run-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 16px 0;
}

.stores-recent-runs .store-overview-run-actions {
  justify-content: flex-start;
}

.stores-recent-runs .lineage-id-chip {
  max-width: 100%;
}

.stores-previous .store-run-list {
  margin: 12px 0 0;
}

.stores-previous .store-run-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.retained-run-list {
  display: grid;
  gap: 12px;
}

.retained-run-row {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 16px;
  background: var(--panel);
  overflow-wrap: anywhere;
}

.retained-run-row .link-button {
  min-height: 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.retained-run-row p {
  font-size: 12px;
  line-height: 18px;
}

@media (max-width: 1000px) {
  .stores-data-labels,
  .stores-data-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 110px));
  }

  .stores-dev-row,
  .stores-sample-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stores-sample-row .store-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .stores-data-labels {
    display: none;
  }

  .stores-data-row,
  .stores-overview .stores-inventory-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .stores-row-identity,
  .stores-row-value {
    width: 100%;
  }

  .stores-row-value {
    display: block;
    font-size: 12px;
    line-height: 18px;
  }

  .stores-mobile-label {
    display: inline;
    color: var(--muted);
    font-size: inherit;
    line-height: inherit;
  }

  .stores-mobile-label::after {
    content: ": ";
  }

  .stores-overview .store-overview-latest-head,
  .stores-overview .store-overview-history > header,
  .stores-recent-runs .store-overview-recent > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stores-overview .store-overview-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .stores-overview .app-facts > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
  }

  .stores-recent-runs .store-overview-recent {
    padding: 20px;
  }

  .stores-recent-runs .store-overview-run-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

}
