:root {
  color-scheme: light;
  --ink: #112820;
  --ink-soft: #456057;
  --paper: #f5f3ec;
  --panel: #fffdf8;
  --line: #d8ddd6;
  --green: #163f34;
  --green-light: #dff2e8;
  --lime: #d8ff73;
  --red: #9d2b2b;
  --red-light: #fbe8e5;
  --amber: #7b5313;
  --amber-light: #fff2c8;
  --shadow: 0 22px 70px rgba(17, 40, 32, 0.11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; }
a { color: inherit; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark span { font-family: Georgia, serif; font-size: 2rem; letter-spacing: -.04em; }
.wordmark small { margin-top: .35rem; color: var(--ink-soft); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { margin: 0 0 .65rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #527266; }
.muted, .field-note { color: var(--ink-soft); font-size: .82rem; }
.auth-switch { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.auth-switch a { color: var(--green); font-weight: 800; }
.homepage-contact { margin: 1.5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--ink-soft); font-size: .79rem; line-height: 1.55; }
.homepage-contact span { color: var(--ink); font-weight: 750; white-space: nowrap; }
.legal-links + .homepage-contact { margin-top: .9rem; border-top: 0; padding-top: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; color: var(--ink-soft); font-size: .76rem; }
.legal-links a { font-weight: 750; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.not-found-shell { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; padding: clamp(1.5rem, 5vw, 4.5rem); }
.not-found-shell > section { align-self: center; max-width: 680px; padding: 4rem 0; }
.not-found-shell h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3.4rem, 9vw, 7.5rem); font-weight: 400; line-height: .92; letter-spacing: -.06em; }
.not-found-shell section > p:not(.eyebrow) { max-width: 480px; margin: 1.5rem 0 2rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.not-found-footer { align-self: end; margin: 0; color: var(--ink-soft); font-size: .76rem; }

.login-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh; }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: clamp(2rem, 6vw, 5rem); background: var(--green); color: white; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; width: clamp(28rem, 43vw, 34rem); aspect-ratio: 1; right: -8rem; bottom: -9rem; background: url('/favicon.png') center / contain no-repeat; opacity: .08; pointer-events: none; }
.login-brand .wordmark { color: white; position: relative; z-index: 1; }
.login-brand .wordmark small { color: rgba(255,255,255,.65); }
.brand-lockup { position: relative; z-index: 1; }
.brand-lockup p { margin: .9rem 0 0; color: rgba(255,255,255,.62); font-size: .76rem; white-space: nowrap; }
.brand-lockup p a { color: white; font-weight: 800; letter-spacing: .07em; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.brand-lockup .site-purpose { color: var(--lime); font-weight: 800; letter-spacing: .14em; }
.login-copy { max-width: 650px; position: relative; z-index: 1; }
.login-copy .eyebrow { margin-bottom: 1rem; color: var(--lime); }
.login-copy h1 { margin: 0; max-width: 600px; font-family: Georgia, serif; font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.login-copy > p:last-child { max-width: 570px; margin: 1.5rem 0 0; color: rgba(255,255,255,.72); line-height: 1.7; }
.trust-block { position: relative; z-index: 1; }
.faxzero-credit { margin: 0; color: rgba(255,255,255,.62); font-size: .76rem; white-space: nowrap; }
.faxzero-credit a { color: white; font-weight: 800; letter-spacing: .07em; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.trust-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; list-style: none; margin: 3rem 0 0; padding: 0; color: rgba(255,255,255,.8); font-size: .78rem; }
.trust-block .trust-list { margin-top: .9rem; }
.trust-list li::before { content: "✓"; margin-right: .45rem; color: var(--lime); }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 8vw, 7rem); background: var(--panel); overflow-y: auto; }
.login-panel h2 { margin: 1rem 0 .3rem; font-family: Georgia, serif; font-size: 2.25rem; font-weight: 400; }
.oauth-consent > p:not(.eyebrow, .muted) { color: var(--ink-soft); line-height: 1.55; }
.oauth-permissions { display: grid; gap: .65rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.oauth-permissions li { display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: .7rem; background: white; padding: .85rem 1rem; }
.oauth-permissions li.consequential { border-color: #d9bd76; background: #fffaf0; }
.oauth-permissions strong { font-size: .86rem; }
.oauth-permissions span { color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.oauth-actions { display: flex; justify-content: flex-end; gap: .65rem; margin: 1.25rem 0; }
.sandbox-chip { align-self: flex-start; border: 1px solid #afc8b8; border-radius: 999px; padding: .35rem .7rem; background: var(--green-light); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stack-form { display: grid; gap: 1rem; margin-top: 2rem; }
label { display: grid; gap: .45rem; font-size: .79rem; font-weight: 750; color: #365148; }
input, select { width: 100%; border: 1px solid #bdc7c0; border-radius: .7rem; background: white; padding: .78rem .85rem; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,63,52,.13); }
.legal-acceptance { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); font-weight: 500; line-height: 1.45; }
.legal-acceptance input { width: auto; margin: .2rem 0 0; flex: 0 0 auto; }
.legal-acceptance a { color: var(--green); font-weight: 800; }

.legal-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 82px; padding: .8rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgba(17,40,32,.1); background: var(--panel); }
.legal-header nav { display: flex; align-items: center; gap: 1.25rem; }
.legal-header nav a { font-size: .8rem; font-weight: 800; text-decoration: none; }
.legal-shell { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) 0; }
.legal-document { border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); box-shadow: var(--shadow); padding: clamp(1.5rem, 5vw, 4.5rem); }
.legal-document h1 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.legal-document h2 { margin: 3.2rem 0 1rem; padding-top: .4rem; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 400; letter-spacing: -.025em; }
.legal-document h3 { margin: 2rem 0 .7rem; font-size: 1rem; }
.legal-document p, .legal-document li { color: #304a41; font-size: .94rem; line-height: 1.75; }
.legal-document p { margin: 0 0 1rem; }
.legal-document ul, .legal-document ol { margin: 1rem 0 1.5rem; padding-left: 1.5rem; }
.legal-document li { margin: .5rem 0; padding-left: .25rem; }
.legal-document a { color: var(--green); font-weight: 750; }
.legal-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1rem, 4vw, 4rem); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .76rem; }
.legal-footer a { color: inherit; font-weight: 750; }

.how-shell { width: min(900px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.how-intro { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.how-intro h1 { max-width: 800px; margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.how-intro > p:not(.eyebrow) { max-width: 680px; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.how-intro .faxzero-referral { margin-top: .6rem; font-size: .9rem; }
.faxzero-referral a { color: var(--green); font-weight: 800; }
.how-price { display: inline-flex; align-items: baseline; gap: .65rem; margin-top: 2rem; border-radius: 999px; background: var(--green); padding: .7rem 1.1rem; color: white; }
.how-price strong { color: var(--lime); font-size: 1.35rem; }
.how-price span { font-size: .82rem; font-weight: 750; }
.purpose-card { display: grid; gap: 1rem; margin: clamp(2rem, 5vw, 3.5rem) 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); padding: clamp(1.5rem, 4vw, 2.5rem); }
.purpose-card h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.purpose-card > div:last-child p { margin: 0 0 1rem; color: #304a41; font-size: .95rem; line-height: 1.75; }
.purpose-card > div:last-child p:last-child { margin-bottom: 0; }
.how-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-steps > li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.4rem; border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.step-number { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border: 1px solid #b9c9bf; border-radius: 50%; color: var(--green); font: 400 1.4rem Georgia, serif; }
.how-steps h2 { margin: 0 0 .65rem; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.35rem); font-weight: 400; letter-spacing: -.025em; }
.how-steps p { max-width: 770px; margin: 0; color: #304a41; font-size: .95rem; line-height: 1.75; }
.agent-note { margin: clamp(3rem, 8vw, 6rem) 0 1.25rem; border-radius: 1rem; background: var(--green); padding: clamp(1.8rem, 6vw, 4.5rem); color: white; box-shadow: var(--shadow); }
.agent-note .eyebrow { color: var(--lime); }
.agent-note h2 { max-width: 700px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.agent-note > p:last-child { max-width: 760px; margin: 1.5rem 0 0; color: rgba(255,255,255,.75); line-height: 1.75; }
.how-action { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); padding: clamp(1.5rem, 4vw, 2.5rem); }
.how-action h2 { margin: 0; font: 400 clamp(1.55rem, 4vw, 2.2rem) Georgia, serif; letter-spacing: -.025em; }
.how-action .button { flex: 0 0 auto; }

.api-shell { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.api-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: end; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.api-intro h1 { max-width: 700px; margin: 0; font: 400 clamp(2.7rem, 7vw, 4.8rem)/.98 Georgia, serif; letter-spacing: -.05em; }
.api-intro > div > p:last-child { max-width: 700px; margin: 1.25rem 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.api-intro aside { border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); padding: 1.2rem; }
.api-intro dl { margin: 1rem 0 0; }
.api-intro dl div { display: grid; grid-template-columns: 75px 1fr; gap: .8rem; border-top: 1px solid #e7e8e2; padding: .7rem 0; }
.api-intro dt { color: var(--ink-soft); font-size: .72rem; }
.api-intro dd { margin: 0; font-size: .78rem; font-weight: 750; overflow-wrap: anywhere; }
.api-intro code, .api-section code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-jump { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.api-jump a { color: var(--green); font-size: .78rem; font-weight: 800; }
.api-section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.api-section > h2 { margin: 0 0 1rem; font: 400 clamp(1.9rem, 4vw, 2.8rem) Georgia, serif; letter-spacing: -.03em; }
.api-section > p:not(.eyebrow, .machine-links) { max-width: 830px; color: #304a41; font-size: .92rem; line-height: 1.7; }
.api-section a { color: var(--green); font-weight: 800; }
.api-notice { margin-top: 1.5rem; border: 1px solid #ebd493; border-radius: .8rem; background: var(--amber-light); padding: 1.3rem 1.5rem; }
.api-notice h2 { font-size: 1.35rem; }
.api-notice p { margin-bottom: 0; }
.api-step { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 1.5rem; margin-top: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); padding: 1.2rem; }
.api-step > div > span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--green-light); color: var(--green); font-size: .75rem; font-weight: 800; }
.api-step h3 { margin: .8rem 0 .45rem; font-size: 1rem; }
.api-step p { margin: 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.55; }
.api-step.consequential { border-color: #d9bd76; }
pre { max-width: 100%; overflow-x: auto; margin: 0; border-radius: .65rem; background: #102a22; padding: 1rem; color: #effff7; font: .76rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.agent-guidance { margin-top: 3rem; border: 0; border-radius: 1rem; background: var(--green); padding: clamp(1.5rem, 5vw, 3rem); color: white; }
.agent-guidance .eyebrow { color: var(--lime); }
.agent-guidance > h2 { color: white; }
.agent-guidance ol { margin: 1.2rem 0; padding-left: 1.3rem; }
.agent-guidance li { margin: .7rem 0; color: rgba(255,255,255,.8); font-size: .88rem; line-height: 1.6; padding-left: .25rem; }
.agent-guidance .machine-links { margin: 1.5rem 0 0; color: white; font-size: .82rem; }
.agent-guidance a { color: var(--lime); }
.api-table td:nth-child(2) code { overflow-wrap: anywhere; }
.api-error-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0; }
.api-error-grid > div { display: grid; gap: .35rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); padding: 1rem; }
.api-error-grid code { color: var(--green); font-size: 1rem; font-weight: 800; }
.api-error-grid strong { font-size: .82rem; }
.api-error-grid p { margin: 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.45; }
.api-shell > .how-action { margin-top: 2rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; border: 1px solid transparent; border-radius: .7rem; padding: .65rem 1rem; text-decoration: none; font-weight: 800; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: #0b3027; }
.button.quiet { background: white; border-color: var(--line); color: var(--ink); }
.button.danger { color: var(--red); background: transparent; border-color: #e9c4c0; }
.button.small { min-height: 2rem; padding: .35rem .65rem; font-size: .73rem; }
button:disabled { cursor: not-allowed; opacity: .6; }

.account-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 82px; padding: .8rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid rgba(17,40,32,.1); background: rgba(245,243,236,.93); backdrop-filter: blur(16px); }
.account-header nav { display: flex; gap: 1.5rem; }
.account-header nav a { text-decoration: none; font-size: .82rem; font-weight: 800; }
.account-person { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.account-person > span { display: grid; text-align: right; font-size: .8rem; }
.account-person small { color: var(--ink-soft); }
.account-person form, .row-actions form { margin: 0; }

.account-main { width: min(1500px, calc(100% - 2rem)); margin: 0 auto; padding: 3.2rem 0 5rem; }
.account-main.narrow { width: min(800px, calc(100% - 2rem)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.balance-card, .status-card, .section-card, .secret-card { border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); box-shadow: 0 12px 45px rgba(17,40,32,.05); }
.balance-card, .status-card { min-height: 275px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.balance { margin: .2rem 0 .65rem; font-family: Georgia, serif; font-size: clamp(4rem, 8vw, 7.2rem); letter-spacing: -.07em; line-height: .9; }
.balance-card > p:not(.eyebrow, .field-note) { color: var(--ink-soft); }
.funding-options { display: flex; gap: .55rem; margin-top: 1.4rem; }
.funding-options form { margin: 0; }
.funding-options button { border: 1px solid var(--line); border-radius: .55rem; background: #f1f2ec; padding: .55rem .85rem; font-weight: 800; }
.funding-options button:hover { border-color: var(--green); background: var(--green-light); }
.status-card { display: flex; flex-direction: column; justify-content: space-between; background: var(--green); color: white; }
.status-card > div:first-child { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.status-dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(216,255,115,.12); }
.status-card h2 { max-width: 620px; margin: 2rem 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.metric-row div { border-top: 1px solid rgba(255,255,255,.18); padding-top: .8rem; }
.metric-row dt { color: rgba(255,255,255,.6); font-size: .7rem; }
.metric-row dd { margin: .35rem 0 0; font-size: 1.5rem; font-weight: 700; }

.section-card { padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.25rem; overflow: hidden; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 2.15rem; font-weight: 400; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th { padding: .65rem .8rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-align: left; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 1rem .8rem; border-bottom: 1px solid #e8e9e3; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td code { display: block; margin-top: .3rem; color: #60746d; font-size: .7rem; }
.scope-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.scope { border: 1px solid #c9d8ce; border-radius: 999px; background: #f0f7f2; padding: .22rem .45rem; color: #294c40; font-size: .65rem; }
.key-status, .fax-status { display: inline-flex; border-radius: 999px; padding: .25rem .5rem; font-size: .65rem; font-weight: 800; text-transform: capitalize; }
.key-status.active, .fax-status.delivered { color: #16613e; background: var(--green-light); }
.key-status.revoked, .fax-status.failed { color: var(--red); background: var(--red-light); }
.fax-status.queued, .fax-status.submitted, .fax-status.transmitting { color: #65480d; background: var(--amber-light); }
.fax-status.ready { color: #355273; background: #e4eef9; }
.row-actions { display: flex; gap: .4rem; justify-content: flex-end; }
.empty { padding: 2rem; color: var(--ink-soft); text-align: center; }
.amount { font-weight: 800; }
.amount.positive { color: #24714e; }
.amount.negative { color: var(--red); }

.create-panel { margin: 1rem -.35rem -.35rem; border-radius: .8rem; background: #f0f0e9; }
.create-panel summary { padding: 1rem 1.2rem; font-weight: 800; }
.key-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 1.2rem 1.2rem; }
.key-form .wide { grid-column: 1 / -1; }
.key-form fieldset { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 0; border: 0; padding: 0; }
.key-form legend { margin-bottom: .5rem; font-size: .79rem; font-weight: 800; color: #365148; }
.key-form fieldset label { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: .6rem; background: white; padding: .75rem; }
.key-form input[type="checkbox"] { width: auto; }
.money-input { display: flex; align-items: center; overflow: hidden; border: 1px solid #bdc7c0; border-radius: .7rem; background: white; }
.money-input span { padding-left: .75rem; color: var(--ink-soft); }
.money-input input { border: 0; box-shadow: none; padding-left: .25rem; }
.form-action { display: flex; align-items: end; }
.split-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; }
.split-grid .section-card { margin: 0; }

.notice { margin: 0 0 1rem; border-radius: .7rem; padding: .85rem 1rem; font-size: .82rem; }
.notice.error { color: var(--red); background: var(--red-light); border: 1px solid #e9c4c0; }
.notice.success { color: #1c6042; background: var(--green-light); border: 1px solid #bdddc9; }
.notice.warning { color: var(--amber); background: var(--amber-light); border: 1px solid #ebd493; }
.secret-card { margin-top: 2rem; padding: clamp(2rem, 7vw, 4.5rem); text-align: center; }
.success-mark { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; margin: 0 auto 1.3rem; border-radius: 50%; background: var(--green-light); color: #1d704a; font-size: 1.4rem; }
.secret-card h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 400; letter-spacing: -.05em; }
.secret-card > p:not(.eyebrow) { color: var(--ink-soft); }
.secret-box { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin: 2rem 0 1rem; text-align: left; }
.secret-box code { overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: .7rem; background: #eff1eb; padding: .85rem; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 58vh; }
  .login-copy h1 { font-size: clamp(2.35rem, 7vw, 3.75rem); }
  .account-header { grid-template-columns: 1fr auto; }
  .account-header nav { display: none; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; }
  .key-form { grid-template-columns: repeat(2, 1fr); }
  .key-form fieldset { grid-template-columns: repeat(2, 1fr); }
  .api-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .api-intro aside { max-width: 500px; }
}

@media (max-width: 640px) {
  .login-brand, .login-panel { padding: 1.4rem; }
  .login-brand { min-height: 65vh; }
  .login-brand::after { width: 28rem; right: -9rem; bottom: 1rem; opacity: .07; }
  .brand-lockup p { font-size: .69rem; }
  .brand-lockup p a { letter-spacing: .04em; }
  .faxzero-credit { font-size: .69rem; }
  .faxzero-credit a { letter-spacing: .04em; }
  .trust-list { display: grid; }
  .account-header { min-height: 70px; padding: .7rem 1rem; }
  .account-header .wordmark small, .account-person > span { display: none; }
  .account-main { width: min(100% - 1rem, 1500px); padding-top: 1rem; }
  .balance-card, .status-card, .section-card { border-radius: .8rem; }
  .metric-row { gap: .5rem; }
  .metric-row dd { font-size: 1.15rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .5rem; text-align: left; }
  .key-form, .key-form fieldset { grid-template-columns: 1fr; }
  .key-form > *, .key-form .wide { grid-column: 1; }
  .secret-box { grid-template-columns: 1fr; }
  .legal-header { align-items: flex-start; }
  .legal-header nav { gap: .7rem; }
  .legal-header nav .button { display: none; }
  .legal-document { border-radius: .8rem; padding: 1.4rem; }
  .legal-footer { flex-direction: column; }
  .purpose-card { grid-template-columns: 1fr; }
  .how-steps > li { grid-template-columns: 3rem 1fr; gap: .8rem; }
  .step-number { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
  .how-action { align-items: flex-start; flex-direction: column; }
  .api-shell { width: min(100% - 1rem, 1040px); padding-top: 1.5rem; }
  .api-step { grid-template-columns: 1fr; }
  .oauth-actions { align-items: stretch; flex-direction: column-reverse; }
  .api-error-grid { grid-template-columns: 1fr 1fr; }
}
