:root {
  --ink: #151c2a;
  --ink-soft: #293246;
  --muted: #697286;
  --line: #dfe3ea;
  --paper: #ffffff;
  --canvas: #f5f4f0;
  --blue: #3157d5;
  --blue-dark: #2343af;
  --blue-soft: #edf1ff;
  --cyan: #71dbd1;
  --orange: #ef7c4d;
  --green: #16846c;
  --red: #c34747;
  --shadow: 0 22px 60px rgba(31, 42, 70, .1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 28px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; color: white; border-radius: 11px; background: var(--blue); box-shadow: 0 6px 15px rgba(49,87,213,.24); }
.brand-mark svg { width: 25px; height: 25px; }
.brand > span:last-child { display: grid; line-height: 1.08; }
.brand strong { font-size: 15px; letter-spacing: .8px; }
.brand small { margin-top: 3px; color: #858c9a; font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 750; }
.hive-brand { margin-left: 16px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.brand-divider { width: 1px; height: 26px; margin-right: 2px; background: var(--line); }
.hive-glyph { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #692fc2; background: #f1eafd; }
.hive-glyph svg { width: 17px; height: 17px; stroke-width: 1.7; }
.hive-brand > span:last-child { display: grid; line-height: 1.05; }
.hive-brand small { color: #8a928f; font-size: 8.5px; letter-spacing: .15px; }
.hive-brand strong { color: #4b5652; font-size: 10.5px; }
.topbar-actions { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.source-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.source-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,132,108,.1); }
.source-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 11.5px; font-weight: 750; }
.source-link:hover { color: var(--blue); }
.source-link svg { width: 15px; height: 15px; }

.workspace { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidebar { height: calc(100vh - 68px); position: sticky; top: 68px; padding: 42px 24px 24px; display: flex; flex-direction: column; background: #eceae4; border-right: 1px solid #d9d7d1; overflow: auto; }
.eyebrow { margin: 0 0 8px; color: var(--blue); text-transform: uppercase; font-size: 9.5px; font-weight: 850; letter-spacing: 1.55px; }
.side-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -1px; font-size: 29px; line-height: 1.13; }
.side-heading > p:last-child { color: var(--muted); margin: 14px 0 0; font-size: 11.5px; line-height: 1.6; }
.section-nav { display: grid; gap: 5px; margin-top: 34px; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 12px 11px; display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: center; text-align: left; background: transparent; cursor: pointer; transition: background .15s, transform .15s; }
.nav-item:hover { background: rgba(255,255,255,.5); }
.nav-item.active { color: white; background: var(--ink); box-shadow: 0 10px 20px rgba(21,28,42,.13); }
.nav-item > span:first-child { color: #8f94a0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; }
.nav-item.active > span:first-child { color: var(--cyan); }
.nav-item strong, .nav-item small { display: block; }
.nav-item strong { font-size: 11.5px; }
.nav-item small { margin-top: 2px; color: #8a919e; font-size: 9.5px; }
.nav-item.active small { color: #aeb6c5; }
.principle-card { margin-top: auto; display: flex; gap: 10px; padding: 15px; border-top: 1px solid #cfcdc6; }
.principle-card > span { flex: 0 0 auto; color: var(--blue); }
.principle-card svg { width: 18px; }
.principle-card strong { font-size: 10.5px; }
.principle-card p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; }

.main-content { min-width: 0; background: var(--paper); }
.view { max-width: 1120px; margin: 0 auto; padding: 62px 54px 80px; animation: view-in .3s ease; }
.view[hidden] { display: none; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-grid { min-height: 395px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; }
.hero-copy h2, .page-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 4.3vw, 59px); line-height: .99; letter-spacing: -2.4px; font-weight: 500; }
.hero-lede { max-width: 555px; margin: 22px 0 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.55; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 19px; }
.primary-button, .secondary-button { min-height: 41px; padding: 10px 16px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; font-size: 11.5px; font-weight: 780; transition: background .15s, transform .1s, border-color .15s; }
.primary-button { background: var(--blue); color: white; box-shadow: 0 7px 17px rgba(49,87,213,.18); }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { background: white; border-color: var(--line); }
.secondary-button:hover { background: #f7f8fa; border-color: #c8cdd7; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button svg, .secondary-button svg { width: 16px; }
.text-button { padding: 7px 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 11.5px; font-weight: 780; }
.text-button:hover { color: var(--blue-dark); }

.token-stack { min-width: 0; padding: 25px; border: 1px solid #d9dde7; border-radius: 19px; background: #f7f8fb; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.token-stack:before { content: ""; width: 190px; height: 190px; position: absolute; right: -55px; top: -60px; border-radius: 50%; background: rgba(113,219,209,.16); box-shadow: 0 0 0 30px rgba(49,87,213,.035); }
.stack-label { position: relative; display: flex; justify-content: space-between; color: #8c93a2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8.5px; text-transform: uppercase; letter-spacing: 1px; }
.token-card { position: relative; min-height: 92px; margin-top: 16px; padding: 17px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border-radius: 13px; }
.cat-card { color: white; background: var(--ink); box-shadow: 0 12px 24px rgba(21,28,42,.18); }
.access-card { background: white; border: 1px solid #dce1eb; box-shadow: 0 9px 21px rgba(31,42,70,.06); }
.token-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(113,219,209,.1); }
.access-card .token-icon { color: var(--blue); background: var(--blue-soft); }
.token-icon svg { width: 20px; }
.token-card small, .token-card strong, .token-card code { display: block; }
.token-card small { color: #9ba4b6; font-size: 8.5px; text-transform: uppercase; letter-spacing: .7px; }
.token-card strong { margin-top: 2px; font-size: 12px; }
.token-card code { margin-top: 6px; color: #8993a5; font-size: 9px; }
.cat-card code { color: #aeb7c7; }
.stage-number { align-self: start; color: #778196; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.exchange-line { height: 43px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #8d95a4; font-size: 8px; text-transform: uppercase; letter-spacing: .8px; }
.exchange-line i { width: 16px; border-top: 1px solid #c8ced9; }
.api-destination { margin-top: 13px; padding: 10px 3px 0; border-top: 1px dashed #ccd1dc; display: flex; justify-content: space-between; align-items: center; font-size: 9px; }
.api-destination > span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.api-destination i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,132,108,.1); }
.api-destination strong { color: var(--green); text-transform: uppercase; letter-spacing: .65px; }

.fact-strip { margin-top: 35px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip article { padding: 22px 20px; display: flex; gap: 12px; align-items: center; border-right: 1px solid var(--line); }
.fact-strip article:first-child { padding-left: 0; }
.fact-strip article:last-child { border-right: 0; }
.fact-strip article > span { color: var(--orange); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.fact-strip small, .fact-strip strong { display: block; }
.fact-strip small { color: #9298a5; font-size: 8.5px; text-transform: uppercase; letter-spacing: .8px; }
.fact-strip strong { margin-top: 2px; font-size: 11.5px; }

.content-section { margin-top: 75px; }
.section-heading { max-width: 630px; }
.section-heading h3, .boundary-note h3, .lab-heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: -.8px; }
.section-heading > p:last-child { margin: 9px 0 0; color: var(--muted); }
.ownership-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.owner-card { min-height: 278px; padding: 24px; border-radius: 15px; }
.dark-card { color: white; background: var(--ink); }
.light-card { border: 1px solid var(--line); background: #f8f9fb; }
.owner-title { display: flex; align-items: center; gap: 12px; }
.owner-title > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(113,219,209,.1); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 800; }
.light-card .owner-title > span { color: var(--blue); background: var(--blue-soft); }
.owner-title small { color: #929caf; font-size: 8.5px; text-transform: uppercase; letter-spacing: .8px; }
.owner-title h4 { margin: 2px 0 0; font-size: 13px; }
.check-list { margin: 24px 0 23px; padding: 0; display: grid; gap: 13px; list-style: none; }
.check-list li { display: flex; gap: 9px; color: #bac1cf; font-size: 10.5px; }
.light-card .check-list li { color: var(--muted); }
.check-list li:before { content: "\2713"; flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(113,219,209,.1); font-size: 8px; font-weight: 900; }
.light-card .check-list li:before { color: var(--blue); background: var(--blue-soft); }
.dark-card > code { display: inline-block; padding: 7px 9px; border: 1px solid #3c4659; border-radius: 6px; color: #aeb8c9; font-size: 9px; }
.scope-row { display: flex; gap: 7px; }
.scope-row span { padding: 6px 8px; border: 1px solid #d9dfe9; border-radius: 6px; color: var(--blue); background: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8.5px; }
.boundary-note { margin-top: 70px; padding: 30px; display: grid; grid-template-columns: 46px 1fr; gap: 18px; border: 1px solid #e2dbd0; border-radius: 15px; background: #fbf7ef; }
.note-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--orange); background: #ffeadf; }
.boundary-note h3 { font-size: 24px; }
.boundary-note p:last-child { max-width: 760px; color: var(--muted); margin: 8px 0 0; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 38px; }
.page-heading h2 { font-size: 47px; line-height: 1.05; }
.page-heading > div > p:last-child { margin: 13px 0 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.page-index { flex: 0 0 auto; color: #9ca2ae; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: 1px; }
.flow-workbench { display: grid; grid-template-columns: 275px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: 0 14px 40px rgba(31,42,70,.07); }
.flow-step-list { padding: 27px 16px; background: #f1f0ec; border-right: 1px solid #deddd8; }
.flow-step { width: 100%; min-height: 78px; padding: 13px; display: grid; grid-template-columns: 31px 1fr 8px; gap: 10px; align-items: center; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
.flow-step + .flow-step { margin-top: 6px; }
.flow-step:hover { background: rgba(255,255,255,.65); }
.flow-step.active { background: white; box-shadow: 0 8px 18px rgba(31,42,70,.08); }
.flow-step > span { color: #9ca2ad; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.flow-step.active > span { color: var(--blue); }
.flow-step small, .flow-step strong { display: block; }
.flow-step small { color: #9298a4; font-size: 8.5px; text-transform: uppercase; letter-spacing: .6px; }
.flow-step strong { margin-top: 3px; font-size: 11px; }
.flow-step i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #aeb4be; }
.flow-step.active i { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.flow-detail { padding: 34px 38px 30px; background: white; }
.flow-detail-top { display: flex; justify-content: space-between; color: var(--blue); font-size: 8.5px; font-weight: 850; letter-spacing: 1px; }
.flow-detail-top small { color: #9da3af; font-size: inherit; }
.flow-illustration { min-height: 82px; margin: 26px 0 21px; display: flex; align-items: center; }
.mini-node { min-width: 125px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafc; }
.mini-node.active { color: white; background: var(--ink); border-color: var(--ink); }
.mini-node small, .mini-node strong { display: block; }
.mini-node small { color: #949cab; font-size: 7.5px; text-transform: uppercase; letter-spacing: .6px; }
.mini-node strong { margin-top: 3px; font-size: 10px; }
.mini-arrow { flex: 1; min-width: 40px; height: 1px; margin: 0 9px; background: #cbd1dc; position: relative; }
.mini-arrow:after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid #a9b1bf; border-right: 1px solid #a9b1bf; transform: rotate(45deg); }
.flow-detail > h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.6px; }
.flow-detail > p { color: var(--muted); margin: 9px 0 0; }
.code-block { margin-top: 21px; overflow: hidden; border-radius: 10px; color: #cbd3e3; background: #171e2c; }
.code-block > div { height: 30px; padding: 0 12px; display: flex; gap: 5px; align-items: center; background: #202838; }
.code-block > div > span { width: 6px; height: 6px; border-radius: 50%; background: #616b7d; }
.code-block > div > span:first-child { background: var(--orange); }
.code-block > div small { margin-left: 4px; color: #8791a4; font-size: 8px; }
.code-block pre { min-height: 69px; margin: 0; padding: 16px; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.7; }
.flowTakeaway { padding-left: 10px; border-left: 2px solid var(--cyan); font-size: 10.5px; }
.flow-controls { margin-top: 24px; display: flex; justify-content: space-between; }
.flow-controls button:disabled { opacity: .35; cursor: not-allowed; }

.scope-lab { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 15px; background: #f9fafc; }
.lab-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.lab-heading > span { color: #9299a6; font-size: 8.5px; text-transform: uppercase; letter-spacing: .7px; }
.lab-grid { margin-top: 25px; display: grid; grid-template-columns: 1fr .8fr; gap: 26px; align-items: stretch; }
.field-label { display: block; margin: 0 0 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; font-weight: 750; }
.field-label:not(:first-child) { margin-top: 18px; }
.scope-options { display: flex; gap: 8px; }
.scope-option { padding: 9px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d8dde7; border-radius: 8px; color: var(--muted); background: white; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.scope-option > span { width: 12px; height: 12px; border: 1px solid #bdc4d0; border-radius: 3px; }
.scope-option.selected { border-color: #9fb0ef; color: var(--blue); background: var(--blue-soft); }
.scope-option.selected > span { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px white; }
.lab-grid select { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #d8dde7; border-radius: 8px; color: var(--ink); background: white; outline: 0; }
.lab-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.08); }
.decision-card { padding: 22px; border: 1px solid #b9dfd6; border-radius: 12px; background: #f0faf7; }
.decision-card.denied { border-color: #ecc4c4; background: #fff5f4; }
.decision-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--green); }
.decision-card.denied .decision-icon { background: var(--red); }
.decision-icon svg { width: 18px; }
.decision-card > small { display: block; margin-top: 14px; color: var(--green); font-size: 8px; text-transform: uppercase; letter-spacing: .7px; font-weight: 850; }
.decision-card.denied > small { color: var(--red); }
.decision-card h4 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.decision-card p { color: var(--muted); margin: 7px 0 17px; font-size: 10.5px; }
.decision-card > div { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid rgba(22,132,108,.16); color: var(--muted); font-size: 9px; }
.decision-card code { color: var(--blue); font-size: 9px; }
.role-table { margin-top: 24px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.role-row { min-height: 58px; padding: 14px 18px; display: grid; grid-template-columns: .7fr 1.3fr .8fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.role-row:last-child { border-bottom: 0; }
.role-row span { color: var(--muted); }
.role-row code { color: var(--blue); font-size: 9px; }
.table-head { min-height: 38px; padding-top: 9px; padding-bottom: 9px; color: #9299a6; background: #f6f7f9; text-transform: uppercase; letter-spacing: .7px; font-size: 8px; }

.readiness-heading { align-items: center; }
.readiness-score { flex: 0 0 auto; min-width: 134px; padding: 14px 18px; border-left: 1px solid var(--line); }
.readiness-score strong, .readiness-score span { display: block; }
.readiness-score strong { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; line-height: 1; }
.readiness-score span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.readiness-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 22px; align-items: start; }
.review-list { display: grid; gap: 14px; }
.review-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.group-heading { padding: 17px 19px; display: flex; align-items: center; gap: 12px; background: #f7f7f5; border-bottom: 1px solid var(--line); }
.group-heading > span { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.group-heading small { color: #9299a6; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.group-heading h3 { margin: 1px 0 0; font-size: 12px; }
.review-item { min-height: 83px; padding: 16px 18px; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; cursor: pointer; border-bottom: 1px solid #eceff3; transition: background .15s; }
.review-item:last-child { border-bottom: 0; }
.review-item:hover { background: #fafbfc; }
.review-item input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #c8ced8; border-radius: 6px; color: transparent; transition: all .15s; }
.custom-check svg { width: 14px; }
.review-item input:focus-visible + .custom-check { outline: 2px solid var(--blue); outline-offset: 2px; }
.review-item input:checked + .custom-check { color: white; border-color: var(--blue); background: var(--blue); }
.review-item strong, .review-item small { display: block; }
.review-item strong { font-size: 11px; }
.review-item small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.review-item em { color: #a1a6b0; font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .6px; }
.review-item:has(input:checked) { background: #fafbff; }
.readiness-aside { display: grid; gap: 14px; position: sticky; top: 92px; }
.progress-card, .next-card { padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.progress-card { text-align: center; box-shadow: 0 12px 35px rgba(31,42,70,.07); }
.progress-ring { width: 110px; height: 110px; margin: 0 auto 17px; padding: 8px; border-radius: 50%; background: conic-gradient(var(--blue) var(--progress), #e9ecf2 0); transition: background .25s; }
.progress-ring > div { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: white; }
.progress-ring strong { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; line-height: 1; }
.progress-ring small { margin-top: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.progress-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.progress-card > p { min-height: 54px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.progress-track { height: 5px; margin: 17px 0; overflow: hidden; border-radius: 99px; background: #e9ecf2; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s; }
.wide { width: 100%; }
.subtle { margin-top: 9px; color: #9399a5; font-size: 9.5px; }
.next-card .eyebrow { margin-bottom: 13px; }
.next-card a { padding: 12px 0; display: grid; grid-template-columns: 23px 1fr 15px; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; border-bottom: 1px solid #eceff3; }
.next-card a:last-child { border-bottom: 0; }
.next-card a > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.next-card strong, .next-card small { display: block; }
.next-card strong { font-size: 9.5px; }
.next-card small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.next-card svg { width: 14px; color: #9ca2ae; transition: transform .15s; }
.next-card a:hover svg { color: var(--blue); transform: translateX(2px); }

.hive-footer { max-width: 1012px; margin: 0 auto; padding: 23px 54px 30px; display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--line); color: #9299a6; font-size: 9px; letter-spacing: .15px; }
.hive-footer strong { color: #5f6776; font-size: 9.5px; }
.footer-hive-glyph { width: 22px; height: 22px; margin: 0 2px; display: grid; place-items: center; border-radius: 6px; color: #692fc2; background: #f1eafd; }
.footer-hive-glyph svg { width: 14px; height: 14px; stroke-width: 1.7; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; padding: 10px 15px; border-radius: 9px; color: white; background: var(--ink); box-shadow: var(--shadow); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 10.5px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 940px) {
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { padding: 32px 17px 20px; }
  .side-heading h1 { font-size: 24px; }
  .view { padding: 48px 32px 70px; }
  .hive-footer { padding-right: 32px; padding-left: 32px; }
  .hero-grid { gap: 32px; }
  .hero-copy h2 { font-size: 45px; }
  .ownership-grid { grid-template-columns: 1fr; }
  .flow-workbench { grid-template-columns: 220px minmax(0,1fr); }
  .flow-detail { padding: 28px 25px; }
  .readiness-layout { grid-template-columns: 1fr; }
  .readiness-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .topbar { height: 60px; padding: 0 15px; }
  .source-label { display: none; }
  .hive-brand { margin-left: 10px; }
  .hive-brand > span:last-child, .brand-divider { display: none; }
  .hive-glyph { width: 29px; height: 29px; }
  .workspace { display: block; }
  .sidebar { height: auto; padding: 8px 12px; top: 60px; z-index: 20; border-right: 0; border-bottom: 1px solid #d9d7d1; }
  .side-heading, .principle-card { display: none; }
  .section-nav { margin: 0; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .nav-item { min-height: 43px; padding: 7px; display: flex; justify-content: center; text-align: center; }
  .nav-item > span:first-child, .nav-item small { display: none; }
  .nav-item strong { font-size: 10px; }
  .view { padding: 38px 18px 60px; }
  .hive-footer { padding-right: 18px; padding-left: 18px; }
  .hero-grid { display: block; min-height: 0; }
  .hero-copy h2, .page-heading h2 { font-size: 40px; }
  .hero-lede { font-size: 16px; }
  .token-stack { margin-top: 36px; padding: 18px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip article, .fact-strip article:first-child { padding: 15px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-strip article:last-child { border-bottom: 0; }
  .content-section, .boundary-note { margin-top: 50px; }
  .owner-card { min-height: 0; }
  .boundary-note { grid-template-columns: 1fr; padding: 23px; }
  .page-heading { display: block; }
  .page-index { display: none; }
  .flow-workbench { display: block; }
  .flow-step-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px; border-right: 0; border-bottom: 1px solid #deddd8; }
  .flow-step { min-height: 48px; display: flex; justify-content: center; padding: 8px 5px; text-align: center; }
  .flow-step + .flow-step { margin: 0; }
  .flow-step div, .flow-step i { display: none; }
  .flow-detail { padding: 24px 18px; }
  .flow-illustration { overflow-x: auto; }
  .mini-node { min-width: 105px; }
  .scope-lab { padding: 21px 18px; }
  .lab-heading { display: block; }
  .lab-heading > span { display: block; margin-top: 7px; }
  .lab-grid { grid-template-columns: 1fr; }
  .scope-options { flex-wrap: wrap; }
  .role-row { grid-template-columns: 1fr; gap: 3px; }
  .table-head { display: none; }
  .readiness-heading { display: flex; }
  .readiness-heading h2 { font-size: 34px; }
  .readiness-score { min-width: 92px; padding: 10px 0 10px 14px; }
  .review-item { grid-template-columns: 22px 1fr; }
  .review-item em { display: none; }
  .readiness-aside { grid-template-columns: 1fr; }
}

@media (max-width: 410px) {
  .brand small { display: none; }
  .source-link { font-size: 0; gap: 0; }
  .source-link svg { width: 17px; height: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .token-card { grid-template-columns: 35px 1fr; }
  .token-icon { width: 35px; height: 35px; }
  .stage-number { display: none; }
  .readiness-heading { display: block; }
  .readiness-score { margin-top: 18px; border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
