:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #66736c;
  --brand: #168DB8;
  --brand-dark: #0B6283;
  --brand-soft: #E5F6FC;
  --surface: #ffffff;
  --surface-soft: #f5f7f5;
  --canvas: #edf1ee;
  --line: #dce3de;
  --line-strong: #c8d2cb;
  --success: #237a50;
  --success-soft: #e3f5e9;
  --warning: #9a6916;
  --warning-soft: #fff4d5;
  --danger: #aa3d3d;
  --danger-soft: #fdeaea;
  --sidebar: #071425;
  --sidebar-muted: #9CB1C2;
  --shadow: 0 16px 42px rgba(22, 46, 35, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.04em; }
h2 { margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.035em; }
h3 { margin-bottom: 6px; font-size: 1.28rem; letter-spacing: -.02em; }
h4 { margin: 0; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.app-frame { width: min(960px, calc(100% - 32px)); margin: 40px auto 80px; }
body.is-authenticated .app-frame { width: min(1480px, calc(100% - 28px)); margin: 14px auto 48px; }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.hero p { max-width: 680px; color: var(--muted); }
body.is-authenticated .hero, body.is-authenticated #auth-notice-slot { display: none; }
.eyebrow, .section-kicker { margin-bottom: 7px; color: var(--brand); font-size: .71rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.security-badge, .quiet-badge, .session-2fa { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #acd0b9; border-radius: 999px; color: var(--brand-dark); background: var(--success-soft); font-size: .76rem; font-weight: 800; }
.quiet-badge { border-color: var(--line-strong); color: var(--muted); background: var(--surface-soft); }

.card, .console-section { margin: 18px 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card { max-width: 680px; }
.warning { border-color: #e7cf7a; background: var(--warning-soft); }
.notice { min-height: 48px; margin: 0 0 18px; padding: 13px 16px; border: 1px solid transparent; border-radius: 12px; color: #365046; background: #dde8e0; }
.notice.error { border-color: #f1c8c8; color: #812b2b; background: var(--danger-soft); }
.danger-action { border-color: var(--danger); color: var(--danger); }
.notice.success { border-color: #bddfc9; color: #145532; background: var(--success-soft); }

form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #31433b; font-weight: 680; }
input, textarea, select, button, .button { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #adbbb2; border-radius: 11px; background: white; color: var(--ink); }
textarea { resize: vertical; }
button, .button { border-color: var(--brand); background: var(--brand); color: white; font-weight: 760; cursor: pointer; text-align: center; text-decoration: none; }
button:hover, .button:hover { background: var(--brand-dark); }
button:disabled { cursor: wait; opacity: .65; }
.secondary { border-color: var(--line-strong); background: white; color: var(--brand-dark); }
.secondary:hover { background: var(--surface-soft); }
.compact { width: auto; min-width: 116px; }
.divider { height: 1px; margin: 5px 0; background: var(--line); }
.secret-box { display: grid; gap: 10px; margin: 18px 0; padding: 16px; border-radius: 12px; background: var(--surface-soft); }
.secret-box code { overflow-wrap: anywhere; font-size: 1rem; font-weight: 800; letter-spacing: .08em; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button-row > * { width: auto; }

.console-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 28px); overflow: clip; border: 1px solid #233b31; border-radius: 24px; background: var(--sidebar); box-shadow: 0 26px 70px rgba(13, 33, 25, .2); }
.console-sidebar { position: sticky; top: 14px; display: flex; flex-direction: column; align-self: start; min-width: 0; height: calc(100vh - 28px); padding: 24px 18px 18px; color: white; }
.console-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.console-brand div { display: grid; gap: 2px; }
.console-brand strong { font-size: 1.08rem; letter-spacing: -.01em; }
.console-brand span:not(.brand-mark) { color: var(--sidebar-muted); font-size: .78rem; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #02151C; background: #24B7E5; font-weight: 900; }
.console-nav { display: grid; gap: 5px; }
.console-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 11px; color: #dfeae5; text-decoration: none; }
.console-nav a:hover { background: rgba(255, 255, 255, .06); }
.console-nav a[aria-current="page"] { border-color: rgba(36, 183, 229, .28); color: white; background: rgba(36, 183, 229, .13); }
.console-nav a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; font-weight: 680; }
.console-nav a small { flex: 0 0 auto; color: var(--sidebar-muted); font-size: .63rem; text-transform: uppercase; }
.session-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: auto; padding: 13px 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.session-card div { display: grid; min-width: 0; gap: 2px; }
.session-card strong, .session-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-card div span { color: var(--sidebar-muted); font-size: .71rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #72d89a; box-shadow: 0 0 0 4px rgba(114, 216, 154, .1); }
.session-2fa { padding: 4px 6px; border: 0; color: #bde8cc; background: rgba(114, 216, 154, .12); font-size: .64rem; }
.sidebar-action { margin-top: 5px; border-color: rgba(255, 255, 255, .12); color: #dfeae5; background: transparent; }
.sidebar-action:hover { background: rgba(255, 255, 255, .07); }

.console-workspace { min-width: 0; padding: clamp(22px, 3vw, 40px); border-radius: 23px; background: var(--canvas); }
.console-topbar, .section-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.console-topbar { margin: 2px 0 22px; }
.console-topbar p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
#console-notice-slot:empty { display: none; }
.recovery-card { margin: 0 0 22px; }
.recovery-card pre { overflow: auto; max-height: 220px; white-space: pre-wrap; overflow-wrap: anywhere; }
.console-section { scroll-margin-top: 18px; margin: 0 0 22px; }
.section-title-row > div > p:last-child { margin-bottom: 0; color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.metric-card { position: relative; display: grid; min-width: 0; min-height: 132px; align-content: space-between; gap: 8px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.metric-card::after { position: absolute; top: 17px; right: 17px; width: 8px; height: 8px; border-radius: 50%; background: #9ba7a0; content: ""; }
.metric-card[data-tone="success"]::after { background: var(--success); }
.metric-card[data-tone="warning"]::after { background: #e3a32e; }
.metric-card[data-tone="danger"]::after { background: var(--danger); }
.metric-label { padding-right: 14px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { overflow-wrap: anywhere; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.035em; }
.metric-card > span:last-child { color: var(--muted); font-size: .78rem; line-height: 1.4; }

.overview-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 14px; margin-top: 14px; }
.lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-block { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-heading > div { display: grid; gap: 4px; }
.panel-heading span { color: var(--muted); font-size: .72rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.panel-heading strong { font-size: 1.08rem; }
.blocker-list { display: grid; gap: 10px; }
.blocker { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 12px; padding: 13px; border-radius: 12px; background: var(--surface-soft); }
.blocker::before { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #84928a; content: ""; }
.blocker[data-severity="critical"] { background: var(--danger-soft); }
.blocker[data-severity="critical"]::before { background: var(--danger); }
.blocker[data-severity="warning"] { background: var(--warning-soft); }
.blocker[data-severity="warning"]::before { background: #d99a22; }
.blocker strong { display: block; margin-bottom: 3px; font-size: .92rem; }
.blocker p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.42; }
.empty-state { margin: 0; color: var(--muted); }
.fact-list { display: grid; gap: 0; margin: 0; }
.fact-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fact-list div:first-child { border-top: 0; }
.fact-list dt { color: var(--muted); font-size: .78rem; }
.fact-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; text-align: right; font-size: .8rem; font-weight: 730; }
.fact-list code { font-size: .69rem; }
.release-grid, .feature-list { display: grid; gap: 9px; }
.release-item, .feature-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.release-item:first-child, .feature-item:first-child { border-top: 0; }
.release-item div { display: grid; min-width: 0; gap: 3px; }
.release-item strong, .feature-item strong { font-size: .88rem; }
.release-item span, .feature-item span { color: var(--muted); font-size: .74rem; }
.owner-candidate { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.owner-candidate p { margin: 0; color: var(--muted); font-size: .82rem; }
.owner-candidate button { justify-self: start; }
.state-pill { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #52625a; background: #edf1ee; font-size: .68rem !important; font-weight: 800; }
.state-pill.ready { color: #17613d; background: var(--success-soft); }
.state-pill.warning { color: #78500c; background: var(--warning-soft); }
.evidence-note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid #95a59c; border-radius: 5px 12px 12px 5px; color: #52635b; background: var(--surface-soft); font-size: .82rem; line-height: 1.5; }

.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.provider { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.provider-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.provider-meta { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.status-pill { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e8ece9; font-size: .7rem; font-weight: 800; }
.status-pill.ready { color: #145532; background: var(--success-soft); }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 13px; }
.key-row button { width: auto; }
.muted { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.prompt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--surface-soft); }
.prompt-form .wide-field, .prompt-form button { grid-column: 1 / -1; }
.prompt-form button { width: fit-content; min-width: 180px; }
.prompt-list { display: grid; gap: 10px; margin-top: 20px; }
.prompt { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.prompt.active { border-color: #78af8c; background: #f0f8f2; }
.prompt pre { max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.alpha-export-actions { margin: 16px 0; }
.alpha-feedback-block { margin-top: 14px; }
.alpha-participant-list, .alpha-item-list { display: grid; gap: 9px; }
.alpha-participant { min-width: 0; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.alpha-participant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.alpha-participant-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.alpha-participant .provider-meta { margin: 8px 0; }
.alpha-counts { margin: 0; color: #43544c; font-size: .78rem; line-height: 1.5; }
.alpha-item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.alpha-item-row:first-child { border-top: 0; }
.alpha-item-row div { display: grid; min-width: 0; gap: 3px; }
.alpha-item-row code { overflow-wrap: anywhere; font-size: .78rem; font-weight: 800; }
.alpha-item-row span { color: var(--muted); font-size: .73rem; }
.alpha-item-row > span { text-align: right; }
.partial-section { box-shadow: none; background: rgba(255, 255, 255, .58); }
.partial-section p:last-child { margin-bottom: 0; max-width: 780px; color: var(--muted); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #24B7E5; outline-offset: 3px; }

@media (max-width: 1120px) {
  .console-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .console-sidebar { padding-inline: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-frame, body.is-authenticated .app-frame { width: min(100% - 18px, 960px); margin-top: 10px; }
  .hero, .console-topbar, .section-title-row { display: grid; }
  .security-badge { width: fit-content; }
  .console-shell { display: block; min-height: auto; overflow: visible; border-radius: 20px; }
  .console-sidebar { position: static; display: grid; height: auto; padding: 16px; }
  .console-brand { padding-bottom: 14px; }
  .console-nav { display: flex; margin: 0 -4px 14px; padding: 4px; overflow-x: auto; scroll-snap-type: x proximity; }
  .console-nav a { flex: 0 0 auto; min-width: 138px; scroll-snap-align: start; }
  .session-card { margin-top: 0; }
  .sidebar-action { margin-top: 8px; }
  .console-workspace { padding: 18px 12px 20px; border-radius: 19px; }
  .metric-grid, .lower-grid, .provider-grid, .prompt-form { grid-template-columns: 1fr; }
  .metric-card { min-height: 118px; }
  .prompt-form .wide-field, .prompt-form button { grid-column: auto; }
  .compact, .prompt-form button { width: 100%; }
  .button-row > *, .key-row button { width: 100%; }
  .key-row { grid-template-columns: 1fr; }
  .alpha-participant-heading { display: grid; }
  .alpha-participant-heading .state-pill { width: fit-content; }
  .alpha-item-row { grid-template-columns: 1fr; gap: 5px; }
  .alpha-item-row > span { text-align: left; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .fact-list div { grid-template-columns: 1fr; gap: 4px; }
  .fact-list dd { text-align: left; }
  .release-item, .feature-item { align-items: flex-start; }
}

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


.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0b2b1d;
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}


/* 2026-09-30 — simplified owner workflows. */
.provider-steps,
.promo-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.provider-steps article,
.mini-guide {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.provider-steps article > span {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #06384A;
  background: #BCEEFF;
  font-size: .78rem;
  font-weight: 900;
}
.provider-steps article div,
.mini-guide { min-width: 0; }
.provider-steps strong,
.mini-guide strong { display: block; margin-bottom: 4px; font-size: .88rem; }
.provider-steps p,
.mini-guide span { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.provider-routes-panel { margin-top: 16px; }
.provider-function-grid { margin-top: 0; }
.route-card { display: grid; gap: 10px; background: #F7FAFC; }
.route-card label { font-size: .8rem; }
.route-current {
  margin: 0;
  padding: 10px 11px;
  border-radius: 10px;
  color: #24404D;
  background: #E9F6FB;
  font-size: .78rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.route-advanced {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}
.route-advanced summary,
.advanced-block > summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 800;
}
.route-advanced summary { padding: 9px 0 3px; }
.route-advanced label { margin-top: 9px; }

.advanced-block > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.advanced-block > summary span {
  color: var(--muted);
  font-weight: 560;
}
.connection-id {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .68rem;
  font-weight: 600;
}
.status-pill.warning {
  color: #7A4E06;
  background: var(--warning-soft);
}
.connection-card { background: white; }

.promo-form { margin-top: 18px; }
.promo-grants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}
.promo-grants legend {
  padding: 0 6px;
  color: #31433b;
  font-size: .8rem;
  font-weight: 760;
}
.promo-grants label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
}
.promo-grants input { width: auto; min-height: auto; }
.promo-issued code {
  display: block;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  background: #071425;
  color: #7DDCFF;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .provider-steps,
  .promo-intro-grid { grid-template-columns: 1fr; }
}

.access-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 14px;
}
