:root { color-scheme: light; --ink: #161616; --muted: #6a6a6a; --line: #dedede; --wash: #f6f6f6; --paper: #fff; --blue: #2455ff; --blue-deep: #1a3fd6; --blue-wash: #eef2ff; --blue-line: #d6defe; --alert: #b42318; --code-bg: #0f1424; --code-ink: #e6ebf7;
  --text: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }
/* Self-hosted OFL font (see fonts/IBM-Plex-Mono-OFL.txt). */
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--text); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button[aria-busy="true"] { cursor: progress; }
button[aria-busy="true"]:disabled { opacity: 1; }
a:focus-visible, button:focus-visible, pre:focus-visible, summary:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; }
button, input { border-radius: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
pre, code { font-family: inherit; }
pre { overflow-x: auto; white-space: pre; font-size: 13px; line-height: 1.7; }
code { overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
.skip { position: absolute; left: 16px; top: 8px; transform: translateY(-160%); z-index: 20; background: var(--paper); padding: 8px 12px; }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-pending { visibility: hidden; }
/* A small ASCII spinner for real pending work; it appears only after 300ms. */
.spinner { display: inline-block; width: 1ch; height: 1.2em; line-height: 1.2em; overflow: hidden; vertical-align: -.3em; opacity: 0; animation: spinner-in 0s .3s forwards; }
.spinner::before { content: '|\A/\A-\A\\'; display: block; white-space: pre; animation: spinner-turn .5s steps(4) .3s infinite; }
@keyframes spinner-in { to { opacity: 1; } }
@keyframes spinner-turn { to { transform: translateY(-4.8em); } }
.primary { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); min-height: 48px; padding: 11px 19px; font-size: 14px; font-weight: 400; }
.primary:hover { background: #333; }
/* PAI blue marks the onboarding path: landing action, sign-in submit, instruction banner. */
.primary.accent { border-color: var(--blue); background: var(--blue); }
.primary.accent:hover { background: var(--blue-deep); }
.primary:active { transform: translateY(1px); }
.primary span[aria-hidden] { margin-left: 12px; }
.text-button { border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; padding: 9px 0; min-height: 44px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.7; }
.landing-page { min-height: 100svh; display: flex; flex-direction: column; }
.landing { width: min(100% - 40px, 680px); margin: 0 auto; padding-top: 24px; text-align: center; }
.ascii-scene { display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }
.ascii-control { display: block; border: 0; padding: 0; margin: 0; background: transparent; color: inherit; border-radius: 0; }
.ascii-control:disabled { opacity: 1; cursor: default; }
.ascii-control:focus-visible { outline: 1px dashed var(--muted); outline-offset: 8px; }
/* The icon grid was measured with the system monospace; keep it. */
#ascii-art { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; overflow: visible; margin: 0; width: 57ch; text-align: left; height: 36.75em; flex: none; font-size: clamp(5px, min(2.4vw, 1.4svh), 12px); line-height: 1.05; letter-spacing: 0; font-weight: 400; color: #222; user-select: none; }
.promise { font-size: 17px; font-weight: 400; line-height: 1.65; letter-spacing: 0; text-wrap: balance; }
.agents { margin-top: 14px; color: var(--muted); font-size: 13px; }
.onboarding-action { margin-top: 29px; }
.onboarding-action .primary { min-width: 246px; }
.credit-note { margin-top: 13px; color: var(--muted); font-size: 12px; }
.landing-header { width: min(100% - 40px, 680px); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; font-size: 13px; }
.landing-header nav { display: flex; gap: 20px; color: var(--muted); }
.landing-header a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; }
.landing-header nav a:hover { color: var(--ink); text-decoration: underline; }
.brand { font-weight: 600; letter-spacing: -.01em; }
.landing-section { text-align: left; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 34px; scroll-margin-top: 24px; }
.landing-section h2 { margin-bottom: 18px; }
.landing-section h3 { font-size: 13px; margin-bottom: 6px; }
.lede { margin-bottom: 24px; text-wrap: pretty; }
.can-do, .facts, .prompts { list-style: none; margin: 0; padding: 0; }
.can-do { margin-bottom: 22px; }
.can-do li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.can-do li:first-child { border-top: 1px solid var(--line); }
.can-do strong { display: block; font-weight: 400; }
.can-do span { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.prompts { display: grid; gap: 14px; }
.prompts li { background: var(--wash); border-radius: 3px; padding: 16px 20px; }
.prompt { position: relative; padding-left: 2ch; text-wrap: pretty; }
.prompt::before { content: '>'; position: absolute; left: 0; color: var(--muted); }
.uses { margin-top: 8px; padding-left: 2ch; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.price { margin-bottom: 18px; color: var(--muted); }
.price span { display: block; color: var(--ink); font-size: 34px; letter-spacing: -.02em; line-height: 1.3; }
.facts li { position: relative; padding-left: 2ch; }
.facts li + li { margin-top: 4px; }
.facts li::before { content: '·'; position: absolute; left: 0; color: var(--muted); }
.landing-section .onboarding-action { text-align: center; margin-top: 38px; }
.trust { display: grid; gap: 18px; margin-bottom: 20px; }
.trust p, .trust li { font-size: 13px; }
.requirements { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; min-height: 48px; padding: 10px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; flex: none; width: 2ch; color: var(--muted); }
.faq details[open] summary::before { content: '−'; }
.faq details p { padding: 0 0 18px 2ch; font-size: 13px; text-wrap: pretty; }
.coming-soon { text-align: center; margin: auto auto 0; padding: 72px 20px 0; }
.coming-soon h2 { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.platforms { display: flex; justify-content: center; gap: 28px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); }
.platforms li { width: 21px; height: 24px; }
.platforms svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.platforms .filled { fill: currentColor; stroke: none; }
.site-footer { grid-column: 1 / -1; margin: 0 auto; padding: 20px 20px 16px; font-size: 12px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.console-page .site-footer { width: 100%; border-top: 1px solid var(--line); }
.page-status { margin-top: 20px; font-size: 13px; text-wrap: pretty; }
.page-status:empty, .form-status:empty, .key-status:empty { display: none; }
.page-status.error, .form-status.error, .key-status.error { color: var(--alert); }
.banner { display: flex; align-items: center; gap: 16px; background: var(--blue); color: #fff; border-radius: 3px; padding: 12px 14px 12px 18px; font-size: 13px; line-height: 1.7; margin: 0 0 10px; }
.banner-note { margin: 0 0 30px; font-size: 12px; color: var(--muted); }
.banner p { flex: 1; margin: 0; }
.icon-button { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: inherit; background: none; border: 0; border-radius: 3px; }
.icon-button:hover { background: rgb(255 255 255 / .12); }
.icon-button:focus-visible { outline-color: #fff; outline-offset: -3px; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .done-icon, .icon-button.copied .copy-icon { display: none; }
.icon-button.copied .done-icon { display: block; }
.manual-prompt { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wash); padding: 20px; max-height: 360px; overflow-y: auto; margin: 20px 0; -webkit-user-select: all; user-select: all; }
dialog { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 38px 32px 30px; width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; }
dialog::backdrop { background: rgb(0 0 0 / .3); }
dialog h2 { padding-right: 16px; font-size: 19px; }
dialog > p { font-size: 13px; color: var(--muted); margin: 12px 0 26px; }
.dialog-close { position: absolute; top: 5px; right: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 25px; line-height: 1; color: var(--muted); }
label { display: block; font-size: 13px; margin: 16px 0 8px; }
input, select { width: 100%; max-width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); min-height: 47px; padding: 11px 0; font-size: 14px; box-shadow: none; }
input::placeholder { color: var(--muted); }
input:focus, select:focus { outline: 1px solid transparent; border-bottom-color: var(--blue); background: var(--blue-wash); }
#auth-submit { width: 100%; margin-top: 22px; }
.form-status { margin-top: 17px; font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 6px; font-size: 13px; }
.console-page { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 48px; max-width: 1120px; min-height: 100svh; padding: 0 32px; margin: 0 auto; }
.sidebar { position: sticky; top: 0; height: 100svh; align-self: start; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 30px 24px 24px 0; font-size: 13px; }
.home-link { display: flex; align-items: center; min-height: 44px; margin-bottom: 30px; text-decoration: none; color: var(--muted); font-size: 12px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; margin-left: -10px; text-decoration: none; border-radius: 3px; }
.app-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-wash); font-weight: 600; }
.context-nav { display: flex; flex-direction: column; margin-top: 22px; font-size: 12px; color: var(--muted); }
.context-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.sidebar a:hover { color: var(--blue); }
.sidebar-bottom { margin-top: auto; font-size: 12px; color: var(--muted); }
.sidebar-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.console-main { width: 100%; max-width: 760px; min-width: 0; padding: 48px 0; }
.console-main h1 { margin-bottom: 8px; }
.console-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.console-section h2 { margin-bottom: 14px; }
.console-section p + p { margin-top: 9px; }
#account-email { overflow-wrap: anywhere; }
.dashboard #account-email { font-size: 12px; }
.credit-summary { margin-top: 12px; font-size: 12px; color: var(--muted); }
.credit-summary a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; }
.credit-summary a:hover { text-decoration: underline; }
.balance { font-size: 34px; font-weight: 400; letter-spacing: -.02em; line-height: 1.4; margin: 8px 0; }
.credit-meter { width: min(100%, 264px); margin: 8px 0; }
.credit-meter p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.credit-meter meter { appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 3px; background: var(--blue-wash); }
.credit-meter meter::-webkit-meter-bar { border: 0; border-radius: 3px; background: var(--blue-wash); }
.credit-meter meter::-webkit-meter-optimum-value { border-radius: 3px; background: var(--blue); }
.credit-meter meter::-moz-meter-bar { border-radius: 3px; background: var(--blue); }
.keys-section { padding-top: 32px; scroll-margin-top: 28px; }
.keys-section > p { margin-top: 10px; max-width: 57ch; }
.key-form { margin-top: 22px; }
.key-create-row { display: flex; gap: 16px; }
.key-create-row input { min-width: 0; flex: 1; }
.key-create-row button { flex-shrink: 0; }
.secret-section { margin-top: 24px; border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.secret-section p { margin: 8px 0 15px; }
.secret-section p:last-child { margin: 12px 0 0; }
#key-secret { font-size: 12px; }
.secret-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 15px; font-size: 12px; }
.empty-state { padding: 24px 0; color: var(--muted); font-size: 12px; }
.key-list { list-style: none; padding: 0; margin: 24px 0 0; }
.key-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; overflow-wrap: anywhere; }
.key-list li > :first-child { min-width: 0; }
.key-list strong, .key-list small { display: block; }
.key-list strong { font-weight: 600; }
.key-list .revoked strong, .key-list .revoked small, .key-state { color: var(--muted); font-weight: 400; }
.key-state { flex-shrink: 0; font-size: 12px; }
.key-status { margin-top: 12px; font-size: 13px; }
.key-list small { margin-top: 3px; }
.key-list small { font-size: 12px; color: var(--muted); }
.key-list button { flex-shrink: 0; background: none; border: 0; padding: 8px 0 8px 12px; min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.doc-header { margin-bottom: 34px; }
.doc-header h1 { margin-bottom: 16px; }
.doc-header p { font-size: 13px; }
.doc-content { min-width: 0; }
.doc-content section { padding-bottom: 42px; scroll-margin-top: 28px; }
.doc-content h2 { margin-bottom: 16px; }
.doc-content h3 { margin: 26px 0 14px; }
.doc-content p { margin-bottom: 16px; }
.doc-content .banner p { margin: 0; }
.doc-content .banner { margin: 20px 0 8px; }
/* Code reads as a terminal: dark block, light text. */
.doc-content pre { background: var(--code-bg); color: var(--code-ink); border-radius: 6px; padding: 16px 20px; margin: 18px 0; }
.doc-content pre ::selection, .doc-content pre::selection { background: rgb(36 85 255 / .55); color: #fff; }
.doc-content pre:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.doc-content details { margin: 18px 0; scroll-margin-top: 28px; }
.doc-content details:target { outline: 1px solid var(--blue); outline-offset: 8px; }
.doc-content summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.doc-content :not(pre) > code { background: var(--blue-wash); border: 1px solid var(--blue-line); padding: 0 5px; border-radius: 3px; font-size: 13px; }
.notice { color: var(--muted); font-size: 12px; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 12px; margin-bottom: 18px; }
.prompt-actions a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
  .console-page { display: block; padding: 0 20px; }
  .sidebar { position: relative; height: auto; padding: 12px 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-link { margin-bottom: 8px; width: fit-content; }
  .app-nav, .context-nav { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .app-nav { margin-left: -10px; }
  .app-nav a { margin-left: 0; }
  .context-nav { margin-top: 8px; }
  .sidebar-bottom { position: absolute; top: 12px; right: 0; }
  .console-main { padding: 28px 0 40px; }
  input, select, #key-secret { font-size: 16px; }
  .banner { padding-left: 14px; gap: 10px; }
}
@media (max-width: 600px) {
  .landing { padding-top: 23px; }
  .ascii-scene { margin-bottom: 25px; }
  .promise { font-size: 16px; max-width: 330px; margin: 0 auto; }
  .agents { font-size: 12px; margin-top: 16px; }
  .onboarding-action { margin-top: 28px; }
  .coming-soon { padding-top: 56px; }
  .landing-section { margin-top: 56px; }
  .prompts li { padding: 14px 16px; }
  dialog { padding: 38px 23px 25px; }
  .key-create-row { flex-direction: column; }
  .key-create-row button { align-self: flex-start; }
  .key-list li { align-items: flex-start; }
  .balance { font-size: 36px; }

}
@media (min-width: 761px) and (max-height: 560px) { .sidebar { position: static; height: auto; } }
/* Landscape phones: keep the promise and the action in view. */
@media (max-height: 500px) { #ascii-art { font-size: clamp(4px, 1.6svh - 2px, 12px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner::before { animation: none; content: '…'; }
}
@media (scripting: none) { .needs-js, .spinner { display: none !important; } }
/* Legal, operation and comparison pages: one readable column, same type as the docs. */
.legal-page main { width: min(100% - 32px, 720px); margin: 0 auto; padding: 24px 0 56px; }
.legal-page .home-link { width: fit-content; margin-bottom: 24px; }
.legal-page .doc-content ul { margin: 0 0 16px; padding-left: 20px; }
.legal-page .doc-content li + li { margin-top: 6px; }
.revoked-group { margin-top: 12px; }
.revoked-group summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.revoked-group .key-list { margin-top: 8px; }
.legal-page .doc-header p + p { margin-top: 8px; }
a.primary { display: inline-flex; align-items: center; text-decoration: none; }
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; line-height: 1.6; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.data-table thead th { font-size: 12px; font-weight: 400; color: var(--muted); }
.data-table td:first-child { white-space: nowrap; }
.data-table td:nth-child(2) { min-width: 16ch; }
.data-table .muted { display: block; font-size: 12px; }
.op-index { list-style: none; margin: 0 0 16px; padding: 0; }
.op-index li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.op-index li:first-child { border-top: 1px solid var(--line); }
.op-index a { display: inline-flex; align-items: center; min-height: 40px; }
.op-index code { align-self: center; }
@media (max-width: 600px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .data-table th, .data-table td { display: block; border: 0; padding: 2px 0; }
  .data-table td:first-child { white-space: normal; }
  .data-table .muted { display: inline; }
  .data-table .muted::before { content: "· "; }
  .data-table [data-label]::before { content: attr(data-label) ': '; color: var(--muted); }
}
