@font-face {
  font-family: Supply Sans;
  src: url("interface-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #fff;
  --surface: #fff;
  --side: #fafafa;
  --text: #191919;
  --muted: #797979;
  --line: #e9e9e9;
  --line-strong: #dbdbdb;
  --accent: #1b1b1b;
  --tint: #f3f3f3;
  --green: #527e6b;
  --amber: #9d7b42;
  --radius: 8px;
  --font: "Supply Sans", Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22,.72,.22,1);
  font: 100%/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
h1,h2,h3,p,pre,fieldset { margin: 0; }
button,input,textarea,select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { text-decoration: none; color: inherit; }
a,button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img,svg { vertical-align: middle; }
code,pre,.mono { font-family: var(--mono); }
code { font-size: .88em; }
b,strong { font-weight: 570; }
:focus-visible { outline: 2px solid #929292; outline-offset: 3px; }
::selection { background: #e0e0e0; color: #222222; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #9a9a9a4d; border-radius: 10px; }
.sr,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 8px 14px; background: white; border: 1px solid var(--line-strong); border-radius: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.055em; white-space: nowrap; flex: none; }
.symbol { width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; gap: 3px; transform: rotate(-18deg); color: #1d1d1d; }
.symbol i { width: 5px; height: 18px; border-radius: 4px; background: currentColor; }
.symbol i:first-child { height: 11px; align-self: flex-end; margin-bottom: 1px; }
.symbol i:last-child { height: 11px; align-self: flex-start; margin-top: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 7px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--text); font-size: .875rem;
  font-weight: 500; white-space: nowrap; transition: background .17s, border-color .17s, color .17s, transform .17s, box-shadow .17s;
}
.btn:hover { background: #f5f5f5; border-color: #bdbdbd; }
.btn:active,.icon-button:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { background: #353535; box-shadow: 0 3px 10px #19191912; }
.btn.quiet { border-color: transparent; color: #707070; background: transparent; padding: 5px 8px; min-height: 32px; }
.btn.quiet:hover { background: #f2f2f2; color: var(--text); }
.icon-button { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; transition: background .17s, transform .17s; }
.icon-button:hover { background: var(--tint); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.provider-logo { flex: none; object-fit: contain; width: 19px; height: 19px; }
.provider-box { width: 33px; height: 33px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.with-logo { display: inline-flex; align-items: center; gap: 10px; }
.model-cell { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; }
.stack { display: inline-grid; gap: 2px; text-align: left; }
.stack b { font-size: .875rem; font-weight: 530; }
.stack small { font-size: .75rem; color: var(--muted); }
.status { display: inline-flex; gap: 6px; align-items: center; color: #888888; font-size: .8125rem; white-space: nowrap; }
.status i { display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.good { color: var(--green); }
.status.warn { color: var(--amber); }
.muted { color: var(--muted); }
.amount { font-variant-numeric: tabular-nums; font-weight: 530; color: #2b2b2b; letter-spacing: -.015em; }
.bound { width: min(1160px,calc(100% - 80px)); margin-inline: auto; }
.website { min-height: 100svh; }
.public-header { display: flex; gap: 36px; align-items: center; min-height: 83px; }
.public-header nav { display: flex; gap: 28px; margin-left: auto; color: #7a7a7a; font-size: .875rem; }
.public-header nav a { transition: color .18s; }
.public-header nav a:hover { color: var(--text); }
.public-header .btn { min-height: 35px; }
.home-hero { padding-top: 50px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-hero h1 { font-size: clamp(3.5rem,6.2vw,5.55rem); line-height: 1.035; letter-spacing: -.07em; font-weight: 520; animation: lift-in .55s var(--ease) both; }
.home-hero h1>span { color: #828282; }
.home-hero>p { margin-top: 22px; color: #797979; font-size: 1.01rem; line-height: 1.8; animation: lift-in .55s .07s var(--ease) both; }
.hero-actions { display: flex; gap: 9px; align-items: center; margin-top: 22px; }
.hero-actions .btn { min-height: 42px; padding-inline: 19px; }
.provider-marks { display: flex; gap: 27px; align-items: center; margin-top: 25px; }
.provider-marks>span { display: flex; gap: 8px; align-items: center; font-size: 1rem; font-weight: 530; }
.hero-code { width: min(820px,100%); margin-top: 36px; padding: 12px; border: 1px solid #f1f1f1; border-radius: 15px; background: linear-gradient(#fafafa,#fff); text-align: left; animation: lift-in .6s .1s var(--ease) both; }
.code-window { border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; background: white; box-shadow: 0 2px 8px #2c2c2c05; }
.code-header { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #fbfbfb; border-bottom: 1px solid var(--line); padding: 8px 12px; }
.code-header .segmented { background: transparent; border: 0; padding: 0; }
.code-header .segmented button[aria-pressed=true] { box-shadow: 0 1px 4px #1c1c1c20; border-color: #eeeeee; }
.code-window pre { overflow: auto; max-height: 290px; padding: 20px 24px; font-size: .8125rem; line-height: 1.65; color: #656565; }
.hero-code .code-window pre { height: 217px; }
.code-footer { display: flex; gap: 10px; align-items: center; padding: 8px 16px; font-size: .75rem; border-top: 1px solid var(--line); color: #8a8a8a; }
.code-footer>span { color: #5f806f; font-size: .69rem; }
.code-footer code { font-size: .75rem; }
.home-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; padding-block: 44px 43px; }
.home-features>a { padding: 20px 0 0; border-top: 1px solid var(--line); color: #7b7b7b; transition: color .17s; }
.home-features>a:hover { color: #383838; }
.home-features h2 { font-size: .98rem; font-weight: 530; color: var(--text); margin: 15px 0 7px; }
.home-features p { font-size: .875rem; line-height: 1.7; }
.public-footer { display: flex; align-items: center; gap: 22px; min-height: 79px; border-top: 1px solid var(--line); color: #999999; font-size: .8rem; }
.public-footer .brand { font-size: 1.15rem; color: #4c4c4c; }
.public-footer .symbol { transform: rotate(-18deg) scale(.8); color: #787878; }
.public-footer>a:last-child { margin-left: auto; }
.public-page { padding-block: 45px 75px; min-height: calc(100svh - 162px); }
.protocol-labels { display: flex; gap: 5px; flex-wrap: wrap; }
.protocol-labels a { padding: 3px 6px; border: 1px solid #e9e9e9; border-radius: 4px; font-size: .75rem; color: #848484; }
.protocol-labels a:hover { color: #444444; border-color: #c4c4c4; }
.docs-layout { display: grid; grid-template-columns: 196px minmax(0,1fr); gap: 34px; margin-top: 30px; }
.docs-index { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-right: 17px; }
.docs-index>span { font-size: .75rem; color: #a5a5a5; margin: 5px 9px 15px; }
.docs-index a { padding: 8px 10px; color: #868686; border-radius: 5px; font-size: .875rem; }
.docs-index a[aria-current] { background: #f5f5f5; color: #414141; }
.docs-index a:hover { background: #f5f5f5; }
.docs-content { min-width: 0; }
.docs-content>h2 { font-size: 1.25rem; font-weight: 530; }
.docs-content>p { font-size: .875rem; color: #838383; margin: 10px 0 20px; }
.docs-facts { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--line); }
.endpoint-line { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 9px 12px; background: #f8f8f8; border: 1px solid #ececec; border-radius: 7px; font-size: .8rem; color: #919191; }
.endpoint-line>code { color: #696969; overflow-wrap: anywhere; font-size: .8rem; }
.endpoint-line .btn { margin-left: auto; font-size: .75rem; }
.workspace { display: grid; grid-template-columns: 213px minmax(0,1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 26px 14px 14px; background: #fafafa; border-right: 1px solid var(--line); }
.sidebar>.brand { margin-left: 9px; }
.space-label { display: flex; align-items: center; gap: 8px; padding: 8px 7px; margin-top: 24px; margin-bottom: 23px; font-size: .75rem; color: #585858; }
.space-avatar { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 5px; background: white; border: 1px solid var(--line-strong); font-size: .68rem; color: #707070; }
.space-label>span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group { display: flex; flex-direction: column; gap: 3px; margin-bottom: 25px; }
.nav-group>span { color: #a6a6a6; font-size: .69rem; padding: 0 10px 7px; }
.nav-group>a { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 8px 10px; color: #7a7a7a; font-size: .85rem; border-radius: 6px; transition: color .17s, background .17s; }
.nav-group>a:hover { color: #3a3a3a; background: #f3f3f3; }
.nav-group>a[aria-current=page] { color: #252525; background: #f0f0f0; font-weight: 520; }
.nav-group>a svg { flex: none; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom>a { display: flex; align-items: center; gap: 8px; color: #9c9c9c; font-size: .79rem; padding: 8px; }
.sidebar-bottom>a:hover { color: #636363; }
.identity { display: flex; align-items: center; gap: 9px; padding: 18px 7px 4px; }
.identity>span { width: 29px; height: 29px; display: grid; place-items: center; background: #eeeeee; border: 1px solid #e3e3e3; border-radius: 50%; color: #838383; font-size: .75rem; flex: none; }
.identity>div { font-size: .76rem; color: #6c6c6c; }
.identity small { display: block; margin-top: 1px; font-size: .68rem; color: #a3a3a3; }
.app-content { min-width: 0; }
.workspace-header { display: flex; align-items: center; gap: 10px; padding: 14px 32px; min-height: 64px; border-bottom: 1px solid #eeeeee; color: #9e9e9e; font-size: .75rem; }
.workspace-header>b { color: #6a6a6a; font-weight: 450; }
.crumb-slash { color: #c3c3c3; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.demo-label { font-size: .7rem; color: #a1a1a1; }
.workspace-main { padding: 35px 32px 50px; max-width: 1660px; margin: auto; min-width: 0; animation: page-in .22s var(--ease) both; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 25px; }
.page-heading h1 { font-weight: 500; font-size: 1.8rem; line-height: 1.25; letter-spacing: -.055em; }
.page-heading p { color: #989898; font-size: .8125rem; margin-top: 7px; line-height: 1.6; }
.metrics { display: flex; gap: 47px; padding-bottom: 25px; margin-bottom: 23px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric>span { color: #929292; font-size: .8rem; }
.metric strong { font-size: 1.85rem; font-weight: 480; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.metric strong small { font-size: .8rem; font-weight: 430; color: #9d9d9d; letter-spacing: 0; margin-left: 3px; }
.metric>small { font-size: .72rem; color: #a7a7a7; margin-top: 1px; }
.filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.search-field { display: inline-flex; align-items: center; position: relative; min-width: 0; color: #9d9d9d; width: 260px; max-width: 100%; }
.search-field svg { position: absolute; left: 11px; pointer-events: none; }
input:not([type=checkbox]):not([type=radio]),select,textarea { min-height: 37px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: #525252; font-size: .875rem; }
input::placeholder { color: #a7a7a7; opacity: 1; }
.search-field input { width: 100%; padding-left: 33px!important; font-size: .8rem!important; min-height: 35px!important; }
.select-wrap { display: inline-flex; align-items: center; position: relative; color: #868686; }
.select-wrap>svg { position: absolute; right: 9px; pointer-events: none; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg,transparent 50%,#939393 51%),linear-gradient(135deg,#939393 50%,transparent 51%); background-position: calc(100% - 16px) 54%,calc(100% - 11px) 54%; background-size: 5px 5px; background-repeat: no-repeat; }
.select-wrap select { background-image: none; padding-right: 31px; min-height: 35px; font-size: .8rem; }
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: .875rem; }
th { background: #fbfbfb; font-size: .76rem; font-weight: 450; color: #929292; padding: 10px 13px; }
td { padding: 13px; border-top: 1px solid #ececec; font-variant-numeric: tabular-nums; color: #646464; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: #fdfdfd; }
td:has(.amount) { text-align: right; }
td:last-child:has(.quiet) { text-align: right; }
td .quiet { font-size: .76rem; }
td.empty { text-align: center; padding: 30px; color: #a4a4a4; }
td .with-logo .stack { min-width: 135px; }
td .stack b { color: #414141; }
td code { font-size: .78rem; }
.cell-link { border: 0; padding: 0; text-align: left; background: transparent; cursor: pointer; color: #616161; }
.cell-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.token-cell { font-size: .75rem; color: #929292; }
.quota { display: grid; gap: 6px; min-width: 44px; max-width: 65px; font-size: .8rem; color: #727272; }
.quota small { font-size: .7rem; color: #9f9f9f; margin-left: 2px; }
.quota>i { height: 3px; width: 100%; position: relative; background: #ebebeb; border-radius: 5px; overflow: hidden; }
.quota>i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--used); background: #9c9c9c; border-radius: 5px; }
.plan { font-size: .8rem; color: #7c7c7c; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; min-height: 34px; }
.section-title h2 { font-size: 1.05rem; font-weight: 530; letter-spacing: -.025em; }
.section-title .quiet { font-size: .8rem; }
.segmented { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #e6e6e6; background: #f6f6f6; padding: 3px; border-radius: 7px; }
.segmented button { min-height: 28px; padding: 4px 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; font-size: .8rem; color: #999999; white-space: nowrap; transition: color .16s,background .16s; }
.segmented button:hover { color: #5f5f5f; background: #fafafa; }
.segmented button[aria-pressed=true] { color: #515151; background: white; border-color: #e7e7e7; }
.chart-panel { padding: 20px 20px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.chart-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.chart-title h2 { font-size: .95rem; font-weight: 520; color: #6d6d6d; }
.usage-plot { display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 8px; }
.plot-scale { display: flex; flex-direction: column; justify-content: space-between; height: 145px; font-size: .7rem; color: #acacac; transform: translateY(-5px); }
.plot-body { position: relative; display: grid; grid-template-columns: repeat(var(--count),minmax(0,1fr)); background: repeating-linear-gradient(to bottom,#f1f1f1 0 1px,transparent 1px 72px); background-size: 100% 145px; background-repeat: no-repeat; }
.plot-body>svg { position: absolute; top: 0; left: 0; width: 100%; height: 145px; pointer-events: none; animation: chart-in .55s var(--ease) both; }
.plot-day { min-width: 0; text-align: center; }
.plot-day button { height: 145px; width: 100%; border: 0; padding: 0; position: relative; background: transparent; }
.plot-day button i { position: absolute; bottom: var(--value); left: 50%; width: 6px; height: 6px; border: 1.5px solid #797979; background: white; border-radius: 50%; transform: translate(-50%,50%); transition: background .16s,transform .16s; }
.plot-day button:hover i,.plot-day button.selected i { background: #636363; transform: translate(-50%,50%) scale(1.5); }
.plot-day button:hover::before,.plot-day button.selected::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #b8b8b8; }
.plot-day small { display: block; min-height: 22px; font-size: .67rem; color: #a9a9a9; margin-top: 5px; white-space: nowrap; }
.chart-caption { color: #969696; font-size: .73rem; margin-top: 5px; min-height: 18px; }
.integration-section { max-width: 940px; margin-top: 30px; }
.pair { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 10px 0; font-size: .85rem; }
.pair+.pair { border-top: 1px solid #f0f0f0; }
.pair>span { color: #969696; }
.pair b { color: #696969; font-weight: 480; text-align: right; }
.inline-feedback { display: flex; align-items: flex-start; gap: 8px; padding: 11px 12px; margin-top: 10px; border-radius: 6px; font-size: .8rem; line-height: 1.65; }
.inline-feedback svg { flex: none; margin-top: 2px; }
.inline-feedback.good { color: #59826c; background: #f1f7f3; border: 1px solid #dfece3; }
.inline-feedback.error { color: #ae6559; background: #fcf4f2; border: 1px solid #f0dcd7; }
.settings-form { max-width: 600px; border: 1px solid #e9e9e9; border-radius: 8px; padding: 24px; }
.settings-form>section { margin-bottom: 22px; }
.settings-form h2 { font-size: 1rem; font-weight: 520; }
.settings-form p { font-size: .8rem; color: #9a9a9a; margin-top: 7px; }
.form-field { display: grid; gap: 7px; margin-bottom: 18px; }
.form-field>label { font-size: .875rem; color: #727272; font-weight: 500; }
.form-field>small,.field-hint { font-size: .75rem; color: #a5a5a5; line-height: 1.8; }
.form-field input,.form-field select { width: 100%; }
.form-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.input-unit { display: flex; align-items: center; gap: 10px; }
.input-unit input { flex: 1; min-width: 0; }
.input-unit>span { color: #9f9f9f; font-size: .8rem; }
.onboarding-form,.account-settings { max-width: 930px; }
.form-section { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 40px; padding: 24px 0; border-top: 1px solid #eaeaea; }
.form-section>div { min-width: 0; }
.form-section>div:first-child h2 { font-size: .96rem; font-weight: 530; color: #545454; }
.form-section>div:first-child p { font-size: .77rem; color: #a5a5a5; line-height: 1.8; margin-top: 7px; max-width: 190px; }
.form-section .form-field:last-child { margin-bottom: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: .875rem; font-weight: 500; color: #727272; margin-bottom: 10px; }
.channel-options { display: flex; gap: 10px; margin: 22px 0; }
.channel-options label { flex: 1; min-width: 0; position: relative; }
.channel-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.channel-options span { display: flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid #e4e4e4; border-radius: 7px; padding: 13px; cursor: pointer; font-size: .9rem; color: #959595; transition: border-color .18s,background .18s; }
.channel-options input:checked+span { border-color: #8c8c8c; background: #f8f8f8; color: #4c4c4c; }
.channel-options input:focus-visible+span { outline: 2px solid #9e9e9e; outline-offset: 2px; }
.model-options>div { display: flex; flex-wrap: wrap; gap: 8px; }
.check-option { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #e5e5e5; border-radius: 6px; cursor: pointer; color: #838383; font-size: .8rem; }
.check-option:has(:checked) { color: #565656; border-color: #c7c7c7; background: #f9f9f9; }
.check-option input { appearance: none; width: 15px; height: 15px; border: 1px solid #c5c5c5; border-radius: 4px; margin: 0; display: grid; place-items: center; cursor: pointer; }
.check-option input:checked { background: #5f5f5f; border-color: #5f5f5f; }
.check-option input:checked::after { content: ""; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.proxy-example { display: flex; justify-content: space-between; gap: 10px; }
.proxy-example .btn { font-size: .76rem; }
.form-notice { color: #a6a6a6; font-size: .77rem; line-height: 1.7; background: #fafafa; border: 1px solid #f0f0f0; border-radius: 7px; padding: 11px 14px; margin-top: 10px; }
.form-error { color: #b4675d; font-size: .85rem; margin-top: 10px; }
.form-error:empty { display: none; }
.authorization-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px; border: 1px solid #e8e8e8; border-radius: 8px; background: #fafafa; margin-bottom: 22px; }
.authorization-callout h2 { font-size: 1rem; font-weight: 520; }
.authorization-callout p { font-size: .78rem; color: #a4a4a4; margin-top: 5px; }
.authorization-callout>div:last-child { display: flex; gap: 8px; }
.detail-summary { display: flex; align-items: center; gap: 24px; padding-bottom: 21px; color: #9d9d9d; font-size: .83rem; }
.detail-summary b { color: #666666; font-weight: 500; margin-left: 6px; }
.switch-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 0 21px; font-size: .875rem; color: #7b7b7b; }
.switch { appearance: none; cursor: pointer; width: 34px; height: 21px; background: #ededed; border: 1px solid #e0e0e0; border-radius: 13px; position: relative; margin: 0; transition: background .18s; }
.switch::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #b7b7b7; position: absolute; top: 2px; left: 2px; transition: transform .18s,background .18s; }
.switch:checked { background: #5a5a5a; border-color: #5a5a5a; }
.switch:checked::after { transform: translateX(13px); background: white; }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.quota-windows { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-top: 4px; }
.quota-windows>div { display: grid; gap: 10px; }
.quota-windows>div>span { font-size: .8rem; color: #939393; }
.quota-windows>div>small { font-size: .72rem; color: #adadad; }
.quota-windows .quota { max-width: 100%; font-size: 1.2rem; gap: 9px; }
.quota-windows .quota small { font-size: .75rem; }
.range-field { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: #9e9e9e; font-size: .8rem; }
.range-field>span:first-child { flex: 1; min-width: 100px; color: #808080; }
.range-field input { width: 69px; min-height: 34px!important; font-size: .8rem!important; padding: 5px 8px!important; }
.list-tabs { margin-bottom: 17px; }
.review-sheet { max-width: 1020px; }
.review-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 35px; padding: 6px 0 20px; border-bottom: 1px solid #ebebeb; }
.review-details .pair { border: 0; padding-block: 8px; }
.review-calculation { width: min(400px,100%); margin: 23px 0 0 auto; }
.review-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #c3c3c3; padding: 19px 0; margin-top: 9px; }
.review-total span { color: #959595; font-size: .9rem; }
.review-total strong { color: #4e4e4e; font-size: 2.35rem; letter-spacing: -.06em; font-weight: 450; }
.review-footer { display: flex; justify-content: flex-end; padding-top: 4px; }
.review-footer>div { display: flex; align-items: center; gap: 12px; }
.review-footer small { color: #afafaf; font-size: .75rem; }
dialog { max-height: calc(100dvh - 32px); width: min(470px,calc(100% - 28px)); padding: 0; border: 1px solid #e1e1e1; border-radius: 12px; background: white; color: var(--text); box-shadow: 0 25px 90px #28282830; }
dialog.wide { width: min(720px,calc(100% - 28px)); }
dialog::backdrop { background: #2626264d; backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in .22s var(--ease) both; }
dialog>header { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 13px 18px; border-bottom: 1px solid #ececec; }
dialog h2 { font-size: 1.1rem; font-weight: 530; letter-spacing: -.025em; }
.dialog-body { padding: 16px 18px 20px; }
.dialog-body input,.dialog-body select,.dialog-body textarea { width: 100%; }
.dialog-body .switch { width: 34px; }
.dialog-body .form-footer { margin-top: 19px; }
.dialog-body .table-scroll { margin-top: 14px; }
.dialog-body th,.dialog-body td { padding-inline: 10px; font-size: .8rem; }
.form-note { color: #9e9e9e; font-size: .8rem; line-height: 1.8; margin: 10px 0 15px; }
.created-secret { background: #f9f9f9; border: 1px solid #ececec; border-radius: 6px; padding: 11px 13px; margin-top: 14px; color: #797979; overflow-wrap: anywhere; }
.jump-list { display: grid; gap: 4px; margin-top: 12px; }
.jump-list a:not([hidden]) { display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: #858585; font-size: .875rem; border-radius: 6px; }
.jump-list a:hover { color: #606060; background: #f5f5f5; }
#toast { position: fixed; z-index: 20; bottom: 22px; left: 50%; transform: translate(-50%,8px); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 35px); padding: 11px 15px; border: 1px solid #e1e1e1; border-radius: 8px; color: #767676; background: #fff; box-shadow: 0 7px 25px #5d5d5d14; opacity: 0; pointer-events: none; font-size: .85rem; transition: opacity .18s,transform .18s; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
#toast svg { color: #799c85; flex: none; }
.mobile-menu,.sidebar-scrim { display: none; }
@keyframes lift-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes chart-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
/* Clear uses neutral surfaces and typography. Semantic status colors stay restrained. */
:root { --muted: #787878; }
.workspace-header { color: #9d9d9d; border-color: #eeeeee; }
.workspace-header>b { color: #717171; }
.nav-group>a { color: #7c7c7c; }
.nav-group>a[aria-current] { background: #f1f1f1; color: #292929; }
.sidebar-bottom>a,.identity small,.demo-label { color: #9f9f9f; }
.space-label,.identity>div { color: #6f6f6f; }
.page-heading p,.metric>span { color: #898989; }
.metric strong { color: #252525; }
td { color: #6f6f6f; }
td .stack b { color: #363636; }
th { color: #909090; background: #fbfbfb; }
.form-field>label,legend,.switch-label { color: #737373; }
input:not([type=checkbox]):not([type=radio]),select,textarea { color: #5e5e5e; }
.switch:checked,.check-option input:checked { background: #4b4b4b; border-color: #4b4b4b; }
.pair>span { color: #929292; }
.pair b { color: #676767; }
@media (min-width:1600px) { .workspace-main { padding-inline: 45px; } }
@media (max-width:1100px) {
  .workspace { grid-template-columns: 188px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .space-label { font-size: .69rem; gap: 6px; }
  .workspace-header { padding-inline: 25px; }
  .workspace-main { padding-inline: 25px; }
  .metrics { gap: 34px; }
  .form-section { grid-template-columns: 165px minmax(0,1fr); gap: 25px; }
  .docs-layout { grid-template-columns: 165px minmax(0,1fr); gap: 24px; }
}
@media (max-width:800px) {
  .workspace { grid-template-columns: 169px minmax(0,1fr); }
  .sidebar>.brand { font-size: 1.2rem; gap: 8px; }
  .space-label { font-size: .67rem; gap: 5px; padding-inline: 5px; }
  .space-avatar { width: 19px; height: 19px; }
  .nav-group>a { font-size: .8rem; padding-inline: 8px; gap: 8px; }
  .nav-group>a svg { width: 15px; height: 15px; }
  .workspace-main { padding: 27px 20px 40px; }
  .workspace-header { padding-inline: 20px; }
  .page-heading h1 { font-size: 1.65rem; }
  .metrics { gap: 26px; }
  .metric strong { font-size: 1.65rem; }
  .metric>span { font-size: .74rem; }
  .form-section { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .form-section>div:first-child p { max-width: none; }
  .authorization-callout { align-items: flex-start; flex-wrap: wrap; }
  .bound { width: calc(100% - 50px); }
  .home-hero { padding-top: 45px; }
  .home-hero h1 { font-size: 4.5rem; }
  .public-header { gap: 23px; }
  .public-header nav { gap: 20px; }
  .home-features { gap: 25px; }
  .docs-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .docs-index { flex-direction: row; flex-wrap: wrap; border-right: 0; padding: 0; }
  .docs-index>span { display: none; }
}
@media (max-width:600px) {
  .workspace { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 12; width: 235px; padding: 26px 16px 14px; transform: translateX(-100%); transition: transform .22s var(--ease); }
  .sidebar>.brand { font-size: 1.35rem; }
  .sidebar .space-label { font-size: .78rem; margin-top: 23px; gap: 9px; }
  .sidebar .space-avatar { width: 23px; height: 23px; }
  .nav-group>a { font-size: .875rem; min-height: 41px; gap: 11px; }
  .nav-group>a svg { width: 17px; height: 17px; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 11; inset: 0; padding: 0; border: 0; background: #30303044; }
  .menu-open .sidebar-scrim { display: block; }
  .mobile-menu { display: grid; margin-left: -5px; }
  .workspace-header { min-height: 54px; padding: 10px 17px; gap: 8px; font-size: .68rem; }
  .header-actions { gap: 5px; }
  .demo-label { font-size: .64rem; }
  .workspace-main { padding: 26px 17px 40px; }
  .page-heading { margin-bottom: 23px; gap: 12px; align-items: flex-start; }
  .page-heading h1 { font-size: 1.55rem; }
  .page-heading p { font-size: .75rem; }
  .page-heading .btn { min-height: 34px; padding: 6px 10px; font-size: .75rem; }
  .metrics { justify-content: space-between; gap: 16px 12px; padding-bottom: 21px; margin-bottom: 20px; }
  .metric strong { font-size: 1.5rem; }
  .metric>span { font-size: .71rem; }
  .metric>small { font-size: .64rem; }
  .metric strong small { font-size: .7rem; }
  .filterbar { gap: 7px; }
  .search-field { width: 100%; }
  .table-scroll { border-radius: 7px; }
  th,td { padding-inline: 11px; }
  .chart-panel { padding: 15px 11px 10px; }
  .chart-title { margin-bottom: 22px; }
  .chart-title h2 { font-size: .875rem; }
  .segmented button { padding-inline: 7px; font-size: .73rem; }
  .usage-plot { grid-template-columns: 34px minmax(0,1fr); gap: 3px; }
  .plot-scale { font-size: .64rem; }
  .plot-day small { font-size: .59rem; }
  .plot-day button i { width: 4px; height: 4px; }
  .chart-caption { font-size: .67rem; }
  .section-title { margin-top: 24px; }
  .section-title h2 { font-size: .97rem; }
  .section-title .quiet { font-size: .74rem; }
  .pair { font-size: .8rem; }
  .settings-form { padding: 18px; }
  .form-section { padding-block: 22px; gap: 16px; }
  .form-section h2 { font-size: .95rem; }
  .form-field>label,legend { font-size: .82rem; }
  .form-notice { font-size: .72rem; }
  .form-field small,.field-hint { font-size: .71rem; }
  .range-field { gap: 7px; font-size: .75rem; }
  .range-field>span:first-child { min-width: 80px; }
  .range-field input { width: 57px; font-size: .76rem!important; }
  .quota-windows { gap: 18px; }
  .quota-windows>div>small { font-size: .67rem; }
  .quota-windows>div>span { font-size: .74rem; }
  .authorization-callout { padding: 15px; gap: 13px; }
  .authorization-callout h2 { font-size: .94rem; }
  .authorization-callout p { font-size: .74rem; }
  .authorization-callout .btn { font-size: .76rem; min-height: 34px; }
  .review-details { grid-template-columns: 1fr; gap: 0; padding-bottom: 13px; }
  .review-details .pair { padding-block: 7px; }
  .review-total strong { font-size: 2.1rem; }
  .bound { width: calc(100% - 34px); }
  .public-header { gap: 17px; min-height: 68px; }
  .public-header .brand { font-size: 1.14rem; gap: 7px; }
  .public-header .symbol { width: 20px; }
  .public-header nav { gap: 15px; font-size: .75rem; }
  .public-header .btn { min-height: 32px; font-size: .73rem; padding: 5px 9px; }
  .home-hero { padding-top: 35px; }
  .home-hero h1 { font-size: clamp(3rem,12vw,4.2rem); line-height: 1.06; }
  .home-hero>p { font-size: .9rem; margin-top: 19px; }
  .hero-actions { margin-top: 21px; }
  .hero-actions .btn { min-height: 39px; padding-inline: 17px; font-size: .81rem; }
  .provider-marks { gap: 24px; margin-top: 24px; }
  .provider-marks>span { font-size: .91rem; gap: 7px; }
  .hero-code { margin-top: 31px; padding: 7px; border-radius: 11px; }
  .code-header { padding: 6px; gap: 5px; }
  .code-header .segmented { gap: 0; }
  .code-header .segmented button { font-size: .64rem; padding: 5px 6px; }
  .code-header .quiet { font-size: 0; width: 26px; height: 29px; min-height: 29px; padding: 4px; }
  .code-header .quiet svg { width: 14px; height: 14px; }
  .code-window pre { font-size: .71rem; padding: 15px; }
  .hero-code .code-window pre { height: 199px; }
  .code-footer { padding: 7px 11px; gap: 8px; }
  .code-footer code { font-size: .68rem; }
  .home-features { grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .home-features>a { position: relative; padding: 15px 0 0 31px; }
  .home-features>a>svg { position: absolute; top: 19px; left: 0; width: 18px; height: 18px; }
  .home-features h2 { margin-top: 0; font-size: .91rem; }
  .home-features p { font-size: .8rem; }
  .public-footer { min-height: 67px; gap: 12px; font-size: .7rem; }
  .public-footer>span { display: none; }
  .public-page { padding-block: 30px 45px; }
  .public-page .page-heading { flex-wrap: wrap; }
  .docs-index { gap: 3px; }
  .docs-index a { font-size: .74rem; padding: 7px 9px; }
  .docs-content>h2 { font-size: 1.1rem; }
  .docs-content>p { font-size: .8rem; }
  .endpoint-line { gap: 8px; padding: 9px; font-size: .7rem; flex-wrap: wrap; }
  .endpoint-line>code { font-size: .7rem; }
  .endpoint-line .btn { font-size: .69rem; min-height: 27px; }
  .dialog-body { padding-inline: 15px; }
  #toast { font-size: .77rem; padding: 10px 13px; bottom: 15px; }
}
@media (max-width:350px) {
  .public-header { gap: 10px; }
  .public-header nav { gap: 9px; font-size: .69rem; }
  .public-header .btn { font-size: .66rem; padding-inline: 7px; }
  .public-header .brand { font-size: 1.06rem; }
  .code-header .segmented button { font-size: .58rem; padding-inline: 4px; }
  .metrics { gap: 16px 10px; }
  .metric strong { font-size: 1.35rem; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
