/* Versionlane • shared application primitives. All assets are self-hosted. */
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #f1f0e8; --muted: #b0b8ab; --paper: #101510; --surface: #171e17;
  --surface-raised: #1d261d; --line: #354034; --accent: #d2ed9c; --accent-hover: #e2f6bd; --accent-soft: #273323;
  --on-accent: #14200d; --success: #99d9b4; --success-soft: #1c3328;
  --caution: #edc58b; --caution-soft: #342c20; --failure: #f2a5a5; --failure-soft: #382424;
  --radius: 8px; --radius-sm: 5px; --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: "Space Grotesk", var(--sans); --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: #526640; }
img { max-width: 100%; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 500; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; font-weight: 650; margin-bottom: var(--space-3); overflow-wrap: anywhere; }
h2 { font-size: 21px; line-height: 1.35; letter-spacing: -.4px; margin-bottom: var(--space-3); font-weight: 650; }
h3 { font-size: 16px; line-height: 1.4; margin: var(--space-5) 0 10px; }
p { color: var(--muted); margin-bottom: var(--space-4); }
li { margin-bottom: var(--space-2); }
ul,ol { padding-left: 22px; }
small,.muted { color: var(--muted); font-size: 13px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: var(--space-3); }
.lede { font-size: 17px; line-height: 1.7; max-width: 650px; }
code,pre,.versions,.technical { font-family: var(--mono); }
code { font-size: .86em; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #111811; border: 1px solid var(--line); padding: 20px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1.8; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
/* Shell and navigation */
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: var(--surface); padding: var(--space-3); }
.skip-link:focus { top: 8px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; max-width: 1200px; margin: auto; padding: var(--space-4) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; font-family: var(--display); font-weight: 600; letter-spacing: -.8px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
nav,.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
nav { gap: 20px; font-size: 13px; }
nav a { text-decoration: none; color: var(--muted); padding: var(--space-2) 0; min-height: 44px; display: inline-flex; align-items: center; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.environment { background: var(--caution-soft); border-bottom: 1px solid var(--line); color: var(--caution); font-size: 12px; padding: 7px var(--space-5); text-align: center; }
main { max-width: 1200px; margin: auto; padding: 40px var(--space-6) 72px; min-height: 75vh; }
footer { width: calc(100% - 64px); border-top: 1px solid var(--line); max-width: 1136px; padding: var(--space-5) 0; margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); color: var(--muted); font-size: 12px; }
footer a { color: var(--muted); }
.back { display: inline-block; margin-bottom: var(--space-5); color: var(--muted); font-size: 13px; text-decoration: none; }
.page-head,.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-5); }
.page-head > div { min-width: 0; }
.page-head > .button,.page-head > button { flex-shrink: 0; }
.page-head p:last-child,.section-head p:last-child { margin-bottom: 0; }
.section-head { margin-top: var(--space-6); margin-bottom: var(--space-4); }
.section-head h2 { margin-bottom: var(--space-1); }
/* Actions and forms */
button,.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); font: 600 14px/1.5 var(--sans); cursor: pointer; text-decoration: none; }
button:hover,.button:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
button:disabled { cursor: not-allowed; background: #252b23; color: #a7afa1; border-color: #4b5645; opacity: 1; }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.secondary:hover { background: var(--surface-raised); color: var(--ink); }
.danger-button { color: var(--failure); border-color: #704b4b; background: var(--surface); }
.danger-button:hover { color: var(--failure); background: var(--failure-soft); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
input:not([type=checkbox]),select { width: 100%; min-height: 46px; border: 1px solid #586553; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); padding: 10px var(--space-3); font: 15px/1.5 var(--sans); margin-top: var(--space-2); }
input::placeholder { color: var(--muted); opacity: 1; }
input[readonly] { font-family: var(--mono); font-size: 12px; background: #111811; }
select:disabled { opacity: 1; background: #111811; color: var(--muted); }
.checkbox { min-height: 44px; display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 400; padding: var(--space-1) 0; margin-bottom: 14px; }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.checkbox:has(input:disabled) { color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 10px; }
.form-help { font-size: 13px; margin-top: -10px; }
/* Working surfaces, status and notices */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.pill { display: inline-flex; align-items: center; border-radius: 5px; padding: var(--space-1) 9px; background: var(--surface-raised); color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.5; max-width: 100%; }
.pill.published,.pill.success { background: var(--success-soft); color: var(--success); }
.pill.draft,.pill.caution { background: var(--caution-soft); color: var(--caution); }
.pill.revoked,.pill.failure { background: var(--failure-soft); color: var(--failure); }
.note { padding: var(--space-4) 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--muted); font-size: 13px; margin: var(--space-5) 0; }
.note p { margin: 0; }
.note.caution { background: var(--caution-soft); border-color: var(--caution); }
.note.error { background: var(--failure-soft); border-color: var(--failure); color: var(--failure); }
#notice { position: fixed; bottom: 20px; right: 20px; max-width: min(500px,calc(100vw - 40px)); padding: 18px 22px; background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-sm); box-shadow: 0 8px 28px #10151040; z-index: 10; font-size: 14px; }
#notice[data-kind=error] { background: var(--failure-soft); color: var(--failure); border: 1px solid #704b4b; }
details { margin-top: 20px; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 44px; padding: 10px 0; }
details[open] > summary { margin-bottom: var(--space-3); }
.danger { border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: 40px; color: var(--failure); }
/* Provider workspace */
.release-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.release-row { display: grid; grid-template-columns: minmax(0,1fr) 200px 95px 20px; gap: var(--space-5); align-items: center; padding: var(--space-5); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.release-row:last-child { border-bottom: 0; }
.release-row:hover { background: var(--surface-raised); color: var(--ink); }
.release-row h2 { font-size: 17px; margin-bottom: 6px; overflow-wrap: anywhere; }
.release-row p { font-size: 12px; margin: 0; }
.versions { display: flex; gap: var(--space-3); align-items: center; font-size: 14px; }
.versions strong { color: var(--ink); }
.empty { text-align: center; padding: 56px var(--space-5); }
.empty img { width: 40px; margin-bottom: var(--space-4); }
.empty p { max-width: 460px; margin: 0 auto var(--space-5); }
.scope-summary { margin-bottom: var(--space-5); }
.scope-summary .versions { margin-bottom: var(--space-4); font-size: 17px; }
.requirements { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.requirements h3 { margin-top: var(--space-3); }
.requirements ul { color: var(--muted); font-size: 13px; }
.scope-detail { border-top: 1px solid var(--line); margin-top: 20px; }
.mapping-list { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.fingerprint { display: block; font-size: 12px; margin-top: var(--space-3); }
.metrics { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-5); }
.metrics article { padding: 20px 14px; border-right: 1px solid var(--line); }
.metrics article:last-child { border: 0; }
.metrics strong { display: block; font-size: 26px; font-weight: 600; }
.metrics span { font-size: 11px; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 13px; }
caption { text-align: left; padding: var(--space-4) 20px; font-weight: 600; }
th { background: #1c241c; font-size: 11px; font-weight: 600; text-align: left; color: var(--muted); }
th,td { padding: var(--space-4) 20px; border-bottom: 1px solid var(--line); }
td { vertical-align: top; }
td:first-child { max-width: 220px; overflow-wrap: anywhere; }
td small { display: block; margin-top: var(--space-1); font-size: 11px; }
tr:last-child td { border-bottom: 0; }
.table-help { display: none; font-size: 12px; }
/* Provider access */
.login-grid { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: start; max-width: 1020px; margin: 40px auto; }
.login-grid > div { padding-top: 28px; }
.login-grid h1 { font-size: 40px; letter-spacing: -1.4px; }
.login-grid .card h2 { font-size: 25px; }
.dev { border-top: 1px solid var(--line); margin-top: var(--space-5); padding-top: 20px; font-size: 12px; }
.dev button { font-size: 12px; }
/* Invitation, enrollment and guide */
.invite-head { max-width: 760px; margin: 0 auto var(--space-6); text-align: center; }
.invite-head h1 { font-size: 34px; }
.invite-head .versions { justify-content: center; margin: 20px 0; font-size: 20px; }
.invite-head .versions { flex-wrap: wrap; }
.invitation-sdk,.invitation-transition { overflow-wrap: anywhere; }
.invitation-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-5); align-items: start; }
.invitation-layout > .card { align-self: start; }
.customer-intro h2 { margin-bottom: var(--space-4); }
.customer-intro .path-item { padding: 14px 0; }
#enrolled { max-width: 900px; margin: 0 auto; }
.setup-step { padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.setup-step h3 { margin-top: 0; font-size: 18px; }
.downloads { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 20px 0; }
.downloads p { margin: 0; }
.downloads a { display: inline-block; padding: var(--space-3) 14px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 13px; overflow-wrap: anywhere; }
.token-control { display: flex; align-items: end; gap: var(--space-3); margin-bottom: var(--space-4); }
.token-control label { flex: 1; min-width: 0; margin: 0; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: var(--space-7); }
.guide-outline { position: sticky; top: 24px; align-self: start; }
.guide-outline nav { display: block; }
.guide-outline a { display: block; padding: var(--space-2) 0; }
.guide-content { min-width: 0; max-width: 800px; }
.guide-section { padding: var(--space-5) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--space-5); }
.guide-section h2 { font-size: 22px; }
.guide-section > :last-child { margin-bottom: 0; }
/* Responsive behaviour: technical tables scroll rather than crush columns. */
@media (max-width: 1000px) {
  .login-grid { gap: var(--space-6); grid-template-columns: 1fr 1fr; }
  .release-row { grid-template-columns: minmax(0,1fr) 150px 90px; gap: var(--space-4); }
  .release-row > .row-arrow { display: none; }
  .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .metrics article { border-bottom: 1px solid var(--line); }
  .guide-layout { gap: 28px; grid-template-columns: 170px minmax(0,1fr); }
  .table-help { display: block; }
}
@media (max-width: 700px) {
  .header-inner { padding: var(--space-4) 20px; flex-wrap: wrap; gap: var(--space-3); }
  nav { width: 100%; gap: var(--space-3); }
  .header-inner nav button { padding: var(--space-2) var(--space-3); font-size: 12px; }
  nav button { margin-left: auto; }
  main { padding: 28px 20px var(--space-7); }
  h1 { font-size: 28px; letter-spacing: -.8px; }
  .page-head { align-items: start; flex-direction: column; gap: var(--space-4); }
  .section-head { align-items: start; gap: var(--space-4); }
  .progress-head { flex-direction: column; gap: var(--space-2); }
  .card { padding: 22px; }
  .two-column,.requirements,.login-grid,.invitation-layout,.guide-layout { grid-template-columns: 1fr; }
  .login-grid { margin: 0; gap: var(--space-5); }
  .login-grid > div { padding: 0; }
  .login-grid h1 { font-size: 30px; }
  .login-grid > div .note { padding: 0; border: 0; background: transparent; margin: var(--space-4) 0 0; }
  .login-grid .lede { font-size: 15px; }
  .release-row { grid-template-columns: 1fr auto; padding: 20px; }
  .release-row .versions { grid-row: 2; }
  .release-row .pill { grid-column: 2; grid-row: 1; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .table-wrap { padding: 0; }
  .invite-head { text-align: left; }
  .invite-head h1 { font-size: 29px; }
  .invite-head .versions { justify-content: start; }
  .invitation-sdk { flex-basis: 100%; }
  .guide-outline { position: static; }
  .guide-outline nav { display: flex; gap: var(--space-2) var(--space-4); }
  .guide-outline a { padding: var(--space-1) 0; }
  .token-control { flex-wrap: wrap; }
  .token-control label { flex-basis: 100%; }
  footer { width: calc(100% - 40px); margin: 0 20px; padding: var(--space-5) 0; }
  pre { padding: var(--space-4); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Shared upgrade-path details and operational states. */
.page-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { color: var(--accent); }
.release-row .versions { border-left: 2px solid var(--accent); padding-left: 16px; }
.path-item { display: flex; align-items: start; gap: 16px; padding: 16px 0; }
.path-item + .path-item { border-top: 1px solid var(--line); }
.path-item strong { display: block; }
.path-item p { margin: 4px 0 0; font-size: 13px; }
.step-number { font: 12px var(--mono); color: var(--accent); padding-top: 4px; }
.customer-intro .path-item { border-left: 1px solid var(--line); padding-left: 16px; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 40px 0; }
.site-footer .brand { font-size: 19px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer p { font-size: 12px; margin: 12px 0 0; }
.site-footer nav { justify-content: end; gap: 16px; }
.site-footer .footer-trust { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
button, .button, a { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
button[aria-busy="true"] { cursor: progress; }
.result-blocker { color: var(--caution); }
@media (max-width: 700px) { .site-footer { grid-template-columns: 1fr; } .site-footer nav { justify-content: start; } }

.receipt-result { display: block; }
