:root {
  color-scheme: light;
  --bg: #f7faff;
  --surface: #fff;
  --surface-hover: #edf3ff;
  --line: #dfe7f2;
  --blue: #2464ec;
  --light-blue: #245ac4;
  --text: #172b4b;
  --muted: #64748b;
  --green: #15805d;
  --red: #c44350;
  --radius: 16px;
  font-family: "Bahnschrift", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 88% 5%, #dbeaff99, transparent 42%),
    linear-gradient(180deg, #fff 0, #f7faff 60%, #f3f7fd 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; border: 1px solid #cfdbee; background: #fff; color: var(--text);
  padding: 11px 17px; font-size: 13px; font-weight: 550; line-height: 1.5;
}
button:hover:not(:disabled), .button:hover { background: var(--surface-hover); border-color: #98b6f0; }
button:disabled { background: #f0f4fa; border-color: #dce5f1; color: #71829b; }
.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.primary:hover:not(:disabled), .button.primary:hover { background: #1854d5; border-color: #1854d5; }
.primary:disabled { background: #edf2f9; border-color: #dce5f1; color: #71829b; }
.quiet { border: 0; padding: 7px 10px; color: var(--muted); background: transparent; }
.danger { color: var(--red); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #7aa9ff; outline-offset: 4px;
}
.site-header, #app, .site-footer { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -.05em; }
.brand > span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--blue); border-radius: 10px 10px 10px 3px; font-size: 21px; padding-right: 3px; }
.site-header nav { display: flex; align-items: center; gap: 26px; color: #566987; font-size: 12px; }
.site-header nav a { padding-block: 10px; }
.site-header nav a:hover { color: var(--blue); }
.site-header .nav-console { border: 1px solid #d0ddf3; border-radius: 9px; padding: 9px 14px; color: #244b8c; background: #ffffffb3; }
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 34px 0 30px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--blue); font-size: 10px; letter-spacing: .15em; font-weight: 650; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.intro h1 { font-size: clamp(33px, 3.5vw, 48px); letter-spacing: -.055em; line-height: 1.2; margin: 0; font-weight: 750; }
.intro h1 span { color: var(--blue); }
.intro-copy { margin: 13px 0 0; color: #63748e; font-size: 13px; line-height: 1.8; }
.connection-card {
  display: grid; gap: 15px; padding: 22px 25px; border: 1px solid #d5e2f6; border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #edf4ff); box-shadow: 0 8px 30px #2b5daf06;
}
.connection-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.connection-top > span:first-child { color: #435b80; font-size: 12px; }
.connection-card .endpoint { background: #ffffffbc; padding: 10px 12px; border-style: solid; }
.connection-card code { font-size: 11px; }
.connection-card button { padding: 5px 9px; font-size: 11px; }
.connection-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #607897; }
.connection-foot a { color: var(--blue); font-weight: 600; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0 0 17px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; font-weight: 650; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.period-label { display: inline-flex; align-items: center; gap: 8px; border-radius: 7px; background: #eaf1fd; padding: 7px 10px; color: #4d6c9f; font-size: 10px; white-space: nowrap; }
.period-label strong { color: #245ac4; font-weight: 600; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 24px 22px 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 15px #243e7404; min-width: 0; }
.plan-card.featured { border: 2px solid var(--blue); padding: 23px 21px 20px; background: linear-gradient(155deg, #f0f6ff, #fff 60%); box-shadow: 0 8px 25px #2464ec0d; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.plan-top h2, .plan-top h3 { font-size: 16px; margin: 0; font-weight: 650; }
.plan-label { color: var(--blue); font-size: 9px; letter-spacing: .11em; font-weight: 650; }
.recommend { color: #fff; background: var(--blue); padding: 4px 7px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.plan-description { margin: 8px 0 20px; font-size: 11px; line-height: 1.8; color: var(--muted); min-height: 20px; }
.price { font-size: 38px; letter-spacing: -.055em; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .currency { font-size: 19px; margin-right: 3px; font-weight: 500; vertical-align: 4px; }
.price small { font-size: 11px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-left: 5px; }
.plan-allowance { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 20px 0 0; padding: 15px 0; border-block: 1px solid #e7edf6; }
.plan-allowance span { color: #6d7f98; font-size: 11px; }
.plan-allowance strong { color: #2858a3; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.plan-features { display: grid; gap: 11px; list-style: none; padding: 0; margin: 20px 0 23px; font-size: 11px; line-height: 1.5; color: #526580; }
.plan-features li { display: flex; gap: 8px; align-items: baseline; }
.plan-features li::before { content: "\2713"; color: #3775dc; font-size: 12px; font-weight: 650; }
.plan-card form { margin-top: auto; gap: 12px; }
.plan-card form > button { width: 100%; min-height: 41px; font-size: 12px; }
.plan-card .method-choice { gap: 10px; }
.plan-card .method-choice label { border: 0; padding: 0; font-size: 11px; }
.purchase-note { color: #748299; background: #f0f5fc; border: 1px solid #e2eaf5; border-radius: 10px; padding: 12px 15px; margin: 17px 0 0; font-size: 11px; line-height: 1.8; }
.purchase-note strong { color: #4e6485; font-weight: 550; }
.billing-details { padding: 3px 0; border-bottom: 1px solid var(--line); }
.billing-details summary { color: #516887; padding-block: 18px; font-size: 12px; }
.billing-details > div { padding: 0 0 15px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.billing-details p { margin: 0 0 10px; }
.billing-details a { color: var(--blue); }
.note { font-size: 12px; color: var(--muted); line-height: 1.8; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: #7d8ba2; padding: 22px 0 25px; margin-top: 15px; font-size: 10px; }
.site-footer a:hover { color: var(--blue); }
.footer-divider { color: #b5c4dc; margin-inline: 8px; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; padding: 34px 0 25px; }
.page-head h1 { font-size: 31px; letter-spacing: -.04em; margin: 9px 0; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.kicker { color: var(--blue); font-size: 10px; letter-spacing: .12em; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; box-shadow: 0 4px 18px #304d7d03; }
.panel h2 { font-size: 18px; margin: 0 0 18px; font-weight: 650; }
.panel h3 { font-size: 15px; margin: 0 0 14px; }
.panel p { line-height: 1.8; }
.stack { display: grid; gap: 20px; }
.stack > h2 { font-size: 19px; margin: 7px 0 0; font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.wide { grid-column: 1 / -1; }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 12px; font-size: 30px; letter-spacing: -.04em; color: #2159b9; font-variant-numeric: tabular-nums; }
.stat small { color: #8290a6; display: block; margin-top: 8px; font-size: 10px; }
.live-status { display: flex; align-items: center; gap: 8px; margin: -7px 0 16px; color: #73849d; font-size: 11px; line-height: 1.7; }
.live-indicator { width: 6px; height: 6px; border-radius: 50%; background: #269e77; flex: none; }
.live-status.is-stale { color: #986c25; }
.live-status.is-stale .live-indicator { background: #c78c2b; }
.quota-summary { margin-top: 15px; padding: 20px 23px; border: 1px solid var(--line); border-radius: 12px; background: #ffffffcf; }
.quota-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #697e9c; }
.quota-heading > div { display: flex; align-items: center; gap: 12px; }
.quota-heading strong { color: #365782; font-size: 14px; }
.quota-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #76869d; font-size: 11px; margin-bottom: 16px; }
.quota-legend strong { color: #4f6f9b; font-weight: 550; }
.quota-summary .note { margin: 12px 0 0; font-size: 11px; }
.quota-footnote { color: #8390a3; font-size: 10px; line-height: 1.8; margin: 12px 0 0; }
.quota-warning { border-color: #e7c995; }
.daily-quota { background: #f2f7ff; border-radius: 9px; padding: 13px 15px; margin-bottom: 15px; }
.daily-quota > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 13px; color: #6f84a4; font-size: 11px; }
.daily-quota strong { color: #245dc3; font-size: 19px; font-weight: 600; }
.daily-quota p { margin: 7px 0 0; color: #7d8fa8; font-size: 10px; line-height: 1.8; }
.subscription-item { padding: 19px 0; border-bottom: 1px solid #e7edf6; }
.subscription-item:first-child { padding-top: 0; }
.subscription-item:last-child { padding-bottom: 0; border-bottom: 0; }
.subscription-item .toolbar { margin-bottom: 0; }
.subscription-item h3 { margin: 0; }
.usage-filters { grid-template-columns: minmax(160px,1fr) minmax(150px,.65fr) auto; align-items: end; margin: 20px 0 12px; }
.usage-filters > button { min-height: 45px; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: #7a8ba5; font-size: 11px; }
.pagination button { padding: 7px 13px; font-size: 11px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.field-help { margin: -4px 0 0; color: #7c8ca5; font-size: 11px; line-height: 1.8; }
.model-checkboxes { border: 1px solid #dbe5f3; border-radius: 9px; padding: 12px 15px; min-width: 0; }
.model-checkboxes legend { color: #526580; font-size: 12px; padding: 0 5px; }
.model-checkboxes .check { flex-wrap: wrap; overflow-wrap: anywhere; }
.member-subscriptions { margin-top: 21px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tabs button { color: #61738e; border-color: transparent; background: transparent; }
.tabs button[aria-selected="true"] { color: #215cce; border-color: #d5e3fc; background: #eaf1ff; }
label { display: grid; gap: 9px; font-size: 12px; color: #526580; }
input, select { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #d5deed; border-radius: 8px; color: var(--text); background: #f9fbff; font-size: 13px; }
input::placeholder { color: #8494aa; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--blue); }
.check { display: flex; align-items: center; gap: 10px; margin-block: 10px; }
form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.auth-panel { max-width: 450px; margin: 48px auto 40px; padding: 34px; box-shadow: 0 12px 45px #2d52800a; }
.auth-panel h1 { margin: 10px 0 14px; font-size: 28px; letter-spacing: -.04em; }
.auth-panel form { margin-top: 24px; }
.auth-panel .primary { margin-top: 6px; }
.auth-switch { text-align: center; font-size: 12px; color: #7c8ca5; padding-top: 10px; }
.auth-switch a { color: var(--blue); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { color: #7c8ba3; font-size: 11px; font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px 12px; border-bottom: 1px solid #e9eef6; max-width: 290px; overflow-wrap: anywhere; }
td button { padding: 5px 10px; font-size: 11px; }
.badge { display: inline-flex; padding: 4px 9px; border: 1px solid #d8e4f8; color: #416daf; background: #f2f6fd; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.badge.good { color: var(--green); border-color: #bce2d4; background: #eef9f4; }
.badge.warn { color: #996d22; border-color: #ead9af; background: #fffaf0; }
.empty { text-align: center; padding: 36px 15px; color: #73849d; font-size: 13px; line-height: 1.9; }
.empty strong { display: block; color: #455e82; margin-bottom: 8px; font-weight: 500; }
.endpoint { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px dashed #bfd1ed; border-radius: 9px; background: #f5f8ff; }
code, pre { font-family: "Cascadia Code", "Consolas", monospace; font-size: 12px; }
code { overflow-wrap: anywhere; }
pre { overflow-x: auto; white-space: pre-wrap; word-break: break-word; color: #385c8e; background: #f3f7fe; padding: 17px; border-radius: 8px; border: 1px solid #dce7f6; line-height: 1.8; }
details > summary { color: #476ca1; font-size: 12px; cursor: pointer; padding: 14px 0; }
.secret { border: 1px solid #a5d9c5; background: #f0faf6; padding: 20px; border-radius: 12px; }
.secret h3 { color: var(--green); margin: 0 0 12px; }
.secret code { display: block; user-select: all; margin: 14px 0; line-height: 1.9; }
.model-list { display: flex; flex-wrap: wrap; gap: 8px; }
.model-price { color: #617692; font-size: 12px; line-height: 1.8; }
.method-choice { display: flex; gap: 12px; flex-wrap: wrap; }
.method-choice label { padding: 10px 15px; border: 1px solid #d7e2f2; border-radius: 8px; display: flex; gap: 9px; align-items: center; }
.warning { border: 1px solid #ebd5a4; background: #fffaf0; border-radius: 9px; padding: 15px; color: #8b692e; font-size: 12px; line-height: 1.8; }
.success { color: var(--green); }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 5px; accent-color: var(--blue); margin: 18px 0 10px; }
progress::-webkit-progress-bar { background: #e6edf8; border-radius: 5px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 5px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.toolbar h2 { margin: 0; }
.toast { position: fixed; right: 26px; bottom: 26px; background: #fff; color: #244b7d; border: 1px solid #b9cfee; border-radius: 10px; padding: 15px 20px; max-width: min(480px,calc(100vw - 40px)); box-shadow: 0 10px 50px #294f7e22; z-index: 1000; font-size: 13px; line-height: 1.7; }
.toast.error { background: #fff6f6; color: #a93c48; border-color: #e5bfc5; }
dialog { width: min(510px,calc(100vw - 32px)); max-height: 90dvh; overflow-y: auto; border: 1px solid #d3dfef; border-radius: 16px; padding: 26px; background: #fff; color: var(--text); box-shadow: 0 25px 90px #203b6c26; }
dialog::backdrop { background: #253d624d; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 0; font-size: 20px; }
.checkout { text-align: center; padding-top: 20px; }
.checkout img { width: 260px; max-width: 100%; background: #fff; border-radius: 10px; margin: 15px 0; }
.checkout .actions { justify-content: center; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.small-id { font-size: 10px; color: #8091ab; word-break: break-all; }
.tabs { flex-wrap: wrap; }
textarea { width:100%;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:12px;color:var(--text);background:#fafcff;line-height:1.7; }
textarea:focus-visible { outline:3px solid #7aa9ff;outline-offset:3px; }
.prose { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px;margin-block:12px; }
.message-card { padding:18px 0;border-bottom:1px solid var(--line); }
.message-card:first-child { padding-top:0; }
.message-card h3 { margin:0;font-size:16px; }
.message-card:last-of-type { border-bottom:0; }
.reply-box,.notice-box { padding:15px 18px;border-radius:10px;background:#eff5ff;margin-block:14px;line-height:1.8;font-size:12px; }
.reply-box strong { color:var(--blue); }
.management-filter { display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:22px; }
.management-filter label:first-child { flex:1;min-width:180px; }
.notice-strip { display:flex;align-items:baseline;gap:20px;background:#edf4ff;border:1px solid #d7e5fa;border-radius:12px;padding:15px 20px;margin-bottom:25px;font-size:12px; }
.notice-strip > div { flex:1;min-width:0; }
.notice-strip > strong,.notice-strip > a { color:var(--blue);white-space:nowrap; }
.notice-strip summary { cursor:pointer;line-height:1.9; }
@media(max-width:700px){.notice-strip{gap:12px;flex-wrap:wrap}.notice-strip>div{flex-basis:65%}.management-filter{align-items:stretch}.management-filter>button{width:100%}}
@media (prefers-reduced-motion:no-preference) {
  .intro, .page-head { animation: reveal .35s ease-out; }
  .plan-card { animation: reveal .45s ease-out backwards; }
  .plan-card:nth-child(2) { animation-delay: 45ms; }
  .plan-card:nth-child(3) { animation-delay: 90ms; }
  .plan-card:nth-child(4) { animation-delay: 135ms; }
  @keyframes reveal { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width:1000px) {
  .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intro { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .intro h1 { font-size: 34px; }
  .connection-card { padding: 20px; }
}
@media (max-width:700px) {
  .site-header, #app, .site-footer { width: calc(100% - 36px); }
  .site-header { padding-block: 17px; gap: 15px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand > span { width: 30px; height: 30px; font-size: 18px; }
  .site-header nav { gap: 13px; font-size: 11px; }
  .site-header .nav-console { padding: 8px 10px; }
  .intro { grid-template-columns: 1fr; gap: 22px; padding-block: 29px 26px; }
  .intro h1 { font-size: clamp(32px,7.8vw,43px); }
  .intro-copy { font-size: 12px; margin-top: 10px; }
  .connection-card { padding: 16px 18px; gap: 11px; }
  .connection-top { gap: 10px; }
  .connection-foot { font-size: 10px; }
  .section-heading { gap: 10px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 18px; }
  .period-label { font-size: 9px; }
  .panel { padding: 20px; }
  .grid, .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 15px 18px; }
  .stat strong { font-size: 26px; }
  #balance-summary .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #balance-summary .stat:first-child { grid-column: 1 / -1; }
  #balance-summary .stat:not(:first-child) strong { font-size: 23px; }
  .quota-summary { padding: 18px; }
  .quota-heading { align-items: start; gap: 9px; }
  .quota-legend { gap: 7px; }
  .usage-filters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .usage-filters > button { grid-column: 1 / -1; min-height: 39px; }
  .pagination { align-items: start; }
  .row-actions { min-width: 115px; }
  .auth-panel { padding: 26px; margin-top: 32px; }
  .page-head { padding-top: 30px; }
  .page-head h1 { font-size: 27px; }
  .tabs { gap: 3px; }
  .tabs button { padding: 9px 12px; font-size: 12px; }
  .toast { bottom: 18px; right: 18px; }
}
@media (max-width:520px) {
  .plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card, .plan-card.featured { padding: 24px; }
  .plan-card.featured { padding: 23px; }
  .plan-description { margin-bottom: 16px; }
  .plan-allowance { margin-top: 17px; }
  .plan-features { margin-block: 17px 20px; }
  .section-heading { align-items: start; }
  .site-header nav { gap: 10px; }
  .site-header .nav-console { border: 0; padding-inline: 0; background: transparent; }
  .site-footer { margin-top: 10px; line-height: 1.8; }
}
