:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --navy: #172b47; --blue: #2563b8; --ink: #16253a; --muted: #4c6079;
  --pale: #eaf1fb; --line: #dce5f0; --page: #f3f6fa;
  --header: 64px; --side: 228px; --gutter: clamp(22px, 3.5vw, 54px);
  background: var(--page); color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 2.5vw, 2.3rem); line-height: 1.25; margin-bottom: 20px; }
h2 { font-size: 1.2rem; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 7px 15px; border: 1px solid var(--blue); border-radius: 8px; color: white; background: var(--blue); font-weight: 650; text-align: center; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.94); }
button:disabled { opacity: .5; cursor: default; }
button.outline, .button.outline { color: var(--navy); border-color: #b5c8df; background: white; }
:focus-visible { outline: 3px solid #4c86d5; outline-offset: 2px; }
.muted { color: var(--muted); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 3; min-height: var(--header); padding: 0 var(--gutter) 0 26px; background: var(--navy); color: white; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.18rem; font-weight: 750; }
.brand img { border-radius: 24%; }
#current-page { color: #dce9f9; font-size: .92rem; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100dvh - var(--header)); }
.side { background: white; border-right: 1px solid var(--line); padding: 20px 15px; align-self: start; position: sticky; top: var(--header); height: calc(100dvh - var(--header)); overflow-y: auto; }
.side nav a, .more-links a { display: block; padding: 10px 12px; border-radius: 8px; }
.side nav a:hover, .more-links a:hover { background: var(--page); }
.side nav a[aria-current] { background: var(--pale); color: var(--navy); font-weight: 700; }
.desktop-nav p { padding: 0 12px 4px; color: var(--muted); font-size: .9rem; }
.desktop-nav p:not(:first-child) { margin-top: 18px; }
.mobile-nav { display: none; }
main { min-width: 0; width: 100%; max-width: 1420px; margin-inline: auto; padding: 30px var(--gutter) 46px; outline: none; }
.panel, .plan { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 16px #172b4709; }
.panel { padding: clamp(16px, 2.2vw, 25px); }
.panel > p + button { margin-top: 12px; }
.stack { margin-top: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.filters { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.filters button { min-height: 36px; background: transparent; border-color: transparent; color: var(--muted); padding: 4px 10px; white-space: nowrap; font-size: .93rem; }
.filters button[aria-pressed="true"] { background: var(--blue); color: white; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { overflow: hidden; display: flex; flex-direction: column; }
.plan-title, .plan-body, .price { padding-inline: clamp(14px, 1.55vw, 22px); }
.plan-title { padding-block: 12px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; padding-block: 14px; background: var(--pale); color: var(--navy); }
.price strong { font-size: clamp(1.8rem, 2.8vw, 2.45rem); line-height: 1.2; letter-spacing: -.04em; }
.price small { color: var(--muted); font-size: .88rem; }
.plan-body { flex: 1; display: flex; flex-direction: column; padding-block: 14px 16px; font-size: .94rem; }
.volume { font-weight: 700; }
.routes { padding: 0; margin: 8px 0; list-style: none; display: grid; gap: 3px; color: var(--muted); }
.routes li { display: flex; justify-content: space-between; gap: 6px; }
.routes strong { color: var(--navy); white-space: nowrap; }
.plan-body > p:last-of-type { padding-bottom: 12px; }
.plan-body .button { margin-top: auto; align-self: flex-start; }
.subscription-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.subscription-summary h2 { margin: 4px 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.quota { align-self: start; background: var(--pale); border-radius: 9px; padding: 16px 19px; }
.amount { font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 750; color: var(--navy); }
progress { display: block; width: 100%; height: 12px; margin: 7px 0 10px; accent-color: var(--blue); }
.actions, .input-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.input-row input { flex: 1 1 180px; }
input, textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #b5c8df; border-radius: 7px; background: white; color: var(--ink); }
#subscription-link { margin-top: 10px; }
label { display: block; margin-top: 10px; font-weight: 600; }
label input { display: block; margin-top: 4px; }
.table-panel { padding: 0; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .94rem; }
td, th { padding: 11px clamp(8px, 1.6vw, 20px); border-bottom: 1px solid var(--line); }
thead { background: var(--pale); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; }
.docs details { padding: 12px 0; }
.docs details + details { border-top: 1px solid var(--line); }
.docs summary { cursor: pointer; font-weight: 650; }
.docs details p { margin-top: 9px; }
.docs a { color: var(--blue); text-decoration: underline; }
.messages p + p { border-top: 1px solid var(--line); }
.messages p { padding: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#catalog-notice:not(:empty), #account-notice:not(:empty) { padding: 8px 0 12px; color: var(--muted); }
#support-notice { color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(440px, calc(100% - 28px)); color: var(--ink); }
dialog header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
dialog h2 { margin-bottom: 8px; }
dialog::backdrop { background: #172b4788; }
#auth-error, #reset-error { margin-top: 9px; color: #82284e; }
.toast { position: fixed; z-index: 5; right: 16px; bottom: 17px; max-width: min(420px, calc(100% - 32px)); padding: 10px 14px; border-radius: 9px; background: var(--navy); color: white; }
@media (max-width: 1050px) { :root { --side: 185px; } }
@media (max-width: 960px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  :root { --header: 58px; }
  .topbar { padding-inline: var(--gutter); }
  .shell { display: block; }
  .side { position: fixed; inset: auto 0 0; z-index: 4; height: auto; padding: 5px var(--gutter) max(5px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .desktop-nav { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; text-align: center; }
  main { padding-bottom: 78px; }
  .side .mobile-nav a { padding-inline: 1px; font-size: .87rem; }
  .toast { bottom: 62px; }
}
@media (max-width: 620px) {
  :root { --gutter: 15px; }
  .catalog, .subscription-summary { grid-template-columns: 1fr; }
  main { padding-top: 20px; }
  td, th { overflow-wrap: anywhere; }
}
