/* ---------- theme tokens (light) ---------- */
:root {
  --pp-sider: #001529;
  --pp-sider-active: #1677ff;
  --pp-bg: #f0f2f5;
  --pp-card: #ffffff;
  --pp-header: #ffffff;
  --pp-text: #1f2329;
  --pp-text2: #4e5969;
  --pp-sub: #8a919f;
  --pp-border: #e8eaee;
  --pp-divider: #e5e6eb;
  --pp-hover: #f2f3f5;
  --pp-soft: #f7f8fa;
  --pp-th: #fafbfc;
  --pp-row-hover: #f5f9ff;
  --pp-ring: #ffffff;
  --pp-shadow: 0 1px 3px rgba(0,0,0,.05);
  --pp-shadow-hover: 0 6px 18px rgba(0,0,0,.08);
  --pp-ok-fg: #389e0d; --pp-ok-bg: #f6ffed; --pp-ok-bd: #d9f7be;
  --pp-bad-fg: #cf1322; --pp-bad-bg: #fff1f0; --pp-bad-bd: #ffccc7;
  --pp-idle-fg: #8a919f; --pp-idle-bg: #f2f3f5;
  --pp-up: #1677ff;
  --pp-down: #13c2c2;
  --pp-login-panel: #ffffff;
  --pp-login-title: #111827;
  --pp-header-h: 68px;
  --el-font-size-extra-large: 20px;
  --el-font-size-large: 18px;
  --el-font-size-medium: 16px;
  --el-font-size-base: 15px;
  --el-font-size-small: 14px;
  --el-font-size-extra-small: 13px;
}
/* ---------- theme tokens (dark) ---------- */
html.dark {
  color-scheme: dark;
  --pp-sider: #0b1018;
  --pp-bg: #0d1117;
  --pp-card: #161b22;
  --pp-header: #12171e;
  --pp-text: #e6edf3;
  --pp-text2: #b1bac4;
  --pp-sub: #7d8590;
  --pp-border: #2a313c;
  --pp-divider: #30363d;
  --pp-hover: #21262d;
  --pp-soft: #1c222b;
  --pp-th: #1a2029;
  --pp-row-hover: #1b2433;
  --pp-ring: #161b22;
  --pp-shadow: 0 1px 3px rgba(0,0,0,.4);
  --pp-shadow-hover: 0 8px 22px rgba(0,0,0,.5);
  --pp-ok-fg: #73d13d; --pp-ok-bg: rgba(82,196,26,.12); --pp-ok-bd: rgba(82,196,26,.32);
  --pp-bad-fg: #ff7875; --pp-bad-bg: rgba(245,34,45,.12); --pp-bad-bd: rgba(245,34,45,.36);
  --pp-idle-fg: #7d8590; --pp-idle-bg: #21262d;
  --pp-up: #4096ff;
  --pp-down: #36cfc9;
  --pp-login-panel: #12171e;
  --pp-login-title: #e6edf3;
  /* Element Plus surfaces a little closer to our palette */
  --el-bg-color: #161b22;
  --el-bg-color-overlay: #1c222b;
  --el-fill-color-blank: #161b22;
  --el-border-color: #30363d;
  --el-border-color-light: #2a313c;
  --el-border-color-lighter: #262c36;
  --el-border-color-extra-light: #21262d;
}
html { transition: background-color .2s; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--pp-bg); color: var(--pp-text); font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; }
.el-table { font-size: 14.5px; }
.el-table--small { font-size: 14px; }
.el-button { font-size: 14.5px; }
.el-dropdown-menu__item { font-size: 14.5px; padding: 7px 18px; }
.el-descriptions__label, .el-descriptions__content { font-size: 14px !important; }
.el-breadcrumb { font-size: 14.5px; }
.el-tag { font-size: 13px; }
#app { height: 100%; }
.boot { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--pp-sub); }

/* ---------- login ---------- */
.login-page { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: hidden; background: #0a1020; }
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.login-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.login-bg .o1 { width: 520px; height: 520px; background: #1d4ed8; left: -140px; top: -160px; animation: float 14s ease-in-out infinite; }
.login-bg .o2 { width: 460px; height: 460px; background: #0891b2; right: -120px; bottom: -160px; animation: float 16s ease-in-out infinite reverse; }
.login-bg .o3 { width: 280px; height: 280px; background: #7c3aed; left: 45%; top: 55%; opacity: .3; animation: float 18s ease-in-out infinite; }
.login-bg .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%); }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 24px); } }
.login-theme { position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #e6edf7; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .15s; }
.login-theme:hover { background: rgba(255,255,255,.16); }
.login-shell { position: relative; z-index: 1; width: 1000px; max-width: 100%; min-height: 560px; display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.login-brand { padding: 44px 44px 40px; color: #e6edf7; background: linear-gradient(160deg, rgba(22,119,255,.22), rgba(8,145,178,.12)), rgba(15,23,42,.72); backdrop-filter: blur(16px); display: flex; flex-direction: column; }
.brand-head { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; display: inline-flex; flex-shrink: 0; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.brand-en { font-size: 12px; color: #8ea3c0; letter-spacing: 1px; }
.login-brand h2 { font-size: 30px; line-height: 1.35; margin: 44px 0 12px; color: #fff; font-weight: 700; }
.brand-desc { margin: 0 0 32px; color: #9fb2cc; font-size: 14px; }
.feature-list { display: grid; gap: 16px; margin-top: auto; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.feature span:not(.f-icon) { color: #94a8c4; font-size: 13px; }
.f-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px;
  color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.login-panel { background: var(--pp-login-panel); padding: 52px 48px 28px; display: flex; flex-direction: column; transition: background .2s; }
.panel-mobile-head { display: none; align-items: center; gap: 10px; margin-bottom: 26px; }
.panel-mobile-head .brand-name { color: var(--pp-text); }
.login-panel h3 { margin: 18px 0 6px; font-size: 26px; font-weight: 700; color: var(--pp-login-title); }
.panel-sub { margin: 0 0 30px; color: var(--pp-sub); font-size: 14px; }
.login-form .el-input__wrapper { padding: 4px 12px; border-radius: 8px; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 22px; }
.login-btn { width: 100%; height: 46px !important; font-size: 16px !important; border-radius: 8px !important; letter-spacing: 4px;
  background: linear-gradient(90deg, #1677ff, #13a8c2) !important; border: 0 !important; box-shadow: 0 8px 20px rgba(22,119,255,.3); }
.login-btn:hover { filter: brightness(1.06); }
.login-safe { margin-top: 18px; text-align: center; font-size: 12px; color: #52c41a; display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-foot { margin-top: auto; padding-top: 24px; text-align: center; font-size: 12px; color: var(--pp-sub); }
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; min-height: 0; width: 440px; }
  .login-brand { display: none; }
  .login-panel { padding: 34px 26px 22px; }
  .panel-mobile-head { display: flex; }
  .login-panel h3 { margin-top: 0; font-size: 22px; }
}
.logo-mark { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }

/* ---------- layout: one-screen frame, only the content column scrolls ---------- */
.layout { height: 100vh; height: 100dvh; overflow: hidden; }
.sider { background: var(--pp-sider); height: 100%; transition: width .2s, background .2s; overflow-x: hidden; overflow-y: auto; flex-shrink: 0; }
html.dark .sider { border-right: 1px solid var(--pp-border); }
.content-col { height: 100%; min-width: 0; overflow-y: auto; overflow-x: hidden; }
/* the column is a flex container: without this, long pages squeeze the header below its height */
.content-col > * { flex-shrink: 0; }
.sider .brand { height: var(--pp-header-h); display: flex; align-items: center; gap: 10px; padding: 0 18px; color: #fff;
  font-weight: 700; font-size: 17px; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.06); }
.sider .el-menu { border-right: 0; background: transparent; padding-top: 6px; }
.sider .el-menu-item { color: rgba(255,255,255,.72); height: 48px; margin: 4px 10px; border-radius: 8px; font-size: 15px; }
.sider .el-menu-item .el-icon { font-size: 18px; }
.sider .el-menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.sider .el-menu-item.is-active { color: #fff; background: var(--pp-sider-active); }
/* collapsed rail (icon-only): Element Plus keeps 20px side padding on each item, but the item is narrowed to 44px by the 10px margins,
   so the icon landed ~10px right of centre. Zero the padding, centre the icon in its box and centre the logo in the 64px rail. */
.sider .el-menu--collapse { width: 100%; }
.sider .el-menu--collapse .el-menu-item { padding: 0 !important; justify-content: center; }
.sider .el-menu--collapse .el-menu-item .el-icon { margin: 0; }
.sider .el-menu--collapse .el-menu-item .el-menu-tooltip__trigger { padding: 0; justify-content: center; }
.sider:has(.el-menu--collapse) .brand { padding: 0; justify-content: center; gap: 0; }
.header { height: var(--pp-header-h); min-height: var(--pp-header-h); flex-shrink: 0; background: var(--pp-header); display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 4px rgba(0, 21, 41, .06); transition: background .2s; }
html.dark .header { box-shadow: none; border-bottom: 1px solid var(--pp-border); }
.header .left { display: flex; align-items: center; gap: 14px; }
.header .right { display: flex; align-items: center; gap: 12px; }
.collapse-btn { cursor: pointer; font-size: 18px; color: var(--pp-text2); display: flex; }
.main { padding: 20px 24px 36px; }
.page-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 34px; }
.page-title small { font-size: 14px; color: var(--pp-sub); font-weight: 400; margin-left: 10px; }

.card { background: var(--pp-card); border-radius: 10px; padding: 18px 20px; box-shadow: var(--pp-shadow); transition: background .2s; }
html.dark .card, html.dark .stat { border: 1px solid var(--pp-border); }
.card + .card { margin-top: 16px; }
.grid-2 > .card, .grid-2e > .card { margin-top: 0; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }

/* ---------- stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1500px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--pp-card); border-radius: 10px; padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--pp-shadow); transition: box-shadow .2s, background .2s; }
.stat:hover { box-shadow: var(--pp-shadow-hover); }
.stat.clickable { cursor: pointer; }
.stat .link-more { color: #1677ff; margin-left: auto; opacity: 0; transition: opacity .15s; }
.stat.clickable:hover .link-more { opacity: 1; }
.online-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1500px) { .online-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) { .online-stats { grid-template-columns: 1fr 1fr; } }
.ip-line + .ip-line { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--pp-border); }
.stat .label { color: var(--pp-text2); font-size: 14.5px; font-weight: 500; }
.stat .value { font-size: 30px; font-weight: 700; margin: 8px 0 6px; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.stat .foot { font-size: 13px; color: var(--pp-sub); display: flex; gap: 12px; flex-wrap: wrap; }
.stat .icon { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
html.dark .stat .icon { background: color-mix(in srgb, var(--c) 20%, transparent); }
.ok { color: #52c41a; } .bad { color: #f5222d; } .warn { color: #fa8c16; } .muted { color: var(--pp-sub); }
html.dark .ok { color: #73d13d; } html.dark .bad { color: #ff7875; }
.up { color: var(--pp-up); } .down { color: var(--pp-down); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.grid-2e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.chart { width: 100%; height: 320px; }
.chart.sm { height: 240px; }

/* ---------- realtime server card ---------- */
.sys-card { display: flex; flex-direction: column; }
.sys-sub { font-style: normal; font-size: 12.5px; color: var(--pp-sub); width: 64px; text-align: right; flex-shrink: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 500; color: var(--pp-ok-fg); background: var(--pp-ok-bg); vertical-align: 2px; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #52c41a; animation: blink 1.6s ease-in-out infinite; }
.live-badge.stale { color: var(--pp-idle-fg); background: var(--pp-idle-bg); }
.live-badge.stale i { background: #c0c4cc; animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.rt-net { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.rt-stat { background: var(--pp-soft); border-radius: 8px; padding: 8px 10px; }
.rt-stat span { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--pp-sub); }
.rt-stat b { display: block; margin-top: 2px; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-stat b small { font-size: 12px; font-weight: 400; color: var(--pp-sub); }
.chart.spark { height: 64px; margin-bottom: 4px; }
.svc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.svc { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 10px; font-size: 13px; }
.svc i { width: 7px; height: 7px; border-radius: 50%; }
.svc.on { color: var(--pp-ok-fg); background: var(--pp-ok-bg); } .svc.on i { background: #52c41a; }
.svc.off { color: var(--pp-bad-fg); background: var(--pp-bad-bg); } .svc.off i { background: #f5222d; }
.sys-card .el-descriptions { margin-top: 16px; }
.sys-card .el-descriptions__cell { padding: 9px 12px !important; }
.sys-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 14px; }
.sys-row span:first-child { width: 44px; color: var(--pp-text2); }
.sys-row .el-progress__text { font-size: 14px !important; min-width: 52px; }
.sys-row .el-progress { flex: 1; }

/* ---------- tables & misc ---------- */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.link-cell { display: flex; align-items: center; gap: 6px; }
.link-cell .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; color: var(--pp-text2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.ok { background: #52c41a; } .dot.bad { background: #f5222d; } .dot.none { background: #c0c4cc; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-box svg { width: 240px; height: 240px; background: #fff; border-radius: 8px; }
.json-view { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 14px; max-height: 60vh; overflow: auto; font-size: 12px; line-height: 1.5; margin: 0; }
html.dark .json-view { background: #0b0f15; border: 1px solid var(--pp-border); }
.el-table .cell { word-break: break-all; }
.row-actions { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.row-actions .el-button + .el-button { margin-left: 0; }
.row-actions .el-button { height: auto; padding: 2px 0; }
.row-actions .el-dropdown { line-height: inherit; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; cursor: default; }
.el-table th.el-table__cell { background: var(--pp-th) !important; color: var(--pp-text2); font-weight: 600; }
.el-table .el-table__row:hover > td.el-table__cell { background: var(--pp-row-hover) !important; }
html.dark .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: #1a1f27; }
.tag-gap .el-tag { margin: 2px 4px 2px 0; }
.hint { font-size: 13px; color: var(--pp-sub); line-height: 1.6; }
html.dark .el-progress-bar__outer { background-color: #262c36; }

/* ---------- header actions ---------- */
.hdr-icons { display: flex; gap: 4px; }
.hdr-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--pp-text2); font-size: 19px; cursor: pointer; transition: background .15s, color .15s; }
.hdr-icon:hover { background: var(--pp-hover); color: #1677ff; }
.hdr-icon.theme { font-size: 20px; }
.hdr-divider { width: 1px; height: 26px; background: var(--pp-divider); }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 18px;
  font-size: 14px; font-weight: 500; white-space: nowrap; user-select: none; }
.sync-pill .el-icon { font-size: 15px; }
.sync-pill.ok { color: var(--pp-ok-fg); background: var(--pp-ok-bg); border: 1px solid var(--pp-ok-bd); }
.sync-pill.bad { color: var(--pp-bad-fg); background: var(--pp-bad-bg); border: 1px solid var(--pp-bad-bd); }
.publish-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 0; border-radius: 19px;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: linear-gradient(90deg, #fa8c16, #fa541c); box-shadow: 0 4px 12px rgba(250, 84, 28, .3); transition: filter .15s, transform .15s; }
.publish-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.publish-btn:disabled { opacity: .8; cursor: wait; transform: none; }
.publish-btn .pulse { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #f5222d; border: 2px solid var(--pp-ring); }
.publish-btn .pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #f5222d; animation: ping 1.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 22px; cursor: pointer; transition: background .15s; outline: none; }
.user-chip:hover { background: var(--pp-hover); }
.u-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(135deg, #4096ff, #13c2c2); box-shadow: 0 2px 6px rgba(22, 119, 255, .35); }
.u-avatar.lg { width: 42px; height: 42px; font-size: 18px; }
.u-online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #52c41a; border: 2px solid var(--pp-ring); }
.u-meta { line-height: 1.25; }
.u-name { font-size: 15px; font-weight: 600; color: var(--pp-text); }
.u-role { font-size: 12.5px; color: var(--pp-sub); }
.collapse-btn { font-size: 20px; }
.header .el-breadcrumb { font-size: 15px; }
.u-arrow { color: var(--pp-sub); font-size: 12px; }
.user-menu { min-width: 200px; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px; border-bottom: 1px solid var(--pp-border); margin-bottom: 4px; }
.mobile-title { font-weight: 600; font-size: 16px; }
.mobile-nav .el-drawer__body { padding: 0; background: var(--pp-sider); }
.el-dialog { max-width: 94vw; }
.el-drawer { max-width: 100vw; }

/* ---------- mobile card lists (tables are replaced by these on phones) ---------- */
.m-list { display: flex; flex-direction: column; gap: 12px; min-height: 60px; }
.m-empty { text-align: center; color: var(--pp-sub); padding: 28px 0; font-size: 14px; }
.m-card { border: 1px solid var(--pp-border); border-radius: 12px; padding: 14px; background: var(--pp-card); }
.m-card.off { opacity: .62; }
.m-card.compact { padding: 12px 14px; }
.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-title { min-width: 0; flex: 1; }
.m-title b { font-size: 16px; display: block; word-break: break-all; }
.m-title .hint { margin-top: 2px; }
.m-rate { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; white-space: nowrap; }
.m-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.m-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; white-space: nowrap;
  color: var(--pp-text2); background: var(--pp-soft); }
.m-badge.ok { color: var(--pp-ok-fg); background: var(--pp-ok-bg); }
.m-badge.bad { color: var(--pp-bad-fg); background: var(--pp-bad-bg); }
.m-badge.idle { color: var(--pp-idle-fg); background: var(--pp-idle-bg); }
.m-badge.info { color: #1677ff; background: color-mix(in srgb, #1677ff 12%, transparent); }
.m-badge.warn { color: #d46b08; background: color-mix(in srgb, #fa8c16 14%, transparent); }
.m-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.m-rows > div { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.m-rows > div > span { flex-shrink: 0; width: 72px; color: var(--pp-sub); font-size: 13px; }
.m-rows > div > b { flex: 1; min-width: 0; font-weight: 500; word-break: break-all; }
.m-rows > div > b i { font-style: normal; }
.m-rows .m-link { cursor: pointer; }
.m-rows .m-link b { color: #1677ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--pp-border); }
.m-actions > .el-button, .m-actions > .el-dropdown > .el-button { width: 100%; height: 38px; margin: 0 !important; }
.m-actions > .el-dropdown { width: 100%; }
.m-rank { display: flex; flex-direction: column; gap: 14px; }
.m-rank-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.m-rank-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rank-no { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; background: #1677ff; }
.m-rank-total { margin-left: auto; flex-shrink: 0; }
.pp-pager { margin-top: 14px; justify-content: flex-end; }

@media (max-width: 900px) {
  .grid-2, .grid-2e { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main { padding: 12px 12px 24px; }
  .header { padding: 0 12px; height: 60px; min-height: 60px; }
  .hdr-icon { width: 34px; height: 34px; font-size: 18px; }
  .sync-pill { height: 32px; padding: 0 12px; }
  .publish-btn { height: 34px; padding: 0 14px; }
  .u-avatar { width: 34px; height: 34px; font-size: 15px; }
  .header .right { gap: 8px; }
  .header .hide-sm { display: none; }
  .page-title { font-size: 16px; margin-bottom: 10px; }
  .page-title small { display: block; margin: 4px 0 0; }
  .card { padding: 12px; border-radius: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 22px; }
  .stat .label { font-size: 13.5px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat .icon { width: 32px; height: 32px; font-size: 16px; right: 10px; top: 10px; }
  .chart { height: 240px; }
  /* toolbar: search on its own row, filters and buttons two per row, comfortable tap size */
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar > .el-input { grid-column: 1 / -1; width: 100% !important; }
  .toolbar > .el-select { width: 100% !important; }
  .toolbar > .el-radio-group { grid-column: 1 / -1; display: flex; }
  .toolbar > .el-radio-group .el-radio-button { flex: 1; }
  .toolbar > .el-radio-group .el-radio-button__inner { width: 100%; padding-left: 4px; padding-right: 4px; }
  .toolbar > .el-button { margin: 0 !important; height: 38px; }
  .toolbar > .muted { grid-column: 1 / -1; font-size: 13px; }
  .toolbar .spacer { display: none; }
  /* the header already shows the page name */
  .page-title > span:first-child { display: none; }
  .page-title { min-height: 0; margin-bottom: 10px; justify-content: flex-end; }
  .page-title:not(:has(> :nth-child(2))) { display: none; }
  /* iOS zooms the page when a focused input is smaller than 16px */
  .el-input__inner, .el-textarea__inner, .el-select__selected-item, .el-input-number .el-input__inner { font-size: 16px !important; }
  .el-dropdown-menu__item { padding: 11px 20px; font-size: 15px; }
  .el-message-box { max-width: 92vw; }
  .el-drawer.rtl, .el-drawer.ltr:not(.mobile-nav) { width: 100% !important; }
  .el-tabs__item { font-size: 15px; padding: 0 14px; }
  .pp-pager { justify-content: center; }
  .card-title { font-size: 15px; }
  .chart.sm { height: 200px; }
  .main { padding: 12px max(12px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .header { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); min-height: calc(60px + env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .mobile-nav .sider .brand { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
  .link-cell .mono { max-width: 160px; }
  /* dialogs: full width, labels on top, stacked columns */
  .el-dialog { width: 94vw !important; margin-top: 4vh !important; }
  .el-dialog .el-form-item { flex-direction: column; align-items: stretch; margin-bottom: 14px; }
  .el-dialog .el-form-item__label { width: auto !important; justify-content: flex-start; line-height: 22px; margin-bottom: 4px; }
  .el-dialog .el-form-item__content { margin-left: 0 !important; }
  .el-dialog .el-row { display: block; margin: 0 !important; }
  .el-dialog .el-col { max-width: 100%; width: 100%; padding: 0 !important; }
  .card .el-form-item { flex-direction: column; align-items: stretch; }
  .card .el-form-item__label { width: auto !important; justify-content: flex-start; }
  /* label-less rows (the action buttons) get an inline margin-left = label-width from Element Plus; drop it so the buttons start at the left edge like the stacked inputs */
  .card .el-form-item__content { margin-left: 0 !important; justify-content: flex-start; }
  .el-descriptions__label { white-space: nowrap; }
  .el-pagination { flex-wrap: wrap; }
}

/* =====================================================================
   Dark mode = zzhyht.top portal "neon" theme
   palette: bg #030409/#070a18/#0b1025, cyan #00e5ff, purple #7c5cff,
            pink #ff4ecd, green #00ffa3, text #eaf6ff, muted #8ba3c7
   ===================================================================== */
@font-face { font-family: "PortalCute"; src: url("/assets/fonts/portal-cute-full-v2.woff2") format("woff2"); font-weight: 400; font-display: swap; }
html.dark {
  --nx-cyan: #00e5ff; --nx-cyan2: #38e8ff; --nx-purple: #7c5cff; --nx-pink: #ff4ecd; --nx-green: #00ffa3;
  --nx-amber: #ffc24d; --nx-red: #ff4d6d; --nx-stroke: rgba(120,200,255,.14); --nx-stroke2: rgba(0,229,255,.32);
  --nx-card: linear-gradient(160deg, rgba(12,18,40,.72), rgba(8,12,26,.72));
  --pp-sider: rgba(7,10,24,.92);
  --pp-sider-active: #00e5ff;
  --pp-bg: #030409;
  --pp-card: rgba(10,15,34,.72);
  --pp-header: rgba(7,10,24,.78);
  --pp-text: #eaf6ff;
  --pp-text2: #b9cbe6;
  --pp-sub: #8ba3c7;
  --pp-border: rgba(120,200,255,.14);
  --pp-divider: rgba(120,200,255,.16);
  --pp-hover: rgba(0,229,255,.08);
  --pp-soft: rgba(255,255,255,.035);
  --pp-th: rgba(0,229,255,.05);
  --pp-row-hover: rgba(0,229,255,.06);
  --pp-ring: #070a18;
  --pp-shadow: 0 0 0 1px rgba(120,200,255,.06), 0 10px 30px rgba(0,0,0,.35);
  --pp-shadow-hover: 0 0 0 1px rgba(0,229,255,.22), 0 14px 40px rgba(0,0,0,.45), 0 0 26px rgba(0,229,255,.10);
  --pp-ok-fg: #00ffa3; --pp-ok-bg: rgba(0,255,163,.10); --pp-ok-bd: rgba(0,255,163,.32);
  --pp-bad-fg: #ff4d6d; --pp-bad-bg: rgba(255,77,109,.12); --pp-bad-bd: rgba(255,77,109,.36);
  --pp-idle-fg: #8ba3c7; --pp-idle-bg: rgba(139,163,199,.10);
  --pp-up: #00e5ff;
  --pp-down: #ff4ecd;
  --pp-login-panel: #070a18;
  --pp-login-title: #eaf6ff;
  --el-color-primary: #00e5ff;
  --el-color-primary-light-3: #38e8ff;
  --el-color-primary-light-5: rgba(0,229,255,.55);
  --el-color-primary-light-7: rgba(0,229,255,.28);
  --el-color-primary-light-8: rgba(0,229,255,.18);
  --el-color-primary-light-9: rgba(0,229,255,.10);
  --el-color-primary-dark-2: #00b8d4;
  --el-color-success: #00ffa3;
  --el-color-warning: #ffc24d;
  --el-color-danger: #ff4d6d;
  --el-bg-color: #0b1025;
  --el-bg-color-overlay: #0b1025;
  --el-fill-color-blank: rgba(8,12,26,.85);
  --el-fill-color-light: rgba(255,255,255,.04);
  --el-border-color: rgba(120,200,255,.22);
  --el-border-color-light: rgba(120,200,255,.16);
  --el-border-color-lighter: rgba(120,200,255,.12);
  --el-border-color-extra-light: rgba(120,200,255,.08);
  --el-text-color-primary: #eaf6ff;
  --el-text-color-regular: #b9cbe6;
  --el-text-color-secondary: #8ba3c7;
  --el-text-color-placeholder: #5f7699;
  --el-mask-color: rgba(3,4,9,.72);
}

/* background: deep space + purple / cyan glow + faint grid (same as the portal) */
html.dark body {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(124,92,255,.22), transparent 62%),
    radial-gradient(800px 480px at 100% 4%, rgba(0,229,255,.12), transparent 60%),
    radial-gradient(700px 500px at 60% 110%, rgba(255,78,205,.08), transparent 60%),
    #030409;
  background-attachment: fixed;
}
html.dark .content-col { background-image: linear-gradient(rgba(120,200,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(120,200,255,.035) 1px, transparent 1px); background-size: 44px 44px; }

/* sidebar */
html.dark .sider { background: linear-gradient(180deg, rgba(7,10,24,.94), rgba(5,8,20,.94)); border-right: 1px solid var(--nx-stroke); backdrop-filter: blur(10px); }
html.dark .sider .brand { border-bottom-color: var(--nx-stroke); }
html.dark .sider .brand span:not(.logo-mark) { background: linear-gradient(90deg, #eaf6ff, var(--nx-cyan2) 55%, var(--nx-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.dark .sider .el-menu-item { color: #9fb4d6; }
html.dark .sider .el-menu-item:hover { color: #eaf6ff; background: rgba(0,229,255,.07); }
html.dark .sider .el-menu-item.is-active {
  color: #fff; background: linear-gradient(90deg, rgba(0,229,255,.22), rgba(124,92,255,.22));
  box-shadow: inset 3px 0 0 var(--nx-cyan), 0 0 18px rgba(0,229,255,.12);
}
html.dark .sider .el-menu-item.is-active .el-icon { color: var(--nx-cyan); filter: drop-shadow(0 0 6px rgba(0,229,255,.7)); }
html.dark .mobile-nav .el-drawer__body { background: #070a18; }

/* header */
html.dark .header { background: var(--pp-header); border-bottom: 1px solid var(--nx-stroke); backdrop-filter: blur(14px); }
html.dark .collapse-btn, html.dark .hdr-icon { color: #b9cbe6; }
html.dark .hdr-icon:hover { background: rgba(0,229,255,.08); color: var(--nx-cyan); }
html.dark .u-avatar { background: linear-gradient(135deg, var(--nx-cyan), var(--nx-purple)); box-shadow: 0 0 14px rgba(0,229,255,.45); }
html.dark .sync-pill.ok { box-shadow: 0 0 12px rgba(0,255,163,.12); }

/* page title: portal-style "// TAG" + bold name */
html.dark .page-title > span:first-child { font-family: "PortalCute", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .5px; }
html.dark .page-title > span:first-child::before { content: "// "; color: var(--nx-cyan); font-size: 13px; letter-spacing: 2px; vertical-align: 3px; }

/* cards */
html.dark .card, html.dark .stat, html.dark .m-card {
  background: var(--nx-card); border: 1px solid var(--nx-stroke); border-radius: 18px;
  box-shadow: var(--pp-shadow); backdrop-filter: blur(8px); position: relative;
}
html.dark .card::before, html.dark .stat::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.55), rgba(255,78,205,.45), transparent); pointer-events: none;
}
html.dark .stat:hover { box-shadow: var(--pp-shadow-hover); border-color: rgba(0,229,255,.24); }
html.dark .card-title { color: #eaf6ff; }
html.dark .card-title::before { content: "◆"; color: var(--nx-cyan); font-size: 12px; margin-right: 8px; text-shadow: 0 0 8px rgba(0,229,255,.8); }
html.dark .card-title { justify-content: flex-start; }
html.dark .card-title > :last-child:not(:first-child) { margin-left: auto; }
html.dark .stat .label { color: #9fb4d6; }
html.dark .stat .value { font-family: "PortalCute", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 400; color: #eaf6ff; text-shadow: 0 0 18px rgba(0,229,255,.25); }
html.dark .stat .icon { border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 25%, transparent); }
html.dark .up { color: var(--nx-cyan); } html.dark .down { color: var(--nx-pink); }
html.dark .ok { color: var(--nx-green); } html.dark .bad { color: var(--nx-red); } html.dark .warn { color: var(--nx-amber); }
html.dark .dot.ok { background: var(--nx-green); box-shadow: 0 0 8px var(--nx-green); }
html.dark .dot.bad { background: var(--nx-red); box-shadow: 0 0 8px var(--nx-red); }

/* neon progress bars (same flowing gradient as the portal) */
@keyframes nxFlow { from { background-position: 0 0; } to { background-position: 260% 0; } }
html.dark .el-progress-bar__outer { background: rgba(255,255,255,.06) !important; }
html.dark .el-progress-bar__inner {
  background: linear-gradient(90deg, #00e5ff 0%, #7ff3ff 18%, #7c5cff 42%, #ff4ecd 62%, #00ffa3 82%, #00e5ff 100%) !important;
  background-size: 260% 100% !important; animation: nxFlow 18s linear infinite; box-shadow: 0 0 10px rgba(0,229,255,.28);
}
html.dark .el-progress__text { color: #b9cbe6 !important; }

/* buttons */
html.dark .el-button { --el-button-bg-color: rgba(255,255,255,.03); --el-button-border-color: rgba(120,200,255,.22); --el-button-text-color: #d6e6ff;
  --el-button-hover-bg-color: rgba(0,229,255,.08); --el-button-hover-border-color: rgba(0,229,255,.45); --el-button-hover-text-color: #fff; }
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text) {
  --el-button-text-color: #031018; --el-button-hover-text-color: #031018; --el-button-active-text-color: #031018;
  background: linear-gradient(90deg, #00e5ff, #38e8ff 45%, #7c5cff) !important; border: 0 !important; font-weight: 600;
  box-shadow: 0 0 16px rgba(0,229,255,.38);
}
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text):hover { filter: brightness(1.08); box-shadow: 0 0 22px rgba(0,229,255,.55); }
html.dark .el-button--primary.is-plain { --el-button-bg-color: rgba(0,229,255,.08); --el-button-border-color: rgba(0,229,255,.45); --el-button-text-color: #38e8ff;
  --el-button-hover-bg-color: rgba(0,229,255,.16); --el-button-hover-text-color: #eaf6ff; }
html.dark .el-button.is-link { --el-button-text-color: var(--nx-cyan2); }
html.dark .el-button--danger.is-link { --el-button-text-color: var(--nx-red); }

/* inputs / selects */
html.dark .el-input__wrapper, html.dark .el-select__wrapper, html.dark .el-textarea__inner {
  background: rgba(8,12,26,.85) !important; box-shadow: 0 0 0 1px rgba(120,200,255,.2) inset !important; }
html.dark .el-input__wrapper.is-focus, html.dark .el-select__wrapper.is-focused, html.dark .el-textarea__inner:focus {
  box-shadow: 0 0 0 1px var(--nx-cyan) inset, 0 0 12px rgba(0,229,255,.25) !important; }
html.dark .el-switch.is-checked .el-switch__core { background: linear-gradient(90deg, #00e5ff, #7c5cff) !important; border-color: transparent !important; box-shadow: 0 0 10px rgba(0,229,255,.35); }

/* tables */
html.dark .el-table { --el-table-bg-color: transparent; --el-table-tr-bg-color: transparent; --el-table-header-bg-color: rgba(0,229,255,.05);
  --el-table-border-color: rgba(120,200,255,.10); --el-table-text-color: #d6e6ff; --el-table-header-text-color: #9fb4d6; background: transparent; }
html.dark .el-table th.el-table__cell { background: rgba(0,229,255,.05) !important; letter-spacing: .5px; }
html.dark .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: rgba(255,255,255,.018); }
html.dark .el-table .el-table__row:hover > td.el-table__cell { background: rgba(0,229,255,.06) !important; }
html.dark .el-table__inner-wrapper::before { background: rgba(120,200,255,.10); }

/* tags, tabs, radios, pager */
html.dark .el-tag { --el-tag-bg-color: rgba(0,229,255,.08); --el-tag-border-color: rgba(0,229,255,.25); --el-tag-text-color: #7ff3ff; }
html.dark .el-tag--success { --el-tag-bg-color: rgba(0,255,163,.08); --el-tag-border-color: rgba(0,255,163,.28); --el-tag-text-color: #00ffa3; }
html.dark .el-tag--warning { --el-tag-bg-color: rgba(255,194,77,.08); --el-tag-border-color: rgba(255,194,77,.3); --el-tag-text-color: #ffc24d; }
html.dark .el-tag--danger { --el-tag-bg-color: rgba(255,77,109,.10); --el-tag-border-color: rgba(255,77,109,.3); --el-tag-text-color: #ff7a90; }
html.dark .el-tag--info { --el-tag-bg-color: rgba(139,163,199,.08); --el-tag-border-color: rgba(139,163,199,.22); --el-tag-text-color: #9fb4d6; }
html.dark .el-tabs__item.is-active { color: var(--nx-cyan); text-shadow: 0 0 10px rgba(0,229,255,.45); }
html.dark .el-tabs__active-bar { background: linear-gradient(90deg, var(--nx-cyan), var(--nx-pink)); box-shadow: 0 0 8px rgba(0,229,255,.6); }
html.dark .el-tabs__nav-wrap::after { background: rgba(120,200,255,.12); }
html.dark .el-radio-button__inner { background: rgba(255,255,255,.03); border-color: rgba(120,200,255,.22) !important; color: #b9cbe6; }
html.dark .el-radio-button__original-radio:checked + .el-radio-button__inner { background: linear-gradient(90deg, rgba(0,229,255,.25), rgba(124,92,255,.25)); color: #fff; box-shadow: 0 0 12px rgba(0,229,255,.25) !important; }
html.dark .el-pagination.is-background .el-pager li.is-active { background: linear-gradient(90deg, #00e5ff, #7c5cff); color: #031018; }
html.dark .el-pagination.is-background .el-pager li, html.dark .el-pagination.is-background .btn-prev, html.dark .el-pagination.is-background .btn-next { background: rgba(255,255,255,.04); color: #b9cbe6; }

/* overlays */
html.dark .el-dialog, html.dark .el-drawer, html.dark .el-message-box {
  background: linear-gradient(160deg, #0d1330, #070a18) !important; border: 1px solid rgba(0,229,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(0,229,255,.08); }
html.dark .el-dialog__title, html.dark .el-drawer__title, html.dark .el-message-box__title { color: #eaf6ff; }
html.dark .el-popper.is-light, html.dark .el-dropdown__popper.el-popper, html.dark .el-select__popper.el-popper {
  background: #0b1025 !important; border: 1px solid rgba(0,229,255,.2) !important; box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 20px rgba(0,229,255,.08) !important; }
html.dark .el-dropdown-menu { background: transparent; }
html.dark .el-dropdown-menu__item:not(.is-disabled):hover, html.dark .el-select-dropdown__item.is-hovering { background: rgba(0,229,255,.08) !important; color: #fff !important; }
html.dark .el-descriptions__label.is-bordered-label { background: rgba(0,229,255,.05) !important; color: #9fb4d6; }
html.dark .el-descriptions__body { background: transparent !important; }
html.dark .el-descriptions__cell { border-color: rgba(120,200,255,.12) !important; }
html.dark .el-alert--warning { background: rgba(255,194,77,.08); color: #ffc24d; border-bottom: 1px solid rgba(255,194,77,.2); }

/* realtime / misc */
html.dark .rt-stat { background: rgba(255,255,255,.03); border: 1px solid rgba(120,200,255,.10); border-radius: 12px; }
html.dark .rt-stat b { font-family: "PortalCute", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 400; }
html.dark .live-badge { color: var(--nx-green); background: rgba(0,255,163,.08); }
html.dark .live-badge i { background: var(--nx-green); box-shadow: 0 0 8px var(--nx-green); }
html.dark .svc.on { color: var(--nx-green); background: rgba(0,255,163,.08); } html.dark .svc.on i { background: var(--nx-green); box-shadow: 0 0 6px var(--nx-green); }
html.dark .mono { color: #b9e9ff; }
html.dark .link-cell .mono { color: #7ff3ff; }
html.dark .hint { color: #8ba3c7; }

/* mobile cards */
html.dark .m-badge.info { color: #7ff3ff; background: rgba(0,229,255,.10); }
html.dark .m-badge.warn { color: #ffc24d; background: rgba(255,194,77,.10); }
html.dark .m-rows .m-link b { color: #38e8ff; }
html.dark .m-actions { border-top-color: rgba(120,200,255,.12); }
html.dark .m-rank-no { background: linear-gradient(135deg, #00e5ff, #7c5cff); color: #031018; }

/* login page in dark: neon button + panel */
html.dark .login-page { background: #030409; }
html.dark .login-panel { background: linear-gradient(160deg, #0b1025, #070a18); border-left: 1px solid rgba(0,229,255,.12); }
html.dark .login-btn { background: linear-gradient(90deg, #00e5ff, #38e8ff 45%, #7c5cff) !important; color: #031018 !important; font-weight: 700; box-shadow: 0 0 24px rgba(0,229,255,.45) !important; }
html.dark .login-panel h3 { font-family: "PortalCute", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 400; letter-spacing: 1px; }
/* refined primary hover: tight glow instead of a wide blurry halo */
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text) {
  box-shadow: 0 2px 10px -3px rgba(0,229,255,.45), inset 0 1px 0 rgba(255,255,255,.28);
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease; }
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text):hover {
  filter: brightness(1.1) saturate(1.05);
  box-shadow: 0 6px 16px -6px rgba(0,229,255,.75), 0 0 0 1px rgba(160,245,255,.55), inset 0 1px 0 rgba(255,255,255,.35); }
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text):active { filter: brightness(.96); transform: translateY(0); }

/* split "复制" button: one continuous gradient, hairline divider, single glow on the group */
html.dark .el-dropdown .el-button-group { display: inline-flex; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 10px -3px rgba(0,229,255,.45); transition: box-shadow .18s ease; }
html.dark .el-dropdown .el-button-group:hover { box-shadow: 0 6px 16px -6px rgba(0,229,255,.75), 0 0 0 1px rgba(160,245,255,.5); }
html.dark .el-dropdown .el-button-group > .el-button--primary { box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; }
html.dark .el-dropdown .el-button-group > .el-button--primary:first-child { background: linear-gradient(90deg, #00e5ff, #4fd8ff) !important; }
html.dark .el-dropdown .el-button-group > .el-button--primary:last-child { background: linear-gradient(90deg, #5fcaff, #7c5cff) !important;
  border-left: 1px solid rgba(3,16,24,.35) !important; padding: 0 7px; }
html.dark .el-dropdown .el-button-group > .el-button--primary:hover { box-shadow: none !important; filter: brightness(1.12); }
.el-dropdown:focus, .el-dropdown:focus-visible, .el-dropdown .el-button:focus-visible, .el-tooltip__trigger:focus-visible { outline: none; }
/* roomier table rows */
.el-table--default .el-table__cell { padding: 12px 0; }
.el-table--default th.el-table__cell { padding: 11px 0; }

/* node category tabs */
.cat-tabs .cat-n { display:inline-block; min-width:18px; margin-left:4px; padding:0 5px; border-radius:9px; font-size:12px; line-height:18px; background: rgba(127,140,160,.18); }
.cat-tabs .el-radio-button.is-active .cat-n { background: rgba(255,255,255,.28); }
html.dark .cat-tabs .el-radio-button__inner { background: rgba(255,255,255,.03); border-color: rgba(120,200,255,.22); color:#b9cbe6; }
html.dark .cat-tabs .el-radio-button.is-active .el-radio-button__inner { background: linear-gradient(90deg,#00e5ff,#7c5cff); border-color: transparent; color:#031018; font-weight:600; box-shadow:none; }

/* one control height everywhere: inputs, selects, buttons, radio tabs (34px desktop, 38px touch) */
:root { --pp-ctl-h: 34px; --el-component-size: var(--pp-ctl-h); }
.el-button:not(.el-button--small):not(.el-button--large):not(.is-link):not(.is-text):not(.is-circle) { height: var(--pp-ctl-h); }
.el-input:not(.el-input--small):not(.el-input--large) { --el-input-height: var(--pp-ctl-h); }
.el-select:not(.el-select--small):not(.el-select--large) .el-select__wrapper { min-height: var(--pp-ctl-h); }
.el-input-number:not(.el-input-number--small) { height: var(--pp-ctl-h); line-height: calc(var(--pp-ctl-h) - 2px); }
.el-radio-button:not(.el-radio-button--small) .el-radio-button__inner { height: var(--pp-ctl-h); display: inline-flex; align-items: center; justify-content: center;
  padding-top: 0; padding-bottom: 0; line-height: 1; }
.cat-tabs .cat-n { line-height: 16px; }
@media (max-width: 768px) {
  :root { --pp-ctl-h: 38px; }
}
/* glow restored: visible at rest, a bit stronger on hover, kept tight so it never smears neighbouring text */
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text) {
  box-shadow: 0 0 14px rgba(0,229,255,.38), inset 0 1px 0 rgba(255,255,255,.28); }
html.dark .el-button--primary:not(.is-link):not(.is-plain):not(.is-text):hover {
  box-shadow: 0 0 18px rgba(0,229,255,.55), 0 0 0 1px rgba(160,245,255,.55), inset 0 1px 0 rgba(255,255,255,.35); }
html.dark .el-dropdown .el-button-group { box-shadow: 0 0 14px rgba(0,229,255,.38); }
html.dark .el-dropdown .el-button-group:hover { box-shadow: 0 0 18px rgba(0,229,255,.55), 0 0 0 1px rgba(160,245,255,.5); }
html.dark .el-button--primary.is-plain { box-shadow: 0 0 10px rgba(0,229,255,.16); }
html.dark .el-button--primary.is-plain:hover { box-shadow: 0 0 14px rgba(0,229,255,.35); }
html.dark .el-button:not(.el-button--primary):not(.is-link):not(.is-text) { transition: box-shadow .18s ease, border-color .18s ease; }
html.dark .el-button:not(.el-button--primary):not(.is-link):not(.is-text):hover { box-shadow: 0 0 12px rgba(0,229,255,.28); }
html.dark .el-radio-button.is-active .el-radio-button__inner { box-shadow: 0 0 14px rgba(0,229,255,.35) !important; }
/* ===== neon glow for progress bars and text ===== */
@keyframes nxSheen { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(320%); } }
@keyframes nxBreath { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
html.dark .el-progress-bar__outer { overflow: visible !important; box-shadow: inset 0 0 0 1px rgba(120,200,255,.08); }
html.dark .el-progress-bar__inner { position: relative; overflow: hidden;
  box-shadow: 0 0 8px rgba(0,229,255,.55), 0 0 18px rgba(124,92,255,.35) !important; }
/* travelling light sweep */
html.dark .el-progress-bar__inner::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: nxSheen 3.2s ease-in-out infinite; }
/* glowing head at the end of the bar */
html.dark .el-progress-bar__inner::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: #eaffff; box-shadow: 0 0 6px #fff, 0 0 12px #00e5ff, 0 0 20px #00e5ff; animation: nxBreath 1.8s ease-in-out infinite; }
html.dark .el-progress__text { color: #eaf6ff !important; text-shadow: 0 0 8px rgba(0,229,255,.55); font-variant-numeric: tabular-nums; }

/* headline numbers */
html.dark .stat .value { color: #f2fbff; text-shadow: 0 0 6px rgba(0,229,255,.55), 0 0 18px rgba(0,229,255,.35), 0 0 32px rgba(124,92,255,.25); }
html.dark .stat .value .muted { text-shadow: none; }
html.dark .stat .label { text-shadow: 0 0 10px rgba(0,229,255,.18); }
html.dark .rt-stat b { text-shadow: 0 0 8px currentColor; }
html.dark .rt-stat b small { text-shadow: none; }
html.dark .stat .foot .up, html.dark .stat .foot .down { text-shadow: 0 0 8px currentColor; }

/* titles */
html.dark .page-title > span:first-child { text-shadow: 0 0 12px rgba(0,229,255,.45), 0 0 26px rgba(124,92,255,.3); }
html.dark .page-title > span:first-child small { text-shadow: none; }
html.dark .card-title { text-shadow: 0 0 10px rgba(0,229,255,.3); }
html.dark .sider .brand span:not(.logo-mark) { filter: drop-shadow(0 0 8px rgba(0,229,255,.45)); }
html.dark .sider .el-menu-item.is-active { text-shadow: 0 0 10px rgba(0,229,255,.6); }

/* status words, links, ip addresses */
html.dark .ok { text-shadow: 0 0 8px rgba(0,255,163,.55); }
html.dark .bad { text-shadow: 0 0 8px rgba(255,77,109,.55); }
html.dark .warn { text-shadow: 0 0 8px rgba(255,194,77,.5); }
html.dark .link-cell .mono { text-shadow: 0 0 8px rgba(0,229,255,.45); }
html.dark .el-table th.el-table__cell .cell { text-shadow: 0 0 8px rgba(0,229,255,.22); }
html.dark .el-tag { box-shadow: 0 0 8px color-mix(in srgb, var(--el-tag-text-color, #00e5ff) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
  html.dark .el-progress-bar__inner, html.dark .el-progress-bar__inner::before, html.dark .el-progress-bar__inner::after { animation: none !important; }
}
/* tabs inside cards: line the first tab up with the table's cell text, centre label + count badge */
.card .el-tabs.tabs-inset > .el-tabs__header .el-tabs__item.is-top:nth-child(2) { padding-left: 12px; }
.card .el-tabs__item { display: inline-flex; align-items: center; height: 44px; font-size: 15px; }
.card .el-tabs__item > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.card .el-tabs__item .el-tag { margin: 0; height: 20px; min-width: 20px; padding: 0 6px; justify-content: center; }
.card .el-tabs__header { margin-bottom: 14px; }
/* count badge in tab labels: a true circle with the digit dead centre (grows into a pill for 2+ digits) */
.card .el-tabs__item .el-tag { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 20px; min-width: 20px; padding: 0 5px; border-radius: 10px; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.card .el-tabs__item .el-tag .el-tag__content { display: block; line-height: 1; }
/* format list in the copy menu */
.el-dropdown-menu__item.fmt-head { font-size: 12px; color: var(--pp-sub) !important; cursor: default; line-height: 28px; }
.fmt-item { display: flex; flex-direction: column; line-height: 1.35; padding: 3px 0; }
.fmt-item b { font-weight: 600; }
.fmt-item span { font-size: 12px; color: var(--pp-sub); }
/* ===== optical centring (measured with canvas glyph metrics) ===== */
/* status dot + label: centre the dot on the text line instead of the latin x-height */
span:has(> .dot), b:has(> .dot), em:has(> .dot) { display: inline-flex; align-items: center; }
div:has(> .dot) { display: flex; align-items: center; flex-wrap: wrap; }
.dot { flex-shrink: 0; vertical-align: 0; }
/* tag text: digits and latin carry no descender, so lift the text a hair to centre the ink */
.el-tag { padding-top: 0; padding-bottom: 1px; }
.el-tag .el-tag__content { line-height: 1; }
/* table action links */
.row-actions .el-button { display: inline-flex; align-items: center; line-height: 1; }
.row-actions .el-button > span { display: inline-flex; align-items: center; line-height: 1; }
/* action links sat 1px above the row's text line */
.row-actions .el-button > span { position: relative; top: 1px; }

/* ===================== login page effects ===================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lgSpin { to { --ang: 360deg; } }
@keyframes lgIn { from { opacity: 0; transform: perspective(1400px) translateY(26px) scale(.98); } }
@keyframes lgUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lgShine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes lgRing { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes lgSweep { 0% { left: -45%; } 55%, 100% { left: 135%; } }
@keyframes lgBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes lgHue { 0%, 100% { filter: blur(70px) hue-rotate(0deg); } 50% { filter: blur(70px) hue-rotate(40deg); } }

.login-page { perspective: 1400px; }
.login-fx { position: absolute; inset: 0; display: block; }
.login-frame { position: relative; z-index: 1; width: 1000px; max-width: 100%; border-radius: 20px;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out;
  animation: lgIn .9s cubic-bezier(.2,.8,.2,1) backwards; will-change: transform; }
/* flowing neon border */
.login-frame::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1.5px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 8%, #00e5ff 16%, #7c5cff 28%, transparent 40% 58%, #ff4ecd 68%, #00e5ff 78%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lgSpin 6s linear infinite; }
/* soft halo behind the card */
.login-frame::after { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 60px; pointer-events: none;
  background: radial-gradient(55% 55% at 30% 40%, rgba(0,229,255,.22), transparent 70%), radial-gradient(50% 50% at 75% 65%, rgba(124,92,255,.22), transparent 70%);
  filter: blur(30px); animation: lgBreath 5s ease-in-out infinite; }
.login-frame .login-shell { width: 100%; }
/* spotlight that follows the cursor */
.login-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,.10), transparent 60%); }
.login-frame:hover .login-shell::after { opacity: 1; }

/* brand side */
.login-brand h2.shine { background: linear-gradient(100deg, #fff 0%, #fff 34%, #7ff3ff 44%, #c9b8ff 52%, #fff 62%, #fff 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lgShine 5.5s ease-in-out infinite; }
.brand-logo { position: relative; }
.brand-logo svg { filter: drop-shadow(0 0 10px rgba(0,229,255,.55)); }
.brand-logo::after { content: ""; position: absolute; inset: -3px; border-radius: 14px; border: 1.5px solid rgba(0,229,255,.75); animation: lgRing 2.6s ease-out infinite; pointer-events: none; }
.login-brand .brand-head, .login-brand h2, .login-brand .brand-desc { animation: lgUp .7s ease both; }
.login-brand h2 { animation-delay: .12s; }
.login-brand .brand-desc { animation-delay: .22s; }
.feature { animation: lgUp .6s ease both; transition: transform .2s ease; }
.feature:nth-child(1) { animation-delay: .35s; } .feature:nth-child(2) { animation-delay: .45s; }
.feature:nth-child(3) { animation-delay: .55s; } .feature:nth-child(4) { animation-delay: .65s; }
.feature:hover { transform: translateX(5px); }
.f-icon { transition: box-shadow .2s, transform .2s; }
.feature:hover .f-icon { transform: scale(1.06); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 65%, transparent); }

/* form side */
.login-panel > * { animation: lgUp .6s ease both; }
.login-panel > :nth-child(2) { animation-delay: .2s; } .login-panel > :nth-child(3) { animation-delay: .28s; }
.login-panel > :nth-child(4) { animation-delay: .36s; } .login-panel > :nth-child(5) { animation-delay: .46s; }
.login-panel > :nth-child(6) { animation-delay: .56s; }
.login-form .el-input__wrapper { transition: box-shadow .2s, background .2s; }
.login-btn { position: relative; overflow: hidden; transition: box-shadow .2s, transform .12s, filter .2s !important; }
.login-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 32%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-20deg); animation: lgSweep 3.2s ease-in-out infinite; }
.login-btn:active { transform: scale(.985); }

/* dark (neon) palette for the login page */
html.dark .login-bg .o1 { background: #7c5cff; opacity: .38; animation: float 14s ease-in-out infinite, lgHue 12s ease-in-out infinite; }
html.dark .login-bg .o2 { background: #00e5ff; opacity: .26; }
html.dark .login-bg .o3 { background: #ff4ecd; opacity: .2; }
html.dark .login-brand { background: linear-gradient(160deg, rgba(0,229,255,.12), rgba(124,92,255,.12) 60%, rgba(255,78,205,.06)), rgba(7,10,24,.62); }
html.dark .login-panel { background: linear-gradient(160deg, rgba(11,16,37,.86), rgba(7,10,24,.9)); backdrop-filter: blur(14px); }
html.dark .login-shell { border-color: transparent; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
html.dark .login-form .el-input__wrapper { background: rgba(5,8,20,.7) !important; }
html.dark .login-form .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--nx-cyan) inset, 0 0 20px rgba(0,229,255,.35) !important; }
html.dark .login-btn:hover { box-shadow: 0 0 34px rgba(0,229,255,.7), 0 0 0 1px rgba(160,245,255,.6) !important; filter: brightness(1.08); }
html.dark .login-theme:hover { box-shadow: 0 0 16px rgba(0,229,255,.45); border-color: rgba(0,229,255,.5); }
html.dark .login-safe { color: var(--nx-green); text-shadow: 0 0 8px rgba(0,255,163,.45); }

@media (max-width: 860px) {
  .login-frame { width: 440px; }
  .login-frame::after { inset: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-frame, .login-frame::before, .login-frame::after, .login-brand h2.shine, .brand-logo::after, .feature,
  .login-panel > *, .login-btn::after, .login-brand .brand-head, .login-brand .brand-desc, html.dark .login-bg .o1 { animation: none !important; }
}
/* latency tiers */
.lat { font-weight: 600; font-variant-numeric: tabular-nums; }
.lat-good { color: #16a34a; } .lat-mid { color: #d97706; } .lat-bad { color: #dc2626; }
html.dark .lat-good { color: var(--nx-green); text-shadow: 0 0 8px rgba(0,255,163,.45); }
html.dark .lat-mid { color: var(--nx-amber); text-shadow: 0 0 8px rgba(255,194,77,.45); }
html.dark .lat-bad { color: var(--nx-red); text-shadow: 0 0 8px rgba(255,77,109,.5); }
html.dark .m-badge.bad { color: var(--nx-red); background: rgba(255,77,109,.12); }

/* header sync status: neon glass pill instead of the flat green one */
.sync-pill .live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; position: relative; }
.sync-pill .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: lgRing 2.2s ease-out infinite; }
.sync-pill.ok { color: #0e7490; background: linear-gradient(90deg, rgba(14,165,233,.08), rgba(124,92,255,.08)); border: 1px solid rgba(14,165,233,.35); font-weight: 600; }
html.dark .sync-pill.ok { color: #bff6ff; background: linear-gradient(90deg, rgba(0,229,255,.10), rgba(124,92,255,.12)); border: 1px solid rgba(0,229,255,.32);
  box-shadow: 0 0 14px rgba(0,229,255,.16), inset 0 0 14px rgba(0,229,255,.06); letter-spacing: .5px; }
html.dark .sync-pill.ok .live-dot { background: #00e5ff; color: #00e5ff; box-shadow: 0 0 8px #00e5ff; }
html.dark .sync-pill.bad { color: #ffd0d8; background: linear-gradient(90deg, rgba(255,77,109,.14), rgba(255,78,205,.10)); border: 1px solid rgba(255,77,109,.45); box-shadow: 0 0 14px rgba(255,77,109,.2); }
/* settings: system & ops card */
.sys-card .svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.svc-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pp-border, rgba(120,140,170,.2)); background: var(--pp-soft); min-width: 0; }
.svc-item > .dot { position: absolute; }
.svc-item { position: relative; }
.svc-item .svc-name { font-size: 13.5px; font-weight: 600; padding-left: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-item > .dot { left: 12px; top: 17px; margin: 0; }
.svc-item em { font-style: normal; font-size: 12px; color: var(--pp-sub); padding-left: 14px; }
.svc-item.off em { color: var(--pp-bad-fg); }
.sys-kv { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--pp-border, rgba(120,140,170,.2)); border-radius: 10px; overflow: hidden; }
.sys-kv > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-bottom: 1px solid var(--pp-border, rgba(120,140,170,.16)); min-width: 0; }
.sys-kv > div:nth-child(odd):not(.wide) { border-right: 1px solid var(--pp-border, rgba(120,140,170,.16)); }
.sys-kv > div.wide { grid-column: 1 / -1; border-bottom: 0; }
.sys-kv span { font-size: 12.5px; color: var(--pp-sub); }
.sys-kv b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sys-kv b.wd { font-size: 12.5px; font-weight: 400; white-space: normal; word-break: break-all; }
html.dark .svc-item { background: rgba(255,255,255,.03); border-color: rgba(120,200,255,.12); }
html.dark .svc-item.on { box-shadow: inset 0 0 0 1px rgba(0,255,163,.06); }
html.dark .svc-item.off { border-color: rgba(255,77,109,.4); box-shadow: 0 0 12px rgba(255,77,109,.18); }
html.dark .sys-kv, html.dark .sys-kv > div { border-color: rgba(120,200,255,.12) !important; }
@media (max-width: 1280px) { .sys-card .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .sys-kv { grid-template-columns: 1fr; } .sys-kv > div:nth-child(odd):not(.wide) { border-right: 0; } }
.sys-card .card-title .el-button { margin-left: auto; }
.svc-item { align-items: flex-start; text-align: left; }

.sys-card .svc-grid .svc-item { align-items: flex-start; flex-wrap: nowrap; }

/* avatar picture + profile dialog */
.u-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.u-avatar.has-img { background: transparent !important; padding: 0; }
.u-avatar.xl { width: 88px; height: 88px; font-size: 36px; }
html.dark .u-avatar.has-img { box-shadow: 0 0 0 2px rgba(0,229,255,.55), 0 0 16px rgba(0,229,255,.4); }
.pf-head { display: flex; gap: 20px; align-items: center; padding: 4px 0 18px; border-bottom: 1px solid var(--pp-divider, rgba(120,140,170,.18)); margin-bottom: 18px; }
.pf-avatar { position: relative; cursor: pointer; flex-shrink: 0; border-radius: 50%; }
.pf-cam { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
  background: rgba(3,6,18,.55); opacity: 0; transition: opacity .18s; }
.pf-avatar:hover .pf-cam { opacity: 1; }
.pf-id { min-width: 0; }
.pf-name { font-size: 20px; font-weight: 700; color: var(--pp-text); word-break: break-all; }
.pf-sub { font-size: 13px; color: var(--pp-sub); margin: 2px 0 10px; }
.pf-btns { display: flex; gap: 8px; margin-bottom: 6px; }
.pf-btns .el-button + .el-button { margin-left: 0; }
.pf-line { font-size: 13.5px; color: var(--pp-text2, var(--pp-sub)); margin-right: 10px; }
.pf-sec { font-size: 14px; font-weight: 600; margin: 4px 0 10px; color: var(--pp-text); }
.pf-logins { display: flex; flex-direction: column; border: 1px solid var(--pp-divider, rgba(120,140,170,.18)); border-radius: 10px; overflow: hidden; max-height: 260px; overflow-y: auto; }
.pf-login { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--pp-divider, rgba(120,140,170,.12)); }
.pf-login:last-child { border-bottom: 0; }
.pf-login .dot { margin-right: 0; }
.pf-login .pf-act { margin-left: auto; font-weight: 600; }
.pf-login .pf-time { color: var(--pp-sub); font-variant-numeric: tabular-nums; min-width: 132px; text-align: right; }
html.dark .profile-dialog .pf-head, html.dark .pf-logins, html.dark .pf-login { border-color: rgba(120,200,255,.12); }
html.dark .pf-name { font-family: "PortalCute", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 400; letter-spacing: .5px; }
@media (max-width: 768px) {
  .pf-head { flex-direction: column; text-align: center; }
  .pf-btns { justify-content: center; }
  .pf-login .pf-time { min-width: 0; }
}
/* more air between the live dot (and its ring) and the label */
.sync-pill { gap: 10px; padding: 0 18px 0 16px; }
.sync-pill .live-dot { margin-left: 2px; }
@media (max-width: 768px) { .sync-pill { gap: 8px; padding: 0 12px; } }

/* dialogs: vertically centred; tall content scrolls inside the body so header and footer stay on screen */
.el-overlay-dialog { display: flex; align-items: center; justify-content: center; padding: 3vh 0; box-sizing: border-box; }
.el-overlay-dialog > .el-dialog { margin: auto !important; max-height: 94vh; display: flex; flex-direction: column; }
.el-overlay-dialog > .el-dialog > .el-dialog__body { overflow-y: auto; min-height: 0; }
.pf-logins { max-height: 228px; }
/* profile: only the last 3 logins, no inner scrollbar */
.pf-logins { max-height: none; overflow: visible; }

/* dashboard ranking lists (replaces the sparse bar charts) */
.rank-total { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--pp-sub); }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; transition: background .2s, transform .2s; }
.rank-row:hover { background: var(--pp-soft); transform: translateX(3px); }
.rank-no { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--pp-sub); background: var(--pp-soft); font-variant-numeric: tabular-nums; }
.rank-main { flex: 1; min-width: 0; }
.rank-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.rank-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-tag { font-size: 11.5px; line-height: 18px; padding: 0 7px; border-radius: 9px; flex-shrink: 0; }
.rank-tag.info { color: #1677ff; background: rgba(22,119,255,.1); } .rank-tag.ok { color: #16a34a; background: rgba(22,163,74,.1); }
.rank-tag.idle { color: #7c3aed; background: rgba(124,58,237,.1); }
.rank-val { margin-left: auto; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-val em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--pp-sub); margin-left: 8px; }
.rank-bar { height: 8px; border-radius: 4px; background: var(--pp-soft); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1677ff, #13c2c2); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.rank-sub { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; color: var(--pp-sub); font-size: 13px; }
.rank-empty .el-icon { font-size: 28px; opacity: .5; }

html.dark .rank-row:hover { background: rgba(0,229,255,.05); }
html.dark .rank-no { background: rgba(255,255,255,.05); border: 1px solid rgba(120,200,255,.14); color: #9fb4d6; }
html.dark .rank-row.r1 .rank-no { color: #031018; border: 0; background: linear-gradient(135deg, #00e5ff, #7ff3ff); box-shadow: 0 0 14px rgba(0,229,255,.55); }
html.dark .rank-row.r2 .rank-no { color: #fff; border: 0; background: linear-gradient(135deg, #7c5cff, #a68bff); box-shadow: 0 0 12px rgba(124,92,255,.5); }
html.dark .rank-row.r3 .rank-no { color: #fff; border: 0; background: linear-gradient(135deg, #ff4ecd, #ff8fe0); box-shadow: 0 0 12px rgba(255,78,205,.45); }
html.dark .rank-name { color: #eaf6ff; }
html.dark .rank-val { color: #f2fbff; text-shadow: 0 0 10px rgba(0,229,255,.35); }
html.dark .rank-tag.info { color: #7ff3ff; background: rgba(0,229,255,.1); }
html.dark .rank-tag.ok { color: var(--nx-green); background: rgba(0,255,163,.1); }
html.dark .rank-tag.idle { color: #c9b8ff; background: rgba(124,92,255,.14); }
html.dark .rank-bar { background: rgba(255,255,255,.06); overflow: visible; }
html.dark .rank-bar i { position: relative; overflow: hidden; background: linear-gradient(90deg, #00e5ff, #7c5cff 70%, #ff4ecd);
  box-shadow: 0 0 10px rgba(0,229,255,.5), 0 0 18px rgba(124,92,255,.3); }
html.dark .rank-bar i::after { content: ""; position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: nxSheen 3.4s ease-in-out infinite; }
html.dark .rank-row:not(.r1) .rank-bar i { opacity: .85; }
@media (prefers-reduced-motion: reduce) { html.dark .rank-bar i::after { animation: none; } }
/* dashboard service chips: one hue per service while running, red for anything that is down */
.svc-xray { --c: #0891b2; } .svc-sub { --c: #7c3aed; } .svc-worker { --c: #db2777; }
html.dark .svc-xray { --c: #00e5ff; } html.dark .svc-sub { --c: #a68bff; } html.dark .svc-worker { --c: #ff4ecd; }
.svc.on { color: var(--c) !important; background: color-mix(in srgb, var(--c) 12%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); font-weight: 600; }
.svc.on i { position: relative; background: var(--c) !important; box-shadow: 0 0 6px var(--c) !important; }
.svc.on i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--c); opacity: 0; animation: lgRing 2.4s ease-out infinite; }
.svc-sub.on i::after { animation-delay: .8s; } .svc-worker.on i::after { animation-delay: 1.6s; }
html.dark .svc.on { text-shadow: 0 0 8px color-mix(in srgb, var(--c) 55%, transparent); }
.svc.off { border: 1px solid rgba(245,34,45,.45); font-weight: 600; }
.svc.off b { font-weight: 600; font-size: 11.5px; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: rgba(245,34,45,.16); }
html.dark .svc.off { color: var(--nx-red); background: rgba(255,77,109,.12); box-shadow: 0 0 12px rgba(255,77,109,.25); }
html.dark .svc.off i { background: var(--nx-red); box-shadow: 0 0 6px var(--nx-red); }
.svc { padding: 2px 10px; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .svc.on i::after { animation: none; } }
/* card title icons (replace the diamond bullet) */
.ct-ico { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; margin-right: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.card-title:has(> .ct-ico)::before { display: none !important; }
html.dark .ct-ico { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 28%, transparent), inset 0 0 10px color-mix(in srgb, var(--c) 10%, transparent); }
html.dark .ct-ico .el-icon { filter: drop-shadow(0 0 4px var(--c)); }
@media (max-width: 768px) { .ct-ico { width: 26px; height: 26px; font-size: 14px; margin-right: 8px; } }
/* health card: auto-check countdown + daily speed test note */
.chk-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; font-weight: 500; }
.chk-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 12px; color: var(--pp-sub); background: var(--pp-soft); font-variant-numeric: tabular-nums; }
.chk-next.due { color: #d97706; }
html.dark .chk-meta > span { background: rgba(255,255,255,.04); border: 1px solid rgba(120,200,255,.14); color: #9fb4d6; }
html.dark .chk-next { color: #7ff3ff !important; border-color: rgba(0,229,255,.3) !important; }
html.dark .chk-next.due { color: var(--nx-amber) !important; border-color: rgba(255,194,77,.4) !important; }
html.dark .chk-speed { color: #c9b8ff !important; border-color: rgba(124,92,255,.3) !important; }
@media (max-width: 768px) { .chk-meta { margin-left: 0; width: 100%; } }
/* ===== subscription QR dialog ===== */
@keyframes qdScan { 0% { top: 6%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 92%; opacity: 0; } }
.qr-dialog .el-dialog__header { padding-bottom: 6px; }
.qd-head { display: flex; align-items: center; gap: 12px; }
.qd-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  color: #ffc24d; background: rgba(255,194,77,.12); border: 1px solid rgba(255,194,77,.35); flex-shrink: 0; }
.qd-name { font-size: 18px; font-weight: 700; color: var(--pp-text); line-height: 1.2; }
.qd-kind { font-size: 12.5px; color: var(--pp-sub); margin-top: 3px; }
.qd-ips { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.qd-ip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--pp-soft); font-size: 13.5px; }
.qd-ip .dot { margin: 0; flex-shrink: 0; }
.qd-node { font-weight: 600; white-space: nowrap; }
.qd-addr { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.qd-ip > :last-child { margin-left: auto; white-space: nowrap; }
.qd-direct { font-size: 12px; color: var(--pp-sub); }
.qd-fmts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.qd-fmt { border: 1px solid var(--pp-border, rgba(120,140,170,.25)); background: transparent; color: var(--pp-sub); font: inherit; font-size: 12.5px;
  padding: 4px 11px; border-radius: 14px; cursor: pointer; transition: all .15s; }
.qd-fmt:hover { color: var(--pp-text); }
.qd-fmt.on { color: #fff; background: linear-gradient(90deg, #1677ff, #13c2c2); border-color: transparent; }
.qd-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qd-frame { position: relative; width: 236px; height: 236px; padding: 12px; border-radius: 16px; background: #fff; box-sizing: border-box; }
.qd-frame > i { position: absolute; width: 22px; height: 22px; border-color: #13c2c2; border-style: solid; border-width: 0; }
.qd-frame .c1 { left: -7px; top: -7px; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 10px; }
.qd-frame .c2 { right: -7px; top: -7px; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 10px; }
.qd-frame .c3 { left: -7px; bottom: -7px; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 10px; }
.qd-frame .c4 { right: -7px; bottom: -7px; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 10px; }
.qd-qr, .qd-qr svg { width: 100%; height: 100%; display: block; }
.qd-scan { position: absolute; left: 8%; right: 8%; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent); box-shadow: 0 0 12px #00e5ff; animation: qdScan 2.6s ease-in-out infinite; }
.qd-apps { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--pp-sub); text-align: center; max-width: 360px; }
.qd-link { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: var(--pp-soft); border: 1px dashed var(--pp-border, rgba(120,140,170,.3)); font-size: 12.5px; }
.qd-link .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-link:hover { border-style: solid; }

html.dark .qr-dialog { background: linear-gradient(160deg, #0b1025, #070a18) !important; border: 1px solid rgba(0,229,255,.18); box-shadow: 0 0 40px rgba(0,229,255,.12), 0 30px 80px rgba(0,0,0,.6) !important; }
html.dark .qd-ico { box-shadow: 0 0 16px rgba(255,194,77,.35); }
html.dark .qd-name { font-family: "PortalCute", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 400; letter-spacing: .5px; color: #f2fbff; }
html.dark .qd-ip { background: rgba(255,255,255,.035); border: 1px solid rgba(120,200,255,.12); }
html.dark .qd-addr { color: #7ff3ff; text-shadow: 0 0 10px rgba(0,229,255,.55); }
html.dark .qd-fmt { border-color: rgba(120,200,255,.2); color: #9fb4d6; }
html.dark .qd-fmt.on { color: #031018; background: linear-gradient(90deg, #00e5ff, #7c5cff); box-shadow: 0 0 14px rgba(0,229,255,.4); font-weight: 600; }
html.dark .qd-frame { box-shadow: 0 0 0 1px rgba(0,229,255,.25), 0 0 34px rgba(0,229,255,.28); }
html.dark .qd-frame > i { border-color: #00e5ff; filter: drop-shadow(0 0 5px #00e5ff); }
html.dark .qd-link { background: rgba(255,255,255,.03); border-color: rgba(0,229,255,.25); color: #b9e9ff; }
@media (prefers-reduced-motion: reduce) { .qd-scan { animation: none; display: none; } }
/* ===== shared loading: slim top bar for any request, centred loader for a page's first load ===== */
@keyframes tpSlide { 0% { left: -35%; width: 35%; } 60% { left: 45%; width: 45%; } 100% { left: 100%; width: 30%; } }
@keyframes plSpin { to { transform: rotate(360deg); } }
.top-progress { position: sticky; top: 0; z-index: 30; height: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .25s; }
.top-progress.on { opacity: 1; }
.top-progress i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #1677ff, #13c2c2); animation: tpSlide 1.1s ease-in-out infinite; }
html.dark .top-progress i { background: linear-gradient(90deg, #00e5ff, #7c5cff, #ff4ecd); box-shadow: 0 0 10px #00e5ff, 0 0 4px #7c5cff; }
.main { position: relative; min-height: calc(100vh - var(--pp-header-h, 68px)); }
.main.is-loading > :not(.page-loader) { opacity: .35; filter: blur(1px); transition: opacity .2s, filter .2s; pointer-events: none; }
.page-loader { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-start; justify-content: center; padding-top: 22vh; }
.pl-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 30px; border-radius: 16px;
  background: var(--pp-card, #fff); box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.pl-ring { position: relative; width: 42px; height: 42px; }
.pl-ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #1677ff; border-right-color: #13c2c2; animation: plSpin .9s linear infinite; }
.pl-ring i + i { inset: 8px; border-top-color: #7c5cff; border-right-color: transparent; border-left-color: #7c5cff; animation-duration: 1.4s; animation-direction: reverse; }
.pl-text { font-size: 13px; color: var(--pp-sub); letter-spacing: 2px; }
html.dark .pl-box { background: rgba(7,10,24,.85); border: 1px solid rgba(0,229,255,.2); backdrop-filter: blur(10px); box-shadow: 0 0 30px rgba(0,229,255,.15), 0 20px 60px rgba(0,0,0,.6); }
html.dark .pl-ring i { border-top-color: #00e5ff; border-right-color: #7c5cff; filter: drop-shadow(0 0 6px #00e5ff); }
html.dark .pl-ring i + i { border-top-color: #ff4ecd; border-left-color: #ff4ecd; border-right-color: transparent; filter: drop-shadow(0 0 6px #ff4ecd); }
html.dark .pl-text { color: #9fd8ff; }
.pl-fade-enter-active, .pl-fade-leave-active { transition: opacity .2s; }
.pl-fade-enter-from, .pl-fade-leave-to { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .top-progress i, .pl-ring i { animation-duration: 3s; } }
/* ===== one-screen layout: header and banners stay put, only the content area scrolls (and only when it overflows) ===== */
.content-col { overflow: hidden !important; display: flex; flex-direction: column; }
.content-col > .main { flex: 1 1 auto; min-height: 0 !important; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-gutter: auto; }
.top-progress { position: relative; height: 0; overflow: visible; }
.top-progress i { height: 2px; }
/* slim scrollbar inside the content area */
.content-col > .main { scrollbar-width: thin; scrollbar-color: rgba(120,140,170,.35) transparent; }
.content-col > .main::-webkit-scrollbar { width: 8px; height: 8px; }
.content-col > .main::-webkit-scrollbar-track { background: transparent; }
.content-col > .main::-webkit-scrollbar-thumb { background: rgba(120,140,170,.35); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
html.dark .content-col > .main { scrollbar-color: rgba(0,229,255,.28) transparent; }
html.dark .content-col > .main::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(0,229,255,.45), rgba(124,92,255,.45)); background-clip: padding-box; }
html.dark .content-col > .main::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #00e5ff, #7c5cff); background-clip: padding-box; }
/* ===== list pages fill the screen: the table card stretches to the bottom, rows scroll inside under a fixed header ===== */
@media (min-width: 769px) {
  .page-fill { height: 100%; display: flex; flex-direction: column; }
  .page-fill > * { flex-shrink: 0; }
  .page-fill > .card:has(.el-table) { flex: 1 1 0; min-height: 300px; display: flex; flex-direction: column; margin-bottom: 0; }
  .page-fill > .card:has(.el-table) > * { flex-shrink: 0; }
  .page-fill > .card:has(.el-table) > .el-table { flex: 1 1 0; min-height: 0; height: auto !important; }
  .page-fill > .card:has(.el-table) > .pp-pager { margin-top: 14px; }
  .page-fill .el-table__body-wrapper .el-scrollbar__bar.is-vertical { width: 7px; }
  html.dark .page-fill .el-table .el-scrollbar__thumb { background: linear-gradient(180deg, rgba(0,229,255,.55), rgba(124,92,255,.55)); opacity: 1; }
  html.dark .page-fill .el-table, html.dark .page-fill .el-table__inner-wrapper { background: transparent; }
  html.dark .page-fill .el-table__inner-wrapper::before { display: none; }
}
@media (min-width: 769px) { .content-col > .main:has(> .page-fill) { padding-bottom: 24px; } }

/* page loader: dead centre of the visible content area */
.page-loader { align-items: center; padding-top: 0; position: absolute; inset: 0; height: 100%; }

/* active menu icon glow without CSS filters: Chrome drops some icons (e.g. the gear) when drop-shadow is applied */
html.dark .sider .el-menu-item.is-active .el-icon { filter: none !important; position: relative; }
html.dark .sider .el-menu-item.is-active .el-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(0,229,255,.38) 0%, rgba(0,229,255,.12) 45%, transparent 70%); }
/* split table cells */
.ip-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ip-cell .dot { margin-right: 0; }
.ellipsis-1 { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* ===== tables: header and cells centred, flex-based cell contents follow ===== */
.el-table th.el-table__cell > .cell, .el-table td.el-table__cell > .cell { text-align: center; }
.el-table td.el-table__cell .link-cell,
.el-table td.el-table__cell .row-actions,
.el-table td.el-table__cell .ip-line,
.el-table td.el-table__cell div:has(> .dot) { justify-content: center; }
.el-table td.el-table__cell .link-cell .mono { text-align: left; }
.el-table td.el-table__cell .el-progress { justify-content: center; }
/* overflow hover preview */
.pp-tip { position: fixed; z-index: 4000; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: #1f2937; background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); border: 1px solid rgba(120,140,170,.2); word-break: break-all; }
.pp-tip.on { opacity: 1; transform: none; }
.pp-tip-body.mono { font-size: 12.5px; }
.pp-tip-hint { margin-top: 4px; font-size: 11.5px; color: #1677ff; }
html.dark .pp-tip { color: #eaf6ff; background: rgba(7,10,24,.96); border-color: rgba(0,229,255,.35);
  box-shadow: 0 0 18px rgba(0,229,255,.22), 0 12px 32px rgba(0,0,0,.55); backdrop-filter: blur(8px); }
html.dark .pp-tip-body.mono { color: #7ff3ff; text-shadow: 0 0 8px rgba(0,229,255,.35); }
html.dark .pp-tip-hint { color: #c9b8ff; }
.el-table .link-cell .mono { cursor: copy; }
.el-table .link-cell .mono:hover { text-decoration: underline; text-underline-offset: 3px; }
/* ===== mobile cards: every chip in a badge row shares one shape; header switch sits on the title line ===== */
.m-badges { align-items: center; }
.m-badges > .el-tag, .m-badges > .muted, .m-badges > span:not(.m-badge) {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; line-height: 1; box-sizing: border-box; white-space: nowrap; }
.m-badges > .muted { color: var(--pp-idle-fg); background: var(--pp-idle-bg); border: 0; }
.m-badges > .el-tag { border-width: 1px; }
.m-head > .el-switch { height: 21px; flex-shrink: 0; }
/* header status on phones: short label instead of a bare dot */
.header .show-sm { display: none; }
@media (max-width: 768px) {
  .header .show-sm { display: inline; }
  .sync-pill { height: 30px; padding: 0 11px 0 10px; gap: 7px; font-size: 12.5px; white-space: nowrap; }
  .publish-btn { height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
}
/* online monitor: enabled subscriptions without a connection (muted, no colour) */
.el-table .row-off td.el-table__cell, .el-table .row-off .cell { color: var(--pp-sub); }
.el-table .row-off .up, .el-table .row-off .down, .el-table .row-off .ok, .m-card.off .up, .m-card.off .down { color: inherit; }
