:root {
  --sidebar: #111827;
  --sidebar-soft: #1f2937;
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #182230;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #e2e7ed;
  --border-strong: #d0d7e0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef4ff;
  --success: #16855b;
  --success-soft: #eaf8f2;
  --warning: #b75d05;
  --warning-soft: #fff5e8;
  --danger: #c43232;
  --danger-soft: #fff0f0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
  --radius: 12px;
  --sidebar-width: 244px;
}

/* Admin workspace refinement: authentication, responsive ledgers and control pages */
.admin-login-body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: #102b4d;
  background:
    radial-gradient(circle at 14% 18%, rgba(28, 152, 255, .22), transparent 27rem),
    radial-gradient(circle at 86% 82%, rgba(102, 79, 255, .16), transparent 30rem),
    linear-gradient(145deg, #f8fbff 0%, #eaf5ff 55%, #f9fbff 100%);
}
.admin-auth-orbs { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.admin-auth-orbs span { position: absolute; display: block; border-radius: 50%; filter: blur(2px); }
.admin-auth-orbs span:nth-child(1) { width: 34rem; height: 34rem; top: -19rem; right: -10rem; background: radial-gradient(circle at 36% 40%, rgba(56, 171, 255, .35), rgba(45, 102, 245, .05) 64%, transparent 72%); }
.admin-auth-orbs span:nth-child(2) { width: 29rem; height: 29rem; bottom: -16rem; left: -8rem; background: radial-gradient(circle at 58% 35%, rgba(108, 87, 255, .23), rgba(39, 177, 255, .04) 66%, transparent 73%); }
.admin-auth-orbs span:nth-child(3) { width: 12rem; height: 12rem; top: 18%; left: 19%; background: radial-gradient(circle, rgba(49, 204, 179, .15), transparent 70%); }
.admin-auth-shell { position: relative; z-index: 1; width: min(100% - 32px, 480px); min-height: 100dvh; margin: 0 auto; padding: 42px 0; display: grid; place-items: center; }
.admin-auth-card {
  width: 100%;
  padding: 38px;
  background:
    radial-gradient(circle at 96% 0%, rgba(99, 193, 255, .18), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, .90), rgba(244, 250, 255, .72));
  border: 1px solid rgba(137, 180, 229, .42);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(43, 91, 149, .18), inset 0 1px 0 rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  backdrop-filter: blur(28px) saturate(135%);
}
.admin-auth-mark { width: 62px; height: 62px; margin: 0 auto 22px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #32b8ff, #0877ff 58%, #5d54ee); border: 1px solid rgba(255, 255, 255, .68); border-radius: 21px; box-shadow: 0 14px 30px rgba(18, 111, 230, .28), inset 0 1px 1px rgba(255, 255, 255, .45); }
.admin-auth-mark svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-auth-heading { margin-bottom: 25px; text-align: center; }
.admin-auth-heading > span { display: block; margin-bottom: 8px; color: #1871ce; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.admin-auth-heading h1 { margin: 0; font-size: 31px; line-height: 1.15; letter-spacing: -.04em; }
.admin-auth-heading p { margin: 11px auto 0; max-width: 350px; color: #607791; font-size: 12px; line-height: 1.7; }
.admin-auth-error { margin: 0 0 18px; padding: 13px 14px; color: #a82f49; background: rgba(255, 239, 243, .85); border: 1px solid rgba(205, 75, 101, .24); border-radius: 14px; font-size: 11px; line-height: 1.55; }
.admin-auth-error:focus { outline: 3px solid rgba(201, 60, 85, .18); outline-offset: 2px; }
.admin-auth-form { display: grid; gap: 16px; }
.admin-auth-form > label,
.admin-password-card label { min-width: 0; display: grid; gap: 8px; color: #294762; font-size: 12px; font-weight: 750; }
.admin-auth-form label > small { color: #71849a; font-size: 10px; font-weight: 500; line-height: 1.5; }
.admin-auth-form input[readonly] { color: #3c5b78; background: rgba(233, 242, 252, .72); cursor: default; }
.password-field { position: relative; min-width: 0; display: block; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 50%; right: 7px; min-width: 48px; min-height: 34px; padding: 0 8px; color: #176fc9; background: rgba(227, 241, 255, .85); border: 0; border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 750; transform: translateY(-50%); }
.password-field button:hover { background: rgba(210, 232, 255, .92); }
.password-field button:focus-visible { outline: 3px solid rgba(8, 119, 255, .26); outline-offset: 1px; }
.admin-auth-submit { min-height: 52px; margin-top: 2px; border-radius: 16px; font-size: 14px; }
.admin-auth-card > footer { margin-top: 19px; padding-top: 17px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #71849a; border-top: 1px solid rgba(123, 166, 216, .19); font-size: 10px; }
.admin-auth-card > footer i { width: 8px; height: 8px; background: #20bd91; border-radius: 50%; box-shadow: 0 0 0 4px rgba(32, 189, 145, .11); }

.sidebar-foot { display: grid; gap: 10px; }
.admin-account-compact { padding: 10px 11px; display: grid; gap: 4px; background: rgba(255, 255, 255, .48); border: 1px solid rgba(119, 164, 217, .20); border-radius: 12px; }
.admin-account-compact span { color: #8294aa; font-size: 9px; }
.admin-account-compact b { color: #294a6d; font: 700 11px/1.3 Consolas, monospace; }
.sidebar-foot form { margin: 0; }
.sidebar-logout { min-height: 36px; width: 100%; padding: 0 11px; color: #6a7f97; background: transparent; border: 1px solid rgba(119, 164, 217, .20); border-radius: 11px; cursor: pointer; font-size: 10px; font-weight: 700; text-align: left; }
.sidebar-logout:hover { color: #c03952; background: rgba(255, 255, 255, .56); border-color: rgba(201, 60, 85, .18); }
.portal-preview-link { min-height: 36px; display: flex; align-items: center; font-size: 10px; font-weight: 700; text-decoration: none; }

.growth-chart { margin-top: 12px; }
.chart-help { margin-top: 8px; }

.modern-table-wrap { overflow-x: hidden; }
.customer-list-table,
.order-list-table { width: 100%; min-width: 0; }
.modern-table th,
.modern-table td { overflow-wrap: anywhere; }
.customer-list-table th,
.customer-list-table td { width: auto; }
.customer-list-table th:nth-child(1),
.customer-list-table td:nth-child(1) { width: 24%; }
.customer-list-table th:nth-child(2),
.customer-list-table td:nth-child(2),
.customer-list-table th:nth-child(3),
.customer-list-table td:nth-child(3) { width: 15%; }
.customer-list-table th:nth-child(4),
.customer-list-table td:nth-child(4) { width: 13%; }
.customer-list-table th:nth-child(5),
.customer-list-table td:nth-child(5) { width: 33%; }
.customer-list-table .traffic-cell { min-width: 0; }
.customer-list-table .traffic-meter { min-width: 0; flex-wrap: wrap; }
.customer-list-table .traffic-meter progress { width: clamp(52px, 6vw, 82px); flex-basis: clamp(52px, 6vw, 82px); }
.customer-list-table .traffic-meter strong > small { white-space: normal; }
.order-list-table th,
.order-list-table td { width: auto; padding-left: 11px; padding-right: 11px; }
.order-list-table th:nth-child(1),
.order-list-table td:nth-child(1) { width: 4%; }
.order-list-table th:nth-child(2),
.order-list-table td:nth-child(2) { width: 17%; }
.order-list-table th:nth-child(3),
.order-list-table td:nth-child(3) { width: 18%; }
.order-list-table th:nth-child(4),
.order-list-table td:nth-child(4) { width: 12%; }
.order-list-table th:nth-child(5),
.order-list-table td:nth-child(5) { width: 12%; }
.order-list-table th:nth-child(6),
.order-list-table td:nth-child(6) { width: 10%; }
.order-list-table th:nth-child(7),
.order-list-table td:nth-child(7) { width: 15%; }
.order-list-table th:nth-child(8),
.order-list-table td:nth-child(8) { width: 12%; }
.payment-trade-number { display: block; color: #365773; font: 650 10px/1.45 Consolas, monospace; overflow-wrap: anywhere; }

.client-command { min-height: 100px; margin-bottom: 18px; padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.client-command-identity { min-width: 0; display: flex; align-items: center; gap: 15px; }
.client-avatar { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: linear-gradient(145deg, #2eb5ff, #0877ff 58%, #5c55ee); border: 1px solid rgba(255, 255, 255, .70); border-radius: 17px; box-shadow: 0 11px 24px rgba(18, 111, 230, .23), inset 0 1px 1px rgba(255, 255, 255, .40); font-size: 13px; font-weight: 800; }
.client-command-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.client-command-title h2 { margin: 0; color: #112d4f; font-size: 23px; letter-spacing: -.03em; }
.client-command-identity p { margin: 7px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #71859d; font-size: 10px; }
.client-command-identity p b { color: #3f607f; font-family: Consolas, monospace; }
.client-command-identity p span { position: relative; }
.client-command-identity p span::before { content: ""; position: absolute; width: 3px; height: 3px; top: 50%; left: -8px; background: #9bb0c6; border-radius: 50%; transform: translateY(-50%); }
.client-command > form { margin: 0; flex: 0 0 auto; }
.client-console-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }

/* Customer connection management: compact delivery and readable control rows. */
.admin-body .client-detail-page { width: 100%; max-width: 1440px; margin: 0 auto; }
.admin-body .client-console-v2 { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; }
.admin-body .client-console-v2 .client-delivery-card { position: static; padding: 22px; }
.admin-body .client-console-v2 .client-delivery-card h2,
.admin-body .client-console-v2 .client-usage-card h2,
.admin-body .client-console-v2 .client-control-panel h2 { font-size: 16px; }
.admin-body .client-console-v2 .client-delivery-card header p,
.admin-body .client-console-v2 .client-usage-card header p,
.admin-body .client-console-v2 .client-control-panel > header p { font-size: 12px; line-height: 1.6; }
.admin-body .client-subscription-qr { margin: 20px 0; text-align: center; }
.admin-body .client-subscription-qr img { display: block; width: 180px; height: 180px; max-width: 100%; margin: 0 auto; image-rendering: pixelated; border: 10px solid #fff; border-radius: 10px; }
.admin-body .client-subscription-qr p { margin: 10px 0 0; color: #6b8096; font-size: 12px; }
.admin-body .client-subscription-label { display: block; margin-bottom: 8px; color: #234361; font-size: 13px; font-weight: 700; }
.admin-body .client-subscription-link { display: block; width: 100%; min-width: 0; height: auto; min-height: 105px; margin: 0 0 12px; padding: 12px; resize: vertical; overflow-wrap: anywhere; word-break: break-all; color: #375575; background: #f5f9fe; border: 1px solid #dce8f6; border-radius: 10px; font: 12px/1.6 Consolas, monospace; }
.admin-body .client-subscription-download { margin-top: 8px; }
.admin-body .client-delivery-hint { margin: 13px 0 0; color: #74869a; font-size: 11px; line-height: 1.65; }
.admin-body .client-legacy-config { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2ebf6; }
.admin-body .client-legacy-config summary { cursor: pointer; color: #6b8096; font-size: 12px; }
.admin-body .client-legacy-config .client-qr { width: 180px; max-width: 100%; margin: 14px auto; padding: 8px; }
.admin-body .client-console-v2 .client-stat-grid { gap: 14px; }
.admin-body .client-console-v2 .client-stat-grid > div { padding: 0; border: 0; }
.admin-body .client-console-v2 .client-stat-grid dt { font-size: 12px; }
.admin-body .client-console-v2 .client-stat-grid dd { font-size: 14px; line-height: 1.65; }
.admin-body .client-console-v2 .client-remaining-stat dd { color: #0877ff; font-size: 22px; }
.admin-body .client-control-rows { padding: 0 22px; }
.admin-body .client-control-row { display: grid; grid-template-columns: minmax(0, 1fr) 272px; align-items: center; gap: 22px; margin: 0; padding: 22px 0; border-bottom: 1px solid #e7edf5; }
.admin-body .client-control-row:last-child { border-bottom: 0; }
.admin-body .client-control-copy h3 { margin: 0 0 7px; color: #234361; font-size: 14px; }
.admin-body .client-control-copy p { margin: 0; color: #74869a; font-size: 12px; line-height: 1.65; }
.admin-body .client-control-copy output { display: block; margin-top: 7px; color: #1675d3; font-size: 12px; font-weight: 600; }
.admin-body .client-control-edit { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: end; }
.admin-body .client-control-edit label { display: grid; gap: 7px; min-width: 0; color: #607992; font-size: 12px; font-weight: 600; }
.admin-body .client-control-edit input { min-width: 0; width: 100%; height: 42px; font-size: 14px; }
.admin-body .client-control-edit .input-suffix { min-width: 0; width: 100%; }
.admin-body .client-control-edit .input-suffix input { padding-right: 42px; }
.admin-body .client-control-edit .input-suffix em { right: 12px; font-size: 12px; }
.admin-body .client-control-edit .button { min-width: 0; min-height: 42px; padding: 9px 12px; white-space: nowrap; font-size: 13px; }
.admin-body .client-advanced-actions { overflow: hidden; }
.admin-body .client-advanced-actions > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 22px; cursor: pointer; color: #3b5874; font-size: 13px; font-weight: 600; }
.admin-body .client-advanced-actions > summary span { color: #8999aa; font-size: 11px; font-weight: 400; }
.admin-body .client-advanced-actions > div { padding: 0 22px; border-top: 1px solid #e7edf5; }
.admin-body .client-advanced-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 18px 0; }
.admin-body .client-advanced-row + .client-advanced-row { border-top: 1px solid #e7edf5; }
.admin-body .client-advanced-row h3 { margin: 0 0 6px; color: #355371; font-size: 13px; }
.admin-body .client-advanced-row p { margin: 0; color: #74869a; font-size: 12px; }
.admin-body .client-delete-row h3 { color: #b33b54; }
@media (max-width: 1180px) {
  .admin-body .client-console-v2 { grid-template-columns: 280px minmax(0, 1fr); gap: 16px; }
  .admin-body .client-console-v2 .client-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .admin-body .client-control-row { grid-template-columns: 1fr; gap: 14px; }
  .admin-body .client-control-edit { grid-template-columns: minmax(0, 1fr) 104px; }
}
@media (max-width: 900px) {
  .admin-body .client-console-v2 { grid-template-columns: 1fr; }
  .admin-body .client-console-v2 .client-workspace { grid-row: 1; }
}
@media (max-width: 540px) {
  .admin-body .client-console-v2 .client-delivery-card,
  .admin-body .client-console-v2 .client-usage-card { padding: 18px; }
  .admin-body .client-control-rows { padding: 0 18px; }
  .admin-body .client-control-row { padding: 18px 0; }
  .admin-body .client-advanced-actions > summary { padding: 16px 18px; }
  .admin-body .client-advanced-actions > summary span { display: none; }
}
.client-delivery-card { position: sticky; top: 100px; padding: 20px; overflow: hidden; }
.client-delivery-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.client-delivery-card h2,
.client-usage-card h2,
.client-control-panel h2 { margin: 0 0 5px; color: #163553; font-size: 16px; }
.client-delivery-card header p,
.client-usage-card header p,
.client-control-panel > header p { margin: 0; color: #71859c; font-size: 10px; line-height: 1.5; }
.client-qr { margin: 18px 0 14px; padding: 13px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(121, 165, 216, .28); border-radius: 17px; box-shadow: inset 0 1px 0 white; }
.client-qr img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.client-security-note { margin-bottom: 15px; padding: 11px 12px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 9px; color: #607992; background: rgba(236, 246, 255, .72); border: 1px solid rgba(113, 165, 220, .18); border-radius: 13px; }
.client-security-note svg { width: 22px; height: 22px; fill: none; stroke: #167ee7; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.client-security-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.client-workspace { min-width: 0; display: grid; gap: 18px; }
.client-usage-card { padding: 22px; }
.client-usage-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.usage-reading { text-align: right; }
.usage-reading strong { display: block; color: #0877ff; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.usage-reading span { display: block; margin-top: 4px; color: #8193a8; font-size: 9px; }
.client-usage-meter { margin: 19px 0 17px; padding: 4px; background: rgba(230, 239, 250, .82); border-radius: 999px; }
.client-usage-meter progress { height: 10px; }
.client-stat-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client-stat-grid > div { min-width: 0; padding: 3px 17px; border-right: 1px solid rgba(126, 169, 218, .20); }
.client-stat-grid > div:first-child { padding-left: 0; }
.client-stat-grid > div:last-child { padding-right: 0; border-right: 0; }
.client-stat-grid dt { margin-bottom: 7px; color: #7a8da4; font-size: 9px; }
.client-stat-grid dd { margin: 0; color: #244564; font: 700 11px/1.45 Consolas, "Microsoft YaHei UI", monospace; overflow-wrap: anywhere; }
.client-control-panel { overflow: hidden; }
.client-control-panel > header { padding: 19px 21px; border-bottom: 1px solid rgba(129, 171, 220, .20); }
.client-control-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-control-card { min-width: 0; padding: 17px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(145px, .8fr); align-items: end; gap: 14px; background: rgba(247, 251, 255, .68); border: 1px solid rgba(126, 170, 221, .20); border-radius: 16px; }
.client-control-card > div:first-of-type { align-self: start; }
.client-control-card h3 { margin: 0 0 5px; color: #244361; font-size: 13px; }
.client-control-card p { margin: 0; color: #74889f; font-size: 9px; line-height: 1.55; }
.client-control-card label { min-width: 0; display: grid; gap: 6px; color: #526b85; font-size: 9px; font-weight: 700; }
.client-control-card .button { grid-column: 1 / -1; min-height: 38px; }
.client-reset-note { min-height: 44px; display: flex; align-items: center; color: #6b8199; font-size: 9px; }
.client-danger-zone { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 247, 249, .72); border-color: rgba(204, 67, 92, .20); }
.client-danger-zone h3 { margin: 0 0 5px; color: #a72f47; font-size: 13px; }
.client-danger-zone p { margin: 0; color: #8d6570; font-size: 9px; line-height: 1.55; }
.client-danger-zone form { margin: 0; flex: 0 0 auto; }

.system-health-hero { margin-bottom: 18px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.system-health-copy { min-width: 0; display: flex; align-items: center; gap: 14px; }
.system-health-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; color: white; border-radius: 17px; }
.system-health-icon.active { background: linear-gradient(145deg, #37d1ad, #0d9d76); box-shadow: 0 11px 25px rgba(16, 158, 120, .20); }
.system-health-icon.down { background: linear-gradient(145deg, #ef7187, #c93c55); box-shadow: 0 11px 25px rgba(188, 51, 78, .18); }
.system-health-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.system-health-copy h2 { margin: 0 0 5px; color: #133453; font-size: 19px; letter-spacing: -.02em; }
.system-health-copy p { margin: 0; color: #6f849c; font-size: 10px; line-height: 1.55; }
.system-health-facts { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.system-health-facts span { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; color: #52708d; background: rgba(238, 247, 255, .72); border: 1px solid rgba(118, 165, 216, .20); border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.system-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.system-metric-card { min-height: 148px; padding: 18px; }
.system-metric-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #698099; font-size: 10px; font-weight: 700; }
.system-metric-card > div svg { width: 20px; height: 20px; fill: none; stroke: #2387ec; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.system-metric-card > strong { display: block; margin: 20px 0 12px; color: #173b5f; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.system-metric-card > strong em { color: #7a8da4; font-size: 10px; font-style: normal; font-weight: 650; }
.system-metric-card progress { margin-bottom: 9px; }
.system-metric-card small { color: #768aa0; font-size: 9px; line-height: 1.5; }
.system-console-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.system-services-card { overflow: hidden; }
.system-services-card > header,
.system-node-card > header,
.admin-password-card > header { padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(129, 171, 220, .20); }
.system-services-card h2,
.system-node-card h2,
.admin-password-card h2 { margin: 0 0 5px; color: #173754; font-size: 15px; }
.system-services-card header p,
.system-node-card header p,
.admin-password-card header p { margin: 0; color: #74889f; font-size: 9px; line-height: 1.5; }
.system-service-grid { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.system-service-item { min-width: 0; min-height: 82px; padding: 13px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: rgba(247, 251, 255, .68); border: 1px solid rgba(126, 170, 221, .19); border-radius: 14px; }
.service-state-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; }
.service-state-icon.active { background: rgba(18, 160, 122, .10); }
.service-state-icon.down { background: rgba(201, 60, 85, .10); }
.service-state-icon i { width: 9px; height: 9px; display: block; border-radius: 50%; }
.service-state-icon.active i { background: #15a67d; box-shadow: 0 0 0 4px rgba(21, 166, 125, .11); }
.service-state-icon.down i { background: #c93c55; box-shadow: 0 0 0 4px rgba(201, 60, 85, .10); }
.system-service-item div { min-width: 0; }
.system-service-item b,
.system-service-item small { display: block; }
.system-service-item b { color: #294967; font-size: 11px; }
.system-service-item small { margin-top: 5px; overflow: hidden; color: #8294aa; font: 9px/1.3 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.system-service-item > strong { font-size: 9px; white-space: nowrap; }
.system-side-stack { min-width: 0; display: grid; gap: 18px; }
.system-node-card { overflow: hidden; }
.system-node-card > header,
.admin-password-card > header { display: block; }
.system-node-card dl { margin: 0; padding: 7px 20px; }
.system-node-card dl > div { min-height: 44px; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(126, 169, 218, .17); }
.system-node-card dl > div:last-child { border-bottom: 0; }
.system-node-card dt { color: #74889f; font-size: 10px; }
.system-node-card dd { margin: 0; color: #264766; font: 700 10px/1.45 Consolas, "Microsoft YaHei UI", monospace; text-align: right; overflow-wrap: anywhere; }
.system-security-note { margin: 4px 20px 18px; min-height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 9px; color: #28745f; background: rgba(230, 248, 242, .70); border: 1px solid rgba(21, 156, 117, .18); border-radius: 12px; font-size: 9px; font-weight: 700; }
.system-security-note i { width: 8px; height: 8px; background: #17a77e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(23, 167, 126, .10); }
.admin-password-card { scroll-margin-top: 100px; overflow: hidden; }
.admin-password-card form { padding: 18px 20px 20px; display: grid; gap: 13px; }
.password-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-password-card .field-error { min-height: 15px; color: #b5304b; font-size: 9px; line-height: 1.5; }

@media (max-width: 1280px) {
  .client-control-card { grid-template-columns: 1fr; }
  .client-control-card .button { grid-column: auto; }
  .system-console-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 1180px) {
  .order-list-table thead { display: none; }
  .order-list-table,
  .order-list-table tbody { display: block; }
  .order-list-table tbody { padding: 12px; }
  .order-list-table tbody tr:not(.table-empty-row) { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: rgba(252, 254, 255, .76); border: 1px solid rgba(126, 170, 221, .22); border-radius: 15px; }
  .order-list-table tbody tr:not(.table-empty-row):last-child { margin-bottom: 0; }
  .order-list-table tbody tr:not(.table-empty-row) td { width: auto; min-height: 56px; height: auto; padding: 11px 13px; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; border-right: 1px solid rgba(126, 170, 221, .15); white-space: normal; }
  .order-list-table tbody tr:not(.table-empty-row) td::before { content: attr(data-label); color: #7a8da4; font-size: 9px; font-weight: 700; }
  .order-list-table tbody tr:not(.table-empty-row) td.selection-column { grid-column: 1 / -1; min-height: 42px; padding: 0 10px !important; display: flex; justify-content: flex-start; background: rgba(237, 246, 255, .64); border-right: 0; }
  .order-list-table tbody tr:not(.table-empty-row) td.selection-column::before { content: "勾选此订单"; margin-left: 4px; order: 2; }
  .order-list-table tbody tr:not(.table-empty-row) td:nth-child(even) { border-right: 0; }
  .order-list-table .order-row-actions { min-height: 24px; }
  .order-list-table .table-empty-row { display: block; }
  .order-list-table .table-empty-row td { width: 100%; display: block; }
  .system-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-console-grid { grid-template-columns: 1fr; }
  .system-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .customer-list-table thead { display: none; }
  .customer-list-table,
  .customer-list-table tbody { display: block; }
  .customer-list-table tbody { padding: 12px; }
  .customer-list-table tbody tr:not(.table-empty-row) { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: rgba(252, 254, 255, .76); border: 1px solid rgba(126, 170, 221, .22); border-radius: 15px; }
  .customer-list-table tbody tr:not(.table-empty-row):last-child { margin-bottom: 0; }
  .customer-list-table tbody tr:not(.table-empty-row) td { width: auto; min-height: 56px; height: auto; padding: 11px 13px; display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 10px; border-right: 1px solid rgba(126, 170, 221, .15); white-space: normal; }
  .customer-list-table tbody tr:not(.table-empty-row) td::before { content: attr(data-label); color: #7a8da4; font-size: 9px; font-weight: 700; }
  .customer-list-table tbody tr:not(.table-empty-row) td:first-child,
  .customer-list-table tbody tr:not(.table-empty-row) td:last-child { grid-column: 1 / -1; border-right: 0; }
  .customer-list-table tbody tr:not(.table-empty-row) td:nth-child(3) { border-right: 0; }
  .customer-list-table .traffic-cell { width: 100%; }
  .customer-list-table .traffic-meter { flex-wrap: nowrap; }
  .customer-list-table .traffic-meter progress { width: min(120px, 34%); flex-basis: min(120px, 34%); }
  .customer-list-table .table-empty-row { display: block; }
  .customer-list-table .table-empty-row td { width: 100%; display: block; }
  .client-console-layout { grid-template-columns: 1fr; }
  .client-delivery-card { position: static; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px 18px; }
  .client-delivery-card > header { grid-column: 1 / -1; }
  .client-qr { grid-row: 2 / span 2; margin: 0; }
  .client-security-note { margin: 0; align-self: end; }
  .client-delivery-card > .button { align-self: start; }
  .client-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 0; }
  .client-stat-grid > div:nth-child(2) { border-right: 0; }
  .client-stat-grid > div:nth-child(3) { padding-left: 0; }
  .system-side-stack { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .admin-auth-shell { width: min(100% - 24px, 480px); padding: 24px 0; }
  .admin-auth-card { padding: 29px 22px; border-radius: 25px; }
  .admin-auth-heading h1 { font-size: 27px; }
  .client-command { align-items: stretch; flex-direction: column; }
  .client-command > form,
  .client-command > form .button { width: 100%; }
  .client-command-identity { align-items: flex-start; }
  .client-console-layout { gap: 14px; }
  .client-delivery-card { display: block; padding: 18px; }
  .client-qr { width: min(100%, 280px); margin: 16px auto 13px; }
  .client-security-note { margin-bottom: 13px; }
  .client-stat-grid { grid-template-columns: 1fr; gap: 0; }
  .client-stat-grid > div { padding: 11px 0; border-right: 0; border-bottom: 1px solid rgba(126, 169, 218, .18); }
  .client-stat-grid > div:last-child { border-bottom: 0; }
  .client-control-grid { grid-template-columns: 1fr; padding: 12px; }
  .client-control-card { padding: 15px; }
  .client-danger-zone { align-items: stretch; flex-direction: column; }
  .client-danger-zone form,
  .client-danger-zone .button { width: 100%; }
  .system-health-hero { align-items: flex-start; flex-direction: column; }
  .system-health-facts { width: 100%; justify-content: flex-start; }
  .system-metric-grid { grid-template-columns: 1fr; }
  .system-service-grid { grid-template-columns: 1fr; }
  .password-pair { grid-template-columns: 1fr; }
  .order-list-table tbody tr:not(.table-empty-row),
  .customer-list-table tbody tr:not(.table-empty-row) { grid-template-columns: 1fr; }
  .order-list-table tbody tr:not(.table-empty-row) td,
  .customer-list-table tbody tr:not(.table-empty-row) td { border-right: 0; }
  .order-list-table tbody tr:not(.table-empty-row) td.selection-column,
  .customer-list-table tbody tr:not(.table-empty-row) td:first-child,
  .customer-list-table tbody tr:not(.table-empty-row) td:last-child { grid-column: auto; }
}

* { box-sizing: border-box; }
html { min-width: 320px; color: var(--text); background: var(--canvas); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 16px 18px; color: #d9e1ec; background: var(--sidebar); border-right: 1px solid #263244; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 21px; color: white; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--primary); border-radius: 10px; font: 700 15px/1 Consolas, monospace; letter-spacing: -.02em; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.brand-copy strong { display: block; font-size: 17px; line-height: 1.1; letter-spacing: .04em; }
.brand-copy small { display: block; margin-top: 5px; color: #8290a4; font: 600 9px/1 Consolas, monospace; letter-spacing: .12em; }
.live-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; background: #4ed7a5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(78, 215, 165, .11); }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-label { padding: 0 13px 7px; color: #68768a; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.nav-label-spaced { margin-top: 19px; }
.nav-link { min-height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: #aeb9c8; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; transition: color .15s ease, background .15s ease; }
.nav-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { color: white; background: rgba(255, 255, 255, .055); }
.nav-link.active { color: white; background: var(--primary); }
.sidebar-foot { margin-top: auto; padding: 16px 12px 2px; border-top: 1px solid #2a3546; }
.secure-row { display: flex; align-items: center; gap: 9px; color: #b9c4d3; font-size: 11px; font-weight: 600; }
.sidebar-foot small { display: block; margin-top: 9px; color: #748196; font: 10px/1.4 Consolas, monospace; }
.nav-scrim { display: none; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 30; top: 0; min-height: 72px; padding: 11px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.title-group { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { margin: 0; overflow: hidden; color: var(--text); font-size: 22px; line-height: 1.2; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.nav-toggle { width: 40px; height: 40px; display: none; place-content: center; gap: 4px; padding: 0; background: white; border: 1px solid var(--border); border-radius: 8px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 26px 28px 48px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { min-height: 72px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0 0 5px; font-size: 16px; line-height: 1.2; }
.panel-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
h2, h3, p { margin-top: 0; }

.button { min-height: 38px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text); background: white; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.2; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .68; transform: none; }
.button.primary { color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 14px rgba(37, 99, 235, .18); }
.button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.secondary, .button.ghost { color: #344054; background: white; border-color: var(--border-strong); }
.button.secondary:hover, .button.ghost:hover { background: var(--surface-soft); }
.button.success { color: white; background: var(--success); border-color: var(--success); }
.button.warning { color: #92400e; background: var(--warning-soft); border-color: #f1c78e; }
.button.danger { color: white; background: var(--danger); border-color: var(--danger); }
.button.full { width: 100%; }
.button.table-button { min-height: 32px; padding: 6px 12px; color: var(--primary-dark); background: var(--primary-soft); border-color: #d7e4ff; font-size: 12px; }
.text-link, .row-action { color: var(--primary); text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.button:focus-visible, input:focus-visible, a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }

.flash-stack { position: fixed; z-index: 80; top: 88px; right: 24px; display: grid; gap: 9px; }
.flash { max-width: 430px; padding: 13px 16px; color: white; border-radius: 9px; box-shadow: 0 14px 36px rgba(16, 24, 40, .18); font-size: 13px; font-weight: 600; }
.flash.success { background: var(--success); }
.flash.error { background: var(--danger); }
.system-error { margin-bottom: 18px; padding: 13px 16px; color: #8d2323; background: var(--danger-soft); border: 1px solid #efcaca; border-radius: 9px; font-size: 13px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card { min-width: 0; min-height: 146px; padding: 19px 20px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 8px; font-size: 11px; font-weight: 800; }
.kpi-icon.success { color: var(--success); background: var(--success-soft); }
.kpi-value { display: block; margin: 14px 0 6px; overflow: hidden; font: 700 25px/1.1 "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card > small { color: var(--muted); font-size: 11px; }
.kpi-card progress { margin-top: 11px; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }

progress { width: 100%; height: 6px; display: block; overflow: hidden; appearance: none; border: 0; background: #e8edf3; border-radius: 99px; }
progress::-webkit-progress-bar { background: #e8edf3; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 99px; }
progress.large { height: 9px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-top: 16px; align-items: start; }
.table-panel, .user-manager { overflow: hidden; }
.node-panel { overflow: hidden; }
.node-facts { margin: 0; padding: 8px 20px; }
.node-facts > div, .info-list > div { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.node-facts > div:last-child, .info-list > div:last-child { border-bottom: 0; }
.node-facts dt, .info-list dt { color: var(--muted); font-size: 12px; }
.node-facts dd, .info-list dd { margin: 0; color: var(--text); font: 600 12px/1.4 Consolas, "Microsoft YaHei UI", monospace; text-align: right; }
.service-mini-list { margin: 0 20px 16px; padding: 9px 13px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; }
.service-mini-list > div { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.service-mini-list span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.service-mini-list b { color: var(--success); font-size: 11px; }
.node-panel > .button { width: calc(100% - 40px); margin: 0 20px 20px; }
.service-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; }
.service-dot.active { background: var(--success); box-shadow: 0 0 0 3px rgba(22, 133, 91, .10); }
.service-dot.down { background: var(--danger); box-shadow: 0 0 0 3px rgba(196, 50, 50, .10); }

.table-wrap { width: 100%; overflow-x: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 15px; color: #667085; background: var(--surface-soft); border-bottom: 1px solid var(--border); text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
td { padding: 14px 15px; color: #344054; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
td small { display: block; margin-top: 4px; color: var(--faint); font: 10px/1.2 Consolas, monospace; }
.client-name { display: block; color: var(--primary-dark); font: 700 12px/1.3 Consolas, monospace; text-decoration: none; }
.client-name.inline { display: inline; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status.active { color: var(--success); background: var(--success-soft); }
.status.disabled { color: #667085; background: #edf0f3; }
.status.expired, .status.exhausted { color: var(--danger); background: var(--danger-soft); }
.usage-cell { min-width: 150px; }
.usage-cell.wide { min-width: 185px; }
.usage-cell progress { margin-top: 7px; }
.handshake { color: var(--muted); }
.handshake.online { color: var(--success); font-weight: 700; }
.align-right { text-align: right; }
.note-cell { max-width: 190px; display: block; overflow: hidden; text-overflow: ellipsis; }
.compact-empty { min-height: 190px; padding: 30px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.compact-empty h3 { margin: 0 0 5px; font-size: 15px; }
.compact-empty p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--primary-soft); border-radius: 10px; font-size: 20px; font-weight: 700; }
.compact-empty .button { margin-left: 10px; }

.manager-toolbar { min-height: 74px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.filter-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; overflow-x: hidden; }
.filter-tabs a { padding: 8px 10px; color: var(--muted); border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-tabs a:hover { background: var(--surface-soft); }
.filter-tabs a.active { color: var(--primary-dark); background: var(--primary-soft); }
.filter-tabs b { margin-left: 3px; font-size: 10px; }
.search-form { width: min(340px, 100%); height: 38px; display: flex; align-items: center; flex: 0 0 auto; overflow: hidden; background: white; border: 1px solid var(--border-strong); border-radius: 8px; }
.search-form svg { width: 17px; height: 17px; margin-left: 11px; flex: 0 0 auto; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; }
.search-form input { min-width: 0; height: 100%; flex: 1; padding: 0 9px; border: 0; outline: none; }
.search-form button { height: 100%; padding: 0 13px; color: var(--primary); background: var(--primary-soft); border: 0; border-left: 1px solid #dbe6fb; cursor: pointer; font-size: 11px; font-weight: 700; }
.empty-state { min-height: 360px; padding: 50px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-state h2 { margin: 15px 0 7px; font-size: 17px; }
.empty-state p { max-width: 430px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state.small { min-height: 300px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.form-panel, .guide-panel { overflow: hidden; }
.step-badge, .lock-badge { padding: 5px 8px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 6px; font: 700 10px/1 Consolas, monospace; }
.create-form { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; }
.field, .control-card label { display: grid; gap: 7px; color: #344054; font-size: 12px; font-weight: 700; }
.field > span b { color: var(--danger); }
.field small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.55; }
.full-span { grid-column: 1 / -1; }
input { width: 100%; height: 40px; padding: 0 11px; color: var(--text); background: white; border: 1px solid var(--border-strong); border-radius: 8px; }
input::placeholder { color: #a7b0bd; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 48px; }
.input-suffix em { position: absolute; top: 50%; right: 12px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; transform: translateY(-50%); }
.form-actions { padding-top: 5px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); }
.form-actions .button { margin-top: 15px; }
.guide-panel { padding: 22px; }
.guide-panel h2 { margin-bottom: 22px; font-size: 16px; }
.delivery-steps { margin: 0; padding: 0; display: grid; gap: 21px; list-style: none; }
.delivery-steps li { display: flex; gap: 13px; }
.delivery-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary-dark); background: var(--primary-soft); border-radius: 50%; font: 700 11px/1 Consolas, monospace; }
.delivery-steps b { display: block; margin: 1px 0 5px; font-size: 12px; }
.delivery-steps p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.guardrail { margin-top: 25px; padding: 14px; background: #fff9ed; border: 1px solid #f2dfb7; border-radius: 9px; }
.guardrail strong, .guardrail span { display: block; }
.guardrail strong { margin-bottom: 5px; color: #8a4b08; font-size: 11px; }
.guardrail span { color: #92641c; font-size: 10px; line-height: 1.5; }

.client-summary { min-height: 88px; margin-bottom: 16px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.client-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--primary); border-radius: 11px; font: 700 13px/1 Consolas, monospace; }
.summary-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.summary-title h2 { margin: 0; font: 700 19px/1.2 Consolas, "Microsoft YaHei UI", monospace; }
.client-identity p { margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-layout { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 16px; align-items: start; }
.delivery-panel { position: sticky; top: 88px; overflow: hidden; }
.qr-frame { margin: 20px 20px 14px; padding: 13px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.qr-frame img { width: 100%; display: block; image-rendering: pixelated; }
.security-note { margin: 0 20px 15px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.delivery-panel > .button { width: calc(100% - 40px); margin: 0 20px 20px; }
.detail-main { display: grid; gap: 16px; }
.usage-panel { overflow: hidden; }
.usage-percent { color: var(--primary); font: 700 21px/1 Consolas, monospace; }
.usage-body { padding: 20px; }
.stat-row { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-row > div { min-width: 0; padding-right: 12px; border-right: 1px solid var(--border); }
.stat-row > div:last-child { border-right: 0; }
.stat-row span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.stat-row b { display: block; overflow: hidden; font: 700 12px/1.3 Consolas, "Microsoft YaHei UI", monospace; text-overflow: ellipsis; white-space: nowrap; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.control-card { padding: 19px; display: flex; flex-direction: column; }
.control-kicker { margin-bottom: 8px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.control-card h3 { margin: 0 0 6px; font-size: 14px; }
.control-card p { min-height: 34px; margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.control-card label { margin-bottom: 11px; }
.control-card .button { margin-top: auto; }
.control-spacer { min-height: 59px; }
.danger-zone { padding: 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fffafa; border-color: #efd1d1; }
.danger-zone > div > span { display: block; margin-bottom: 6px; color: var(--danger); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.danger-zone h3 { margin: 0 0 5px; font-size: 14px; }
.danger-zone p { margin: 0; color: #8a5c5c; font-size: 10px; line-height: 1.5; }

.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.resource-card { min-height: 135px; padding: 19px; }
.resource-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.resource-card > strong { display: block; margin: 15px 0 9px; overflow: hidden; font: 700 19px/1.2 "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.resource-card > strong em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 600; }
.resource-card progress { margin-bottom: 8px; }
.resource-card small { color: var(--muted); font-size: 10px; }
.system-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; margin-top: 16px; align-items: start; }
.service-list { padding: 4px 20px; }
.service-list > div { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.service-list > div:last-child { border-bottom: 0; }
.service-list > div > span { display: grid; grid-template-columns: 8px auto; align-items: center; column-gap: 10px; }
.service-list b { font-size: 12px; }
.service-list small { grid-column: 2; margin-top: 3px; color: var(--faint); font: 9px/1.2 Consolas, monospace; }
.service-list > div > strong { font-size: 11px; }
.info-list { margin: 0; padding: 6px 20px; }
.security-banner { margin: 8px 20px 20px; padding: 14px; color: #2457a6; background: var(--primary-soft); border: 1px solid #d7e4ff; border-radius: 9px; }
.security-banner strong { display: block; margin-bottom: 5px; font-size: 11px; }
.security-banner p { margin: 0; font-size: 10px; line-height: 1.6; }

.mono { font-family: Consolas, monospace; }
.result { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.result.success { color: var(--success); background: var(--success-soft); }
.result.failed { color: var(--danger); background: var(--danger-soft); }

@media (max-width: 1180px) {
  .kpi-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .node-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .node-panel .panel-head { grid-column: 1 / -1; }
  .node-panel > .button { align-self: end; }
  .system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .main-shell { margin-left: 0; }
  .nav-toggle { display: grid; }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .nav-scrim { position: fixed; z-index: 40; inset: 0; display: block; padding: 0; background: rgba(15, 23, 42, .48); border: 0; }
  .manager-toolbar { align-items: stretch; flex-direction: column; }
  .search-form { width: 100%; }
  .form-layout, .detail-layout { grid-template-columns: 1fr; }
  .delivery-panel { position: static; }
  .delivery-panel .qr-frame { max-width: 360px; margin-left: auto; margin-right: auto; }
  .delivery-panel .security-note, .delivery-panel > .button { max-width: 360px; margin-left: auto; margin-right: auto; }
  .delivery-panel > .button { display: flex; margin-bottom: 20px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 66px; padding: 9px 14px; }
  .topbar h1 { font-size: 18px; }
  .content { padding: 16px 12px 34px; }
  .top-actions .button.ghost { display: none; }
  .button { min-height: 36px; padding-left: 11px; padding-right: 11px; font-size: 12px; }
  .kpi-grid, .resource-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card, .resource-card { min-height: 126px; padding: 15px; }
  .kpi-value { font-size: 20px; }
  .dashboard-grid { gap: 10px; margin-top: 10px; }
  .node-panel { display: block; }
  .manager-toolbar { padding: 12px; }
  .filter-tabs { width: 100%; }
  .create-form { padding: 18px; grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .client-summary { align-items: stretch; flex-direction: column; }
  .client-summary form, .client-summary .button { width: 100%; }
  .client-identity p { white-space: normal; }
  .control-grid, .stat-row { grid-template-columns: 1fr; }
  .stat-row > div { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-row > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .danger-zone form, .danger-zone .button { width: 100%; }
  .compact-empty { align-items: flex-start; flex-direction: column; }
  .compact-empty .button { width: 100%; margin: 4px 0 0; }
  .flash-stack { top: 76px; left: 12px; right: 12px; }
  .flash { max-width: none; }
}

@media (max-width: 420px) {
  .kpi-grid, .resource-grid { grid-template-columns: 1fr; }
  .top-actions .button.primary { padding-left: 9px; padding-right: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.sidebar { overflow-y: auto; }
.portal-preview-link { margin: 0 0 14px; display: block; color: #8fb5ff; font-size: 11px; font-weight: 700; text-decoration: none; }
.business-kpis .kpi-value { font-size: 24px; }
.business-strip { margin-top: 16px; padding: 7px 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.business-strip > div { min-width: 0; padding: 12px 15px; border-right: 1px solid var(--border); }
.business-strip > div:last-child { border-right: 0; }
.business-strip span, .business-strip b { display: block; }
.business-strip span { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.business-strip b { overflow: hidden; font: 700 13px/1.2 Consolas, "Microsoft YaHei UI", monospace; text-overflow: ellipsis; white-space: nowrap; }
.growth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-panel { min-width: 0; overflow: hidden; }
.chart-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.chart-legend i.registered { background: var(--primary); }
.chart-legend i.payer { background: #17a673; }
.bar-chart { min-height: 220px; padding: 21px 17px 15px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; align-items: end; overflow-x: hidden; }
.bar-chart.monthly { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bar-column { min-width: 0; display: grid; justify-items: center; }
.bar-values { width: 100%; min-height: 17px; display: flex; justify-content: center; gap: 5px; color: var(--faint); font: 600 8px/1 Consolas, monospace; }
.bar-values b:last-child { color: var(--success); }
.bar-pair { width: 100%; height: 138px; display: flex; align-items: stretch; justify-content: center; gap: 3px; }
.bar-stack { width: min(12px, 40%); display: flex; flex-direction: column; gap: 2px; }
.bar-stack i { flex: 1; background: #edf1f5; border-radius: 2px; }
.bar-stack.registered i.filled { background: var(--primary); }
.bar-stack.payer i.filled { background: var(--success); }
.bar-column small { margin-top: 8px; color: var(--faint); font: 8px/1 Consolas, monospace; white-space: nowrap; }
.order-number, .account-name { color: #344054; font: 700 11px/1.3 Consolas, monospace; }
.order-status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.order-status.pending { color: var(--warning); background: var(--warning-soft); }
.order-status.paid, .order-status.active { color: var(--success); background: var(--success-soft); }
.order-status.cancelled, .order-status.disabled { color: #667085; background: #edf0f3; }
.order-status.failed, .order-status.refunded, .order-status.expired { color: var(--danger); background: var(--danger-soft); }
.count-badge { padding: 6px 9px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 7px; font-size: 10px; font-weight: 700; }
.customer-panel, .order-manager { overflow: hidden; }
.toolbar-note, .muted-text { color: var(--muted); font-size: 10px; }
.payment-confirm { position: relative; display: inline-block; text-align: left; }
.payment-confirm summary { color: var(--primary); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.payment-confirm summary::-webkit-details-marker { display: none; }
.payment-confirm[open] form { position: fixed; z-index: 90; top: 50%; left: 50%; width: min(390px, calc(100vw - 28px)); padding: 20px; display: grid; gap: 13px; background: white; border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 24px 70px rgba(15, 23, 42, .25); transform: translate(-50%, -50%); }
.payment-confirm[open]::before { content: ""; position: fixed; z-index: 80; inset: 0; background: rgba(15, 23, 42, .5); }
.payment-confirm label { display: grid; gap: 6px; font-size: 11px; font-weight: 700; }
.configuration-banner { margin-bottom: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #74440c; background: #fff9ed; border: 1px solid #f0deb8; border-radius: var(--radius); }
.configuration-banner strong { display: block; margin-bottom: 4px; font-size: 13px; }
.configuration-banner p { margin: 0; font-size: 11px; line-height: 1.6; }
.configuration-banner > span { flex: 0 0 auto; font: 10px Consolas, monospace; }
.plan-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-admin-card { padding: 20px; display: grid; gap: 16px; }
.plan-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.plan-admin-head > div > span { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.plan-admin-head h2 { margin: 5px 0 0; font-size: 17px; }
.plan-admin-card > label { display: grid; gap: 7px; color: #344054; font-size: 11px; font-weight: 700; }
.switch-row { grid-template-columns: 18px 1fr; align-items: start; padding: 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; }
.switch-row input { width: 16px; height: 16px; margin: 1px 0 0; }
.switch-row b, .switch-row small { display: block; }
.switch-row small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.5; }
.renewal-policy { margin-top: 16px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.renewal-policy h2 { margin: 0 0 5px; font-size: 15px; }
.renewal-policy p { margin: 0; color: var(--muted); font-size: 10px; }
.policy-flow { display: flex; align-items: center; gap: 13px; }
.policy-flow > span { padding: 10px 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; }
.policy-flow b, .policy-flow small { display: block; }
.policy-flow b { margin-bottom: 4px; font-size: 10px; }
.policy-flow small { color: var(--muted); font-size: 9px; }
.policy-flow > i { color: var(--primary); font-style: normal; }

.portal-body { color: #172033; background: #f7f8fb; }
.portal-header { min-height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: white; border-bottom: 1px solid #e4e8ee; }
.portal-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.portal-brand > span:last-child strong { display: block; font-size: 15px; }
.portal-brand > span:last-child small { display: block; margin-top: 4px; color: var(--faint); font: 8px/1 Consolas, monospace; letter-spacing: .12em; }
.portal-header nav { display: flex; align-items: center; gap: 20px; }
.portal-header nav > a { color: #475467; text-decoration: none; font-size: 12px; font-weight: 600; }
.portal-header nav form { margin: 0; }
.portal-header nav form button { padding: 5px 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.customer-name { max-width: 160px; overflow: hidden; color: var(--primary-dark); font: 700 11px/1 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.portal-main { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 132px); margin: 0 auto; padding: 48px 0 64px; }
.portal-flashes { position: fixed; z-index: 80; top: 86px; right: 24px; display: grid; gap: 8px; }
.portal-footer { min-height: 60px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); background: white; border-top: 1px solid var(--border); font-size: 9px; }
.store-hero { min-height: 300px; padding: 42px 46px; display: flex; align-items: center; justify-content: space-between; gap: 50px; color: white; background: #111827; border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, .12); }
.store-hero > div { max-width: 720px; }
.hero-kicker { display: block; margin-bottom: 16px; color: #89afff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.store-hero h1 { max-width: 670px; margin: 0 0 16px; font-size: clamp(34px, 4vw, 54px); line-height: 1.12; letter-spacing: -.035em; }
.store-hero p { max-width: 650px; margin: 0; color: #b5c0d0; font-size: 13px; line-height: 1.8; }
.hero-actions { margin-top: 25px; display: flex; gap: 10px; }
.store-hero aside { min-width: 180px; padding: 20px; text-align: center; background: #1f2937; border: 1px solid #334155; border-radius: 13px; }
.store-hero aside .live-dot { margin: 0 auto 13px; display: block; }
.store-hero aside b, .store-hero aside small { display: block; }
.store-hero aside b { font-size: 14px; }
.store-hero aside small { margin-top: 7px; color: #94a3b8; font: 9px Consolas, monospace; }
.store-section { padding: 64px 0 30px; }
.store-heading { max-width: 680px; margin-bottom: 25px; }
.store-heading > span { display: block; margin-bottom: 8px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.store-heading h2 { margin: 0 0 9px; font-size: 28px; }
.store-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.store-heading.compact { margin-bottom: 18px; }
.store-heading.compact h2 { font-size: 21px; }
.store-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-plan { padding: 25px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.store-plan.featured { border-color: #9bbcff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px rgba(37, 99, 235, .10); }
.store-plan-top { display: flex; align-items: center; justify-content: space-between; color: var(--primary); font-size: 10px; font-weight: 700; }
.store-plan-top b { padding: 4px 7px; color: white; background: var(--primary); border-radius: 5px; font-size: 8px; }
.store-plan h3 { margin: 14px 0 18px; font-size: 18px; }
.store-price { min-height: 55px; }
.store-price strong, .store-price small { display: block; }
.store-price strong { font: 700 27px/1.2 "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; }
.store-price small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.store-plan ul { margin: 20px 0; padding: 17px 0; display: grid; gap: 11px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); list-style: none; }
.store-plan li { position: relative; padding-left: 17px; color: #475467; font-size: 11px; }
.store-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.button.disabled { color: #98a2b3; background: #f2f4f7; border-color: #e4e7ec; cursor: not-allowed; box-shadow: none; transform: none; }
.store-benefits { padding: 28px 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--border); }
.store-benefits article { padding: 20px; }
.store-benefits article > span { color: var(--primary); font: 700 10px Consolas, monospace; }
.store-benefits h3 { margin: 10px 0 7px; font-size: 14px; }
.store-benefits p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-shell { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: center; gap: 70px; }
.auth-copy { padding: 30px; }
.auth-copy > span, .account-heading > div > span { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.auth-copy h1 { max-width: 600px; margin: 13px 0 16px; font-size: clamp(35px, 4vw, 51px); line-height: 1.13; letter-spacing: -.035em; }
.auth-copy > p { max-width: 600px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-copy ul { margin: 24px 0 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.auth-copy li { color: #475467; font-size: 11px; }
.auth-copy li::before { content: "✓"; margin-right: 8px; color: var(--success); font-weight: 800; }
.auth-card { padding: 28px; display: grid; gap: 17px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 23, 42, .08); }
.auth-card h2 { margin: 0 0 -10px; font-size: 23px; }
.auth-card > p { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.auth-card > p a { color: var(--primary); font-weight: 700; }
.auth-card label { display: grid; gap: 7px; color: #344054; font-size: 11px; font-weight: 700; }
.auth-card > small { color: var(--faint); font-size: 9px; line-height: 1.5; text-align: center; }
.account-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.account-heading h1 { margin: 10px 0 7px; font-size: 31px; }
.account-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.subscription-card { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow); }
.subscription-card.active { border-color: #b9dfd1; }
.subscription-main { padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.subscription-title h2 { margin: 9px 0 4px; font-size: 21px; }
.subscription-title p { margin: 0; color: var(--muted); font: 10px Consolas, monospace; }
.subscription-dates { text-align: right; }
.subscription-dates span, .subscription-dates strong, .subscription-dates small { display: block; }
.subscription-dates span { color: var(--muted); font-size: 10px; }
.subscription-dates strong { margin: 6px 0 5px; font-size: 15px; }
.subscription-dates small { color: var(--success); font-size: 9px; }
.subscription-content { padding: 24px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; }
.account-qr img { width: 100%; padding: 9px; display: block; background: white; border: 1px solid var(--border); border-radius: 10px; image-rendering: pixelated; }
.account-qr p { margin: 9px 0 12px; color: var(--muted); font-size: 9px; text-align: center; }
.account-usage { padding: 17px 5px; }
.account-usage > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-usage > div:first-child span { color: var(--muted); font-size: 11px; }
.account-usage > div:first-child b { font: 700 14px Consolas, monospace; }
.account-usage progress { margin: 13px 0 22px; }
.account-usage dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.account-usage dl > div { padding: 12px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border); }
.account-usage dt { color: var(--muted); font-size: 10px; }
.account-usage dd { margin: 0; font: 600 10px Consolas, monospace; text-align: right; }
.account-notice { margin: 24px; padding: 18px; display: flex; align-items: center; gap: 14px; background: var(--primary-soft); border: 1px solid #d5e3ff; border-radius: 10px; }
.account-notice.error { color: var(--danger); background: var(--danger-soft); border-color: #efcaca; }
.account-notice b { display: block; margin-bottom: 4px; font-size: 12px; }
.account-notice p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-empty { padding: 25px; display: flex; align-items: center; gap: 18px; }
.account-empty h2 { margin: 0 0 5px; font-size: 16px; }
.account-empty p { margin: 0; color: var(--muted); font-size: 11px; }
.account-empty .button { margin-left: auto; }
.account-section { padding: 42px 0 0; }
.renew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.renew-grid article { padding: 18px; background: white; border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow); }
.renew-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.renew-grid article > div b { font-size: 13px; }
.renew-grid article > div span { color: var(--primary); font-size: 9px; font-weight: 700; }
.renew-grid article > strong, .renew-grid article > small { display: block; }
.renew-grid article > strong { margin: 17px 0 5px; font-size: 20px; }
.renew-grid article > small { margin-bottom: 14px; color: var(--muted); font-size: 9px; }
.portal-order-list { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow); }
.portal-order-list > a { min-height: 70px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); text-decoration: none; }
.portal-order-list > a:last-child { border-bottom: 0; }
.portal-order-list > a:hover { background: var(--surface-soft); }
.portal-order-list > a span { display: block; }
.portal-order-list > a span:last-child { text-align: right; }
.portal-order-list b { display: block; margin-bottom: 5px; font-size: 11px; }
.portal-order-list small { color: var(--muted); font: 9px Consolas, monospace; }
.portal-order-list strong { display: block; margin-bottom: 5px; font-size: 12px; }
.checkout-shell { padding: 20px 0; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--primary); font-size: 11px; font-weight: 700; text-decoration: none; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.checkout-main, .checkout-summary { padding: 28px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.checkout-main h1 { margin: 15px 0 7px; font-size: 29px; }
.checkout-main > p { color: var(--muted); font: 10px Consolas, monospace; }
.checkout-main dl { margin: 25px 0 0; }
.checkout-main dl > div { padding: 13px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.checkout-main dt { color: var(--muted); font-size: 11px; }
.checkout-main dd { margin: 0; font-size: 11px; font-weight: 700; }
.checkout-summary > span, .checkout-summary > strong { display: block; }
.checkout-summary > span { color: var(--muted); font-size: 10px; }
.checkout-summary > strong { margin: 9px 0 20px; font-size: 31px; }
.payment-placeholder, .paid-summary { margin-bottom: 16px; padding: 15px; border-radius: 9px; }
.payment-placeholder { color: #8a4b08; background: #fff9ed; border: 1px solid #f0deb8; }
.paid-summary { color: var(--success); background: var(--success-soft); border: 1px solid #c9eadf; }
.payment-placeholder b, .paid-summary b { display: block; margin-bottom: 5px; font-size: 11px; }
.payment-placeholder p, .paid-summary p { margin: 0; color: inherit; font-size: 9px; line-height: 1.6; }

@media (max-width: 1180px) {
  .business-strip { grid-template-columns: repeat(3, 1fr); }
  .business-strip > div:nth-child(3) { border-right: 0; }
  .business-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .growth-grid { grid-template-columns: 1fr; }
  .plan-admin-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .portal-header { padding: 0 18px; }
  .portal-header nav > a:not(.button), .customer-name { display: none; }
  .portal-main { width: min(100% - 28px, 1180px); padding-top: 24px; }
  .store-hero { padding: 32px; align-items: flex-start; flex-direction: column; }
  .store-hero aside { min-width: 0; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
  .store-hero aside .live-dot { margin: 0; }
  .store-hero aside small { margin: 0 0 0 auto; }
  .store-plan-grid, .store-benefits, .renew-grid { grid-template-columns: 1fr; }
  .auth-shell { min-height: 0; grid-template-columns: 1fr; gap: 20px; }
  .auth-copy { padding: 20px 5px; }
  .auth-card { max-width: 520px; width: 100%; margin: 0 auto; }
  .subscription-content, .checkout-grid { grid-template-columns: 1fr; }
  .account-qr { max-width: 330px; margin: 0 auto; }
  .renewal-policy { align-items: flex-start; flex-direction: column; }
  .policy-flow { width: 100%; align-items: stretch; flex-direction: column; }
  .policy-flow > i { align-self: center; transform: rotate(90deg); }
}

@media (max-width: 680px) {
  .business-strip { grid-template-columns: 1fr 1fr; }
  .business-strip > div { border-bottom: 1px solid var(--border); }
  .business-strip > div:nth-child(2n) { border-right: 0; }
  .business-strip > div:nth-last-child(-n+2) { border-bottom: 0; }
  .plan-admin-grid { grid-template-columns: 1fr; }
  .configuration-banner { align-items: flex-start; flex-direction: column; }
  .chart-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .bar-chart { grid-template-columns: repeat(14, 31px); }
  .bar-chart.monthly { grid-template-columns: repeat(12, 33px); }
  .portal-header { min-height: 64px; }
  .portal-brand .brand-mark { width: 34px; height: 34px; }
  .portal-brand > span:last-child small { display: none; }
  .portal-header nav { gap: 10px; }
  .portal-header nav .button { min-height: 33px; }
  .store-hero { min-height: 0; padding: 27px 22px; border-radius: 13px; }
  .store-hero h1 { font-size: 34px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .store-section { padding-top: 45px; }
  .store-plan { padding: 21px; }
  .portal-footer { padding: 14px 18px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .account-heading, .subscription-main { align-items: flex-start; flex-direction: column; }
  .subscription-dates { text-align: left; }
  .account-usage dl { grid-template-columns: 1fr; }
  .account-empty { align-items: flex-start; flex-direction: column; }
  .account-empty .button { width: 100%; margin-left: 0; }
  .portal-order-list > a { align-items: flex-start; flex-direction: column; }
  .portal-order-list > a span:last-child { text-align: left; }
}

/* 2026 liquid-glass operations redesign */
:root {
  --canvas: #eef6ff;
  --surface: rgba(255, 255, 255, .78);
  --surface-soft: rgba(241, 247, 255, .84);
  --text: #10233f;
  --muted: #63758d;
  --faint: #8ea0b8;
  --border: rgba(137, 177, 225, .28);
  --border-strong: rgba(111, 158, 216, .42);
  --primary: #0877ff;
  --primary-dark: #075ed1;
  --primary-soft: rgba(8, 119, 255, .09);
  --success: #118a6a;
  --success-soft: rgba(17, 138, 106, .10);
  --warning: #b36108;
  --warning-soft: rgba(255, 164, 61, .14);
  --danger: #c93c55;
  --danger-soft: rgba(201, 60, 85, .10);
  --glass-shadow: 0 18px 50px rgba(51, 105, 169, .10), inset 0 1px 0 rgba(255, 255, 255, .92);
  --glass-blur: 24px;
  --radius: 22px;
  --sidebar-width: 252px;
}

html {
  color: var(--text);
  background: #eaf4ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

body,
.portal-body {
  background:
    radial-gradient(circle at 84% 8%, rgba(59, 151, 255, .18), transparent 31rem),
    radial-gradient(circle at 38% 96%, rgba(102, 91, 255, .10), transparent 34rem),
    linear-gradient(142deg, #f8fbff 0%, #edf6ff 52%, #f8fbff 100%);
}

.admin-body { overflow-x: hidden; }
.liquid-canvas { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.liquid-canvas span { position: absolute; display: block; border-radius: 50%; filter: blur(2px); }
.liquid-canvas span:nth-child(1) { width: 34rem; height: 34rem; top: -17rem; right: -7rem; background: radial-gradient(circle at 35% 35%, rgba(51, 151, 255, .30), rgba(79, 98, 255, .05) 64%, transparent 70%); }
.liquid-canvas span:nth-child(2) { width: 29rem; height: 29rem; bottom: -15rem; left: 15%; background: radial-gradient(circle at 50% 35%, rgba(0, 193, 224, .19), rgba(62, 122, 255, .04) 68%, transparent 72%); }
.liquid-canvas span:nth-child(3) { width: 18rem; height: 18rem; top: 42%; left: 51%; background: radial-gradient(circle, rgba(128, 89, 255, .09), transparent 68%); }

.sidebar {
  width: var(--sidebar-width);
  padding: 24px 16px 18px;
  color: #49617f;
  background: rgba(244, 249, 255, .72);
  border-right: 1px solid rgba(126, 168, 218, .24);
  box-shadow: 16px 0 42px rgba(57, 107, 163, .07);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  backdrop-filter: blur(30px) saturate(140%);
}
.brand { color: var(--text); }
.brand-title {
  color: #10233f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-mark {
  color: white;
  background: linear-gradient(145deg, #23a0ff, #1867f2 62%, #604cff);
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(8, 119, 255, .27), inset 0 1px 1px rgba(255, 255, 255, .5);
}
.brand-copy strong { color: #10233f; letter-spacing: .02em; }
.brand-copy small { color: #8093ab; }
.nav-label { color: #8a9ab0; }
.nav-link { color: #61758e; border: 1px solid transparent; border-radius: 13px; }
.nav-link:hover { color: #0b64d8; background: rgba(255, 255, 255, .62); border-color: rgba(124, 170, 226, .18); }
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, #1593ff, #0b6ff4 58%, #5460f5);
  border-color: rgba(255, 255, 255, .36);
  box-shadow: 0 10px 22px rgba(8, 119, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.sidebar-foot { border-top-color: rgba(119, 159, 207, .22); }
.sidebar-foot small { color: #8495a9; }
.secure-row { color: #60758e; }
.portal-preview-link { color: #0877ff; }

.main-shell { margin-left: var(--sidebar-width); }
.topbar {
  min-height: 82px;
  padding: 13px 34px;
  background: rgba(250, 253, 255, .70);
  border-bottom-color: rgba(127, 168, 216, .22);
  box-shadow: 0 8px 30px rgba(75, 124, 179, .05);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}
.topbar h1 { color: #10233f; font-size: 23px; letter-spacing: -.02em; }
.content { max-width: 1600px; padding: 30px 34px 54px; }
.panel,
.glass-card,
.subscription-card,
.portal-order-list,
.auth-card,
.store-plan,
.checkout-main,
.checkout-summary {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(147, 184, 229, .30);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(125%);
  backdrop-filter: blur(var(--glass-blur)) saturate(125%);
}
.panel,
.glass-card { border-radius: var(--radius); }

.button {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 13px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button.primary {
  background: linear-gradient(135deg, #1593ff, #0877ff 58%, #435ff4);
  border-color: rgba(12, 100, 229, .22);
  box-shadow: 0 9px 20px rgba(8, 119, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.button.primary:hover { background: linear-gradient(135deg, #0786f6, #096be2 62%, #364ee1); box-shadow: 0 12px 25px rgba(8, 119, 255, .27); }
.button.secondary,
.button.ghost {
  color: #36506f;
  background: rgba(255, 255, 255, .70);
  border-color: rgba(118, 161, 214, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.button-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(8, 119, 255, .28);
  outline-offset: 2px;
}

input,
select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: #17304f;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(116, 158, 210, .38);
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(40, 91, 151, .03);
}
select { cursor: pointer; }
input::placeholder { color: #96a7bb; }

.sync-chip {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  color: #31628f;
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(118, 164, 219, .28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.sync-chip i { width: 7px; height: 7px; background: #21ba8b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(33, 186, 139, .12); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.dashboard-v3 { display: grid; gap: 20px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-kpi {
  position: relative;
  min-height: 142px;
  padding: 22px 24px;
  overflow: hidden;
  isolation: isolate;
}
.dashboard-kpi::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 132px;
  height: 132px;
  right: -58px;
  top: -62px;
  background: radial-gradient(circle, rgba(45, 151, 255, .24), rgba(69, 100, 245, .04) 66%, transparent 70%);
  border-radius: 50%;
}
.dashboard-kpi.featured {
  background: linear-gradient(145deg, rgba(235, 247, 255, .94), rgba(255, 255, 255, .78));
  border-color: rgba(73, 139, 232, .38);
}
.dashboard-kpi.customer-kpi::after { background: radial-gradient(circle, rgba(29, 190, 151, .22), rgba(29, 190, 151, .03) 66%, transparent 70%); }
.kpi-label { display: block; color: #5d738e; font-size: 12px; font-weight: 700; }
.dashboard-kpi strong {
  display: block;
  margin: 17px 0 9px;
  color: #102b4d;
  font-size: clamp(26px, 2.05vw, 36px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.045em;
}
.dashboard-kpi strong em { margin-left: 5px; color: #607a96; font-size: 13px; font-style: normal; letter-spacing: 0; }
.dashboard-kpi small { color: #7b8fa7; font-size: 11px; }

.analytics-card { min-width: 0; padding: 25px 27px 22px; }
.analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.analytics-head.compact { margin-bottom: 18px; }
.analytics-head h2,
.list-toolbar h2,
.plan-page-head h2 { margin: 0 0 7px; color: #142d4d; font-size: 20px; letter-spacing: -.02em; }
.analytics-head p,
.list-toolbar p,
.plan-page-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.range-switch {
  display: flex;
  padding: 4px;
  gap: 4px;
  background: rgba(225, 238, 254, .78);
  border: 1px solid rgba(123, 167, 220, .24);
  border-radius: 14px;
}
.range-switch button {
  min-width: 48px;
  min-height: 40px;
  padding: 0 13px;
  color: #617891;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  touch-action: manipulation;
  white-space: nowrap;
}
.range-switch button:hover { color: #0877ff; background: rgba(255, 255, 255, .48); }
.range-switch button.active {
  color: #086ddd;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 13px rgba(49, 101, 164, .13), inset 0 1px 0 white;
}
.range-switch button:focus-visible,
.interactive-series-legend button:focus-visible,
.growth-chart:focus-visible {
  outline: 3px solid rgba(8, 119, 255, .32);
  outline-offset: 3px;
}

.interactive-series-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(125px, 1fr));
  gap: 9px;
  margin-top: 22px;
}
.interactive-series-legend button {
  min-width: 0;
  min-height: 56px;
  padding: 9px 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #425e7b;
  background: rgba(247, 251, 255, .74);
  border: 1px solid rgba(120, 163, 215, .24);
  border-radius: 13px;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.interactive-series-legend button:hover {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(65, 134, 223, .40);
  box-shadow: 0 7px 18px rgba(56, 101, 158, .08);
}
.interactive-series-legend button > span { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.interactive-series-legend button b { color: #183a5d; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.interactive-series-legend button i { width: 24px; height: 3px; display: inline-block; flex: 0 0 auto; border-radius: 999px; }
.interactive-series-legend [data-chart-series="revenue"] i { background: #0877ff; }
.interactive-series-legend [data-chart-series="customers"] i { background: repeating-linear-gradient(90deg, #159a74 0 8px, transparent 8px 12px); }
.interactive-series-legend [data-chart-series="monthly"] i { background: #725cff; }
.interactive-series-legend [data-chart-series="quarterly"] i { background: repeating-linear-gradient(90deg, #e58b0b 0 7px, transparent 7px 11px); }
.interactive-series-legend [data-chart-series="yearly"] i { background: repeating-linear-gradient(90deg, #008eaa 0 3px, transparent 3px 7px); }
.interactive-series-legend button.is-hidden { opacity: .48; background: rgba(237, 243, 250, .58); box-shadow: none; }
.interactive-series-legend button.is-hidden b { color: #71849a; }

.growth-chart {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 14px;
}
.growth-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid-line { stroke: rgba(103, 145, 195, .18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #748aa3; font-size: 10px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.chart-axis-label.x { fill: #8295ab; font-size: 9px; }
.chart-axis-unit { fill: #607992; font-size: 9px; font-weight: 750; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.chart-series { vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 5px rgba(24, 91, 173, .10)); }
.chart-guide { stroke: rgba(45, 83, 125, .36); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-selected-point { vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 4px rgba(31, 76, 132, .18)); }
.chart-hit-area { cursor: crosshair; pointer-events: all; }
.chart-empty {
  position: absolute;
  z-index: 2;
  inset: 44% auto auto 50%;
  padding: 9px 13px;
  color: #667c95;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(126, 169, 220, .24);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(55, 95, 145, .08);
  font-size: 10px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.chart-tooltip {
  position: absolute;
  z-index: 5;
  top: 14px;
  width: min(220px, calc(100% - 20px));
  padding: 11px 12px;
  color: #23425f;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(98, 148, 208, .30);
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(37, 83, 139, .16), inset 0 1px 0 white;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
}
.chart-tooltip[data-side="right"] { transform: translateX(12px); }
.chart-tooltip[data-side="left"] { transform: translateX(calc(-100% - 12px)); }
.chart-tooltip > strong { display: block; margin-bottom: 7px; color: #102f50; font-size: 11px; }
.chart-tooltip > span { min-height: 23px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 9px; }
.chart-tooltip > span i { width: 7px; height: 7px; border-radius: 50%; }
.chart-tooltip > span em { overflow: hidden; color: #637b94; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.chart-tooltip > span b { color: #254766; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.chart-help { margin: 3px 0 0; color: #7d90a5; font-size: 9px; line-height: 1.55; text-align: center; }

.distribution-card { overflow: hidden; }
.donut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.donut-block { min-width: 0; padding: 16px; display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 8px 16px; background: rgba(247, 251, 255, .64); border: 1px solid rgba(131, 174, 225, .20); border-radius: 17px; }
.donut-block h3 { grid-column: 1 / -1; margin: 0; color: #48627e; font-size: 11px; text-align: left; }
.donut-chart { width: 160px; max-width: 100%; margin: 0 auto; }
.donut-chart svg { width: 100%; display: block; }
.donut-center-label { fill: #7d90a6; font-size: 9px; }
.donut-center-value { fill: #173452; font-size: 12px; font-weight: 800; }
.donut-legend { display: grid; gap: 9px; }
.donut-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.donut-legend-row span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: #607790; }
.donut-legend-row i { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; }
.donut-legend-row b { color: #284a6a; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.donut-legend-row.monthly i { background: #1476ff; }
.donut-legend-row.quarterly i { background: #725cff; }
.donut-legend-row.yearly i { background: #00a7c7; }
.donut-legend-row.renewal i { background: #ff7a59; }

.credential-reveal { margin-bottom: 18px; padding: 20px 22px; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(330px, 1.2fr) auto; align-items: center; gap: 22px; border-color: rgba(17, 138, 106, .30); }
.credential-reveal > div > span { color: #118a6a; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.credential-reveal h2 { margin: 6px 0; font-size: 16px; }
.credential-reveal p { margin: 0; color: var(--muted); font-size: 10px; }
.credential-reveal dl { margin: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.credential-reveal dl > div { min-width: 0; padding: 10px 12px; background: rgba(234, 248, 244, .72); border: 1px solid rgba(17, 138, 106, .16); border-radius: 11px; }
.credential-reveal dt { color: #66837b; font-size: 9px; }
.credential-reveal dd { margin: 5px 0 0; overflow: hidden; color: #123e34; font: 700 12px/1.3 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.list-card { overflow: hidden; }
.list-toolbar { min-height: 104px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(132, 172, 220, .22); }
.list-toolbar > * { min-width: 0; }
.list-meta { min-height: 45px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #73869d; background: rgba(244, 249, 255, .54); border-bottom: 1px solid rgba(132, 172, 220, .18); font-size: 10px; }
.list-meta b { color: #1a4776; }
.list-meta a { color: #0877ff; font-weight: 700; text-decoration: none; }
.modern-search { width: min(360px, 100%); max-width: 100%; min-width: 0; height: 44px; background: rgba(255, 255, 255, .76); border-color: rgba(116, 158, 210, .34); border-radius: 14px; box-shadow: inset 0 1px 0 white; }
.list-toolbar > .modern-search { flex-shrink: 1; }
.modern-search input { width: 0; min-width: 0; height: 100%; flex: 1 1 auto; background: transparent; border: 0; box-shadow: none; }
.modern-search button { flex: 0 0 auto; padding: 0 15px; color: #0877ff; background: rgba(8, 119, 255, .07); border-left-color: rgba(8, 119, 255, .13); white-space: nowrap; }
.order-search { width: min(520px, 100%); max-width: 100%; min-width: 0; display: flex; align-items: center; flex-shrink: 1; gap: 9px; }
.order-search .modern-search { width: auto; min-width: 0; flex: 1 1 320px; }
.order-search > select { width: 124px; flex: 0 0 auto; }
.modern-table-wrap { min-height: 0; background: rgba(255, 255, 255, .38); }
.modern-table { table-layout: fixed; font-size: 12px; }
.modern-table th { height: 48px; padding: 0 22px; color: #71849b; background: rgba(235, 244, 255, .70); border-bottom-color: rgba(129, 170, 219, .22); font-size: 10px; letter-spacing: .06em; }
.modern-table td { height: 76px; padding: 13px 22px; color: #314b68; border-bottom-color: rgba(138, 176, 222, .18); }
.modern-table tbody tr { transition: background .15s ease; }
.modern-table tbody tr:hover { background: rgba(232, 244, 255, .48); }
.customer-list-table { min-width: 1160px; }
.customer-list-table th,
.customer-list-table td { width: 18%; }
.customer-list-table th:first-child,
.customer-list-table td:first-child { width: 28%; }
.order-list-table { min-width: 1100px; }
.order-list-table th:nth-child(1),
.order-list-table td:nth-child(1) { width: 5%; }
.order-list-table th:nth-child(2),
.order-list-table td:nth-child(2) { width: 22%; }
.order-list-table th:nth-child(3),
.order-list-table td:nth-child(3) { width: 15%; }
.order-list-table th:nth-child(4),
.order-list-table td:nth-child(4) { width: 15%; }
.order-list-table th:nth-child(5),
.order-list-table td:nth-child(5) { width: 13%; }
.order-list-table th:nth-child(6),
.order-list-table td:nth-child(6) { width: 18%; }
.order-list-table th:nth-child(7),
.order-list-table td:nth-child(7) { width: 12%; }
.selection-column { padding-left: 10px !important; padding-right: 0 !important; text-align: center; }
.order-checkbox { width: 36px; min-height: 44px; display: inline-grid; place-items: center; cursor: pointer; }
.order-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: #0877ff; cursor: pointer; }
.order-checkbox.disabled { opacity: .42; cursor: not-allowed; }
.order-checkbox.disabled input { cursor: not-allowed; }
.modern-table tbody tr.is-selected,
.modern-table tbody tr.is-selected:hover { background: rgba(212, 234, 255, .62); }
.order-list-meta { min-height: 56px; }
.order-list-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.order-list-actions form { margin: 0; }
.selection-count { color: #58708b; font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.bulk-delete-button { min-height: 34px; padding: 0 13px; border-radius: 10px; font-size: 10px; }
.bulk-delete-button:disabled { color: #93a0af; background: #e9eef4; border-color: #dce4ed; box-shadow: none; cursor: not-allowed; }
.order-row-actions { min-height: 28px; margin-top: 4px; display: flex; align-items: center; gap: 10px; }
.order-row-actions form { margin: 0; }
.order-row-actions .inline-action { min-height: 28px; margin: 0; display: inline-flex; align-items: center; }
.order-row-actions .inline-action.cancel { color: #0877ff; }
.order-row-actions .inline-action.delete { color: #c93655; }
.traffic-cell { display: grid; gap: 8px; min-width: 206px; }
.traffic-cell strong { color: #163d68; font-size: 11px; }
.traffic-cell small { color: #71849b; font-size: 9px; line-height: 1.45; white-space: nowrap; }
.traffic-meter { display: flex; align-items: center; gap: 8px; }
.traffic-meter progress { width: 64px; height: 7px; flex: 0 0 64px; }
.traffic-meter strong { min-width: 0; display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.traffic-meter strong > span { flex: 0 0 auto; }
.traffic-meter strong > small { color: #60758f; font-size: 9px; font-weight: 600; }
.table-empty-row:hover { background: transparent !important; }
.table-empty-row td { height: 170px; padding: 24px; text-align: center; }
.table-empty-row td > div { display: grid; justify-items: center; gap: 8px; color: #71849b; }
.table-empty-row svg { width: 32px; height: 32px; fill: none; stroke: #2788ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.table-empty-row b { color: #173c63; font-size: 13px; }
.table-empty-row span { font-size: 10px; line-height: 1.6; }
.admin-body.is-navigating .main-shell { cursor: progress; }
.account-cell { display: grid; gap: 8px; }
.account-cell > div { display: flex; align-items: center; gap: 8px; }
.account-name { color: #163d68; font-size: 12px; }
.row-actions { min-height: 19px; }
.row-actions form { margin: 0; }
.row-actions button,
.row-actions a,
.inline-action {
  min-height: 28px;
  padding: 0;
  color: #0877ff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.row-actions button::after,
.row-actions a::after { content: "·"; margin-left: 8px; color: #afbed0; }
.row-actions > :last-child::after,
.row-actions > :last-child > button::after { content: ""; margin: 0; }
.modern-table time { color: #395775; font-variant-numeric: tabular-nums; }
.plan-pill,
.payment-label { display: inline-flex; min-height: 28px; padding: 0 10px; align-items: center; border: 1px solid rgba(84, 145, 219, .18); border-radius: 999px; font-size: 10px; font-weight: 700; }
.plan-pill.monthly { color: #0969d8; background: rgba(20, 118, 255, .08); }
.plan-pill.quarterly { color: #6550d9; background: rgba(114, 92, 255, .09); }
.plan-pill.yearly { color: #087f97; background: rgba(0, 167, 199, .10); }
.plan-pill.none { color: #77899e; background: rgba(124, 143, 165, .08); }
.payment-label.alipay { color: #086edc; background: rgba(22, 119, 255, .08); }
.payment-label.manual,
.payment-label.unset { color: #6d7f94; background: rgba(113, 132, 154, .08); }
.renew-label { color: #f06c4d !important; font-family: inherit !important; font-weight: 700; }
.inline-action { display: block; min-height: 22px; margin-top: 4px; }
.refined-empty svg { width: 42px; height: 42px; fill: none; stroke: #2588f4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pagination { min-height: 64px; padding: 10px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: #71849a; border-top: 1px solid rgba(132, 172, 220, .18); font-size: 10px; }
.pagination a,
.pagination > span.disabled { min-width: 76px; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(118, 160, 211, .28); border-radius: 11px; text-decoration: none; }
.pagination a { color: #0a70e8; background: rgba(255, 255, 255, .65); font-weight: 700; }
.pagination > span.disabled { color: #a4b1c1; background: rgba(237, 243, 250, .58); }

.modal-dialog {
  width: min(500px, calc(100vw - 30px));
  max-width: none;
  padding: 0;
  color: var(--text);
  background: rgba(251, 253, 255, .92);
  border: 1px solid rgba(157, 190, 230, .42);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(24, 62, 108, .28), inset 0 1px 0 white;
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  backdrop-filter: blur(30px) saturate(130%);
}
.modal-dialog::backdrop { background: rgba(18, 39, 69, .36); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-dialog > form > header { min-height: 82px; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(135, 174, 221, .22); }
.modal-dialog h2 { margin: 0; font-size: 19px; }
.dialog-close { width: 40px; height: 40px; flex: 0 0 auto; color: #657b94; background: rgba(231, 240, 251, .74); border: 1px solid rgba(128, 170, 219, .22); border-radius: 50%; cursor: pointer; font-size: 23px; line-height: 1; }
.dialog-fields { padding: 23px; display: grid; gap: 17px; }
.dialog-fields label { display: grid; gap: 8px; color: #3b5572; font-size: 11px; font-weight: 700; }
.modal-dialog footer { padding: 16px 22px 20px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid rgba(135, 174, 221, .20); }
.dialog-open { overflow: hidden; }
.clipboard-helper { position: fixed; left: -9999px; top: 0; opacity: 0; }

.plan-page-head { margin-bottom: 20px; padding: 5px 2px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.modern-plans { gap: 20px; }
.modern-plans .plan-admin-card { position: relative; padding: 25px; gap: 20px; overflow: hidden; }
.modern-plans .plan-admin-head { padding-bottom: 19px; }
.modern-plans .plan-admin-head > div > span { color: #0877ff; }
.plan-orb { width: 46px; height: 46px; display: block; background: radial-gradient(circle at 32% 25%, #b8e6ff, #188bff 48%, #3154ec 82%); border: 1px solid rgba(255, 255, 255, .65); border-radius: 50%; box-shadow: 0 10px 22px rgba(25, 119, 233, .20), inset 0 2px 3px rgba(255, 255, 255, .52); }
.plan-orb.quarterly { background: radial-gradient(circle at 32% 25%, #d7ceff, #7867ff 48%, #4d3bd4 82%); }
.plan-orb.yearly { background: radial-gradient(circle at 32% 25%, #b7f4ee, #16b8c3 48%, #177fa8 82%); }
.field-with-unit { position: relative; }
.field-with-unit input { padding-right: 52px; font-weight: 700; }
.field-with-unit em { position: absolute; top: 50%; right: 14px; color: #6e8198; font-size: 10px; font-style: normal; font-weight: 700; transform: translateY(-50%); }
.modern-plans label > small { color: #8192a7; font-size: 9px; font-weight: 500; }
.plan-preview { padding: 13px 14px; background: rgba(235, 245, 255, .60); border: 1px solid rgba(126, 170, 221, .20); border-radius: 13px; }
.plan-preview span,
.plan-preview b { display: block; }
.plan-preview span { margin-bottom: 5px; color: #7d90a6; font-size: 9px; }
.plan-preview b { color: #224f7c; font-size: 11px; }
.renewal-note { margin-top: 20px; padding: 21px 24px; display: flex; align-items: center; gap: 17px; }
.renewal-note svg { width: 32px; height: 32px; flex: 0 0 auto; fill: none; stroke: #0877ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.renewal-note h2 { margin: 0 0 6px; font-size: 15px; }
.renewal-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.portal-body {
  color: #132b48;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 152, 255, .19), transparent 30rem),
    radial-gradient(circle at 16% 76%, rgba(98, 85, 255, .11), transparent 30rem),
    linear-gradient(145deg, #fbfdff, #eef7ff 56%, #f9fbff);
}
.portal-header {
  background: rgba(255, 255, 255, .72);
  border-bottom-color: rgba(123, 165, 216, .22);
  box-shadow: 0 10px 35px rgba(59, 104, 158, .06);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}
.portal-main { padding-top: 42px; }
.store-hero {
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(132, 209, 255, .48), transparent 16rem),
    radial-gradient(circle at 72% 110%, rgba(121, 90, 255, .52), transparent 22rem),
    linear-gradient(135deg, #0a66dc, #087dff 54%, #5361f6);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 26px;
  box-shadow: 0 26px 65px rgba(24, 105, 210, .25), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.store-hero p { color: rgba(255, 255, 255, .80); }
.hero-kicker { color: #d9efff; }
.store-hero aside { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.store-hero aside small { color: rgba(255, 255, 255, .68); }
.store-plan,
.auth-card,
.subscription-card,
.portal-order-list,
.checkout-main,
.checkout-summary { border-radius: 20px; }
.store-plan.featured { border-color: rgba(54, 131, 236, .42); box-shadow: 0 20px 50px rgba(42, 108, 184, .14), inset 0 1px 0 white; }
.portal-footer { background: rgba(255, 255, 255, .58); border-top-color: rgba(130, 169, 216, .20); }
.payment-checkout { grid-template-columns: minmax(0, 1fr) 430px; }
.alipay-checkout { display: grid; gap: 14px; }
.alipay-identity { padding: 15px; display: flex; align-items: center; gap: 12px; color: #173c63; background: rgba(237, 247, 255, .78); border: 1px solid rgba(74, 151, 232, .23); border-radius: 15px; }
.alipay-identity > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #20a4ff, #0867ef); border-radius: 13px; box-shadow: 0 8px 18px rgba(9, 112, 235, .20); font-size: 22px; font-weight: 800; }
.alipay-identity b, .alipay-identity small { display: block; }
.alipay-identity b { margin-bottom: 4px; font-size: 14px; }
.alipay-identity small { color: #66809a; font-size: 11px; }
.alipay-checkout form { margin: 0; }
.alipay-checkout > p { margin: 0; color: #667b92; font-size: 11px; line-height: 1.65; }
.payment-handoff { width: 100%; max-width: 540px; margin: 0 auto; }
.payment-handoff .checkout-summary { margin-top: 18px; }
.payment-link-details { min-width: 0; color: #667b92; font-size: 12px; }
.payment-link-details summary { cursor: pointer; }
.payment-link-details textarea { width: 100%; max-width: 100%; margin-top: 10px; font-size: 16px; overflow-wrap: anywhere; resize: vertical; }

@media (max-width: 1220px) {
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interactive-series-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donut-block { grid-template-columns: 140px minmax(0, 1fr); }
  .credential-reveal { grid-template-columns: 1fr auto; }
  .credential-reveal dl { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .main-shell { margin-left: 0; }
  .nav-toggle { display: grid; background: rgba(255, 255, 255, .70); border-color: rgba(120, 161, 212, .30); border-radius: 12px; }
  .nav-scrim { position: fixed; z-index: 45; inset: 0; background: rgba(18, 39, 69, .30); border: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-open .nav-scrim { display: block; }
  .content { padding: 25px 22px 46px; }
  .topbar { padding: 12px 22px; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-grid { grid-template-columns: 1fr; }
  .list-toolbar { align-items: flex-start; flex-direction: column; }
  .modern-search,
  .order-search { width: 100%; }
  .order-search .modern-search { flex: 1; }
  .payment-checkout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { min-height: 72px; }
  .top-actions .sync-chip { display: none; }
  .content { padding: 20px 14px 38px; }
  .dashboard-v3 { gap: 14px; }
  .dashboard-kpis { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-kpi { min-height: 126px; padding: 19px 20px; }
  .dashboard-kpi strong { margin: 15px 0 8px; }
  .analytics-card { padding: 20px 15px 15px; }
  .analytics-head { align-items: stretch; flex-direction: column; }
  .range-switch { width: 100%; overflow-x: hidden; }
  .range-switch button { min-width: 0; flex: 1 1 0; padding-right: 6px; padding-left: 6px; }
  .interactive-series-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 17px; }
  .interactive-series-legend button { min-height: 52px; }
  .growth-chart { height: 300px; }
  .donut-block { width: 100%; grid-template-columns: 120px minmax(0, 1fr); padding: 13px; gap: 7px 11px; }
  .donut-chart { width: 120px; }
  .credential-reveal { grid-template-columns: 1fr; padding: 18px; }
  .credential-reveal dl { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; }
  .credential-reveal .button { width: 100%; }
  .list-toolbar { min-height: 0; padding: 19px; }
  .order-search { align-items: stretch; flex-direction: column; }
  .order-search > select { width: 100%; }
  .list-meta { padding: 0 19px; }
  .order-list-meta { padding-top: 10px; padding-bottom: 10px; align-items: flex-start; flex-direction: column; }
  .order-list-actions { width: 100%; justify-content: flex-start; }
  .pagination { justify-content: space-between; }
  .pagination a,
  .pagination > span.disabled { min-width: 68px; padding: 0 8px; }
  .plan-page-head { align-items: flex-start; flex-direction: column; }
  .modern-plans { grid-template-columns: 1fr; }
  .renewal-note { align-items: flex-start; }
  .payment-checkout .checkout-main,
  .payment-checkout .checkout-summary { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Customer portal: focused liquid-glass storefront and unified authentication */
.portal-body {
  --portal-ink: #102846;
  --portal-muted: #60758f;
  --portal-blue: #0a7cff;
  --portal-blue-deep: #075fd4;
  --portal-violet: #6257f6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--portal-ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(72, 173, 255, .22), transparent 29rem),
    radial-gradient(circle at 8% 82%, rgba(112, 88, 255, .13), transparent 31rem),
    linear-gradient(145deg, #fbfdff 0%, #eef7ff 48%, #f9fbff 100%);
}
.portal-liquid-bg {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.portal-liquid-bg span { position: absolute; display: block; border-radius: 50%; }
.portal-liquid-bg span:nth-child(1) {
  width: 34rem;
  height: 34rem;
  top: -22rem;
  right: -10rem;
  background: radial-gradient(circle at 38% 40%, rgba(95, 196, 255, .34), rgba(69, 113, 255, .06) 60%, transparent 72%);
}
.portal-liquid-bg span:nth-child(2) {
  width: 30rem;
  height: 30rem;
  bottom: -20rem;
  left: -8rem;
  background: radial-gradient(circle at 58% 36%, rgba(104, 85, 255, .20), rgba(40, 179, 255, .04) 62%, transparent 72%);
}
.portal-liquid-bg span:nth-child(3) {
  width: 18rem;
  height: 18rem;
  top: 42%;
  left: 49%;
  background: radial-gradient(circle, rgba(87, 203, 255, .11), transparent 68%);
}
.portal-header,
.portal-main,
.portal-footer { position: relative; z-index: 1; }
.portal-body a,
.portal-body button { touch-action: manipulation; }
.portal-body .skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 50%;
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #075fc6;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7, 95, 198, .26);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform .16s ease;
}
.portal-body .skip-link:focus { transform: translate(-50%, 0); }
.portal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 60px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: rgba(250, 253, 255, .66);
  border-bottom: 1px solid rgba(125, 169, 219, .22);
  box-shadow: 0 10px 34px rgba(54, 103, 160, .06), inset 0 1px 0 rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}
.portal-brand { min-width: 44px; min-height: 44px; align-items: center; }
.portal-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 29% 18%, rgba(255, 255, 255, .70), transparent 23%),
    linear-gradient(145deg, #1694ed 0%, #0871df 54%, #514bd7 100%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 10px 24px rgba(20, 119, 242, .25), inset 0 1px 1px rgba(255, 255, 255, .45);
  font-size: 13px;
}
.portal-header nav { margin-left: auto; gap: 8px; }
.portal-header nav > a:not(.portal-login-link) {
  min-height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: #496581;
  font-size: 14px;
  font-weight: 700;
}
.customer-name {
  max-width: 180px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #1268c5;
  background: rgba(231, 244, 255, .72);
  border: 1px solid rgba(101, 159, 219, .22);
  border-radius: 999px;
  font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.portal-header nav form button {
  min-height: 40px;
  padding: 0 10px;
  color: #5b7088;
  font-size: 14px;
  font-weight: 600;
}
.portal-login-link.button {
  min-width: 84px;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background:
    radial-gradient(circle at 26% 5%, rgba(255, 255, 255, .38), transparent 29%),
    linear-gradient(135deg, #0874e4, #0869d8 58%, #4b4bd7);
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 15px;
  box-shadow: 0 9px 20px rgba(8, 119, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: 13px;
}
.portal-login-link.button:hover {
  color: #fff;
  background: linear-gradient(135deg, #0768d2, #075fc6 62%, #3e42c4);
  box-shadow: 0 12px 26px rgba(8, 119, 255, .28);
}
.portal-body .button.primary:not(.portal-login-link) {
  background: linear-gradient(135deg, #0875e5, #096bd9 58%, #484cd5);
}
.portal-body .button.primary:not(.portal-login-link):hover {
  background: linear-gradient(135deg, #0768d2, #075fc6 60%, #3e42c4);
}
.portal-body .button:active { transform: scale(.985); }
.portal-main {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100vh - 138px);
  padding: 64px 0 88px;
}
.plans-stage { position: relative; isolation: isolate; }
.plans-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(86vw, 1040px);
  height: 250px;
  left: 50%;
  top: 188px;
  background: linear-gradient(96deg, rgba(50, 177, 255, .19), rgba(85, 107, 255, .15) 52%, rgba(157, 102, 255, .12));
  border-radius: 50%;
  filter: blur(48px);
  transform: translateX(-50%);
}
.plans-intro {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}
.plans-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: #2374cb;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
}
.plans-eyebrow i {
  width: 8px;
  height: 8px;
  display: block;
  background: #24caa0;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(36, 202, 160, .13);
}
.plans-intro h1 {
  margin: 0;
  color: #0b2543;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -.06em;
}
.plans-intro p {
  margin: 18px 0 0;
  color: var(--portal-muted);
  font-size: 15px;
  line-height: 1.75;
}
.plans-stage .store-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plans-stage .store-plan {
  position: relative;
  min-height: 438px;
  padding: 29px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 0%, rgba(107, 192, 255, .17), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(244, 250, 255, .65));
  border: 1px solid rgba(146, 185, 229, .42);
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(55, 105, 163, .12), inset 0 1px 0 rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.plans-stage .store-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(63, 170, 255, .74), rgba(116, 94, 255, .58), transparent);
}
.plans-stage .store-plan.featured {
  color: #12395d;
  background:
    radial-gradient(circle at 88% 7%, rgba(80, 187, 255, .28), transparent 13rem),
    radial-gradient(circle at 10% 112%, rgba(125, 107, 255, .16), transparent 17rem),
    linear-gradient(145deg, rgba(247, 252, 255, .96), rgba(218, 239, 255, .90));
  border-color: rgba(73, 150, 229, .48);
  box-shadow: 0 25px 58px rgba(35, 103, 180, .17), inset 0 1px 0 rgba(255, 255, 255, .96);
  transform: translateY(-12px);
}
.plans-stage .store-plan.featured::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92), transparent); }
.plans-stage .store-plan-top { min-height: 25px; }
.plans-stage .store-plan-top > span {
  padding: 6px 10px;
  color: #1b70cd;
  background: rgba(228, 243, 255, .76);
  border: 1px solid rgba(106, 164, 221, .18);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .04em;
}
.plans-stage .store-plan-top b {
  padding: 6px 10px;
  color: #2d58a4;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 999px;
  font-size: 9px;
}
.plans-stage .store-plan.featured .store-plan-top > span,
.plans-stage .store-plan.featured .store-plan-top b {
  color: #1269bf;
  background: rgba(239, 249, 255, .82);
  border-color: rgba(74, 149, 218, .25);
}
.plans-stage .store-plan h2 {
  margin: 24px 0 14px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.plans-stage .store-price { min-height: auto; }
.plans-stage .store-price strong {
  font: 750 42px/1.06 "DIN Alternate", "Bahnschrift SemiCondensed", "SF Pro Display", "Microsoft YaHei UI", sans-serif;
  letter-spacing: -.035em;
}
.plans-stage .store-price small {
  margin-top: 8px;
  color: #60758f;
  font-size: 10px;
}
.plans-stage .store-plan.featured .store-price small { color: #5f7690; }
.plan-quota {
  margin-top: 22px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #57708c;
  background: rgba(235, 246, 255, .68);
  border: 1px solid rgba(124, 172, 224, .20);
  border-radius: 15px;
  font-size: 10px;
}
.plan-quota b { color: #173e68; font-size: 13px; }
.featured .plan-quota {
  color: #58718b;
  background: rgba(232, 246, 255, .76);
  border-color: rgba(83, 153, 218, .22);
}
.featured .plan-quota b { color: #173f67; }
.plans-stage .store-plan ul {
  margin: 17px 0 22px;
  padding: 0;
  gap: 10px;
  border: 0;
}
.plans-stage .store-plan li {
  padding-left: 20px;
  color: #526a84;
  font-size: 11px;
  line-height: 1.5;
}
.plans-stage .store-plan li::before {
  content: "";
  width: 8px;
  height: 8px;
  top: .38em;
  background: linear-gradient(145deg, #32d8b0, #0aa980);
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(19, 176, 137, .12);
}
.plans-stage .store-plan.featured li { color: #4d6883; }
.plans-stage .store-plan form,
.plans-stage .store-plan > .button { margin-top: auto; }
.plans-stage .store-plan .button {
  min-height: 50px;
  border-radius: 16px;
}
.plans-stage .store-plan.featured .button.primary {
  color: #fff;
  background: linear-gradient(135deg, #1687eb, #2566dc 68%, #4a52d6);
  border-color: rgba(45, 111, 214, .38);
  box-shadow: 0 12px 28px rgba(22, 96, 190, .20), inset 0 1px 0 rgba(255,255,255,.34);
}
.plans-stage .store-plan.featured .button.primary:hover { background: linear-gradient(135deg, #0d7ede, #1c5fd2 68%, #4148ca); }

.auth-main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 138px);
  padding: 34px 20px 64px;
  display: grid;
  overflow-x: clip;
  place-items: center;
}
.auth-shell {
  position: relative;
  width: min(470px, 100%);
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}
.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.auth-shell::before {
  width: 360px;
  height: 360px;
  top: -74px;
  right: -180px;
  background: radial-gradient(circle at 36% 38%, rgba(79, 186, 255, .30), rgba(70, 106, 255, .05) 62%, transparent 72%);
}
.auth-shell::after {
  width: 290px;
  height: 290px;
  bottom: -110px;
  left: -160px;
  background: radial-gradient(circle at 60% 38%, rgba(117, 91, 255, .19), rgba(38, 186, 255, .04) 64%, transparent 73%);
}
.auth-card {
  width: 100%;
  padding: 36px;
  display: grid;
  gap: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(116, 200, 255, .18), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(244, 250, 255, .68));
  border: 1px solid rgba(149, 188, 231, .44);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(45, 94, 151, .17), inset 0 1px 0 rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  backdrop-filter: blur(28px) saturate(135%);
}
.auth-emblem {
  width: 58px;
  height: 58px;
  margin: 0 auto 21px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 28% 15%, rgba(255, 255, 255, .62), transparent 25%),
    linear-gradient(145deg, #31b7ff, #0a7cff 55%, #5f57f5);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  box-shadow: 0 13px 27px rgba(18, 112, 232, .27), inset 0 1px 1px rgba(255, 255, 255, .45);
}
.auth-emblem svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-heading { margin-bottom: 25px; text-align: center; }
.auth-heading > span {
  display: block;
  margin-bottom: 9px;
  color: #1b70cd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.auth-heading h1 {
  margin: 0;
  color: #0b2543;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.04em;
}
.auth-heading p {
  margin: 11px 0 0;
  color: #60758f;
  font-size: 12px;
  line-height: 1.65;
}
.auth-error {
  margin: -4px 0 20px;
  padding: 13px 14px;
  display: grid;
  gap: 3px;
  color: #a22c43;
  background: rgba(255, 239, 243, .82);
  border: 1px solid rgba(209, 83, 108, .22);
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.5;
}
.auth-error strong { font-size: 12px; }
.auth-error:focus { outline: 3px solid rgba(201, 60, 85, .18); outline-offset: 2px; }
.auth-card > label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #294762;
  font-size: 12px;
  font-weight: 750;
}
.auth-input { position: relative; }
.auth-input > svg {
  position: absolute;
  z-index: 1;
  width: 19px;
  height: 19px;
  left: 16px;
  top: 50%;
  fill: none;
  stroke: #6b87a4;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}
.auth-input input {
  height: 54px;
  padding: 0 16px 0 46px;
  color: #143452;
  background: rgba(255, 255, 255, .80);
  border: 1px solid rgba(112, 159, 213, .38);
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(36, 84, 139, .04), 0 1px 0 rgba(255, 255, 255, .7);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-input input:hover { border-color: rgba(77, 142, 217, .55); }
.auth-input input:focus {
  background: rgba(255, 255, 255, .96);
  border-color: #1984f4;
  box-shadow: 0 0 0 4px rgba(16, 126, 244, .10), inset 0 1px 2px rgba(36, 84, 139, .03);
  outline: 0;
}
.auth-input input[aria-invalid="true"] { border-color: rgba(201, 60, 85, .66); box-shadow: 0 0 0 4px rgba(201, 60, 85, .08); }
.field-hint,
.field-error { font-size: 10px; font-weight: 500; line-height: 1.45; }
.field-hint { color: #60758f; }
.field-error { color: #b5304b; }
.field-error:empty { display: none; }
.auth-submit {
  min-height: 52px;
  margin-top: 6px;
  border-radius: 17px;
  font-size: 14px;
}
.auth-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.first-login-note {
  margin-top: 17px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #58728e;
  background: rgba(235, 246, 255, .62);
  border: 1px solid rgba(126, 171, 221, .18);
  border-radius: 14px;
  font-size: 10px;
}
.first-login-note i {
  width: 8px;
  height: 8px;
  display: block;
  flex: 0 0 auto;
  background: #26c79f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(38, 199, 159, .11);
}
.first-login-note strong { color: #245f93; }
.auth-card > .auth-legal {
  margin-top: 14px;
  color: #60758f;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.portal-footer {
  min-height: 60px;
  color: #5d7188;
  background: rgba(250, 253, 255, .52);
  border-top-color: rgba(130, 169, 216, .18);
  font-size: 11px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

@media (hover: hover) {
  .plans-stage .store-plan:not(.featured):hover {
    border-color: rgba(83, 151, 226, .52);
    box-shadow: 0 28px 66px rgba(47, 101, 166, .17), inset 0 1px 0 rgba(255, 255, 255, .98);
    transform: translateY(-5px);
  }
  .plans-stage .store-plan.featured:hover { transform: translateY(-17px); }
}

@media (max-width: 860px) {
  .portal-header { padding: 0 18px; }
  .portal-header nav > .portal-login-link { display: inline-flex; }
  .portal-header nav > .portal-account-link,
  .portal-header .customer-name { display: inline-flex; }
  .portal-main { width: min(100% - 28px, 620px); padding: 45px 0 68px; }
  .plans-intro { margin-bottom: 38px; }
  .plans-stage .store-plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .plans-stage .store-plan { min-height: 0; }
  .plans-stage .store-plan.featured { transform: none; }
  .plans-stage::before { top: 240px; height: 540px; }
  .auth-main { width: 100%; max-width: none; padding: 30px 18px 56px; }
  .auth-shell { width: min(470px, 100%); }
}

@media (max-width: 560px) {
  .portal-header { min-height: 56px; }
  .portal-brand .brand-mark { width: 40px; height: 40px; border-radius: 14px; }
  .portal-header .portal-login-link.button { min-width: 76px; min-height: 44px; padding: 0 17px; }
  .portal-main { width: min(100% - 24px, 620px); padding: 38px 0 54px; }
  .plans-intro { margin-bottom: 31px; }
  .plans-intro h1 { font-size: 38px; }
  .plans-intro p { margin-top: 14px; font-size: 13px; }
  .plans-stage .store-plan { padding: 25px; border-radius: 24px; }
  .plans-stage .store-plan h2 { margin-top: 20px; }
  .auth-main { width: 100%; padding: 22px 12px 46px; }
  .auth-card { padding: 29px 22px; border-radius: 26px; }
  .auth-emblem { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 18px; }
  .auth-heading { margin-bottom: 22px; }
  .auth-heading h1 { font-size: 28px; }
  .auth-input input { height: 52px; }
  .portal-footer { padding: 15px 18px; }
}

/* Customer portal workspace */
.plans-main { padding-top: clamp(56px, 7vh, 80px); }
.plans-intro {
  position: relative;
  max-width: none;
  min-height: 124px;
  margin: 0 0 32px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 92% 4%, rgba(91, 191, 255, .20), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(241, 249, 255, .65));
  border: 1px solid rgba(143, 183, 228, .38);
  border-radius: 25px;
  box-shadow: 0 20px 52px rgba(53, 103, 162, .11), inset 0 1px 0 rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(24px) saturate(132%);
  backdrop-filter: blur(24px) saturate(132%);
}
.plans-intro::after {
  content: "";
  position: absolute;
  width: 56%;
  height: 1px;
  top: 0;
  left: 7%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .98), transparent);
}
.plans-intro-copy { width: 100%; min-width: 0; }
.plans-intro .plans-eyebrow { margin-bottom: 9px; font-size: 11px; letter-spacing: .07em; }
.plans-intro-row {
  display: grid;
  grid-template-columns: max-content 1px minmax(0, 520px);
  align-items: center;
  gap: 22px;
}
.plans-intro h1 {
  font-size: clamp(28px, 2.35vw, 32px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.plans-intro-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(77, 132, 191, .34), transparent);
}
.plans-intro p {
  max-width: 520px;
  margin: 0;
  color: #5c7189;
  font-size: 13px;
  line-height: 1.6;
}
.plans-stage::before { top: 144px; }
.plans-stage .store-plan-grid { gap: 24px; }
.plans-stage .store-plan { min-height: 390px; }
.plans-stage .store-plan.featured { transform: none; }
.plans-stage .store-plan-top > span { font-size: 12px; }
.plans-stage .store-plan-top b { font-size: 11px; }
.plans-stage .store-price small { font-size: 13px; }
.plan-quota { font-size: 13px; }
.plan-quota b { font-size: 15px; }
.plans-stage .store-plan li { font-size: 14px; }
.plans-stage .store-plan .button { font-size: 14px; }

.portal-main.account-main { width: min(1280px, calc(100% - 48px)); min-height: 0; padding: 24px 0 36px; }
.account-workspace { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 36px; align-items: start; }
.account-sidebar {
  position: sticky;
  top: 80px;
  height: auto;
  min-height: 0;
  align-self: start;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 0%, rgba(90, 185, 255, .16), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(240, 248, 255, .66));
  border: 1px solid rgba(141, 181, 225, .38);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(52, 100, 158, .08), inset 0 1px 0 rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(24px) saturate(132%);
  backdrop-filter: blur(24px) saturate(132%);
}
.account-profile {
  padding: 8px 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(126, 169, 216, .20);
}
.account-profile-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #25acf5, #1477ec 58%, #5d54df);
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 12px;
  box-shadow: 0 9px 20px rgba(19, 112, 226, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.account-profile-icon svg,
.account-side-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-profile small,
.account-profile strong { display: block; }
.account-profile small { margin-bottom: 4px; color: #6d8299; font-size: 12px; }
.account-profile strong { color: #183b5e; font: 700 13px/1.3 Consolas, monospace; }
.account-side-nav { padding: 14px 0; display: grid; gap: 6px; }
.account-side-nav a {
  position: relative;
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #58718b;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.account-side-nav a:hover { color: #1169cf; background: rgba(232, 245, 255, .68); }
.account-side-nav a[aria-current="page"] {
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .28), transparent 44%),
    linear-gradient(135deg, #1587ed, #126bdc 60%, #514bd3);
  border-color: rgba(255, 255, 255, .52);
  box-shadow: 0 10px 24px rgba(22, 109, 219, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.account-side-nav a > b {
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;
  display: grid;
  place-items: center;
  color: #2f669d;
  background: rgba(255, 255, 255, .72);
  border-radius: 999px;
  font-size: 11px;
}
.account-side-nav a[aria-current="page"] > b { color: #1768c3; background: rgba(255, 255, 255, .92); }
.account-view-stack { min-width: 0; }
.account-view {
  min-height: 0;
  padding: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(94, 188, 255, .13), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(242, 249, 255, .66));
  border: 1px solid rgba(141, 181, 225, .38);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(51, 99, 156, .08), inset 0 1px 0 rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(26px) saturate(132%);
  backdrop-filter: blur(26px) saturate(132%);
}
.account-view[hidden] { display: none !important; }
.account-view.is-empty { display: flex; flex-direction: column; }
.account-view-head {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.account-view-head > div > span,
.renewal-rules > header > span {
  display: block;
  margin-bottom: 8px;
  color: #1972cb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
}
.account-view-head h1 { margin: 0; color: #102f50; font-size: 36px; line-height: 1.15; letter-spacing: -.035em; }
.account-view-head p { margin: 10px 0 0; color: #60778f; font-size: 15px; line-height: 1.6; }
.account-state,
.account-count {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #1766b5;
  background: rgba(232, 245, 255, .78);
  border: 1px solid rgba(90, 150, 213, .24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.account-state i { width: 7px; height: 7px; background: #22bd8d; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 189, 141, .12); }
.account-state.pending i { background: #e8a222; box-shadow: 0 0 0 3px rgba(232, 162, 34, .12); }
.account-state.expired i,
.account-state.disabled i,
.account-state.failed i,
.account-state.exhausted i { background: #df6a46; box-shadow: 0 0 0 3px rgba(223, 106, 70, .12); }
.current-plan-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(117, 218, 255, .32), transparent 16rem),
    radial-gradient(circle at 2% 118%, rgba(141, 97, 255, .50), transparent 18rem),
    linear-gradient(140deg, #0879df, #1768dc 57%, #534bd3);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 23px;
  box-shadow: 0 20px 46px rgba(27, 96, 201, .24), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.current-plan-card::before {
  content: "";
  position: absolute;
  width: 62%;
  height: 1px;
  top: 0;
  left: 8%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92), transparent);
}
.current-plan-identity { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .20); }
.current-plan-identity > span {
  padding: 5px 9px;
  display: inline-flex;
  color: #0f5cb5;
  background: rgba(255, 255, 255, .90);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.current-plan-identity h2 { margin: 12px 0 5px; color: #fff; font-size: 27px; letter-spacing: -.03em; }
.current-plan-identity small { color: rgba(255, 255, 255, .76); font: 12px/1.4 Consolas, monospace; }
.plan-stat-grid {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.plan-stat-grid > div { min-width: 0; padding: 14px; background: rgba(4, 55, 146, .18); border: 1px solid rgba(255, 255, 255, .18); border-radius: 15px; }
.plan-stat-grid dt { color: rgba(255, 255, 255, .76); font-size: 12px; }
.plan-stat-grid dd { margin: 7px 0 0; color: #fff; font-size: 16px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.plan-stat-grid dd small { color: rgba(255, 255, 255, .76); font-size: 12px; font-weight: 600; white-space: nowrap; }
.portal-body.account-page { overflow-x: clip; }
.account-page .portal-footer { display: none; }
.account-plan-dashboard { width: 100%; margin: 0; }
.account-category { padding: 0; background: transparent; border: 0; box-shadow: none; }
.account-category + .account-category { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(109, 162, 215, .22); }
.account-category-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-category-head > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.account-category-head > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #176fca;
  background: rgba(230, 244, 255, .80);
  border: 1px solid rgba(97, 156, 218, .22);
  border-radius: 9px;
  font: 800 12px/1 "SF Pro Display", "Microsoft YaHei UI", sans-serif;
}
.account-category-head h2 { margin: 0; color: #173a5d; font-size: 16px; line-height: 1.3; }
.account-category-head p { display: none; }
.account-category-head > a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #1769c3;
  background: rgba(234, 246, 255, .74);
  border: 1px solid rgba(99, 156, 216, .25);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.account-category-head > a:hover { color: #fff; background: #1478df; border-color: #1478df; }
.plan-overview-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-identity-panel,
.plan-usage-panel { min-width: 0; min-height: 0; padding: 14px; border-radius: 16px; }
.plan-identity-panel {
  position: relative;
  overflow: hidden;
  color: #153a5e;
  background:
    radial-gradient(circle at 91% 3%, rgba(111, 205, 255, .24), transparent 13rem),
    radial-gradient(circle at 2% 112%, rgba(133, 111, 255, .13), transparent 16rem),
    linear-gradient(140deg, rgba(247, 252, 255, .93), rgba(224, 242, 255, .83));
  border: 1px solid rgba(90, 158, 225, .34);
  box-shadow: 0 16px 34px rgba(39, 103, 169, .10), inset 0 1px 0 rgba(255, 255, 255, .96);
}
.plan-identity-panel::before {
  content: "";
  position: absolute;
  width: 62%;
  height: 1px;
  top: 0;
  left: 8%;
  background: linear-gradient(90deg, transparent, rgba(62, 165, 243, .72), transparent);
}
.plan-identity-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.plan-identity-top > span,
.plan-status {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.plan-identity-top > span { color: #0f65bf; background: rgba(255, 255, 255, .82); border: 1px solid rgba(80, 151, 219, .20); }
.plan-status { color: #17634f; background: rgba(225, 250, 242, .78); border: 1px solid rgba(32, 185, 142, .20); }
.plan-status::before { content: ""; width: 7px; height: 7px; margin-right: 6px; background: #35e2b4; border-radius: 50%; box-shadow: 0 0 0 3px rgba(53, 226, 180, .12); }
.plan-status.expired::before,
.plan-status.disabled::before,
.plan-status.failed::before,
.plan-status.exhausted::before { background: #ffb084; }
.plan-status.pending::before { background: #ffd166; }
.plan-identity-panel > h3 { margin: 0; color: #11385d; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.plan-identity-panel > p { margin: 0; color: #668098; font-size: 11px; }
.plan-identity-panel > p strong { color: #285372; font: 700 11px/1.4 Consolas, monospace; }
.plan-date-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-date-grid > div { min-width: 0; padding: 7px 8px; background: rgba(255, 255, 255, .60); border: 1px solid rgba(96, 158, 216, .18); border-radius: 10px; }
.plan-date-grid dt { color: #70869a; font-size: 12px; }
.plan-date-grid dd { margin: 4px 0 0; color: #174568; font-size: 13px; font-weight: 750; white-space: nowrap; }
.plan-usage-panel { background: rgba(246, 251, 255, .66); border: 1px solid rgba(119, 167, 218, .23); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92); }
.plan-usage-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-usage-panel > header span { display: none; }
.plan-usage-panel > header h3 { margin: 0; color: #173b5e; font-size: 15px; }
.plan-usage-panel > header > strong { color: #176ec9; font-size: 13px; }
.plan-usage-content { margin-top: 9px; display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 18px; }
.plan-usage-ring {
  position: relative;
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 11px 25px rgba(33, 111, 190, .12);
}
.plan-usage-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.plan-usage-ring > svg circle { fill: none; stroke-width: 11; }
.plan-usage-ring-track { stroke: rgba(164, 201, 232, .22); }
.plan-usage-ring-value { stroke: #1684eb; stroke-linecap: round; }
.plan-usage-ring > span { position: relative; z-index: 1; width: calc(100% - 28px); height: calc(100% - 28px); display: grid; place-content: center; text-align: center; background: rgba(250, 253, 255, .96); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(119, 169, 217, .15); }
.plan-usage-ring strong { color: #164b78; font: 800 22px/1.1 "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; }
.plan-usage-ring small { margin-top: 3px; color: #71879b; font-size: 10px; }
.plan-usage-values { margin: 0; display: grid; gap: 3px; }
.plan-usage-values > div { padding: 6px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid rgba(118, 166, 214, .16); }
.plan-usage-values dt { color: #6c8298; font-size: 12px; }
.plan-usage-values dd { margin: 4px 0 0; color: #1e466d; font-size: 14px; font-weight: 750; }
.plan-usage-progress { display: none; }
.system-metric-card > .system-meter-line { align-items: center; justify-content: flex-start; gap: 10px; color: inherit; }
.system-meter-line > progress { flex: 1 1 auto; min-width: 0; height: 10px; margin: 0; }
.system-meter-line > progress::-webkit-progress-value { background: linear-gradient(90deg, #2563eb, #22d3ee); }
.system-meter-line > progress::-moz-progress-bar { background: linear-gradient(90deg, #2563eb, #22d3ee); }
.system-meter-line > .system-meter-value { flex: 0 0 auto; color: #5d768e; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-provider-traffic][data-provider-stale="true"] .system-meter-line > progress { opacity: .45; }
[data-provider-traffic][data-provider-available="false"] [data-provider-caption] { display: none; }
.plan-usage-progress::-webkit-progress-bar { background: rgba(161, 197, 226, .22); border-radius: 999px; }
.plan-usage-progress::-webkit-progress-value { background: linear-gradient(90deg, #1691ee, #315fd9); border-radius: 999px; }
.plan-usage-progress::-moz-progress-bar { background: linear-gradient(90deg, #1691ee, #315fd9); border-radius: 999px; }
.plan-usage-pending { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 13px; }
.plan-usage-pending > span { width: 11px; height: 11px; background: #20c99a; border-radius: 50%; box-shadow: 0 0 0 6px rgba(32, 201, 154, .11); }
.plan-usage-pending b { color: #244b70; font-size: 14px; }
.plan-usage-pending p { margin: 5px 0 0; color: #6a8197; font-size: 12px; }
.network-diagnostics > .account-category-head > small { color: #55758f; font-size: 12px; }
.network-diagnostics .account-category-head p { display: block; margin: 2px 0 0; color: #6a8197; font-size: 12px; line-height: 1.4; }
.network-test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; gap: 14px; }
.network-test-card { min-width: 0; min-height: 132px; padding: 14px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 88px; grid-template-rows: 36px 1fr; align-items: center; gap: 12px 10px; background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(238, 248, 255, .66)); border: 1px solid rgba(111, 164, 216, .25); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(38, 92, 148, .04); }
.network-test-icon { grid-column: 1; grid-row: 1; width: 36px; height: 36px; display: grid; place-items: center; color: #1778d7; background: rgba(226, 244, 255, .82); border-radius: 10px; }
.network-test-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.network-test-card > div > span { grid-column: 2; grid-row: 1; color: #345976; font-size: 13px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.network-test-card > div > strong { grid-column: 1 / -1; grid-row: 2; align-self: end; margin: 0; display: flex; align-items: baseline; gap: 6px; color: #173f66; }
.network-test-card > div > strong b { font: 800 26px/1.1 "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; }
.network-test-card > div > strong small { color: #71879c; font-size: 12px; }
.network-test-card > div > p { display: none; }
.network-test-card > .button { grid-column: 3; grid-row: 1; width: 88px; min-height: 36px; height: 36px; padding: 0 10px; color: #fff; background: #1677df; border-color: #1677df; border-radius: 10px; box-shadow: 0 4px 10px rgba(22, 119, 223, .14); font-size: 13px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.network-test-card > .button:hover { background: #0965c5; border-color: #0965c5; transform: none; }
.network-test-card > .button:disabled { cursor: wait; opacity: .68; }
.network-speed-results { grid-column: 1 / -1; grid-row: 2; align-self: end; margin: 0; display: flex; align-items: center; gap: 16px; }
.network-speed-results > strong { min-width: 0; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; color: #173f66; }
.network-speed-results > strong + strong { padding-left: 14px; border-left: 1px solid rgba(106, 158, 209, .22); }
.network-speed-results small { grid-column: 1 / -1; margin-bottom: 3px; color: #607991; font-size: 12px; font-weight: 700; }
.network-speed-results b { font: 800 26px/1.1 "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; }
.network-speed-results em { color: #71879c; font-size: 12px; font-style: normal; }
.connection-availability { display: inline-flex; align-items: center; gap: 7px; color: #287056; font-size: 11px; font-style: normal; font-weight: 750; }
.connection-availability > span { width: 7px; height: 7px; background: #22c696; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34, 198, 150, .11); }
.connection-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.connection-layout:has(> .qr-config-card[open]):has(> .config-access-card[open]) { align-items: stretch; }
.connection-disclosure,
.connection-status-card { min-width: 0; background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(239, 248, 255, .65)); border: 1px solid rgba(111, 164, 216, .25); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 9px 24px rgba(38, 92, 148, .06); }
.connection-disclosure { width: 100%; min-height: 0; margin: 0; padding: 0; display: block; overflow: hidden; }
.connection-disclosure[open] { width: 100%; }
.config-access-card[open] { width: 100%; }
.connection-disclosure > summary { min-height: 52px; padding: 9px 14px; display: grid; grid-template-columns: 32px max-content 20px; justify-content: start; align-items: center; gap: 10px; color: #254a70; cursor: pointer; list-style: none; user-select: none; }
.connection-disclosure > summary::-webkit-details-marker { display: none; }
.connection-disclosure > summary > span:nth-child(2) { min-width: 0; display: block; }
.connection-disclosure > summary small,
.connection-disclosure > summary b,
.connection-disclosure > summary em { display: block; }
.connection-disclosure > summary small { display: none; }
.connection-disclosure > summary b { color: #183f63; font-size: 14px; }
.connection-disclosure > summary em { margin-top: 3px; color: #72879a; font-size: 11px; font-style: normal; }
.connection-item-toggle { width: 22px; height: 22px; fill: none; stroke: #5d7892; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.connection-disclosure[open] .connection-item-toggle { transform: rotate(180deg); }
.connection-disclosure > summary:focus-visible { outline: 3px solid rgba(41, 137, 232, .24); outline-offset: -3px; border-radius: 16px; }
.qr-config-body { padding: 16px; display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 14px; border-top: 1px solid rgba(112, 161, 210, .17); }
.qr-image-link { width: min(160px, 100%); height: auto; aspect-ratio: 1 / 1; display: block; border-radius: 12px; }
.qr-image-link:focus-visible { outline: 3px solid rgba(21, 126, 224, .34); outline-offset: 3px; }
.qr-image-link img { width: 100%; height: 100%; aspect-ratio: 1 / 1; padding: 8px; display: block; object-fit: contain; background: #fff; border: 1px solid rgba(112, 159, 207, .28); border-radius: 15px; image-rendering: pixelated; }
.qr-config-body > div { min-width: 0; width: 100%; display: grid; gap: 14px; }
.qr-config-body p,
.config-access-body p { margin: 0; color: #637b91; font-size: 12px; line-height: 1.65; }
.qr-config-body .button { min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
.connection-card-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #1778d7; background: rgba(225, 243, 255, .84); border-radius: 10px; }
.connection-card-icon.active { color: #158a69; background: rgba(225, 249, 241, .82); }
.connection-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.config-access-body { padding: 16px; display: grid; align-content: start; gap: 14px; border-top: 1px solid rgba(112, 161, 210, .17); }
.config-access-body > code { padding: 10px 11px; display: block; overflow: hidden; color: #28587f; background: rgba(229, 243, 254, .72); border: 1px solid rgba(110, 160, 210, .18); border-radius: 10px; font: 12px/1.4 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.connection-status-card { min-height: 132px; padding: 14px; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 36px 1fr; align-content: start; align-items: center; gap: 12px 10px; }
.connection-status-card > .connection-card-icon { width: 36px; height: 36px; border-radius: 10px; }
.connection-status-card > div:first-of-type { margin-top: 0; }
.connection-status-card > div > span,
.connection-status-card p { display: none; }
.connection-status-card h3 { margin: 0; color: #183f63; font-size: 13px; }
.config-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.config-actions .button { width: 100%; min-width: 0; min-height: 44px; padding: 0 9px; border-radius: 10px; font-size: 12px; }
.connection-status-card dl { grid-column: 1 / -1; align-self: end; margin: 0; padding: 0; display: grid; grid-template-columns: max-content repeat(2, minmax(0, 1fr)); gap: 8px; }
.connection-status-card dl > div:first-child dd { white-space: nowrap; }
.connection-status-card dl > div { padding: 0; }
.connection-status-card dl > div:last-child { border-bottom: 0; }
.connection-status-card dt { color: #6a8196; font-size: 11px; }
.connection-status-card dd { margin: 5px 0 0; color: #244e70; font: 700 11px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
.traffic-toolbar { margin-bottom: 14px; display: flex; justify-content: flex-end; }

/* Account cards share one bounded layout and a consistent spacing scale. */
.account-page .portal-header { min-height: 56px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); }
.account-page .portal-header nav > a:not(.portal-login-link),
.account-page .portal-header nav form button { font-size: 13px; }
.account-page .customer-name { font-size: 12px; }
.network-test-card > div { display: contents; }
.plan-identity-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 10px 12px; }
.plan-date-grid { grid-column: 1 / -1; }
.plan-usage-panel:has(.plan-usage-content) { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-content: center; align-items: center; gap: 10px 14px; }
.plan-usage-panel:has(.plan-usage-content) > header { grid-column: 2; grid-row: 1; }
.plan-usage-content { display: contents; }
.plan-usage-ring { grid-column: 1; grid-row: 1 / span 2; width: 72px; }
.plan-usage-ring > span { width: calc(100% - 18px); height: calc(100% - 18px); }
.plan-usage-ring strong { font-size: 18px; }
.plan-usage-values { grid-column: 2; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-usage-values > div { padding: 0; display: block; border: 0; }

.account-inline-message,
.account-empty-v3 {
  margin-top: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #315b81;
  background: rgba(232, 245, 255, .68);
  border: 1px solid rgba(104, 163, 220, .24);
  border-radius: 17px;
}
.account-inline-message.error { color: #a13d4e; background: rgba(255, 239, 243, .76); border-color: rgba(202, 91, 111, .24); }
.account-inline-message b,
.account-inline-message p,
.account-empty-v3 h2,
.account-empty-v3 p { margin: 0; }
.account-inline-message b { display: block; margin-bottom: 4px; font-size: 14px; }
.account-inline-message p,
.account-empty-v3 p { color: #627b94; font-size: 13px; line-height: 1.6; }
.account-empty-v3 { min-height: 190px; margin-top: 0; padding: 26px; }
.account-empty-v3.compact { min-height: 140px; }
.account-empty-v3 > span {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #1776d5;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(113, 169, 224, .24);
  border-radius: 16px;
}
.account-empty-v3 > span svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-empty-v3 h2 { margin-bottom: 6px; color: #173b5e; font-size: 17px; }
.account-empty-v3 .button { margin-left: auto; flex: 0 0 auto; }
.account-empty-v3.plan-empty {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(48px, 4vw, 68px);
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 80px minmax(0, 1fr);
  column-gap: 30px;
  align-content: center;
  background:
    radial-gradient(circle at 92% 8%, rgba(74, 177, 255, .14), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(230, 244, 255, .56));
  border-color: rgba(104, 162, 220, .28);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 16px 38px rgba(47, 100, 160, .08);
}
.account-empty-v3.plan-empty > span {
  width: 80px;
  height: 80px;
  grid-row: 1 / span 2;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(36, 113, 196, .10), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.account-empty-v3.plan-empty > span svg { width: 34px; height: 34px; }
.account-empty-v3.plan-empty h2 { margin-bottom: 10px; font-size: 26px; }
.account-empty-v3.plan-empty p { max-width: 650px; font-size: 16px; }
.account-empty-v3.plan-empty .button {
  min-width: 164px;
  min-height: 50px;
  margin: 26px 0 0;
  grid-column: 2;
  justify-self: start;
  border-radius: 14px;
}
.traffic-view {
  overflow: hidden;
}
.traffic-view-head {
  align-items: center;
}
.traffic-range-switch {
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(60px, 1fr));
  gap: 3px;
  background: rgba(224, 240, 255, .72);
  border: 1px solid rgba(104, 160, 217, .24);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}
.traffic-range-switch button {
  min-width: 62px;
  min-height: 38px;
  padding: 0 14px;
  color: #59738d;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: 750 14px/1 "Microsoft YaHei UI", sans-serif;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.traffic-range-switch button:hover { color: #176fc9; }
.traffic-range-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #168ced, #116edc 58%, #514fd7);
  box-shadow: 0 7px 17px rgba(27, 106, 209, .22), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.traffic-stat-grid {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.traffic-stat-grid article {
  min-width: 0;
  min-height: 118px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 92% 5%, rgba(73, 177, 255, .14), transparent 7rem),
    linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(235, 246, 255, .60));
  border: 1px solid rgba(126, 173, 221, .28);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 10px 26px rgba(45, 95, 153, .07);
}
.traffic-stat-grid article.primary {
  color: #fff;
  background:
    radial-gradient(circle at 92% 2%, rgba(108, 218, 255, .35), transparent 9rem),
    linear-gradient(140deg, #138be9, #146bd9 56%, #514ed5);
  border-color: rgba(255, 255, 255, .52);
  box-shadow: 0 14px 32px rgba(26, 101, 198, .20), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.traffic-stat-grid article > span {
  color: #667f98;
  font-size: 12px;
  font-weight: 700;
}
.traffic-stat-grid article > strong {
  margin-top: 9px;
  color: #173c61;
  font: 750 24px/1.1 "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.traffic-stat-grid article > small {
  margin-top: 8px;
  overflow: hidden;
  color: #7890a7;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.traffic-stat-grid article.primary > span,
.traffic-stat-grid article.primary > small { color: rgba(255, 255, 255, .76); }
.traffic-stat-grid article.primary > strong { color: #fff; }
.traffic-chart-card {
  height: clamp(380px, 44vh, 440px);
  min-height: 0;
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 0%, rgba(84, 184, 255, .15), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(232, 245, 255, .55));
  border: 1px solid rgba(118, 166, 218, .28);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), 0 14px 34px rgba(45, 94, 151, .08);
}
.traffic-chart-card > header {
  padding: 0 2px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.traffic-chart-card > header span:first-child {
  color: #173d61;
  font-size: 17px;
  font-weight: 800;
}
.traffic-chart-card > header p {
  margin: 5px 0 0;
  color: #7189a1;
  font-size: 12px;
}
.traffic-chart-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #57718a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.traffic-chart-key i {
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, #1388eb, #4e56dd);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(29, 121, 224, .08);
}
.traffic-chart {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  outline: none;
}
.traffic-chart:focus-visible {
  border-radius: 15px;
  box-shadow: 0 0 0 3px rgba(27, 119, 221, .14);
}
.traffic-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.traffic-chart-grid { stroke: rgba(91, 137, 184, .14); stroke-width: 1; }
.traffic-chart-axis { fill: #7a91a8; font: 10px/1 "Microsoft YaHei UI", sans-serif; }
.traffic-chart-axis.x { fill: #6e879f; }
.traffic-chart-area { fill: url(#traffic-area-gradient); }
.traffic-chart-line {
  fill: none;
  stroke: url(#account-blue-gradient, #1479e5);
  stroke: #1479e5;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 8px rgba(25, 112, 214, .18));
}
.traffic-chart-guide { stroke: rgba(44, 104, 166, .25); stroke-width: 1; stroke-dasharray: 4 5; }
.traffic-chart-point { fill: #fff; stroke: #1478e4; stroke-width: 4; filter: drop-shadow(0 3px 5px rgba(18, 102, 200, .20)); }
.traffic-chart-hit { cursor: crosshair; }
.traffic-chart-empty {
  position: absolute;
  inset: 50% auto auto 50%;
  padding: 9px 14px;
  color: #70879e;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(119, 167, 215, .20);
  border-radius: 999px;
  font-size: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}
.traffic-chart-tooltip {
  position: absolute;
  z-index: 4;
  top: 20px;
  min-width: 178px;
  padding: 12px 13px;
  color: #31506d;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(107, 158, 211, .28);
  border-radius: 13px;
  box-shadow: 0 13px 32px rgba(34, 81, 133, .15), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: translateX(12px);
  pointer-events: none;
}
.traffic-chart-tooltip[data-side="left"] { transform: translateX(calc(-100% - 12px)); }
.traffic-chart-tooltip > strong { display: block; margin-bottom: 8px; color: #163b60; font-size: 12px; }
.traffic-chart-tooltip > span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; }
.traffic-chart-tooltip > span i { width: 7px; height: 7px; background: #1479e5; border-radius: 50%; }
.traffic-chart-tooltip > span em { font-size: 11px; font-style: normal; }
.traffic-chart-tooltip > span b { color: #17446f; font-size: 12px; }
.traffic-chart-tooltip > small { display: block; margin-top: 7px; color: #748ba1; font-size: 10px; }
.traffic-chart-card > footer {
  min-height: 30px;
  padding: 10px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #71879c;
  border-top: 1px solid rgba(112, 160, 209, .15);
}
.traffic-chart-card > footer span { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
.traffic-chart-card > footer span i { width: 7px; height: 7px; background: #27bf91; border-radius: 50%; box-shadow: 0 0 0 4px rgba(39, 191, 145, .10); }
.traffic-chart-card > footer small { font-size: 10px; }
.traffic-empty { min-height: 280px; }
.traffic-empty > span svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-order-list { display: grid; overflow: hidden; background: rgba(255, 255, 255, .57); border: 1px solid rgba(126, 171, 218, .28); border-radius: 19px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 11px 28px rgba(48, 96, 151, .07); }
.account-order-list-head,
.account-order-row {
  display: grid;
  grid-template-columns: minmax(165px, 1fr) minmax(250px, 1.45fr) minmax(130px, .75fr) minmax(110px, .62fr) auto;
  align-items: center;
  gap: 16px;
}
.account-order-list-head { min-height: 54px; padding: 0 20px; color: #607a92; background: rgba(232, 244, 253, .58); border-bottom: 1px solid rgba(119, 164, 211, .20); font-size: 14px; font-weight: 750; }
.account-order-row { min-height: 86px; padding: 15px 20px; border-bottom: 1px solid rgba(119, 164, 211, .17); }
.account-order-row:last-child { border-bottom: 0; }
.account-order-row > time { color: #345875; font-size: 15px; font-weight: 650; }
.account-order-row > code { color: #234d70; font: 700 15px/1.45 Consolas, monospace; overflow-wrap: anywhere; }
.account-order-plan { min-width: 0; }
.account-order-plan b { display: block; color: #173d60; font-size: 16px; }
.account-order-plan small { display: block; margin-top: 4px; color: #74899d; font-size: 13px; }
.account-order-row .order-status { padding: 6px 10px; font-size: 13px; }
.account-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.account-order-actions form { margin: 0; }
.account-order-actions .button { min-width: 92px; min-height: 44px; padding: 0 15px; font-size: 14px; }
.button.danger-quiet { color: #b44855; background: rgba(255, 245, 247, .78); border-color: rgba(201, 91, 106, .28); box-shadow: none; }
.button.danger-quiet:hover { color: #9d3040; background: rgba(255, 235, 239, .92); border-color: rgba(192, 68, 87, .38); }
.renewal-state-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #275477;
  background: rgba(229, 244, 255, .72);
  border: 1px solid rgba(92, 155, 216, .26);
  border-radius: 17px;
}
.renewal-state-card > span {
  width: 39px;
  height: 39px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #1778d7;
  background: rgba(255, 255, 255, .74);
  border-radius: 13px;
}
.renewal-state-card > span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.renewal-state-copy { min-width: 0; }
.renewal-state-card b { display: block; margin-bottom: 4px; font-size: 14px; }
.renewal-state-card p { margin: 0; color: #607991; font-size: 13px; line-height: 1.6; }
.renewal-countdown { min-width: 190px; margin-left: auto; padding-left: 20px; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 9px; border-left: 1px solid rgba(91, 150, 207, .22); }
.renewal-countdown > span { color: #607991; font-size: 12px; }
.renewal-countdown > strong { color: #1769c7; font-size: 19px; }
.renewal-countdown > small { grid-column: 1 / -1; margin-top: 2px; color: #71869a; font-size: 11px; }
.renewal-state-card.exhausted,
.renewal-state-card.expired,
.renewal-state-card.attention { color: #87501f; background: rgba(255, 247, 230, .78); border-color: rgba(215, 153, 57, .26); }
.renewal-state-card.exhausted > span,
.renewal-state-card.expired > span,
.renewal-state-card.attention > span { color: #bb6f18; }
.account-plans-stage { margin-top: 2px; }
.account-plans-stage::before {
  top: 96px;
  width: 94%;
  height: 330px;
  opacity: .72;
}
.account-plans-stage .store-plan-grid { gap: clamp(16px, 1.45vw, 24px); }
.account-plans-stage .store-plan {
  min-height: clamp(430px, 31vw, 500px);
  padding: clamp(24px, 1.8vw, 30px);
}
.account-plans-stage .store-plan.account-plan-current:not(.featured) {
  border-color: rgba(45, 131, 224, .66);
  box-shadow: 0 25px 60px rgba(39, 107, 188, .18), inset 0 1px 0 rgba(255, 255, 255, .98);
}
.account-plan-pills { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.account-plans-stage .store-plan-top .account-current-pill {
  color: #0870d8;
  background: rgba(230, 247, 255, .92);
  border-color: rgba(67, 151, 226, .30);
}
.account-plans-stage .store-plan.featured .account-current-pill {
  color: #075fb9;
  background: rgba(241, 250, 255, .92);
  border-color: rgba(68, 148, 218, .26);
}
.account-plan-expiry {
  margin-top: 10px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #667d94;
  font-size: 12px;
}
.account-plan-expiry strong { color: #224b74; font-size: 13px; }
.account-plans-stage .store-plan.featured .account-plan-expiry { color: #667d94; }
.account-plans-stage .store-plan.featured .account-plan-expiry strong { color: #224b74; }
.renewal-rules { margin-top: 22px; padding-top: 21px; border-top: 1px solid rgba(126, 169, 216, .22); }
.renewal-rules h2 { margin: 0; color: #173a5c; font-size: 17px; }
.renewal-rules > div { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.renewal-rules article { padding: 13px; background: rgba(255, 255, 255, .48); border: 1px solid rgba(132, 175, 222, .22); border-radius: 14px; }
.renewal-rules article b { color: #254a6d; font-size: 13px; }
.renewal-rules article p { margin: 6px 0 0; color: #667d94; font-size: 12px; line-height: 1.6; }

/* Customer connection guide: one guided path for phone and Windows users. */
.usage-guide-view {
  --guide-ink: #133c61;
  --guide-muted: #637c93;
  --guide-blue: #137fe4;
  --guide-line: rgba(91, 151, 211, .22);
  padding: clamp(28px, 3vw, 46px);
}
.usage-guide-hero {
  position: relative;
  min-height: 214px;
  padding: clamp(27px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgba(103, 219, 255, .45), transparent 14rem),
    radial-gradient(circle at 3% 118%, rgba(123, 94, 255, .52), transparent 17rem),
    linear-gradient(135deg, #075ba9, #096ed5 53%, #3f47c7);
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 25px;
  box-shadow: 0 22px 46px rgba(20, 91, 185, .22), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.usage-guide-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -170px;
  right: 8%;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .045), 0 0 0 72px rgba(255, 255, 255, .025);
}
.usage-guide-hero-copy { position: relative; z-index: 1; min-width: 0; }
.usage-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.usage-guide-kicker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.usage-guide-hero h1 {
  max-width: 680px;
  margin: 13px 0 0;
  color: #fff;
  font: 800 clamp(31px, 3.1vw, 47px)/1.08 "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif;
  letter-spacing: -.045em;
}
.usage-guide-hero p { max-width: 760px; margin: 17px 0 0; color: rgba(239, 248, 255, .83); font-size: 14px; line-height: 1.75; }
.usage-guide-plan-link { position: relative; z-index: 1; min-width: 176px; min-height: 48px; color: #0a63bc; background: rgba(255, 255, 255, .94); border-color: rgba(255, 255, 255, .72); box-shadow: 0 11px 26px rgba(3, 39, 97, .18); }
.usage-guide-plan-link:hover { color: #fff; background: #0a57ad; border-color: rgba(255, 255, 255, .42); }
.usage-guide-rail {
  margin: 18px 0 0;
  padding: 11px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  background: rgba(245, 251, 255, .72);
  border: 1px solid rgba(109, 163, 216, .24);
  border-radius: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94);
}
.usage-guide-rail li { position: relative; min-width: 0; min-height: 60px; padding: 8px 18px; display: flex; align-items: center; gap: 13px; }
.usage-guide-rail li + li { border-left: 1px solid var(--guide-line); }
.usage-guide-rail li > span {
  width: 37px;
  height: 37px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1695ef, #2760d7);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(27, 107, 211, .18);
  font: 800 11px/1 "Bahnschrift", sans-serif;
}
.usage-guide-rail b,
.usage-guide-rail small { display: block; }
.usage-guide-rail b { color: var(--guide-ink); font-size: 14px; }
.usage-guide-rail small { margin-top: 3px; color: var(--guide-muted); font-size: 11px; }
.usage-guide-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--guide-line); }
.usage-guide-section-head { margin-bottom: 17px; display: flex; align-items: center; gap: 12px; }
.usage-guide-section-head > span {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #176fc9;
  background: rgba(226, 243, 255, .82);
  border: 1px solid rgba(88, 153, 217, .24);
  border-radius: 12px;
  font: 800 12px/1 "Bahnschrift", sans-serif;
}
.usage-guide-section-head h2 { margin: 0; color: var(--guide-ink); font-size: 19px; letter-spacing: -.015em; }
.usage-guide-section-head p { margin: 4px 0 0; color: var(--guide-muted); font-size: 12px; }
.usage-device-grid,
.usage-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.usage-device-card,
.usage-method-card {
  min-width: 0;
  padding: 21px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .83), rgba(236, 247, 255, .65));
  border: 1px solid rgba(107, 163, 218, .26);
  border-radius: 20px;
  box-shadow: 0 13px 30px rgba(40, 91, 147, .07), inset 0 1px 0 rgba(255, 255, 255, .94);
}
.usage-device-card { min-height: 300px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .52fr); align-items: center; gap: 20px; }
.usage-device-card.desktop { position: relative; grid-template-columns: minmax(0, 1fr) 172px; background: radial-gradient(circle at 96% 3%, rgba(63, 119, 245, .15), transparent 13rem), linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(232, 244, 255, .68)); }
.usage-device-copy { min-width: 0; }
.usage-device-label,
.usage-method-card > header > span,
.usage-tun-note > span {
  display: inline-flex;
  color: #176ac0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.usage-device-card h3 { margin: 8px 0 7px; color: #153d62; font-size: 27px; letter-spacing: -.03em; }
.usage-device-card p { margin: 0; color: #627b92; font-size: 13px; line-height: 1.7; }
.usage-download-button { width: fit-content; min-height: 45px; margin-top: 19px; padding: 0 15px; gap: 8px; border-radius: 13px; }
.usage-download-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.usage-download-meta { margin-top: 9px; display: block; color: #75899b; font-size: 10px; }
.usage-desktop-mark { position: relative; z-index: 1; display: grid; place-items: center; text-align: center; }
.usage-desktop-mark > span {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #16a0ed, #156bd4 58%, #5549cf);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(27, 97, 202, .24), inset 0 1px 0 rgba(255, 255, 255, .42);
  font: 800 48px/1 "Bahnschrift", sans-serif;
}
.usage-desktop-mark b,
.usage-desktop-mark small { display: block; }
.usage-desktop-mark b { margin-top: 11px; color: #194468; font-size: 16px; }
.usage-desktop-mark small { margin-top: 3px; color: #70869a; font-size: 10px; }
.usage-method-grid { grid-template-columns: minmax(285px, .72fr) minmax(480px, 1.28fr); }
.usage-method-card { display: flex; flex-direction: column; }
.usage-method-card > header h3 { margin: 7px 0 0; color: var(--guide-ink); font-size: 18px; }
.usage-method-card > ol { margin: 16px 0 18px; padding-left: 22px; color: #526f89; font-size: 13px; line-height: 1.75; }
.usage-method-card > ol li + li { margin-top: 5px; }
.usage-guide-gallery { margin-top: auto; display: grid; grid-template-columns: minmax(210px, .72fr) minmax(270px, 1.28fr); align-items: stretch; gap: 12px; }
.usage-guide-figure { min-width: 0; margin: auto 0 0; padding: 10px; background: rgba(255, 255, 255, .70); border: 1px solid rgba(108, 159, 210, .23); border-radius: 16px; }
.usage-guide-figure a { display: block; overflow: hidden; background: #fff; border-radius: 11px; }
.usage-guide-figure a:focus-visible { outline: 3px solid rgba(28, 127, 224, .32); outline-offset: 3px; }
.usage-guide-figure img { width: 100%; height: auto; display: block; object-fit: contain; }
.usage-guide-figure.portrait { width: min(100%, 250px); justify-self: center; }
.usage-device-card .usage-guide-figure.portrait { width: min(100%, 190px); max-height: 255px; overflow: hidden; }
.usage-device-card .usage-guide-figure.portrait img { max-height: 210px; object-position: top; }
.usage-method-card > .usage-guide-figure.portrait img { max-height: 390px; }
.usage-guide-gallery .usage-guide-figure:first-child img { max-height: 370px; }
.usage-guide-figure.wide { align-self: end; }
.usage-guide-figure figcaption { margin-top: 8px; color: #72879a; font-size: 10px; line-height: 1.45; text-align: center; }
.usage-tun-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); align-items: stretch; gap: 14px; }
.usage-tun-steps { margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; background: rgba(245, 251, 255, .65); border: 1px solid rgba(108, 161, 215, .23); border-radius: 19px; }
.usage-tun-steps li { min-width: 0; padding: 13px; display: flex; gap: 11px; background: rgba(255, 255, 255, .61); border: 1px solid rgba(116, 168, 220, .18); border-radius: 14px; }
.usage-tun-steps li > span { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: #167bdc; border-radius: 9px; font: 800 11px/1 "Bahnschrift", sans-serif; }
.usage-tun-steps b { color: #204a6e; font-size: 13px; }
.usage-tun-steps p { margin: 5px 0 0; color: #6b8195; font-size: 11px; line-height: 1.55; }
.usage-tun-note { padding: 20px; color: #fff; background: linear-gradient(145deg, #153f68, #1a548c); border: 1px solid rgba(255, 255, 255, .18); border-radius: 19px; box-shadow: 0 13px 28px rgba(21, 69, 114, .15); }
.usage-tun-note > span { color: #87d8ff; }
.usage-tun-note p { margin: 10px 0 0; color: rgba(241, 248, 255, .84); font-size: 12px; line-height: 1.75; }
.usage-tun-gallery { margin-top: 14px; display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: end; gap: 14px; }
.usage-tun-gallery .tall img { max-height: 410px; object-position: center top; }
.usage-tun-gallery .tun-bar img { min-height: 84px; object-fit: contain; }

@media (hover: hover) {
  .plans-stage .store-plan.featured:hover { transform: translateY(-5px); }
  .usage-guide-figure:hover { border-color: rgba(32, 127, 220, .42); box-shadow: 0 12px 26px rgba(35, 94, 154, .09); }
}

@media (max-width: 1260px) {
  .account-plans-stage .store-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-plans-stage .store-plan:last-child:nth-child(odd) {
    width: calc(50% - 12px);
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 1080px) {
  .account-workspace { grid-template-columns: 192px minmax(0, 1fr); gap: 24px; }
  .account-view { padding: 18px; }
  .plan-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-identity-panel,
  .plan-usage-panel { min-height: 0; }
  .account-order-list { overflow: visible; gap: 12px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .account-order-list-head { display: none; }
  .account-order-row { min-height: 0; padding: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 22px; background: rgba(255, 255, 255, .66); border: 1px solid rgba(132, 175, 222, .28); border-radius: 17px; box-shadow: 0 9px 24px rgba(48, 96, 151, .06); }
  .account-order-row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #75899c; font-size: 11px; font-weight: 650; }
  .account-order-row:last-child { border-bottom: 1px solid rgba(132, 175, 222, .28); }
  .account-order-actions { grid-column: 1 / -1; }
  .account-order-actions { justify-content: flex-start; }
  .traffic-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-device-grid,
  .usage-method-grid { grid-template-columns: 1fr; }
  .usage-device-card { min-height: 0; }
  .usage-method-card > .usage-guide-figure.portrait { width: min(100%, 310px); }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .portal-main.account-main { width: min(960px, calc(100% - 32px)); }
  .account-workspace { grid-template-columns: 1fr; gap: 20px; }
  .account-sidebar { position: static; padding: 8px; }
  .account-profile { display: none; }
  .account-side-nav { padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .account-side-nav a { justify-content: center; }
}

@media (max-width: 900px) {
  .plans-main { padding-top: 42px; }
  .portal-main.account-main { width: min(100% - 28px, 780px); padding-top: 20px; }
  .account-workspace { grid-template-columns: 1fr; gap: 13px; }
  .account-sidebar { position: sticky; z-index: 35; top: 64px; height: auto; min-height: 0; padding: 8px; display: block; border-radius: 16px; }
  .account-profile,
  .account-side-nav { padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .account-side-nav a { min-height: 48px; padding: 0 10px; justify-content: center; }
  .account-side-nav a > b { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; }
  .account-view { min-height: 0; }
  .account-view.is-empty { display: block; }
  .traffic-view-head { align-items: flex-start; }
  .traffic-chart-card { height: 390px; min-height: 0; }
  .account-empty-v3.plan-empty {
    width: 100%;
    min-height: 190px;
    margin: 0;
    padding: 26px;
    display: flex;
  }
  .account-empty-v3.plan-empty > span { width: 48px; height: 48px; border-radius: 16px; }
  .account-empty-v3.plan-empty > span svg { width: 23px; height: 23px; }
  .account-empty-v3.plan-empty h2 { margin-bottom: 6px; font-size: 17px; }
  .account-empty-v3.plan-empty p { font-size: 13px; }
  .account-empty-v3.plan-empty .button { min-width: 0; min-height: 42px; margin: 0 0 0 auto; }
  .usage-guide-hero { grid-template-columns: 1fr; align-items: start; }
  .usage-guide-plan-link { width: fit-content; }
  .usage-tun-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .plans-intro { min-height: 0; margin-bottom: 24px; padding: 21px 22px; }
  .plans-intro-row { grid-template-columns: 1fr; gap: 7px; }
  .plans-intro-divider { display: none; }
  .plans-intro h1 { font-size: 28px; }
  .plans-stage::before { top: 154px; }
  .connection-disclosure-body { grid-template-columns: 1fr; }
  .connection-disclosure-body .account-qr { max-width: 250px; width: 100%; margin: 0 auto; }
  .network-test-card { width: 100%; }
  .connection-layout { grid-template-columns: 1fr; }
  .plan-overview-card { grid-template-columns: 1fr; }
  .connection-layout > .connection-disclosure { width: 100%; }
  .plan-usage-content { grid-template-columns: 130px minmax(0, 1fr); gap: 17px; }
  .plan-usage-ring { width: 72px; }
  .renewal-rules > div { grid-template-columns: 1fr; }
  .account-plans-stage .store-plan-grid { grid-template-columns: 1fr; }
  .account-plans-stage .store-plan:last-child:nth-child(odd) {
    width: auto;
    grid-column: auto;
  }
  .usage-device-card,
  .usage-device-card.desktop { grid-template-columns: 1fr; }
  .usage-desktop-mark { display: none; }
  .usage-guide-gallery,
  .usage-tun-gallery { grid-template-columns: 1fr; }
  .usage-guide-gallery .usage-guide-figure,
  .usage-tun-gallery .usage-guide-figure { width: min(100%, 520px); justify-self: center; }
  .usage-tun-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .plans-main { padding-top: 24px; }
  .plans-intro { margin-bottom: 20px; padding: 18px; border-radius: 20px; }
  .plans-intro .plans-eyebrow { margin-bottom: 7px; font-size: 10px; }
  .plans-intro h1 { font-size: 26px; }
  .plans-intro p { font-size: 12px; }
  .plans-stage .store-plan-grid { gap: 16px; }
  .plans-stage .store-plan { min-height: 0; }
  .portal-main.account-main { width: calc(100% - 24px); padding: 16px 0 32px; }
  .account-sidebar { top: 64px; padding: 7px; }
  .account-side-nav a { min-height: 52px; padding: 6px 2px; flex-direction: column; gap: 4px; font-size: 10px; text-align: center; }
  .account-side-nav a svg { width: 18px; height: 18px; }
  .account-view { min-height: 0; padding: 16px; border-radius: 18px; }
  .account-view-head { margin-bottom: 20px; }
  .account-view-head h1 { font-size: 25px; }
  .account-view-head p { font-size: 13px; }
  .traffic-view-head { gap: 14px; }
  .traffic-range-switch { flex: 0 0 auto; }
  .traffic-stat-grid { gap: 8px; }
  .traffic-stat-grid article { min-height: 104px; padding: 14px; }
  .traffic-stat-grid article > strong { font-size: 20px; }
  .traffic-chart-card { height: 350px; min-height: 0; padding: 17px 12px 13px; }
  .traffic-chart { min-height: 0; }
  .account-state,
  .account-count { min-height: 32px; padding: 0 9px; font-size: 11px; }
  .account-category { padding: 0; border-radius: 0; }
  .account-category + .account-category { margin-top: 20px; padding-top: 20px; }
  .account-category-head { margin-bottom: 16px; }
  .plan-identity-panel,
  .plan-usage-panel { padding: 14px; border-radius: 16px; }
  .plan-identity-panel { grid-template-columns: 1fr; gap: 8px; }
  .plan-identity-panel > h3 { margin: 0; font-size: 22px; }
  .plan-date-grid { margin-top: 4px; grid-template-columns: 1fr; gap: 6px; }
  .plan-date-grid > div { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .plan-date-grid dd { margin: 0; }
  .plan-usage-content { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .plan-usage-panel:has(.plan-usage-content) { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .plan-usage-ring { width: 64px; }
  .plan-usage-values { grid-template-columns: 1fr; gap: 8px; }
  .plan-usage-values > div { display: flex; gap: 8px; }
  .plan-usage-values dd { margin: 0; font-size: 13px; }
  .plan-usage-ring strong { font-size: 16px; }
  .plan-usage-values { width: 100%; }
  .network-test-card,
  .connection-status-card { min-height: 140px; }
  .network-test-card { grid-template-columns: 44px minmax(0, 1fr) 88px; grid-template-rows: 44px 1fr; }
  .network-test-icon { width: 44px; height: 44px; }
  .network-test-card > .button { height: 44px; min-height: 44px; }
  .network-speed-results { gap: 12px; }
  .network-speed-results > strong + strong { padding-left: 12px; }
  .qr-config-body { padding: 16px; grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .connection-metric-grid { grid-template-columns: 1fr; }
  .connection-metric-grid > div:nth-child(odd),
  .connection-metric-grid > div:nth-child(even) { padding: 13px 2px; border-right: 0; border-bottom: 1px solid rgba(119, 166, 214, .17); }
  .connection-metric-grid > div:last-child { border-bottom: 0; }
  .current-plan-card { padding: 20px 16px; border-radius: 19px; }
  .current-plan-identity h2 { font-size: 22px; }
  .plan-stat-grid { gap: 8px; }
  .plan-stat-grid > div { padding: 12px 10px; border-radius: 13px; }
  .plan-stat-grid dd { font-size: 14px; }
  .connection-disclosure summary { min-height: 52px; padding: 9px 14px; }
  .connection-disclosure summary small { max-width: 210px; }
  .connection-disclosure-body { padding: 0 14px 17px; }
  .account-empty-v3 { min-height: 0; padding: 20px; align-items: flex-start; flex-wrap: wrap; }
  .account-empty-v3 .button { width: 100%; margin-left: 0; }
  .account-order-row { padding: 15px; grid-template-columns: 1fr; border-radius: 17px; }
  .account-order-meta { grid-template-columns: 1fr; gap: 10px; }
  .account-order-actions { grid-column: auto; align-items: stretch; }
  .account-order-actions .button,
  .account-order-actions form { flex: 1 1 0; }
  .account-order-actions form .button { width: 100%; }
  .renewal-state-card { align-items: flex-start; flex-wrap: wrap; }
  .renewal-countdown { width: 100%; margin-left: 52px; padding: 10px 0 0; border-top: 1px solid rgba(91, 150, 207, .20); border-left: 0; }
  .account-plans-stage .store-plan { min-height: 0; padding: 22px; }
  .account-plan-pills { gap: 5px; }
  .account-plan-expiry { align-items: flex-start; flex-direction: column; gap: 4px; }
  .usage-guide-view { padding: 15px 12px 24px; }
  .usage-guide-hero { min-height: 0; padding: 24px 19px; border-radius: 20px; }
  .usage-guide-hero h1 { font-size: 31px; }
  .usage-guide-hero p { font-size: 12px; }
  .usage-guide-plan-link { width: 100%; }
  .usage-guide-rail { grid-template-columns: 1fr; padding: 7px 12px; }
  .usage-guide-rail li { min-height: 54px; padding: 7px 5px; }
  .usage-guide-rail li + li { border-top: 1px solid var(--guide-line); border-left: 0; }
  .usage-guide-section { margin-top: 22px; padding-top: 21px; }
  .usage-device-card,
  .usage-method-card { padding: 17px; border-radius: 17px; }
  .usage-device-card h3 { font-size: 23px; }
  .usage-download-button { width: 100%; padding: 0 10px; font-size: 11px; }
  .usage-method-card > ol { padding-left: 19px; font-size: 12px; }
  .usage-guide-section-head h2 { font-size: 17px; }
  .usage-tun-steps { padding: 10px; }
  .usage-tun-note { padding: 17px; }
}

/* Keep administration ledgers inside the viewport at every breakpoint. */
.admin-body .modern-table-wrap { overflow-x: hidden; }
.admin-body .customer-list-table,
.admin-body .order-list-table { width: 100%; min-width: 0; }
.admin-body .customer-list-table th,
.admin-body .customer-list-table td { width: auto; }
.admin-body .customer-list-table th:nth-child(1),
.admin-body .customer-list-table td:nth-child(1) { width: 24%; }
.admin-body .customer-list-table th:nth-child(2),
.admin-body .customer-list-table td:nth-child(2),
.admin-body .customer-list-table th:nth-child(3),
.admin-body .customer-list-table td:nth-child(3) { width: 15%; }
.admin-body .customer-list-table th:nth-child(4),
.admin-body .customer-list-table td:nth-child(4) { width: 13%; }
.admin-body .customer-list-table th:nth-child(5),
.admin-body .customer-list-table td:nth-child(5) { width: 33%; }
.admin-body .order-list-table th,
.admin-body .order-list-table td { width: auto; }
.admin-body .order-list-table th:nth-child(1),
.admin-body .order-list-table td:nth-child(1) { width: 4%; }
.admin-body .order-list-table th:nth-child(2),
.admin-body .order-list-table td:nth-child(2) { width: 17%; }
.admin-body .order-list-table th:nth-child(3),
.admin-body .order-list-table td:nth-child(3) { width: 18%; }
.admin-body .order-list-table th:nth-child(4),
.admin-body .order-list-table td:nth-child(4) { width: 12%; }
.admin-body .order-list-table th:nth-child(5),
.admin-body .order-list-table td:nth-child(5) { width: 12%; }
.admin-body .order-list-table th:nth-child(6),
.admin-body .order-list-table td:nth-child(6) { width: 10%; }
.admin-body .order-list-table th:nth-child(7),
.admin-body .order-list-table td:nth-child(7) { width: 15%; }
.admin-body .order-list-table th:nth-child(8),
.admin-body .order-list-table td:nth-child(8) { width: 12%; }

@media (max-width: 1180px) {
  .admin-body .order-list-table tbody tr:not(.table-empty-row) td,
  .admin-body .order-list-table tbody tr:not(.table-empty-row) td:nth-child(n) { width: auto; }
}

@media (max-width: 900px) {
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td,
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:nth-child(n) { width: auto; }
}

/* Global responsive contract: every view reflows; horizontal scrolling is never used. */
html,
body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-body .app-shell,
.admin-body .main-shell,
.admin-body .topbar,
.admin-body .content,
.admin-body .top-actions,
.admin-body .title-group,
.admin-body .dashboard-v3,
.admin-body .dashboard-kpis,
.admin-body .analytics-card,
.admin-body .donut-grid,
.admin-body .donut-block,
.admin-body .list-card,
.admin-body .list-toolbar,
.admin-body .list-meta,
.admin-body .order-search,
.admin-body .modern-search,
.admin-body .modern-table-wrap,
.admin-body .plan-page-head,
.admin-body .plan-admin-grid,
.admin-body .renewal-note,
.admin-body .client-command,
.admin-body .client-console-layout,
.admin-body .client-workspace,
.admin-body .client-control-grid,
.admin-body .client-control-card,
.admin-body .system-health-hero,
.admin-body .system-metric-grid,
.admin-body .system-console-grid,
.admin-body .system-side-stack,
.admin-body .system-service-grid,
.admin-body .system-service-item {
  min-width: 0;
  max-width: 100%;
}

.admin-body .app-shell,
.admin-body .main-shell,
.admin-body .content,
.admin-body .sidebar,
.admin-body .table-wrap,
.admin-body .filter-tabs,
.admin-body .bar-chart,
.admin-body .range-switch {
  overflow-x: hidden;
}

.admin-body .topbar,
.admin-body .top-actions,
.admin-body .list-meta,
.admin-body .pagination,
.admin-body .plan-page-head,
.admin-body .renewal-note,
.admin-body .client-command,
.admin-body .client-danger-zone,
.admin-body .system-health-hero {
  flex-wrap: wrap;
}

.admin-body .title-group { flex: 1 1 180px; }
.admin-body .top-actions { flex: 0 1 auto; }
.admin-body .top-actions > * { max-width: 100%; }
.admin-body .modern-table { width: 100%; min-width: 0; table-layout: fixed; }
.admin-body .modern-table th,
.admin-body .modern-table td {
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-body .order-number,
.admin-body .payment-trade-number,
.admin-body .account-name,
.admin-body .client-command-title h2,
.admin-body .client-command-identity b,
.admin-body .system-node-card dd,
.admin-body .plan-preview b {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.admin-body .range-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-body .range-switch button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1180px) {
  .admin-body .customer-list-table thead { display: none; }
  .admin-body .customer-list-table,
  .admin-body .customer-list-table tbody { display: block; }
  .admin-body .customer-list-table tbody { padding: 12px; }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: rgba(252, 254, 255, .76);
    border: 1px solid rgba(126, 170, 221, .22);
    border-radius: 15px;
  }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row):last-child { margin-bottom: 0; }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td,
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:nth-child(n) {
    width: auto;
    min-width: 0;
    min-height: 56px;
    height: auto;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(126, 170, 221, .15);
    white-space: normal;
  }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td::before {
    content: attr(data-label);
    color: #7a8da4;
    font-size: 9px;
    font-weight: 700;
  }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:first-child,
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:nth-child(3) { border-right: 0; }
  .admin-body .customer-list-table .traffic-cell { width: 100%; min-width: 0; }
  .admin-body .customer-list-table .traffic-meter { min-width: 0; flex-wrap: wrap; }
  .admin-body .customer-list-table .table-empty-row { display: block; }
  .admin-body .customer-list-table .table-empty-row td { width: 100%; display: block; }
}

.portal-body .portal-header,
.portal-body .portal-header nav,
.portal-body .portal-main,
.portal-body .portal-footer,
.portal-body .plans-stage,
.portal-body .plans-intro,
.portal-body .plans-intro-row,
.portal-body .store-plan-grid,
.portal-body .store-plan,
.portal-body .auth-main,
.portal-body .auth-shell,
.portal-body .auth-card,
.portal-body .checkout-shell,
.portal-body .checkout-grid,
.portal-body .checkout-main,
.portal-body .checkout-summary,
.portal-body .account-workspace,
.portal-body .account-sidebar,
.portal-body .account-view-stack,
.portal-body .account-view,
.portal-body .account-plan-dashboard,
.portal-body .account-category,
.portal-body .account-category-head,
.portal-body .plan-overview-card,
.portal-body .plan-identity-panel,
.portal-body .plan-usage-panel,
.portal-body .network-test-grid,
.portal-body .network-test-card,
.portal-body .connection-layout,
.portal-body .connection-status-card,
.portal-body .connection-disclosure,
.portal-body .traffic-stat-grid,
.portal-body .traffic-chart-card,
.portal-body .account-order-list,
.portal-body .account-order-row,
.portal-body .renewal-state-card,
.portal-body .renewal-rules {
  min-width: 0;
  max-width: 100%;
}

.portal-body .portal-header,
.portal-body .portal-main,
.portal-body .portal-footer,
.portal-body .account-workspace,
.portal-body .account-view-stack,
.portal-body .account-view,
.portal-body .account-order-list {
  overflow-x: clip;
}

.portal-body .portal-header nav,
.portal-body .portal-footer,
.portal-body .plan-quota,
.portal-body .store-plan-top,
.portal-body .account-category-head,
.portal-body .plan-identity-top,
.portal-body .plan-usage-panel > header,
.portal-body .traffic-chart-card > header,
.portal-body .traffic-chart-card > footer,
.portal-body .network-speed-results,
.portal-body .account-order-actions {
  flex-wrap: wrap;
}

.portal-body .checkout-main p,
.portal-body .checkout-main dd,
.portal-body .account-order-row code,
.portal-body .account-profile strong,
.portal-body .plan-identity-panel p,
.portal-body .connection-status-card dd,
.portal-body .config-access-body code,
.portal-body .renewal-state-copy,
.portal-body .renewal-state-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .admin-body .topbar { align-items: center; gap: 8px 12px; }
  .admin-body .top-actions { margin-left: auto; }
  .admin-body .list-meta,
  .admin-body .pagination { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) { grid-template-columns: 1fr; }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td,
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:first-child,
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:last-child {
    grid-column: auto;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .portal-body .portal-header { padding-right: 12px; padding-left: 12px; }
  .portal-body .portal-header nav { width: 100%; justify-content: flex-end; gap: 4px; }
  .portal-body .customer-name { max-width: 122px; padding-right: 8px; padding-left: 8px; font-size: 11px; }
  .portal-body .portal-header nav > a:not(.portal-login-link),
  .portal-body .portal-header nav form button { padding-right: 6px; padding-left: 6px; font-size: 12px; }
  .portal-body .portal-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .portal-body .network-speed-results > strong { min-width: 0; }
  .portal-body .renewal-countdown { width: 100%; min-width: 0; margin-left: 0; }
  .portal-body .traffic-chart-empty,
  .portal-body .chart-empty { max-width: calc(100% - 16px); white-space: normal; text-align: center; }
}

/* Final admin layout: one content surface, no duplicated page-title bar. */
.admin-body .main-shell {
  position: relative;
  min-height: 100dvh;
}
.admin-body .content {
  min-height: 100dvh;
  padding: 22px 28px 38px;
}
.admin-body .mobile-nav-toggle { display: none; }

.admin-account-trigger {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 10px 40px 10px 12px;
  color: inherit;
  border: 1px solid rgba(119, 164, 217, .24);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.admin-account-trigger:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(58, 133, 223, .34);
  box-shadow: 0 8px 20px rgba(48, 96, 151, .08);
}
.admin-account-trigger small {
  color: #0877ff;
  font-size: 9px;
  font-weight: 750;
}
.admin-account-trigger svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #7a91aa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}
.admin-account-trigger:focus-visible {
  outline: 3px solid rgba(8, 119, 255, .28);
  outline-offset: 2px;
}
.admin-password-dialog { width: min(460px, calc(100vw - 30px)); }
.admin-password-dialog > form > header p {
  margin: 5px 0 0;
  color: #71849a;
  font-size: 10px;
}
.dialog-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #0877ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.admin-password-dialog .field-error {
  min-height: 16px;
  color: #b5304b;
  font-size: 10px;
  line-height: 1.5;
}
.back-inline-link {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0877ff;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}
.client-command-actions,
.plan-page-actions,
.list-toolbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.client-command-actions form { margin: 0; }
.system-health-facts a {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: #0877ff;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(118, 165, 216, .26);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

/* Dashboard: KPIs above, growth and distribution side-by-side in one desktop viewport. */
@media (min-width: 1181px) and (min-height: 680px) {
  .admin-body:has(.dashboard-v3) { overflow-y: hidden; }
  .admin-body:has(.dashboard-v3) .main-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .admin-body:has(.dashboard-v3) .content {
    height: 100%;
    min-height: 0;
    padding: 18px 24px;
    overflow: hidden;
  }
  .admin-body .dashboard-v3 {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(318px, 26%);
    grid-template-rows: 96px auto;
    align-content: start;
    gap: 14px;
  }
  .admin-body .dashboard-kpis {
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 12px;
  }
  .admin-body .dashboard-kpi {
    min-height: 0;
    height: 96px;
    padding: 16px 19px;
  }
  .admin-body .dashboard-kpi strong {
    margin: 12px 0 7px;
    font-size: clamp(25px, 1.85vw, 32px);
  }
  .admin-body .growth-analytics {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    padding: 18px 20px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .admin-body .distribution-card {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
  }
  .admin-body .analytics-head h2 { margin-bottom: 4px; font-size: 18px; }
  .admin-body .analytics-head p { font-size: 10px; }
  .admin-body .range-switch { flex: 0 0 auto; }
  .admin-body .range-switch button { min-height: 36px; min-width: 43px; padding: 0 10px; }
  .admin-body .interactive-series-legend {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
  }
  .admin-body .interactive-series-legend button {
    min-height: 50px;
    padding: 7px 9px;
  }
  .admin-body .interactive-series-legend button > span { font-size: 11px; }
  .admin-body .interactive-series-legend button b { font-size: 13px; }
  .admin-body .growth-chart {
    height: 280px;
    min-height: 0;
    margin-top: 4px;
    flex: 0 0 280px;
  }
  .admin-body .chart-help { flex: 0 0 auto; }
  .admin-body .distribution-card .analytics-head.compact { margin-bottom: 12px; }
  .admin-body .distribution-card .donut-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
    gap: 10px;
  }
  .admin-body .distribution-card .donut-block {
    min-height: 0;
    padding: 12px;
    grid-template-columns: minmax(96px, 118px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px 10px;
    overflow: hidden;
  }
  .admin-body .distribution-card .donut-chart { width: min(118px, 100%); }
  .admin-body .distribution-card .donut-legend { gap: 7px; }
  .admin-body .distribution-card .donut-legend-row { font-size: 10px; }
  .admin-body .distribution-card .donut-legend-row b { font-size: 9px; }
}

/* Compact, deliberate customer ledger. */
.admin-body .list-card {
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(48, 96, 151, .11), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.admin-body .list-toolbar {
  min-height: 90px;
  padding: 18px 22px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .56), rgba(237, 247, 255, .52));
}
.admin-body .list-toolbar h2 { margin-bottom: 6px; font-size: 22px; }
.admin-body .list-toolbar p { max-width: 650px; font-size: 12px; }
.admin-body .customer-toolbar-actions { flex: 0 1 500px; }
.admin-body .customer-toolbar-actions .modern-search { width: min(340px, 100%); flex: 1 1 280px; }
.admin-body .customer-toolbar-actions .button { flex: 0 0 auto; white-space: nowrap; }
.admin-body .list-meta { min-height: 44px; padding: 0 22px; font-size: 12px; }
.admin-body .list-control-bar {
  min-height: 64px;
  padding: 10px 22px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .56), rgba(237, 247, 255, .52));
}
.admin-body .list-control-bar .customer-toolbar-actions { margin-left: auto; }
.admin-body .order-control-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 12px;
}
.admin-body .order-control-actions .order-search { flex: 0 1 520px; }
.admin-body .order-control-actions .order-list-actions { flex: 0 0 auto; }
.admin-body .modern-table th {
  height: 44px;
  padding: 0 16px;
  color: #60758e;
  background: rgba(229, 241, 255, .72);
  font-size: 12px;
  letter-spacing: .03em;
}
.admin-body .modern-table td {
  min-height: 0;
  height: 54px;
  padding: 8px 12px;
  font-size: 12px;
}
.admin-body .customer-list-table th:nth-child(1),
.admin-body .customer-list-table td:nth-child(1) { width: 15%; }
.admin-body .customer-list-table th:nth-child(2),
.admin-body .customer-list-table td:nth-child(2),
.admin-body .customer-list-table th:nth-child(3),
.admin-body .customer-list-table td:nth-child(3) { width: 14%; }
.admin-body .customer-list-table th:nth-child(4),
.admin-body .customer-list-table td:nth-child(4) { width: 11%; }
.admin-body .customer-list-table th:nth-child(5),
.admin-body .customer-list-table td:nth-child(5) { width: 28%; }
.admin-body .customer-list-table th:nth-child(6),
.admin-body .customer-list-table td:nth-child(6) { width: 18%; }
.admin-body .customer-list-table .account-name { font-size: 13px; }
.admin-body .customer-list-table .account-cell .order-status { display: none; }
.admin-body .customer-list-table .traffic-cell { min-width: 0; gap: 4px; }
.admin-body .customer-list-table .traffic-meter { flex-wrap: wrap; gap: 4px 7px; }
.admin-body .customer-list-table .traffic-meter progress {
  width: 52px;
  height: 5px;
  flex-basis: 52px;
}
.admin-body .customer-list-table .traffic-cell strong { font-size: 12px; }
.admin-body .customer-list-table .traffic-cell small { font-size: 11px; }
.admin-body .customer-list-table .traffic-amount {
  min-width: 0;
  color: #627a94;
  font: 600 11px/1.5 Consolas, monospace;
  white-space: nowrap;
}
.admin-body .customer-action-cell .row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-body .customer-action-cell .row-actions a,
.admin-body .customer-action-cell .row-actions button {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e6680;
  background: rgba(242, 247, 253, .82);
  border: 1px solid rgba(116, 160, 211, .25);
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
}
.admin-body .customer-action-cell .row-actions .customer-manage-link {
  color: #086fdf;
  background: rgba(8, 119, 255, .08);
  border-color: rgba(8, 119, 255, .18);
}
.admin-body .customer-action-cell .row-actions a::after,
.admin-body .customer-action-cell .row-actions button::after { content: none; }

/* Order deletion belongs to a dedicated rightmost action column. */
.admin-body .order-list-table th:nth-child(1),
.admin-body .order-list-table td:nth-child(1) { width: 3%; }
.admin-body .order-list-table th:nth-child(2),
.admin-body .order-list-table td:nth-child(2) { width: 18%; }
.admin-body .order-list-table th:nth-child(3),
.admin-body .order-list-table td:nth-child(3) { width: 12%; }
.admin-body .order-list-table th:nth-child(4),
.admin-body .order-list-table td:nth-child(4) { width: 18%; }
.admin-body .order-list-table th:nth-child(5),
.admin-body .order-list-table td:nth-child(5) { width: 11%; }
.admin-body .order-list-table th:nth-child(6),
.admin-body .order-list-table td:nth-child(6) { width: 9%; }
.admin-body .order-list-table th:nth-child(7),
.admin-body .order-list-table td:nth-child(7) { width: 8%; }
.admin-body .order-list-table th:nth-child(8),
.admin-body .order-list-table td:nth-child(8) { width: 7%; }
.admin-body .order-list-table th:nth-child(9),
.admin-body .order-list-table td:nth-child(9) { width: 8%; }
.admin-body .order-list-table th:nth-child(10),
.admin-body .order-list-table td:nth-child(10) { width: 6%; }
.admin-body .order-list-table .order-number,
.admin-body .order-list-table .payment-trade-number { font: 600 11px/1.55 Consolas, monospace; }
.admin-body .order-list-table th,
.admin-body .order-list-table td { padding-right: 10px; padding-left: 10px; }
@media (min-width: 1181px) {
  .admin-body .order-list-table .order-checkbox { min-height: 32px; }
  .admin-body .order-list-table .plan-pill { min-height: 24px; height: 24px; padding: 0 8px; font-size: 11px; }
  .admin-body .order-list-table .renew-label { margin-top: 2px; font-size: 10px; line-height: 11px; }
}
.admin-body .order-time-cell time { display: flex; flex-wrap: wrap; gap: 0 5px; color: #627a94; font: 500 11px/1.5 Consolas, monospace; }
.admin-body .order-time-cell time span { white-space: nowrap; }
.admin-body .order-action-heading,
.admin-body .order-action-cell {
  padding-right: 6px;
  padding-left: 6px;
  text-align: center;
}
.admin-body .order-row-actions {
  min-height: 0;
  margin: 0;
  justify-content: center;
}
.admin-body .order-row-actions .inline-action.delete {
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c93655;
  background: rgba(201, 54, 85, .07);
  border: 1px solid rgba(201, 54, 85, .17);
  border-radius: 10px;
  white-space: nowrap;
}
.admin-body .action-unavailable { color: #a5b2c1; }

@media (max-width: 1180px) {
  .admin-body .list-toolbar-actions { width: 100%; justify-content: stretch; }
  .admin-body .customer-toolbar-actions { flex: none; }
  .admin-body .customer-toolbar-actions .modern-search { width: auto; max-width: none; }
  .admin-body .list-control-bar { align-items: stretch; flex-direction: column; }
  .admin-body .list-control-bar .customer-toolbar-actions { margin-left: 0; }
  .admin-body .order-control-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .admin-body .order-control-actions .order-search { flex: 1 1 520px; }
  .admin-body .order-list-table tbody tr:not(.table-empty-row) td.order-action-cell {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .admin-body .order-action-cell .order-row-actions { justify-content: flex-start; }
}

@media (max-width: 980px) {
  .admin-body .mobile-nav-toggle {
    position: fixed;
    z-index: 44;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(112, 158, 213, .30);
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(42, 88, 143, .15);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .admin-body .content { padding: 70px 18px 34px; }
}

@media (max-width: 900px) {
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td.customer-action-cell {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .admin-body .system-console-grid { grid-template-columns: 1fr; }
  .admin-body .system-side-stack { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .admin-body .content { padding: 68px 10px 26px; }
  .admin-body .customer-toolbar-actions,
  .admin-body .plan-page-actions,
  .admin-body .client-command-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .admin-body .customer-toolbar-actions .button,
  .admin-body .plan-page-actions .button,
  .admin-body .client-command-actions .button { width: 100%; }
  .admin-body .list-toolbar { padding: 17px; }
  .admin-body .list-control-bar { padding: 12px 16px; }
  .admin-body .order-control-actions { align-items: stretch; flex-direction: column; }
  .admin-body .order-control-actions .order-search { width: 100%; flex: none; }
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td.customer-action-cell { grid-column: auto; }
}

/* Keep the three plan cards and renewal note visible in short desktop windows. */
@media (min-width: 1181px) and (max-height: 650px) {
  .admin-body .content { padding: 12px 22px 14px; }
  .admin-body .modern-plans { gap: 14px; }
  .admin-body .modern-plans .plan-admin-card { padding: 16px 18px; gap: 10px; }
  .admin-body .modern-plans .plan-admin-head { padding-bottom: 10px; }
  .admin-body .plan-orb { width: 38px; height: 38px; }
  .admin-body .modern-plans .plan-admin-card > label { gap: 4px; }
  .admin-body .modern-plans .field-with-unit input { height: 36px; }
  .admin-body .modern-plans label > small { line-height: 1.3; }
  .admin-body .plan-preview { padding: 8px 10px; }
  .admin-body .plan-preview span { margin-bottom: 2px; }
  .admin-body .modern-plans .button { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
  .admin-body .renewal-note { margin-top: 12px; padding: 10px 16px; gap: 12px; }
  .admin-body .renewal-note svg { width: 26px; height: 26px; }
  .admin-body .renewal-note h2 { margin-bottom: 2px; font-size: 13px; }
  .admin-body .renewal-note p { font-size: 9px; line-height: 1.4; }
}

/* Usage guide intentionally follows a plain Markdown document rhythm. */
.usage-guide-view {
  padding: 0;
}
.usage-markdown {
  width: 100%;
  margin: 0;
  padding: 10px 30px 6px;
  color: #334e68;
  font-size: 18px;
  line-height: 1.45;
}
.usage-guide-columns {
  display: block;
}
.usage-markdown-section {
  padding: 0 0 12px;
}
.usage-markdown-section + .usage-markdown-section {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(98, 143, 187, .26);
}
.usage-markdown-section > h2 {
  margin: 0 0 9px;
  padding: 0 0 6px;
  color: #173a5c;
  border-bottom: 1px solid rgba(98, 143, 187, .20);
  font-size: 28px;
  line-height: 1.3;
}
.usage-markdown-section-body {
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 34px;
}
.usage-guide-step {
  min-width: 0;
}
.usage-markdown h3 {
  margin: 0 0 4px;
  color: #294e70;
  font-size: 20px;
  line-height: 1.4;
}
.usage-markdown p {
  margin: 2px 0 6px;
}
.usage-markdown ol,
.usage-markdown ul {
  margin: 2px 0 5px;
  padding-left: 25px;
}
.usage-markdown li + li {
  margin-top: 1px;
}
.usage-markdown a {
  color: #0969da;
  text-underline-offset: 3px;
}
.usage-markdown-download {
  font-weight: 700;
}
.usage-markdown-image {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 5px 0 7px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(105, 135, 164, .24);
  border-radius: 4px;
}
.usage-markdown-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}
.usage-markdown-image.phone-app { width: min(100%, 330px); }
.usage-markdown-image.phone-scan { width: min(100%, 150px); }
.usage-markdown-image.desktop-toolbar,
.usage-markdown-image.node-list { width: min(100%, 360px); }
.usage-markdown-image.tun-controls {
  width: min(100%, 330px);
}
.usage-markdown-image:focus-visible {
  outline: 3px solid rgba(9, 105, 218, .25);
  outline-offset: 3px;
}

@media (min-width: 1400px) and (min-height: 1001px) {
  .usage-markdown-section-body {
    max-width: none;
    gap: 14px clamp(48px, 4vw, 88px);
  }
  .usage-markdown-image.phone-app { width: min(100%, 50vh); }
  .usage-markdown-image.phone-scan { width: min(100%, 22vh); }
  .usage-markdown-image.desktop-toolbar,
  .usage-markdown-image.node-list { width: min(100%, 50vh); }
  .usage-markdown-image.tun-controls { width: min(100%, 46vh); }
}

@media (min-width: 1800px) and (min-height: 1150px) {
  .usage-markdown-section-body { row-gap: 18px; }
  .usage-markdown-image.phone-app { width: min(100%, 60vh); }
  .usage-markdown-image.phone-scan { width: min(100%, 27vh); }
  .usage-markdown-image.desktop-toolbar,
  .usage-markdown-image.node-list { width: min(100%, 60vh); }
  .usage-markdown-image.tun-controls { width: min(100%, 55vh); }
}

@media (min-width: 901px) and (max-height: 1000px) {
  .usage-markdown { padding-top: 7px; padding-bottom: 3px; }
  .usage-markdown-section > h2 { margin-bottom: 6px; padding-bottom: 4px; }
  .usage-markdown-section-body { gap: 6px 28px; }
  .usage-markdown-image.phone-app { width: min(100%, 300px); }
  .usage-markdown-image.phone-scan { width: min(100%, 130px); }
  .usage-markdown-image.desktop-toolbar,
  .usage-markdown-image.node-list { width: min(100%, 320px); }
  .usage-markdown-image.tun-controls { width: min(100%, 300px); }
}

@media (max-width: 1120px) {
  .usage-markdown { padding-right: 26px; padding-left: 26px; }
}

@media (max-width: 720px) {
  .usage-markdown-section-body { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  .usage-guide-view { padding: 0; }
  .usage-markdown { padding: 22px 18px 36px; font-size: 17px; }
  .usage-markdown-section-body { grid-template-columns: 1fr; gap: 18px; }
  .usage-markdown-section > h2 { font-size: 25px; }
  .usage-markdown h3 { font-size: 19px; }
}

/* Compact controls share the same spacing across business views. */
.admin-body .growth-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-body .growth-head h2 { margin: 0; }
.admin-body .dashboard-controls { min-width: 0; margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-body .dashboard-controls .range-switch button { min-width: 0; min-height: 32px; padding: 0 10px; }
.admin-body .chart-mode-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-body .modern-plans { gap: 18px; }
.admin-body .modern-plans .compact-plan-card { min-height: 0; padding: 22px; display: grid; gap: 20px; border-top: 3px solid #1685ff; }
.admin-body .compact-plan-card.plan-card-quarterly { border-top-color: #725cff; }
.admin-body .compact-plan-card.plan-card-yearly { border-top-color: #00a7ad; }
.admin-body .compact-plan-card .plan-admin-head { padding-bottom: 16px; align-items: center; }
.admin-body .compact-plan-card .plan-admin-head h2 { margin: 0; font-size: 19px; }
.admin-body .compact-plan-card .plan-duration { color: #627a94; font-size: 12px; white-space: nowrap; }
.admin-body .compact-plan-card .plan-fields { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-body .compact-plan-card .plan-fields > label { min-width: 0; margin: 0; display: grid; gap: 8px; }
.admin-body .compact-plan-card .plan-fields > label > span { font-size: 12px; }
.admin-body .compact-plan-card .field-with-unit input { height: 44px; min-width: 0; padding-left: 12px; font-size: 15px; }
.admin-body .plan-card-footer { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(126, 170, 221, .2); }
.admin-body .plan-card-footer .button { min-height: 38px; padding: 8px 24px; }
.admin-body #manual-customer .dialog-fields { gap: 16px; }
.admin-body #manual-customer .field-with-unit input { width: 100%; }
@media (max-width: 1180px) {
  .admin-body .customer-list-table tbody tr:not(.table-empty-row) td:nth-child(n),
  .admin-body .order-list-table tbody tr:not(.table-empty-row) td:nth-child(n) { min-height: 42px; height: auto; padding: 8px 12px; }
  .admin-body .customer-list-table .traffic-meter { gap: 4px 6px; }
  .admin-body .customer-list-table .traffic-amount { white-space: normal; }
  .admin-body .customer-list-table .plan-pill,
  .admin-body .order-list-table .plan-pill,
  .admin-body .order-list-table .order-status,
  .admin-body .order-list-table .payment-label { justify-self: start; }
}
@media (max-width: 640px) {
  .admin-body .list-control-bar .modern-search { flex: none; height: 44px; min-height: 44px; }
  .admin-body .list-control-bar .modern-search button { height: 100%; }
  .admin-body .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-body .dashboard-kpi { min-height: 90px; padding: 14px; }
  .admin-body .dashboard-kpi strong { margin: 14px 0 0; font-size: 23px; }
  .admin-body .dashboard-controls { width: 100%; margin-left: 0; }
  .admin-body .modern-plans .compact-plan-card { padding: 18px; gap: 16px; }
  .admin-body .compact-plan-card .plan-fields { gap: 12px; }
}

/* Health details must remain readable at mobile widths. */
.admin-body .system-network-health { margin-bottom: 18px; }
.admin-body .system-network-health .system-service-item small { overflow: visible; white-space: normal; font-family: inherit; line-height: 1.5; }
.admin-body .system-network-health > p { margin: 8px 16px 14px; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.admin-body .system-network-health header { flex-wrap: wrap; gap: 10px; }

/* Admin controls keep useful widths instead of filling the viewport. */
.admin-body .client-detail-page { max-width: 1080px; margin: 0; }
.admin-body .client-command { width: max-content; max-width: 100%; min-height: 54px; margin-bottom: 14px; padding: 9px 14px; gap: 28px; flex-direction: row; justify-content: flex-start; align-items: center; border-radius: 12px; background: #fff; box-shadow: none; }
.admin-body .client-command-identity h2 { margin: 0; font-size: 19px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.admin-body .client-command-actions { width: auto; flex: none; flex-direction: row; align-items: center; gap: 6px; }
.admin-body .client-command-actions .button { width: auto; min-height: 32px; padding: 6px 10px; border-radius: 7px; box-shadow: none; font-size: 12px; }
.admin-body .client-console-v2 { width: 100%; max-width: 1030px; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; }
.admin-body .client-console-v2 .panel { border-radius: 12px; background: #fff; box-shadow: none; }
.admin-body .client-console-v2 .client-delivery-card { padding: 16px; }
.admin-body .client-delivery-card h2,
.admin-body .client-console-v2 .client-usage-card h2,
.admin-body .client-console-v2 .client-control-panel h2 { margin: 0; font-size: 14px; }
.admin-body .client-subscription-qr { margin: 12px 0; }
.admin-body .client-subscription-qr img { width: 144px; height: 144px; border-width: 6px; border-radius: 6px; }
.admin-body .client-subscription-label { margin-bottom: 6px; font-size: 12px; }
.admin-body .client-subscription-link { height: 34px; min-height: 34px; margin-bottom: 10px; padding: 6px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 7px; font: 11px/1.5 Consolas, monospace; }
.admin-body .client-download-actions { display: flex; gap: 6px; }
.admin-body .client-download-actions .button { width: auto; min-height: 32px; margin: 0; padding: 6px 10px; border-radius: 7px; font-size: 12px; box-shadow: none; }
.admin-body .client-legacy-config { margin-top: 12px; padding-top: 10px; }
.admin-body .client-legacy-config summary { font-size: 11px; }
.admin-body .client-workspace { gap: 14px; justify-items: start; align-content: start; }
.admin-body .client-console-v2 .client-usage-card { width: max-content; max-width: 100%; padding: 16px; }
.admin-body .client-usage-card header { align-items: center; margin: 0; }
.admin-body .usage-reading strong { font-size: 20px; }
.admin-body .client-usage-meter { margin: 12px 0; }
.admin-body .client-usage-meter progress { height: 5px; }
.admin-body .client-console-v2 .client-stat-grid { grid-template-columns: repeat(4, max-content); gap: 20px; margin: 0; }
.admin-body .client-console-v2 .client-stat-grid dt { font-size: 11px; }
.admin-body .client-console-v2 .client-stat-grid dd { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.admin-body .client-console-v2 .client-remaining-stat dd { font-size: 17px; }
.admin-body .client-control-panel { width: max-content; max-width: 100%; }
.admin-body .client-control-panel > header { padding: 12px 16px; }
.admin-body .client-control-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 218px)); padding: 14px 4px; }
.admin-body .client-control-row { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin: 0; padding: 0 12px; border-bottom: 0; border-right: 1px solid #e7edf5; }
.admin-body .client-control-row:last-child { border-right: 0; }
.admin-body .client-control-copy { height: 37px; }
.admin-body .client-control-copy h3 { margin: 0; font-size: 12px; }
.admin-body .client-control-copy output { margin-top: 5px; font-size: 10px; font-weight: 500; }
.admin-body .client-control-edit { width: 100%; grid-template-columns: minmax(0, 1fr) 52px; gap: 6px; }
.admin-body .client-control-edit label { gap: 0; }
.admin-body .client-control-edit input { height: 34px; padding: 6px 8px; border-radius: 7px; font-size: 12px; }
.admin-body .client-control-edit .input-suffix input { padding-right: 30px; }
.admin-body .client-control-edit .input-suffix em { right: 8px; font-size: 11px; }
.admin-body .client-control-edit .button { min-height: 34px; padding: 6px; border-radius: 7px; font-size: 12px; box-shadow: none; }
.admin-body .client-advanced-actions { width: max-content; min-width: 180px; max-width: 100%; }
.admin-body .client-advanced-actions[open] { width: min(100%, 660px); }
.admin-body .client-advanced-actions > summary { min-height: 38px; padding: 10px 14px; font-size: 12px; }
.admin-body .client-advanced-row { padding: 14px 0; }

.admin-body .plans-ledger { width: max-content; max-width: 100%; padding: 0; overflow: hidden; background: #fff; border: 1px solid #dce5ef; border-radius: 12px; box-shadow: 0 2px 8px rgba(28, 49, 78, .025); }
.admin-body .plans-table { width: 800px; max-width: 100%; min-width: 0; }
.admin-body .plans-table th { height: 40px; padding: 0 14px; background: #f6f8fb; letter-spacing: 0; }
.admin-body .plans-table td { height: 58px; padding: 10px 14px; font-size: 13px; }
.admin-body .plans-table th:nth-child(1) { width: 20%; }
.admin-body .plans-table th:nth-child(2) { width: 10%; }
.admin-body .plans-table th:nth-child(3) { width: 21%; }
.admin-body .plans-table th:nth-child(4) { width: 24%; }
.admin-body .plans-table th:nth-child(5) { width: 13%; }
.admin-body .plans-table th:nth-child(6) { width: 12%; }
.admin-body .plans-table input:not([type="hidden"]) { width: 136px; max-width: 100%; min-width: 0; height: 34px; padding: 6px 9px; border-color: #dce5ef; border-radius: 6px; font-size: 13px; font-weight: 500; box-shadow: none; }
.admin-body .plans-table .order-status { display: inline; padding: 0; background: transparent; border: 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.admin-body .plans-table form { margin: 0; }
.admin-body .plans-table .button { min-height: 32px; padding: 6px 14px; background: #1478ff; border-radius: 6px; font-size: 12px; box-shadow: none; }
.admin-body .plans-table .button::after { content: none; }
.admin-body .order-list-table th:nth-child(2), .admin-body .order-list-table td:nth-child(2) { width: 17%; }
.admin-body .order-list-table th:nth-child(4), .admin-body .order-list-table td:nth-child(4) { width: 17%; }
.admin-body .order-list-table th:nth-child(5), .admin-body .order-list-table td:nth-child(5) { width: 10%; }
.admin-body .order-list-table th:nth-child(6), .admin-body .order-list-table td:nth-child(6) { width: 12%; }
.admin-body .order-list-table .plan-pill { max-width: 100%; height: auto; white-space: normal; }

.admin-body .growth-head { align-items: center; gap: 12px; }
.admin-body .trend-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.admin-body .trend-heading h2 { margin: 0; font-size: 17px; white-space: nowrap; }
.admin-body .trend-granularity { display: flex; gap: 4px; }
.admin-body .trend-granularity button { width: 36px; height: 34px; padding: 0; color: #71839e; background: transparent; border: 0; border-radius: 6px; font-size: 13px; cursor: pointer; }
.admin-body .trend-granularity button.active { color: #1478ff; background: #e6efff; font-weight: 700; }
.admin-body .trend-period-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.admin-body .trend-period-switch { display: flex; padding: 3px; border-radius: 7px; background: #edf2f8; }
.admin-body .trend-period-switch button { height: 30px; padding: 0 10px; color: #71839e; background: transparent; border: 0; border-radius: 5px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.admin-body .trend-period-switch button.active { color: #1478ff; background: #fff; font-weight: 700; box-shadow: 0 1px 4px rgba(40, 62, 100, .08); }
.admin-body .trend-custom-button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; color: #405776; background: #fff; border: 1px solid #dce5ef; border-radius: 7px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.admin-body .trend-custom-button.active { color: #1478ff; border-color: #9ec5ff; }
.admin-body .trend-custom-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.admin-body .trend-mode-row { display: flex; justify-content: flex-end; margin: 8px 0 10px; }
.admin-body .trend-mode-row .chart-mode-switch { width: max-content; padding: 2px; gap: 2px; border-radius: 7px; background: #f2f5fa; border-color: #e4ebf3; }
.admin-body .trend-mode-row .chart-mode-switch button { flex: none; min-width: 42px; min-height: 26px; padding: 0 8px; font-size: 11px; border-radius: 5px; }
.admin-body .trend-date-dialog { width: min(420px, calc(100vw - 24px)); }
.admin-body .trend-date-dialog header { padding: 18px 20px; }
.admin-body .trend-date-dialog header h2 { font-size: 17px; }
.admin-body .trend-date-dialog .dialog-fields { padding: 18px 20px; gap: 14px; }
.admin-body .trend-date-dialog footer { padding: 14px 20px; }

@media (max-width: 1180px) {
  .admin-body .client-console-v2 { grid-template-columns: 216px minmax(0, 1fr); gap: 14px; }
  .admin-body .client-console-v2 .client-stat-grid { grid-template-columns: repeat(2, max-content); row-gap: 14px; }
  .admin-body .client-control-rows { grid-template-columns: repeat(2, minmax(0, 218px)); row-gap: 18px; }
  .admin-body .client-control-row:nth-child(2) { border-right: 0; }
  .admin-body .growth-head { align-items: flex-start; }
}
@media (max-width: 900px) {
  .admin-body .client-console-v2 { grid-template-columns: 1fr; max-width: 720px; }
  .admin-body .client-console-v2 .client-delivery-card { width: 236px; max-width: 100%; }
  .admin-body .client-console-v2 .client-workspace { grid-row: 1; }
  .admin-body .client-console-v2 .client-stat-grid { grid-template-columns: repeat(4, max-content); }
  .admin-body .client-control-rows { grid-template-columns: repeat(3, minmax(0, 218px)); }
}
@media (max-width: 640px) {
  .admin-body .client-command { gap: 12px; padding: 9px 11px; }
  .admin-body .client-command-identity h2 { font-size: 17px; }
  .admin-body .client-command-actions .button { padding: 6px 8px; font-size: 11px; }
  .admin-body .client-console-v2 .client-usage-card { width: 100%; padding: 14px; }
  .admin-body .client-console-v2 .client-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .admin-body .client-console-v2 .client-stat-grid dd { white-space: normal; overflow-wrap: anywhere; }
  .admin-body .client-control-rows { grid-template-columns: minmax(0, 240px); padding: 12px 14px; row-gap: 12px; }
  .admin-body .client-control-row { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #e7edf5; }
  .admin-body .client-control-row:last-child { padding-bottom: 0; border-bottom: 0; }
  .admin-body .client-control-copy { height: auto; }
  .admin-body .plans-table, .admin-body .plans-table tbody { display: block; width: 100%; }
  .admin-body .plans-ledger { width: 360px; }
  .admin-body .plans-table thead { display: none; }
  .admin-body .plans-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 14px; border-bottom: 1px solid #e7edf5; }
  .admin-body .plans-table tr:last-child { border-bottom: 0; }
  .admin-body .plans-table td { height: auto; min-width: 0; padding: 0; display: grid; gap: 6px; align-content: start; border: 0; }
  .admin-body .plans-table td::before { content: attr(data-label); color: #74869a; font-size: 10px; }
  .admin-body .plans-table input:not([type="hidden"]) { width: 136px; }
  .admin-body .plans-table .button { width: auto; }
  .admin-body .trend-period-controls { margin-left: 0; }
  .admin-body .trend-heading { gap: 12px; }
}

/* Admin typography uses medium labels and restrained headings. */
body.admin-body { font-weight: 500; }
body.admin-body :is(button, input, select, textarea, label, th, summary) { font-weight: 500; }
body.admin-body :is(.nav-link, .nav-label, .button, .row-actions a, .plan-pill, .order-status, .payment-label, .account-name, .order-number, .selection-count, .pagination a, .field-with-unit em, .sidebar-account strong) { font-weight: 500; }
body.admin-body :is(h1, h2, h3, h4, strong, b, .brand-title) { font-weight: 600; }
body.admin-body :is(.customer-list-table, .order-list-table) :is(b, .order-number, .account-name, .payment-trade-number, .plan-pill, .order-status, .payment-label, .row-actions a) { font-weight: 500; }
body.admin-body :is(.range-switch button, .trend-granularity button, .trend-period-switch button, .interactive-series-legend button > span, .chart-axis-unit, .donut-center-value, .credential-reveal dd, .system-node-card dd, .field-with-unit input, .admin-password-form label, .admin-auth-head span) { font-weight: 500; }
body.admin-body .dashboard-kpi { text-align: center; }
body.admin-body .dashboard-kpi strong { font-weight: 600; }
body.admin-body .customer-control-bar { justify-content: flex-end; }
body.admin-body .plans-table th:nth-child(1) { width: 18%; }
body.admin-body .plans-table th:nth-child(2) { width: 14%; }
body.admin-body .plans-table th:nth-child(3) { width: 21%; }
body.admin-body .plans-table th:nth-child(4) { width: 23%; }
body.admin-body .plans-table th:nth-child(5) { width: 12%; }
body.admin-body .plans-table th:nth-child(6) { width: 12%; }
body.admin-body .plans-table td:nth-child(2) { white-space: nowrap; }

/* Customer management keeps each task in a short, independent panel. */
body.admin-body .client-management-panel { width: 560px; max-width: 100%; }
body.admin-body .client-management-panel .client-command { width: 100%; justify-content: space-between; gap: 12px; }
body.admin-body .client-manager-body { background: #fff; border: 1px solid #dfe7f0; border-radius: 10px; }
body.admin-body .client-manager-tabs { display: flex; gap: 24px; padding: 0 20px; border-bottom: 1px solid #e5ebf3; background: #fff; }
body.admin-body .client-manager-tabs button { position: relative; flex: none; min-height: 48px; margin: 0; padding: 0 0 2px; color: #53667e; background: transparent; border: 0; border-radius: 0; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; cursor: pointer; white-space: nowrap; }
body.admin-body .client-manager-tabs button[aria-selected="true"] { color: #086dda; }
body.admin-body .client-manager-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #1677ee; content: ''; }
body.admin-body .client-manager-tabs button:focus-visible { outline: 2px solid #8abbff; outline-offset: 3px; }
body.admin-body .client-tab-panel { padding: 20px; }
body.admin-body .client-tab-panel[hidden] { display: none !important; }
body.admin-body .client-tab-panel :where(h3, p, dl, form) { margin: 0; }
body.admin-body .client-tab-panel h3 { font-size: 13px; line-height: 1.5; font-weight: 600; }
body.admin-body .client-tab-panel :is(input:not([type="hidden"]), .button) { min-width: 0; min-height: 36px; height: 36px; border-radius: 6px; box-shadow: none; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; }
body.admin-body .client-tab-panel input:not([type="hidden"]) { width: 100%; padding: 7px 10px; color: #253e58; background: #fff; border: 1px solid #d5e0ed; }
body.admin-body .client-tab-panel .button { width: auto; padding: 7px 13px; white-space: nowrap; }
body.admin-body .client-tab-panel .button::after { content: none; }
body.admin-body .client-tab-panel .button.primary { background: #1478ed; border-color: #1478ed; }
body.admin-body .client-tab-panel .button.secondary { color: #385873; background: #fff; border-color: #d5e0ed; }
body.admin-body .client-tab-panel .button.secondary:hover { color: #086dda; background: #f1f7ff; border-color: #a6c8f2; }
body.admin-body .client-tab-panel .button.danger { color: #bd344a; background: #fff; border-color: #ebbdc5; }
body.admin-body .client-quota-summary { padding: 16px; background: #f6f9fd; border: 1px solid #e4ebf4; border-radius: 8px; }
body.admin-body .client-quota-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
body.admin-body .client-quota-head > div { min-width: 0; }
body.admin-body .client-quota-head span { display: block; margin-bottom: 6px; color: #5a7088; font-size: 12px; }
body.admin-body .client-quota-head strong { display: block; font-variant-numeric: tabular-nums; }
body.admin-body .client-quota-left { color: #1275e4; font-size: 21px; line-height: 1.4; font-weight: 600; }
body.admin-body .client-quota-expiry { color: #324c67; font-size: 13px; line-height: 1.6; font-weight: 500; }
body.admin-body .client-quota-summary progress { display: block; width: 100%; height: 5px; margin: 14px 0 8px; }
body.admin-body .client-meter-caption { display: flex; justify-content: space-between; gap: 12px; color: #536b84; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
body.admin-body .client-transfer-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e3eaf3; font-size: 11px; line-height: 1.5; }
body.admin-body .client-transfer-summary > div { display: flex; gap: 8px; }
body.admin-body .client-transfer-summary dt { color: #667b90; }
body.admin-body .client-transfer-summary dd { margin: 0; color: #3d5670; font-variant-numeric: tabular-nums; }
body.admin-body .client-edit-section { margin-top: 24px; }
body.admin-body .client-edit-section > h3 { margin-bottom: 8px; }
body.admin-body .client-edit-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
body.admin-body .client-edit-label { padding-top: 9px; color: #3a526b; font-size: 13px; line-height: 18px; }
body.admin-body .client-edit-actions { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: start; gap: 6px 8px; min-width: 0; }
body.admin-body .client-edit-actions .button { padding-right: 8px; padding-left: 8px; }
body.admin-body .client-inline-field { position: relative; min-width: 0; }
body.admin-body .client-inline-field input { padding-right: 38px !important; }
body.admin-body .client-inline-field > span { position: absolute; right: 10px; top: 0; display: flex; align-items: center; height: 36px; color: #667b93; font-size: 12px; pointer-events: none; }
body.admin-body .client-expiry-note { grid-column: 1 / -1; color: #6b7c90; font-size: 11px; line-height: 1.5; }
body.admin-body .client-connection-box { display: grid; grid-template-columns: 144px minmax(0, 1fr); align-items: center; gap: 18px; }
body.admin-body .client-connection-box .client-subscription-qr { margin: 0; }
body.admin-body .client-connection-box .client-subscription-qr img { display: block; width: 144px; height: 144px; border: 8px solid #fff; border-radius: 4px; }
body.admin-body .client-connection-fields { min-width: 0; }
body.admin-body .client-connection-fields label { display: block; margin-bottom: 8px; color: #3a526b; font-size: 13px; }
body.admin-body .client-connection-fields .client-subscription-link { margin: 0 0 10px; color: #526b85; background: #f6f9fd; font-size: 12px; }
body.admin-body .client-connection-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.admin-body .client-secondary-options { margin-top: 24px; padding-top: 14px; border-top: 1px solid #e5ebf3; }
body.admin-body .client-secondary-options > summary { width: fit-content; color: #536b83; font-size: 12px; line-height: 24px; cursor: pointer; }
body.admin-body .client-secondary-options > summary::marker { font-size: 9px; }
body.admin-body .client-backup-config { display: grid; justify-items: start; gap: 12px; margin-top: 16px; }
body.admin-body .client-backup-config img { width: 144px; height: 144px; border: 6px solid #fff; }
body.admin-body .client-password-section > h3 { margin-bottom: 18px; }
body.admin-body .client-password-section form { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px 12px; align-items: center; }
body.admin-body .client-password-section label { color: #3a526b; font-size: 13px; }
body.admin-body .client-password-section .button { grid-column: 2; justify-self: start; margin-top: 2px; }
body.admin-body .client-password-section .field-error { grid-column: 2; margin: -6px 0 0; color: #b83449; font-size: 12px; }
body.admin-body .client-password-section .field-error:empty { display: none; }
body.admin-body .client-option-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 0; }
body.admin-body .client-option-row h3 { font-weight: 500; }
body.admin-body .client-option-row p { margin-top: 4px; color: #718095; font-size: 11px; line-height: 1.5; }

body.admin-body dialog.customer-manager-drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; color: var(--text); background: #fff; border: 0; border-left: 1px solid #dce5ef; border-radius: 0; box-shadow: -12px 0 40px rgba(27, 48, 77, .12); }
body.admin-body .customer-manager-drawer[open] { display: flex; flex-direction: column; }
body.admin-body .customer-manager-drawer::backdrop { background: rgba(23, 39, 61, .20); }
body.admin-body .customer-manager-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid #e9eef4; }
body.admin-body .customer-manager-header h2 { margin: 0; font-size: 17px; font-weight: 600; }
body.admin-body .customer-manager-header-actions,
body.admin-body [data-customer-manager-actions] { display: flex; align-items: center; gap: 10px; }
body.admin-body .customer-manager-header-actions form { margin: 0; }
body.admin-body .customer-manager-header-actions .button { min-height: 30px; padding: 5px 11px; border-radius: 6px; font-size: 12px; box-shadow: none; }
body.admin-body .customer-manager-header .dialog-close { width: 30px; height: 30px; background: transparent; border: 0; border-radius: 6px; }
body.admin-body .customer-manager-header .dialog-close:hover { background: #f1f5fa; }
body.admin-body .customer-manager-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0; }
body.admin-body .customer-manager-drawer .client-management-panel { width: 100%; }
body.admin-body .customer-manager-drawer .client-manager-body { border: 0; border-radius: 0; }
body.admin-body .customer-manager-drawer .client-manager-tabs { position: sticky; z-index: 1; top: 0; }
body.admin-body [data-customer-manager-feedback] :is(.flash, .manager-message) { position: static; max-width: none; margin: 12px 20px 0; padding: 10px 12px; font-size: 13px; border-radius: 7px; }
body.admin-body .manager-message { color: #526b85; background: #f4f7fb; }
body.admin-body .manager-message.error { color: #b83043; background: #fff0f2; }

body.admin-body .nav-link { color: #3e5570; font-weight: 500; }
body.admin-body .nav-link:hover { color: #0969cf; }
body.admin-body .nav-link.active { color: #fff; }
body.admin-body .nav-list .nav-label { color: #546b84; font-size: 11px; font-weight: 600; letter-spacing: .02em; }

@media (max-width: 520px) {
  body.admin-body .customer-manager-header { padding: 14px 16px; }
  body.admin-body .client-manager-tabs { padding: 0 16px; gap: 22px; }
  body.admin-body .client-tab-panel { padding: 16px; }
  body.admin-body .client-management-panel .client-command { flex-wrap: wrap; }
  body.admin-body .client-quota-summary { padding: 12px; }
  body.admin-body .client-quota-head { gap: 12px; }
  body.admin-body .client-quota-left { font-size: 19px; }
  body.admin-body .client-quota-expiry { font-size: 12px; }
  body.admin-body .client-edit-row,
  body.admin-body .client-password-section form { grid-template-columns: 80px minmax(0, 1fr); gap: 12px 10px; }
  body.admin-body .client-edit-actions { grid-template-columns: minmax(0, 1fr) 54px; }
  body.admin-body .client-connection-box { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  body.admin-body .client-connection-fields { width: 100%; }
}



/* Keep the background still while the management drawer scrolls. */
html:has(body.admin-body.dialog-open) { overflow: hidden; }
body.admin-body dialog.customer-manager-drawer { overflow: hidden; }
body.admin-body :is(.admin-account-trigger small, .portal-preview-link, .kpi-label, .dialog-eyebrow, .back-inline-link, .system-health-facts span, .system-health-facts a, .system-metric-card > div > span, .system-metric-card em, .status) { font-weight: 500; }
body.admin-body .trend-granularity button.active,
body.admin-body .trend-period-switch button.active { font-weight: 500; }

/* Account layout preserves the glass surfaces and groups actions by task. */
body.account-page .account-workspace { gap: 32px; }
body.account-page .account-view { padding: 24px; }
body.account-page .account-category + .account-category { margin-top: 22px; padding-top: 22px; }
body.account-page .account-category-head { min-height: 28px; margin-bottom: 12px; }
body.account-page .account-category-head > div { gap: 10px; }
body.account-page .account-category-head > div > span { width: 26px; height: 26px; border-radius: 8px; font-weight: 650; }
body.account-page .account-category-head h2 { font-size: 14px; font-weight: 650; }
body.account-page .account-category-head > a { min-height: 32px; font-size: 13px; }
body.account-page .plan-identity-panel { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 16px; padding: 18px; }
body.account-page .plan-identity-head { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px; }
body.account-page .plan-identity-head h3 { margin: 0; color: #11385d; font-size: 20px; font-weight: 650; line-height: 1.3; }
body.account-page .plan-renew-link { min-height: 36px; padding: 0 4px; display: inline-flex; align-items: center; gap: 6px; color: #1769c3; background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
body.account-page .plan-renew-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.account-page .plan-renew-link:hover { color: #0954a5; background: rgba(255, 255, 255, .45); }
body.account-page .plan-status { flex: 0 0 auto; font-size: 12px; font-weight: 650; }
body.account-page .plan-status:is(.expired, .disabled, .failed, .exhausted) { color: #a46529; background: rgba(255, 247, 231, .82); border-color: rgba(209, 157, 83, .28); }
body.account-page .plan-date-grid > div { padding: 9px 10px; }
body.account-page .plan-date-grid dd { font-variant-numeric: tabular-nums; }
body.account-page .plan-date-grid > div:nth-child(2) { background: rgba(237, 248, 255, .86); border-color: rgba(76, 153, 228, .28); }
body.account-page .plan-date-grid > div:nth-child(2) dd { color: #116ac4; }
body.account-page .plan-usage-panel:has(.plan-usage-content) { grid-template-columns: 84px minmax(0, 1fr); gap: 10px 16px; padding: 18px; }
body.account-page .plan-usage-panel > header { align-items: center; gap: 10px; }
body.account-page .plan-usage-panel > header a { color: #1769c3; font-size: 12px; text-decoration: none; white-space: nowrap; }
body.account-page .plan-usage-ring { width: 84px; }
body.account-page .plan-usage-values { gap: 8px; }
body.account-page .plan-usage-values dd { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.account-page .account-notice { margin: 0 0 18px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #285477; background: rgba(231, 245, 255, .78); border: 1px solid rgba(97, 157, 217, .25); border-radius: 14px; }
body.account-page .account-notice b { font-size: 14px; }
body.account-page .account-notice p { margin: 3px 0 0; color: #637b91; font-size: 13px; line-height: 1.5; }
body.account-page .account-notice.attention { color: #93612c; background: rgba(255, 247, 231, .78); border-color: rgba(209, 157, 83, .25); }
body.account-page .account-notice .button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; font-size: 13px; }
body.account-page .account-connection-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(109, 162, 215, .22); align-items: stretch; }
body.account-page .account-connection-grid > .account-category { min-width: 0; margin: 0; padding: 0; display: flex; flex-direction: column; border: 0; }
body.account-page .account-connection-grid .account-category-head { min-height: 44px; margin-bottom: 10px; flex-wrap: nowrap; gap: 12px; }
body.account-page .connection-access-card { min-width: 0; min-height: 0; padding: 18px; flex: 1; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(239, 248, 255, .65)); border: 1px solid rgba(111, 164, 216, .25); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 9px 24px rgba(38, 92, 148, .06); }
body.account-page .connection-access-head { display: flex; align-items: center; gap: 10px; }
body.account-page .connection-access-head h3 { margin: 0; color: #183f63; font-size: 15px; }
body.account-page .connection-link-body { min-width: 0; margin: 12px 0 16px; padding: 0; gap: 12px; border: 0; }
body.account-page .connection-subscription-url { width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0 12px; color: #28587f; background: rgba(255, 255, 255, .72); border: 1px solid rgba(110, 160, 210, .24); border-radius: 9px; font: 12px/1.5 Consolas, monospace; }
body.account-page .connection-link-body .config-actions { width: min(100%, 262px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.account-page .connection-link-body .config-actions form { min-width: 0; margin: 0; display: grid; }
body.account-page .connection-link-body .button { min-height: 44px; padding: 0 10px; font-size: 12px; font-weight: 600; border-radius: 9px; }
body.account-page .connection-link-body .button.primary { box-shadow: 0 4px 12px rgba(22, 109, 219, .14); }
body.account-page .connection-link-body .button.secondary { color: #607991; background: rgba(255, 255, 255, .55); box-shadow: none; }
body.account-page .connection-qr-details { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(112, 161, 210, .17); }
body.account-page .connection-qr-details > summary { width: 100%; min-height: 44px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0; cursor: pointer; list-style: none; }
body.account-page .connection-qr-details > summary::-webkit-details-marker { display: none; }
body.account-page .qr-summary-copy { min-width: 0; display: grid; gap: 4px; }
body.account-page .qr-summary-copy b { color: #244d70; font-size: 13px; font-weight: 650; }
body.account-page .qr-summary-action { display: inline-flex; align-items: center; gap: 4px; color: #1769c3; font-size: 12px; white-space: nowrap; }
body.account-page .qr-summary-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
body.account-page .connection-qr-details[open] .qr-summary-action svg { transform: rotate(180deg); }
body.account-page .qr-config-body { margin-top: 14px; padding: 16px 0 0; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
body.account-page .qr-image-link { width: 160px; }
body.account-page .network-test-action { flex: 0 0 auto; min-width: 96px; min-height: 44px; padding: 0 12px; color: #1769c3; background: rgba(232, 244, 255, .84); border-color: rgba(98, 158, 218, .28); border-radius: 9px; box-shadow: none; font-size: 12px; font-weight: 600; }
body.account-page .network-diagnostics .account-category-head { justify-content: flex-start; }
body.account-page .network-test-action:hover { color: #0954a5; background: rgba(218, 237, 255, .92); transform: none; }
body.account-page .network-test-action:disabled { cursor: wait; opacity: .7; }
body.account-page .network-diagnostics-card { min-width: 0; flex: 1; padding: 18px; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(239, 248, 255, .65)); border: 1px solid rgba(111, 164, 216, .25); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 9px 24px rgba(38, 92, 148, .06); }
body.account-page .network-metrics { min-width: 0; flex: 1; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
body.account-page .network-metrics > div { min-width: 0; padding: 0 12px; }
body.account-page .network-metrics > div:first-child { padding-left: 0; }
body.account-page .network-metrics > div:last-child { padding-right: 0; }
body.account-page .network-metrics > div + div { border-left: 1px solid rgba(112, 161, 210, .2); }
body.account-page .network-metrics dt { color: #71879c; font-size: 12px; font-weight: 500; line-height: 1.5; }
body.account-page .network-metrics dd { min-width: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; color: #193e61; }
body.account-page .network-metrics b { font: 650 22px/1.2 "DIN Alternate", "Bahnschrift SemiCondensed", "Microsoft YaHei UI", sans-serif; font-variant-numeric: tabular-nums; }
body.account-page .network-metrics small { color: #71879c; font-size: 11px; font-weight: 400; }
body.account-page .network-test-feedback { margin: 0 0 12px; color: #607991; font-size: 12px; line-height: 1.5; }
body.account-page .network-access-info { min-width: 0; margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid rgba(112, 161, 210, .17); color: #607991; font-size: 12px; }
body.account-page .network-access-info > .connection-card-icon { width: 24px; height: 24px; border-radius: 7px; }
body.account-page .network-access-info > .connection-card-icon svg { width: 16px; height: 16px; }
body.account-page .network-access-info code { min-width: 0; color: #345976; font: 12px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
body.account-page .traffic-view { padding-top: 16px; }
body.account-page .traffic-toolbar { margin-bottom: 12px; }
body.account-page .traffic-range-switch { grid-template-columns: repeat(3, minmax(44px, 1fr)); padding: 3px; }
body.account-page .traffic-stat-grid article { min-height: 84px; padding: 14px; display: flex; flex-direction: column; justify-content: center; }
body.account-page .traffic-stat-grid article > strong { margin-top: 6px; font-size: 24px; }
body.account-page .traffic-stat-grid article > small { margin-top: 6px; white-space: normal; overflow-wrap: anywhere; }
body.account-page .traffic-chart-card { height: clamp(300px, 38vh, 380px); padding: 18px; border-radius: 18px; }
body.account-page .account-order-list-head,
body.account-page .account-order-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(88px, .8fr) minmax(84px, .75fr) 86px; gap: 16px; }
body.account-page .account-order-list-head { min-height: 44px; padding: 0 16px; font-size: 12px; }
body.account-page .account-order-row { min-height: 76px; padding: 12px 16px; }
body.account-page .account-order-identity { min-width: 0; display: grid; gap: 5px; }
body.account-page .account-order-identity code { color: #234d70; font: 600 12px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
body.account-page .account-order-identity time { color: #74899d; font-size: 12px; }
body.account-page .account-order-plan b { font-size: 14px; }
body.account-page .account-order-plan small { font-size: 12px; }
body.account-page .account-order-amount { color: #173d60; font-size: 15px; font-variant-numeric: tabular-nums; }
body.account-page .account-order-amount small { display: block; margin-top: 4px; color: #74899d; font-size: 11px; font-weight: 500; }
body.account-page .account-order-row .order-status { padding: 4px 8px; font-size: 12px; }
body.account-page .account-order-actions .button { min-width: 0; min-height: 36px; padding: 0 12px; font-size: 12px; }
body.account-page .account-plans-stage .store-plan { min-height: 0; padding: 20px; border-radius: 22px; }
body.account-page .account-plans-stage .store-plan-top { min-height: 30px; }
body.account-page .account-plan-summary { min-width: 0; margin: 14px 0 8px; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 10px; }
body.account-page .account-plans-stage .store-plan h2 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.4; }
body.account-page .account-plans-stage .store-price { min-width: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 6px; text-align: right; }
body.account-page .account-plans-stage .store-price strong { font-size: 24px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
body.account-page .account-plans-stage .store-price small { margin-top: 0; font-size: 12px; line-height: 1.4; white-space: nowrap; }
body.account-page .account-plans-stage .plan-quota { margin-top: 12px; padding: 11px 12px; }
body.account-page .account-plans-stage .store-plan ul { margin: 14px 0 16px; gap: 8px; }
body.account-page .account-plans-stage .store-plan li { font-size: 13px; }
body.account-page .account-plans-stage .store-plan form { margin-top: auto; }
body.account-page .account-plans-stage .store-plan .button { min-height: 44px; border-radius: 12px; }
body.account-page .renewal-state-card { margin-bottom: 16px; padding: 12px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 12px; background: rgba(237, 248, 255, .66); border-radius: 12px; }
body.account-page .renewal-state-card > span { width: 28px; height: 28px; background: transparent; border-radius: 8px; }
body.account-page .renewal-state-card > span svg { width: 18px; height: 18px; }
body.account-page .renewal-state-copy { display: grid; gap: 5px; }
body.account-page .renewal-state-heading { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
body.account-page .renewal-state-card b { margin: 0; font-size: 13px; font-weight: 650; }
body.account-page .renewal-state-card p { font-size: 12px; line-height: 1.5; }
body.account-page .renewal-countdown { min-width: 0; width: auto; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border: 0; }
body.account-page .renewal-countdown > span { font-size: 12px; white-space: nowrap; }
body.account-page .renewal-countdown strong { margin-left: 4px; color: #1769c7; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
body.account-page .renewal-countdown > small { margin: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; }
body.account-page .account-plans-stage .store-plan { padding: 18px; border-radius: 18px; }
body.account-page .account-plans-stage .store-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.account-page .account-plans-stage .store-plan:last-child:nth-child(odd) { width: auto; grid-column: auto; justify-self: stretch; }
body.account-page .account-plan-heading { min-width: 0; min-height: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
body.account-page .account-plan-heading h2 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.4; }
body.account-page .account-plan-heading .account-plan-pills { display: flex; gap: 6px; }
body.account-page .account-plan-heading .account-plan-pills b { padding: 4px 8px; color: #1769c3; background: rgba(225, 241, 255, .74); border: 1px solid rgba(108, 166, 224, .22); border-radius: 6px; font-size: 10px; font-weight: 500; line-height: 1.4; }
body.account-page .account-plans-stage .account-plan-summary { margin: 14px 0 0; display: block; }
body.account-page .account-plans-stage .store-price { justify-content: flex-start; text-align: left; gap: 6px; }
body.account-page .account-plans-stage .plan-quota { margin-top: 16px; padding: 9px 10px; }
body.account-page .account-plans-stage .account-plan-expiry { margin-top: 10px; }
body.account-page .account-plans-stage .store-plan ul { margin: 14px 0 18px; gap: 7px; }
body.account-page .renewal-rules { margin-top: 20px; padding-top: 18px; }
body.account-page .renewal-rules > header > span { display: none; }
body.account-page .renewal-rules h2 { font-size: 15px; }
body.account-page .usage-guide-view { padding: 24px; }
body.account-page .usage-markdown { padding: 0; font-size: 14px; line-height: 1.6; }
body.account-page .usage-markdown-section > h2 { margin-bottom: 14px; padding-bottom: 10px; font-size: 20px; }
body.account-page .usage-markdown h3 { margin-bottom: 8px; font-size: 15px; }
body.account-page .usage-markdown-section-body { gap: 20px 24px; }
body.account-page .usage-guide-step { padding: 14px 16px; background: rgba(255, 255, 255, .44); border: 1px solid rgba(118, 167, 214, .2); border-radius: 14px; }
body.account-page .usage-markdown-section + .usage-markdown-section { margin-top: 16px; padding-top: 20px; }
body.account-page .usage-markdown-image { margin-top: 12px; border-radius: 8px; }
body.account-page .usage-markdown-image.phone-app { width: min(100%, 300px); }
body.account-page .usage-markdown-image.phone-scan { width: min(100%, 120px); }
body.account-page .account-empty-v3 { min-height: 144px; padding: 24px; }

@media (max-width: 1080px) {
  body.account-page .account-order-list-head { display: none; }
  body.account-page .account-order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  body.account-page .account-order-identity { grid-column: 1; grid-row: 1; }
  body.account-page .account-order-row > div:has(.order-status) { grid-column: 2; grid-row: 1; }
  body.account-page .account-order-plan { grid-column: 1; grid-row: 2; }
  body.account-page .account-order-amount { grid-column: 2; grid-row: 2; text-align: right; }
  body.account-page .account-order-actions { grid-column: 1 / -1; grid-row: 3; }
  body.account-page .account-order-row > [data-label]::before { display: none; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  body.account-page .plan-overview-card { grid-template-columns: 1fr; }
}
@media (max-width: 1199px) {
  body.account-page .account-connection-grid { grid-template-columns: 1fr; }
  body.account-page .network-test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.account-page .connection-status-card { grid-column: 1 / -1; min-height: 64px; grid-template-columns: 32px minmax(0, 1fr) minmax(230px, 1fr); grid-template-rows: auto; }
  body.account-page .connection-status-card dl { grid-column: 3; }
}
@media (max-width: 900px) {
  body.account-page .account-workspace { gap: 16px; }
  body.account-page .plan-overview-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.account-page .account-view { padding: 18px; }
  body.account-page .plan-overview-card { grid-template-columns: 1fr; }
  body.account-page .network-test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.account-page .connection-status-card { grid-column: 1 / -1; min-height: 0; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; }
  body.account-page .connection-status-card dl { grid-column: 1 / -1; }
  body.account-page .connection-status-card dl { grid-template-columns: 1fr; }
  body.account-page .renewal-state-card { grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; }
  body.account-page .renewal-state-card > span { width: 24px; height: 24px; }
  body.account-page .renewal-countdown { gap: 4px 12px; }
  body.account-page .renewal-countdown > small { margin: 0; }
  body.account-page .account-plans-stage .store-plan-grid { grid-template-columns: 1fr; }
  body.account-page .connection-access-card { min-height: 0; }
  body.account-page .account-order-list-head { display: none; }
  body.account-page .account-order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  body.account-page .account-order-identity { grid-column: 1; grid-row: 1; }
  body.account-page .account-order-row > div:has(.order-status) { grid-column: 2; grid-row: 1; }
  body.account-page .account-order-plan { grid-column: 1; grid-row: 2; }
  body.account-page .account-order-amount { grid-column: 2; grid-row: 2; text-align: right; }
  body.account-page .account-order-actions { grid-column: 1 / -1; grid-row: 3; }
  body.account-page .account-order-row > [data-label]::before { display: none; }
}
@media (max-width: 560px) {
  body.account-page .account-workspace { gap: 12px; }
  body.account-page .account-view { padding: 16px; }
  body.account-page .account-category + .account-category { margin-top: 18px; padding-top: 18px; }
  body.account-page .account-connection-grid { gap: 22px; margin-top: 20px; padding-top: 20px; }
  body.account-page .account-connection-grid > .account-category { margin: 0; padding: 0; }
  body.account-page .plan-identity-panel { padding: 16px; gap: 14px; }
  body.account-page .plan-identity-head h3 { font-size: 18px; }
  body.account-page .plan-date-grid { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.account-page .plan-date-grid > div { display: block; padding: 7px 8px; }
  body.account-page .plan-date-grid dt { line-height: 1.4; }
  body.account-page .plan-date-grid dd { margin-top: 4px; line-height: 1.4; }
  body.account-page .plan-date-grid > div:last-child { grid-column: 1 / -1; display: flex; }
  body.account-page .plan-date-grid > div:last-child dd { margin: 0; }
  body.account-page .plan-usage-panel:has(.plan-usage-content) { grid-template-columns: 72px minmax(0, 1fr); padding: 16px; gap: 8px 14px; }
  body.account-page .plan-usage-panel:has(.plan-usage-content) > header { grid-column: 1 / -1; grid-row: 1; }
  body.account-page .plan-usage-ring { grid-row: 2; }
  body.account-page .plan-usage-ring { width: 72px; }
  body.account-page .plan-usage-values { grid-template-columns: 1fr; gap: 6px; }
  body.account-page .plan-usage-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  body.account-page .plan-usage-values dd { margin: 0; }
  body.account-page .connection-access-card { padding: 16px; }
  body.account-page .network-diagnostics-card { min-height: 180px; padding: 16px; }
  body.account-page .network-metrics > div { padding: 0 8px; }
  body.account-page .network-metrics b { font-size: 20px; }
  body.account-page .network-access-info { grid-template-columns: 24px minmax(0, 1fr); }
  body.account-page .network-access-info code { grid-column: 2; }
  body.account-page .connection-link-body .button { font-size: 12px; }
  body.account-page .connection-qr-details > summary { grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 44px; }
  body.account-page .qr-summary-copy small { display: none; }
  body.account-page .qr-config-body { grid-template-columns: 1fr; justify-items: center; }
  body.account-page .network-test-grid { grid-template-columns: 1fr; gap: 12px; }
  body.account-page .network-test-card { min-height: 84px; }
  body.account-page .speed-test-card { min-height: 102px; }
  body.account-page .speed-test-card > .network-test-icon { grid-row: 1; }
  body.account-page .speed-test-card > .button { grid-row: 1; }
  body.account-page .speed-test-card .network-speed-results { grid-column: 1 / -1; padding-top: 8px; justify-content: space-between; }
  body.account-page .network-test-card > .button { min-height: 44px; height: 44px; }
  body.account-page .connection-status-card { grid-column: auto; min-height: 0; }
  body.account-page .connection-status-card dl { grid-template-columns: 1fr; }
  body.account-page .connection-status-card dl > div { flex-direction: row; }
  body.account-page .traffic-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.account-page .traffic-stat-grid article { min-height: 100px; padding: 12px; }
  body.account-page .traffic-stat-grid article > strong { font-size: 22px; }
  body.account-page .traffic-chart-card { height: 290px; padding: 14px 10px; }
  body.account-page .account-notice { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  body.account-page .account-notice .button { min-height: 44px; }
  body.account-page .account-plans-stage .store-plan { padding: 20px; }
  body.account-page .usage-markdown-section-body { grid-template-columns: 1fr; gap: 14px; }
  body.account-page .usage-guide-step { padding: 14px; }
  body.account-page .account-empty-v3 { padding: 20px; align-items: flex-start; flex-wrap: wrap; }
  body.account-page .account-empty-v3 .button { margin: 0; min-height: 44px; }
}

@media (max-width: 400px) {
  body.account-page .account-plan-summary { grid-template-columns: 1fr; gap: 6px; }
  body.account-page .account-plans-stage .store-price { justify-content: flex-start; text-align: left; }
}

/* Purchase cards use the same compact hierarchy as renewal cards. */
.plans-main .plans-intro { min-height: 0; margin-bottom: 24px; padding: 18px 24px; border-radius: 22px; }
.plans-main .plans-eyebrow { margin-bottom: 8px; font-size: 12px; }
.plans-main .plans-intro-row { gap: 18px; }
.plans-main .plans-intro h1 { font-size: 26px; line-height: 1.3; }
.plans-main .plans-intro p { font-size: 13px; line-height: 1.6; }
.plans-main .store-plan-grid { gap: 20px; }
.plans-main .store-plan { min-height: 0; padding: 22px; display: flex; flex-direction: column; border-radius: 22px; }
.plans-main .store-plan-top { min-height: 30px; }
.plans-main .store-plan-top > span,
.plans-main .store-plan-top > b { padding: 6px 10px; font-size: 12px; }
.plans-main .store-plan-summary { min-width: 0; margin: 18px 0 8px; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px; }
.plans-main .store-plan h2 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.4; }
.plans-main .store-price { min-width: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 6px; text-align: right; }
.plans-main .store-price strong { font-size: 24px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.plans-main .store-price small { margin: 0; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.plans-main .plan-quota { margin-top: 12px; padding: 10px 12px; font-size: 13px; }
.plans-main .store-plan ul { margin: 16px 0 20px; gap: 8px; }
.plans-main .store-plan li { font-size: 13px; line-height: 1.5; }
.plans-main .store-plan form,
.plans-main .store-plan > .button { margin-top: auto; }
.plans-main .store-plan .button { min-height: 44px; border-radius: 12px; font-size: 14px; }

@media (max-width: 560px) {
  .plans-main .plans-intro { padding: 16px 18px; margin-bottom: 18px; }
  .plans-main .plans-intro h1 { font-size: 22px; }
  .plans-main .store-plan { padding: 20px; border-radius: 20px; }
  .plans-main .store-plan-grid { gap: 14px; }
}
@media (max-width: 400px) {
  .plans-main .store-plan-summary { grid-template-columns: 1fr; gap: 6px; }
  .plans-main .store-price { justify-content: flex-start; text-align: left; }
}



/* Keep the account shell stationary when a view gains a vertical scrollbar. */
html:has(body.account-page) { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html:has(body.account-page) { overflow-y: scroll; } }
/* Renewal choices prioritize price, quota and the current account term. */
body.account-page .renewal-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(109,162,215,.22); }
body.account-page .renewal-current { margin: 0; display: flex; flex-wrap: wrap; gap: 18px 32px; }
body.account-page .renewal-current > div { display: grid; gap: 5px; }
body.account-page .renewal-current > div + div { padding-left: 32px; border-left: 1px solid rgba(109,162,215,.22); }
body.account-page .renewal-current dt { color: #536f88; font-size: 12px; font-weight: 500; }
body.account-page .renewal-current dd { margin: 0; color: #21496d; font-size: 17px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
body.account-page .renewal-current > div:last-child dd { color: #1769c3; }
body.account-page .account-plans-stage .store-plan { min-height: 0; padding: 22px; background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(236,247,255,.65)); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.85),0 8px 20px rgba(40,91,149,.06); font-family: "Segoe UI","Microsoft YaHei UI",sans-serif; }
body.account-page .account-plans-stage .store-plan.featured { background: linear-gradient(145deg,rgba(239,249,255,.88),rgba(219,238,255,.72)); }
body.account-page .account-plans-stage .store-plan::before { display: none; }
body.account-page .account-plans-stage .store-plan h2 { font-size: 16px; font-weight: 600; }
body.account-page .account-plan-heading { min-height: 28px; }
body.account-page .account-plan-heading .account-plan-pills b { padding: 3px 7px; font-size: 11px; font-weight: 500; background: rgba(235,246,255,.8); }
body.account-page .account-plans-stage .account-plan-summary { margin: 18px 0 0; }
body.account-page .account-plans-stage .store-price strong { color: #183d60; font: 600 27px/1.25 "Segoe UI","Microsoft YaHei UI",sans-serif; letter-spacing: -.5px; }
body.account-page .account-plans-stage .store-price small { color: #536f88; font-size: 12px; font-weight: 400; }
body.account-page .account-plans-stage .plan-quota { margin-top: 20px; padding: 12px; background: rgba(231,244,255,.62); border: 1px solid rgba(109,162,215,.2); border-radius: 10px; }
body.account-page .account-plans-stage .plan-quota span { color: #3d607f; font-size: 13px; font-weight: 500; }
body.account-page .account-plans-stage .plan-quota b { color: #193d60; font-size: 17px; font-weight: 600; }
body.account-page .account-plans-stage .store-plan form,
body.account-page .account-plans-stage .store-plan > .button { margin-top: 22px; }
body.account-page .account-plans-stage .store-plan .button { min-height: 44px; font-size: 13px; font-weight: 500; border-radius: 9px; box-shadow: 0 4px 12px rgba(22,109,219,.14); }
body.account-page .renewal-rules { margin-top: 28px; padding-top: 22px; }
body.account-page .renewal-rules h2 { font-size: 15px; font-weight: 600; }
body.account-page .renewal-rules > div { margin-top: 16px; gap: 14px; align-items: stretch; }
body.account-page .renewal-rules article { min-width: 0; padding: 16px; background: rgba(255,255,255,.48); border: 1px solid rgba(132,175,222,.24); border-radius: 12px; box-shadow: none; }
body.account-page .renewal-rules article h3 { margin: 0; padding-left: 9px; border-left: 3px solid #4a98da; color: #244b6d; font-size: 13px; font-weight: 600; line-height: 1.5; }
body.account-page .renewal-rules article p { margin-top: 10px; color: #506d86; font-size: 12px; font-weight: 400; line-height: 1.8; }

/* A shared grid track gives the first four views the same content-aware height. */
@media (min-width: 1025px) {
  body.account-page .account-workspace { align-items: stretch; }
  body.account-page .account-sidebar { align-self: stretch; min-height: 600px; }
  body.account-page .account-view-stack { display: grid; grid-template-columns: minmax(0,1fr); }
  body.account-page .account-view-stack > .account-view { grid-area: 1 / 1; }
  body.account-page .account-view-stack > .account-view:not(.usage-guide-view) { min-height: 600px; display: flex; flex-direction: column; }
  body.account-page .account-view-stack > .account-view[hidden]:not(.usage-guide-view) { display: flex !important; visibility: hidden; pointer-events: none; }
  body.account-page .account-view-stack:has(.usage-guide-view:not([hidden])) > .account-view:not(.usage-guide-view) { display: none !important; }
  body.account-page .account-workspace:has(.usage-guide-view:not([hidden])) .account-sidebar { align-self: start; }
  body.account-page .account-plan-dashboard { flex: 1; display: flex; flex-direction: column; }
  body.account-page .account-connection-grid { flex: 1; }
  body.account-page .traffic-chart-card { flex: 1; height: auto; min-height: 300px; }
  body.account-page .account-order-list { max-height: 480px; overflow-y: auto; scrollbar-gutter: stable; align-content: start; }
  body.account-page [data-account-panel="plan"] > .account-empty-v3 { margin-block: auto; }
  body.account-page .renewal-rules { margin-top: auto; }
}

/* Orders retain the same five-column table at every viewport size. */
body.account-page .account-orders-heading { margin: 0 0 18px; color: #173d60; font-size: 18px; font-weight: 600; line-height: 1.5; }
body.account-page .account-orders-table-wrap { min-width: 0; overflow: hidden; background: rgba(255,255,255,.62); border: 1px solid rgba(126,171,218,.3); border-radius: 12px; }
body.account-page .account-orders-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.account-page .account-orders-table .order-number-col { width: 30%; }
body.account-page .account-orders-table .order-time-col { width: 23%; }
body.account-page .account-orders-table .order-amount-col { width: 14%; }
body.account-page .account-orders-table .order-product-col { width: 17%; }
body.account-page .account-orders-table .order-status-col { width: 16%; }
body.account-page .account-orders-table th { padding: 14px 16px; color: #345976; background: #edf6fd; border-bottom: 1px solid rgba(126,171,218,.25); font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
body.account-page .account-orders-table td { height: 64px; padding: 12px 16px; color: #244b6d; border-bottom: 1px solid rgba(126,171,218,.2); font-size: 13px; font-weight: 400; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
body.account-page .account-orders-table tbody tr:last-child td { border-bottom: 0; }
body.account-page .account-orders-table tbody tr:hover { background: rgba(232,244,253,.46); }
body.account-page .account-order-number a { color: #176cb8; text-decoration: none; }
body.account-page .account-order-number a:hover { text-decoration: underline; }
body.account-page .account-order-number a:focus-visible { outline: 2px solid #2187e8; outline-offset: 3px; }
body.account-page .account-order-number code { font: 500 12px/1.6 Consolas, monospace; }
body.account-page .account-orders-table time { font-variant-numeric: tabular-nums; }
body.account-page .account-order-value strong { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.account-page .account-order-value small { margin-top: 2px; color: #607b94; font-family: inherit; font-size: 11px; font-weight: 400; line-height: 1.5; }
body.account-page .account-orders-table .order-status { padding: 3px 7px; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: normal; }
body.account-page .account-orders-empty td { height: 112px; color: #607b94; font-size: 13px; text-align: center; }
@media (min-width: 1025px) {
  body.account-page .account-orders-table-wrap { max-height: 480px; overflow-y: auto; scrollbar-gutter: stable; }
  body.account-page .account-orders-table th { position: sticky; top: 0; z-index: 1; }
}
@media (max-width: 760px) {
  body.account-page .account-orders-heading { margin-bottom: 14px; font-size: 16px; }
  body.account-page .account-orders-table .order-number-col { width: 25%; }
  body.account-page .account-orders-table .order-time-col { width: 24%; }
  body.account-page .account-orders-table .order-amount-col { width: 20%; }
  body.account-page .account-orders-table .order-product-col { width: 14%; }
  body.account-page .account-orders-table .order-status-col { width: 17%; }
  body.account-page .account-orders-table th { padding: 11px 4px; font-size: 11px; white-space: normal; }
  body.account-page .account-orders-table td { padding: 11px 4px; font-size: 11px; }
  body.account-page .account-order-number code { font-size: 10px; }
  body.account-page .account-order-value strong { font-size: 11px; }
  body.account-page .account-order-value small { font-size: 10px; }
  body.account-page .account-orders-table .order-status { padding: 0; background: transparent; font-size: 11px; }
}

/* Platform sections present complete steps in a consistent reading order. */
body.account-page .usage-markdown { font-size: 13px; line-height: 1.75; }
body.account-page .usage-markdown-section { padding-bottom: 0; }
body.account-page .usage-markdown-section + .usage-markdown-section { margin-top: 32px; padding-top: 28px; }
body.account-page .usage-platform-heading { margin-bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
body.account-page .usage-platform-heading h2 { margin: 0; color: #193f63; font-size: 19px; font-weight: 600; line-height: 1.45; }
body.account-page .usage-platform-heading > span { color: #5c7993; font-size: 12px; font-weight: 500; }
body.account-page .usage-markdown-section-body { max-width: none; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
body.account-page .usage-guide-step { padding: 18px; display: flex; flex-direction: column; border-radius: 12px; background: rgba(255,255,255,.62); }
body.account-page .usage-step-heading { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
body.account-page .usage-step-heading > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; background: #e8f4ff; color: #1769c3; border: 1px solid rgba(97,157,217,.24); border-radius: 8px; font-size: 11px; font-weight: 600; }
body.account-page .usage-markdown .usage-step-heading h3 { margin: 0; color: #244b6d; font-size: 14px; font-weight: 600; }
body.account-page .usage-markdown p { margin: 0 0 10px; color: #3d5d78; }
body.account-page .usage-markdown ol,
body.account-page .usage-markdown ul { margin: 0; padding-left: 20px; color: #3d5d78; }
body.account-page .usage-markdown li + li { margin-top: 7px; }
body.account-page .usage-markdown li::marker { color: #396f9f; font-weight: 500; }
body.account-page .usage-markdown-download { font-weight: 600; }
body.account-page .usage-markdown-image { margin: 16px 0 0; background: #fff; }
body.account-page .usage-markdown-image.phone-app { width: min(100%,300px); }
body.account-page .usage-markdown-image.phone-scan { width: min(100%,156px); }
body.account-page .mobile-guide-section .usage-markdown-image { margin-top: auto; }
body.account-page .mobile-guide-section .usage-guide-step > :is(p,ol):last-of-type { margin-bottom: 16px; }
body.account-page .usage-markdown small { font-size: 12px; color: #536f88; }
@media (min-width: 1200px) {
  body.account-page :is(.mobile-guide-section,.android-guide-section) .usage-markdown-section-body { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.account-page .desktop-guide-section .usage-markdown-section-body { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  body.account-page .renewal-header { margin-bottom: 18px; padding-bottom: 16px; }
  body.account-page .renewal-current { gap: 14px 22px; }
  body.account-page .renewal-current > div + div { padding-left: 22px; }
  body.account-page .renewal-current dd { font-size: 15px; }
  body.account-page .account-plans-stage .store-plan { padding: 20px; }
  body.account-page .renewal-rules > div { grid-template-columns: 1fr; gap: 12px; }
  body.account-page .usage-platform-heading h2 { font-size: 18px; }
  body.account-page .usage-guide-step { padding: 16px; }
}
.traffic-meter-help { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.traffic-meter-help > .traffic-meter-help-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; min-height: 20px; padding: 0;
  border: 1px solid #8ca8c4; border-radius: 50%; background: transparent;
  color: #476a8c; font: 600 12px/1 sans-serif; cursor: help;
}
.traffic-meter-help > .traffic-meter-help-button:focus-visible { outline: 2px solid #237ee6; outline-offset: 3px; }
.traffic-meter-help > .traffic-meter-tip {
  display: none; position: fixed; inset: auto; margin: 0; z-index: 10000;
  width: 280px; max-width: calc(100vw - 24px); box-sizing: border-box;
  padding: 12px 14px; border: 1px solid #d3e1ef; border-radius: 10px;
  background: #fff; color: #274867; box-shadow: 0 8px 30px #183b6329;
  font: 400 13px/1.65 "Segoe UI", "Microsoft YaHei UI", sans-serif;
  white-space: normal; text-align: left; overflow-wrap: anywhere;
}
.traffic-meter-help > .traffic-meter-tip.is-open { display: block; }


/* Buyer portal shares the current desktop client's restrained surfaces and colors. */
body.portal-body.client-theme{--text:#233653;--muted:#5b7092;--blue:#2862dd;--border:#dce5f3;--workspace:#f7f9fd;background:#edf2f8;color:var(--text);font-family:"Segoe UI","Microsoft YaHei UI",sans-serif}
body.portal-body.client-theme .portal-liquid-bg,body.portal-body.client-theme .portal-footer{display:none}
body.portal-body.client-theme .portal-header{height:66px;min-height:66px;background:#f7f9fd;border-bottom:1px solid var(--border);box-shadow:none;backdrop-filter:none;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1160px)/2))}
body.portal-body.client-theme .portal-brand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:19px;font-weight:700;text-decoration:none;white-space:nowrap}
body.portal-body.client-theme .portal-brand>span{display:grid;place-items:center;width:34px;height:36px;border-radius:10px;background:var(--blue);color:white;font-size:21px}
body.portal-body.client-theme .portal-header nav{margin:0;padding:0;width:auto;gap:20px}
body.portal-body.client-theme .portal-main{width:calc(100% - 40px);max-width:1160px;margin:36px auto;padding:0}
body.portal-body.client-theme .button,body.portal-body.client-theme button.button{min-height:38px;padding:9px 16px;border-radius:9px;box-shadow:none;font-size:14px;font-weight:500;transform:none}
body.portal-body.client-theme .button.primary{background:var(--blue);border:1px solid var(--blue);color:#fff;box-shadow:none}
body.portal-body.client-theme .button.secondary{background:#fff;border:1px solid var(--border);color:var(--text)}
body.portal-body.client-theme .button:disabled{background:#f0f3f9;border:1px solid var(--border);color:var(--muted);cursor:default;opacity:1}
body.portal-body.client-theme .plans-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin:0 0 20px;min-height:0;border:1px solid var(--border);border-radius:14px;background:#f7f9fd;box-shadow:none}
body.portal-body.client-theme .plans-intro::before,body.portal-body.client-theme .plans-intro::after,body.portal-body.client-theme .store-plan::before,body.portal-body.client-theme .store-plan::after{display:none}
body.portal-body.client-theme .plans-intro-row{display:block}
body.portal-body.client-theme .plans-intro h1{margin:0 0 8px;font-size:22px;letter-spacing:0;color:var(--text)}
body.portal-body.client-theme .plans-intro-divider{display:none}
body.portal-body.client-theme .plans-intro p{margin:0;font-size:13px;color:var(--muted)}
body.portal-body.client-theme .platform-downloads{display:flex;gap:10px;flex-shrink:0}
body.portal-body.client-theme .store-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.portal-body.client-theme .store-plan,body.portal-body.client-theme .store-plan.featured{padding:20px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:none;transform:none;min-height:0}
body.portal-body.client-theme .store-plan-top{display:none}
body.portal-body.client-theme .store-plan-summary{display:block;margin:0}
body.portal-body.client-theme .store-plan h2{font-size:17px;color:var(--text);margin:0 0 22px}
body.portal-body.client-theme .store-price{display:flex;align-items:baseline;gap:6px;margin-bottom:20px}
body.portal-body.client-theme .store-price strong{font-size:28px;font-weight:600;color:var(--text);font-family:inherit;letter-spacing:0}
body.portal-body.client-theme .store-price small{font-size:12px;color:var(--muted)}
body.portal-body.client-theme .store-plan ul{display:none}
body.portal-body.client-theme .plan-quota{display:flex;align-items:center;justify-content:space-between;gap:10px;background:transparent;border:0;padding:0;margin-bottom:20px;min-height:0;color:var(--muted);font-size:13px;border-radius:0}
body.portal-body.client-theme .plan-quota b{font-size:15px;color:var(--text)}
body.portal-body.client-theme .store-plan .full{margin:0;min-height:38px}
body.portal-body.client-theme .account-sidebar,body.portal-body.client-theme .account-view,body.portal-body.client-theme .auth-card,body.portal-body.client-theme .checkout-main,body.portal-body.client-theme .checkout-summary{background:#f7f9fd;border:1px solid var(--border);box-shadow:none;backdrop-filter:none;border-radius:14px}
body.portal-body.client-theme .account-sidebar{background:#edf3ff}
body.portal-body.client-theme .account-workspace{grid-template-columns:200px minmax(0,1fr);gap:14px}
body.portal-body.client-theme .account-view{padding:24px}
body.portal-body.client-theme .account-navigation a[aria-current=page]{background:#dfe9ff;color:#2862dd;box-shadow:none}
body.portal-body.client-theme .renewal-rules>div{display:block}
body.portal-body.client-theme .renewal-rules article{display:flex;align-items:baseline;gap:20px;background:none;border:0;padding:8px 0}
body.portal-body.client-theme .renewal-rules h3{min-width:100px;font-size:13px}
body.portal-body.client-theme .renewal-rules p{margin:0;font-size:13px}
body.portal-body.client-theme .usage-markdown{font-size:13px;line-height:1.8}
body.portal-body.client-theme #guide-image-dialog{border:1px solid var(--border);border-radius:14px;color:var(--text);box-shadow:0 15px 60px #20385830}
body.portal-body.client-theme #guide-image-dialog::backdrop{background:#23365350;backdrop-filter:blur(3px)}
body.portal-body.client-theme input,body.portal-body.client-theme select{box-shadow:none;background:#fff;border-color:var(--border);border-radius:8px}
@media(max-width:900px){body.portal-body.client-theme .plans-intro{align-items:flex-start;flex-direction:column}body.portal-body.client-theme .account-workspace{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:640px){body.portal-body.client-theme .portal-main{width:calc(100% - 24px);margin:18px auto}body.portal-body.client-theme .portal-header{padding:0 16px}body.portal-body.client-theme .portal-header nav{gap:12px}body.portal-body.client-theme .platform-downloads{flex-wrap:wrap}body.portal-body.client-theme .store-plan-grid{grid-template-columns:1fr}body.portal-body.client-theme .account-workspace{grid-template-columns:1fr}body.portal-body.client-theme .account-view{padding:18px}body.portal-body.client-theme .renewal-rules article{display:block}}

.guide-tabs{display:flex;gap:24px;border-bottom:1px solid var(--border);margin-bottom:20px}
.guide-tabs button{border:0;background:none;padding:0 0 12px;color:var(--muted);font-size:14px;cursor:pointer}
.guide-tabs [aria-selected=true]{color:var(--blue);border-bottom:2px solid currentColor}
.guide-steps{display:grid;gap:22px}
.guide-step h3{display:flex;align-items:center;gap:10px;font-size:15px;margin:0 0 10px}
.guide-step h3>span{color:var(--muted);font-size:12px;font-weight:500}
.guide-step p{font-size:13px;line-height:1.8;margin:8px 0;color:var(--muted)}
.guide-step a{color:#2862dd}
.guide-image{display:block;width:100%;max-width:440px;padding:0;margin-top:12px;background:none;border:0;cursor:zoom-in;text-align:left}
.guide-image img{display:block;max-width:100%;max-height:220px;object-fit:contain;border:1px solid var(--border);border-radius:8px}
#guide-image-dialog{width:min(880px,92vw);height:min(600px,90vh);max-width:92vw;max-height:90vh;padding:0;overflow:hidden}
.image-tools{height:46px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 12px;border-bottom:1px solid var(--border)}
.image-tools button{height:30px;min-width:32px;padding:0 8px;background:transparent;border:0;color:var(--text);cursor:pointer}
.image-tools output{width:48px;text-align:center;font-size:12px;color:var(--muted)}
.image-viewport{height:calc(100% - 46px);overflow:hidden;position:relative;cursor:grab;touch-action:none;background:var(--workspace)}
.image-viewport.dragging{cursor:grabbing}
#guide-image-dialog .image-viewport img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none}


body.portal-body.client-theme .store-price{justify-content:flex-start;text-align:left}
body.portal-body.client-theme .account-side-nav a[aria-current="page"]{background:#dfe9ff;color:#2862dd;box-shadow:none}
body.portal-body.client-theme .portal-main::before,body.portal-body.client-theme .portal-main::after{display:none}

body.portal-body.client-theme .plans-stage::before{display:none}
body.portal-body.client-theme .portal-login-link{background:#2862dd;border:1px solid #2862dd;box-shadow:none;color:#fff;border-radius:9px}

.guide-table-wrap{width:100%;overflow-x:auto}
.guide-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.7;text-align:left}
.guide-table .guide-platform-col{width:78px}.guide-table .guide-app-col{width:68px}.guide-table .guide-download-col{width:94px}.guide-table .guide-example-col{width:62px}
.guide-table th,.guide-table td{padding:14px 10px;border-bottom:1px solid var(--border);vertical-align:top;overflow-wrap:anywhere}
.guide-table thead th{font-weight:600;color:var(--muted);background:#eef3fb}
.guide-table tbody th{font-weight:600;color:var(--text)}
.guide-table ol{padding-left:17px;margin:0;color:var(--muted)}.guide-table li+li{margin-top:6px}.guide-table p{margin:8px 0 0;color:var(--muted)}
.guide-download,.guide-shot{color:var(--blue);font-size:12px;text-decoration:none;background:transparent;border:0;padding:0;cursor:pointer;display:inline-block;line-height:1.8}
.guide-shot{display:block;margin-bottom:7px}.guide-unavailable{color:var(--muted)}
@media(max-width:640px){.guide-table{min-width:650px}}

/* The website uses the desktop client's fixed login composition. */
body.client-theme:has(.client-login-main) .portal-header{display:none}
body.portal-body.client-theme .portal-main.client-login-main{width:100%;max-width:none;min-height:100dvh;margin:0;padding:30px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.client-web-login{box-sizing:border-box;width:600px;max-width:100%;min-height:380px;padding:32px 39px;border:1px solid var(--border);border-radius:14px;background:#f7f9fd;display:grid;grid-template-columns:160px 320px;gap:40px;align-items:center}
.client-web-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:23px;color:var(--text)}
.client-web-brand>span{display:grid;place-items:center;width:38px;height:40px;flex-shrink:0;background:#2862dd;color:white;border-radius:11px}
.client-web-brand svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7}
.client-web-form{min-width:0;width:320px;display:grid;gap:12px}
.client-web-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.client-web-plan{text-align:left;background:#fff;color:var(--text);border:1px solid var(--border);border-radius:9px;padding:10px 9px;min-width:0;cursor:pointer;font-family:inherit}
.client-web-plan[aria-pressed=true]{border-color:#2862dd;box-shadow:inset 0 0 0 1px #2862dd;background:#edf3ff}
.client-web-plan:disabled{opacity:.55;cursor:default}.client-plan-heading{display:flex;justify-content:space-between;align-items:center;gap:3px;font-size:11px;white-space:nowrap}
.client-plan-heading i{width:12px;height:12px;border:1px solid #b6c9e9;border-radius:4px;flex-shrink:0;display:grid;place-items:center}
.client-web-plan[aria-pressed=true] i{background:#2862dd;border-color:#2862dd}.client-web-plan[aria-pressed=true] i::before{content:'✓';color:white;font-size:10px}
.client-web-plan>strong{display:block;margin:9px 0;font-size:22px;font-weight:600;line-height:1.2;white-space:nowrap}
.client-web-plan>small{display:block;color:var(--muted);font-size:9px;white-space:nowrap}
.client-login-note{font-size:11px;color:var(--muted);line-height:1.5;margin:0}
.client-web-form label{display:grid;gap:6px;color:var(--muted);font-size:12px;margin:0}
body.portal-body.client-theme .client-web-form input:not([type=hidden]){box-sizing:border-box;height:36px;min-height:36px;width:100%;padding:0 11px;border:1px solid #c9d8ee;border-radius:8px;font-size:13px;color:var(--text);background:white}
.client-login-submit{height:36px;border:0;border-radius:8px;background:#2862dd;color:white;font-size:14px;cursor:pointer}
.client-login-submit:disabled{opacity:.65;cursor:wait}
.client-login-downloads{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;font-size:11px;line-height:1.7;color:var(--muted);max-width:600px}
.client-login-downloads a{color:#2862dd;text-decoration:none}
.client-login-error{color:#a33a3a;font-size:12px;margin:0}
.client-login-dialog{box-sizing:border-box;width:330px;max-width:calc(100vw - 32px);padding:20px;border:1px solid var(--border);border-radius:13px;color:var(--text);background:white}
.client-login-dialog::backdrop{background:#23365350;backdrop-filter:blur(3px)}
.client-login-dialog h2{font-size:16px;margin:0 0 12px}.client-login-dialog p{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 18px}
.client-login-dialog>div{display:flex;justify-content:flex-end}.client-login-dialog button{height:32px;padding:0 12px;border:0;background:#2862dd;color:white;border-radius:7px;cursor:pointer}.client-payment-link{display:inline-block;margin-top:10px;color:#2862dd}
@media(max-width:620px){.client-web-login{width:380px;grid-template-columns:minmax(0,1fr);padding:28px 24px;gap:22px}.client-web-brand{justify-content:center}.client-web-form{width:100%}.client-login-downloads{max-width:340px;gap:8px 14px}}
