:root {
    color-scheme: light;
    --canvas: #f7f9f7;
    --paper: #fff;
    --ink: #1d3029;
    --muted: #52635b;
    --green: #1c6848;
    --green-hover: #134e35;
    --line: #dce5df;
    --code: #172a23;
    --code-text: #e5eee8;
    --code-muted: #a4b9ac;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
::selection { color: #fff; background: var(--green); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid #38845f; outline-offset: 5px; }
.page-width { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 20px; background: var(--paper); z-index: 1; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.03em; overflow-wrap: anywhere; }
.brand-logo { display: block; width: 41px; height: 40px; object-fit: contain; flex: none; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.health-link { color: var(--green); }
.health-link span { margin-left: 6px; }
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; padding-block: 76px 70px; align-items: center; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 3.8vw, 3.15rem); font-weight: 700; line-height: 1.16; letter-spacing: -.04em; text-wrap: balance; }
h1 span { color: var(--green); }
.intro-copy > p { margin-block: 22px; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.text-link { font-size: 14px; font-weight: 650; color: var(--green); text-decoration: none; }
.text-link span { margin-left: 8px; }
.text-link:hover { text-decoration: underline; }
.project-map { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 32px rgb(29 48 41 / 4%); overflow: hidden; }
.code-caption { display: flex; gap: 9px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.file-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.project-map dl { margin: 0; padding: 16px 20px; }
.project-map dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-block: 8px; }
dt { font-weight: 600; }
dd { margin: 0; }
.project-map dt, code, pre { font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.project-map dt { font-size: 12px; }
.project-map dd { font-size: 11px; color: var(--muted); }
.project-map > p { background: #edf4ef; border-top: 1px solid var(--line); padding: 13px 20px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.project-map > p span { color: var(--green); }
.workspace { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; padding-block: 48px 56px; border-block: 1px solid var(--line); }
.workspace > section { min-width: 0; }
h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.025em; font-weight: 650; text-wrap: balance; }
.workspace section > p { margin-top: 12px; color: var(--muted); max-width: 62ch; font-size: 14px; }
form { margin-top: 28px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
input { width: 100%; padding: 12px 14px; border: 1px solid #aebfb4; border-radius: 6px; background: var(--paper); font: inherit; color: var(--ink); caret-color: var(--green); min-height: 48px; }
input::placeholder { color: #69786f; }
input:hover { border-color: var(--green); }
input[aria-invalid="true"] { border-color: #a43131; }
.field-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }
button { display: flex; justify-content: space-between; align-items: center; gap: 36px; min-height: 46px; border: 1px solid transparent; border-radius: 6px; background: var(--green); color: #fff; font: inherit; font-size: 13px; font-weight: 650; padding: 12px 18px; margin-top: 22px; cursor: pointer; transition: background-color 140ms; }
button:hover { background: var(--green-hover); }
button:active { background: #0c3d29; }
button:disabled { opacity: .6; cursor: not-allowed; }
.request-details { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 28px; font-size: 11px; color: var(--muted); }
.request-details > span:last-child { flex-basis: 100%; margin-top: 2px; }
.method { padding: 2px 6px; color: var(--green); background: #e3eee6; border-radius: 3px; font-size: 10px; font-weight: 750; letter-spacing: .03em; }
.feedback { margin-top: 16px; padding: 12px 14px; border-radius: 6px; font-size: 13px; }
.feedback strong, .feedback span { display: block; overflow-wrap: anywhere; }
.feedback span { font-size: 12px; margin-top: 3px; }
.feedback-success { color: #185238; background: #e7f2e9; border: 1px solid #b5d4bd; }
.feedback-error { color: #8d2929; background: #fff0ef; border: 1px solid #e8bdbc; }
.terminal { margin-top: 24px; color: var(--code-text); background: var(--code); border-radius: 8px; overflow: hidden; }
.terminal-header { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #35473d; color: #c1d1c7; font-size: 11px; }
pre { margin: 0; font-size: 11px; line-height: 2.1; tab-size: 4; }
.terminal pre { padding: 21px 18px 24px; overflow-x: auto; scrollbar-color: #789884 var(--code); }
.code-comment { color: var(--code-muted); }
.prompt { color: #8dd5a7; }
.more-commands { margin-top: 16px; border-block: 1px solid var(--line); font-size: 13px; }
summary { padding: 13px 0; cursor: pointer; font-weight: 600; }
summary:hover { color: var(--green); }
.extra-commands { padding-bottom: 18px; }
.extra-commands p { font-size: 12px; color: var(--muted); margin-block: 10px 6px; }
.extra-commands pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.help-note { font-size: 12px !important; }
code { font-size: .9em; }
.terminal code, pre code { font-size: inherit; }
.foundation { padding-block: 42px 48px; }
.foundation h2 { font-size: 17px; }
.foundation dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin: 26px 0 0; }
.foundation dt { font-size: 13px; }
.foundation dd { margin-top: 7px; color: var(--muted); font-size: 12px; max-width: 35ch; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 23px 30px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-divider { padding-inline: 8px; color: #798b80; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 72px 88px; min-height: 65vh; align-items: start; }
.auth-heading h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.auth-heading > p { color: var(--muted); margin-top: 20px; max-width: 40ch; }
.auth-switch { font-size: 14px; }
.auth-switch a, .auth-next a { color: var(--green); font-weight: 600; }
.auth-body { min-width: 0; max-width: 440px; overflow-wrap: anywhere; }
.auth-body form:first-child { margin-top: 0; }
.auth-field + .auth-field, .field-hint + .auth-field { margin-top: 20px; }
.auth-body button { width: 100%; justify-content: center; }
.auth-sso { margin-bottom: 20px; }
.auth-sso button { margin-top: 0; }
.auth-next { margin-top: 20px; font-size: 13px; }
.auth-body .feedback:first-child { margin-top: 0; }
.auth-body .feedback ul { margin: 8px 0 0; padding-left: 20px; }
.field-error { color: #8d2929; margin-top: 8px; font-size: 12px; }
.account-details { margin: 0; }
.account-details > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.account-details > div:first-child { padding-top: 0; }
.account-details dt { font-size: 12px; color: var(--muted); }
.account-details dd { margin-top: 4px; font-size: 16px; }
.api-token-form, .account-section { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 32px; }
.api-token-form h2, .account-section h2 { font-size: 18px; }
.api-token-form .field-hint, .account-section .field-hint { margin-top: 10px; }
.api-token-value { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); overflow-wrap: anywhere; user-select: all; }
.auth-logout { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 32px; }
.auth-logout button { margin-top: 0; }
.mfa-secret { padding-block: 16px; font-size: 18px; }
.mfa-qr { margin-block: 16px 24px; }
.mfa-qr svg { display: block; max-width: 100%; height: auto; }
.mfa-recovery-codes { padding-left: 24px; margin-block: 24px; }
.mfa-recovery-codes li { margin-block: 8px; }
.feedback + .mfa-recovery-warning { margin-top: 20px; }
.button-secondary { color: var(--green); background: transparent; border-color: var(--green); }
.button-secondary:hover { color: #fff; }
.form-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.captcha-field { min-width: 0; margin: 24px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.captcha-field legend { padding: 0 12px 0 0; font-size: 13px; font-weight: 650; }
.captcha-field .field-hint { margin-top: 0; }
.captcha-image { display: block; width: 240px; max-width: 100%; height: auto; margin-block: 14px; border: 1px solid var(--line); border-radius: 6px; }
.captcha-field > input[type="text"] { max-width: 240px; letter-spacing: .15em; }
.captcha-refresh, .auth-body .captcha-refresh { width: auto; min-height: 44px; margin-top: 12px; }
.landing-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.landing-nav { gap: 28px; }
.landing-nav-action { padding: 10px 15px; border: 1px solid #bccfc1; border-radius: 6px; }
.landing-nav-action:hover { border-color: var(--green); }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 390px); align-items: center; gap: clamp(48px, 8vw, 112px); padding-block: 88px 96px; }
.landing-copy h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 5.5vw, 5rem); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; }
.landing-copy h1 em { color: var(--green); font-weight: 400; }
.landing-copy > p { max-width: 43ch; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.landing-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 13px 19px; border-radius: 6px; background: var(--green); color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; }
.landing-primary:hover { background: var(--green-hover); color: #fff; }
.error-main { display: flex; align-items: center; min-height: calc(100vh - 100px); padding-block: 64px; }
.error-content { max-width: 62ch; }
.error-content h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; }
.error-message { margin-top: 24px; color: var(--ink); font-size: 17px; overflow-wrap: anywhere; }
.error-guidance { margin-top: 8px; color: var(--muted); font-size: 16px; }
.error-action { margin-top: 32px; }
.landing-secondary { color: var(--green); font-size: 14px; font-weight: 650; text-decoration: none; }
.landing-secondary:hover { text-decoration: underline; }
.landing-endpoints { display: block; min-width: 0; padding: 28px 30px 12px; border-radius: 8px; background: #193d30; color: #f3f9f4; }
.landing-endpoints h2 { margin-bottom: 20px; font-size: 17px; letter-spacing: -.01em; }
.landing-endpoints a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid #496657; color: inherit; text-decoration: none; }
.landing-endpoints a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.landing-endpoints a:focus-visible { outline-color: #b8e4c5; outline-offset: -3px; }
.landing-endpoints a > span:first-child { display: grid; min-width: 0; gap: 5px; }
.landing-endpoints strong { font-size: 14px; font-weight: 650; }
.landing-endpoints code { color: #c9ded0; font-size: 12px; overflow-wrap: anywhere; }
.landing-endpoints .endpoint-method { flex: none; color: #c9ded0; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.api-guide { padding-block: 64px 88px; border-top: 1px solid var(--line); }
.api-guide-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; }
.api-guide-heading h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.api-guide-heading p { max-width: 60ch; margin-top: 12px; color: var(--muted); font-size: 15px; }
.api-guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 52px; }
.api-guide-nav { position: sticky; top: 32px; display: flex; align-items: stretch; flex-direction: column; gap: 0; font-size: 14px; }
.api-guide-nav h3 { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.api-guide-nav a { padding-block: 8px; color: var(--ink); font-weight: 500; text-decoration: none; }
.api-guide-nav a:hover { color: var(--green); text-decoration: underline; }
.api-guide-content { min-width: 0; max-width: 76ch; font-size: 15px; }
.api-guide-section + .api-guide-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.api-guide-section h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.api-guide-section p { margin-top: 16px; line-height: 1.75; }
.api-guide-section p a { color: var(--green); font-weight: 600; }
.api-guide-section code { overflow-wrap: anywhere; }
.api-example { min-width: 0; margin: 20px 0; border: 1px solid #344d3f; border-radius: 6px; background: var(--code); color: var(--code-text); overflow: hidden; }
.api-example figcaption { padding: 10px 18px; border-bottom: 1px solid #344d3f; color: #c5d8ca; font-size: 12px; font-weight: 600; }
.api-example pre { padding: 18px; font-size: 13px; line-height: 1.75; overflow-x: auto; scrollbar-color: #789884 var(--code); }
.api-example pre:focus-visible { outline-color: #b8e4c5; outline-offset: -3px; }
.api-example code { overflow-wrap: normal; }
@media (max-width: 1000px) {
    .page-width { width: calc(100% - 48px); }
    .intro { gap: 32px; padding-block: 52px; }
    .workspace { gap: 36px; grid-template-columns: 1fr 1fr; }
    .project-map dl > div { display: block; }
    .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 40px; }
    .landing-copy h1 { font-size: clamp(2.7rem, 5vw, 3.2rem); }
    .api-guide-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 700px) {
    .auth-shell { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 56px; }
    .auth-body { width: 100%; max-width: none; }
    .page-width { width: calc(100% - 36px); }
    .site-header { min-height: 84px; flex-wrap: wrap; padding-block: 18px; gap: 14px; }
    nav { gap: 18px; flex-wrap: wrap; font-size: 12px; }
    .intro { grid-template-columns: 1fr; padding-block: 42px; gap: 32px; }
    .intro-copy > p { font-size: 15px; }
    .project-map dl > div { display: flex; }
    .workspace { grid-template-columns: 1fr; gap: 38px; padding-block: 36px; }
    .build-section { border-top: 1px solid var(--line); padding-top: 34px; }
    .foundation dl { grid-template-columns: 1fr; gap: 22px; }
    .foundation dd { max-width: 65ch; }
    .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; }
    h2 { font-size: 21px; }
    .landing-nav { gap: 8px; }
    .landing-nav-action { padding-inline: 10px; }
    .landing-hero { grid-template-columns: 1fr; gap: 40px; padding-block: 56px; }
    .landing-copy h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
    .landing-copy > p { font-size: 16px; }
    .error-main { min-height: calc(100vh - 84px); padding-block: 48px; }
    .landing-endpoints { padding: 24px 24px 8px; }
    .api-guide { padding-block: 40px 56px; }
    .api-guide-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
    .api-guide-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
    .api-guide-nav h3 { grid-column: 1 / -1; }
    .api-guide-section + .api-guide-section { margin-top: 36px; padding-top: 36px; }
    .api-example pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    button { transition: none; }
}
