:root {
  --relay-bg: #f3f5f6;
  --relay-surface: #ffffff;
  --relay-soft: #f7f9f8;
  --relay-line: #dfe4e1;
  --relay-ink: #17201b;
  --relay-muted: #68736d;
  --relay-green: #137a50;
  --relay-green-soft: #eaf6f0;
  --relay-blue: #356c9b;
  --relay-blue-soft: #eef5fb;
  --relay-gold: #95690c;
  --relay-gold-soft: #fff8df;
  --relay-shadow: 0 10px 28px rgba(24, 37, 30, .055);
  --relay-radius: 14px;
}

/* Shared shell */
.console-page { color: var(--relay-ink); background: var(--relay-bg); }
.console-page .site-header { width: 100%; height: 64px; position: fixed; top: 0; left: 0; z-index: 40; padding: 0 28px; border-bottom-color: #e1e5e3; background: rgba(255, 255, 255, .96); color: var(--relay-ink); backdrop-filter: blur(16px); }
.console-page > main { padding-top: 64px; }
.console-page .brand { gap: 11px; font-size: 14px; }
.console-page .brand-mark { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 4px 12px rgba(23, 32, 27, .08); }
.console-page .top-nav { gap: 18px; color: #4f5b55; font-size: 13px; }
.console-layout { min-height: calc(100vh - 64px); display: block; background: var(--relay-bg); }
.side-nav { width: 248px; height: calc(100vh - 64px); min-height: 0; position: fixed; left: 0; top: 64px; z-index: 30; padding: 26px 18px 20px; border-right-color: #e0e4e2; background: #fbfcfb; }
.side-label { margin: 0 11px 11px; color: #929b96; font-size: 10px; font-weight: 800; }
.side-nav-links { position: relative; display: grid; gap: 4px; }
.side-nav a { min-height: 42px; padding: 0 12px; position: relative; z-index: 1; gap: 11px; border-radius: 11px; color: #58645e; font-size: 13px; }
.side-nav a:hover { background: rgba(239, 243, 241, .72); transform: none; }
.side-nav a.active { background: transparent; color: #116a46; box-shadow: none; }
.workspace-active-indicator { width: var(--indicator-w, 100%); height: var(--indicator-h, 42px); position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 11px; background: #e7f3ed; box-shadow: inset 3px 0 #148f60; transform: translate(var(--indicator-x, 0), var(--indicator-y, 0)); transition: transform .3s cubic-bezier(.22, 1, .36, 1), width .3s cubic-bezier(.22, 1, .36, 1), height .2s ease; }
.workspace-active-indicator:not(.is-ready) { transition: none; }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; color: #88928d; font-size: 13px; }
.account-chip { padding: 12px; gap: 10px; border: 1px solid var(--relay-line); border-radius: 13px; background: #fff; }
.account-chip > span { width: 34px; height: 34px; }
.account-chip strong { font-size: 12px; }
.account-chip small { max-width: 142px; margin-top: 3px; font-size: 9px; }
.console-main { width: calc(100% - 248px); max-width: 1580px; min-height: calc(100vh - 64px); margin: 0 0 0 248px; padding: 32px clamp(22px, 3vw, 48px) 64px; }
.workspace-content-enter { animation: workspace-content-enter .26s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes workspace-content-enter { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.console-heading { min-height: 82px; align-items: center; }
.console-heading .eyebrow { margin-bottom: 7px; color: var(--relay-green); font-size: 10px; }
.console-heading h1 { font-size: 28px; line-height: 1.15; }
.dashboard-subtitle { margin-top: 7px; color: var(--relay-muted); font-size: 12px; }
.docs-button { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; align-self: flex-start; border: 1px solid #dfe5e2; border-radius: 12px; background: #fff; color: #53605a; box-shadow: 0 3px 11px rgba(25, 39, 31, .05); transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.docs-button:hover { border-color: #a7cdb8; background: #eef8f2; color: #14734d; transform: translateY(-1px); }
.docs-button:focus-visible { outline: 3px solid rgba(20, 143, 96, .22); outline-offset: 2px; }
.docs-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.docs-shell { max-width: 1180px; margin: 0 auto; padding: 46px 34px 80px; }
.docs-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.docs-kicker { color: var(--relay-green); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.docs-hero h1 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: 0; }
.docs-hero p { max-width: 560px; margin: 13px 0 0; color: var(--relay-muted); font-size: 14px; line-height: 1.7; }
.docs-back, .docs-group-link { color: var(--relay-green); font-size: 12px; font-weight: 700; }
.docs-endpoint { margin-top: 28px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #cfe1d8; border-radius: 12px; background: #eef8f2; }
.docs-endpoint div { display: grid; gap: 6px; min-width: 0; }
.docs-endpoint span { color: #537365; font-size: 10px; font-weight: 700; }
.docs-endpoint code { overflow-wrap: anywhere; color: #173c2b; font-size: 14px; font-weight: 700; }
.docs-layout { margin-top: 34px; display: grid; grid-template-columns: 170px minmax(0, 760px); gap: 58px; align-items: start; }
.docs-toc { position: sticky; top: 92px; display: grid; gap: 4px; }
.docs-toc a { padding: 9px 11px; border-left: 2px solid transparent; color: #6b7770; font-size: 12px; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.docs-toc a:hover { border-color: var(--relay-green); color: var(--relay-green); transform: translateX(3px); }
.docs-content { min-width: 0; }
.docs-section { padding: 28px 0 34px; border-bottom: 1px solid #dde5e0; scroll-margin-top: 82px; }
.docs-section:first-child { padding-top: 0; }
.docs-section-heading { display: flex; align-items: flex-start; gap: 14px; }
.docs-number { color: #8aa296; font-size: 11px; font-weight: 800; line-height: 1.5; }
.docs-section h2 { margin: 0; font-size: 21px; }
.docs-section-heading p { margin: 6px 0 0; color: var(--relay-muted); font-size: 11px; }
.docs-steps { margin: 24px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; counter-reset: docs-step; }
.docs-steps li { min-height: 52px; padding: 12px 14px 12px 48px; position: relative; display: grid; gap: 4px; border: 1px solid #e1e8e4; border-radius: 10px; background: #fff; counter-increment: docs-step; }
.docs-steps li::before { content: counter(docs-step); width: 24px; height: 24px; position: absolute; top: 13px; left: 14px; display: grid; place-items: center; border-radius: 50%; background: #e8f5ee; color: var(--relay-green); font-size: 11px; font-weight: 800; }
.docs-steps b { font-size: 12px; }
.docs-steps span, .docs-note-grid span { color: var(--relay-muted); font-size: 11px; line-height: 1.6; }
.docs-steps code, .docs-endpoint code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.download-row { margin-top: 22px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #d9e6df; border-radius: 11px; background: #f8fbf9; }
.download-row div { display: grid; gap: 5px; }
.download-row strong { font-size: 13px; }
.download-row span { color: var(--relay-muted); font-size: 11px; }
.docs-download { padding: 9px 13px; flex: 0 0 auto; border-radius: 8px; background: var(--relay-green); color: white; font-size: 11px; font-weight: 800; }
.docs-callout { margin-top: 16px; padding: 13px 15px; display: grid; gap: 5px; border-left: 3px solid #79b796; background: #f1f8f4; }
.docs-callout b { font-size: 12px; }
.docs-callout span { color: #5f7167; font-size: 11px; line-height: 1.6; }
.code-block { margin-top: 17px; overflow: hidden; border: 1px solid #dce5e0; border-radius: 10px; background: #17201b; }
.code-title { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; color: #b8cdc1; font-size: 10px; }
.code-title button { padding: 4px 8px; border: 1px solid #436352; border-radius: 5px; background: transparent; color: #d9ebe0; font-size: 10px; cursor: pointer; }
.code-block pre { margin: 0; padding: 14px; overflow-x: auto; color: #e7f3ec; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.docs-note-grid { margin-top: 21px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.docs-note-grid article { padding: 14px; display: grid; gap: 6px; border: 1px solid #e1e8e4; border-radius: 9px; }
.docs-note-grid b { font-size: 12px; }
.docs-qr-grid { margin-top: 22px; display: flex; gap: 16px; }
.docs-qr-grid figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.docs-qr-grid img { width: 148px; height: 148px; object-fit: contain; border: 1px solid #e2e8e4; border-radius: 8px; background: #fff; }
.docs-qr-grid figcaption { color: var(--relay-muted); font-size: 11px; }
.docs-group-link { display: inline-block; margin-top: 18px; }

/* Long-form documentation */
.docs-v2-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 88px; }
.docs-v2-heading { margin-bottom: 36px; display: flex; align-items: center; gap: 14px; }
.docs-v2-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e9f6ef; color: var(--relay-green); }
.docs-v2-icon svg, .docs-v2-toc strong svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.docs-v2-heading h1 { margin: 0; font-size: 29px; line-height: 1.15; }
.docs-v2-heading p { margin: 6px 0 0; color: var(--relay-muted); font-size: 13px; }
.docs-v2-layout { display: block; }
.docs-v2-article { width: min(100%, 980px); margin: 0 auto; min-width: 0; }
.docs-tutorial-tabs { margin: 0 0 30px; padding: 0 4px; display: flex; align-items: stretch; gap: 4px; overflow-x: auto; border-bottom: 1px solid #dfe7e2; scrollbar-width: none; }
.docs-tutorial-tabs::-webkit-scrollbar { display: none; }
.docs-tutorial-tabs button { position: relative; padding: 12px 15px 13px; flex: 0 0 auto; border: 0; background: transparent; color: #67746c; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s ease, background .2s ease; }
.docs-tutorial-tabs button::after { content: ""; height: 2px; position: absolute; right: 13px; bottom: -1px; left: 13px; border-radius: 2px 2px 0 0; background: var(--relay-green); transform: scaleX(0); transform-origin: center; transition: transform .24s ease; }
.docs-tutorial-tabs button:hover { color: #14734d; background: #f4faf6; }
.docs-tutorial-tabs button.is-active { color: #14734d; }
.docs-tutorial-tabs button.is-active::after { transform: scaleX(1); }
.docs-v2-article section[hidden] { display: none; }
.docs-v2-article details[hidden] { display: none; }
.docs-v2-article section.is-doc-visible { animation: docs-panel-in .24s ease both; }
.docs-v2-article details.is-doc-visible { animation: docs-panel-in .24s ease both; }
@keyframes docs-panel-in { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.docs-manual-config { margin: -14px 0 28px; border: 1px solid #dfe7e2; border-radius: 8px; background: #fff; }
.docs-manual-config summary { min-height: 58px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #27372e; cursor: pointer; list-style: none; }
.docs-manual-config summary::-webkit-details-marker { display: none; }
.docs-manual-config summary span { font-size: 13px; font-weight: 800; }
.docs-manual-config summary small { color: #78857d; font-size: 11px; }
.docs-manual-config summary::after { content: "+"; color: #14734d; font-size: 18px; line-height: 1; }
.docs-manual-config[open] summary::after { content: "−"; }
.docs-manual-config-body { padding: 22px 18px 8px; border-top: 1px solid #e5ebe7; }
.docs-guide-figure-compact { width: min(100%, 680px); margin-right: auto; margin-left: auto; }
.docs-v2-article section { padding: 4px 0 42px; margin-bottom: 38px; border-bottom: 1px solid #e1e7e3; scroll-margin-top: 86px; }
.docs-v2-article section:last-child { border-bottom: 0; }
.docs-v2-lead { margin: 0; color: #4e5b54; font-size: 14px; line-height: 1.9; }
.docs-v2-info { margin-top: 22px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d3e6db; border-radius: 10px; background: #f2f9f5; }
.docs-v2-info b { font-size: 12px; }
.docs-v2-info code { color: #135d3e; font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.docs-v2-actions { margin-top: 17px; display: flex; align-items: center; gap: 16px; }
.docs-v2-actions a { color: var(--relay-green); font-size: 12px; font-weight: 700; }
.docs-v2-actions .docs-v2-primary { padding: 10px 14px; border-radius: 8px; background: var(--relay-green); color: #fff; }
.docs-v2-article h2 { margin: 0 0 17px; color: #152219; font-size: 21px; line-height: 1.35; }
.docs-v2-article h3 { margin: 25px 0 10px; color: #243129; font-size: 15px; }
.docs-v2-article p, .docs-v2-article li { color: #4e5c54; font-size: 13px; line-height: 1.9; }
.docs-v2-article p { margin: 0 0 12px; }
.docs-v2-article ol { margin: 12px 0 0; padding-left: 23px; }
.docs-v2-article a { color: #14734d; font-weight: 700; }
.docs-v2-article code { padding: 2px 4px; border-radius: 4px; background: #edf2ef; color: #18533b; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.docs-v2-article li strong { color: #af3f35; font-weight: 700; }
.docs-v2-download { margin: 20px 0; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #dce6e0; border-radius: 11px; background: #fff; }
.docs-v2-app-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #163c2a; color: #eafff2; font-size: 11px; font-weight: 800; }
.docs-v2-download div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.docs-v2-download b { font-size: 13px; }.docs-v2-download span { color: var(--relay-muted); font-size: 11px; }
.docs-v2-download a { margin-left: auto; padding: 8px 11px; flex: 0 0 auto; border: 1px solid #c5dfd0; border-radius: 7px; background: #f3faf6; font-size: 11px; }
.docs-v2-config-card { margin: 16px 0; overflow: hidden; border: 1px solid #dbe3de; border-radius: 10px; background: #fff; }
.docs-v2-config-top { min-height: 39px; padding: 0 13px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e7ece9; background: #f8faf9; }
.docs-v2-config-top b { margin-left: 5px; color: #5b6861; font-size: 11px; }.docs-v2-dot { width: 8px; height: 8px; border-radius: 50%; }.docs-v2-dot.red { background: #e97669; }.docs-v2-dot.yellow { background: #dfb954; }.docs-v2-dot.green { background: #76b58b; }
.docs-v2-config-card dl { margin: 0; padding: 7px 15px; }.docs-v2-config-card dl div { padding: 10px 0; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #edf0ee; }.docs-v2-config-card dl div:last-child { border: 0; }.docs-v2-config-card dt { color: #7b8780; font-size: 11px; }.docs-v2-config-card dd { margin: 0; color: #2e3d34; font-size: 11px; }
.docs-v2-code { margin: 14px 0; overflow: hidden; border: 1px solid #27362e; border-radius: 9px; background: #17201b; }.docs-v2-code > div { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2c3d33; color: #b8cabf; font-size: 10px; }.docs-v2-code button { padding: 4px 8px; border: 1px solid #476154; border-radius: 5px; background: transparent; color: #d7e8dd; font-size: 10px; cursor: pointer; }.docs-v2-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: #e4efe8; font: 11px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }.docs-v2-code code { padding: 0; background: transparent; color: inherit; white-space: pre; font: inherit; }
.docs-v2-table { width: 100%; margin: 14px 0; overflow: hidden; border: 1px solid #dfe6e2; border-spacing: 0; border-radius: 9px; font-size: 12px; }.docs-v2-table th, .docs-v2-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid #e5ebe7; }.docs-v2-table tr:last-child th, .docs-v2-table tr:last-child td { border-bottom: 0; }.docs-v2-table th { width: 132px; color: #6c7971; font-weight: 700; background: #f7f9f8; }.docs-v2-table td { color: #3f4d45; }
.docs-v2-faq { margin-top: 14px; border-top: 1px solid #e1e7e3; }.docs-v2-faq details { border-bottom: 1px solid #e1e7e3; }.docs-v2-faq summary { padding: 13px 4px; color: #34433a; font-size: 12px; font-weight: 700; cursor: pointer; }.docs-v2-faq details p { padding: 0 4px 13px; margin: 0; font-size: 12px; }
.docs-v2-qr { margin-top: 24px; display: flex; gap: 28px; }.docs-v2-qr figure { margin: 0; display: grid; gap: 10px; justify-items: center; }.docs-v2-qr img { width: 220px; height: 220px; object-fit: contain; border: 1px solid #e0e7e3; border-radius: 10px; background: #fff; }.docs-v2-qr figcaption { color: #66746c; font-size: 12px; line-height: 1.55; text-align: center; }.docs-v2-group { display: inline-block; margin-top: 20px; padding: 10px 14px; border-radius: 7px; background: #ebf6ef; font-size: 12px; }
.docs-v2-toc { padding: 16px; position: sticky; top: 84px; border: 1px solid #e0e7e3; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(25, 41, 31, .04); }.docs-v2-toc strong { margin-bottom: 10px; display: flex; align-items: center; gap: 7px; color: #4e5d54; font-size: 11px; }.docs-v2-toc strong svg { width: 15px; height: 15px; }.docs-v2-toc nav { display: grid; gap: 1px; }.docs-v2-toc a { padding: 7px 8px; overflow: hidden; border-radius: 6px; color: #647169; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; transition: color .18s ease, background .18s ease; }.docs-v2-toc a:hover { background: #eaf6ef; color: #14734d; }
.docs-guide-figure { margin: 18px 0 20px; overflow: hidden; border: 1px solid #dfe7e2; border-radius: 10px; background: #fff; box-shadow: 0 7px 20px rgba(25, 40, 31, .05); }
.docs-guide-figure img { width: 100%; height: auto; display: block; }
.docs-guide-figure picture { display: block; }
.docs-guide-figure figcaption { padding: 9px 12px; color: #68756d; font-size: 11px; line-height: 1.55; }

/* Documentation site */
.docs-page { background: #fff; color: #171a1c; }
.docs-page > .site-header { display: none; }
.docs-page > main { min-height: 100vh; }
.docs-site-header { height: 72px; padding: 0 24px; position: fixed; inset: 0 0 auto; z-index: 80; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e7e9; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.docs-site-brand { display: flex; align-items: center; gap: 11px; color: #171a1c; font-size: 17px; }
.docs-site-brand img { width: 28px; height: 28px; object-fit: contain; }
.docs-site-actions { display: flex; align-items: center; gap: 26px; }
.docs-site-actions a { color: #30363b; font-size: 14px; }
.docs-site-actions a:hover { color: #1473e6; }
.docs-menu-button { width: 40px; height: 40px; padding: 10px; display: none; border: 0; background: transparent; cursor: pointer; }
.docs-menu-button span { height: 2px; margin: 4px 0; display: block; border-radius: 2px; background: #30363b; }
.docs-v3-shell { min-height: 100vh; padding-top: 72px; display: grid; grid-template-columns: 300px minmax(0,1fr); }
.docs-v3-sidebar { width: 300px; position: fixed; inset: 72px auto 0 0; z-index: 50; border-right: 1px solid #e5e7e9; background: #fff; }
.docs-sidebar-inner { height: 100%; padding: 18px 7px 36px 20px; overflow-y: auto; scrollbar-width: thin; }
.docs-tutorial-tabs { margin: 0; padding: 0 0 0 3px; display: block; overflow: visible; border: 0; }
.docs-nav-group { margin-bottom: 8px; }
.docs-nav-group > summary { padding: 9px 34px 9px 10px; position: relative; color: #202428; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.docs-nav-group > summary::-webkit-details-marker { display: none; }
.docs-nav-group > summary::after { content: ""; width: 7px; height: 7px; position: absolute; top: 14px; right: 14px; border-right: 1.5px solid #69727a; border-bottom: 1.5px solid #69727a; transform: rotate(45deg); transition: transform .22s ease, top .22s ease; }
.docs-nav-group:not([open]) > summary::after { top: 17px; transform: rotate(-45deg); }
.docs-nav-items { display: grid; overflow: hidden; }
.docs-tutorial-tabs button { width: 100%; min-height: 36px; padding: 7px 12px; border: 0; border-radius: 5px; color: #5f6871; font-size: 14px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; }
.docs-tutorial-tabs button::after { display: none; }
.docs-tutorial-tabs button:hover { color: #1473e6; background: #f5f6f7; }
.docs-tutorial-tabs button.is-active { color: #0969da; background: #eef5ff; font-weight: 600; }
.docs-sidebar-backdrop { display: none; }
.docs-v3-main { grid-column: 2; width: min(100%, 1060px); padding: 26px 64px 80px 58px; }
.docs-breadcrumb { min-height: 34px; display: flex; align-items: center; gap: 12px; color: #69727a; font-size: 13px; }
.docs-breadcrumb a { width: 24px; height: 24px; display: grid; place-items: center; color: #343a40; }
.docs-breadcrumb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.docs-breadcrumb b { padding: 5px 10px; border-radius: 999px; background: #eef5ff; color: #0969da; font-weight: 600; }
.docs-v3-main .docs-v2-heading { margin: 24px 0 28px; }
.docs-v3-main .docs-v2-heading h1 { font-size: 40px; font-weight: 760; letter-spacing: 0; }
.docs-v3-main .docs-v2-heading p { margin-top: 14px; color: #4f5962; font-size: 15px; }
.docs-v3-main .docs-v2-article { width: min(100%, 880px); margin: 0; }
.docs-v3-main .docs-v2-article section { padding: 4px 0 42px; margin: 0; border: 0; }
.docs-v3-main .docs-v2-article h2 { margin: 4px 0 18px; font-size: 25px; }
.docs-v3-main .docs-v2-article h2, .docs-v3-main .docs-v2-article h3 { color: #171a1c; }
.docs-v3-main .docs-v2-article h3 { font-size: 17px; }
.docs-v3-main .docs-v2-article p, .docs-v3-main .docs-v2-article li { color: #30363b; font-size: 15px; line-height: 1.8; }
.docs-v3-main .docs-v2-article a { color: #0969da; }
.docs-v3-main .docs-v2-info { border-radius: 3px; border-color: #d8dee4; background: #f6f8fa; }
.docs-v3-main .docs-v2-info code, .docs-v3-main .docs-v2-article code { background: #eef2f6; color: #174f8b; }
.docs-v3-main .docs-v2-actions a { color: #0969da; }
.docs-v3-main .docs-v2-actions .docs-v2-primary { background: #1473e6; color: #fff; }
.docs-v3-main .docs-v2-download { border-color: #d8dee4; }
.docs-v3-main .docs-v2-app-icon { background: #20252b; color: #fff; }
.docs-v3-main .docs-v2-download a { border-color: #b8c8d9; background: #f4f7fa; color: #0969da; }
.docs-v3-main .docs-v2-code { border-color: #30363d; background: #161b22; }
.docs-v3-main .docs-v2-code > div { border-color: #30363d; color: #b6bec8; }
.docs-v3-main .docs-v2-code button { border-color: #59636e; color: #e6edf3; }
.docs-v3-main .docs-v2-code pre { color: #e6edf3; }
.docs-v3-main .docs-v2-group { background: #eef5ff; color: #0969da; }
.docs-v3-main .docs-v2-table { border-collapse: collapse; border-radius: 0; font-size: 14px; }
.docs-v3-main .docs-v2-table th, .docs-v3-main .docs-v2-table td { padding: 14px 16px; border: 1px solid #d8dee4; }
.docs-v3-main .docs-v2-table th { background: #f6f7f8; color: #4f5962; }
.docs-v3-main .docs-v2-table td { color: #30363b; }
.docs-v3-main .docs-guide-figure { border-color: #d8dee4; border-radius: 4px; box-shadow: none; }
.docs-v3-main .docs-guide-figure figcaption, .docs-v3-main .docs-v2-download span { color: #69727a; font-size: 13px; }
.docs-v3-main .docs-v2-faq { border-color: #d8dee4; }
.docs-v3-main .docs-v2-faq details { border-color: #d8dee4; }
.docs-v3-main .docs-v2-faq summary { padding: 17px 34px 17px 4px; position: relative; color: #252b31; font-size: 14px; list-style: none; }
.docs-v3-main .docs-v2-faq summary::-webkit-details-marker { display: none; }
.docs-v3-main .docs-v2-faq summary::after { content: "+"; position: absolute; top: 14px; right: 5px; color: #69727a; font-size: 21px; font-weight: 400; line-height: 1; transition: transform .24s ease; }
.docs-v3-main .docs-v2-faq details[open] summary::after { transform: rotate(45deg); }
.docs-faq-answer { overflow: hidden; }
.docs-v3-main .docs-v2-faq .docs-faq-answer p { padding: 0 4px 17px; }
.docs-error-table-wrap { width: 100%; margin: 18px 0; overflow-x: auto; border: 1px solid #d8dee4; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(31,41,51,.04); }
.docs-v3-main .docs-error-table { margin: 0; overflow: visible; border: 0; border-radius: 0; }
.docs-v3-main .docs-error-table th, .docs-v3-main .docs-error-table td { border-width: 0 0 1px; }
.docs-v3-main .docs-error-table thead th:first-child { border-top-left-radius: 7px; }
.docs-v3-main .docs-error-table thead th:last-child { border-top-right-radius: 7px; }
.docs-v3-main .docs-error-table tbody tr:last-child td { border-bottom: 0; }
.docs-v3-main .docs-error-table tbody tr:last-child td:first-child { border-bottom-left-radius: 7px; }
.docs-v3-main .docs-error-table tbody tr:last-child td:last-child { border-bottom-right-radius: 7px; }
.docs-v3-main .docs-error-table tbody tr { transition: background-color .18s ease; }
.docs-v3-main .docs-error-table tbody tr:hover { background: #f8fafc; }
.docs-v3-main .docs-error-table th:first-child, .docs-v3-main .docs-error-table td:first-child { width: 92px; white-space: nowrap; }
.docs-v3-main .docs-error-table td { vertical-align: top; line-height: 1.7; }
.docs-v3-main .docs-error-table td b { margin-right: 5px; color: #171a1c; }
.docs-v3-main .docs-v2-qr { display: grid; grid-template-columns: repeat(2, minmax(260px, 320px)); gap: 32px; align-items: start; }
.docs-v3-main .docs-v2-qr img { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-color: #d8dee4; border-radius: 8px; background: #f7f8fa; }
.docs-v3-main .docs-v2-qr figcaption { color: #4f5962; font-size: 14px; }
.docs-page-turn { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docs-page-turn button { min-height: 74px; padding: 13px 18px; display: grid; gap: 5px; border: 1px solid #d8dee4; border-radius: 6px; background: #fff; color: #0969da; text-align: left; cursor: pointer; }
.docs-page-turn button:last-child { text-align: right; }
.docs-page-turn button:hover { border-color: #8c959f; background: #f6f8fa; }
.docs-page-turn small { color: #69727a; font-size: 12px; }
.docs-page-turn strong { font-size: 14px; }

@media (max-width: 800px) {
  .docs-site-header { height: 62px; padding: 0 14px; }
  .docs-site-brand { font-size: 15px; }
  .docs-site-actions > a { display: none; }
  .docs-menu-button { display: block; }
  .docs-v3-shell { padding-top: 62px; display: block; }
  .docs-v3-sidebar { width: min(84vw, 310px); inset: 62px auto 0 0; transform: translateX(-102%); transition: transform .24s ease; box-shadow: 14px 0 34px rgba(20,28,34,.12); }
  .docs-menu-open { overflow: hidden; }
  .docs-menu-open .docs-v3-sidebar { transform: translateX(0); }
  .docs-sidebar-backdrop { position: fixed; inset: 62px 0 0; z-index: 40; border: 0; background: rgba(18,25,31,.26); }
  .docs-menu-open .docs-sidebar-backdrop { display: block; }
  .docs-v3-main { width: 100%; padding: 20px 18px 54px; }
  .docs-breadcrumb { gap: 8px; overflow: hidden; white-space: nowrap; }
  .docs-v3-main .docs-v2-heading { margin: 17px 0 24px; }
  .docs-v3-main .docs-v2-heading h1 { font-size: 31px; }
  .docs-v3-main .docs-v2-heading p { font-size: 14px; }
  .docs-v3-main .docs-v2-article h2 { font-size: 22px; }
  .docs-v3-main .docs-v2-article p, .docs-v3-main .docs-v2-article li { font-size: 14px; }
  .docs-v3-main .docs-v2-info { align-items: flex-start; flex-direction: column; gap: 8px; }
  .docs-v3-main .docs-v2-table { display: block; overflow-x: auto; }
  .docs-v3-main .docs-v2-qr { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .docs-v3-main .docs-v2-qr figure { width: min(82vw, 300px); }
  .docs-v3-main .docs-v2-qr img { width: 100%; height: auto; }
  .docs-page-turn { grid-template-columns: 1fr; }
}
.developer-mode-shell { display: grid; gap: 20px; }
.developer-endpoints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.developer-endpoints > div { min-width: 0; padding: 16px; display: grid; gap: 8px; border: 1px solid #dbe6df; border-radius: 8px; background: #f8fbf9; }
.developer-endpoints span { color: #23362b; font-size: 13px; font-weight: 800; }
.developer-endpoints code { overflow-wrap: anywhere; color: #126642; font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.developer-endpoints small { color: #6d7d73; font-size: 11px; line-height: 1.55; }
.developer-key-create { margin-top: 2px; }
.verified-badge, .admin-badge { padding: 7px 11px; border: 1px solid #cde5d8; background: #edf8f2; color: #156944; }
.panel, .data-table-wrap, .tool-section, .price-banner, .recharge-panel, .profile-panel { border-color: var(--relay-line); border-radius: var(--relay-radius); box-shadow: var(--relay-shadow); }
.tool-section { padding: 22px; border: 1px solid var(--relay-line); background: #fff; }
.section-bar { margin-bottom: 18px; }
.section-bar h2 { margin: 0; font-size: 18px; }
.section-bar p { margin: 6px 0 0; color: var(--relay-muted); font-size: 11px; }

/* Overview */
.usage-overview { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 292px; overflow: hidden; border: 1px solid #d7e3dc; border-radius: 16px; background: #fff; box-shadow: var(--relay-shadow); }
.usage-overview-main { min-width: 0; padding: 23px; }
.usage-section-heading, .analytics-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.usage-section-heading h2, .analytics-heading h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.usage-section-heading p, .analytics-heading p { margin: 6px 0 0; color: var(--relay-muted); font-size: 10px; }
.usage-live { display: inline-flex; align-items: center; gap: 6px; color: #4c6156; font-size: 10px; font-weight: 700; }
.usage-live i, .usage-balance-status em i { width: 6px; height: 6px; border-radius: 50%; background: #10a06b; box-shadow: 0 0 0 4px rgba(16, 160, 107, .09); }
.usage-metric-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.usage-metric { min-width: 0; min-height: 160px; padding: 15px 15px 11px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce5e0; border-radius: 14px; background: #fff; }
.usage-metric-label { display: flex; align-items: center; gap: 8px; color: #68746d; font-size: 10px; font-weight: 700; }
.metric-symbol { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-style: normal; }
.metric-symbol.spend { background: #edf6ff; color: #3695e7; }
.metric-symbol.history { background: #e9f8f6; color: #0a9f99; }
.metric-symbol.requests { background: #f1efff; color: #7573e8; }
.usage-metric > strong { margin-top: 14px; color: #1c2922; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.usage-metric > small { margin-top: 7px; color: #9aa39e; font-size: 9px; }
.usage-sparkline { height: 42px; margin-top: auto; }
.usage-sparkline svg { width: 100%; height: 100%; overflow: visible; }
.sparkline-path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: chart-line-draw .9s .15s ease forwards; }
.usage-balance { padding: 23px 20px 17px; display: flex; flex-direction: column; border-left: 1px solid #cfe1d8; background: linear-gradient(160deg, #eef8f6 0%, #eef5f8 100%); }
.usage-balance-status { display: flex; align-items: center; justify-content: space-between; color: #66736d; font-size: 10px; }
.usage-balance-status em { display: inline-flex; align-items: center; gap: 7px; color: #3e5a4c; font-size: 9px; font-style: normal; }
.usage-balance > strong { margin-top: 18px; color: #17251e; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.usage-balance-facts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.usage-balance-facts div { min-width: 0; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.55); }
.usage-balance-facts span, .usage-balance-facts b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage-balance-facts span { color: #7b8780; font-size: 8px; }
.usage-balance-facts b { margin-top: 5px; color: #36463d; font-size: 10px; }
.usage-wallet-button { min-height: 36px; margin-top: auto; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px; background: #18895d; color: #fff; font-size: 11px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.usage-wallet-button:hover { background: #11754d; transform: translateY(-1px); }
.usage-wallet-button b { font-size: 17px; font-weight: 500; }

/* Overview utility cards and analytics dashboard */
.overview-utility-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
.overview-card, .recent-usage-panel, .platform-board { overflow: hidden; border: 1px solid var(--relay-line); border-radius: var(--relay-radius); background: #fff; box-shadow: var(--relay-shadow); }
.overview-card { min-height: 260px; }
.overview-card header, .recent-usage-panel > header, .platform-board > header { min-height: 68px; padding: 15px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e7ebe9; }
.overview-card header h2, .recent-usage-panel h2, .platform-board h2 { margin: 0; font-size: 15px; }
.overview-card header p, .recent-usage-panel header p, .platform-board header p { margin: 4px 0 0; color: var(--relay-muted); font-size: 10px; }
.overview-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; font-size: 14px; font-weight: 800; }
.overview-icon.blue { background: #eaf4ff; color: #3476af; }.overview-icon.gold { background: #fff4db; color: #c98700; }.overview-icon.green { background: #edf7e8; color: #638c45; }.overview-icon.rose { background: #fff0f2; color: #d66478; }
.api-info-card { grid-column: span 4; }.announcement-card { grid-column: span 5; }.runtime-card { grid-column: span 3; }.faq-card { grid-column: span 4; }
.api-info-body, .announcement-body, .runtime-body { padding: 20px; }.api-info-body > strong, .announcement-body > strong { display: block; font-size: 12px; }.api-info-body code { margin-top: 10px; padding: 9px 10px; display: block; overflow: hidden; border-radius: 9px; background: #f5f7f6; color: #506057; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.api-info-body > div { margin-top: 16px; display: flex; gap: 9px; }.api-info-body a, .announcement-body a, .runtime-body a { color: #14734c; font-size: 11px; font-weight: 800; }
.announcement-body p { margin: 10px 0 16px; color: #6f7b74; font-size: 11px; line-height: 1.65; }.runtime-body { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.runtime-body > i { width: 10px; height: 10px; border-radius: 50%; background: #19a166; box-shadow: 0 0 0 7px rgba(25,161,102,.11); }.runtime-body strong { margin-top: 17px; font-size: 13px; }.runtime-body span { margin-top: 7px; color: #7c8781; font-size: 10px; }.runtime-body a { margin-top: 16px; }
.faq-card details { padding: 0 18px; border-bottom: 1px solid #edf0ee; }.faq-card details:last-child { border-bottom: 0; }.faq-card summary { min-height: 49px; display: flex; align-items: center; cursor: pointer; font-size: 12px; font-weight: 700; }.faq-card details p { margin: -2px 0 14px; color: #718078; font-size: 10px; line-height: 1.55; }
.recent-usage-panel { margin-top: 14px; }.recent-usage-panel > header, .platform-board > header { justify-content: space-between; }.recent-usage-panel > header a { color: #14734c; font-size: 11px; font-weight: 800; }.recent-usage-list { padding: 10px 14px 14px; display: grid; gap: 8px; }.recent-usage-list article { min-height: 64px; padding: 10px 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-radius: 11px; background: #f7f9f8; }.recent-usage-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #d9faf1; color: #079d87; }.recent-usage-list strong, .recent-usage-list small { display: block; }.recent-usage-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.recent-usage-list small { margin-top: 4px; color: #829089; font-size: 10px; }.recent-usage-list article > div:last-child { text-align: right; }.recent-usage-list b { color: #069c55; font-size: 12px; }.overview-empty { padding: 30px; color: #8a9690; font-size: 11px; text-align: center; }
.board-metric-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dce2df; border-radius: 12px; background: #fff; box-shadow: var(--relay-shadow); }.board-metric-grid article { min-height: 124px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; border-right: 1px solid #e4e8e6; }.board-metric-grid article:last-child { border-right: 0; }.board-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 13px; font-weight: 800; }.board-icon.blue { background: #e8f5fd; color: #2495d7; }.board-icon.mint { background: #e8f8ef; color: #17a96d; }.board-icon.pink { background: #fff0fb; color: #dc67d6; }.board-icon.cyan { background: #e6faf9; color: #11a4af; }.board-icon.gold { background: #fff6df; color: #d79400; }.board-metric-grid small, .board-metric-grid em { display: block; color: #768078; font-size: 10px; font-style: normal; }.board-metric-grid strong { margin-top: 17px; display: block; overflow: hidden; color: #2a2d2b; font-size: 22px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }.board-metric-grid em { margin-top: 8px; color: #a2aaa5; }
.platform-board { margin-top: 16px; }.platform-board > header > span { color: #7d8882; font-size: 11px; }.platform-board-grid { padding: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.platform-board-grid article { min-height: 130px; padding: 14px; border: 1px solid #dde4e0; border-radius: 10px; background: #fff; }.platform-board-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.platform-board-grid article > div strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.platform-board-grid article > div b { flex: 0 0 auto; color: #7a3cf1; font-size: 11px; font-weight: 600; }.platform-board-grid dl { margin: 12px 0 0; display: grid; gap: 6px; }.platform-board-grid dl div { display: flex; justify-content: space-between; gap: 10px; color: #718079; font-size: 10px; }.platform-board-grid dt, .platform-board-grid dd { margin: 0; }.platform-board-grid dd { color: #334039; font-variant-numeric: tabular-nums; }

.analytics-panel { margin-top: 14px; overflow: hidden; border: 1px solid var(--relay-line); border-radius: 16px; background: #fff; box-shadow: var(--relay-shadow); }
.analytics-heading { min-height: 72px; padding: 16px 20px; border-bottom: 1px solid #e5e9e7; }
.analytics-heading > div:first-child { min-width: 0; display: flex; align-items: center; gap: 10px; }
.analytics-heading > strong { flex: 0 0 auto; color: var(--relay-green); font-size: 18px; font-variant-numeric: tabular-nums; }
.analytics-heading h2 small { margin-left: 6px; color: #7d8882; font-size: 10px; font-weight: 500; }
.analytics-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 13px; }
.analytics-icon.spend { background: #fff6dc; color: #d99400; }
.analytics-icon.requests { background: #faeefe; color: #bd4bc4; }
.analytics-chart { min-height: 270px; position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #cbd5cf transparent; }
.analytics-chart > svg { width: 100%; min-width: 900px; height: auto; display: block; overflow: visible; }
.chart-grid-line { stroke: #e8ecea; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #84908a; font-size: 10px; letter-spacing: 0; }
.chart-bar { transform-box: fill-box; transform-origin: center bottom; transition: y .65s cubic-bezier(.2,.8,.2,1), height .65s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
.chart-line { vector-effect: non-scaling-stroke; }
.chart-hit-area { cursor: crosshair; }
.analytics-tooltip { width: 214px; max-height: 260px; padding: 12px; position: absolute; z-index: 4; opacity: 0; pointer-events: none; overflow: hidden; border: 1px solid #e2e6e4; border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(20,32,25,.14); transform: translate(-50%, -92%); transition: opacity .14s ease, transform .14s ease; }
.analytics-tooltip.visible { opacity: 1; transform: translate(-50%, -100%); }
.analytics-tooltip > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.analytics-tooltip > div { min-height: 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #606c66; font-size: 9px; }
.analytics-tooltip > div span { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-tooltip > div i { width: 7px; height: 7px; flex: 0 0 auto; }
.analytics-tooltip > div b { flex: 0 0 auto; color: #1e2923; font-size: 10px; }
.analytics-tooltip .tooltip-total { padding-bottom: 5px; margin-bottom: 4px; border-bottom: 1px solid #edf0ee; }
.analytics-legend { min-height: 40px; padding: 7px 20px 12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 15px; }
.analytics-legend span { max-width: 180px; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; color: #68746e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-legend i { width: 8px; height: 8px; flex: 0 0 auto; }
.analytics-tabs { padding: 3px; display: flex !important; gap: 2px !important; flex: 0 0 auto; border: 1px solid #dce3df; border-radius: 11px; background: #f8faf9; }
.analytics-tabs button { min-height: 30px; padding: 0 12px; position: relative; border: 0; border-radius: 8px; background: transparent; color: #6b7770; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; transition: color .18s ease, background .18s ease, transform .18s ease; }
.analytics-tabs button:hover { color: #1a6f4d; }
.analytics-tabs button.active { background: #fff; color: #186c4c; box-shadow: 0 1px 5px rgba(26,43,34,.09); }
.analysis-view { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.analysis-view.active { opacity: 1; transform: translateY(0); }
.analysis-view.leaving { opacity: 0; transform: translateY(-6px); }
.model-distribution { min-height: 360px; padding: 34px clamp(24px, 6vw, 90px); display: grid; grid-template-columns: minmax(200px, .7fr) minmax(320px, 1.3fr); align-items: center; gap: 64px; }
.distribution-chart { width: 210px; height: 210px; position: relative; justify-self: center; border-radius: 50%; transform: rotate(-90deg) scale(.9); animation: distribution-in .55s ease forwards; }
.distribution-chart::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: #fff; }
.distribution-chart > div { position: absolute; inset: 34px; z-index: 1; display: grid; place-content: center; text-align: center; transform: rotate(90deg); }
.distribution-chart strong, .distribution-chart span { display: block; }
.distribution-chart strong { font-size: 25px; }
.distribution-chart span { margin-top: 4px; color: var(--relay-muted); font-size: 9px; }
.distribution-list { display: grid; gap: 10px; }
.distribution-list > div { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0ee; color: #4f5c55; font-size: 10px; }
.distribution-list span { min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.distribution-list i { width: 9px; height: 9px; flex: 0 0 auto; }
.distribution-list b { flex: 0 0 auto; color: #1e2923; }
.model-ranking { min-height: 360px; padding: 18px 22px 28px; }
.ranking-list { display: grid; gap: 5px; }
.ranking-row { min-height: 54px; display: grid; grid-template-columns: 32px minmax(220px, 1fr) 110px 110px; align-items: center; gap: 14px; border-bottom: 1px solid #edf0ee; }
.rank-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #f1f4f2; color: #68736d; font-size: 10px; }
.rank-number.rank-1 { background: #fff3ce; color: #b37700; }
.rank-number.rank-2 { background: #eef2f4; color: #60727c; }
.rank-number.rank-3 { background: #fff0e3; color: #b8692f; }
.ranking-model { min-width: 0; }
.ranking-model b { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-model > span { height: 4px; margin-top: 7px; display: block; overflow: hidden; border-radius: 2px; background: #edf0ee; }
.ranking-model > span i { width: var(--rank-width); height: 100%; display: block; border-radius: inherit; background: #1a9464; animation: ranking-grow .55s ease both; }
.ranking-row > div:not(.ranking-model) { text-align: right; }
.ranking-row > div:not(.ranking-model) strong, .ranking-row > div:not(.ranking-model) span { display: block; }
.ranking-row > div:not(.ranking-model) strong { font-size: 10px; }
.ranking-row > div:not(.ranking-model) span { margin-top: 3px; color: #929c97; font-size: 8px; }
.analytics-empty { min-height: 300px; display: grid; place-items: center; color: #8b9690; font-size: 11px; }

@keyframes chart-line-draw { to { stroke-dashoffset: 0; } }
@keyframes distribution-in { to { transform: rotate(-90deg) scale(1); } }
@keyframes ranking-grow { from { width: 0; } }
.panel-heading { padding: 18px 18px 12px; }
.panel-heading h2 { font-size: 16px; }
.panel-heading p { margin-top: 4px; font-size: 10px; }
.recent-item { min-height: 55px; padding: 10px 16px; }

/* API keys */
.api-section { margin-top: 22px; }
.api-endpoint-bar { min-height: 62px; margin-bottom: 18px; padding: 10px 12px 10px 16px; border: 1px solid #d5e4dc; border-radius: 12px; background: #f3f8f5; }
.api-endpoint-bar code { font-size: 12px; }
.api-create-form { padding: 0; border: 0; background: transparent; }
.route-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.route-choice { min-height: 94px; padding: 14px; border-radius: 12px; background: #f8faf9; }
.route-group-option input:checked + .route-choice { border-color: #55a780; background: #edf8f2; box-shadow: 0 0 0 3px rgba(19, 122, 80, .08); }
.failover-create { margin: 14px 0; padding: 16px; border-radius: 12px; background: #f8f9fa; }
.fallback-options { gap: 7px; }
.fallback-options label { border-radius: 9px; }
.api-create-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.api-create-row input { min-height: 44px; border-radius: 11px; }
.api-key-table { margin-top: 18px; border: 1px solid var(--relay-line); box-shadow: none; }
.data-table th { padding: 11px 13px; background: #f7f9f8; font-size: 10px; }
.data-table td { padding: 13px; }
.failover-key-card { border-radius: 12px; }

/* Model market */
.model-market-shell { margin-top: 22px; }
.model-market-toolbar { position: sticky; top: 76px; z-index: 8; padding: 13px; grid-template-columns: minmax(260px, .58fr) minmax(0, 1.42fr); border-radius: 13px; box-shadow: var(--relay-shadow); }
.model-market-search input { height: 40px; border-radius: 10px; }
.model-market-tabs { border-radius: 10px; }
.model-market-summary { margin: 10px 0 13px; padding: 10px 4px; }
.model-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model-market-card { min-height: 244px; padding: 16px; border-radius: 13px; box-shadow: none; }
.model-market-card:hover { box-shadow: var(--relay-shadow); }
.model-rate-grid { gap: 7px; }
.model-rate-grid div { border-radius: 9px; background: #f7f9f8; }

/* Leaderboard and logs */
.leaderboard-shell { margin-top: 22px; border-radius: var(--relay-radius); overflow: hidden; }
.leaderboard-tabs { margin-bottom: 12px; border-radius: 11px; }
.leaderboard-summary { padding: 21px 22px; }
.leaderboard-settlement { padding: 13px 22px; }
.leaderboard-podium { padding: 22px; }
.podium-card { min-height: 166px; border-radius: 12px; box-shadow: none; }
.leaderboard-list { margin: 0 22px 22px; }
.logs-main { padding: 18px clamp(16px, 2vw, 28px) 28px; }
.usage-log-shell { min-height: calc(100vh - 110px); border-radius: var(--relay-radius); box-shadow: var(--relay-shadow); }
.usage-log-filters { border-radius: 12px; }
.usage-log-filters input, .usage-log-filters select, .log-date-range, .log-reset { border-radius: 9px; }
.usage-log-table { border-radius: 11px; }
.log-key-chip, .log-model-chip, .usage-log-table .log-cost { border-radius: 7px; }

/* Channel status */
.channel-status-page { margin-top: 22px; padding: 22px; min-height: calc(100vh - 190px); border: 1px solid #d9e7e2; border-radius: 16px; background: linear-gradient(135deg, #eefaf8 0%, #f8fbfc 52%, #f3f6f8 100%); }
.channel-status-toolbar { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.channel-status-periods { padding: 3px; display: flex; gap: 2px; border: 1px solid #e0e8e5; border-radius: 11px; background: rgba(255,255,255,.86); }
.channel-status-periods button { min-width: 54px; min-height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #7b8782; font-size: 11px; font-weight: 750; transition: color .18s ease, background .18s ease, transform .18s ease; }
.channel-status-periods button:hover { color: #176d4b; transform: translateY(-1px); }
.channel-status-periods button.active { background: #fff; color: #1b2922; box-shadow: 0 2px 7px rgba(25,46,36,.1); }
.channel-status-actions { display: flex; align-items: center; gap: 9px; }
.channel-status-window-note { margin: 8px 0 0; color: #78877f; font-size: 10px; }
.channel-overall { min-height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: #d9f8e9; color: #138254; font-size: 10px; font-weight: 850; }
.channel-overall i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.channel-overall.is-degraded { background: #fff1c9; color: #b27300; }
.channel-overall.is-error { background: #ffe2e2; color: #bc3c3c; }
.channel-overall.is-unknown { background: #edf1ef; color: #7c8882; }
.channel-refresh-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dfe8e4; border-radius: 10px; background: rgba(255,255,255,.9); color: #687871; font-size: 18px; transition: color .18s ease, transform .18s ease, background .18s ease; }
.channel-refresh-button:hover { background: #fff; color: #14774f; transform: rotate(-20deg); }
.channel-refresh-button.is-refreshing { animation: channel-refresh-spin .75s linear infinite; }
.channel-refresh-countdown { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid #dfe8e4; border-radius: 10px; background: rgba(255,255,255,.9); color: #687871; font-size: 10px; font-weight: 700; }
@keyframes channel-refresh-spin { to { transform: rotate(360deg); } }
.channel-status-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.channel-status-card { min-width: 0; min-height: 410px; padding: 20px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e1e9e6; border-radius: 15px; background: rgba(255,255,255,.78); box-shadow: 0 7px 20px rgba(30,61,52,.06); }
.channel-status-card > header { min-height: 58px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.channel-family-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #d9f8ea; color: #1b9d70; font-size: 16px; font-weight: 850; }
.channel-status-card:nth-child(3n + 2) .channel-family-icon { background: #fff1cc; color: #e48b12; }
.channel-status-card:nth-child(3n + 3) .channel-family-icon { background: #eaf0ff; color: #5877b6; }
.channel-status-card h2 { margin: 0; overflow: hidden; color: #17241d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.channel-status-card header p { min-width: 0; margin: 5px 0 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: #8a9790; font-size: 9px; }
.channel-status-card header p b { padding: 3px 6px; border-radius: 6px; background: #d6f7e8; color: #148257; font-size: 8px; white-space: nowrap; }
.channel-status-card header p code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-status-card header em { padding: 5px 8px; border-radius: 999px; background: #d5f7e7; color: #118455; font-size: 9px; font-style: normal; font-weight: 850; white-space: nowrap; }
.channel-status-card.is-degraded header em { background: #fff0c7; color: #ae7200; }
.channel-status-card.is-error header em { background: #ffe1e1; color: #b53d3d; }
.channel-status-card.is-unknown header em { background: #edf1ef; color: #7b8781; }
.channel-latency-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.channel-latency-grid > div { min-width: 0; min-height: 84px; padding: 13px; border: 1px solid #edf1f0; border-radius: 13px; background: rgba(255,255,255,.5); }
.channel-latency-grid span { display: block; color: #a0aaa5; font-size: 9px; font-weight: 700; }
.channel-latency-grid strong { margin-top: 17px; color: #1d2a22; font-size: 17px; font-variant-numeric: tabular-nums; }
.channel-latency-grid small { margin-left: 3px; color: #9aa6a0; font-size: 9px; }
.channel-probability { margin-top: 20px; padding: 14px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid #edf1f0; border-bottom: 1px solid #edf1f0; }
.channel-probability span { color: #9ba6a0; font-size: 10px; }
.channel-probability strong { color: #2eb42a; font-size: 27px; font-variant-numeric: tabular-nums; }
.channel-status-card.is-degraded .channel-probability strong { color: #d89a08; }
.channel-status-card.is-error .channel-probability strong { color: #d14b42; }
.channel-status-card.is-unknown .channel-probability strong { color: #85918b; }
.channel-records-heading { margin-top: 17px; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; color: #9aa6a0; font-size: 9px; font-weight: 700; }
.channel-records-heading small { font-size: 8px; }
.channel-records { width: 100%; min-width: 0; min-height: 27px; margin-top: 8px; display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); align-items: end; gap: 2px; overflow: hidden; }
.channel-records i { min-width: 0; width: 100%; height: 25px; display: block; border-radius: 1px; background: #10b77d; }
.channel-records i.is-warning { height: 18px; background: #f0a000; }
.channel-records i.is-error { height: 12px; background: #ed4d4d; }
.channel-records i.is-unknown { height: 9px; background: #e3eae6; }
.channel-status-empty { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; color: #86928c; font-size: 12px; }

/* Recharge, referral, profile and Pro */
.recharge-layout { margin-top: 22px; grid-template-columns: minmax(300px, .72fr) minmax(400px, 1.28fr); gap: 12px; }
.recharge-payment-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recharge-method-card { display: flex; flex-direction: column; }
.recharge-method-card .payment-note { margin-top: auto; }
.manual-payment-mark, .catfk-payment-mark { min-height: 180px; margin: 22px 0 18px; border-radius: 20px; display: grid; place-content: center; text-align: center; }
.manual-payment-mark { border: 1px solid #d8e4ff; background: #f4f7ff; }
.manual-payment-mark strong { color: #365fc7; font-size: 32px; }
.manual-payment-mark span, .catfk-payment-mark span { margin-top: 7px; color: #66738c; font-size: 12px; }
.catfk-payment-mark { border: 1px solid #d9e9df; background: #f4faf6; }
.catfk-payment-mark strong { color: #287750; font-size: 27px; }
.recharge-link-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recharge-contact-button, .catfk-payment-button { width: 100%; justify-content: center; text-decoration: none; }
.recharge-redeem-row { margin-top: 14px; }
.payment-panel, .redeem-panel { padding: 28px; border-radius: var(--relay-radius); box-shadow: none; }
.payment-panel { background: #17211c; }
.payment-qr { max-width: 210px; border-radius: 12px; }
.redeem-form input { border-radius: 11px; }
.referral-panel { margin-top: 12px; padding: 28px; grid-template-columns: minmax(280px, .72fr) minmax(440px, 1.28fr); border-radius: var(--relay-radius); box-shadow: none; }
.referral-link-bar, .referral-stats { border-radius: 11px; }
.profile-panel { margin-top: 22px; padding: 30px; grid-template-columns: 112px minmax(0, 1fr); border-radius: var(--relay-radius); box-shadow: none; }
.api-pro-shell { margin-top: 22px; }
.api-pro-hero { padding: 24px; border-radius: var(--relay-radius); background: var(--relay-gold-soft); }
.api-pro-grid { margin-top: 12px; gap: 10px; }
.api-pro-grid article { border-radius: 12px; }

/* Marketing */
body:not(.console-page) .site-header { height: 64px; padding-inline: max(4%, calc((100% - 1240px) / 2)); }
.hero { min-height: min(760px, calc(86vh - 64px)); }
.hero-content { width: min(1240px, 92%); }
.hero h1 { max-width: 780px; font-size: 66px; }
.hero-price-line { border-radius: 13px; }
.signal-band { padding-inline: max(4%, calc((100% - 1240px) / 2)); }
.price-advantage-band, .content-band, .capability-band, .trust-band, .faq-band, .quickstart-band { padding-left: max(4%, calc((100% - 1240px) / 2)); padding-right: max(4%, calc((100% - 1240px) / 2)); }
.price-comparison, .console-preview, .code-window { border-radius: 15px; }
.public-route-price, .capability-list article, .trust-grid article, .faq-item { border-radius: 12px; }
.faq-answer > div { border-radius: 0 0 12px 12px; }

@media (min-width: 1460px) {
  .model-market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route-group-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .api-info-card, .announcement-card { grid-column: span 6; }
  .runtime-card, .faq-card { grid-column: span 6; }
  .board-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-metric-grid article:nth-child(3) { border-right: 0; }
  .board-metric-grid article:nth-child(n+4) { border-top: 1px solid #e4e8e6; }
  .platform-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-overview { grid-template-columns: 1fr; }
  .usage-balance { min-height: 190px; border-top: 1px solid #cfe1d8; border-left: 0; }
  .usage-wallet-button { margin-top: 16px; }
  .analytics-heading-tabs { align-items: flex-start; flex-direction: column; }
  .route-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recharge-layout { grid-template-columns: 1fr 1fr; }
  .recharge-payment-options { grid-template-columns: 1fr 1fr; }
  .channel-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .console-page .site-header { height: 58px; padding: 0 14px; }
  .console-page > main { padding-top: 58px; }
  .console-page .top-nav { gap: 12px; }
  .console-layout { display: block; min-height: calc(100vh - 58px); background: var(--relay-bg); }
  .side-nav { width: 100%; height: auto; min-height: 0; position: sticky; left: auto; top: 58px; z-index: 20; padding: 8px 12px; display: block; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--relay-line); }
  .side-nav-links { width: max-content; min-height: auto; display: flex; flex: 0 0 auto; gap: 4px; overflow: visible; }
  .side-label, .account-chip { display: none; }
  .side-nav a { min-height: 38px; padding: 0 11px; white-space: nowrap; }
  .side-nav a.active { box-shadow: none; }
  .workspace-active-indicator { box-shadow: inset 0 -2px var(--relay-green); }
  .console-main { width: 100%; min-height: 0; margin-left: 0; padding: 22px 14px 44px; }
  .console-heading { min-height: 74px; align-items: flex-start; }
  .console-heading h1 { font-size: 24px; }
  .dashboard-subtitle { max-width: 270px; line-height: 1.55; }
  .docs-button { width: 40px; height: 40px; }
  .docs-shell { padding: 30px 16px 52px; }
  .docs-hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .docs-hero h1 { font-size: 31px; }
  .docs-endpoint { align-items: flex-start; flex-direction: column; gap: 11px; }
  .docs-layout { margin-top: 24px; display: block; }
  .docs-toc { margin-bottom: 24px; padding-bottom: 8px; position: static; display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid #dfe6e2; }
  .docs-toc a { padding: 7px 9px; flex: 0 0 auto; border-bottom: 2px solid transparent; border-left: 0; }
  .docs-toc a:hover { border-color: var(--relay-green); transform: none; }
  .docs-section { padding: 24px 0; }
  .download-row { align-items: flex-start; flex-direction: column; }
  .docs-note-grid { grid-template-columns: 1fr; }
  .docs-qr-grid { justify-content: space-between; gap: 10px; }
  .docs-qr-grid img { width: min(42vw, 148px); height: min(42vw, 148px); }
  .docs-v2-shell { width: min(100% - 28px, 620px); padding: 28px 0 54px; }
  .docs-v2-heading { margin-bottom: 25px; }
  .docs-v2-heading h1 { font-size: 25px; }
  .docs-v2-layout { display: flex; flex-direction: column; gap: 0; }
  .docs-v2-article { width: 100%; order: 2; }
  .docs-v2-toc { width: 100%; margin-bottom: 28px; padding: 11px; position: static; order: 1; box-shadow: none; }
  .docs-v2-toc strong { margin: 0 5px 7px; }
  .docs-v2-toc nav { display: flex; overflow-x: auto; }
  .docs-v2-toc a { flex: 0 0 auto; }
  .docs-v2-article section { padding-bottom: 29px; margin-bottom: 29px; }
  .docs-v2-article h2 { font-size: 19px; }
  .docs-v2-article h3 { margin-top: 22px; font-size: 14px; }
  .docs-v2-article p, .docs-v2-article li { font-size: 12px; }
  .docs-v2-info { align-items: flex-start; flex-direction: column; gap: 7px; }
  .docs-v2-download { align-items: flex-start; flex-wrap: wrap; }
  .docs-v2-download a { margin-left: 50px; }
  .docs-v2-config-card dl div { grid-template-columns: 77px minmax(0, 1fr); }
  .docs-v2-table th { width: 90px; }
  .docs-v2-code pre { padding: 13px; font-size: 10px; }
  .docs-v2-qr img { width: min(40vw, 145px); height: min(40vw, 145px); }
  .developer-endpoints { grid-template-columns: 1fr; }
  .verified-badge { margin-top: 2px; font-size: 9px; }
  .usage-overview { margin-top: 14px; border-radius: 13px; }
  .overview-utility-grid { margin-top: 14px; grid-template-columns: 1fr; gap: 10px; }
  .api-info-card, .announcement-card, .runtime-card, .faq-card { grid-column: auto; }
  .overview-card { min-height: 0; }
  .runtime-body { min-height: 180px; }
  .recent-usage-list article { padding: 10px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; }
  .recent-usage-list article > div:last-child { max-width: 105px; }
  .board-metric-grid { margin-top: 14px; grid-template-columns: 1fr; }
  .board-metric-grid article { min-height: 105px; border-top: 1px solid #e4e8e6; border-right: 0; }
  .board-metric-grid article:first-child { border-top: 0; }
  .board-metric-grid strong { margin-top: 11px; font-size: 20px; }
  .platform-board-grid { grid-template-columns: 1fr; }
  .usage-overview-main { padding: 17px; }
  .usage-metric-grid { grid-template-columns: 1fr; }
  .usage-metric { min-height: 142px; }
  .usage-balance { min-height: 205px; padding: 18px; }
  .analytics-panel { margin-top: 10px; border-radius: 13px; }
  .analytics-heading { min-height: 68px; padding: 14px 16px; }
  .analytics-heading > strong { font-size: 15px; }
  .analytics-heading-tabs { gap: 12px; }
  .analytics-tabs { width: 100%; overflow-x: auto; }
  .analytics-tabs button { flex: 1 0 auto; }
  .analytics-chart { min-height: 250px; }
  .analytics-chart > svg { min-width: 900px; }
  .analytics-legend { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .model-distribution { padding: 28px 20px; grid-template-columns: 1fr; gap: 28px; }
  .distribution-chart { width: 180px; height: 180px; }
  .model-ranking { overflow-x: auto; }
  .ranking-list { min-width: 650px; }
  .tool-section { margin-top: 16px; padding: 15px; }
  .api-endpoint-bar { align-items: stretch; flex-direction: column; }
  .api-endpoint-bar .button { width: 100%; }
  .route-group-grid { grid-template-columns: 1fr; }
  .api-create-row { grid-template-columns: 1fr; }
  .api-create-row .button { width: 100%; }
  .model-market-toolbar { top: 105px; grid-template-columns: 1fr; padding: 11px; }
  .model-market-grid { grid-template-columns: 1fr; }
  .leaderboard-list { margin: 0 12px 12px; }
  .channel-status-page { margin-top: 14px; padding: 12px; border-radius: 13px; }
  .channel-status-toolbar { align-items: stretch; flex-direction: column; }
  .channel-status-periods, .channel-status-actions { width: 100%; }
  .channel-status-periods button { flex: 1; }
  .channel-status-actions { justify-content: flex-end; }
  .channel-status-grid { grid-template-columns: 1fr; gap: 12px; }
  .channel-status-card { min-height: 390px; padding: 17px; }
  .recharge-layout { grid-template-columns: 1fr; gap: 9px; }
  .recharge-payment-options { grid-template-columns: 1fr; }
  .payment-panel, .redeem-panel, .referral-panel, .profile-panel { padding: 20px; }
  .referral-panel, .profile-panel { grid-template-columns: 1fr; }
  .api-pro-grid { grid-template-columns: 1fr; }
  .api-pro-hero { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: 44px; }
  .hero-price-line { align-items: flex-start; }
}

@media (max-width: 420px) {
  .console-page .brand > span:last-child { display: none; }
  .console-page .top-nav { font-size: 11px; }
  .usage-section-heading { align-items: flex-start; }
  .usage-balance-facts { grid-template-columns: 1fr; }
  .usage-balance { min-height: 250px; }
  .analytics-heading h2 small { display: block; margin: 4px 0 0; }
  .usage-log-shell { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .relay-referral-tile, .model-market-card, .side-nav a, .chart-bar, .analysis-view { transition: none; }
  .sparkline-path, .chart-line, .distribution-chart, .ranking-model > span i { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

/* Recharge uses a stable two-column composition: payment choices left, redemption right. */
.package-section { margin-top: 22px; padding: 28px; overflow: hidden; border: 1px solid #e2e6e8; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(28,38,44,.06); }
.package-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.package-heading h2 { margin: 8px 0 6px; font-size: 20px; }
.package-heading p { margin: 0; color: var(--relay-muted); font-size: 12px; }
.package-route-chip { padding: 8px 11px; border: 1px solid #d9e2de; border-radius: 7px; color: #53615a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.package-plan-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.package-plan-card { min-width: 0; padding: 22px; position: relative; display: flex; flex-direction: column; border: 1px solid #e1e5e8; border-radius: 14px; background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.package-plan-card:hover { transform: translateY(-3px); border-color: #aebdb6; box-shadow: 0 12px 28px rgba(28,43,35,.08); }
.package-plan-card.is-featured { border-color: #8ea9c7; box-shadow: inset 0 3px 0 #3678c8; }
.package-recommend { position: absolute; top: 13px; right: 13px; padding: 4px 7px; border-radius: 4px; background: #edf4fc; color: #2868b4; font-size: 9px; font-weight: 800; }
.package-plan-top span, .package-plan-value span { display: block; color: #78847e; font-size: 10px; }
.package-plan-top strong { display: block; margin-top: 8px; font-size: 30px; line-height: 1; }
.package-plan-top small, .package-plan-value small { display: block; margin-top: 6px; color: #929c97; font-size: 10px; }
.package-plan-value { margin-top: 18px; padding: 16px; border: 1px solid #e7ebee; border-radius: 11px; background: #f8fafb; }
.package-plan-value strong { display: block; margin-top: 5px; font-size: 17px; }
.package-plan-card ul { margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; list-style: none; color: #59655f; font-size: 11px; }
.package-plan-card li::before { content: "✓"; margin-right: 7px; color: #3176c6; font-weight: 900; }
.package-plan-card li.package-plan-disadvantage { color: #8b6b6b; }
.package-plan-card li.package-plan-disadvantage::before { content: "－"; color: #aa7272; }
.package-plan-card form { margin-top: auto; }.package-plan-card .button { width: 100%; background: #266fbd; border-color: #266fbd; box-shadow: none; }.package-plan-card .button:hover { background: #1d5f9f; border-color: #1d5f9f; }.package-plan-card .button:disabled { background: #c8cfcc; border-color: #c8cfcc; cursor: not-allowed; transform: none; }
.package-active-card { margin-top: 20px; padding: 24px; display: grid; grid-template-columns: 132px minmax(0,1fr) minmax(250px,.75fr); align-items: center; gap: 24px; border: 1px solid #e1e5e8; border-radius: 16px; background: #fff; transition: opacity .2s ease, transform .2s ease; }.package-active-card.is-disabled { opacity: .68; }.package-key-card { margin-top: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(180px,.45fr) minmax(0,1fr) auto; align-items: center; gap: 16px; }.package-key-card h3,.package-key-card p { margin: 0; }.package-key-card p { color: #78837d; font-size: 12px; }.package-key-card code { display: block; overflow-wrap: anywhere; padding: 11px 13px; border: 1px solid #dfe6e2; border-radius: 6px; background: #f7faf8; font-size: 12px; }
.package-progress { width: 118px; aspect-ratio: 1; display: grid; place-content: center; border-radius: 50%; background: radial-gradient(circle closest-side,#fff 78%,transparent 80% 99%),conic-gradient(#2d75c3 var(--package-progress),#e2e7e5 0); text-align: center; }.package-progress strong { font-size: 24px; }.package-progress span { margin-top: 3px; color: #77837d; font-size: 9px; }
.package-active-copy > span { color: #7b8781; font-size: 10px; }.package-active-copy h3 { margin: 4px 0; font-size: 22px; }.package-active-copy p { margin: 0 0 12px; color: #6e7973; font-size: 11px; }.package-active-copy > div { margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }.package-active-copy b { color: #7a857f; }.package-active-copy strong { font-size: 11px; }
.package-active-copy .package-value-summary { margin: 14px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: hidden; border: 1px solid #e3e7ea; border-radius: 11px; background: #fafbfc; }
.package-value-summary > div { min-width: 0; padding: 12px 14px; display: block; border-right: 1px solid #e3e7ea; }
.package-value-summary > div:last-child { border-right: 0; }
.package-value-summary small,.package-value-summary strong { display: block; }
.package-value-summary small { color: #7a848b; font-size: 9px; }
.package-value-summary strong { margin-top: 5px; color: #20272d; font-size: 15px; }
.package-route-form { padding: 0 15px 15px; display: grid; gap: 6px; border-left: 1px solid #e1e6e4; }.package-route-form label { color: #27312c; font-size: 11px; font-weight: 800; }.package-route-form select { width: 100%; min-height: 40px; padding: 0 34px 0 11px; border: 1px solid #dce3df; border-radius: 7px; background: #fff; color: #26302b; font-size: 11px; }.package-route-form small { color: #808b85; font-size: 9px; line-height: 1.5; }
.package-toggle-form { padding: 15px; border-left: 1px solid #e1e6e4; border-top: 1px solid #e1e6e4; }.package-toggle { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; cursor: pointer; }.package-toggle input { position: absolute; opacity: 0; pointer-events: none; }.package-toggle span { width: 42px; height: 24px; position: relative; border-radius: 12px; background: #c6ceca; transition: background .2s ease; }.package-toggle span::after { content: ""; width: 18px; height: 18px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .2s ease; }.package-toggle input:checked + span { background: #2d75c3; }.package-toggle input:checked + span::after { transform: translateX(18px); }.package-toggle b { font-size: 11px; }.package-toggle-form small { margin-top: 10px; display: block; color: #808b85; font-size: 9px; line-height: 1.6; }
.package-actions { min-width: 0; display: grid; gap: 10px; }.package-reset-form { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 1px solid #e1e6e4; border-top: 1px solid #e1e6e4; }.package-reset-form strong,.package-reset-form small { display: block; }.package-reset-form strong { font-size: 13px; }.package-reset-form small { margin-top: 2px; color: #808b85; font-size: 9px; }.package-reset-form .button:disabled { opacity: .45; cursor: not-allowed; }
.admin-package-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }.admin-package-bar form { display: grid; justify-items: end; gap: 6px; }.admin-package-bar form small { color: var(--relay-muted); font-size: 9px; }.package-card-grant-form input { width: 72px; }
@media (max-width: 800px) { .package-section { padding: 18px; border-radius: 14px; }.package-heading { display: grid; }.package-route-chip { width: fit-content; }.package-plan-grid { grid-template-columns: 1fr; }.package-active-card { grid-template-columns: 1fr; padding: 18px; }.package-progress { margin: auto; }.package-value-summary { grid-template-columns: 1fr !important; }.package-value-summary > div { border-right: 0; border-bottom: 1px solid #e3e7ea; }.package-value-summary > div:last-child { border-bottom: 0; }.package-route-form,.package-toggle-form,.package-reset-form { border-left: 0; }.package-route-form { padding: 0 0 15px; }.package-toggle-form { border-top: 1px solid #e1e6e4; }.package-key-card { grid-template-columns: 1fr; }.admin-package-bar { align-items: stretch; display: grid; }.admin-package-bar form { justify-items: stretch; }.admin-package-bar .button { width: 100%; } }
.recharge-main-grid { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr); gap: 14px; align-items: stretch; }
.recharge-main-grid .recharge-layout, .recharge-main-grid .recharge-redeem-row { margin-top: 0; }
.recharge-method-card { min-width: 0; min-height: 100%; background: #fff; border: 1px solid #e1e8e4; color: var(--ink); box-shadow: 0 8px 24px rgba(24, 43, 34, .05); }
.recharge-method-card .payment-heading p, .recharge-method-card .payment-note { color: var(--muted); }
.recharge-method-card .manual-payment-mark, .recharge-method-card .catfk-payment-mark, .recharge-method-card .afdian-payment-mark { background: #fff; border-color: #e1e8e4; }
.recharge-method-card .button { min-height: 42px; }
.recharge-method-card .payment-heading { min-height: 104px; }
.recharge-method-card .manual-payment-mark, .recharge-method-card .catfk-payment-mark, .recharge-method-card .afdian-payment-mark { min-height: 180px; margin: 18px 0; }
.recharge-method-card .payment-note { min-height: 84px; margin-top: 14px; }
.recharge-method-card .recharge-contact-button, .recharge-method-card .catfk-payment-button, .recharge-method-card .afdian-payment-button { width: 100%; justify-content: center; }
.recharge-redeem-row .redeem-panel { height: 100%; box-sizing: border-box; background: #fff; border: 1px solid #e1e8e4; }
.recharge-main-grid .recharge-balance { background: #f6faf8; color: var(--ink); border: 1px solid #e1e8e4; }
.recharge-main-grid .recharge-balance span, .recharge-main-grid .recharge-balance small { color: var(--muted); }
.recharge-main-grid .recharge-balance strong { color: var(--ink); }
.console-page .site-header { display: flex; }
@media (max-width: 1120px) {
  .recharge-main-grid { grid-template-columns: 1fr; }
}
