/* LAT Lab API pages. Loaded after account.css, which brings the tokens, the font, the top bar and the footer. */
/* The page is taller than the window: the soft colour sits once at the top and does not repeat down the page. */
html { height: auto; }
body.api { height: auto; font-size: 17px; line-height: 1.55; background: radial-gradient(760px 420px at 82% 120px, rgba(0, 217, 192, .10), transparent 70%) no-repeat, radial-gradient(700px 420px at 8% 40px, rgba(0, 126, 248, .08), transparent 70%) no-repeat, var(--paper); }
html { scroll-behavior: smooth; } section[id], article[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* top bar: page links and the two buttons */
body.api .top { position: sticky; top: 0; z-index: 20; gap: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.brand { white-space: nowrap; }
.brand em { margin-left: 2px; padding: 2px 9px; border-radius: var(--r-full); background: var(--ink); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.topnav { display: flex; gap: 4px; margin: 0 auto 0 18px; }
.topnav a { padding: 7px 12px; border-radius: 8px; color: var(--body); font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.topnav a:hover { background: var(--tint); color: var(--ink); }

/* buttons with their own icon: an ink button and a paper button. Nothing moves on hover; the icon's wash turns. */
.cta { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 18px 0 9px; white-space: nowrap; border: 2px solid var(--ink); border-radius: 14px; background: var(--ink); color: #fff; font: inherit; font-size: 16.5px; font-weight: 700; text-decoration: none; cursor: pointer; overflow: hidden; transition: background .2s, box-shadow .25s; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); pointer-events: none; }
.cta:hover::after { transform: translateX(120%); } .cta:hover { box-shadow: 0 10px 26px rgba(11, 18, 23, .22); }
.cta .ic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--ink); }
.cta .ic::before { content: ""; position: absolute; width: 22px; height: 19px; left: 8px; top: 10px; border-radius: 46% 54% 60% 40% / 55% 45% 55% 45%; background: #9CCBFC; opacity: .85; filter: blur(.8px); transition: transform .4s var(--ease); }
.cta .ic.mint::before { background: #8FE3D6; } .cta:hover .ic::before { transform: scale(1.3) rotate(14deg); }
.cta .ic svg { position: relative; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cta .ic svg[viewBox="0 0 60 45"] { width: 26px; height: 20px; stroke: none; }
.cta.ghost { background: #fff; color: var(--ink); border-color: var(--hair-strong); } .cta.ghost:hover { border-color: var(--ink); box-shadow: 0 8px 20px rgba(11, 18, 23, .10); }
.cta.ghost .ic { background: var(--tint); } .cta.ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(0, 126, 248, .10) 50%, transparent 70%); }
.cta.sm { height: 42px; padding: 0 16px 0 8px; border-radius: 12px; font-size: 15.5px; gap: 8px; } .cta.sm .ic { width: 28px; height: 28px; border-radius: 8px; } .cta.sm .ic::before { width: 18px; height: 15px; left: 6px; top: 8px; } .cta.sm .ic svg { width: 18px; height: 18px; } .cta.sm .ic svg[viewBox="0 0 60 45"] { width: 22px; height: 17px; }
.cta:focus-visible { outline: none; box-shadow: var(--ring); } .cta[disabled] { opacity: .6; cursor: default; }

/* page */
main.docs { display: block; max-width: 1180px; padding: 12px 24px 56px; }
main.docs > section { margin-top: 56px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 28px !important; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.hero h1 { margin: 0 0 16px; font-size: 54px; line-height: 1.04; font-weight: 700; letter-spacing: -.025em; }
.hero .lead { margin: 0 0 26px; max-width: 540px; font-size: 21px; line-height: 1.5; color: var(--body); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .fine, .usage .fine, .fine.end { margin: 16px 0 0; padding: 0; border: 0; font-size: 13.5px; color: var(--sub); } .usage .fine { margin-top: 8px; } .fine.end { margin-top: 22px; } .hero .fine a, .fine a, .help a, .note a { color: var(--blue-ink); font-weight: 600; text-decoration: none; } .fine a:hover { text-decoration: underline; } .hero .fine a:hover, .help a:hover { text-decoration: underline; }
.art { width: 100%; height: auto; font-family: Outfit, system-ui, sans-serif; }
.art .curve { stroke-dasharray: 190; stroke-dashoffset: 190; animation: artDraw 1.4s .35s var(--ease) forwards; } @keyframes artDraw { to { stroke-dashoffset: 0; } }
.art .wire { animation: artFlow 1.6s linear infinite; } @keyframes artFlow { to { stroke-dashoffset: -22; } }
.art .spark { transform-origin: 470px 87px; animation: artTwinkle 3.2s ease-in-out infinite; } .art .spark.s2 { transform-origin: 96px 279px; animation-delay: 1.2s; } @keyframes artTwinkle { 50% { transform: scale(.72) rotate(18deg); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .art .curve { animation: none; stroke-dashoffset: 0; } .art .wire, .art .spark { animation: none; } }

h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 32px; letter-spacing: -.015em; }
h2 .ic, .help .ic { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #E3F0FF; color: var(--ink); } h2 .ic.mint { background: #D9F8F3; }
h2 .ic svg, .help .ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.intro { margin: -6px 0 22px; max-width: 860px; color: var(--body); font-size: 18px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--soft); color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.step { position: relative; padding: 22px 22px 20px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); transition: border-color .2s, box-shadow .25s; } .step:hover { border-color: var(--hair-strong); box-shadow: 0 12px 30px rgba(11, 18, 23, .07); }
.step b { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; }
.step h3 { margin: 0 0 6px; font-size: 21px; } .step p { margin: 0 0 12px; color: var(--body); }
.more { color: var(--blue-ink); font-weight: 700; text-decoration: none; } .more::after { content: " \2192"; } .more:hover { text-decoration: underline; }

.codebox { position: relative; border-radius: 14px; background: var(--ink); overflow: hidden; }
.codebox pre { margin: 0; padding: 18px 20px; overflow-x: auto; } .codebox .copy + pre { padding-top: 46px; } .codebox code { display: block; padding: 0; background: none; color: #E6EEF6; font-size: 14.5px; line-height: 1.6; white-space: pre; }
.copy { position: absolute; top: 10px; right: 10px; z-index: 1; height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s; } .copy:hover { background: rgba(255, 255, 255, .18); } .copy.done { background: var(--teal); border-color: var(--teal); }

.endpoint { margin-top: 18px; padding: 24px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.endpoint header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; } .endpoint h3 { margin: 0 0 0 auto; font-size: 22px; }
.verb { padding: 3px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .05em; }
.path { font-size: 19px; font-weight: 700; padding: 3px 10px; }
.endpoint > p { margin: 0 0 16px; max-width: 820px; color: var(--body); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; } .two.even { align-items: stretch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; } th { padding: 8px 10px; text-align: left; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); border-bottom: 1.5px solid var(--hair-strong); }
td { padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; } td i { margin-left: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--red-ink); } tr:last-child td { border-bottom: 0; }
details { margin-top: 12px; } summary { padding: 10px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--tint); font-weight: 700; cursor: pointer; list-style-position: inside; transition: background .15s; } summary:hover { background: var(--soft); } details[open] summary { margin-bottom: 10px; }

.trybox { border: 1px solid var(--hair); border-radius: 18px; background: var(--card); overflow: hidden; }
.tryhead { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); background: var(--tint); }
.tryhead label { margin: 0; font-size: 15px; } .tryhead input { width: 290px; height: 42px; font-family: ui-monospace, Menlo, monospace; font-size: 14.5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--soft); } .seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--body); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(11, 18, 23, .14); } #tryRun { margin-left: auto; }
.trybody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; padding: 20px; } .trybody label { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 15px; }
textarea { width: 100%; min-height: 300px; padding: 14px 16px; border: 1px solid var(--hair-strong); border-radius: 12px; background: #fff; color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-size: 14.5px; line-height: 1.55; resize: vertical; } textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.codebox.out { min-height: 300px; max-height: 460px; overflow: auto; } .status { padding: 2px 10px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; } .status.ok { background: #D9F8F3; color: var(--teal-ink); } .status.bad { background: #FDE7E6; color: var(--red-ink); }

.code { display: inline-block; min-width: 48px; padding: 2px 10px; border-radius: 8px; font-weight: 700; text-align: center; } .code.ok { background: #D9F8F3; color: var(--teal-ink); } .code.warn { background: #FFF3D1; color: #7A5A00; } .code.bad { background: #FDE7E6; color: var(--red-ink); }
#answers table { border: 1px solid var(--hair); border-radius: 16px; background: var(--card); border-collapse: separate; border-spacing: 0; overflow: hidden; } .note { margin: 14px 2px 0; color: var(--body); font-size: 16px; }
.help { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: var(--ink); color: #fff; } .help .ic { background: #fff; } .help div { display: flex; flex-direction: column; } .help strong { font-size: 20px; } .help span { color: #C9D6E4; } .help a { color: #8FD0FF; }

/* ---------- API keys page ---------- */
main.docs.narrow { max-width: 1040px; }
.who { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); font-size: 15.5px; font-weight: 600; }
.khead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 28px !important; }
.khead h1 { margin: 0 0 12px; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.khead .lead { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--body); }
.usage { position: relative; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); overflow: hidden; }
.usage::before { content: ""; position: absolute; right: -30px; top: -34px; width: 150px; height: 120px; border-radius: 46% 54% 60% 40% / 55% 45% 55% 45%; background: #9CCBFC; opacity: .28; }
.usage::after { content: ""; position: absolute; right: 44px; top: 30px; width: 70px; height: 56px; border-radius: 50%; background: #8FE3D6; opacity: .32; }
.usage > * { position: relative; }
.usage .lbl { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.usage .num { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 12px; } .usage .num b { font-size: 54px; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .usage .num > span { font-size: 20px; font-weight: 600; color: var(--sub); }
.meter { height: 10px; border-radius: var(--r-full); background: var(--soft); overflow: hidden; } .meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .6s var(--ease); } .usage.full .meter i { background: var(--red); }
.usage p { margin: 12px 0 0; font-size: 15.5px; color: var(--body); } .usage.full p { color: var(--red-ink); font-weight: 600; }
.makebox { padding: 24px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.makebox label { display: block; margin: 0 0 6px; font-size: 15px; } .makebox .opt { margin-left: 4px; color: var(--sub); font-size: 13px; font-weight: 400; } .makebox .row { display: flex; align-items: flex-end; gap: 12px; } .makebox .fld { flex: 1 1 0; min-width: 0; } .makebox input { width: 100%; height: 52px; border-radius: 14px; font-size: 16.5px; }
.msg { margin: 10px 0 0; color: var(--red-ink); font-weight: 600; } .msg:empty { display: none; }
.reveal { margin-top: 18px; padding: 20px; border: 1.5px solid var(--teal); border-radius: 16px; background: #E9FBF8; } .reveal[hidden] { display: none; } .reveal strong { display: block; margin-bottom: 12px; font-size: 18.5px; }
.reveal .codebox code { font-size: 16px; white-space: pre-wrap; word-break: break-all; }
.plain { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--teal-ink); font: inherit; font-weight: 700; cursor: pointer; } .plain:hover { text-decoration: underline; }
.tablewrap { border: 1px solid var(--hair); border-radius: 18px; background: var(--card); overflow-x: auto; } .tablewrap[hidden], .empty[hidden] { display: none; }
.tablewrap table { min-width: 860px; font-size: 15px; } .tablewrap th { padding: 11px 10px; white-space: nowrap; } .tablewrap td { padding: 11px 10px; vertical-align: middle; white-space: nowrap; } .tablewrap th:first-child, .tablewrap td:first-child { padding-left: 18px; } .tablewrap td.kname { max-width: 190px; overflow: hidden; text-overflow: ellipsis; } .tablewrap td code { font-size: 13px; } .tablewrap td.acts { text-align: right; white-space: nowrap; } .tablewrap td.acts .act + .act { margin-left: 6px; } .tablewrap .n { text-align: right; font-variant-numeric: tabular-nums; }
.kname { font-weight: 700; color: var(--ink); } tr.off td { color: var(--sub); } tr.off .kname { color: var(--sub); text-decoration: line-through; }
.pill { display: inline-block; padding: 3px 12px; border-radius: var(--r-full); background: var(--soft); color: var(--sub); font-size: 13.5px; font-weight: 700; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--hair-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .act:hover { border-color: var(--ink); } .act.danger:hover, .act.danger.sure { border-color: var(--red); background: #FDE7E6; color: var(--red-ink); } .act:focus-visible, .plain:focus-visible { outline: none; box-shadow: var(--ring); } .act[disabled] { opacity: .6; cursor: default; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px 34px; border: 1.5px dashed var(--hair-strong); border-radius: 18px; text-align: center; color: var(--body); } .empty strong { margin-top: 6px; font-size: 20px; color: var(--ink); }
body.keys .help { margin-top: 40px; }

/* the profile strip of the account page: who, and the membership */
.profile { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; max-width: 560px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); }
.avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.pfwho { display: flex; flex-direction: column; min-width: 0; margin-right: auto; } .pfwho strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfwho span { color: var(--sub); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfplan { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--body); font-size: 14.5px; }
.badge { flex: none; padding: 2px 11px; border-radius: var(--r-full); background: var(--soft); color: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.profile.pro .badge { background: linear-gradient(135deg, #0070FF, #00C9B0); color: #fff; } .profile.enterprise .badge { background: var(--ink); color: #fff; } .fine[hidden] { display: none; }
body.keys .khead h1 { margin-bottom: 14px; }

/* use of the last 30 days, the project of a key, and editing a key */
.usage.open .meter i { background: linear-gradient(90deg, var(--blue), var(--teal)); opacity: .35; } .usage .num > span { white-space: nowrap; }
.usebox { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.usenums { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; } .usenums div { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--hair); } .usenums span { color: var(--body); font-size: 15px; } .usenums b { font-size: 24px; font-variant-numeric: tabular-nums; }
.usenums p { margin: 2px 0 0; color: var(--sub); font-size: 13px; line-height: 1.4; }
.usechart svg { display: block; width: 100%; height: auto; font-family: Outfit, system-ui, sans-serif; }
.useprojects { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--hair); } .useprojects h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.prj { display: grid; grid-template-columns: minmax(0, 1.2fr) 70px minmax(0, 1.6fr) 90px 120px; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; } .prj strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prj span, .prj em { color: var(--body); font-style: normal; font-variant-numeric: tabular-nums; } .prj em { text-align: right; }
.prj > i { display: block; height: 8px; border-radius: var(--r-full); background: var(--soft); overflow: hidden; } .prj > i > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.quiet { color: var(--sub); font-size: 14.5px; } p.quiet { margin: 0; }
.tagp { display: inline-block; max-width: 180px; padding: 2px 10px; border-radius: var(--r-full); background: #E3F0FF; color: var(--blue-ink); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
input.cell { width: 100%; min-width: 110px; height: 36px; padding: 0 9px; border-radius: 9px; font-size: 15px; }

/* the account page: sections chosen on the left, one in view */
main.docs.acct { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1280px; padding-top: 32px; }
.side { position: sticky; top: 88px; } .side .eyebrow { margin: 4px 0 12px 12px; }
.sidenav { display: grid; gap: 4px; }
.sidenav button { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 12px 0 9px; border: 0; border-radius: 13px; background: none; color: var(--body); font: inherit; font-size: 16.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.sidenav .ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--soft); color: var(--ink); transition: background .15s; } .sidenav .ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.sidenav button:hover { background: var(--tint); color: var(--ink); } .sidenav button:focus-visible { outline: none; box-shadow: var(--ring); }
.sidenav button[aria-current=true] { background: var(--ink); color: #fff; } .sidenav button[aria-current=true] .ic { background: #fff; }
.pane[hidden] { display: none; } .pane h1 { margin: 0 0 18px; font-size: 42px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; } .pane .lead { margin: -6px 0 22px; max-width: 660px; color: var(--body); font-size: 18.5px; line-height: 1.5; } .pane h2 { margin-top: 36px; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; } .pgrid .profile { max-width: none; margin: 0; align-content: start; padding: 18px 20px; } .pgrid .avatar { width: 52px; height: 52px; font-size: 18px; } .pgrid .pfwho strong { font-size: 20px; } .pgrid .pfwho span { font-size: 15px; } .pgrid .pfplan { padding-top: 14px; font-size: 15.5px; }
.next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* the frame of the account page: a card on the left with a gentle wave, and a framed area for the sections */
.side { position: sticky; top: 88px; overflow: hidden; min-height: 520px; padding: 18px 12px 132px; border: 1px solid var(--hair); border-radius: 22px; background: radial-gradient(220px 160px at 0 0, rgba(0, 126, 248, .07), transparent 70%), var(--card); box-shadow: 0 14px 40px rgba(11, 18, 23, .05); }
.side > :not(.sidewave) { position: relative; z-index: 1; } .side .eyebrow { margin: 6px 0 14px 10px; }
.sidewave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; pointer-events: none; }
.sideplan { margin: 18px 4px 0; padding: 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--tint); font-size: 13.5px; color: var(--body); }
.sideplan .row1 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; } .sideplan .row1 span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.sideplan.pro .badge { background: linear-gradient(135deg, #0070FF, #00C9B0); color: #fff; } .sideplan.enterprise .badge { background: var(--ink); color: #fff; }
.sbmeter { height: 6px; margin-bottom: 8px; border-radius: var(--r-full); background: #fff; overflow: hidden; } .sbmeter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .6s var(--ease); } .sbmeter.open i { opacity: .35; }
.sidelinks { display: grid; gap: 2px; margin: 14px 4px 0; } .sidelinks a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; color: var(--body); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; } .sidelinks a:hover { background: var(--tint); color: var(--ink); }
.sidelinks svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.panes { position: relative; min-height: 520px; padding: 30px 32px 36px; border: 1px solid var(--hair); border-radius: 22px; background: radial-gradient(520px 260px at 100% 0, rgba(0, 217, 192, .08), transparent 70%), radial-gradient(420px 240px at 0 100%, rgba(0, 126, 248, .05), transparent 70%), rgba(255, 255, 255, .7); box-shadow: 0 14px 40px rgba(11, 18, 23, .05); overflow: hidden; }
.panes > .pane { position: relative; z-index: 1; } .paneart { position: absolute; right: -10px; top: -6px; width: 360px; height: 200px; pointer-events: none; }
.panes .usebox, .panes .makebox, .panes .tablewrap { box-shadow: 0 6px 20px rgba(11, 18, 23, .04); }
.usebox { position: relative; } .usechart.dim { opacity: .35; }
.useempty { position: absolute; left: 270px; right: 24px; top: 46px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; color: var(--body); font-size: 15px; } .useempty[hidden] { display: none; } .useempty strong { color: var(--ink); font-size: 18px; } .useempty .cta { margin-top: 6px; }

/* plan and billing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; padding: 22px 20px 18px; border: 1.5px solid var(--hair); border-radius: 18px; background: var(--card); box-shadow: 0 6px 20px rgba(11, 18, 23, .04); }
.plan h3 { margin: 0 0 4px; font-size: 21px; } .plan .amt { margin: 0 0 12px; color: var(--body); font-size: 15px; } .plan .amt b { color: var(--ink); font-size: 30px; letter-spacing: -.02em; margin-right: 4px; }
.plan ul { display: grid; gap: 6px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--hair); list-style: none; color: var(--body); font-size: 14.5px; } .plan li { position: relative; padding-left: 16px; } .plan li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 7px; height: 4px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .cur { display: none; position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan.on { border-color: var(--ink); background: radial-gradient(240px 140px at 100% 0, rgba(0, 217, 192, .12), transparent 70%), var(--card); } .plan.on .cur { display: block; }
.billing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.bl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); color: var(--body); font-size: 14px; } .bl .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); } .bl strong { color: var(--ink); font-size: 17px; } .bl.ask .cta { max-width: 100%; height: auto; min-height: 42px; margin: 4px 0 2px; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: left; line-height: 1.25; }

/* one colour for each plan: Free slate, Pro blue, Enterprise teal. It marks the badge, the avatar,
   the profile card, the side card and the meters, and each plan card carries its own. */
body.keys { --pc: #64748B; --pc-ink: #475569; --pc-soft: #EEF2F6; --pc-grad: linear-gradient(90deg, #94A3B8, #64748B); }
body.keys.plan-pro { --pc: #007EF8; --pc-ink: #0062C4; --pc-soft: #E3F0FF; --pc-grad: linear-gradient(90deg, #007EF8, #3AA0FF); }
body.keys.plan-enterprise { --pc: #00A894; --pc-ink: #00756A; --pc-soft: #DDF7F2; --pc-grad: linear-gradient(90deg, #00BFA9, #007EF8); }
body.keys .badge, body.keys .profile.pro .badge, body.keys .profile.enterprise .badge, body.keys .sideplan.pro .badge, body.keys .sideplan.enterprise .badge { background: var(--pc); color: #fff; }
body.keys .avatar { background: var(--pc); }
body.keys .profile { border-left: 5px solid var(--pc); background: linear-gradient(110deg, var(--pc-soft), #fff 55%); }
body.keys .sideplan { border-color: var(--pc); background: var(--pc-soft); } body.keys .sbmeter i, body.keys .meter i { background: var(--pc-grad); }
.plan[data-plan=free] { --c: #64748B; --s: #EEF2F6; } .plan[data-plan=pro] { --c: #007EF8; --s: #E3F0FF; } .plan[data-plan=enterprise] { --c: #00A894; --s: #DDF7F2; }
.plan { border-top: 5px solid var(--c); } .plan h3 { color: var(--c); } .plan li::before { border-color: var(--c); } .plan.on { border-color: var(--c); background: linear-gradient(180deg, var(--s), #fff 70%); } .plan .cur { background: var(--c); }
.paid { margin: -4px 0 18px; padding: 14px 16px; border: 1.5px solid var(--teal); border-radius: 14px; background: #E9FBF8; color: var(--body); } .paid[hidden] { display: none; } .paid strong { color: var(--teal-ink); }
.bl.ask .cta[hidden] { display: none; } .bl .msg { margin: 4px 0 0; } .paylist[hidden] { display: none; } .paylist .tablewrap table { min-width: 0; }

@media (max-width: 980px) {
    .hero, .two, .trybody { grid-template-columns: minmax(0, 1fr); } .steps { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 38px; } .hero .lead { font-size: 18px; } .topnav { display: none; } .endpoint h3 { margin-left: 0; width: 100%; }
    .plans, .billing { grid-template-columns: minmax(0, 1fr); } .plan .cur { top: -10px; }
    main.docs.acct { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 14px; } .side { position: static; min-height: 0; padding: 10px; } .sidewave, .sideplan, .sidelinks, .paneart { display: none; } .panes { min-height: 0; padding: 18px 14px 24px; } .useempty { position: static; } .side .eyebrow { display: none; } .sidenav { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } .sidenav button { justify-content: center; height: 44px; padding: 0 6px; gap: 6px; font-size: 14.5px; } .sidenav .ic { width: 26px; height: 26px; } .pane h1 { font-size: 32px; } .pgrid { grid-template-columns: minmax(0, 1fr); }
    .khead { grid-template-columns: minmax(0, 1fr); gap: 20px; } .khead h1 { font-size: 36px; } .makebox .row { flex-direction: column; align-items: stretch; } .makebox .fld { flex: none; } .usebox { grid-template-columns: minmax(0, 1fr); padding: 16px; } .prj { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; } .prj > i { grid-column: 1 / -1; order: 5; } .who { display: none; } body.api .top { gap: 8px; padding: 10px 14px; } body.api .brand { margin-right: auto; }
    .tryhead input { width: 100%; } #tryRun { margin-left: 0; } main.docs { padding: 8px 16px 40px; } h2 { font-size: 26px; } .cta.sm span:not(.ic) { display: none; } .cta.sm { padding: 0 8px; }
}
