: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;
}

* { 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-weight: var(--w-reg);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  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);
  font-size: 14px;
  text-decoration: none;
}

a.secondary-button.small-button {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.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: 12px;
}

.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);
}

.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: 15px;
  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: 10.5px;
  font-weight: var(--w-semi);
  letter-spacing: 0.02em;
}

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

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

.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: 12.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.workspace-switcher-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  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: 11px;
  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-option > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  font-weight: var(--w-med);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-option i {
  color: var(--accent);
  font-size: 11px;
  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: 11px;
  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: 9.5px;
}

.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: 14px;
}

.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 {
  min-width: 0;
  padding: 18px 26px 34px;
}

.command {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(260px, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  margin-bottom: 16px;
}

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

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

.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: 13px;
  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: 12px;
  line-height: 1.45;
}

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

.auth-field {
  display: grid;
  justify-items: end;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
  gap: 5px;
  align-self: end;
  min-height: 36px;
}
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.auth-legal {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}
.auth-legal a { color: inherit; }
.auth-legal a:hover { color: var(--accent-dark); }
.auth-user {
  font-size: 13px;
  font-weight: var(--w-med);
  color: var(--ink);
  white-space: nowrap;
}
#signOutButton {
  background: none;
  color: var(--muted);
  border: 1px solid var(--line);
}
#signOutButton:hover {
  background: var(--panel);
  color: var(--ink);
}

.search-field {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#connectionDetails[hidden] ~ .search-field {
  grid-column: 1 / 3;
  justify-self: start;
  width: min(760px, 100%);
}

.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: 13px;
}

.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: #f0b9b5;
  background: #fff7f6;
  color: var(--red-ink);
}

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

.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: 13px;
}

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

.archived-workspace-banner a {
  color: var(--amber-ink);
  font-size: 12px;
  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: 26px;
  line-height: 1.08;
}

.mode-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  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: 11px;
  font-weight: var(--w-med);
  text-transform: uppercase;
}

.mode-stats strong {
  color: var(--ink);
  font-size: 18px;
  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: 12px;
  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: 13px;
  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: 12px/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: 11px;
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity strong {
  display: block;
  font-size: 13px;
  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: 10px;
  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: 28px;
  line-height: 1.05;
  font-weight: var(--w-semi);
}

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

.record-head h1 {
  font-size: 32px;
}

.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: 24px;
  line-height: 1;
}

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

.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: 20px;
}

.store-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  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: 17px;
  font-weight: var(--w-bold);
}

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

.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: 11px;
  opacity: 0.72;
}

.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: 15px;
  font-weight: var(--w-bold);
}

.coverage-agent-group-head span {
  color: var(--muted);
  font-size: 12px;
  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: 13px;
}

.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-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: 12px;
}

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

.coverage-row-status,
.coverage-row-faced {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.coverage-run-count {
  color: var(--muted);
  font-size: 12px;
  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: 15px;
  font-weight: var(--w-bold);
}

.coverage-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  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: 13px;
  line-height: 1.35;
}

.coverage-card-line b {
  color: var(--muted);
  font-size: 11px;
  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%);
  display: grid;
  gap: 16px;
  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: 18px;
}

.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: 16px;
}

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

.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 {
  color: var(--ink);
}

.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;
}

.coverage-sample {
  order: 20;
}

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

.panel,
.table-wrap,
.launch-preview,
.report-detail,
.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;
  font-size: 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: 11px;
  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: 11px;
  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-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: 17px;
  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;
}

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

.vstore-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.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: 12px;
  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 {
  max-width: 520px;
}

.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: 13px;
  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: 12px;
  line-height: 1.35;
}

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

.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: 13px;
  line-height: 1.25;
}

.suite-template-option span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
  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: 12px;
  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: 12px;
  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: 13px;
}

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

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

.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: 12px;
}

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

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

.suite-matrix-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  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: 11px;
  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: 14px;
  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: 28px;
  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: 13px;
  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: 13px;
  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: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-verdict strong {
  font-size: 20px;
  line-height: 1.1;
}

.gate-verdict p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  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: 22px;
  line-height: 1;
}

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

.gate-stat em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  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: 20px;
  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: 13.5px;
}

.suite-history-row p,
.suite-history-empty {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 15px;
}

.gate-step p,
.gate-step-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  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: 12px;
}

.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: 12px;
  line-height: 1.45;
  white-space: pre;
}

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

.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: 12px;
  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: 28px;
  line-height: 1.1;
}

.account-admin-heading p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  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: 10px;
  font-weight: var(--w-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-admin-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  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: 20px;
}

.account-name-readonly {
  margin-top: 16px;
  font-size: 18px;
  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: 12px;
}

.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: 11px;
}

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

.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: 12px;
}

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

.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: 14px; }
.invitation-created p { font-size: 12px; 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: 12px;
}

.account-invite-head {
  color: var(--muted);
  font-size: 10px;
  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: 12px; 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: 12px; }
.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: 15px; }
.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: 30px; }
.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: 20px; }
.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: 10px; font-weight: var(--w-semi); letter-spacing: .07em; text-transform: uppercase; }
.invitation-card dd { margin: 0; font-size: 13px; }
.invitation-scope { color: var(--gray-ink) !important; font-size: 12px; 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: 12px;
}

.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-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: 17px; }
.workspace-admin-identity p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.workspace-lifecycle { font-size: 11px; 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: 12px; }
.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: 11px; }

.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: 12px; }
.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: 15px; }
.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: 12px; font-variant-numeric: tabular-nums; }

.account-keys-table { display: grid; }
.account-key-row {
  grid-template-columns: minmax(130px, 1fr) minmax(120px, .9fr) minmax(100px, .7fr) minmax(135px, .9fr) minmax(100px, .7fr) minmax(170px, auto);
  gap: 10px;
}
.account-key-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--w-semi);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.archived-key-note { margin-bottom: 10px; }

@media (max-width: 760px) {
  .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 {
    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: 10px; font-weight: var(--w-semi); text-transform: uppercase; }
  .invitation-gated .main { padding: 24px 14px; }
  .invitation-gate-heading h1,
  .invitation-gate-card h1 { font-size: 26px; }
  .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: 12px;
}

.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: 10px;
  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: 13px;
}

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

.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;
}

.connection-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}

.connection-settings-hero h1 {
  max-width: 760px;
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.connection-settings-hero > div > p,
.connection-settings-head p,
.connection-scope-ledger p,
.connection-address-row p,
.connection-operator-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.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: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-scope-summary strong code {
  background: transparent;
  color: inherit;
  font-size: 20px;
}

.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.operator {
  background: var(--soft);
}

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

.connection-scope-ledger h2 {
  margin: 6px 0 9px;
  font-size: 17px;
}

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

.connection-scope-ledger a,
.connection-settings-actions a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 13px;
  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-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.connection-settings-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

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

.connection-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.connection-address-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.connection-address-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.connection-address-row code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.connection-address-row p {
  margin: 0;
}

.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: 12px/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-operator-note summary {
  color: var(--gray-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--w-semi);
}

.account-key-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr) auto;
  align-items: center;
}

.account-key-identity,
.account-key-timestamps {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-key-identity code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--gray-ink);
  font-size: 12px;
}

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

.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: 11px;
}

.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: 12px;
  font-style: normal;
}

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

.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: 12px;
  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: 12px;
}

.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: 12px;
}

.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;
}

/* MEG-73 — 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: 11px; 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: 12px; }
.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: 11px; 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: 12px; }
.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: 12px; }
.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: 30px;
}

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

/* MEG-422: 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: 12px;
  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-panel .upgrade-note-label {
  display: block;
  margin: 4px 0 6px;
  font-size: 13px;
  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: 13px;
  background: #f4f6f8;
  border-radius: 4px;
  padding: 1px 5px;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 16px;
}

.billing-plan-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.billing-plan-card.featured { border-color: var(--purple); box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 18%, transparent); }
.billing-plan-card.current { background: #fbfbff; }
.billing-plan-card.coming-soon { background: #fafafa; }
.billing-plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.billing-plan-heading h2 { margin: 0; font-size: 20px; }
.billing-plan-kicker { color: var(--purple); font-size: 12px; font-weight: var(--w-semi); }
.upgrade-panel .billing-price { margin: 22px 0 2px; color: var(--text); }
.billing-price strong { font-size: 30px; letter-spacing: -0.03em; }
.upgrade-panel .billing-yearly { min-height: 22px; margin: 0 0 12px; font-size: 13px; }
.billing-plan-card ul { min-height: 116px; margin: 8px 0 16px; padding-left: 20px; color: var(--text); line-height: 1.7; }
.billing-plan-card > button,
.billing-checkout-actions { margin-top: auto; }
.billing-checkout-actions { display: grid; gap: 8px; }
.billing-checkout-actions button,
.billing-plan-card > button { width: 100%; }
.upgrade-panel .billing-legal { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.upgrade-panel .billing-legal a { color: var(--purple); }
.upgrade-panel .upgrade-owner-note { margin: 8px 0 0; font-size: 12px; }
.upgrade-panel .billing-usage-note { margin-top: 14px; color: var(--text); }

@media (max-width: 900px) {
  .billing-plan-grid { grid-template-columns: 1fr; }
  .billing-plan-card { min-height: 0; }
  .billing-plan-card ul { min-height: 0; }
}

.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: 13.5px;
}

.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: 12px; 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: 12px;
  font-weight: var(--w-semi);
  padding: 7px 10px;
  white-space: nowrap;
}

.store-world-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(240px, 0.58fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 16px;
}

.store-world-hero.empty {
  grid-template-columns: 1fr;
}

.store-world-copy {
  min-width: 0;
}

.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,
.store-world-hero h1,
.store-world-hero h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.store-world-hero 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: 10px;
  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: 13px;
}

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

.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: 12px;
  font-weight: var(--w-med);
  white-space: nowrap;
}

.store-world-next-button {
  max-width: 220px;
  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: 12px;
  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-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: 17px;
  line-height: 1.2;
}

.store-passport-section-head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
  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: 16px;
  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: 13px;
  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: 11px;
  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: 22px;
  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: 13px;
  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: 13px;
}

.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: 11px;
  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-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.home-journey {
  margin-top: 0;
}

.home-journey .first-receipt-copy h1 {
  max-width: 680px;
  font-size: 28px;
}

.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: 12px;
  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: 13px;
  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: 17px;
  line-height: 1.2;
}

.home-current-store > span:last-of-type {
  color: var(--muted);
  font-size: 13px;
  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: 12px;
  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: 12px;
  line-height: 1.4;
}

.home-safe-default strong {
  color: var(--green-ink);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-store-id {
  color: var(--muted);
  font-size: 12px;
}

.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-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: clamp(26px, 2.25vw, 32px);
  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: 13px;
  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: 13px;
}

.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: 22px;
}

.demo-moment-card h3 {
  font-size: 17px;
}

.demo-moment-card small {
  display: block;
  margin-top: 10px;
  color: var(--gray-ink);
  font-size: 12px;
  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: 12px;
  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: 11px;
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.demo-moment-details dd {
  margin: 0;
  color: var(--gray-ink);
  font-size: 12px;
  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: 12px;
  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: 20px;
  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: 13px;
}

.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: 24px;
  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: 12px;
  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: 11px;
  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: 12px;
}

.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-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: 11px;
}

.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: 12px;
  font-style: normal;
}

.demo-day-counter strong {
  color: var(--ink);
  font-size: 52px;
  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-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: 12px;
  font-style: normal;
}

.demo-replay-log strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  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 span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0;
}

.demo-replay-start span::before {
  content: "▶";
  margin-left: 3px;
  font-size: 18px;
}

.demo-replay-start strong {
  font-size: 15px;
}

.demo-replay-start em {
  color: var(--muted);
  font-size: 12px;
  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: 15px;
}

.demo-replay-idle span {
  font-size: 12px;
}

.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: 20px;
}

.demo-replay-finished p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.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: 12.5px;
  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: 13px;
  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: 18px;
  line-height: 1;
}

.demo-evidence-panel[open] summary::after {
  content: "-";
}

.demo-evidence-panel summary strong {
  color: var(--muted);
  font-size: 12px;
  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: 12px;
  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: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-call-detail-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.demo-call-preview-footer td {
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
}

.demo-evidence-teach,
.demo-evidence-story {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  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: 13px;
}

.demo-call-preview-footer .link-button {
  color: var(--accent);
  font-size: inherit;
  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: 13px;
  font-weight: var(--w-semi);
}

.demo-sticky-cta a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: var(--w-semi);
  text-decoration: none;
}

.demo-sticky-cta a:hover {
  text-decoration: underline;
}

.home-dashboard-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-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: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-orientation-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-orientation-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  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: 22px;
  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: 13px;
  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: 14px;
  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: 13px;
  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: 13.5px;
}

.home-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gray-ink);
  font-size: 12.5px;
  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: 13px;
}

.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);
}

.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: 13px;
}

.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: 13.5px;
}

.home-feed-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  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: 17px;
  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: 12px;
  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: 12px;
}

.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: 14px;
}

.first-empty span {
  color: var(--muted);
  font-size: 13px;
}

.recommendation-actions button {
  width: 100%;
}

.zero-store-empty strong,
.zero-store-empty span {
  display: block;
}

.zero-store-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.zero-store-empty span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.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: 18px;
  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: 11px;
  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: 14px;
  overflow-wrap: anywhere;
}

.store-detail-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
}

.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: 17px;
  line-height: 1.2;
}

.store-baseline-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 11px;
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-baseline-snapshot small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.store-baseline-snapshot strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
  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: 11px;
  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: 11px;
  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: 9px;
  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: 11px;
  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: 9px;
  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: 9px;
  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: 12px;
  pointer-events: none;
  transform: translate(-50%, -112%);
}

.store-baseline-tooltip strong {
  color: var(--ink);
  font-size: 13px;
}

.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: 12px;
  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: 11px;
}

.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: 11px;
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-pressure-head strong {
  color: var(--green-ink);
  font-size: 13px;
}

.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: 11px;
  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: 11px;
  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: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store-baseline-metric p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  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: 13px;
  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: 11px;
  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: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.store-generation-fact p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  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: 12px;
}

.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: 12px;
}

.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: 15px;
  line-height: 1.2;
}

.store-contents-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.store-contents-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
}

.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: 11px;
}

.row-note {
  color: var(--muted);
  font-size: 12px;
}

/* MEG-38: 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: 14px;
}

.onboard-strip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  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: 24px;
  line-height: 1.08;
}

.drawer-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  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-dialog {
  width: min(520px, calc(100vw - 24px));
}

.store-cleanup-target {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafa;
  margin-bottom: 14px;
  padding: 12px;
}

.store-cleanup-target span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-cleanup-target strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.store-cleanup-target code {
  color: var(--red-ink);
  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: 13px;
  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: 12px;
  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: 12px;
  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: 14px;
  line-height: 1.25;
}

.vstore-profile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  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: 10px;
  font-weight: var(--w-semi);
  line-height: 1.4;
}

.vstore-profile .vstore-profile-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  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: 11px;
  line-height: 1.3;
}

.vstore-profile-capabilities b {
  color: var(--gray-ink);
  font-size: 10px;
  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: 13px;
}

.vstore-mutation-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 11px;
  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: 12px;
  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: 11px;
}

.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: 12px;
  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: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.vstore-template-details h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.vstore-template-details p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
}

.vstore-catalog-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
  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: 12px;
  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: 12px;
}

.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: 13px;
}

.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: 12px;
}

.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: 11px;
  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: 11px;
  line-height: 1.2;
  padding: 2px 6px;
}

.vstore-catalog-note,
.vstore-catalog-error {
  margin: 10px 0 0;
  font-size: 12px;
  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: 12px;
  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: 12px;
  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: 13px;
}

.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: 14px;
  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: 13px;
}

.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: 11px;
}

.preflight-summary b {
  color: var(--ink);
  font-size: 18px;
}

.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: 12px;
}

.preflight-op p {
  grid-column: 1 / -1;
}

.preflight-op > b {
  color: var(--gray-ink);
  font-size: 12px;
  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: 12px;
}

.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: 13px;
  line-height: 1.25;
}

.drawer-clock-option em {
  color: var(--muted);
  font-size: 12px;
  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: 10px;
  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: 12px;
  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: 13px;
  line-height: 1.25;
}

.drawer-playback-summary span {
  color: var(--muted);
  font-size: 13px;
  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: 13px;
  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: 11px;
  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: 12px;
  font-weight: var(--w-semi);
}

.drawer-field code,
.drawer-snippet {
  border-radius: 8px;
  background: #f5f6f8;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.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: 12.5px;
  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: 9px;
  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: 12px; 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: 13px; 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: 12px; 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: 13px;
  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: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.practice-console-header p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  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: 14px;
}

.practice-console-rail-head > span,
.practice-console-evidence-rail > p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  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: 12.5px;
  font-weight: var(--w-semi);
}

.practice-console-rail-mark em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  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: 10.5px;
  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: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.practice-console-replay-source p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  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(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: 12px;
  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: 14px;
  font-weight: var(--w-med);
}

.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: 12px;
  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: 11px;
  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: 13px;
  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: 13px;
}

.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: 10.5px;
  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: 14px;
}

.practice-run-now-primary em {
  margin-top: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  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: 12.5px;
  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: 10.5px;
  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: 11px;
  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: 18px;
}

.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: 11.5px;
}

.practice-run-timeline-range {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 11px;
  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: 11px;
  font-weight: var(--w-semi);
}

.practice-run-timeline-when span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.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: 13.5px;
}

.practice-run-timeline-copy > div > span {
  color: var(--muted);
  font-size: 10.5px;
  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: 12px;
  line-height: 1.4;
}

.practice-run-timeline-copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.practice-run-timeline-disclosure {
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 11px;
  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: 11px;
}

.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: 10.5px;
  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: 18px;
}

.practice-run-reference-head p,
.practice-run-reference-head small {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.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: 9.5px;
}

.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: 9.5px;
  text-transform: uppercase;
}

.practice-run-reference-checkpoints article > header strong {
  color: var(--ink);
  font-size: 12px;
}

.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: 12px;
}

.practice-run-reference-observation > div:first-child small,
.practice-run-reference-empty {
  color: var(--muted);
  font-size: 10px;
}

.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: 3px 0 0;
  color: var(--ink);
  font-size: 16px;
}

.console-temporal-proof-integrity,
.console-temporal-proof-status,
.console-temporal-proof-error {
  margin: 0;
  padding: 0 16px 13px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.console-temporal-proof-error {
  color: var(--status-error-ink);
}

.console-temporal-proof-setup {
  display: grid;
  grid-template-columns: 130px 150px minmax(190px, 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: 10.5px;
  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: 11.5px !important;
}

.console-temporal-proof-baseline input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.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: 11px;
  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: 11px;
}

.console-temporal-proof-observations label small {
  color: var(--muted);
  font-size: 9.5px;
}

.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: 11px;
  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: 10px;
  font-weight: var(--w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.console-temporal-proof-mutation > strong {
  color: var(--ink);
  font-size: 13px;
}

.console-temporal-proof-mutation > small {
  color: var(--gray-ink);
  font-size: 10.5px;
}

.console-temporal-proof-mutation ul {
  display: grid;
  gap: 3px;
  margin: 3px 0 0;
  padding: 0;
  color: var(--gray-ink);
  font-size: 10.5px;
  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: 17px;
}

.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: 10px;
  font-weight: var(--w-semi);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.console-temporal-proof-lanes strong {
  color: var(--ink);
  font-size: 13px;
}

.console-temporal-proof-lanes small {
  color: var(--gray-ink);
  font-size: 10.5px;
  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: 9.5px;
}

.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: 9.5px;
}

.console-temporal-proof-facts strong {
  color: var(--ink);
  font-size: 11px;
}

.console-temporal-proof-detail-toggle {
  margin-top: 13px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 11px;
  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: 10px/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: 12px;
  font-weight: var(--w-semi);
}

.practice-console-pane-head strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  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: 12px;
}

.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-tabs {
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.practice-console-recipe-tabs .record-tab {
  display: grid;
  align-content: center;
  gap: 2px;
  flex: 0 0 150px;
  text-align: left;
}

.practice-console-recipe-tabs .record-tab span,
.practice-console-recipe-tabs .record-tab em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practice-console-recipe-tabs .record-tab span {
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--w-semi);
}

.practice-console-recipe-tabs .record-tab em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: var(--w-reg);
}

/* MEG-245: recipes written for the selected store's template read as the recommendation;
   valid-but-off-template recipes stay available but visually quieter. */
.practice-console-recipe-tabs .record-tab[data-console-recipe-match="off-template"] span,
.practice-console-recipe-tabs .record-tab[data-console-recipe-match="off-template"] em {
  color: var(--muted);
}

.practice-console-recipe-tabs .record-tab[data-console-recipe-match="template"] {
  border-color: var(--accent);
}

.practice-console-recipe-match-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(91, 79, 245, 0.12));
  color: var(--accent);
  font-size: 9.5px;
  font-style: normal;
  font-weight: var(--w-semi);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.practice-console-recipe-recommendation {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  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: 14px;
}

.practice-console-recipe-contract p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  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: 11px;
  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: 10.5px;
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-recipe-contract dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 12px;
  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: 13px;
}

.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: 12.5px;
  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: 12.5px;
  line-height: 1.3;
}

.practice-console-confirm span {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
}

.practice-console-run {
  min-width: 150px;
}

/* MEG-33: 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: 12.5px;
}

.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: 12px;
  line-height: 1.4;
  white-space: pre;
}

.practice-console-mcp-mutation-warning,
.practice-console-mcp-redacted {
  margin: 0;
  font-size: 12px;
  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: 12px;
  color: var(--muted);
}

/* MEG-43: 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: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.practice-console-compat-info {
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.practice-console-compat-label {
  justify-self: start;
  font-size: 11px;
  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: 12px;
  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: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.practice-console-operation-details-body dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-operation-details-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}

/* MEG-44: 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: 12.5px;
  color: var(--ink);
}

.practice-console-compat-copy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-compat-summary,
.practice-console-compat-boundary {
  margin: 0;
  font-size: 12px;
  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: 12px;
  color: var(--muted);
}

/* MEG-45: 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: 12.5px;
  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: 12px;
}

.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: 11px;
  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: 12px;
  color: var(--muted);
}

/* MEG-46: 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: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}

.practice-console-cost-limitation {
  margin: 8px 0 0;
  font-size: 11.5px;
  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: 12px;
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-inspector-head strong {
  color: var(--ink);
  font-size: 12.5px;
  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: 12.5px;
  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: 12.5px;
  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: 11px;
  font-weight: var(--w-semi);
  text-transform: uppercase;
}

.practice-console-kv dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.practice-console-state-delta {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

.practice-console-raw summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  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: 12.5px;
  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: 13px;
}

.practice-console-user-errors p,
.practice-console-error-list p {
  margin: 4px 0 0;
  font-size: 13px;
  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: 12.5px;
  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;
  }

  .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: 13px;
  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: 14px;
}

.record-table-wrap {
  border-radius: 8px;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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: 12px;
  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: 12px;
}

.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[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: 12px;
  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: 16px;
}

.vstore-check-actions p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  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: rgba(255, 255, 255, 0.96);
  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: 10px;
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vstore-playback-context strong {
  color: var(--ink);
  font-size: 12px;
  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: 11px;
}

.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;
}

.playback-timeline {
  --playback-progress: 0%;
  display: grid;
  gap: 12px;
}

.timeline-rail {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--gray);
}

.timeline-rail i {
  display: block;
  width: var(--playback-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.timeline-rail b {
  position: absolute;
  top: 50%;
  left: var(--playback-progress);
  width: 14px;
  height: 14px;
  border: 3px solid var(--panel);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(99, 78, 246, 0.35);
  transform: translate(-50%, -50%);
  transition: left 240ms ease;
}

.timeline-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.timeline-points span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.timeline-points span:nth-child(2) { text-align: center; }
.timeline-points span:nth-child(3) { text-align: right; }

.timeline-points em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: var(--w-med);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-points strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.timeline-empty {
  color: var(--muted);
  font-size: 13px;
}

.playback-world-chart {
  display: grid;
  gap: 10px;
  position: relative;
}

.playback-world-svg {
  display: block;
  width: 100%;
  min-height: 256px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
}

.playback-history-band {
  fill: #f9fafc;
}

.playback-untraveled-band {
  fill: rgba(247, 249, 252, 0.82);
}

.playback-run-ended-label {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: var(--w-semi);
  letter-spacing: 0.02em;
}

.playback-window-band {
  fill: transparent;
}

.playback-world-chart.no-activity .playback-window-band {
  fill: transparent;
}

.playback-demand-bar {
  fill: #d8e1f6;
  opacity: 0.48;
}

.playback-reference-demand-bar {
  fill: #dce3f0;
  opacity: 0.54;
}

.playback-world-chart.no-activity .playback-revenue-line {
  stroke-width: 0.75;
}

.playback-reference-dot {
  fill: var(--panel);
  stroke: var(--accent-dark);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.playback-empty-note {
  fill: var(--muted);
  font-size: 11px;
  font-weight: var(--w-semi);
  letter-spacing: 0;
}

.playback-empty-note {
  fill: #5d6a7f;
}

.playback-revenue-line {
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.playback-history-line,
.playback-current-line {
  stroke-width: 1;
}

.playback-history-line {
  stroke: var(--line-strong);
  stroke-dasharray: 2 4;
}

.playback-current-line {
  stroke: var(--accent);
  stroke-dasharray: 4 4;
}

.playback-current-dot {
  stroke: var(--accent);
}

.playback-current-chip rect {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.playback-current-chip text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: var(--w-semi);
  letter-spacing: 0.02em;
  text-anchor: middle;
  text-transform: uppercase;
}

.playback-y-axis-line {
  stroke: #d7dce7;
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.playback-y-grid-line {
  stroke: #edf0f6;
  stroke-width: 1;
}

.playback-y-axis-label,
.playback-y-tick text {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: var(--w-semi);
  letter-spacing: 0;
}

.playback-y-axis-label {
  text-anchor: start;
  text-transform: uppercase;
}

.playback-y-tick text {
  text-anchor: end;
}

.playback-axis-line,
.playback-axis-tick line {
  stroke: var(--line);
  stroke-width: 1;
}

.playback-axis-tick text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: var(--w-semi);
  letter-spacing: 0;
  text-anchor: middle;
}

.playback-axis-tick text.start {
  text-anchor: start;
}

.playback-axis-tick text.end {
  text-anchor: end;
}

.playback-hover-layer {
  pointer-events: none;
}

.playback-hover-line {
  stroke: var(--ink);
  stroke-dasharray: 3 4;
  stroke-width: 1;
  opacity: 0.45;
}

.playback-hover-dot {
  fill: var(--panel);
  stroke: var(--accent-dark);
  stroke-width: 2;
}

.playback-chart-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 172px;
  max-width: 220px;
  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: 12px;
  pointer-events: none;
  transform: translate(-50%, -112%);
}

.playback-chart-tooltip strong {
  color: var(--ink);
  font-size: 13px;
}

.playback-chart-tooltip[hidden],
.playback-hover-layer[hidden] {
  display: none;
}

.playback-event-marker {
  cursor: pointer;
  outline: none;
}

.playback-event-marker circle {
  fill: var(--accent);
  stroke: var(--panel);
  stroke-width: 0.75;
  transition: transform 140ms ease, stroke-width 140ms ease;
  vector-effect: non-scaling-stroke;
}

.playback-event-marker text {
  fill: var(--accent-dark);
  font-size: 10px;
  font-weight: var(--w-semi);
  pointer-events: none;
  text-anchor: middle;
}

.playback-event-marker.restock circle {
  fill: #2f9d68;
}

.playback-event-marker.restock text {
  fill: #1f7a50;
}

.playback-event-marker.order circle {
  fill: #8b6f2a;
}

.playback-event-marker.order text {
  fill: #7a5d19;
}

.playback-event-marker.rejected circle {
  stroke: var(--danger);
}

.playback-event-marker.rejected text {
  fill: var(--danger);
}

.playback-event-marker:hover circle,
.playback-event-marker:focus-visible circle {
  stroke-width: 3;
  transform: scale(1.08);
  transform-origin: center;
}

.playback-chart-meta,
.playback-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.playback-chart-meta span,
.playback-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.playback-chart-meta strong {
  color: var(--ink);
  font-weight: var(--w-semi);
}

.playback-chart-note {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--muted);
  font-size: 13px;
}

.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: 12px;
}

.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: 12px; }
.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: var(--w-semi);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#vstorePlaybackRevenueValue {
  color: var(--accent-dark);
  font-size: 26px;
  font-weight: var(--w-bold);
}

.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: 11px;
  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: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.vstore-receipt-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
  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: 14px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
}

/* MEG-251: 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: 12px; }
.budget-item strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 16px;
}

.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: 13px;
}

.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: 13px;
}

.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: 12px;
  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: 11px;
  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: 12px;
  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: 13px;
}

.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: 12px;
}

.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: 18px;
  line-height: 1.25;
}

.agent-listening-card p,
.observe-listening-card p {
  color: var(--muted);
  font-size: 13px;
  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: 13px;
}

.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-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: 12px/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: 10px;
}

.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: 10px;
  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: 12px;
  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: 12px;
}

.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: 12px;
  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: 12px;
  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: 11px;
  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: 18px;
  overflow-wrap: anywhere;
}

.impact-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 22px;
  line-height: 1.18;
}

.observe-clock-head p {
  color: var(--muted);
  font-size: 13px;
  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: 11px;
}

.observe-transport-timecode strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.observe-transport-timecode span:last-child {
  text-align: right;
}

.observe-transport p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  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-clock-actions .finish-check-button {
  margin-left: auto;
}

.observe-action-status {
  margin: -2px 0 0;
  color: var(--accent-dark);
  font-size: 12px;
  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: 12px;
}

.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) {
  .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: 12px;
  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: 13px;
  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: 11px;
  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: 10px;
  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: 12px;
  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: 12px;
  font-weight: var(--w-semi);
}

.launch-helper {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 13px;
  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: 13px;
}

.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.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: 12px;
}

.report-row-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.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: 11px;
  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;
}

.receipt-hero h2 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 24px;
  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: 13px;
  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: 13px;
}

.receipt-verdict em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}

.receipt-gate-note {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 12px;
  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: 12px;
}

.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: 17px;
  line-height: 1.25;
}

.receipt-card h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  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: 40px;
  line-height: 1;
}

.receipt-impact-value span {
  color: var(--gray-ink);
  font-size: 15px;
  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: 13px;
}

.receipt-fidelity-line {
  border-left: 3px solid var(--green-ink);
  padding-left: 12px;
  color: var(--ink);
  font-size: 13px;
  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: 15px;
}

.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: 12px;
}

.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: 12.5px;
}

.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: 12.5px;
  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: 11px;
}

.receipt-identity-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  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: 17px;
}

.receipt-automation-head p {
  color: var(--muted);
  font-size: 13px;
  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: 12px;
}

.receipt-confidence-detail ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  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: 12px;
}

.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: 150px;
}

.receipt-call-gloss {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* MEG-39: progressive call explorer — a bounded per-day index rail plus the active day's paged detail,
   so a 5,952-call receipt never renders thousands of rows at once. */
.receipt-call-count {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.receipt-call-day-summary {
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 8px 10px;
  color: var(--gray-ink);
  font-size: 12px;
  line-height: 1.4;
}

.receipt-call-explorer {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.receipt-day-index {
  display: grid;
  gap: 4px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.receipt-day-index-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
}

.receipt-day-index-row:hover {
  border-color: var(--accent);
}

.receipt-day-index-row.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.receipt-day-index-row.has-blocked .receipt-day-index-day::after {
  content: "\2022";
  color: var(--danger);
  margin-left: 4px;
}

.receipt-day-index-day {
  font-weight: 600;
  font-size: 12px;
}

.receipt-day-index-counts {
  color: var(--muted);
  font-size: 11px;
}

.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: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .receipt-call-explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-day-index {
    max-height: 220px;
  }
}

.receipt-call-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  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: 13px;
}

.receipt-call-row > summary span {
  overflow-wrap: anywhere;
}

.receipt-call-row > summary strong {
  color: var(--muted);
  font-size: 12px;
  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: 12px;
  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: 12px;
  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: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.receipt-call-inspector p,
.receipt-call-inspector ul {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  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: 11px;
  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: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.receipt-inspector-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.record-group-row td {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.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: 24px;
  line-height: 1.15;
}

.report-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.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: 11px;
  font-weight: var(--w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-proof-banner strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.report-proof-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  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: 11px;
  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: 18px;
  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: 12px;
  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;
}

.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: 13px;
  line-height: 1.5;
}

.report-section {
  display: grid;
  gap: 12px;
}

.report-section-head h2,
.report-method h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.report-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.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: 11px;
  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: 13px;
  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: 20px; }
.report-markdown h3 { font-size: 16px; }
.report-markdown h4 { font-size: 14px; }
.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: 12.5px;
}

.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: 11px;
  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: 13px;
  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: 12px;
}

.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: 13px;
  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: 13px;
  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: 11px;
  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: 15px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  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: 13px;
}

.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: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.connect-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  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: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-store-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.connect-hero .connect-store-next {
  max-width: none;
  color: var(--gray-ink);
  font-size: 13px;
  line-height: 1.5;
}

.connect-store-next strong {
  color: var(--ink);
}

.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: 18px;
}

.connect-existing-store p {
  color: var(--muted);
  font-size: 13px;
}

.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: 13px;
  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: 11px;
  font-weight: var(--w-bold);
}

.connect-default-store-body h2,
.connect-catalog-choice h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.connect-default-store-body h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  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: 12px;
}

.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: 128px;
}

.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 strong,
.connect-clock-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.connect-scenario-card span:not(.eyebrow),
.connect-clock-card span {
  color: var(--muted);
  line-height: 1.45;
}

.connect-clock-card em {
  color: var(--ink);
  font-style: normal;
  font-size: 13px;
  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: 13px;
  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: 17px;
}

.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: 20px;
  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: 20px;
  line-height: 1.25;
}

.connect-own-agent-summary-copy small,
.connect-reference-summary-copy small {
  color: var(--muted);
  font-size: 14px;
  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-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: 11px;
  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: 13px;
  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: 14px;
  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: 22px;
  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: 13px;
  line-height: 1.55;
}

.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: 13px;
  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: 13px;
  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: 18px;
  line-height: 1.25;
}

@media (max-width: 1120px) {
  .shell { grid-template-columns: 196px minmax(0, 1fr); }
  .command { grid-template-columns: 1fr 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-world-hero {
    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-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-settings-hero,
  .connection-scope-ledger,
  .account-key-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);
  }
  .workspace-switcher {
    margin-bottom: 16px;
  }
  .workspace-switcher-button {
    min-height: 48px;
  }
  .workspace-popover {
    right: 0;
    left: 0;
    width: 100%;
    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 { 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-default-store-actions {
    justify-content: flex-start;
  }
  .connect-hero,
  .connect-panel {
    padding: 18px;
  }
  .connect-hero h1 {
    font-size: 26px;
  }
  .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,
  .store-world-hero,
  .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-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;
  }
  .auth-field,
  .search-field,
  .connection-details {
    grid-column: auto;
    grid-row: auto;
  }
  #connectionDetails[hidden] ~ .search-field {
    grid-column: auto;
    width: 100%;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .connection-settings-head,
  .connection-settings-actions,
  .connection-address-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .connection-address-row button {
    justify-self: start;
  }
  .auth-field {
    grid-row: auto;
    justify-self: stretch;
    justify-items: start;
  }
  .auth-legal { text-align: left; }
  .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-detail-head,
  .coverage-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .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 (MEG-26): 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: 11.5px;
  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: 12.5px;
  background: #fff;
  color: var(--ink);
}

.practice-console-library-archived {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  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: 12.5px;
  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: 12px;
  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: 13px;
  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: 13.5px;
}

.practice-console-library-item-desc {
  font-size: 12px;
  color: var(--muted);
}

.practice-console-library-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  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: 12.5px;
  color: var(--muted);
}

.practice-console-library-error {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--danger, #b91c1c);
}

.chip.subtle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* MEG-36: a restored partial snapshot explains what was not captured, never fabricates values. */
.practice-console-partial-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* MEG-28: 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: 12px;
}

/* MEG-49 — 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: 13px;
}

.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: 13px;
}

.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: 12px;
}

.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: 13px;
  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: 12px;
}

.practice-console-compare-lane-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.practice-console-compare-lane-errors {
  margin: 0;
  padding-left: 18px;
  color: var(--red-ink, #a11);
  font-size: 12px;
}

.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: 12px;
  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: 14px;
}

.practice-console-compare-diff-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.practice-console-compare-diff-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.practice-console-compare-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.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: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.practice-console-compare-error {
  margin: 0 14px 12px;
  color: var(--red-ink, #a11);
  font-size: 13px;
}

.practice-console-compare-live {
  margin: 0;
  padding: 6px 14px;
  color: var(--muted);
  font-size: 12px;
}

.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;
  }
}

/* MEG-50 — 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: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.practice-console-compare-consequence-summary,
.practice-console-compare-consequence-empty {
  margin: 0;
  font-size: 13px;
}

.practice-console-compare-consequence-table,
.practice-console-compare-consequence-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.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: 12px;
}

.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;
}

/* MEG-51 — 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: 13px;
}

.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: 13px;
}

.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: 13px;
}

.practice-console-probe-set-position {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.practice-console-probe-set-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.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: 13px;
}

.practice-console-probe-set-private-notice {
  margin: 0;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  padding: 8px 10px;
  font-size: 13px;
}

.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: 13px;
  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: 12px;
  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: 11px;
  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: 11px;
}

.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: 13px;
}

.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: 13px;
  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: 18px;
}

.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: 12px;
}

.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: 11px;
  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: 11px;
  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: 11px;
}

.practice-console-probe-set-truncation {
  margin: 0;
  color: var(--amber-ink, #7a5200);
  font-size: 13px;
}

.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 {
    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: 9px;
    font-weight: var(--w-semi);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .settings-section-nav {
    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 {
    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;
  }
}

/* MEG-182 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: clamp(30px, 4vw, 48px);
  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: 12px;
  min-width: 0;
}

.portfolio-workspace-row {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid #d8476e;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portfolio-workspace-row.is-archived {
  border-left-color: var(--line-strong);
  background: var(--soft);
  box-shadow: none;
}

.portfolio-workspace-head,
.usage-workspace-row > header,
.customer-run-detail > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-workspace-head h2,
.usage-workspace-row h2,
.customer-run-detail h1 {
  margin: 3px 0 0;
  letter-spacing: -0.025em;
}

.portfolio-facts,
.usage-meter-grid,
.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,
.usage-meter-grid > div,
.customer-run-facts > div {
  min-width: 0;
  padding: 11px 12px;
  background: var(--panel);
}

.portfolio-facts dt,
.usage-meter-grid dt,
.customer-run-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--w-semi);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portfolio-facts dd,
.usage-meter-grid dd,
.customer-run-facts dd {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  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: 11px;
  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: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-run-link em,
.portfolio-run-link time { color: var(--muted); font-size: 12px; 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: 11px;
  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-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.tier-usage-card > header,
.tier-credit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tier-usage-card h2 { margin: 3px 0 0; }
.tier-credit-line strong { font-family: var(--mono); font-size: 28px; }
.tier-credit-line span { color: var(--muted); }
.tier-usage-card progress { width: 100%; accent-color: var(--accent); }
.tier-usage-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tier-usage-facts > div { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.tier-usage-facts dt { color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.tier-usage-facts dd { margin: 0; font-family: var(--mono); font-weight: var(--w-semi); }
.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-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.usage-total span { color: #cfd4df; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.usage-total strong { grid-row: 1 / 3; grid-column: 2; font-family: var(--mono); font-size: 38px; line-height: 1; }
.usage-total em { color: #cfd4df; font-family: var(--mono); font-size: 12px; font-style: normal; }

.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); }

.usage-workspace-row,
.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-row > header span { color: var(--muted); }
.usage-workspace-row > header strong { color: var(--ink); font-family: var(--mono); }
.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,
  .usage-workspace-row > header,
  .customer-run-detail > header {
    align-items: stretch;
    flex-direction: column;
  }

  .account-ops-head > a,
  .usage-period-control { width: 100%; }

  .portfolio-facts,
  .usage-meter-grid,
  .tier-usage-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; }
}

/* MEG-265 — 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: end;
  border-left: 4px solid var(--accent);
}

.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; gap: 10px; }
.exam-promotion-action > p { padding: 12px; border-radius: 6px; background: var(--soft); }
.exam-shop-field,
.exam-confirm-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; 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: clamp(30px, 5vw, 52px); letter-spacing: -.04em; }
.exam-head p { margin: 0; max-width: 720px; color: var(--muted); font-size: 16px; }
.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: 11px; 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: 11px; }
.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: 12px; }
.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: 12px; }
.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: 12px; }
.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-gate-card p,
.exam-read-only { margin: 0; color: var(--muted); }
.gate-history-row-exam { border-left: 3px solid var(--accent); }
.viewer-exam-receipt code { overflow-wrap: anywhere; }

/* MEG-353 — 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: 12px; }
.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: 15px; }
.scenario-time-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.scenario-time-facts { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 11px; 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: 14px; }
.managed-runner-grant p { margin: 0; color: var(--muted); font-size: 12px; }
.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: 16px; }
.managed-runner-evidence-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.managed-runner-evidence-head > span { color: var(--muted); font-size: 12px; 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: 11px; text-transform: uppercase; letter-spacing: .06em; }
.managed-runner-evidence-item dd { min-width: 0; margin: 0; font-size: 12px; 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%; }
}
