/* Cloudflare deployment studio: calm dark surfaces, technical detail, and action used sparingly. */
:root {
  --bg: #07080a;
  --surface: #0c0d10;
  --surface-raised: #111216;
  --surface-hover: #15161b;
  --line: #24262c;
  --line-strong: #353840;
  --text: #f2f3f5;
  --text-soft: #c9cdd4;
  --muted: #959ba6;
  --faint: #7d838d;
  --orange: #f6821f;
  --mango: #fbad41;
  --orange-dark: #2b1a0d;
  --green: #57cf7d;
  --green-dark: #10291a;
  --red: #ff857a;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: var(--mango); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #ffc671; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 50px); font-weight: 620; line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 24px; font-weight: 620; line-height: 1.25; letter-spacing: -.02em; }
h3 { margin: 0 0 10px; font-size: 17px; font-weight: 620; line-height: 1.4; letter-spacing: -.012em; }
code { padding: 2px 5px; border: 1px solid #2b2d33; border-radius: 4px; background: #0a0b0e; color: #e1e4e9; font-family: var(--mono); font-size: inherit; overflow-wrap: anywhere; }
::selection { background: #68401a; color: #fff; }
:focus-visible { outline: 2px solid var(--mango); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id], details[id] { scroll-margin-top: 92px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; border-radius: 6px; background: var(--mango); color: #17100a; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Shell */
.top { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgba(7, 8, 10, .94); backdrop-filter: blur(16px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1180px, calc(100% - 48px)); min-height: 72px; margin: 0 auto; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.mark { width: 34px; height: 22px; }
.brand-name { font-size: 14px; letter-spacing: -.01em; }
.brand-name b { font-weight: 650; }
.brand-edition { margin-left: 5px; padding-left: 15px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; }
.header-actions, .session-area { display: flex; align-items: center; gap: 18px; }
.demo-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 12px; }
.demo-breadcrumb a { color: var(--muted); text-decoration: none; }
.demo-breadcrumb a:hover { color: var(--text); }
.session-area { gap: 12px; }
.session-area form { margin: 0; }
.session-chip { display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.3; }
.acct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct b { color: var(--text-soft); font-weight: 600; }
.connection-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(87, 207, 125, .08); }
.link { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: none; }
.link:hover { color: var(--text); }
.sign-out { min-height: 36px; padding: 6px 0; font-size: 12px; white-space: nowrap; }
.site-main { width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 145px); margin: 0 auto; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 48px)); margin: 72px auto 0; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--faint); font: 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* Shared type and controls */
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--mango); font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 20px; height: 1px; background: var(--orange); }
.lede { max-width: 68ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; letter-spacing: -.008em; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.65; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-note { padding-top: 22px; color: var(--faint); font: 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.012); color: var(--muted); font: 11px/1.6 var(--mono); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--orange); border-radius: 6px; background: var(--orange); color: #17100a; font-weight: 680; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.btn:hover { border-color: var(--mango); background: var(--mango); color: #17100a; }
.btn:active { transform: translateY(1px); }
.btn.secondary { border-color: var(--line-strong); background: #14151a; color: var(--text-soft); font-weight: 600; }
.btn.secondary:hover { border-color: #666b75; background: #1a1c21; color: #fff; }
.btn.danger { border-color: #59322f; background: #1c1212; color: var(--red); font-size: 12px; font-weight: 600; }
.btn.danger:hover { border-color: #8d4a43; background: #281615; color: #ff9f95; }
.btn:disabled { border-color: var(--line-strong); background: #24262b; color: #a1a5ad; cursor: wait; transform: none; }
.inline { display: inline-flex; margin: 0; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 13px; font-weight: 550; text-decoration: none; }
.text-link:hover { color: var(--mango); }
.action-note { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; color: var(--faint); font-size: 11px; }
.action-note > span { color: var(--green); }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #523319; border-radius: 4px; background: var(--orange-dark); color: var(--mango); font: 600 11px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.tag.live { border-color: #244e31; background: var(--green-dark); color: var(--green); }

/* Journey map */
.journey { margin: 0 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.journey li { position: relative; }
.journey li:not(:last-child) { border-right: 1px solid var(--line); }
.journey li.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--orange); content: ""; }
.journey a { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 20px; color: var(--muted); text-decoration: none; }
.journey a:hover { background: rgba(255,255,255,.018); color: var(--text); }
.journey .active a { background: linear-gradient(180deg, rgba(246,130,31,.025), rgba(246,130,31,.06)); color: var(--text); }
.journey-number { color: var(--faint); font: 11px/1 var(--mono); }
.journey .active .journey-number { color: var(--orange); }
.journey a > span:last-child { font-size: 12px; font-weight: 600; letter-spacing: .01em; }

/* Landing */
.landing-page { padding-top: 1px; }
.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: clamp(48px, 7vw, 100px); align-items: center; padding: 68px 0 54px; }
.landing-hero::before { position: absolute; z-index: -1; top: 0; right: 0; width: 42%; height: 100%; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000); content: ""; }
.landing-copy h1 span { color: var(--muted); }
.landing-copy .lede { max-width: 590px; }
.assurance-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 27px 0 0; padding: 0; color: var(--faint); font-size: 11px; list-style: none; }
.assurance-list li { display: flex; align-items: center; gap: 7px; }
.assurance-list li::before { color: var(--green); content: "✓"; }
.deployment-preview { border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(12,13,16,.92); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.preview-header, .evidence-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--faint); font: 11px/1.5 var(--mono); letter-spacing: .07em; }
.preview-state { color: var(--green); }
.preview-state i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.preview-app { display: flex; align-items: center; gap: 13px; padding: 22px 20px; }
.app-glyph { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #5a3717; border-radius: 7px; background: #20150c; color: var(--mango); font: 600 12px/1 var(--mono); }
.preview-app b, .preview-app small { display: block; }
.preview-app b { font-size: 15px; }
.preview-app small { margin-top: 2px; color: var(--muted); font: 11px/1.5 var(--mono); }
.resource-list { margin: 0 20px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.resource-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #1b1d22; font-size: 11px; }
.resource-list span { color: var(--faint); }
.resource-list b { color: var(--text-soft); font-weight: 500; text-align: right; }
.preview-foot { margin: 0; padding: 15px 20px; color: var(--faint); font-size: 11px; }
.workshop-catalog { padding-top: 10px; }
.workshop-catalog > .section-heading { margin-bottom: 20px; }
.workshop-list { display: grid; gap: 14px; }
.workshop-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.workshop-card h3 { margin: 12px 0 9px; font-size: 21px; }
.workshop-card h3 a { color: var(--text); text-decoration: none; }
.workshop-card h3 a:hover { color: var(--mango); }
.workshop-card-main > p { max-width: 700px; margin: 0; color: var(--muted); }
.workshop-card-action { display: flex; min-width: 165px; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 24px; }
.workshop-card-action .meta { display: flex; gap: 14px; margin: 0; color: var(--muted); font: 12px/1.5 var(--mono); }
.workshop-card-action .meta span { color: var(--green); }

/* Workshop heading, sign-in and account gate */
.workshop-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 330px); gap: 50px; align-items: end; padding: 50px 0 34px; }
.workshop-hero h1 { max-width: 750px; font-size: clamp(32px, 4vw, 46px); }
.workshop-hero .lede { max-width: 720px; font-size: 16px; }
.workshop-hero .chips { justify-content: flex-end; margin-bottom: 3px; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.access-primary { padding: 36px; }
.access-primary h2 { max-width: 500px; margin-bottom: 14px; font-size: 28px; }
.access-primary > p:not(.eyebrow, .action-note) { max-width: 580px; color: var(--muted); }
.access-primary .btn { margin-top: 12px; }
.permission-panel { padding: 30px; border-left: 1px solid var(--line); background: #0a0b0e; }
.permission-panel > p { color: var(--muted); font-size: 12px; }
.permission-panel details { margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.permission-panel summary { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.scopes { margin: 14px 0 4px; padding-left: 18px; color: var(--muted); font-size: 12px; }
.scopes li { margin: 8px 0; }
.scopes b { color: var(--text-soft); }
.gate-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.gate-index { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #5a3717; border-radius: 50%; color: var(--mango); font: 12px/1 var(--mono); }
.gate-panel .eyebrow { margin-bottom: 6px; }
.gate-panel p:last-child { margin: 7px 0 0; color: var(--muted); }
.session-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -16px 0 20px; color: var(--faint); font-size: 11px; }
.session-bar > div { display: flex; align-items: center; gap: 8px; }
.session-bar a { color: var(--muted); font-size: 11px; }

/* Deploy workspace */
.build-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.deploy-workspace { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); box-shadow: 0 14px 45px rgba(0,0,0,.14); }
.deploy-workspace::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--orange), #6f3c13 46%, transparent 90%); content: ""; }
.deploy-workspace.state-ours::before { background: linear-gradient(90deg, var(--green), #245c36 46%, transparent 90%); }
.deploy-workspace > .section-heading { padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.deploy-body { min-height: 250px; padding: 30px 28px; }
.state-copy { max-width: 670px; margin-bottom: 25px; }
.state-copy h3 { margin-bottom: 9px; font-size: 20px; }
.state-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.state-copy p b { color: var(--text-soft); }
.state-copy a { overflow-wrap: anywhere; }
.live-copy h3 { color: #e8f7ec; }
.status-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; margin-top: 3px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 500 12px/1.4 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.on { border-color: #285137; background: var(--green-dark); color: var(--green); }
.status-badge.warn { border-color: #5b3d1c; background: #21170d; color: var(--mango); }
.status-badge.ready { border-color: #454037; color: #c4b9a8; }
.status-badge.pending { color: var(--muted); }
.inline-notice { display: flex; gap: 10px; margin: -6px 0 24px; padding: 12px 14px; border-left: 2px solid var(--mango); background: #19140d; }
.inline-notice > span { color: var(--mango); font-weight: 700; }
.inline-notice p { margin: 0; }
.company-disclosure { border-top: 1px solid var(--line); background: #0d0e11; }
.company-disclosure summary { padding: 13px 28px; color: var(--faint); font-size: 11px; }
.company-disclosure p { margin: 0; padding: 0 28px 20px; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; content: ""; }
.technical-disclosure { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.technical-disclosure summary, .company-disclosure summary { cursor: pointer; }
.technical-disclosure summary { display: flex; justify-content: space-between; gap: 16px; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.technical-disclosure summary span { color: var(--faint); font: 11px/1.7 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.technical-disclosure[open] summary { margin-bottom: 14px; color: var(--mango); }
.technical-disclosure p { max-width: 70ch; }
.enhancement { border-top-color: #3b2a18; }
.build-sidebar { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.deployment-plan { padding: 24px; }
.rail-label { margin: 0 0 12px; color: var(--faint); font: 11px/1.5 var(--mono); letter-spacing: .1em; }
.deployment-plan h3 { margin-bottom: 22px; color: var(--text-soft); font-size: 18px; font-weight: 550; }
.deployment-plan dl { margin: 0; }
.deployment-plan dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #1e2025; font-size: 11px; }
.deployment-plan dt { color: var(--faint); }
.deployment-plan dd { margin: 0; color: var(--text-soft); font-family: var(--mono); font-size: 12px; text-align: right; }
.ownership-note { display: flex; gap: 12px; padding: 20px 24px; border-top: 1px solid var(--line); background: #0d1210; }
.small-shield { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; border: 1px solid #285137; border-radius: 50%; color: var(--green); font-size: 11px; }
.ownership-note h3 { margin: 1px 0 5px; color: #cfe8d6; font-size: 12px; }
.ownership-note p { margin: 0; color: #869a8d; font-size: 11px; line-height: 1.6; }
.build-alternatives { padding: 20px 24px; border-top: 1px solid var(--line); }
.build-alternatives > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--text-soft); font-size: 12px; text-decoration: none; }
.alternative-disclosure { margin: 0 -24px -20px; padding: 0 24px 20px; }
.alternative-disclosure > summary { padding: 11px 0; border-top: 1px solid #1e2025; }
.alternative-disclosure > summary b, .alternative-disclosure > summary small { display: block; }
.alternative-disclosure > summary b { color: var(--text-soft); font-size: 12px; font-weight: 500; }
.alternative-disclosure > summary small { margin-top: 3px; color: var(--faint); font-size: 11px; }
.alternative-disclosure[open] > summary { margin-bottom: 16px; }
.disclosure-body > p { color: var(--muted); font-size: 11px; }
.terraform-form label { display: block; margin-bottom: 12px; color: var(--text-soft); font-size: 11px; }
.terraform-form label span { color: var(--faint); }
.field-grid { display: grid; gap: 0; }
input[type="text"] { width: 100%; min-height: 40px; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #090a0c; color: var(--text); font: 11px/1.5 var(--mono); }
input[type="text"]::placeholder { color: #565c65; }
input[type="text"]:focus { border-color: var(--mango); }
.terraform-form .btn { width: 100%; margin-top: 4px; font-size: 11px; }
.cleanup-access { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #100d0d; }
.cleanup-access .rail-label { color: #bd776f; }
.cleanup-access h3 { margin-bottom: 7px; font-size: 15px; }
.cleanup-access > p:not(.rail-label) { color: var(--muted); font-size: 11px; line-height: 1.65; }
.cleanup-access > p b { color: var(--text-soft); }
.cleanup-form { margin: 0; }
.cleanup-form > .btn { width: 100%; margin-top: 4px; }
.cleanup-dialog { width: min(560px, calc(100% - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; border: 1px solid #654039; border-radius: 10px; background: var(--surface-raised); color: var(--text); box-shadow: 0 30px 100px #000a; }
.cleanup-dialog::backdrop { background: rgba(2, 3, 4, .78); backdrop-filter: blur(5px); }
.cleanup-dialog-inner { padding: 30px; }
.cleanup-dialog .eyebrow { margin-bottom: 9px; color: var(--red); }
.cleanup-dialog h2 { margin-bottom: 14px; font-size: 27px; }
.cleanup-dialog h2 + p { color: var(--text-soft); font-size: 14px; }
.cleanup-dialog p b { color: var(--text); }
.cleanup-resources { margin: 20px 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.cleanup-resources li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.cleanup-resources b, .cleanup-resources span { display: block; }
.cleanup-resources b { color: var(--text-soft); font-size: 13px; }
.cleanup-resources span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cleanup-dialog .cleanup-safety { margin-bottom: 20px; }
.cleanup-confirmation { display: block; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.cleanup-confirmation strong { color: var(--red); font-family: var(--mono); letter-spacing: .06em; }
.cleanup-confirmation input { min-height: 46px; margin-top: 8px; font-size: 16px; letter-spacing: .08em; }
.cleanup-dialog #cleanup-delete-hint { margin: 7px 0 0; }
.cleanup-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; }
.cleanup-dialog-actions .btn { min-width: 120px; font-size: 13px; }
.cleanup-dialog .btn:disabled { cursor: not-allowed; opacity: .65; }

/* Verification */
.verify-workspace { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.verify-workspace > .section-heading { margin-bottom: 23px; }
.verify-grid { display: grid; grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); gap: 40px; align-items: start; }
.verify-intro { padding-top: 5px; }
.verify-intro > p { color: var(--muted); }
.live-check-form { margin: 24px 0 0; }
.verify-intro .technical-disclosure { margin-top: 18px; }
.evidence-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.evidence-header { padding: 11px 16px; }
.evidence-panel > p { margin: 14px 18px 0; }
.checks { margin: 0; padding: 0; list-style: none; }
.evidence-panel > .checks { padding: 8px 18px 13px; }
.check-row { display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid #1d1f24; }
.check-row:last-child { border-bottom: 0; }
.check-icon { display: grid; width: 16px; height: 16px; margin-top: 3px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font: 700 11px/1 var(--mono); }
.check-row b { display: block; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.check-row .fine { display: block; margin-top: 2px; font-size: 11px; }
.check-row.ok .check-icon { border-color: #2d6940; background: var(--green-dark); color: var(--green); }
.check-row.warn .check-icon { border-color: #725022; background: #25190d; color: var(--mango); }
.live-results:empty { display: none; }
.live-results { margin-top: 20px; }
.live-result { padding: 20px 24px; border: 1px solid var(--line); border-radius: 7px; background: #0b0e0c; }
.live-result h3 { margin-bottom: 12px; color: var(--green); font: 600 11px/1.5 var(--mono); text-transform: uppercase; }
.live-result h3 span { color: var(--faint); }
.live-result .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.live-result > p { margin: 12px 0 0; }

/* Progressive manual guide */
.guide-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 56px; padding: 34px 0 28px; border-top: 1px solid var(--line); }
.guide-intro > div { max-width: 690px; }
.guide-intro h2 { margin-bottom: 12px; }
.guide-intro p:last-of-type { margin: 0; color: var(--muted); }
.guide-intro > .text-link { flex: 0 0 auto; margin-bottom: 4px; }
.step-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.step-shortcuts a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; text-decoration: none; }
.step-shortcuts a:hover { border-color: var(--line-strong); color: var(--text); }
.step-shortcuts a > span { color: var(--orange); font: 11px/1.5 var(--mono); }
.step-shortcuts small { color: var(--faint); font-size: 11px; }
.guide-workspace { padding-top: 8px; }
.guide-workspace > .section-heading { padding-bottom: 16px; }
.guide-description { max-width: 700px; margin-bottom: 32px; color: var(--muted); }
.guide-group { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 34px; padding: 25px 0; border-top: 1px solid var(--line); }
.guide-group-heading > span { color: var(--faint); font: 11px/1.5 var(--mono); letter-spacing: .1em; }
.guide-group-heading h3 { margin: 6px 0 0; color: var(--text-soft); font-size: 15px; font-weight: 550; }
.guide-group-steps { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.guide-step { border-bottom: 1px solid var(--line); }
.guide-step:last-child { border-bottom: 0; }
.guide-step > summary { position: relative; display: grid; grid-template-columns: 94px minmax(0, 1fr) auto 12px; gap: 15px; align-items: center; min-height: 70px; padding: 16px 18px; }
.guide-step > summary:hover { background: rgba(255,255,255,.015); }
.guide-step[open] { background: var(--surface-raised); }
.guide-step[open] > summary { border-bottom: 1px solid var(--line); }
.guide-step-index { color: var(--faint); font: 11px/1.5 var(--mono); text-transform: uppercase; }
.guide-step-title { color: var(--text-soft); font-size: 13px; font-weight: 600; }
.step-state { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font: 12px/1.45 var(--mono); white-space: nowrap; }
.step-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.step-state.on { color: var(--green); }
.step-state.off { color: var(--muted); }
.step-state.unverified { padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; text-transform: uppercase; }
.summary-arrow { width: 7px; height: 7px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.guide-step[open] .summary-arrow { transform: rotate(225deg) translate(-1px, -1px); }
.guide-step-body { padding: 24px 27px 25px 127px; }
.guide-goal { max-width: 72ch; color: var(--text-soft); font-size: 13px; }
.todo { margin: 20px 0; padding: 0; list-style: none; counter-reset: guide-todo; }
.todo li { position: relative; margin: 0; padding: 11px 0 11px 32px; border-top: 1px solid #22242a; color: var(--muted); font-size: 12px; counter-increment: guide-todo; }
.todo li::before { position: absolute; left: 0; color: var(--faint); font: 11px/1.9 var(--mono); content: "0" counter(guide-todo); }
.todo a { color: #e6b675; }
.external-mark { display: inline-block; margin-left: 4px; color: var(--faint); font-size: inherit; text-decoration: none; }
.guide-note { padding-left: 32px; }
.guide-step-body .free { display: flex; gap: 12px; margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid #2e5338; background: #0d1310; }
.free > span { flex: 0 0 auto; color: var(--green); font: 11px/1.9 var(--mono); letter-spacing: .05em; }
.optional-note { margin: 25px 0 0; color: var(--faint); font-size: 11px; }

/* Account picker */
.account-page { max-width: 940px; margin: 0 auto; }
.page-heading { padding: 55px 0 36px; }
.page-heading h1 { font-size: clamp(34px, 4vw, 46px); }
.scope-notice { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-bottom: 22px; padding: 22px 25px; border: 1px solid #4b351b; border-radius: 7px; background: #14110c; }
.scope-notice h2 { margin-bottom: 7px; color: var(--mango); font-size: 15px; }
.scope-notice p { margin: 0; color: var(--muted); font-size: 12px; }
.scope-notice > div:last-child .fine { margin-top: 8px; font-size: 11px; }
.account-picker { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.accounts { margin: 0; padding: 25px; border: 0; }
.accounts legend { width: 100%; margin-bottom: 18px; padding: 0; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.accounts legend span { float: right; color: var(--faint); font: 11px/1.8 var(--mono); }
.accounts label { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 15px; align-items: center; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #0a0b0e; cursor: pointer; }
.accounts label:hover { border-color: #484b53; }
.accounts label:has(input:checked) { border-color: #8c511d; background: #15110c; }
.accounts input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.accounts label:has(input:focus-visible) { outline: 2px solid var(--mango); outline-offset: 3px; }
.account-radio { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #555a64; border-radius: 50%; }
.accounts input:checked + .account-radio { border-color: var(--orange); }
.accounts input:checked + .account-radio::after { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); content: ""; }
.account-choice-text b, .account-choice-text small { display: block; }
.account-choice-text b { color: var(--text); font-size: 14px; }
.account-choice-text small { margin-top: 4px; color: var(--faint); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.account-selected { visibility: hidden; color: var(--mango); font: 11px/1.5 var(--mono); text-transform: uppercase; }
.accounts label:has(input:checked) .account-selected { visibility: visible; }
.picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 25px; border-top: 1px solid var(--line); background: #0a0b0e; }
.picker-footer p { margin: 0; }

/* Cleanup and message pages */
.message-panel { max-width: 700px; margin: 70px auto 30px; padding: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.message-panel .message-symbol { display: grid; width: 34px; height: 34px; margin-bottom: 27px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font: 600 13px/1 var(--mono); }
.message-panel .message-symbol.success { border-color: #2d6940; background: var(--green-dark); color: var(--green); }
.message-panel h1 { font-size: 34px; }
.message-panel .lede { margin-bottom: 26px; font-size: 15px; }
.message-panel > .checks { margin: 26px 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cleanup-result { max-width: 780px; }

@media (max-width: 1060px) {
  .demo-breadcrumb { display: none; }
  .build-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .guide-group { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
  .guide-step > summary { grid-template-columns: 75px minmax(0, 1fr) 12px; }
  .guide-step .step-state { grid-column: 2; grid-row: 2; justify-self: start; }
  .guide-step .summary-arrow { grid-column: 3; grid-row: 1 / 3; }
  .guide-step-body { padding-left: 108px; }
}

@media (max-width: 820px) {
  .top-inner, .site-main, .site-footer { width: min(100% - 36px, 720px); }
  .brand-edition { display: none; }
  .landing-hero { grid-template-columns: 1fr; gap: 38px; padding-top: 50px; }
  .landing-copy .lede { max-width: 650px; }
  .deployment-preview { max-width: 520px; }
  .landing-hero::before { width: 80%; }
  .workshop-hero { grid-template-columns: 1fr; gap: 10px; }
  .workshop-hero .chips { justify-content: flex-start; }
  .access-layout { grid-template-columns: 1fr; }
  .permission-panel { border-top: 1px solid var(--line); border-left: 0; }
  .build-layout { grid-template-columns: 1fr; }
  .build-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .deployment-plan { grid-row: span 2; }
  .ownership-note { border-top: 0; border-left: 1px solid var(--line); }
  .build-alternatives { border-left: 1px solid var(--line); }
  .cleanup-access { grid-column: 1 / -1; }
  .verify-grid { grid-template-columns: 1fr; gap: 22px; }
  .verify-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start; }
  .verify-intro > p { margin: 0; }
  .live-check-form { margin: 0; }
  .verify-intro .technical-disclosure { grid-column: 1 / -1; margin-top: 4px; }
  .guide-group { grid-template-columns: 1fr; gap: 15px; }
  .guide-group-heading { display: flex; align-items: center; gap: 14px; }
  .guide-group-heading h3 { margin: 0; }
  .guide-step-body { padding-left: 27px; }
  .scope-notice { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 14px; }
  .top-inner { min-height: 62px; gap: 16px; }
  .header-actions, .session-area { min-width: 0; }
  .top-inner, .site-main, .site-footer { width: calc(100% - 28px); }
  .brand { gap: 7px; }
  .brand-name { font-size: 12px; }
  .mark { width: 29px; }
  .session-chip { max-width: 138px; padding: 5px 7px; }
  .session-chip .acct { font-size: 0; }
  .session-chip .acct b { font-size: 11px; }
  .session-chip .acct b::before { content: ""; }
  .sign-out { min-width: 40px; min-height: 40px; font-size: 11px; }
  .session-area { gap: 8px; }
  h1 { font-size: 35px; }
  h2 { font-size: 22px; }
  .lede { font-size: 15px; }
  .site-footer { flex-direction: column; gap: 7px; margin-top: 48px; }
  .landing-hero { padding: 40px 0 36px; }
  .landing-copy h1 br { display: none; }
  .assurance-list { flex-direction: column; gap: 7px; }
  .preview-header { font-size: 11px; }
  .resource-list li { font-size: 11px; }
  .workshop-card { grid-template-columns: 1fr; gap: 24px; padding: 23px; }
  .workshop-card-action { flex-direction: row; align-items: center; min-width: 0; }
  .journey { margin-bottom: 26px; }
  .journey a { flex-direction: column; justify-content: center; gap: 5px; min-height: 64px; padding: 10px 4px; }
  .journey a > span:last-child { font-size: 12px; }
  .journey-number { font-size: 11px; }
  .workshop-hero { padding: 36px 0 26px; }
  .workshop-hero h1 { font-size: 34px; }
  .access-primary, .permission-panel { padding: 25px 22px; }
  .access-primary h2 { font-size: 25px; }
  .gate-panel { grid-template-columns: auto minmax(0, 1fr); padding: 24px 20px; }
  .gate-panel .btn { grid-column: 1 / -1; }
  .session-bar { align-items: flex-start; }
  .session-bar > div { max-width: 65%; }
  .session-bar > div > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .deploy-workspace > .section-heading, .verify-workspace > .section-heading { flex-direction: column; gap: 12px; padding: 22px; }
  .status-badge { margin-top: 0; }
  .deploy-body { min-height: 0; padding: 25px 22px; }
  .action-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .action-row .btn, .deploy-body > .btn, .access-primary .btn { width: 100%; }
  .action-row .inline, .action-row .inline .btn { width: 100%; }
  .company-disclosure summary { padding: 13px 22px; }
  .company-disclosure p { padding: 0 22px 20px; }
  .build-sidebar { display: block; }
  .ownership-note, .build-alternatives { border-top: 1px solid var(--line); border-left: 0; }
  .verify-workspace { margin-top: 38px; padding-top: 26px; }
  .verify-workspace > .section-heading { padding: 0 0 20px; }
  .verify-intro { display: block; }
  .verify-intro > p { margin-bottom: 20px; }
  .live-check-form .btn { width: 100%; }
  .live-result { padding: 18px; }
  .live-result .checks { grid-template-columns: 1fr; }
  .guide-intro { display: block; margin-top: 40px; }
  .guide-intro > .text-link { margin-top: 10px; }
  .guide-description { margin-bottom: 24px; }
  .guide-group { padding: 20px 0; }
  .guide-group-heading { display: block; }
  .guide-group-heading h3 { margin-top: 4px; }
  .guide-step > summary { grid-template-columns: minmax(0, 1fr) 12px; gap: 6px 12px; padding: 16px; }
  .guide-step-index { grid-column: 1; grid-row: 1; }
  .guide-step-title { grid-column: 1; grid-row: 2; }
  .guide-step .step-state { grid-column: 1; grid-row: 3; white-space: normal; }
  .guide-step .summary-arrow { grid-column: 2; grid-row: 1 / 4; }
  .guide-step-body { padding: 20px; }
  .guide-step-body .free { flex-direction: column; gap: 3px; }
  .todo li { padding-left: 28px; }
  .guide-note { padding-left: 28px; }
  .page-heading { padding: 38px 0 28px; }
  .scope-notice { padding: 20px; }
  .accounts { padding: 18px; }
  .accounts label { grid-template-columns: 18px minmax(0, 1fr); padding: 15px; }
  .account-selected { display: none; }
  .picker-footer { align-items: stretch; flex-direction: column; padding: 18px; }
  .message-panel { margin-top: 38px; padding: 27px 23px; }
  .cleanup-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .cleanup-dialog-inner { padding: 18px 20px; }
  .cleanup-dialog h2 { margin-bottom: 10px; font-size: 24px; }
  .cleanup-resources { margin: 14px 0; }
  .cleanup-resources li { padding: 9px 0; }
  .cleanup-resources span { line-height: 1.45; }
  .cleanup-dialog .cleanup-safety { margin-bottom: 14px; }
  .cleanup-confirmation input { min-height: 44px; }
  .cleanup-dialog-actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 16px; }
  .cleanup-dialog-actions .btn { width: 100%; }
}

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