:root {
  color-scheme: light;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #626269;
  --subtle: #86868b;
  --line: #d2d2d7;
  --surface: #fff;
  --surface-muted: #f5f5f7;
  --accent: #0066cc;
  --accent-hover: #004f9e;
  --accent-soft: #e8f2fc;
  --danger: #b42318;
  --danger-soft: #fff2f0;
  --ok: #287a45;
  --ok-soft: #eef8f0;
  --warning: #815c00;
  --warning-soft: #fff8e6;
  --focus: #0066cc;
  --radius: 8px;
  --motion: 180ms ease-out;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--surface-muted); }
body, button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
::selection { color: #102b47; background: #cce4fb; }
input, textarea { caret-color: var(--accent); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button:active, .nav-link:active, .site-cta:active, .button-primary:active { transform: scale(.985); }

/* Signed-in workspace */
.app-frame { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 252px;
  padding: 0 14px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: #f5f5f7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 66px;
  padding: 0 9px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}
.brand:hover { color: var(--ink); }
.brand small { color: var(--muted); font-size: 12px; font-weight: 500; }
.brand-mark, .workspace-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #c7c7cc;
  border-radius: 9px;
  color: #1d1d1f;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 8px 0 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.workspace-avatar { width: 28px; height: 28px; border: 0; color: #174f86; background: #e8f2fc; }
.workspace-switch > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.workspace-switch b { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch small, .workspace-switch .chevron { color: var(--muted); font-size: 12px; }
.workspace-switch .chevron { margin-left: auto; }
.sidebar nav { display: grid; gap: 3px; }
.nav-label { padding: 0 10px 7px; color: var(--subtle); font-size: 12px; font-weight: 650; }
.nav-label-spaced { margin-top: 19px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 7px;
  color: #424248;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--motion), background-color var(--motion), transform var(--motion);
}
.nav-link:hover { color: var(--ink); background: #e9e9ed; }
.nav-link.active { color: #064f91; background: #e2effb; font-weight: 650; }
.nav-glyph { display: none; }
.sidebar-bottom { display: grid; gap: 6px; margin-top: auto; }
.usage-mini { display: grid; gap: 4px; margin: 0 4px 7px; padding: 13px 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.usage-mini b { color: var(--ink); font-size: 12px; font-weight: 650; }
.usage-mini small { color: var(--muted); font-size: 12px; }
.main-column { min-height: 100vh; margin-left: 252px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}
.breadcrumbs { color: #55555b; font-size: 12px; }
.breadcrumbs span { padding: 0 7px; color: #9a9aa0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.test-tag, .role {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid #dfc87d;
  border-radius: 999px;
  color: #5c4700;
  background: var(--warning-soft);
  font-size: 12px;
  font-weight: 700;
}
.role { border-color: var(--line); color: #424248; background: var(--surface-muted); }
.avatar-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #174f86;
  background: #e8f2fc;
  font-size: 12px;
  font-weight: 650;
}
.auth-links { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.auth-links[hidden] { display: none; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
.shell.page-content { width: min(100%, 1440px); max-width: 1440px; margin: 0 auto; padding: 34px 38px 60px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.intro h2 { margin: 0; color: var(--ink); font-size: 28px; font-weight: 650; line-height: 1.2; text-wrap: balance; }
.intro p { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mode { display: inline-flex; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: #55555b; background: #fff; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel h3 { margin: 0 0 13px; color: #28282c; font-size: 15px; font-weight: 650; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h3 { margin-bottom: 3px; }
.section-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tenant-status { padding: 4px 8px; border-radius: 999px; color: #21683a; background: var(--ok-soft); font-size: 12px; font-weight: 700; }
.wide { grid-column: 1 / -1; }
label { display: block; margin: 12px 0 6px; color: #38383d; font-size: 12px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9b9c0;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  transition: border-color var(--motion), box-shadow var(--motion);
}
input::placeholder, textarea::placeholder { color: #68686e; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(0 102 204 / 15%); outline: 0; }
textarea { min-height: 82px; resize: vertical; }
button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--motion), background-color var(--motion), border-color var(--motion), transform var(--motion);
}
button:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
button.secondary { border-color: #bfc0c6; color: #242428; background: #fff; }
button.secondary:hover { border-color: #8f9097; background: #f5f5f7; }
button:disabled { opacity: .52; cursor: wait; }
.row { display: flex; align-items: center; gap: 9px; }
.row > * { flex: 1; }
.row button { flex: 0 0 auto; }
.muted { color: var(--muted); font-size: 13px; }
.empty { padding: 20px 12px; border: 1px dashed #bfc0c6; border-radius: 7px; color: var(--muted); text-align: center; font-size: 13px; }
.error, .success, .note {
  margin: 10px 0;
  padding: 12px 13px;
  border: 1px solid #e7b7b2;
  border-radius: 7px;
  color: #8d211a;
  background: var(--danger-soft);
  font-size: 13px;
  line-height: 1.5;
}
.success { border-color: #b7d8c0; color: #205c34; background: var(--ok-soft); }
.note { border-color: #dfc87d; color: #5c4700; background: var(--warning-soft); }
.list { display: grid; gap: 0; }
.list-item, .item, .metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e8e8ed;
}
.list-item:first-child, .item:first-child, .metric:first-child { border-top: 0; padding-top: 2px; }
.list-item strong, .item strong { display: block; color: #28282c; font-size: 13px; font-weight: 600; }
.id, .meta, .trace { color: #606067; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.status { min-height: 18px; color: #45454b; font-size: 12px; }
.run {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 150px;
  max-height: 330px;
  padding: 14px 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #34343a;
  background: #fff;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-color: #b6b6bd #f5f5f7;
  scrollbar-width: thin;
}
.run-event {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  min-height: 48px;
  padding: 3px 0 13px;
  animation: event-arrive 180ms ease-out both;
}
.run-event:not(:last-child)::before { position: absolute; top: 14px; bottom: -1px; left: 5px; width: 1px; background: #d5e4f2; content: ""; }
.run-event-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 2px solid #7ba8d0; border-radius: 50%; background: #fff; }
.run-event.is-active .run-event-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px #e8f2fc; }
.run-event.is-final .run-event-dot { border-color: var(--ok); background: var(--ok); }
.run-event.is-error .run-event-dot { border-color: var(--danger); background: var(--danger); }
.run-event-body { display: grid; gap: 2px; min-width: 0; }
.run-event-body strong { color: #25252a; font-size: 12px; font-weight: 600; }
.run-event-body span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.run-placeholder { color: var(--muted); }
@keyframes event-arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.metric { display: block; min-width: 0; padding: 12px; border: 1px solid #e0e0e5; border-radius: 7px; color: var(--muted); font-size: 12px; }
.metric b { display: block; margin-top: 5px; color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spacer { height: 7px; }
.danger-note { color: #7c3832; font-size: 12px; }
.table-wrap { overflow-x: auto; scrollbar-color: #b6b6bd #f5f5f7; scrollbar-width: thin; }
table { width: 100%; min-width: 580px; border-collapse: collapse; }
th, td { padding: 11px 9px; border-bottom: 1px solid #e8e8ed; text-align: left; vertical-align: top; }
th { color: #55555b; font-size: 12px; font-weight: 700; text-transform: uppercase; }
td { color: #333338; font-size: 12px; }
caption { caption-side: top; padding: 0 0 10px; color: var(--muted); font-size: 12px; text-align: left; }
.approval { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.approval input { min-width: 180px; }
#refresh { margin: 0 0 18px; }
.agent-form input, .agent-form textarea { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.agent-list-controls { display: grid; gap: 9px; margin: 11px 0 8px; }
.agent-list-controls[hidden] { display: none; }
.agent-list-controls input { min-height: 44px; }
.agent-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.agent-pagination { display: flex; align-items: center; gap: 7px; }
.agent-pagination button { min-width: 84px; }
.agent-page-label { min-width: 74px; color: var(--muted); text-align: center; }
.billing-page .shell.page-content { max-width: 1120px; }
#billing .section-note { margin-top: 12px; }
#projects .list-item, #agents .list-item { align-items: flex-start; }
.run-form-grid { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.8fr) auto; gap: 12px; align-items: end; }
.run-form-grid label { margin-top: 0; }
.run-form-grid > div:last-child { display: flex; align-items: flex-end; }
.tenant-switch { align-items: flex-end; }
.tenant-switch > div:last-child { flex: 0 0 auto; }
.admin-grid { align-items: start; }
.admin-grid > .panel { min-height: 170px; }
.admin-grid .table-wrap { margin-top: 10px; }
.admin-grid table { min-width: 640px; }
.admin-intro .role { flex: 0 0 auto; }
.loading-skeleton { display: grid; gap: 9px; padding: 7px 0; }
.loading-skeleton span { display: block; height: 11px; border-radius: 6px; background: #e5e5ea; animation: skeleton-pulse 1.4s ease-in-out infinite alternate; }
.loading-skeleton span:nth-child(1) { width: 72%; }
.loading-skeleton span:nth-child(2) { width: 91%; }
.loading-skeleton span:nth-child(3) { width: 55%; }
@keyframes skeleton-pulse { to { opacity: .55; } }
.data-state { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; color: #424248; background: #fff; font-size: 12px; font-weight: 600; }
.data-state::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.data-state.is-test { border-color: #dfc87d; color: #5c4700; background: var(--warning-soft); }
.admin-page .panel h3, .billing-page .panel h3 { font-size: 18px; line-height: 1.3; }
.admin-page .notice { padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; color: #4a4a50; background: var(--surface-muted); font-size: 12px; line-height: 1.5; }
.plan-admin-panel { grid-column: 1 / -1; }
.plan-admin-panel .section-title { align-items: center; }
.plan-admin-panel .section-title .mode { flex: 0 0 auto; }
.plan-list-item { align-items: flex-start; }
.plan-list-item > div { min-width: 0; }
.plan-list-item .meta { display: block; margin-top: 4px; }
.plan-list-item button { flex: 0 0 auto; min-height: 36px; }
.subsection-heading { margin: 17px 0 5px; color: #44444a; font-size: 12px; font-weight: 650; }
.plan-form { display: grid; gap: 1px; max-width: 760px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.plan-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-form textarea { min-height: 74px; }
.provider-editors { display: grid; gap: 10px; margin-top: 18px; }
.provider-editor-block { min-width: 0; }
.provider-category { overflow: hidden; border: 1px solid #e1e1e6; border-radius: 9px; background: #fff; }
.provider-category > summary { display: flex; min-height: 64px; align-items: center; gap: 14px; padding: 13px 18px; list-style: none; cursor: pointer; background: #f5f5f7; }
.provider-category > summary::-webkit-details-marker { display: none; }
.provider-category > summary::after { width: 9px; height: 9px; flex: 0 0 9px; margin-left: auto; border-right: 2px solid #65717d; border-bottom: 2px solid #65717d; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform var(--motion); }
.provider-category[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.provider-category-title { flex: 0 0 auto; color: #30343a; font-size: 16px; font-weight: 650; }
.provider-category-description { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.provider-category-content { padding: 15px 18px 18px; }
.provider-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-bottom: 8px; }
.provider-editor-heading .section-note { margin: 0; max-width: 390px; }
.provider-editor-heading button { flex: 0 0 auto; min-height: 36px; }
.provider-fixed-field { display: grid; gap: 4px; margin-top: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-muted); }
.provider-fixed-field .field-label { color: #5c5c63; font-size: 12px; font-weight: 600; }
.provider-fixed-field strong { color: #25252a; font-size: 14px; font-weight: 650; }
.provider-form { max-width: none; }
.provider-reload-actions { margin-top: 18px; }
.provider-admin-panel .provider-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.provider-admin-panel .provider-item > div:first-child { min-width: 0; }
.provider-website { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.provider-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.provider-admin-panel .section-note { overflow-wrap: anywhere; }
.plan-form-actions, .plan-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.admin-edit-dialog { width: min(860px, calc(100vw - 32px)); max-height: min(900px, calc(100dvh - 32px)); margin: auto; padding: 0; border: 1px solid #d2d2d7; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgb(0 0 0 / 22%); overflow: auto; }
.admin-edit-dialog::backdrop { background: rgb(15 23 42 / 42%); backdrop-filter: blur(5px); }
.admin-edit-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 28px 32px 19px; border-bottom: 1px solid #ececf0; background: rgb(255 255 255 / 96%); }
.admin-edit-dialog-head h2 { margin: 4px 48px 0 0; color: #202024; font-size: 25px; font-weight: 650; line-height: 1.2; }
.admin-edit-eyebrow { color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.admin-edit-close { display: grid; flex: 0 0 42px; place-items: center; width: 42px; min-height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #4b4b51; background: #fff; font-size: 25px; line-height: 1; }
.admin-edit-close:hover { border-color: #b8b8bf; background: #f5f5f7; }
.admin-edit-dialog .plan-form { max-width: none; margin-top: 0; padding: 24px 32px 32px; border-top: 0; }
.admin-edit-dialog .plan-form-actions { justify-content: flex-end; padding-top: 8px; }
.admin-edit-dialog .error-text:not(:empty) { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e7b7b2; border-radius: 6px; color: #8d211a; background: var(--danger-soft); font-size: 13px; line-height: 1.5; }
#planAdminError:not(:empty) { margin: 10px 0; padding: 10px 12px; border: 1px solid #e7b7b2; border-radius: 6px; color: #8d211a; background: var(--danger-soft); font-size: 12px; line-height: 1.5; }
.plan-confirm-dialog { position: fixed; inset: 50% auto auto 50%; width: min(560px, calc(100vw - 32px)); max-height: min(85dvh, 720px); margin: 0; padding: 24px; transform: translate(-50%, -50%); border: 1px solid #d2d2d7; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 18px 60px rgb(0 0 0 / 18%); }
.plan-confirm-dialog::backdrop { background: rgb(19 20 22 / 38%); }
.plan-confirm-dialog h2 { margin: 0 42px 14px 0; color: #202024; font-size: 19px; font-weight: 650; }
.plan-confirm-dialog p { color: #56565d; font-size: 13px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.plan-confirm-dialog .dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; min-height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #4b4b51; background: #fff; font-size: 22px; }
.plan-confirm-dialog .dialog-close:hover { background: #f5f5f7; }
.plan-confirm-dialog .error-text:not(:empty) { padding: 9px 11px; border-radius: 6px; color: #8d211a; background: var(--danger-soft); }
.plan-confirm-actions { justify-content: flex-end; margin-top: 19px; }
.admin-page .error { border-color: #e7b7b2; }
.admin-page .recovery-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; font-weight: 650; text-decoration: underline; }
.admin-page .error button { margin: 8px 0 0 10px; }
.admin-gate-page { --site-accent: var(--accent); display: grid; min-height: 100dvh; place-items: center; padding: 24px; }
.admin-gate { width: min(100%, 600px); padding: 33px 36px 31px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-gate-brand { width: fit-content; height: auto; margin-bottom: 34px; padding: 0; }
.admin-gate-brand small { margin-left: 5px; font-size: 10px; font-weight: 650; }
.admin-gate-label { margin: 0 0 8px; color: #54545a; font-size: 12px; font-weight: 650; }
.admin-gate h1 { margin: 0; color: #1d1d1f; font-size: 29px; font-weight: 650; line-height: 1.25; text-wrap: balance; }
.admin-gate-copy { margin: 14px 0 0; color: #4d4d53; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.admin-gate code { padding: 1px 4px; border-radius: 4px; color: #173f67; background: #edf4fa; font-size: 12px; }
.admin-gate-note { margin: 18px 0 0; color: #505057; font-size: 12px; line-height: 1.65; }
.admin-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.admin-gate-actions .button-text { display: inline-flex; align-items: center; min-height: 44px; }
.admin-login-only { width: min(100%, 520px); padding: 46px; }
.admin-login-only .admin-gate-brand { margin-bottom: 52px; }
.admin-login-only h1 { font-size: 32px; }
.admin-login-only .admin-gate-actions { display: block; margin-top: 38px; }
.admin-login-only .button-primary { width: 100%; min-height: 50px; font-size: 15px; }
.admin-gate[aria-busy="true"] { color: #55555b; }
.admin-gate .admin-gate-actions[hidden] { display: none; }

/* Official site */
.marketing {
  --site-bg: #fff;
  --site-section: #f5f5f7;
  --site-line: #d2d2d7;
  --site-ink: #1d1d1f;
  --site-muted: #626269;
  --site-accent: #0066cc;
  min-width: 320px;
  color: var(--site-ink);
  background: var(--site-bg);
}
.marketing a { color: inherit; }
.marketing :focus-visible { outline-color: var(--site-accent); }
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(5vw, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgb(29 29 31 / 8%);
  background: rgb(255 255 255 / 94%);
}
.site-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--site-ink); font-size: 20px; font-weight: 700; }
.site-brand:hover { color: var(--site-ink); }
.site-mark, .window-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c7c7cc; border-radius: 50%; color: var(--site-ink); background: #fff; font-size: 14px; font-weight: 650; }
.site-nav, .site-actions { display: flex; align-items: center; }
.site-nav { gap: 30px; margin-left: 5%; }
.site-mobile-nav { display: none; }
.site-nav a, .site-login, .site-footer { color: #4a4a50; font-size: 12px; }
.site-nav a:hover, .site-login:hover, .site-footer a:hover { color: var(--site-accent); }
.site-actions { gap: 18px; }
.site-login { display: inline-flex; align-items: center; min-height: 44px; }
.site-cta, .button-primary, .button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--site-accent);
  border-radius: 7px;
  color: #fff !important;
  background: var(--site-accent);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--motion), background-color var(--motion), transform var(--motion);
}
.site-cta:hover, .button-primary:hover { color: #fff; background: #004f9e; }
.hero {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 64px;
  width: min(100% - 10vw, 1440px);
  min-height: 680px;
  margin: 0 auto;
  padding: 68px 0 78px;
}
.hero-copy { max-width: 560px; padding: 0 0 10px; }
.hero h1 {
  max-width: 600px;
  margin: 0;
  color: var(--site-ink);
  font-size: 62px;
  font-weight: 650;
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1 em, .story-lead h2 em { color: var(--site-accent); font-style: normal; }
.hero-description { max-width: 470px; margin: 22px 0 0; color: var(--site-muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 28px; }
.button-primary { min-height: 46px; padding: 0 19px; }
.button-text, .underlined-link { color: var(--site-accent); font-size: 13px; font-weight: 550; }
.button-text:hover, .underlined-link:hover { color: var(--accent-hover); text-decoration: underline; }
.hero-footnote { margin: 17px 0 0; color: var(--site-muted); font-size: 12px; line-height: 1.55; }
.product-stage { min-width: 0; }
.product-window { overflow: hidden; border: 1px solid #c7c7cc; border-radius: 9px; background: #fff; }
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 17px; border-bottom: 1px solid var(--site-line); background: #fff; }
.window-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: #333338; font-size: 12px; font-weight: 600; }
.window-mark { flex: 0 0 auto; width: 22px; height: 22px; font-size: 12px; }
.window-divider { margin: 0 2px; color: var(--site-muted); font-weight: 400; }
.preview-label { flex: 0 0 auto; color: #604b00; font-size: 12px; font-weight: 700; }
.preview-layout { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 365px; }
.preview-rail { display: flex; flex-direction: column; gap: 5px; padding: 17px 9px; border-right: 1px solid #e0e0e5; background: #f5f5f7; }
.rail-icon { display: flex; align-items: center; min-height: 34px; padding: 0 8px; border-radius: 6px; color: #55555b; font-size: 12px; }
.rail-icon.selected { color: #064f91; background: #e2effb; font-weight: 600; }
.rail-spacer { flex: 1; }
.preview-main { min-width: 0; padding: 22px 22px 18px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-overline { color: #606067; font-size: 12px; font-weight: 600; }
.preview-heading h2 { margin: 4px 0 0; color: var(--site-ink); font-size: 18px; font-weight: 600; }
.preview-avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #c7c7cc; border-radius: 50%; color: #174f86; background: #e8f2fc; font-size: 11px; font-weight: 600; }
.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 22px; border-top: 1px solid #d2d2d7; border-bottom: 1px solid #d2d2d7; }
.preview-stats > div { min-width: 0; padding: 11px 10px; border-right: 1px solid #e0e0e5; }
.preview-stats > div:last-child { border-right: 0; }
.preview-stats span { display: block; color: #606067; font-size: 12px; }
.preview-stats b { display: block; margin-top: 6px; color: var(--site-ink); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.preview-stats .healthy { display: flex; align-items: center; gap: 5px; color: #21683a; font-size: 12px; }
.healthy i, .run-pulse { width: 7px; height: 7px; border-radius: 50%; background: #288548; }
.preview-section-head { display: flex; justify-content: space-between; margin-bottom: 3px; color: #333338; font-size: 12px; }
.preview-section-head > span { color: var(--site-accent); font-size: 12px; }
.preview-agents { display: grid; }
.preview-agent { display: flex; align-items: center; gap: 10px; min-height: 51px; border-bottom: 1px solid #e8e8ed; }
.agent-icon { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 7px; color: #174f86; background: #e8f2fc; font-size: 12px; font-weight: 650; }
.agent-blue, .agent-orange { color: #174f86; background: #e8f2fc; }
.agent-copy { display: grid; min-width: 0; gap: 3px; }
.agent-copy b { overflow: hidden; color: #2d2d32; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.agent-copy small { color: #606067; font-size: 12px; }
.agent-state { margin-left: auto; color: #287a45; font-size: 12px; }
.agent-arrow { display: none; }
.preview-run { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 11px; border: 1px solid #d2d2d7; border-radius: 7px; background: #fff; }
.run-pulse { flex: 0 0 auto; }
.preview-run > span:nth-child(2) { display: grid; gap: 3px; }
.preview-run b { color: #333338; font-size: 12px; font-weight: 600; }
.preview-run small { color: #606067; font-size: 12px; }
.run-arrow { display: none; }
.stage-caption { display: flex; justify-content: space-between; gap: 15px; padding: 12px 2px 0; color: #606067; font-size: 12px; }
.stage-caption span:first-child { color: #604b00; font-weight: 700; }
.trust-strip { display: flex; align-items: center; justify-content: center; gap: 23px; min-height: 68px; border-top: 1px solid #e0e0e5; border-bottom: 1px solid #e0e0e5; color: #4a4a50; background: #f5f5f7; font-size: 12px; }
.trust-strip i { width: 4px; height: 4px; border-radius: 50%; background: #85858b; }
.story-section, .capability-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; width: min(100% - 10vw, 1240px); margin: 0 auto; padding: 120px 0; }
.story-lead h2, .capability-intro h2, .control-band h2, .closing-section h2 { margin: 0; color: var(--site-ink); font-size: 46px; font-weight: 620; line-height: 1.12; text-wrap: balance; }
.story-detail { align-self: end; max-width: 470px; padding-bottom: 5px; }
.story-detail p, .control-band > p { margin: 0; color: var(--site-muted); font-size: 15px; line-height: 1.75; }
.underlined-link { display: inline-block; margin-top: 23px; padding-bottom: 7px; border-bottom: 1px solid #9aaec1; }
.capability-section { grid-template-columns: .72fr 1.28fr; border-top: 1px solid #d2d2d7; }
.capability-intro h2 { max-width: 480px; }
.capability-list { border-top: 1px solid #d2d2d7; }
.capability-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 23px 0; border-bottom: 1px solid #d2d2d7; }
.capability-index, .capability-symbol { display: none; }
.capability-row h3 { margin: 0; color: #26262a; font-size: 17px; font-weight: 600; }
.capability-row p { max-width: 560px; margin: 6px 0 0; color: var(--site-muted); font-size: 13px; line-height: 1.7; }
.control-band { display: grid; grid-template-columns: 1fr .9fr auto; align-items: center; gap: 6%; padding: 66px max(5vw, calc((100vw - 1240px) / 2)); background: var(--site-section); }
.control-band h2 { max-width: 500px; font-size: 38px; }
.control-band > p { max-width: 420px; font-size: 13px; }
.button-light { white-space: nowrap; }
.button-light:hover { color: #fff; background: #004f9e; }
.home-plans { padding: 94px max(5vw, calc((100vw - 1440px) / 2)); background: #f5f5f7; }
.home-plans .pricing-heading { max-width: 1240px; margin-bottom: 31px; text-align: left; }
.home-plans .pricing-heading h2 { margin: 12px 0 0; color: var(--site-ink); font-size: 42px; font-weight: 620; line-height: 1.12; text-wrap: balance; }
.home-plans .pricing-heading > p { margin-top: 10px; }
.home-plans .pricing-state-row { justify-content: space-between; margin-top: 22px; }
.home-plans .pricing-grid { width: min(100%, 1240px); margin: 0 auto; }
.home-plans .pricing-card { min-height: 480px; background: #fff; }
.home-plans .pricing-card-featured { background: #fff; }
.home-plans .pricing-skeleton { min-height: 480px; }
.home-plans .pricing-disclaimer { max-width: 1240px; text-align: left; }
.home-plans .pricing-empty { background: #fff; }
.closing-section { display: flex; align-items: center; flex-direction: column; padding: 102px 20px 108px; text-align: center; }
.closing-section h2 { margin: 0 0 26px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; padding: 12px max(5vw, calc((100vw - 1440px) / 2)); border-top: 1px solid #d2d2d7; background: #f5f5f7; font-size: 11px; }
.site-footer .site-brand { font-size: 17px; }
.site-footer .site-mark { width: 23px; height: 23px; font-size: 12px; }
.site-footer > span { color: #55555b; }
.site-footer > div { display: flex; gap: 22px; }
.site-mobile-nav summary { display: flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; color: #333338; font-size: 13px; }
.site-mobile-nav summary::-webkit-details-marker { display: none; }
.site-mobile-nav summary::after { margin-left: 6px; color: var(--site-accent); content: "+"; }
.site-mobile-nav[open] summary::after { content: "-"; }
.site-mobile-nav nav { position: absolute; top: 56px; right: 16px; z-index: 30; display: grid; min-width: 190px; padding: 7px; border: 1px solid var(--site-line); border-radius: 8px; background: #fff; }
.site-mobile-nav nav a { display: flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 6px; color: #333338; font-size: 13px; }
.site-mobile-nav nav a:hover { color: var(--site-accent); background: #f5f5f7; }
.pricing-main { width: min(100% - 10vw, 1440px); min-height: calc(100vh - 145px); margin: 0 auto; padding: 66px 0 70px; }
.pricing-heading { max-width: 790px; margin: 0 auto 43px; text-align: center; }
.pricing-eyebrow { color: #626269; font-size: 11px; font-weight: 700; }
.pricing-heading h1 { margin: 13px 0 0; color: var(--site-ink); font-size: 48px; font-weight: 620; line-height: 1.1; text-wrap: balance; }
.pricing-heading > p { margin: 14px 0 0; color: var(--site-muted); font-size: 15px; line-height: 1.6; }
.pricing-state-row { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 25px; }
.pricing-mode { color: #67676d; font-size: 10px; font-weight: 650; }
.pricing-period { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #e0e0e5; border-radius: 999px; background: #f5f5f7; }
.pricing-period button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px; color: #66666d; background: transparent; font-size: 12px; font-weight: 550; }
.pricing-period button:hover { color: #1d1d1f; background: #e9e9ed; }
.pricing-period button[aria-pressed="true"] { color: #1d1d1f; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.pricing-card { display: flex; min-width: 0; min-height: 535px; flex-direction: column; padding: 29px 27px 30px; border: 1px solid #ececf0; border-radius: 8px; background: #f8f8f9; }
.pricing-card-featured { border-color: #c9c9cf; background: #f5f5f7; }
.pricing-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pricing-identity { min-width: 0; }
.pricing-identity h2, .pricing-identity h3 { margin: 0; color: #202024; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.pricing-identity p { min-height: 40px; margin: 7px 0 0; color: #696970; font-size: 12px; line-height: 1.55; }
.pricing-credits { flex: 0 0 auto; padding: 5px 8px; border-radius: 5px; color: #244d77; background: #e8f2fc; font-size: 11px; font-weight: 650; }
.pricing-amount { display: flex; align-items: baseline; gap: 8px; min-height: 64px; margin-top: 20px; }
.pricing-amount strong { color: #0c0c0e; font-size: 42px; font-weight: 620; line-height: 1.12; overflow-wrap: anywhere; }
.pricing-amount span { color: #77777d; font-size: 13px; white-space: nowrap; }
.pricing-billing-note { min-height: 22px; margin: 2px 0 0; color: #75757b; font-size: 12px; }
.pricing-button { width: 100%; min-height: 47px; margin-top: 18px; border: 1px solid #0a0a0b; border-radius: 7px; color: #fff; background: #0a0a0b; font-size: 13px; font-weight: 600; }
.pricing-button:hover { border-color: #343438; background: #343438; }
.pricing-button-light { border-color: #e3e3e7; color: #202024; background: #e9e9ec; }
.pricing-button-light:hover { border-color: #d6d6db; color: #111; background: #dedee3; }
.pricing-request-status { min-height: 40px; margin: 8px 0 2px; color: #55555b; font-size: 11px; line-height: 1.5; }
.pricing-feature-title { margin: 10px 0 10px; color: #252529; font-size: 13px; font-weight: 650; }
.pricing-features { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.pricing-features li { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 8px; color: #77777e; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.pricing-features li > span:first-child { color: #32824f; font-size: 14px; font-weight: 700; line-height: 1.25; }
.pricing-disclaimer { max-width: 860px; margin: 24px auto 0; color: #67676e; font-size: 11px; line-height: 1.6; text-align: center; }
.pricing-empty { max-width: 520px; margin: 8px auto 20px; padding: 35px 22px; border: 1px solid #e5e5e9; border-radius: 8px; background: #f8f8f9; text-align: center; }
.pricing-empty h2, .pricing-empty h3 { margin: 0; color: #252529; font-size: 19px; font-weight: 620; }
.pricing-empty p { margin: 8px 0 19px; color: #696970; font-size: 13px; }
.pricing-empty button { min-height: 40px; }
.pricing-alert { display: flex; max-width: 860px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 15px; padding: 11px 14px; border: 1px solid #e5c4c0; border-radius: 6px; color: #803027; background: #fff4f2; font-size: 12px; }
.pricing-alert button { flex: 0 0 auto; min-height: 40px; }
.pricing-skeleton { min-height: 535px; border: 1px solid #ececf0; border-radius: 8px; background: linear-gradient(90deg, #f8f8f9 25%, #f0f0f2 40%, #f8f8f9 60%); background-size: 300% 100%; animation: pricing-shimmer 1.3s ease-in-out infinite; }
@keyframes pricing-shimmer { to { background-position-x: -150%; } }

@media (max-width: 1000px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .shell.page-content { padding-right: 24px; padding-left: 24px; }
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 38px; min-height: 630px; }
  .hero h1 { font-size: 53px; }
  .preview-layout { grid-template-columns: 100px minmax(0, 1fr); }
  .preview-main { padding: 18px 15px 15px; }
  .preview-stats > div { padding: 9px 7px; }
  .story-section, .capability-section { gap: 5%; padding: 96px 0; }
  .control-band { gap: 4%; }
  .pricing-main { width: min(100% - 8vw, 850px); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pricing-skeleton { min-height: 500px; }
  .home-plans { padding-right: 4vw; padding-left: 4vw; }
}
@media (max-width: 680px) {
  .sidebar { position: relative; width: auto; min-height: 0; padding: 0 14px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 53px; }
  .workspace-switch, .nav-label { display: none; }
  .sidebar-bottom { display: flex; justify-content: flex-end; padding: 0 2px 2px; }
  .sidebar-bottom .usage-mini { display: none; }
  .sidebar-bottom .nav-link { min-height: 42px; }
  .sidebar nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 2px 4px; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; min-height: 42px; padding: 0 11px; font-size: 12px; }
  .main-column { margin-left: 0; }
  .topbar { min-height: 50px; padding: 0 16px; }
  .topbar-actions .role, .topbar-actions .avatar-link { display: none; }
  .topbar-actions { flex: 0 0 auto; }
  .auth-links { gap: 8px; }
  .shell.page-content { padding: 24px 16px 40px; }
  .intro { display: block; margin-bottom: 18px; }
  .intro h2 { font-size: 24px; }
  .intro p { font-size: 13px; }
  .mode, .role { margin-top: 12px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .run-form-grid { grid-template-columns: 1fr; gap: 5px; }
  .run-form-grid button { width: 100%; margin-top: 8px; }
  .tenant-switch { display: grid; }
  .tenant-switch > div:last-child, .tenant-switch button { width: 100%; }
  .wide { grid-column: auto; }
  .panel { padding: 17px; }
  .approval { display: grid; }
  .approval input, .approval button { width: 100%; }
  .admin-grid > .panel { min-height: 0; }
  .plan-admin-panel { grid-column: auto; }
  .plan-form-row { grid-template-columns: 1fr; gap: 1px; }
  .provider-editors { grid-template-columns: 1fr; gap: 9px; }
  .provider-category > summary { position: relative; min-height: 60px; flex-wrap: wrap; gap: 3px 10px; padding: 12px 38px 12px 14px; }
  .provider-category-title { font-size: 15px; }
  .provider-category-description { flex: 1 1 100%; padding-right: 20px; font-size: 12px; }
  .provider-category > summary::after { position: absolute; right: 16px; }
  .provider-category-content { padding: 13px 13px 15px; }
  .provider-editor-heading { min-height: 0; }
  .provider-admin-panel .provider-item { align-items: flex-start; flex-direction: column; }
  .provider-actions { justify-content: flex-start; }
  .admin-edit-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .admin-edit-dialog-head { padding: 22px 20px 16px; }
  .admin-edit-dialog-head h2 { font-size: 22px; }
  .admin-edit-dialog .plan-form { padding: 20px 20px 24px; }
  .plan-confirm-dialog { padding: 21px 18px; }
  .admin-gate-page { padding: 16px; }
  .admin-gate { padding: 25px 21px; }
  .admin-gate-brand { margin-bottom: 27px; }
  .admin-gate h1 { font-size: 25px; }
  .admin-gate-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-login-only .admin-gate-brand { margin-bottom: 36px; }
  .admin-login-only h1 { font-size: 28px; }
  .admin-login-only .admin-gate-actions { margin-top: 30px; }
  .agent-list-meta { align-items: stretch; flex-direction: column; }
  .agent-pagination { justify-content: space-between; }
  .agent-pagination button { min-width: 92px; }
  .intro.admin-intro { display: flex; align-items: flex-start; flex-direction: column; }
  .site-header { min-height: 62px; padding: 0 17px; }
  .site-brand { font-size: 18px; }
  .site-nav { display: none; }
  .site-mobile-nav { display: block; margin-right: 8px; margin-left: auto; padding: 8px 0; }
  .site-actions { gap: 13px; }
  .site-login { font-size: 12px; }
  .site-cta { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .pricing-main { width: auto; min-height: calc(100dvh - 150px); padding: 46px 16px 46px; }
  .home-plans { padding: 64px 17px; }
  .home-plans .pricing-heading { margin-bottom: 25px; }
  .home-plans .pricing-heading h2 { font-size: 34px; }
  .home-plans .pricing-state-row { align-items: flex-start; }
  .home-plans .pricing-grid { width: 100%; }
  .home-plans .pricing-card { min-height: 0; }
  .home-plans .pricing-skeleton { min-height: 460px; }
  .home-plans .pricing-disclaimer { margin-top: 17px; }
  .pricing-heading { margin-bottom: 29px; }
  .pricing-heading h1 { font-size: 36px; }
  .pricing-heading > p { max-width: 360px; margin-right: auto; margin-left: auto; font-size: 14px; }
  .pricing-state-row { flex-direction: column; gap: 10px; margin-top: 19px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pricing-card { min-height: 0; padding: 23px 20px 24px; }
  .pricing-identity p { min-height: 0; }
  .pricing-amount { min-height: 57px; margin-top: 16px; }
  .pricing-amount strong { font-size: 37px; }
  .pricing-skeleton { min-height: 460px; }
  .pricing-disclaimer { margin-top: 17px; text-align: left; }
  .pricing-empty { padding: 27px 18px; }
  .hero { display: flex; align-items: stretch; flex-direction: column; gap: 24px; width: auto; min-height: auto; padding: 44px 18px 32px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 470px; font-size: 44px; }
  .hero-description { margin-top: 17px; font-size: 15px; }
  .hero-actions { gap: 17px; margin-top: 21px; }
  .hero-footnote { max-width: 320px; margin-top: 14px; }
  .product-stage { margin: 0 -2px; }
  .product-window { border-radius: 8px; }
  .preview-layout { grid-template-columns: 85px minmax(0, 1fr); min-height: 0; }
  .preview-rail { gap: 3px; padding: 11px 6px; }
  .rail-icon { min-height: 32px; padding: 0 6px; font-size: 12px; }
  .window-bar { min-height: 43px; padding: 0 9px; }
  .window-brand { gap: 5px; font-size: 12px; }
  .preview-label { max-width: 148px; font-size: 12px; text-align: right; }
  .preview-main { padding: 14px 9px 12px; }
  .preview-heading h2 { font-size: 15px; }
  .preview-stats { display: none; }
  .preview-stats > div { padding: 8px 4px; }
  .preview-stats span { font-size: 12px; }
  .preview-stats b { font-size: 13px; }
  .preview-stats .healthy { font-size: 12px; }
  .preview-agent { gap: 6px; min-height: 46px; }
  .preview-agents .preview-agent:not(:first-child) { display: none; }
  .agent-copy b { font-size: 12px; }
  .agent-copy small { font-size: 12px; }
  .agent-icon { width: 25px; height: 25px; }
  .agent-state { font-size: 12px; }
  .preview-run { display: none; }
  .preview-run b { font-size: 12px; }
  .preview-run small { font-size: 12px; }
  .stage-caption { font-size: 12px; }
  .trust-strip { flex-wrap: wrap; gap: 9px 12px; min-height: 72px; padding: 13px 16px; font-size: 12px; }
  .story-section, .capability-section { display: block; width: auto; margin: 0 19px; padding: 77px 0; }
  .story-lead h2, .capability-intro h2, .closing-section h2 { font-size: 37px; }
  .story-detail { margin-top: 22px; }
  .story-detail p { font-size: 14px; }
  .capability-section { border-top: 1px solid #d2d2d7; }
  .capability-list { margin-top: 29px; }
  .capability-row { padding: 19px 0; }
  .capability-row h3 { font-size: 15px; }
  .capability-row p { font-size: 13px; }
  .control-band { grid-template-columns: 1fr; gap: 19px; padding: 48px 19px; }
  .control-band h2 { font-size: 34px; }
  .control-band > p { max-width: 500px; }
  .button-light { justify-self: start; }
  .closing-section { padding: 72px 18px 78px; }
  .site-footer { flex-wrap: wrap; min-height: 88px; padding: 14px 19px; }
  .site-footer > span { order: 3; flex-basis: 100%; }
  .site-footer > div { gap: 14px; font-size: 12px; }
}
@media (max-width: 420px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { align-items: stretch; flex-wrap: wrap; }
  .row > div { flex-basis: 100%; }
  .row button { width: 100%; }
  .topbar-actions { gap: 7px; }
  .test-tag { font-size: 12px; }
}
@media (max-width: 360px) {
  .hero { gap: 16px; padding: 32px 16px 24px; }
  .hero h1 { font-size: 41px; }
  .hero-footnote { display: none; }
  .hero-actions { gap: 13px; }
  .button-primary { padding: 0 14px; }
  .stage-caption { font-size: 12px; }
  .preview-layout { grid-template-columns: 1fr; }
  .preview-rail { display: none; }
  .preview-main { padding-right: 7px; padding-left: 7px; }
  .window-tenant, .window-divider { display: none; }
  .preview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-stats > div:nth-child(2) { border-right: 0; }
  .preview-stats > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid #e0e0e5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* The platform console owns an independent, collapsible navigation rail. */
.admin-page .app-frame { --admin-sidebar-width: 252px; }
.admin-page .sidebar { width: var(--admin-sidebar-width); }
.admin-page .main-column { margin-left: var(--admin-sidebar-width); }
.admin-sidebar-head { display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.admin-sidebar-head .brand { min-width: 0; overflow: hidden; }
.admin-nav-toggle { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: #424248; background: #fff; font-size: 24px; line-height: 1; transition: background-color var(--motion), border-color var(--motion); }
.admin-nav-toggle:hover { border-color: #b8b8bf; background: #f7f7f8; }
.admin-nav-mark { display: none; }
.admin-page .app-frame.admin-nav-collapsed { --admin-sidebar-width: 72px; }
.admin-nav-collapsed .sidebar { align-items: stretch; padding-right: 9px; padding-left: 9px; }
.admin-nav-collapsed .admin-sidebar-head { flex-direction: column; gap: 8px; padding-top: 12px; }
.admin-nav-collapsed .admin-sidebar-head .brand { justify-content: center; width: 100%; height: 40px; padding: 0; }
.admin-nav-collapsed .admin-sidebar-head .brand > span:last-child,
.admin-nav-collapsed .workspace-switch,
.admin-nav-collapsed .nav-label { display: none; }
.admin-nav-collapsed .admin-nav-toggle { align-self: center; }
.admin-nav-collapsed .sidebar nav { margin-top: 18px; }
.admin-nav-collapsed .sidebar nav .nav-link,
.admin-nav-collapsed .sidebar-bottom .nav-link { justify-content: center; min-height: 44px; padding: 0; font-size: 0; }
.admin-nav-collapsed .admin-nav-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #424248; background: #fff; font-size: 12px; font-weight: 650; }
.admin-nav-collapsed .nav-link.active .admin-nav-mark { color: #064f91; background: #e2effb; }
.admin-page [id="overview"], .admin-page [id="tenantAccess"], .admin-page [id="plans"], .admin-page [id="billingPanel"], .admin-page [id="providersPanel"], .admin-page [id="mcpPanel"], .admin-page [id="auditPanel"] { scroll-margin-top: 76px; }
@media (max-width: 1000px) and (min-width: 681px) {
  .admin-page .app-frame { --admin-sidebar-width: 224px; }
}
@media (max-width: 680px) {
  .admin-page .sidebar, .admin-page .main-column { transition: none; }
  .admin-page .sidebar { position: relative; width: auto; min-height: 0; padding: 0 14px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-page .admin-sidebar-head { min-height: 56px; }
  .admin-page .admin-sidebar-head .brand { height: 53px; }
  .admin-page .admin-nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
  .admin-page .sidebar nav { display: grid; gap: 3px; overflow: visible; padding: 5px 0 7px; }
  .admin-page .sidebar nav .nav-label { display: block; }
  .admin-page .sidebar-bottom { display: grid; gap: 3px; margin-top: 0; padding: 3px 0 0; border-top: 1px solid var(--line); }
  .admin-page .main-column { margin-left: 0; }
  .admin-page .app-frame.admin-nav-collapsed .sidebar { padding-right: 14px; padding-left: 14px; }
  .admin-page .app-frame.admin-nav-collapsed .admin-sidebar-head { flex-direction: row; gap: 8px; padding-top: 0; }
  .admin-page .app-frame.admin-nav-collapsed .admin-sidebar-head .brand { justify-content: flex-start; width: auto; height: 53px; padding: 0 9px; }
  .admin-page .app-frame.admin-nav-collapsed .admin-sidebar-head .brand > span:last-child { display: inline; }
  .admin-page .app-frame.admin-nav-collapsed .workspace-switch { display: none; }
  .admin-page .app-frame.admin-nav-collapsed .sidebar nav { display: grid; }
  .admin-page .app-frame.admin-nav-collapsed .sidebar-bottom { display: grid; }
  .admin-page .app-frame.admin-nav-collapsed .sidebar nav .nav-link,
  .admin-page .app-frame.admin-nav-collapsed .sidebar-bottom .nav-link { justify-content: flex-start; min-height: 42px; padding: 0 11px; font-size: 12px; }
  .admin-page .app-frame.admin-nav-collapsed .admin-nav-mark { display: none; }
}
