:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: #121519;
  --panel-2: #171b20;
  --line: #2a3037;
  --text: #f4f6f8;
  --muted: #9aa4af;
  --orange: #ff6a1a;
  --green: #61d69b;
  --yellow: #f1c75b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 20% -10%, #20252b 0, transparent 34rem), var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--text); }
.topbar { height: 68px; padding: 0 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(11,13,15,.88); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.mark { width: 21px; height: 21px; display: inline-block; border: 2px solid white; clip-path: polygon(50% 0, 100% 25%, 82% 100%, 18% 100%, 0 25%); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 80px; }
h1, h2 { letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1; }
h2 { font-size: 1.35rem; }
p { line-height: 1.55; }
.eyebrow, .step { color: var(--orange); font-size: .73rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 12px; }
.muted, .fine, small { color: var(--muted); }
.fine { font-size: .78rem; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.active-pill { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 11px 16px; display: flex; gap: 9px; align-items: center; font-weight: 700; }
.active-pill.is-active { color: var(--green); border-color: #2c6e50; background: #11251d; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #59616b; }
.is-active .status-dot { background: var(--green); box-shadow: 0 0 14px rgba(97,214,155,.7); }
.status-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0 30px; }
.status-card { min-height: 132px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); display: flex; flex-direction: column; }
.status-card span { font-size: .76rem; color: var(--muted); min-height: 34px; }
.status-card strong { font-size: 1.65rem; margin: 7px 0; color: #646e78; }
.status-card small { font-size: .72rem; margin-top: auto; }
.pass { color: var(--green) !important; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--line); background: rgba(18,21,25,.93); border-radius: 16px; padding: 24px; }
.panel h2 { margin-bottom: 10px; }
.stack { display: grid; gap: 16px; }
.stack.compact { margin-top: 16px; }
label { color: #d9dee3; font-size: .84rem; font-weight: 650; display: grid; gap: 7px; }
input { width: 100%; border: 1px solid #39414a; border-radius: 9px; background: #0d1013; color: var(--text); padding: 12px 13px; font: inherit; }
input:focus { outline: 2px solid rgba(255,106,26,.38); border-color: var(--orange); }
button { border: 0; border-radius: 9px; background: var(--orange); color: #fff; padding: 12px 16px; font: inherit; font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 12px; }
button.small { padding: 7px 10px; font-size: .76rem; }
.inline-form { margin: 0; }
.copy-box { background: #090b0d; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: #cbd2d8; overflow-wrap: anywhere; font: .8rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.notice { border: 1px solid #3c4956; background: #17202a; color: #cbd8e5; padding: 11px 13px; border-radius: 9px; margin: 14px 0; font-size: .84rem; }
.notice.warning { border-color: #66572b; background: #262111; color: #f0d986; }
.notice.error { border-color: #713a3a; background: #291616; color: #f5a4a4; }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 18px 1fr; align-items: start; border: 1px solid var(--line); background: #0e1114; padding: 12px; border-radius: 9px; cursor: pointer; }
.choice input { width: auto; margin-top: 3px; accent-color: var(--orange); }
.choice span { display: grid; gap: 3px; }
.choice small { font-weight: 400; }
.activation-panel { border-color: #4d3a2f; }
.audit-panel { margin-top: 16px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading span { color: var(--muted); font-size: .8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
td small { display: block; margin-top: 4px; }
.tag { display: inline-block; border: 1px solid var(--line); padding: 4px 7px; border-radius: 999px; color: var(--muted); }
.tag.completed { color: var(--green); border-color: #2c6e50; }
.tag.failed, .tag.denied { color: #f49a9a; border-color: #6c3939; }
.tag.approval_required { color: var(--yellow); border-color: #66572b; }
.empty { color: var(--muted); }
.action-detail { min-width: 82px; }
.action-detail summary { color: #d7dde3; cursor: pointer; font-weight: 700; }
.action-detail div { width: min(520px, 75vw); margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #090b0d; }
.action-detail b { display: block; margin: 10px 0 5px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.action-detail b:first-child { margin-top: 0; }
.action-detail pre { max-height: 210px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #d8dee5; font: .72rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.auth-card { width: min(440px, 100%); margin: 9vh auto 0; border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: rgba(18,21,25,.94); }
.auth-card h1 { font-size: 2.45rem; margin-bottom: 10px; }
.auth-card .stack { margin-top: 24px; }
.auth-switch { color: var(--muted); font-size: .85rem; margin-top: 22px; }
@media (max-width: 960px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .shell { padding-top: 28px; } .topbar { padding: 0 16px; } .hero-row { align-items: flex-start; flex-direction: column; } .two-column { grid-template-columns: 1fr; } .status-grid { grid-template-columns: repeat(2, 1fr); } .panel { padding: 19px; } }
@media (max-width: 420px) { .status-grid { grid-template-columns: 1fr; } }

/* Customer product experience: preserve the original dark identity. */
:root { --orange: #dda15f; --muted: #abb3bd; --bg: #0b0f14; }
body { background: var(--bg); }
button,.button { color: #11161c; }
.brand img { display:block; width:162px; height:auto; }
a { text-underline-offset:4px; }
a:hover { color: #efc89b; }
button:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible { outline: 3px solid #efc89b; outline-offset:4px; }
.skip-link { position:absolute; left:16px; top:-60px; z-index:20; padding:12px; background:var(--panel); }
.skip-link:focus { top:8px; }
.app-nav { display:flex; align-items:center; gap:24px; font-size:.85rem; }
.app-nav a { text-decoration:none; }
.hero-row h1 { font-size:clamp(2rem,4.5vw,3rem); line-height:1.1; }
.active-pill { flex-shrink:0; white-space:nowrap; }
.state-explanation { color:var(--muted); padding:12px 0; }
.status-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.status-card { min-height:165px; background:var(--panel); padding:24px; }
.status-card span { min-height:auto; margin-bottom:12px; }
.status-card h2 { font-size:1.05rem; line-height:1.4; }
.status-card strong { font-size:1.05rem; }
.status-card a { font-size:.8rem; margin-top:14px; }
.stepper { list-style:none; margin:32px 0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.stepper li { padding:18px; color:var(--muted); font-size:.82rem; border-right:1px solid var(--line); }
.stepper li:last-child { border:0; }
.stepper span { display:block; margin-bottom:8px; font-size:.7rem; }
.stepper .current { background:#30261c; color:#f1c99d; box-shadow:inset 0 -2px var(--orange); }
.setup-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:20px; align-items:start; }
.setup-main { padding:32px; }
.setup-main h2 { font-size:1.5rem; }
.instruction-list { padding-left:22px; line-height:1.7; margin:24px 0; }
.instruction-list li { padding:5px 0; }
.button { display:inline-block; text-decoration:none; padding:12px 16px; border-radius:9px; background:var(--orange); font-weight:700; }
.button.secondary { color:var(--text); background:transparent; border:1px solid var(--line); margin-top:16px; }
.help { margin-top:24px; color:var(--muted); font-size:.85rem; }
.help summary { cursor:pointer; }
.pairing-label { margin-top:20px; }
textarea.copy-box { width:100%; resize:vertical; }
dl { margin:24px 0; } dt { color:var(--muted); font-size:.75rem; margin-top:18px; } dd { margin:5px 0; font-size:.9rem; }
.attention,.account-panel { margin-top:20px; }
.app-footer { width:min(1180px,calc(100% - 32px)); margin:0 auto 32px; display:flex; gap:24px; font-size:.8rem; color:var(--muted); }
.app-footer a { color:inherit; }
.billing-panel { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:24px 0; padding:20px 24px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.billing-panel p { margin:5px 0 0; font-size:.85rem; color:var(--muted); }
.billing-actions { display:flex; align-items:center; gap:10px; }
.action-detail pre { max-width:300px; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:760px) { .setup-grid { grid-template-columns:1fr; } .setup-aside { order:2; } .status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .app-nav { gap:14px; } .app-nav a { font-size:.75rem; } .stepper { grid-template-columns:repeat(2,minmax(0,1fr)); } .stepper li { border-bottom:1px solid var(--line); } .billing-panel { align-items:flex-start; flex-direction:column; } }
@media(max-width:480px) { .topbar { height:auto; min-height:68px; flex-wrap:wrap; gap:16px; padding:18px 16px; } .brand img { width:140px; } .app-nav { flex-wrap:wrap; width:100%; justify-content:space-between; } .status-grid { grid-template-columns:1fr; } .setup-main { padding:22px; } .stepper li { padding:14px; } }
.auth-help { margin-top:-8px; text-align:right; font-size:.8rem; }
.section-tools { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:.8rem; }
.audit-retention { margin-top:14px; }
