:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --ink: #172337;
  --muted: #526273;
  --quiet: #64748b;
  --border: #e3eaf0;
  --canvas: #f4f7fa;
  --surface: #fff;
  --nav: #111d30;
  --nav-line: #253349;
  --teal: #0a7667;
  --bright: #14ab94;
  --teal-soft: #edf8f5;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --sidebar: 236px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: var(--teal); }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 2px solid #0e9883; outline-offset: 3px; }
:where(h1, h2, h3, p) { margin: 0; }
:where(li, dd, dt) { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 10px; left: 12px; z-index: 10; transform: translateY(-180%); padding: 8px 12px; background: white; }
.skip:focus { transform: none; }
.boot { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.icon { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; font-family: system-ui, sans-serif; font-size: 17px; line-height: 1; font-weight: 600; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.button:hover { background: #f0f5f6; border-color: #c9d8df; }
.button.primary { border-color: var(--teal); background: var(--teal); color: white; }
.button.primary:hover { background: #096758; border-color: #096758; }
.button.danger { border-color: #d8979b; color: #9f2836; }
.button.danger:hover { background: #fdf0f1; }
.button.ghost { background: transparent; border-color: transparent; }
.button.ghost:hover { background: #edf3f5; }
.button.small { min-height: 32px; padding: 4px 9px; font-size: 12px; }
.button.icon-only { min-width: 38px; padding: 7px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; border: 0; color: var(--teal); font: inherit; font-weight: 650; background: transparent; text-decoration: none; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 9px; color: #4d5d6f; background: #edf2f5; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.badge.good { color: #0b7061; background: #e4f6ee; }
.badge.wait { color: #8a570c; background: #fff3df; }
.badge.info { color: #275e94; background: #e9f2fc; }
.badge.bad { color: #a12636; background: #fcebed; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: white; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #16a58d; position: relative; color: #fff; box-shadow: 0 5px 15px #07182855; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(45deg); }
.brand-mark::before { margin-right: 8px; }
.brand-mark::after { margin-left: 8px; }
.brand-name { display: block; font-family: var(--mono); font-size: 17px; font-weight: 750; letter-spacing: -.035em; line-height: 1.24; }
.brand-caption { display: block; margin-top: 3px; color: #a9b9cc; font-size: 11px; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .86fr); background: white; }
.login-aside { display: flex; flex-direction: column; padding: clamp(30px, 5vw, 75px); min-height: 690px; background: radial-gradient(ellipse at 20% 70%, #1a3b4a 0%, #111d30 60%); color: white; position: relative; overflow: hidden; }
.login-aside::after { content: ""; width: 470px; height: 470px; position: absolute; inset: auto -115px -215px auto; border: 1px solid #8fe4d835; border-radius: 50%; box-shadow: 0 0 0 44px #8fe4d81a, 0 0 0 89px #8fe4d812, 0 0 0 134px #8fe4d80c; pointer-events: none; }
.login-aside-copy { margin: auto 0; max-width: 575px; padding-block: 70px; }
.login-aside h2 { font-size: clamp(32px, 4.6vw, 68px); font-weight: 780; line-height: 1.22; letter-spacing: -.05em; }
.login-aside h2 span { display: block; color: #84dfce; }
.login-aside p { max-width: 430px; color: #bdcddd; margin-top: 22px; line-height: 1.8; }
.login-main { display: grid; align-items: center; justify-items: center; padding: 45px 30px; }
.login-box { width: min(100%, 410px); }
.login-box h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.04em; }
.login-box > p { margin: 8px 0 28px; color: var(--muted); }
.login-form { display: grid; gap: 16px; }
.login-form .button.primary { min-height: 44px; margin-top: 4px; }
.login-entries { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-login { margin-top: 28px; border: 1px solid #d9ebe6; background: #f5faf9; padding: 15px; border-radius: 12px; }
.demo-login p { margin: 3px 0 12px; color: var(--muted); font-size: 12px; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { align-self: start; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--nav); color: #c1cddd; padding: 29px 16px 18px; overflow-y: auto; }
.sidebar .brand { margin: 0 8px 31px; }
.sidebar-group { padding: 0 11px; color: #9eafc4; font-size: 11px; letter-spacing: .09em; margin-bottom: 9px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid transparent; border-radius: 8px; color: #c6d1e0; text-decoration: none; min-height: 42px; }
.nav-link:hover { background: #1b2a40; color: white; }
.nav-link[aria-current] { background: #1b3542; border-color: #274f56; color: #adf0e3; font-weight: 700; }
.nav-link .icon { color: #a9bbce; }
.nav-link[aria-current] .icon { color: #70ddc6; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--nav-line); color: #adbed1; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.sidebar-foot .nav-link { width: 100%; }
.sidebar-foot .icon { color: #64ceb8; }
.workspace-tabs {
  display: flex; flex-wrap: wrap; gap: 5px; width: fit-content; max-width: 100%; margin-bottom: 18px;
  padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.workspace-tabs a { display: grid; align-items: center; min-height: 36px; padding: 5px 13px; border-radius: 6px; color: var(--muted); font-weight: 650; text-decoration: none; }
.workspace-tabs a:hover { background: var(--canvas); color: var(--ink); }
.workspace-tabs a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
.main-shell { min-width: 0; }
.topbar { height: 66px; border-bottom: 1px solid var(--border); background: white; display: flex; align-items: center; padding: 0 30px; justify-content: space-between; gap: 15px; }
.crumb, .account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb .divider { color: #8c9bad; }
.crumb strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account small { display: block; font-size: 11px; color: var(--muted); }
.account > div { min-width: 0; }
.account strong, .account small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 24ch; }
.avatar { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: #166c61; background: #e3f4ef; font-weight: 750; }
.mobile-menu, .nav-overlay { display: none; }
.content { width: min(100%, 1490px); padding: 27px 30px 38px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 19px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 780; letter-spacing: -.035em; }
.page-head p { color: var(--muted); margin-top: 7px; font-size: 13px; }
.page-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.banner { display: flex; align-items: flex-start; gap: 9px; padding: 10px 13px; margin: 0 0 18px; border: 1px solid #d6ebe5; border-radius: 9px; color: #275e55; background: #ebf7f4; font-size: 12px; }
.banner.warn { background: #fff8e9; border-color: #f0e0b9; color: #754d11; }
.banner.error { background: #fff1f1; border-color: #f0ced2; color: #963241; }
.banner .icon { height: 18px; width: 15px; font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.metric { position: relative; min-width: 0; min-height: 133px; padding: 16px 17px; background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.metric-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #e9f7f3; color: #0b7666; }
.metric-icon.blue { color: #285d99; background: #edf3fb; }
.metric-icon.amber { color: #946012; background: #fff3de; }
.metric-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value strong { font-family: var(--mono); font-weight: 750; font-size: clamp(21px, 2.7vw, 32px); letter-spacing: -.065em; line-height: 1.18; }
.metric-value strong.phrase { font: 750 clamp(17px, 2vw, 24px) / 1.3 system-ui, sans-serif; letter-spacing: -.03em; }
.metric-value span, .metric-foot { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .43fr); gap: 13px; margin-bottom: 15px; align-items: stretch; }
.panel { background: white; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 17px; }
.panel-head h2, .panel-head h3 { font-size: 16px; font-weight: 750; letter-spacing: -.022em; }
.panel-head p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.panel-pad { padding: 0 17px 17px; }
.chart { min-height: 203px; }
.chart canvas { width: 100%; height: 203px; display: block; }
.chart-note { min-height: 166px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.stacked-panel { margin-top: 14px; }
.chart-caption { display: flex; gap: 9px; align-items: center; margin: 7px 0 0 5px; color: var(--muted); font-size: 11px; }
.chart-caption::before { content: ""; width: 13px; height: 2px; border-radius: 3px; background: var(--bright); }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); }
.queue li:first-child { border-top: 0; padding-top: 2px; }
.queue strong { display: block; font-size: 13px; }
.queue small { color: var(--muted); display: block; margin-top: 3px; }
.queue .text-button { white-space: nowrap; }
.queue-value { font-size: 18px; font-weight: 700; text-align: right; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: 0; }
.summary-row strong { font-size: 14px; }
.summary-money { font-family: var(--mono); font-size: 24px; letter-spacing: -.05em; }
.summary-row .summary-money { font-size: 21px; }
.summary-money small { color: var(--muted); font-family: inherit; font-size: 12px; letter-spacing: 0; }
.empty { display: grid; justify-items: center; align-content: center; min-height: 150px; gap: 6px; text-align: center; color: var(--muted); padding: 24px 16px; }
.empty strong { color: var(--ink); }
.empty .icon { display: grid; place-items: center; inline-size: 31px; block-size: 31px; margin-bottom: 3px; color: var(--teal); background: var(--teal-soft); border-radius: 8px; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--border); }
.filters .search-field { flex: 1 1 220px; max-width: 390px; }
.filters label { min-width: min(100%, 118px); }
.filters .button { min-height: 39px; }
.field { display: grid; gap: 5px; color: #2d3d50; font-size: 12px; font-weight: 650; }
.field > small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; min-height: 39px; border: 1px solid #d5e0e7; border-radius: 7px; color: var(--ink); background: white; padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: #6d7987; }
textarea { resize: vertical; min-height: 85px; }
.range { display: inline-flex; align-items: center; gap: 5px; }
.range select { min-height: 32px; width: auto; padding: 4px 7px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #516276; text-transform: none; font-size: 11px; font-weight: 700; white-space: nowrap; background: #f7f9fb; }
th, td { padding: 12px 13px; vertical-align: middle; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
td { font-size: 12px; overflow-wrap: anywhere; }
tbody tr:hover { background: #fbfdfd; }
td strong { font-weight: 750; }
td small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; }
td .text-button { white-space: nowrap; }
.table-count { padding: 10px 17px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 490px); max-width: 100%; height: 100%; max-height: 100%; padding: 0; border: 0; background: white; color: var(--ink); box-shadow: -12px 0 42px #0d1d3033; }
dialog::backdrop { background: #101d36a0; }
.drawer-head { position: sticky; top: 0; z-index: 1; background: white; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 21px 23px 17px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 23px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.drawer-head p { color: var(--muted); margin-top: 3px; }
.drawer-body { padding: 21px 23px 31px; display: grid; gap: 17px; }
.drawer-body h3 { font-size: 15px; }
.drawer-body form { display: grid; gap: 12px; }
.drawer-body .banner { margin: 0; }
.drawer-body .empty { min-height: 100px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0; }
.details dt { color: var(--muted); font-size: 12px; }
.details dd { margin: 3px 0 0; font-weight: 650; }
.section-box { padding: 14px; border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 9px; }
.bill-disclosure { min-width: 0; padding-top: 9px; border-top: 1px solid var(--border); }
.bill-disclosure summary { cursor: pointer; color: var(--ink); font-weight: 700; padding-block: 6px; }
.bill-disclosure > :not(summary) { margin-top: 8px; }
.bill-disclosure table { min-width: 0; }
.telemetry-panel { margin-bottom: 16px; }
.telemetry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.telemetry-signal { align-content: start; background: #f8fafc; }
.signal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.signal-head h3 { font-size: 14px; }
.telemetry-signal .details { grid-template-columns: 1fr; gap: 7px; }
.telemetry-signal .details dd { margin-top: 1px; }
.telemetry-signal p { font-size: 12px; }
.activation-panel { padding: 15px; gap: 12px; background: #f8fafc; }
.activation-panel > div > p { margin-top: 2px; font-size: 12px; }
.activation-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.activation-list li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding-bottom: 12px; }
.activation-list li:last-child { padding-bottom: 0; }
.activation-list li:not(:last-child)::after { content: ""; position: absolute; top: 20px; bottom: 0; left: 9px; border-left: 1px solid #cddbe1; }
.activation-marker { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #a8b9c5; background: white; border-radius: 50%; font-size: 12px; line-height: 1; }
.activation-list .complete .activation-marker { border-color: #b4ded3; background: #e4f6ee; color: var(--teal); }
.activation-list li strong, .activation-list li div > span { display: block; }
.activation-list li div > span { color: var(--muted); font-size: 12px; }
.activation-guidance { padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.config { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.config li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding: 6px 0; }
.config li:last-child { border: 0; }
.config li span { display: block; color: var(--muted); font-size: 11px; }
.config code { overflow-wrap: anywhere; }
.connection-steps { display: grid; gap: 4px; margin: 3px 0 0; padding-inline-start: 20px; font-size: 13px; }
.toast { position: fixed; z-index: 11; bottom: 19px; right: 19px; background: #183244; color: white; border: 1px solid #346370; border-radius: 10px; padding: 12px 16px; box-shadow: 0 6px 22px #0a1a2a27; max-width: calc(100vw - 38px); }
dialog .toast { position: static; }
@media (min-width: 1450px) {
  .content { padding-inline: 34px; }
}
@media (max-width: 1100px) {
  :root { --sidebar: 202px; }
  .content { padding-inline: 22px; }
  .topbar { padding-inline: 22px; }
  .metrics, .grid { gap: 10px; }
}
@media (max-width: 940px) {
  .grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .telemetry-grid { gap: 8px; }
}
@media (max-width: 750px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-aside { min-height: 0; padding: 24px; }
  .login-aside-copy { padding: 27px 0 12px; }
  .login-aside h2 { font-size: clamp(26px, 6vw, 37px); }
  .login-aside h2 span { display: inline; }
  .login-aside p { margin-top: 11px; font-size: 12px; }
  .login-main { padding: 28px 21px 36px; }
  .shell { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 5; width: min(82vw, 250px); }
  .sidebar.is-open { display: flex; }
  .nav-overlay.is-open { display: block; position: fixed; z-index: 4; inset: 0; border: 0; padding: 0; background: #14253988; }
  .mobile-menu { display: inline-flex; }
  .topbar { height: 60px; padding-inline: 12px; gap: 8px; }
  .crumb { gap: 6px; }
  .crumb .context, .crumb .divider { display: none; }
  .account { gap: 5px; }
  .account > div, .account .avatar { display: none; }
  .content { padding: 19px 12px 29px; }
  .page-head { align-items: flex-start; }
  .page-head p { font-size: 12px; }
  .page-actions .button { min-height: 34px; padding: 4px 9px; font-size: 12px; }
  .metric { min-height: 107px; padding: 12px; }
  .metric-icon { width: 24px; height: 24px; }
  .metric-value strong { font-size: clamp(19px, 5.4vw, 27px); }
  .metric-value strong.phrase { font-size: 19px; }
  .metric-foot { font-size: 11px; }
  .table-wrap { overflow: visible; }
  table, tbody { display: block; }
  table thead { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
  table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 11px 13px; gap: 7px 10px; border-bottom: 1px solid var(--border); }
  table tr:last-child { border-bottom: 0; }
  table td, table td:first-child, table td:last-child { display: block; text-align: left; border-bottom: 0; margin: 0; padding: 0; }
  table td::before { display: block; content: attr(data-label); color: var(--muted); font-size: 10px; margin-bottom: 2px; }
  table td:first-child { grid-column: 1 / -1; }
  table td:first-child::before, table td[data-label="操作"]::before { display: none; }
  table td[data-label="操作"] { grid-column: 1 / -1; justify-self: start; }
  .filters { padding: 11px 13px; }
  .filters .search-field { flex-basis: 100%; max-width: none; }
  .panel-head { padding-inline: 13px; }
  .panel-pad { padding-inline: 13px; }
}
@media (max-width: 510px) {
  .telemetry-grid { grid-template-columns: 1fr; }
  .page-head:has(.page-actions > :nth-child(2)) { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .page-head { display: block; }
  .page-actions { margin-top: 8px; }
  .metric-label { gap: 5px; }
  .drawer-body, .drawer-head { padding-inline: 14px; }
}
.clipboard-fallback { position: fixed; top: 0; left: -9999px; }
.share-link { margin-top: 12px; }
