/* Shared administration layout. */
:root {
  font-size: 13px;
  color: #182238;
  background: #f5f7fb;
  --ink: #182238;
  --muted: #65738a;
  --line: #e3e8f0;
  --green: #2563eb;
  --primary-soft: #edf3ff;
  --sidebar-width: 224px;
}
body { min-height: 100dvh; }
.platform-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.platform-table-wrap { overflow-x:auto; }
.workspace.node-workspace { grid-template-columns: minmax(0,1fr); }
.node-table-wrap { overflow-x:auto; }
#workers-page .node-toolbar { gap:12px; flex-wrap:wrap; padding:12px 18px; }
.node-sections, .node-heading { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.node-sections button { background:transparent; color:var(--muted); padding:7px 12px; border-radius:6px; font-weight:500; }
.node-sections button:hover { background:#f4f7fb; color:var(--ink); }
.node-table { width:100%; table-layout:fixed; }
.node-table th:first-child { width:24%; }
.node-table th:nth-child(3) { width:16%; }
.node-table th:last-child { text-align:left; }
.node-table .node-name { padding:0; text-align:left; font-size:13px; white-space:normal; overflow-wrap:anywhere; }
.node-table .selected { background:#f0f5ff; }
.node-traffic strong { font-weight:550; }
.node-traffic .sub.bad { color:#a53d39; }
.node-traffic .sub.busy { color:#805310; }
.node-version { font-family:var(--mono); font-size:12px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.provider-settings { margin-bottom:18px; padding:15px 20px; }
.provider-settings > summary { cursor:pointer; font-weight:500; }
.provider-settings-body .panel-head { padding:16px 0 8px; }
.provider-settings-body .help { margin:10px 0; }
.provider-settings-body #platform-status { font-size:11px; }
#node-detail-panel dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
.platform-table { width:100%; min-width:960px; }
.platform-table td { vertical-align:top; }
.platform-table td:last-child { min-width:100px; }
.platform-table .action { display:block; white-space:nowrap; }
.platform-help { margin-top:18px; line-height:1.8; }
.platform-warning { color:#b03f45; font-size:11px; margin-top:4px; }
#platform-status { font-size:22px; }
a { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #93b4fa; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
.console-workspace { min-width: 0; min-height: 100dvh; }
.authenticated .console-workspace { margin-left: var(--sidebar-width); }
.console-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 35; width: var(--sidebar-width); padding: 27px 14px 16px; background: #fafbfe; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-brand { padding: 0 12px 31px; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; color: white; background: #2563eb; flex-shrink: 0; }
.brand-mark { object-fit: contain; }
.brand-word { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-word b { font-size: 23px; letter-spacing: -.8px; font-weight: 720; line-height: 1; }
.brand-word small { font-size: 10px; font-weight: 450; color: var(--muted); letter-spacing: 1.2px; }
#console-nav { flex-direction: column; align-self: auto; align-items: stretch; width: 100%; height: auto; flex-basis: auto; order: 0; gap: 4px; margin: 0; overflow: visible; }
#console-nav .nav-caption { display: block; padding: 11px 12px 6px; margin-top: 14px; color: #8b97a9; font-size: 11px; letter-spacing: .8px; }
#console-nav .nav-caption:first-child { margin-top: 0; }
#console-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 42px; border-radius: 8px; font-size: 13px; font-weight: 450; color: #48566d; text-decoration: none; }
#console-nav a svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#console-nav a:hover { background: #edf1f8; color: var(--ink); }
#console-nav a[aria-current="page"] { background: #2563eb; color: #fff; font-weight: 600; box-shadow: 0 3px 7px #2563eb17; }
#console-nav a[aria-current="page"]::after { display: none; }
.sidebar-footer { margin-top: auto; padding: 24px 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8b97a9; font-size: 11px; white-space: nowrap; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; color: var(--muted); background: transparent; padding: 7px; }
.icon-button:hover { color: var(--ink); background: #edf1f8; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.console-header { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; min-height: 65px; gap: 16px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.header-context, .header-tools { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-context { font-size: 12px; white-space: nowrap; }
.breadcrumb-parent { color: var(--muted); }
.breadcrumb-divider { color: #b0bac9; }
.header-context strong { color: #48566d; font-weight: 500; }
.header-tools { gap: 16px; }
.environment-label { border: 1px solid var(--line); background: #f8fafd; border-radius: 5px; padding: 3px 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.account { gap: 9px; font-size: 12px; color: #48566d; }
.admin-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #edf3ff; color: #2563eb; font-size: 12px; font-weight: 650; }
.signout { border-left: 1px solid var(--line); padding: 2px 0 2px 12px; margin-left: 5px; color: var(--muted); font-size: 12px; }
.signout:hover { color: #2563eb; }
#sidebar-open { display: none; }
.sidebar-collapsed { --sidebar-width: 76px; }
.sidebar-collapsed .console-sidebar { padding-inline: 12px; }
.sidebar-collapsed .sidebar-brand { padding-inline: 8px; }
.sidebar-collapsed .brand-word, .sidebar-collapsed #console-nav a span, .sidebar-collapsed .nav-caption, .sidebar-collapsed .sidebar-footer > span { display: none !important; }
.sidebar-collapsed #console-nav a { justify-content: center; padding-inline: 10px; }
.sidebar-collapsed .sidebar-footer { justify-content: center; }
.sidebar-collapsed #sidebar-collapse svg { transform: rotate(180deg); }
#dashboard { max-width: none; margin: 0; padding: 27px 28px 40px; }
.titlebar { margin-bottom: 23px; min-height: 47px; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.5px; line-height: 1.35; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
h3 { font-size: 13px; font-weight: 600; }
.page-description { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 6px; }
button.primary, button.secondary, button.destructive { min-height: 34px; border-radius: 6px; padding: 7px 13px; font-weight: 500; font-size: 12px; }
.primary { background: #2563eb; }
.primary:hover { background: #1d4ed8; }
.secondary { border: 1px solid #dce3ee; background: #fff; color: #48566d; }
.secondary:hover, .ghost:hover, .action:hover { background: #f1f5fc; }
.ghost, .action { font-size: 12px; font-weight: 500; color: #2563eb; padding: 5px 8px; }
.warn { color: #b03f45; }
.destructive { background: #c2414c; }
.destructive:hover { background: #ab3440; }
.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; border: 0; border-radius: 0; overflow: visible; background: transparent; margin-bottom: 22px; }
.metrics > div { padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px #18223803; }
.metrics > div + div::before { display: none; }
.metrics span { color: #65738a; font-size: 12px; }
.metrics strong { font-family: inherit; font-size: 28px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.7px; margin-top: 8px; color: var(--ink); }
.metrics .signal { width: 6px; height: 6px; margin-right: 3px; }
.workspace { grid-template-columns: minmax(260px,.9fr) minmax(370px,1.35fr); gap: 18px; }
.panel, .login-card { border-color: var(--line); border-radius: 10px; box-shadow: 0 1px 3px #18223803; }
.panel-head, .detail-head { padding: 15px 20px; min-height: 56px; border-bottom-color: #edf0f5; }
.panel-head h2 { font-size: 14px; }
.node-row { padding: 14px 18px; border-left-width: 3px; border-bottom-color: #edf0f5; }
.node-row:hover { background: #f8fafd; }
.node-row.selected { background: #f0f5ff; border-left-color: #2563eb; }
.node-name { font-weight: 550; font-size: 13px; }
.sub { font-size: 11px; line-height: 1.8; margin-top: 4px; color: #7b879a; }
.badge { font-size: 10px; padding: 3px 7px; gap: 5px; border-radius: 5px; background: #f0f3f8; color: #56657c; }
.badge::before { width: 5px; height: 5px; }
.badge.ok { background: #eaf7f0; color: #21734c; }
.badge.bad { background: #fff0f0; color: #b03f45; }
.badge.busy { background: #fff6e5; color: #865819; }
.details dl { padding: 18px 20px; gap: 17px 20px; }
.details dt { font-size: 11px; color: #7b879a; }
.details dd { margin-top: 5px; font-size: 12px; line-height: 1.7; }
.detail-actions { padding: 0 20px 18px; gap: 8px; }
.device-head { padding: 14px 20px 8px; border-top-color: #edf0f5; }
#device-list { padding-inline: 20px; }
.device-row > span { font-size: 12px; }
.empty { padding: 30px 22px; min-height: 170px; font-size: 12px; line-height: 1.8; color: #7b879a; }
.empty b { font-size: 14px; font-weight: 550; }
.notice, .error { border-radius: 7px; font-size: 12px; line-height: 1.8; }
.notice { background: #eaf7f0; color: #21734c; border: 1px solid #d4ebde; }
.notice.failure, .error, .problem { background: #fff0f0; color: #b03f45; border-color: #f3d5d5; }
.progress { background: #edf3ff; color: #355b9e; }
.progress, .problem { font-size: 12px; margin: 16px 20px 0; }
.help, .intro { color: var(--muted); font-size: 12px; }
label { color: #48566d; font-weight: 500; font-size: 12px; gap: 7px; margin-top: 14px; }
input, textarea, select { min-height: 36px; padding: 7px 10px; border-color: #dce3ee; border-radius: 6px; color: #182238; font-size: 12px; background: #fff; }
input::placeholder, textarea::placeholder { color: #98a3b4; }
input:hover, textarea:hover, select:hover { border-color: #b9c8e0; }
input:focus, textarea:focus, select:focus { border-color: #8caef2; }
input[type=checkbox] { min-height: 0; accent-color: #2563eb; }
.routing-check { display: flex; align-items: center; gap: 8px; }
.routing-check input { width: 14px; height: 14px; margin: 0; }
.user-filter { padding: 13px 18px; border-bottom-color: #edf0f5; }
.user-filter input { background: #fff; }
.user-list-loading { font-size: 12px; }
.login-devices { padding: 8px 20px 18px; }
.login-device { border-radius: 7px; }
.device-card-head { padding: 11px 14px; background: #f8fafd; border-bottom-color: #edf0f5; }
.device-card-head h4 { font-size: 12px; font-weight: 550; }
.device-icon { width: 32px; height: 32px; background: #edf3ff; color: #5574aa; border-radius: 7px; }
.device-icon::after { bottom: 6px; }
.device-icon.phone::after { bottom: 8px; }
.grant-row { border-bottom-color: #edf0f5; font-size: 12px; }
.list-total { font-size: 11px; }
.region-table { font-size: 12px; }
.region-table th, .region-table td { padding: 12px 20px; border-bottom-color: #edf0f5; vertical-align: middle; }
.region-table th { padding-block: 11px; background: #f8fafd; font-size: 11px; color: #65738a; font-weight: 500; }
.region-table td:first-child { font-weight: 500; }
.region-table tbody tr:hover { background: #fbfcff; }
.region-table td b { font-weight: 500; }
.region-actions { gap: 3px; }

dialog { border-radius: 12px; box-shadow: 0 20px 70px #18223829; }
dialog.small { width: min(460px,calc(100% - 32px)); }
dialog::backdrop { background: #18223866; }
.dialog-head, .dialog-foot { padding: 16px 22px; border-color: #edf0f5; }
.dialog-head h2 { font-size: 16px; font-weight: 600; }
.dialog-body { padding: 6px 22px 22px; }
.dialog-foot { background: #fbfcfe; }
.close { background: transparent; border-radius: 6px; }
.close:hover { background: #f0f3f8; }
legend { font-size: 12px; color: #48566d; font-weight: 550; }
#login { display: grid; min-height: 100dvh; place-content: center; padding: 36px 20px; }
.login-card { width: min(420px,calc(100vw - 40px)); max-width: none; padding: 36px; box-shadow: 0 8px 30px #18223808; }
.login-brand { font-size: 26px; font-weight: 720; letter-spacing: -1px; margin-bottom: 32px; color: #2563eb; }
.login-brand span { display: inline-block; border-left: 1px solid #dce3ee; padding-left: 12px; margin-left: 12px; font-size: 12px; color: #65738a; font-weight: 450; letter-spacing: 0; vertical-align: middle; }
.login-card h1 { font-size: 21px; }
.login-card .muted { font-size: 12px; line-height: 1.8; margin: 10px 0 24px; }
.login-card input { min-height: 41px; }
.login-card .remember-device { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-card .remember-device input { width: 15px; height: 15px; min-height: 0; margin: 0; }
.login-card .primary { min-height: 40px; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: #18223866; }
@media (min-width: 1500px) { #dashboard { padding: 30px 34px 50px; } }
@media (max-width: 1100px) { .workspace { grid-template-columns: minmax(0,1fr); } .metrics { gap: 10px; } .metrics > div { padding: 15px; } }

@media (max-width: 850px) {
  .authenticated .console-workspace { margin-left: 0; }
  .console-sidebar { display: none; width: 224px; }
  .sidebar-open .console-sidebar { display: flex; }
  .sidebar-open { overflow: hidden; }
  #sidebar-open { display: inline-flex; }
  .console-header { padding: 11px 16px; min-height: 60px; }
  .header-context { gap: 10px; }
  #dashboard { padding: 23px 18px 36px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #console-nav { margin: 0; gap: 4px; height: auto; flex-basis: auto; order: 0; }
  .environment-label { display: none; }
  .titlebar { gap: 14px; }
}
@media (max-width: 520px) {
  .header-tools { gap: 6px; }
  .admin-name, .breadcrumb-parent, .breadcrumb-divider { display: none; }
  .account { gap: 4px; }
  .account .admin-avatar { display: grid; }
  .signout { margin-left: 3px; padding-left: 8px; border-left: 1px solid var(--line); }
  #dashboard { padding: 22px 14px 30px; }
  .titlebar { align-items: flex-start; }
  .titlebar .primary { white-space: nowrap; padding: 7px 9px; }
  h1 { font-size: 20px; }
  .page-description { font-size: 11px; }
  .metrics strong { font-size: 25px; }
  .panel-head, .detail-head { padding: 13px 15px; }
  .region-table th, .region-table td { padding-inline: 13px; }
  .region-actions { gap: 0; }
  .details dl { padding: 16px; }
  .login-card { padding: 30px 26px; }
}

/* User inventory and details. */
.user-workspace { min-width:0; }
.user-workspace .inventory { overflow:visible; }
.user-overview { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:10px 16px; border-bottom:1px solid var(--line); }
.user-device-total { color:var(--muted); white-space:nowrap; font-size:12px; }
.user-device-total strong { color:var(--ink); font-weight:550; }
.user-toolbar { display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid #edf0f5; }
.user-toolbar .action { white-space:nowrap; }
.user-table-wrap { min-width:0; container-type:inline-size; }
.user-table { width:100%; table-layout:fixed; font-variant-numeric:tabular-nums; }
.user-table th { white-space:nowrap; }
.user-table th:first-child { width:29%; }
.user-table th:nth-child(2) { width:13%; }
.user-table th:nth-child(3) { width:15%; }
.user-table th:nth-child(4) { width:16%; }
.user-table th:last-child { width:12%; }
.user-row-actions { display:flex; justify-content:flex-end; gap:3px; }
.user-row-actions .action { padding-inline:5px; white-space:nowrap; }
.user-table :is(th,td):last-child { text-align:right; }
.user-table td { height:51px; }
.user-table .user-email-link { min-width:0; max-width:100%; padding:4px 0; color:#244c94; font-weight:550; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.user-email-link:hover { text-decoration:underline; text-underline-offset:3px; }
.user-table .user-disabled-row .user-email-link { color:var(--muted); }
.user-date { white-space:nowrap; }
.user-lifetime-traffic { color:var(--muted); font-size:11px; margin-top:2px; }
.user-list-totals { display:flex; flex-wrap:wrap; gap:4px 14px; }
.user-expiry-hint, .user-capacity { font-size:11px; color:#835617; }
.user-capacity { display:inline-block; background:#fff4dc; padding:1px 5px; border-radius:4px; margin-left:5px; }
.user-page-nav { display:inline-flex; align-items:center; gap:8px; }
.user-pagination { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:14px 20px; border-top:1px solid #edf0f5; color:#7b879a; font-size:11px; }
.user-page-controls { display:flex; align-items:center; gap:10px; }
.user-page-controls select { width:auto; min-height:30px; padding:4px 8px; font-size:11px; }
.user-page-controls .secondary { width:30px; min-height:30px; padding:2px; font-size:18px; }
#user-page-number { color:#48566d; white-space:nowrap; font-variant-numeric:tabular-nums; }
.user-empty { display:flex; align-items:center; justify-content:center; flex-direction:column; min-height:300px; text-align:center; gap:8px; }
.user-empty p { margin:0; }
.user-empty .secondary { margin-top:10px; }
.user-empty-icon { display:grid; place-items:center; background:#f1f5fc; color:#8fa6cc; border-radius:16px; width:58px; height:58px; font-size:28px; margin-bottom:8px; }
dialog.detail-drawer { position:fixed; inset:0 0 0 auto; margin:0; height:100dvh; max-height:100dvh; width:min(560px,100%); max-width:100vw; border-radius:14px 0 0 14px; border:0; }
.drawer-body { overflow-y:auto; min-height:0; padding-bottom:20px; }
body:has(.detail-drawer[open]) { overflow:hidden; }
.user-drawer .detail-head { border:0; gap:12px; padding-top:24px; flex-wrap:wrap; }
.user-drawer .user-email { flex:1; font-size:15px; overflow-wrap:anywhere; }
.user-drawer .detail-head .badge { flex-shrink:0; }
.user-drawer dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
.user-detail-zone { margin-inline:auto 8px; color:var(--muted); font-size:11px; }
.user-drawer .user-account-facts { padding-top:0; }
.user-detail-section { padding:15px 20px; margin:0; border-top:1px solid var(--line); }
.user-detail-section h3 { margin:0 0 10px; font-size:14px; }
.user-detail-section summary { padding:6px 0; cursor:pointer; font-size:13px; font-weight:550; }
.user-detail-section .detail-actions { padding:10px 0 0; }
.user-drawer .user-traffic-grid { padding:12px 14px; background:#f5f8fc; border-radius:8px; }
.user-traffic-grid dd { font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; }
.user-drawer .user-traffic-stats { padding:8px 0 12px; }
#user-traffic-more { margin-top:6px; }
#user-traffic-lines :is(h4,.grant-row) { overflow-wrap:anywhere; }
#user-traffic-lines h4 { margin:12px 0 4px; font-size:12px; }
#user-devices { display:grid; gap:6px; }
.user-drawer .device-card-head { display:flex; align-items:center; gap:10px; background:transparent; padding:8px 10px; }
.device-card-head .device-summary { flex:1; min-width:0; overflow-wrap:anywhere; }
.device-summary small { display:block; margin-top:2px; color:var(--muted); font-size:11px; font-weight:400; }
.user-drawer .device-card-head::after { content:""; width:6px; height:6px; flex:none; border:solid var(--muted); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin-right:5px; }
.user-drawer .login-device[open] > summary::after { transform:rotate(225deg); }
.user-drawer .login-device summary::-webkit-details-marker { display:none; }
.date-range-fields input[readonly] { background:#f5f7fb; color:var(--muted); }
.user-form-account { padding:12px 14px; margin-top:12px; border:1px solid #e6ecf6; border-radius:7px; background:#f7f9fd; color:#48566d; overflow-wrap:anywhere; font-weight:500; }
.user-password-field { position:relative; display:block; }
.user-password-field input { padding-right:55px; }
.user-password-field button { position:absolute; right:6px; top:5px; font-size:11px; }
.user-reset-password { margin-right:auto; }
.node-drawer-head > div { min-width:0; }
.node-heading { gap:5px 10px; }
.node-heading h2 { overflow-wrap:anywhere; }
.node-heading .node-version { color:#4a5d78; }
.node-drawer-head .sub { margin:4px 0 0; overflow-wrap:anywhere; }
.node-sections { flex-shrink:0; gap:12px; padding:0 20px; border-bottom:1px solid var(--line); }
.node-sections button { border-radius:0; padding:11px 3px; }
.node-sections button[aria-pressed=true] { color:var(--green); box-shadow:inset 0 -2px var(--green); }
.node-block { padding:18px 20px; }
.node-block + .node-block { border-top:1px solid var(--line); }
.node-block h3 { margin:0; font-size:14px; font-weight:600; }
.node-block dl { padding:12px 0 0; gap:14px 18px; }
.node-block .detail-actions { padding:0; margin-top:12px; }
.node-block .detail-actions:not(:has(> :not([hidden]))) { display:none; }
.node-block details { margin-top:14px; }
.node-block summary, .node-legacy-devices summary { cursor:pointer; color:#445d84; font-weight:500; }
.node-block .problem { margin:12px 0; }
.node-block .action, .node-remove-section .action { padding-left:0; }
.node-update-complete { color:#21734c; margin:8px 0 0; }
.node-update-complete:empty { display:none; }
.node-issue { margin:16px 20px 0; padding:10px 12px; border-radius:7px; background:#fff6e5; color:#694514; overflow-wrap:anywhere; }
.node-issue p { margin:0; }
.node-issue .action { padding:5px 0 0; }
.node-remove-section, .node-legacy-devices { margin:0 20px; padding:14px 0; border-top:1px solid var(--line); }
.node-legacy-devices #device-list { padding-inline:0; }
#node-detail-notice { margin:16px 20px 0; }
#node-forecast { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; margin-top:14px; }
#node-forecast-basis { color:var(--muted); }
#node-forecast-basis p { margin:6px 0 0; }

@media (max-width:700px) {
  #workers-page .node-toolbar { padding:8px 12px; gap:4px; }
  .node-filters { gap:2px; }
  .node-filters button { padding:6px 8px; }
  .node-table, .node-table tbody { display:block; }
  .node-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .node-table tbody tr { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:10px 16px; padding:14px 16px; border-bottom:1px solid var(--line); }
  .node-table tbody tr:last-child { border:0; }
  .node-table tbody td { display:block; border:0; padding:0; }
  .node-table td:first-child { grid-area:1 / 1; }
  .node-table td:nth-child(2) { grid-area:2 / 1; }
  .node-table td:nth-child(3) { grid-area:1 / 2; }
  .node-table td:nth-child(4) { grid-area:3 / 1 / auto / -1; }
  .node-table td:nth-child(4)::before { content:attr(data-label); margin-right:6px; color:var(--muted); }
  .node-table td:nth-child(4) .sub { display:inline; margin-left:6px; }
  .node-table td:last-child { grid-area:2 / 2; }
}
@media (max-width: 600px) {
  .user-toolbar { flex-wrap:wrap; gap:10px; padding:14px; }
  .user-pagination { flex-wrap:wrap; padding:14px; }
  .user-page-controls { margin-left:auto; }
  .user-empty { padding:25px 14px; }
  .user-drawer .detail-actions { flex-wrap:wrap; }
  .user-drawer .detail-head { padding-inline:20px; }

}

@container (max-width:740px) {
  .user-table, .user-table tbody { display:block; }
  .user-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .user-table tbody tr { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); align-items:start; gap:10px 8px; padding:12px 14px; border-bottom:1px solid var(--line); }
  .user-table tbody tr:last-child { border:0; }
  .user-table tbody td { display:block; height:auto; min-width:0; border:0; padding:0; }
  .user-table tbody td:first-child { grid-area:1 / 1 / auto / 4; align-self:center; }
  .user-table .user-email-link { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .user-table tbody td:nth-child(2) { grid-area:1 / 4; align-self:center; text-align:right; }
  .user-table tbody td:last-child { grid-area:1 / 5 / auto / 7; align-self:center; }
  .user-table tbody td:nth-child(3) { grid-area:2 / 1 / auto / 3; }
  .user-table tbody td:nth-child(4) { grid-area:2 / 3 / auto / 5; }
  .user-table tbody td:nth-child(5) { grid-area:2 / 5 / auto / 7; }
  .user-table td:nth-child(n+3)[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:11px; margin-bottom:3px; }
  .user-table td:last-child .action { min-height:32px; padding-inline:4px; }
}
.date-range-picker { min-width:0; margin:16px 0 0; padding:0; border:0; }
.date-range-picker legend { font-weight:550; font-size:13px; }
.date-range-presets { display:flex; flex-wrap:wrap; gap:6px; margin:7px 0; }
.date-range-presets button { min-height:30px; padding:4px 11px; border:1px solid var(--line); border-radius:6px; background:white; color:var(--muted); }
.date-range-presets button[aria-pressed=true] { color:var(--green); border-color:#a9bfe7; background:var(--primary-soft); }
.date-range-fields { display:grid; gap:9px; grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr)); }
.date-range-fields label { margin:0; min-width:0; }
.date-range-fields input { min-width:0; max-width:100%; }
.date-range-picker .help { margin-top:7px; }
@media (max-width:600px) {
  .date-range-presets button { min-height:40px; }
  .user-overview { padding:9px 12px; gap:4px 10px; }
  .user-device-total { padding-left:8px; }
  .user-drawer .user-email { min-width:0; }
  .user-form-account { overflow-wrap:anywhere; }
}
.providers-table { width:100%; table-layout:fixed; }
.providers-table th:first-child { width:33%; }
.providers-table th:nth-child(2) { width:17%; }
.providers-table th:last-child { width:19%; }
.providers-table td { vertical-align:middle; overflow-wrap:anywhere; }
.providers-table td strong { font-size:13px; font-weight:550; }
.provider-description { white-space:pre-wrap; }
.provider-time { display:block; }
.provider-nodes { color:var(--green); text-decoration:none; }
.provider-nodes:hover { text-decoration:underline; }
.provider-filters, .node-provider-scope { display:flex; align-items:center; gap:10px; padding:10px 18px; border-bottom:1px solid var(--line); }
.provider-filters input.filter-search { width:min(100%,280px); }
.provider-filters .filter-select { min-width:136px; }
.node-provider-scope { color:var(--muted); font-size:12px; flex-wrap:wrap; }
.node-provider-scope a { text-decoration:none; }
.provider-credential-section { border-top:1px solid var(--line); margin-top:18px; padding-top:14px; }
.provider-credential-head { display:flex; align-items:center; justify-content:space-between; }
@media (max-width:700px) {
  .provider-filters { flex-wrap:wrap; gap:8px; padding:10px 14px; }
  .provider-filters input.filter-search { width:100%; }
  .providers-table, .providers-table tbody { display:block; }
  .providers-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .providers-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:14px; gap:10px 8px; border-bottom:1px solid var(--line); }
  .providers-table tbody tr:last-child { border:0; }
  .providers-table tbody td { display:block; padding:0; border:0; min-width:0; }
  .providers-table td:nth-child(2) { text-align:right; }
  .providers-table td:last-child { align-self:end; }
  .providers-table .action { padding-inline:5px; }
}
.package-upload { margin: 18px 0; padding: 20px; border: 1px dashed #b7c8e5; border-radius: 10px; background: #f8faff; text-align: center; }
.package-upload progress { display: block; width: 100%; height: 8px; margin: 14px 0 8px; accent-color: #2463eb; }
.package-upload progress[hidden] { display: none; }
#package-filename { overflow-wrap: anywhere; margin: 10px 0 0; }
#package-status:empty { display: none; }
#package-details { margin: 14px 0; }
#package-details > summary { color: #647697; font-size: 12px; cursor: pointer; }

.totp-enrollment { padding: 18px 14px; margin: 18px 0; border: 1px solid #dfe7f5; background: #f8faff; border-radius: 10px; text-align: center; }
.totp-enrollment h2 { font-size: 15px; margin: 0 0 10px; }
.totp-enrollment p { font-size: 12px; line-height: 1.7; color: #64748b; }
.totp-enrollment img { display: block; width: min(240px,100%); height: auto; margin: 12px auto; background: white; }
.totp-enrollment summary { cursor: pointer; font-size: 12px; color: #2463eb; }
#totp-secret { display: block; padding-top: 10px; overflow-wrap: anywhere; user-select: all; font-size: 12px; }
#login-code { letter-spacing: .22em; font-variant-numeric: tabular-nums; }
#login { overflow: auto; }

#releases-page, #distribution-page { container-type:inline-size; }
.release-overview { display:grid; grid-template-columns:3fr 2fr; gap:12px; margin-bottom:14px; }
.release-entry { padding:14px 18px; overflow-wrap:anywhere; }
.release-entry:only-of-type, .release-overview:not(:has(#smart-download-entry:not([hidden]))) .release-entry:first-child { grid-column:1/-1; }
.release-entry-head, .release-tools, .release-file-actions, .release-admin-actions, .release-version-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.release-entry-head, .release-version-head { justify-content:space-between; }
.release-entry-head :is(h2,h4) { font-size:14px; margin:0; }
.release-entry p { margin:7px 0 0; }
.release-entry a, .release-storage-link, .dist-entry-head a, #dist-list .action { text-decoration:none; }
.release-entry a, .release-storage-link { color:var(--green); font-size:12px; }
.release-entry a:hover, .release-storage-link:hover { text-decoration:underline; }
.release-catalog .panel-head { flex-wrap:wrap; gap:8px; }
.release-tools .filter-select { min-width:155px; max-width:260px; }
.release-table { width:100%; table-layout:fixed; }
.release-table th:nth-child(1) { width:24%; }
.release-table th:nth-child(2) { width:18%; }
.release-table th:nth-child(4) { width:15%; }
.release-table :is(td,th) { padding:12px 16px; }
.release-client-name { padding:0; background:transparent; color:var(--green); text-align:left; overflow-wrap:anywhere; }
.release-live-note, .delivery-pending { color:#8a631c; }
.release-live-note { margin-top:4px; font-size:11px; }
.release-delivery-line { display:flex; align-items:baseline; gap:3px 8px; flex-wrap:wrap; overflow-wrap:anywhere; }
.release-delivery-line + .release-delivery-line { margin-top:4px; }
.release-delivery-line .sub { margin:0; }
.delivery-ok { color:#22754c; }
.release-drawer .drawer-body { padding:16px; }
.release-version-card { min-width:0; padding:14px; border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; }
.release-version-title { display:flex; align-items:baseline; gap:8px; }
.release-version-title strong { font-size:18px; }
.release-version-notes { white-space:pre-wrap; margin:10px 0; }
.release-subheading { font-size:13px; margin:18px 0 8px; }
.release-artifact { border-top:1px solid var(--line); padding:12px 0; }
.release-artifact h4 { font-size:13px; }
.release-artifact p { margin:4px 0 8px; }
.release-file-actions { gap:6px; }
.release-download { display:inline-flex; align-items:center; padding:6px 12px; border-radius:6px; background:var(--primary-soft); color:var(--green); font-size:12px; text-decoration:none; }
.release-file-details { margin-top:8px; font-size:12px; }
.release-file-details summary, .release-history-item summary, #release-form summary { cursor:pointer; }
.release-file-details summary { color:var(--muted); }
.release-file-details dl { display:block; margin:8px 0 0; padding:8px 12px; background:#f7f9fc; border-radius:6px; }
.release-file-details dt { font-size:12px; color:var(--muted); }
.release-file-details dd { margin:2px 0 8px; }
.release-file-details dd:last-child { margin-bottom:0; }
.release-url, .release-hash { overflow-wrap:anywhere; font-family:var(--mono); font-size:11px; }
.release-admin-actions { justify-content:flex-end; border-top:1px solid var(--line); padding-top:8px; }
.release-history-item { padding:10px 0; border-top:1px solid var(--line); }
.release-history-item summary > * { margin-right:8px; }
.release-history-item[open] > summary { margin-bottom:8px; }
.release-form-grid { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:10px; align-items:end; }
.release-form-grid .filter-select { margin-top:7px; }
#release-installer-fields { border:0; margin:0; padding:0; min-width:0; }
#release-form h3 { margin:18px 0 8px; font-size:14px; }
#release-form .package-upload { margin:8px 0; padding:14px; }
#release-form .package-upload p { overflow-wrap:anywhere; }
#release-form :is(#package-status,#installer-package-status):empty { display:none; }
#release-draft-delivery { margin:12px 0 0; padding:8px 10px; background:#f5f8fc; border-radius:6px; line-height:1.6; overflow-wrap:anywhere; }
.dist-entry-head { flex-wrap:wrap; gap:8px; }
.dist-entry-head > div:first-child { margin-right:auto; }
#dist-list .dist-selected { background:var(--primary-soft); }
@container (max-width:760px) {
  .release-overview { grid-template-columns:1fr; gap:8px; }
  .release-table, .release-table tbody, #dist-list table, #dist-list tbody { display:block; }
  .release-table thead, #dist-list thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .release-table tr, #dist-list tr { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:7px 12px; padding:12px 14px; border-bottom:1px solid var(--line); }
  .release-table tr:last-child, #dist-list tr:last-child { border:0; }
  .release-table td, #dist-list td { border:0; padding:0; min-width:0; }
  .release-table tbody td:first-child { grid-area:1/1; }
  .release-table tbody td:nth-child(2) { grid-area:2/1/3/3; }
  .release-table tbody td:nth-child(2)::before { content:"当前发布 "; color:var(--muted); font-size:12px; }
  .release-table tbody td:nth-child(2) > .sub { display:inline; margin-left:5px; }
  .release-table tbody td:nth-child(3) { grid-area:3/1/4/3; }
  .release-table tbody td:last-child { grid-area:1/2; }
  #dist-list tr { grid-template-columns:minmax(0,1fr); }
  #dist-list .region-actions { justify-content:flex-start; flex-wrap:wrap; }
}
@container (max-width:500px) {
  .release-catalog .panel-head, .release-entry { padding:12px 14px; }
  .release-tools { flex:1; justify-content:flex-end; gap:4px; min-width:0; }
  .release-tools .filter-select { min-width:0; max-width:min(170px,45cqw); }
  .release-table .action, #dist-list .action, .release-tools button, .release-entry a { min-height:42px; display:inline-flex; align-items:center; }
  .release-entry-head { gap:4px; }
  .release-entry p { margin-top:2px; }
}
@media(max-width:520px) {
  .release-drawer .drawer-body, #release-dialog .dialog-body { padding:12px; }
  #release-dialog, #edit-release-notes { width:calc(100vw - 16px); max-width:100vw; max-height:94dvh; }
  .release-form-grid, #release-form .grid { grid-template-columns:minmax(0,1fr); gap:0; }
  #release-form :is(input:not([type=file]),textarea), #edit-release-notes textarea { min-width:0; font-size:16px; }
  #release-form .filter-trigger, #release-form button, .release-drawer :is(.action,.secondary,.release-download), .release-file-details summary { min-height:42px; }
  .release-file-details summary { align-content:center; }
}



#dist-sync-error { margin:0; padding:8px 18px; color:#955631; background:#fff7eb; overflow-wrap:anywhere; }
.dist-table { width:100%; table-layout:fixed; }
.dist-table th:first-child { width:24%; }
.dist-table th:nth-child(3) { width:17%; }
.dist-table th:last-child { width:28%; }
.dist-table :is(th,td) { padding:12px 16px; }
.dist-table .region-actions { flex-wrap:wrap; align-items:center; }
.dist-table .dist-preview-link { background:var(--primary-soft); border-radius:5px; }
.dist-row-error { font-size:12px; color:#a34449; margin-top:5px; overflow-wrap:anywhere; }
.dist-address { font-family:var(--mono); font-size:12px; overflow-wrap:anywhere; }
.dist-settings-panel { margin-top:14px; }
.dist-settings-panel > summary { padding:16px 18px; font-weight:600; cursor:pointer; }
#dist-settings { padding:0 18px 16px; max-width:680px; }
#dist-settings-fields { border:0; padding:0; margin:0; min-width:0; }
#dist-save { margin-top:12px; }
.dist-maintenance { display:flex; flex-wrap:wrap; gap:8px; padding:8px 14px; border-top:1px solid var(--line); }
.dist-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
#dist-dialog { width:min(540px,calc(100vw - 24px)); }
#dist-dialog .filter-select { margin-top:7px; }
#dist-dialog h3 { font-size:14px; margin:18px 0 0; }
#dist-secret-help { margin:3px 0; }
#dist-remove { margin-right:auto; }
#dist-preview { width:min(760px,100%); }
#dist-preview .drawer-body { padding:14px 20px 24px; }
#dist-preview-source { font-size:16px; margin:0; overflow-wrap:anywhere; }
#dist-preview-bucket { margin:2px 0 14px; overflow-wrap:anywhere; }
.dist-preview-tools, .dist-pager { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.dist-preview-tools .filter-select { width:min(200px,100%); }
.dist-preview-tools .filter-search { flex:1; min-width:105px; }
#dist-preview-status { color:var(--muted); font-size:12px; margin:10px 0 16px; }
#dist-preview-status.warn { color:#a33b41; }
.dist-pager { gap:4px; margin:10px 0 6px; }
.dist-pager span { margin-right:auto; color:var(--muted); font-size:12px; }
#dist-preview-text { margin:0; border:1px solid var(--line); border-radius:7px; background:#f7f9fc; color:#243856; padding:12px; font:12px/1.65 var(--mono); white-space:pre-wrap; overflow-wrap:anywhere; max-height:57dvh; overflow:auto; tab-size:2; }
@container (max-width:760px) {
  #dist-list .dist-table tr { grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:6px 10px; }
  #dist-list .dist-table td { padding:0; }
  .dist-table td:first-child { grid-area:1/1; }
  .dist-table td:nth-child(2) { grid-area:2/1/3/3; }
  .dist-table td:nth-child(3) { grid-area:1/2; text-align:right; max-width:140px; }
  .dist-table td:last-child { grid-area:3/1/4/3; }
}
@media(max-width:520px) {
  .dist-grid { grid-template-columns:minmax(0,1fr); }
  #dist-preview .drawer-body, #dist-dialog .dialog-body { padding:12px; }
  #dist-preview .dist-preview-tools .filter-select { flex:1; }
  #dist-preview :is(.action,.secondary,.filter-trigger,.filter-search), #dist-dialog :is(.filter-trigger,button), .dist-maintenance button { min-height:42px; }
  #dist-preview-search, #dist-dialog input, #dist-settings input { min-width:0; font-size:16px; }
  #dist-dialog .dialog-foot { gap:6px; padding:10px 12px; }
}

#diagnostics-page { container-type:inline-size; }
#diagnostics-form, .diagnostic-overview { padding:18px 20px; }
#diagnostics-form { max-width:620px; }
#diagnostics-form label { margin:0; font-size:14px; font-weight:600; color:var(--ink); }
.log-search { display:flex; align-items:center; gap:8px; margin:10px 0 6px; }
.log-search input { flex:1; }
.log-search button { flex:none; min-height:36px; padding-inline:18px; }
#diagnostics-form .help, .diagnostic-section .help { margin:6px 0 0; line-height:1.6; }
#diagnostics-notice { color:var(--muted); font-size:12px; }
#diagnostics-notice:not(:empty) { margin-top:8px; }
#diagnostics-form:has([aria-invalid=true]) #diagnostics-notice { color:#ac373f; }
#diagnostics-id[aria-invalid=true] { border-color:#bd5157; }
#diagnostics-result { display:grid; gap:12px; min-width:0; overflow-wrap:anywhere; }
#diagnostics-result:not(:empty) { margin-top:14px; }
.diagnostic-heading, .diagnostic-byline, .diagnostic-hour, .diagnostic-pager { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.diagnostic-heading h2 { flex:1; margin:0; font-size:17px; }
.diagnostic-heading .help:empty { display:none; }
.diagnostic-byline { font-size:12px; color:var(--muted); margin-top:4px; }
.diagnostic-byline code { color:var(--ink); font-family:var(--mono); }
.diagnostic-meta { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
#diagnostics-page summary { cursor:pointer; }
.diagnostic-meta summary, .diagnostic-notes summary { color:var(--muted); font-size:12px; width:fit-content; }
.diagnostic-meta dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); gap:12px 20px; margin:14px 0 0; }
.diagnostic-meta dt { color:var(--muted); font-size:11px; }
.diagnostic-meta dd { margin:3px 0 0; }
.diagnostic-views { display:flex; gap:4px; padding:8px 14px; border-bottom:1px solid var(--line); }
.diagnostic-views button { background:transparent; color:var(--muted); border-radius:6px; font-size:13px; font-weight:500; padding:8px 12px; }
.diagnostic-views button[aria-pressed=true] { color:var(--green); background:var(--primary-soft); }
.diagnostic-section { min-width:0; padding:16px 20px; }
.diagnostic-section + .diagnostic-section { border-top:1px solid var(--line); }
.diagnostic-section h3 { margin:0 0 10px; font-size:14px; }
.diagnostic-section > .help { margin:0; }
.diagnostic-table { width:100%; border-collapse:collapse; text-align:left; scroll-margin-top:80px; font-variant-numeric:tabular-nums; }
.diagnostic-table :is(th,td) { padding:9px 8px; font-size:12px; line-height:1.5; vertical-align:top; }
.diagnostic-table th { background:#f7f9fc; color:var(--muted); font-weight:500; }
.diagnostic-table td { border-bottom:1px solid #edf0f5; white-space:pre-line; }
.diagnostic-table tr:last-child td { border:0; }
.diagnostic-hour { margin-bottom:8px; }
.diagnostic-hour label { margin:0; }
.diagnostic-notes { margin-bottom:10px; }
.diagnostic-read { border-top:1px solid var(--line); }
.diagnostic-read summary { padding:12px 0; line-height:1.6; }
.diagnostic-read summary span, .diagnostic-read time { color:var(--muted); margin-left:10px; font-size:12px; }
.diagnostic-pager { justify-content:flex-end; margin-top:10px; }
.diagnostic-pager span { margin-right:auto; color:var(--muted); font-size:12px; }

@media (min-width:1200px) {
  #diagnostics-page:has(.diagnostic-overview) { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); column-gap:14px; align-items:start; }
  #diagnostics-page .titlebar, .diagnostic-report { grid-column:1 / -1; }
  #diagnostics-result:not(:empty) { display:contents; }
  .diagnostic-report { margin-top:14px; }
  #diagnostics-page:has(.diagnostic-overview) #diagnostics-form { max-width:none; }
}
@container (max-width:780px) {
  .diagnostic-table, .diagnostic-table tbody { display:block; }
  .diagnostic-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .diagnostic-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; border-top:1px solid var(--line); padding:12px 0; }
  .diagnostic-table td { display:block; min-width:0; border:0; padding:0; }
  .diagnostic-table td:first-child, .diagnostic-table td:last-child:nth-child(odd) { grid-column:1 / -1; }
  .diagnostic-table td::before { display:block; content:attr(data-label); color:var(--muted); font-size:11px; }
  .diagnostic-table td:first-child { display:flex; gap:8px; align-items:baseline; font-weight:550; }
  .diagnostic-table td:first-child::before { flex:none; font-weight:400; }
}
@container (max-width:520px) {
  #diagnostics-form, .diagnostic-overview, .diagnostic-section { padding:14px; }
  .diagnostic-views { padding:4px 8px; }
  .diagnostic-views button { flex:1; min-height:44px; padding:6px 3px; }
  #diagnostics-page :is(.log-search button,.log-search input,.secondary,.filter-trigger) { min-height:44px; }
  #diagnostics-page .log-search input { font-size:16px; }
  .diagnostic-heading h2 { font-size:15px; }
  .diagnostic-read time { display:block; margin-left:16px; }
  .diagnostic-meta summary, .diagnostic-notes summary { padding-block:6px; }
}
.log-table { width: 100%; text-align: left; }
.log-table td, .log-table th { padding: 8px; }

#billing-dialog { width: min(420px, calc(100% - 32px)); }
#billing-dialog .dialog-head h2 { margin: 0; }
#billing-dialog .dialog-body { padding: 18px 22px 22px; }
#billing-detail { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
#billing-fields { display: grid; gap: 12px; }
#billing-fields label { display: grid; gap: 5px; }
#billing-fields input[type=checkbox] { justify-self: start; }
#billing-fields :is(input, textarea, select):focus-visible { outline-offset: 0; }
#billing-form-status:empty { display: none; }
#billing-dialog .dialog-foot { gap: 8px; }
.billing-wallet { margin-bottom: 14px; padding: 16px 20px 4px; }
.billing-wallet h2 { margin: 0 0 2px; font-size: 15px; }
.billing-setting { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.billing-setting + .billing-setting { border-top: 1px solid var(--line); }
.billing-setting strong { font-size: 13px; font-weight: 600; }
.billing-setting p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
#billing-wallet-count, #billing-key-state { font-size: 12px; color: var(--muted); }
#billing-key-state.configured { color: #21704b; }
.billing-key-actions { display: flex; align-items: center; gap: 12px; }
.treasury-address { overflow-wrap:anywhere; user-select:all; font:12px/1.5 var(--mono); }
.ledger-empty { padding:32px 12px; text-align:center; color:var(--muted); font-size:13px; margin:0; }
#wallet-page { container-type:inline-size; }
#wallet-page .titlebar { align-items:center; }
#treasury-status:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.wallet-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); grid-template-areas:"funds settings" "ledger ledger"; gap:14px; }
.wallet-layout:has(#treasury-panel[hidden]) { grid-template-areas:"settings settings" "ledger ledger"; }
.wallet-card { padding:15px 18px; min-width:0; }
#treasury-panel { grid-area:funds; }
.wallet-settings { grid-area:settings; }
.wallet-ledger { grid-area:ledger; min-width:0; }
.wallet-section-head, .wallet-address-line, #address-filter, #address-pagination:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.wallet-section-head { justify-content:space-between; }
.wallet-card h2 { margin:0; font-size:15px; }
.wallet-card h2 small { margin-left:6px; font-weight:450; font-size:11px; color:var(--muted); }
.wallet-assets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; padding:16px 0; }
.wallet-assets span, .wallet-sub { color:var(--muted); font-size:12px; }
.wallet-assets strong { display:block; font-size:clamp(20px,2vw,27px); line-height:1.35; margin-top:3px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.wallet-address-line { padding-top:10px; border-top:1px solid var(--line); }
.wallet-address-line code { min-width:0; }
#treasury-balance-note:empty { display:none; }
.wallet-settings .billing-setting { flex-wrap:nowrap; }
.wallet-settings .billing-setting > div { min-width:0; }
.wallet-settings .action, .wallet-ledger .action { white-space:nowrap; }
.wallet-ledger-head { padding:12px 16px; border-bottom:1px solid var(--line); }
#address-filter { margin:0; flex-wrap:nowrap; }
#address-filter button { flex:none; white-space:nowrap; }
#address-search { width:220px; max-width:100%; margin:0; }
.wallet-table { width:100%; table-layout:fixed; }
.wallet-table td { overflow-wrap:anywhere; }
.wallet-table .wallet-sub { display:block; margin-top:3px; }
.wallet-table .wallet-account { display:block; font-weight:600; }
.wallet-table .wallet-copy { display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:0 6px; max-width:100%; }
.wallet-copy .action { font-size:11px; padding:3px 2px; }
.wallet-table :is(th,td):last-child { text-align:right; }
.wallet-address-table th:first-child { width:48%; }
.wallet-address-table :is(th,td):nth-child(2), .wallet-address-table :is(th,td):nth-child(3) { text-align:right; }
.wallet-record-table th:first-child { width:24%; }
.wallet-number { font-variant-numeric:tabular-nums; }
#wallet-address-list .wallet-pager { justify-content:space-between; }
.wallet-history-count { padding:10px 18px; margin:0; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
#wallet-record { width:min(520px,calc(100% - 24px)); }
#wallet-record-body { padding:14px 20px 20px; }
.wallet-record-facts { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 14px; border-top:1px solid var(--line); padding-top:14px; margin:12px 0 0; font-size:12px; }
.wallet-record-facts dt { color:var(--muted); }
.wallet-record-facts dd { margin:0; overflow-wrap:anywhere; }
.wallet-record-facts .action { margin-left:4px; }
@container (max-width:740px) {
  .wallet-layout, .wallet-layout:has(#treasury-panel[hidden]) { grid-template-columns:minmax(0,1fr); grid-template-areas:"funds" "ledger" "settings"; gap:10px; }
  .wallet-layout:has(#treasury-panel[hidden]) { grid-template-areas:"ledger" "settings"; }
  .wallet-card, .wallet-ledger-head { padding:12px 14px; }
  .wallet-table, .wallet-table tbody { display:block; }
  .wallet-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .wallet-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--line); }
  .wallet-table tbody tr:last-child { border-bottom:0; }
  .wallet-table tbody td { padding:0; border:0; min-width:0; }
  .wallet-address-table td:first-child { grid-column:1/-1; }
  .wallet-address-table tbody :is(td:nth-child(2),td:nth-child(3)) { text-align:left; }
  .wallet-address-table td[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:11px; }
  .wallet-table .action { min-height:32px; }
  .wallet-record-table tbody tr { grid-template-columns:minmax(0,1fr) minmax(0,auto); }
  .wallet-record-table td:nth-child(2) { grid-area:2 / 1; }
  .wallet-record-table td:nth-child(3) { grid-area:1 / 2; text-align:right; }
  .wallet-record-table td:nth-child(4) { grid-area:3 / 1 / 4 / 3; color:var(--muted); }
  .wallet-record-table td:nth-child(5) { grid-area:2 / 2; }
}
@container (max-width:520px) {
  #address-filter { width:100%; }
  #address-search { flex:1; width:auto; }
}
@media (max-width:460px) {
  .wallet-record-facts dt:has(+ dd .wallet-copy), .wallet-record-facts dd:has(.wallet-copy) { grid-column:1/-1; }
  .wallet-record-facts dd:has(.wallet-copy) { margin-top:-4px; }
}
.region-tools { flex-wrap:wrap; justify-content:flex-start; gap:10px; padding:12px 18px; }
.region-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-right:auto; }
#region-search { width:min(210px, 100%); }
#region-search { margin:0; }
.region-inventory { table-layout:fixed; }
.region-inventory th:first-child { width:36%; }
.region-inventory.directory th:first-child { width:49%; }
.region-identity { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }
.region-identity strong { font-size:13px; font-weight:550; }
.region-code { padding:1px 5px; border-radius:4px; font:11px/1.5 var(--mono); color:#536178; background:#f0f3f8; }
.region-muted { color:var(--muted); }
.region-nodes { font-variant-numeric:tabular-nums; }
.region-nodes strong { font-weight:550; }
.region-inventory button:disabled { color:#788599; }
#region-list .empty button { margin-top:10px; }
.region-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:10px 18px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.region-pagination[hidden] { display:none; }
@media (max-width:700px) {
  .region-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:10px 12px; }
  .region-tabs { grid-column:1/-1; gap:2px; }
  #region-search { width:100%; }
  .region-inventory, .region-inventory tbody { display:block; }
  .region-inventory thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .region-inventory tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 12px; padding:12px 14px; border-bottom:1px solid var(--line); }
  .region-inventory tbody tr:last-child { border-bottom:0; }
  .region-inventory tbody td { padding:0; border:0; }
  .region-inventory td:first-child { grid-area:1 / 1; }
  .region-inventory td:nth-child(2) { grid-area:2 / 1; }
  .region-inventory .region-nodes { grid-area:2 / 2; text-align:right; }
  .region-inventory .region-nodes::before { content:"可用节点 "; color:var(--muted); }
  .region-inventory td:last-child { grid-area:1 / 2; }
  .region-inventory.directory td:last-child { grid-row:1 / 3; }
}

/* Routing directory. */
.routing-inventory { min-width:0; container-type:inline-size; }
#routing-version { margin:5px 0 0; font-size:12px; }
.routing-overview, .routing-filters, .routing-pagination { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 18px; }
.routing-overview { justify-content:space-between; border-bottom:1px solid var(--line); }
#routing-kinds { scroll-margin-top:76px; }
#routing-matches { margin-left:auto; color:var(--muted); font-size:12px; }
#routing-enabled-summary, .routing-pagination { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.routing-filters .filter-select { width:130px; }
#routing-search { width:min(100%,340px); }
.routing-table { width:100%; min-width:0; table-layout:fixed; }
.routing-table th:first-child { width:49%; }
.routing-table th:nth-child(2) { width:15%; }
.routing-table th:nth-child(3) { width:16%; }
.routing-table td { vertical-align:middle; }
.routing-table td:first-child { max-width:none; }
.routing-target { font-family:ui-monospace,monospace; font-size:12px; font-weight:550; overflow-wrap:anywhere; }
.routing-note { margin:3px 0 0; color:var(--muted); font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; }
.routing-table .region-actions { justify-content:flex-end; }
.routing-pagination { justify-content:space-between; border-top:1px solid var(--line); }
#routing-pager { display:flex; align-items:center; gap:6px; }
#routing-pager input { width:5em; margin:0; padding:4px; text-align:center; font:inherit; font-variant-numeric:tabular-nums; }
#routing-pager .secondary { min-width:32px; padding:3px 7px; font-size:18px; }
#routing-pager span { margin:0; }
#routing-remove { margin-right:auto; }
#routing-settings-dialog form { margin:0; }
#routing-match-help { margin-top:12px; }
@container (max-width:690px) {
  .routing-overview, .routing-filters, .routing-pagination { padding:10px 12px; }
  #routing-search { width:100%; }
  .routing-filters .filter-select { flex:1 1 90px; }
  .routing-table, .routing-table tbody { display:block; }
  .routing-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .routing-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 12px; padding:10px 12px; border-bottom:1px solid var(--line); }
  .routing-table tbody tr:last-child { border:0; }
  .routing-table tbody td { padding:0; border:0; min-width:0; }
  .routing-table td:first-child { grid-area:1 / 1; }
  .routing-table td:nth-child(2) { grid-area:2 / 1; color:var(--muted); font-size:12px; }
  .routing-table td:nth-child(3) { grid-area:1 / 2; text-align:right; }
  .routing-table td:last-child { grid-area:2 / 2; }
  .routing-table .action { min-height:36px; min-width:40px; padding:5px; }
}
@media (max-width:600px) {
  #routing-page .titlebar { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 8px; }
  #routing-page .titlebar > div:first-child { display:contents; }
  #routing-page .titlebar h1 { grid-area:1 / 1; }
  #routing-page .titlebar .platform-buttons { grid-area:1 / 2; }
  #routing-version { grid-column:1/-1; margin:2px 0 0; }
}

/* Connection policy settings. */
#connection-page { max-width:920px; }
#connection-page .titlebar { align-items:center; }
#connection-policy-form { overflow:hidden; }
#connection-feedback { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.policy-group { padding:19px 22px 4px; }
.policy-group + .policy-group { border-top:1px solid var(--line); }
.policy-group h2 { margin:0 0 4px; font-size:14px; }
.policy-row { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; gap:12px 28px; padding:15px 0; }
.policy-row + .policy-row { border-top:1px solid #edf0f5; }
.policy-description label { margin:0; font-size:13px; color:var(--ink); font-weight:550; }
.policy-description p, .policy-footer p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.65; }
.policy-duration { font-size:17px; font-weight:550; font-variant-numeric:tabular-nums; }
.policy-control { width:180px; }
.policy-number { display:grid; grid-template-columns:minmax(0,1fr) 74px; gap:5px; }
.policy-number :is(input,select) { margin:0; min-width:0; min-height:36px; font-variant-numeric:tabular-nums; }
.policy-number input[aria-invalid=true] { border-color:#bc4951; }
.policy-hint { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.policy-control:has([aria-invalid=true]) .policy-hint { color:#a33743; }
.policy-footer { border-top:1px solid var(--line); padding:13px 22px; background:#fafbfd; }
.policy-footer p { margin:0; }
#policy-actions, #policy-actions > div { display:flex; align-items:center; gap:8px; }
#policy-actions { justify-content:space-between; margin-top:14px; }
#policy-defaults { padding-inline:0; }
@media (max-width:640px) {
  .policy-group { padding:15px 14px 2px; }
  .policy-row { grid-template-columns:minmax(0,1fr) auto; gap:9px 14px; padding:13px 0; }
  .policy-duration { font-size:15px; text-align:right; max-width:9em; }
  .policy-row:has(.policy-control:not([hidden])) { grid-template-columns:1fr; }
  .policy-control { width:100%; }
  .policy-number :is(input,select) { min-height:40px; }
  .policy-footer { padding:12px 14px; }
}

/* Channel pricing and plan settings. */
#billing-notice:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 14px; }
.plan-inventory { overflow:visible; container-type:inline-size; }
.plan-channel-bar, #billing-channel-info { display:flex; flex-wrap:wrap; align-items:center; gap:9px 14px; padding:14px 20px; border-bottom:1px solid var(--line); }
.plan-channel-bar h2, #billing-channel-info h3 { margin:0; font-size:14px; }
.plan-channel-bar h2 { color:var(--muted); font-size:12px; }
#billing-channels { min-width:0; }
#billing-channels button { max-width:100%; overflow-wrap:anywhere; }
#billing-channel-chooser { width:min(300px,100%); min-width:0; }
#billing-edit-channel { margin-left:auto; white-space:nowrap; }
.plan-channel-facts { margin-left:auto; color:var(--muted); font-size:12px; }
.plan-table { table-layout:fixed; width:100%; min-width:0; }
.plan-table th:first-child { width:31%; }
.plan-table th:nth-child(2) { width:19%; }
.plan-table :is(td,th):last-child { text-align:right; }
.plan-table td { vertical-align:middle; overflow-wrap:anywhere; }
.plan-table strong { font-weight:550; }
.plan-period { display:inline-block; margin-left:8px; font-size:12px; color:var(--muted); }
.plan-price { font-weight:550; font-variant-numeric:tabular-nums; }
.plan-unpriced { color:#785818; }
#billing-dialog.plan-editor { width:min(500px,calc(100% - 24px)); }
#billing-dialog.plan-editor #billing-detail:empty { display:none; }
#billing-dialog.plan-editor .dialog-body { padding:16px 20px; }
#billing-dialog.plan-editor label { margin:0; }
.plan-field-group { min-width:0; padding:0; margin:0; border:0; }
.plan-field-group + .plan-field-group { border-top:1px solid var(--line); padding-top:14px; }
.plan-field-group legend { float:left; width:100%; margin:0 0 6px; font-size:13px; font-weight:600; }
.plan-field-hint { clear:both; margin:0 0 10px; color:var(--muted); font-size:12px; line-height:1.6; }
.plan-field-grid { clear:both; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; }
.plan-select-field { min-width:0; }
.plan-select-field .filter-select { margin-top:5px; }
.plan-select-field .filter-trigger:disabled { background:#f8fafd; color:var(--muted); }
.plan-select-field .filter-trigger:disabled .filter-chevron { visibility:hidden; }
#billing-dialog.plan-editor label:has(input[type=checkbox]) { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:7px; min-height:36px; }
#billing-dialog.plan-editor input[type=checkbox] { order:-1; width:16px; height:16px; min-height:0; margin:0; }
@container (max-width:660px) {
  .plan-channel-bar, #billing-channel-info { padding:11px 13px; gap:6px 10px; }
  #billing-channel-chooser { flex:1 1 140px; }
  .plan-channel-facts { flex-basis:100%; margin:0; }
  .plan-table, .plan-table tbody { display:block; }
  .plan-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .plan-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:center; gap:9px 8px; padding:12px 13px; border-bottom:1px solid var(--line); }
  .plan-table tbody tr:last-child { border:0; }
  .plan-table tbody td { display:block; min-width:0; padding:0; border:0; }
  .plan-table td:first-child { grid-area:1 / 1 / auto / 3; }
  .plan-table td:nth-child(2) { grid-area:2 / 1; }
  .plan-table td:nth-child(3) { grid-area:2 / 2; }
  .plan-table td:nth-child(4) { grid-area:1 / 3; text-align:right; }
  .plan-table td:last-child { grid-area:2 / 3; }
  .plan-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:2px; font-size:11px; color:var(--muted); }
  .plan-table .action { min-height:36px; padding-inline:4px; }
}
@media (max-width:500px) {
  #billing-dialog.plan-editor .dialog-body { padding:12px 16px; }
  .plan-field-grid { column-gap:8px; }
  .plan-field-grid :is(input,select) { min-width:0; min-height:40px; }
  .plan-select-field .filter-trigger { min-height:40px; }
}
@media (max-width:420px) {
  .plan-select-field { grid-column:1/-1; }
}

/* Recharge orders */
.order-inventory { overflow:visible; }
.order-overview, #order-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 18px; border-bottom:1px solid var(--line); }
.order-overview { justify-content:space-between; }
.order-overview h2 { margin:0; font-size:14px; }
#order-count { margin-left:5px; font-size:12px; font-weight:450; color:var(--muted); }
#order-review[aria-pressed=true] { color:var(--green); background:var(--primary-soft); border-color:#b4c8ec; }
#order-filters input.filter-search { width:min(100%,360px); }
#order-filters .filter-select { width:142px; }
#order-notice:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:12px 16px; }
.order-table { table-layout:fixed; }
.order-table th:first-child { width:31%; }
.order-table th:nth-child(2) { width:19%; }
.order-table th:nth-child(3) { width:17%; }
.order-table th:nth-child(4) { width:15%; }
.order-table :is(th,td):last-child { text-align:right; }
.order-table td { overflow-wrap:anywhere; }
.order-table .order-account, .order-table .order-price { display:block; font-weight:600; }
.order-table .order-ref { font-family:var(--mono); font-size:11px; padding:2px 0; }
.order-sub { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
#order-detail { width:min(34rem,calc(100% - 24px)); }
#order-facts { padding:16px 20px; }
.order-summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.order-summary strong { font-size:22px; font-variant-numeric:tabular-nums; }
.order-reason { margin:12px 0; padding:9px 12px; border-radius:6px; background:#fff6e6; color:#80551c; font-size:12px; }
.order-group { padding-top:12px; margin-top:12px; border-top:1px solid var(--line); }
.order-group h3 { margin:0 0 8px; font-size:13px; }
.order-group dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px 16px; margin:0; font-size:12px; }
.order-group dt { color:var(--muted); }
.order-group dd { margin:0; overflow-wrap:anywhere; }
.order-group code { font-size:11px; user-select:all; }
.order-group .action { margin-left:6px; }
#billing-fields .order-group { margin:0; padding:0; border:0; }
#order-detail-actions { justify-content:flex-end; }
@media(max-width:800px) {
  .order-overview, #order-filters { padding:10px 12px; }
  #order-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #order-filters .filter-select, #order-filters input.filter-search { width:100%; }
  #order-search { grid-column:1/-1; }
  #order-clear { justify-self:start; }
  .order-table, .order-table tbody { display:block; width:100%; }
  .order-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .order-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,auto); gap:8px 12px; align-items:start; border-bottom:1px solid var(--line); padding:12px; }
  .order-table tbody tr:last-child { border:0; }
  .order-table tbody td { min-width:0; padding:0; border:0; }
  .order-table td:first-child { grid-area:1 / 1; }
  .order-table td:nth-child(2) { grid-area:2 / 1; }
  .order-table td:nth-child(3) { grid-area:2 / 2; text-align:right; }
  .order-table td:nth-child(4) { grid-area:1 / 2; text-align:right; }
  .order-table td:last-child { grid-area:3 / 1 / 4 / 3; color:var(--muted); font-size:11px; text-align:left; }
  .order-table td:last-child::before { content:"创建于 "; }
  .order-table .order-ref { min-height:28px; }
}

/* Console overview */
.breadcrumb-parent { text-decoration: none; }
.breadcrumb-parent:hover { text-decoration: underline; }
#overview-page { max-width: 1440px; margin-inline: auto; }
#overview-time { font-size: 12px; }
#overview-notice { padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 8px; }
#overview-notice.failure { color: #9d3c31; background: #fff6ed; }
#overview-content { display: grid; gap: 22px; }
#overview-content .panel { margin: 0; }
.ov-heading { font-size: 15px; margin: 0 0 10px; }
.ov-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.ov-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ov-ok { color: #20704d; } .ov-warn { color: #9a561c; }
.ov-attention .panel-head:has(+ #overview-issues:empty) { border-bottom: 0; }
.ov-issue { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; min-height: 44px; padding: 8px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.ov-issue:last-child { border: 0; }
.ov-issue strong { font-weight: 550; overflow-wrap: anywhere; }
.ov-issue span, .ov-arrow { color: var(--muted); }
.ov-arrow { font-size: 18px; font-style: normal; }
.ov-more summary { padding: 12px 20px; color: var(--green); cursor: pointer; }
.ov-metrics, #overview-platforms { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.ov-metric { position: relative; display: grid; gap: 7px; padding: 16px 20px; text-decoration: none; }
.ov-metric::after { content: "↗"; position: absolute; right: 16px; top: 14px; color: var(--muted); }
.ov-metric:hover, .ov-issue:hover { background: #f7faff; }
.ov-metric strong { font-size: clamp(23px,2.3vw,34px); line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.ov-metric small, .ov-metric span, .ov-builds small, .ov-storage span { color: var(--muted); }
#overview-platforms { gap: 0; padding: 16px 0; }
.ov-platform { padding: 0 20px; min-width: 0; border-inline-start: 1px solid var(--line); }
.ov-platform:first-child { border: 0; }
.ov-builds { margin-top: 9px; display: grid; gap: 5px; }
.ov-builds > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ov-builds small { min-width: 36px; }
.ov-builds span { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ov-storage { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafbfd; }
.ov-storage > div { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; }
.ov-storage .action { flex-shrink: 0; }
@media (max-width: 650px) {
  #overview-content { gap: 16px; }
  .ov-metrics, #overview-platforms { grid-template-columns: minmax(0,1fr); }
  .ov-metrics { gap: 7px; }
  .ov-metric { grid-template-columns: minmax(0,1fr) auto; align-items: baseline; padding: 12px 16px; gap: 2px 8px; }
  .ov-metric strong { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .ov-metric::after { content: none; }
  #overview-platforms { padding: 0 16px; }
  .ov-platform { padding: 12px 0; display: grid; grid-template-columns: 74px 1fr; border: 0; }
  .ov-platform + .ov-platform { border-top: 1px solid var(--line); }
  .ov-builds { margin: 0; }
  .ov-issue { padding-inline: 14px; gap: 8px; }
  .ov-storage { padding: 12px 16px; }
  .ov-storage > div { display: grid; gap: 4px; }
}

.website-tabs {display:flex;gap:6px;margin:0 0 18px;border-bottom:1px solid #dce3ee}
.website-tabs a {padding:9px 14px;color:#536480;text-decoration:none;border-bottom:2px solid transparent;font-size:14px;font-weight:600}
.website-tabs a[aria-current="page"] {color:#245fe7;border-color:currentColor}
#website-publishing .panel + .panel {margin-top:16px}
.website-section,.website-row {display:flex;align-items:center;gap:16px;padding:16px 20px}
.website-section {justify-content:space-between;flex-wrap:wrap}
.website-connection summary {padding:15px 20px;cursor:pointer;font-size:14px;font-weight:650;overflow-wrap:anywhere}
.website-connection summary .sub {margin-left:12px;font-weight:500}
.website-connection-body {border-top:1px solid var(--line,#e1e7ef);padding:14px 20px}
.website-connection-bar,.website-connection-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.website-connection-bar {justify-content:space-between}
.website-connection-bar p {margin:0;color:#526078}
#website-token-status {margin-left:6px;color:#233653}
#website-token-form {display:grid;gap:8px;margin-top:16px;max-width:34rem}
#website-token-form input {width:100%;min-width:0}
#website-token-form .sub {margin:0 0 4px}
#website-connection-result {margin:12px 0 0;overflow-wrap:anywhere}
@media(max-width:540px) {
  .website-connection summary,.website-connection-body {padding:14px}
  .website-connection summary .sub {display:block;margin:4px 0 0 16px}
  .website-connection-bar {align-items:flex-start;flex-direction:column}
  .website-connection-actions button {min-height:42px}
}
.website-live,.website-description {display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
#website-upload {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}
#website-upload label {display:grid;gap:6px;min-width:0}
#website-upload input {min-width:0;max-width:100%;width:100%}
#website-upload input[type="file"] {padding:6px}
#website-upload input::file-selector-button {border:0;background:#edf2fb;color:#375780;border-radius:4px;padding:5px 9px;margin-right:8px}
#website-upload .sub {grid-column:1/-1;margin:0}
.website-row {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(180px,auto);border-top:1px solid #e6ebf3}
.website-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
@media(max-width:700px) {
  #website-upload {grid-template-columns:1fr}
  .website-row {grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .website-actions:not(:empty) {grid-column:1/-1;justify-content:flex-start}
  .website-actions:empty {display:none}
  .website-section,.website-row {padding:14px}
}

#contacts-list { padding: 0 20px; }
.contact-editor { display: grid; grid-template-columns: minmax(7rem, .75fr) minmax(12rem, 2fr) auto; gap: 12px; align-items: end; padding: 16px 0; border-top: 1px solid var(--border, #e2e7ef); }
.contact-editor label { display: grid; gap: 5px; font-size: 13px; }
.contact-editor input, .contact-editor select { min-width: 0; width: 100%; }
.contact-actions, .contacts-footer { display: flex; align-items: center; gap: 12px; }
.contact-actions { min-height: 38px; }
.contact-actions .contact-enabled { display: flex; align-items: center; gap: 5px; }
.contact-enabled input { width: auto; }
.contacts-footer { padding: 16px 20px; justify-content: space-between; }
@media (max-width: 1050px) { .contact-editor { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .contact-editor { grid-template-columns: 1fr; } }
