/* Local Latin faces avoid Windows font linking choosing an unrelated CJK face. */
@font-face {
  font-family: "Classic UI Latin";
  src: local("Tahoma");
  font-weight: 400;
  unicode-range: U+0000-024F, U+2000-206F;
}
@font-face {
  font-family: "Classic UI Latin";
  src: local("Tahoma Bold");
  font-weight: 700;
  unicode-range: U+0000-024F, U+2000-206F;
}
@font-face {
  font-family: "Classic Console Latin";
  src:
    local("Consolas"), local("Lucida Console"), local("SFMono-Regular"),
    local("Liberation Mono");
  font-weight: 400;
  unicode-range: U+0000-024F, U+2000-206F;
}
/* ===== 主题色板：浅色（默认）与夜间暗色 ===== */
:root {
  --sf-face: #d4d0c8;
  --sf-paper: #f4f3ef;
  --sf-sunken: #eceae4;
  --sf-panel: #f0eee6;
  --sf-panel2: #e8e5dc;
  --sf-strip: #f8f7f3;
  --sf-table: #fbfaf7;
  --sf-tree: #faf9f6;
  --sf-props: #f1f0eb;
  --sf-text-hi: #f2f1ec;
  --sf-hi: #fff;
  --sf-shade: #555;
  --sf-shade2: #666;
  --sf-border: #77746e;
  --sf-border2: #a09d95;
  --sf-border3: #aaa89e;
  --sf-border4: #b7b4ab;
  --sf-bevel-lo: #9b9890;
  --sf-text: #20242b;
  --sf-text-2: #343e42;
  --sf-text-3: #4e5d60;
  --sf-text-mute: #60645f;
  --sf-text-dim: #7c7e77;
  --sf-track: #e9e7e0;
  --sf-track-bd: #aaa69b;
  --sf-track-sh: #8f8c83;
  --sf-line: #e0ded7;
  --sf-line2: #cbc9c2;
  --sf-scroll: #afaca5;

  --sf-face-hi: #e3e0d8;
  --sf-hover: #e4e8ed;
  --sf-hi-dim: #eeece6;
  --sf-bevel-lo2: #e2e0d8;
  --sf-shadow: #bbb8b0;
  --sf-warn-bd: #c9b989;
  --sf-err-bd: #d7bda5;
  --sf-graph-cap: #b0c8b7;
  --sf-foot: #ccc9bf;
  --sf-tab: #d7d4c9;
  --sf-skel: #dfdcd3;
  --sf-skel-bar: #cecbc2;
  --sf-zebra: #f3f2ed;
  --sf-focus-bg: #e5ebf5;
  --sf-focus-bd: #adc4e8;
  color-scheme: light;
}

[data-theme="dark"] {
  --sf-face: #000000;
  --sf-paper: #000000;
  --sf-sunken: #000000;
  --sf-panel: #000000;
  --sf-panel2: #000000;
  --sf-strip: #000000;
  --sf-table: #000000;
  --sf-tree: #000000;
  --sf-props: #000000;
  --sf-text-hi: #ffffff;
  --sf-hi: #3a3a3a;
  --sf-shade: #000000;
  --sf-shade2: #000000;
  --sf-border: #333333;
  --sf-border2: #3d3d3d;
  --sf-border3: #444444;
  --sf-border4: #4a4a4a;
  --sf-bevel-lo: #000000;
  --sf-text: #f0f0f0;
  --sf-text-2: #d0d0d0;
  --sf-text-3: #b8b8b8;
  --sf-text-mute: #9a9a9a;
  --sf-text-dim: #888;
  --sf-track: #000000;
  --sf-track-bd: #3a3a3a;
  --sf-track-sh: #000000;
  --sf-line: #2a2a2a;
  --sf-line2: #333333;
  --sf-scroll: #4a4a4a;

  --sf-face-hi: #1f1f1f;
  --sf-hover: #1a1a1a;
  --sf-hi-dim: #2a2a2a;
  --sf-bevel-lo2: #000000;
  --sf-shadow: #000000;
  --sf-warn-bd: #6a5a2a;
  --sf-err-bd: #6a3a30;
  --sf-graph-cap: #7a9a80;
  --sf-foot: #000000;
  --sf-tab: #000000;
  --sf-skel: #111111;
  --sf-skel-bar: #222222;
  --sf-zebra: #0a0a0a;
  --sf-focus-bg: #101a30;
  --sf-focus-bd: #4a6da8;
  --face: #000000;
  --paper: #000000;
  --edge: #333333;
  color-scheme: dark;
}

/* 彩蛋主题：spot-probe 默认暗色风格 */
[data-theme="easter"] {
  --sf-face: #0f1218;
  --sf-paper: #0f1218;
  --sf-sunken: #13161d;
  --sf-panel: #161a22;
  --sf-panel2: #1a1f28;
  --sf-strip: #11141a;
  --sf-table: #161a22;
  --sf-tree: #13161d;
  --sf-props: #161a22;
  --sf-text-hi: #ffffff;
  --sf-hi: #2a323f;
  --sf-shade: #1e242e;
  --sf-shade2: #2a323f;
  --sf-border: #2a323f;
  --sf-border2: #333d4d;
  --sf-border3: #3d4757;
  --sf-border4: #485263;
  --sf-bevel-lo: #1e242e;
  --sf-text: #e8ecf3;
  --sf-text-2: #d8dbe2;
  --sf-text-3: #9aa4b5;
  --sf-text-mute: #667085;
  --sf-text-dim: #5c6574;
  --sf-track: #161a22;
  --sf-track-bd: #2a323f;
  --sf-track-sh: #0f1218;
  --sf-line: #2a323f;
  --sf-line2: #333d4d;
  --sf-scroll: #3d4757;

  --sf-face-hi: #1e242e;
  --sf-hover: #252b36;
  --sf-hi-dim: #2a323f;
  --sf-bevel-lo2: #1e242e;
  --sf-shadow: #0f1218;
  --sf-warn-bd: #4a3a1f;
  --sf-err-bd: #5a2a2a;
  --sf-graph-cap: #5b8cff;
  --sf-foot: #0f1218;
  --sf-tab: #161a22;
  --sf-skel: #1a1f28;
  --sf-skel-bar: #242b36;
  --sf-zebra: #13161d;
  --sf-focus-bg: #1d2942;
  --sf-focus-bd: #5b8cff;
  --face: #0f1218;
  --paper: #0f1218;
  --edge: #2a323f;
  color-scheme: dark;
}

/* 夜间：桌面主背景为纯黑 */
[data-theme="dark"],
[data-theme="dark"] body {
  background: #000000;
  color: var(--sf-text);
}
[data-theme="dark"] .desktop-shell {
  background: #000000;
  border-color: #333333;
  box-shadow: inset -1px -1px #000000;
}
[data-theme="dark"] .content {
  background: var(--sf-sunken);
  scrollbar-color: var(--sf-scroll) var(--sf-sunken);
}
[data-theme="dark"] .classic-title,
[data-theme="dark"] .node-title {
  background: #000000;
}
[data-theme="dark"] .classic-button {
  color: var(--sf-text);
}
[data-theme="dark"] .classic-button:hover {
  background: #1f1f1f;
}
[data-theme="dark"] .classic-button:active {
  border-color: #000000 var(--sf-hi) var(--sf-hi) #000000;
}
/* 夜间：状态标签底色转深，保留语义色文字 */
[data-theme="dark"] .online-label.online {
  background: #1d3326;
  border-color: #2f5a3d;
}
[data-theme="dark"] .online-label.offline {
  background: #2a2036;
  border-color: #443056;
  color: #c4a0ff;
}
[data-theme="dark"] .online-label.warning,
[data-theme="dark"] .online-label.pending {
  background: #33290f;
  border-color: #5c4a1a;
  color: #e8c46a;
}
[data-theme="dark"] .online-label.invalid {
  background: #321d18;
  border-color: #5c3229;
  color: #ff8a75;
}
[data-theme="dark"] .history-error {
  background: #321d18;
  color: #ff9c85;
}
[data-theme="dark"] .notice {
  background: #1f2733;
}
[data-theme="dark"] .error-banner {
  background: #321d18;
  border-color: #5c3229;
  color: #ff9c85;
}
[data-theme="dark"] .demo-banner {
  background: #33290f;
  color: #e8c46a;
}
[data-theme="dark"] .demo-banner strong {
  background: #3d3115;
  border-color: #6a5626;
}
[data-theme="dark"] .demo-banner a {
  color: #d9c98a;
}
/* 夜间：装饰元素（像素图标、旗标、骨架卡）转深 */
[data-theme="dark"] .pixel-pc:before {
  background: #4a4a4a;
  border-color: #141414;
  box-shadow:
    inset 2px 2px #5a5a5a,
    inset -2px -2px #2a2a2a;
}
[data-theme="dark"] .pc-base {
  background: #454545;
}
[data-theme="dark"] .title-flag {
  border-color: #4a5a6a;
}
[data-theme="dark"] .hero-flag {
  border-color: #3a3a3a;
}
[data-theme="dark"] .detail-flag {
  border-color: #3a3a3a;
}
[data-theme="dark"] .flag-fallback {
  background: #2a2a2a;
}
[data-theme="dark"] .skeleton-card > div {
  background: #222a32;
}
[data-theme="dark"] .history-placeholder {
  background: #000000;
  border-color: #2a2a2a;
}
[data-theme="dark"] .win-panel,
[data-theme="dark"] .detail-sections,
[data-theme="dark"] .properties,
[data-theme="dark"] .overview-strip,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .tree-scroll {
  color: var(--sf-text);
}
[data-theme="dark"] .node-table {
  color: var(--sf-text);
}
[data-theme="dark"] .node-table thead th {
  background: #000000;
  border-color: #333333 #000000 #000000 #333333;
  color: #eef2f8;
}
[data-theme="dark"] .toolbar-search,
[data-theme="dark"] .toolbar-search input {
  background: #000000;
  color: var(--sf-text);
}
[data-theme="dark"] .toolbar-right select,
[data-theme="dark"] #history-range,
[data-theme="dark"] .toolbar-right select option,
[data-theme="dark"] #history-range option {
  color: var(--sf-text);
}
[data-theme="dark"] .tree-tools button:hover,
[data-theme="dark"] .tree-folder-toggle:hover {
  background: #1a1a1a;
}
[data-theme="dark"] .tree-folder-toggle .tree-toggle::before,
[data-theme="dark"] .tree-folder-toggle[aria-expanded="false"] .tree-toggle::after {
  background: var(--sf-text);
}
[data-theme="dark"] .meter-fill {
  background: linear-gradient(180deg, var(--meter-hi), var(--meter-lo));
}

:root {
  --font-ui:
    "Classic UI Latin", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", sans-serif;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--sf-text);
  background: #899a9a;
  font-synthesis: none;
  --face: var(--sf-face);
  --paper: var(--sf-paper);
  --blue: #0a246a;
  --edge: #827f78;
  --green: #178249;
  /* 地区配色：深红 / 亮黄 / 深蓝；离线：深紫 */
  --region-red: #8c0f14;
  --region-red-deep: #4a0508;
  --region-yellow: #f5c400;
  --region-yellow-deep: #8a6b00;
  --region-blue: #10287a;
  --region-blue-deep: #060f3d;
  --state-offline: #4b1d78;
  --state-offline-deep: #2a0f47;
  /* 网络速率：上传亮红 / 下载墨绿（浅色模式） */
  --net-up: #ff4d4d;
  --net-down: #2e7d32;
  /* 进度条：亮蓝 */
  --meter-hi: #6fd8ff;
  --meter-lo: #1287cf;
  --mono:
    "Classic Console Latin", "Microsoft YaHei UI", "Microsoft YaHei",
    "PingFang SC", "Noto Sans CJK SC", monospace;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  min-height: 100%;
  height: 100%;
  width: 100%;
}
button,
input,
select,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
input,
select {
  border-radius: 0;
}
a {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px dotted var(--blue);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  color: #777;
}
.desktop-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: var(--face);
  padding: 9px;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--sf-hi);
  box-shadow: inset -1px -1px var(--sf-shade);
}
.desktop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 8px 11px;
  border-bottom: 1px solid #93908a;
  box-shadow: 0 1px var(--sf-hi);
  flex: none;
}
.desktop-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.desktop-brand > img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
.desktop-brand > div {
  min-width: 0;
}
.brand-kicker {
  font: 10px var(--mono);
  letter-spacing: 1.4px;
  color: #5a5e65;
}
.desktop-heading h1 {
  font-size: 22px;
  letter-spacing: 0.3px;
  margin: 4px 0 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.session-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4e5359;
  margin-right: 8px;
}
.workarea {
  min-height: 0;
  flex: 1;
  display: flex;
  gap: 10px;
}
.main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
}
.classic-title {
  background: linear-gradient(90deg, #0a246a, #325990);
  color: var(--sf-hi);
  font-weight: bold;
  display: flex;
  align-items: center;
  min-width: 0;
}
/* 地区配色：卡片内"地区"文字按地区取红 / 黄 / 蓝（节点名与标题栏不受影响） */
.node-window.region-red .node-identity .identity-text strong,
.node-window.region-red .node-identity .identity-text .country-label {
  color: #ff6a6a;
}
.node-window.region-yellow .node-identity .identity-text strong,
.node-window.region-yellow .node-identity .identity-text .country-label {
  color: #ffd34d;
}
.node-window.region-blue .node-identity .identity-text strong,
.node-window.region-blue .node-identity .identity-text .country-label {
  color: #6fb4ff;
}
/* 离线状态：紫色文字，优先级高于地区色 */
.node-window.card-offline .node-identity .identity-text strong,
.node-window.card-offline .node-identity .identity-text .country-label {
  color: #c4a0ff;
}
/* 点击标题按字母排序 */
.node-title .title-sort {
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 5px;
  margin: -2px 0;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}
.node-title .title-sort:hover {
  border-color: #ffffff80;
  background: #ffffff26;
}
.node-title .title-sort:focus-visible {
  outline: 1px dotted var(--sf-hi);
  outline-offset: -3px;
}
.node-title .title-sort .sort-arrow {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.85;
}
.list-row .list-name .title-sort {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  max-width: calc(100% - 30px);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  vertical-align: middle;
}
.list-row .list-name .title-sort:hover {
  text-decoration: underline;
}
/* 地区配色：列表视图"地区"一列的文字按地区取红 / 黄 / 蓝 */
.list-row.region-red .list-location strong,
.list-row.region-red .list-location .country-label {
  color: var(--region-red);
}
.list-row.region-yellow .list-location strong,
.list-row.region-yellow .list-location .country-label {
  color: var(--region-yellow);
}
.list-row.region-blue .list-location strong,
.list-row.region-blue .list-location .country-label {
  color: var(--region-blue);
}
/* 离线状态：紫色文字，优先级高于地区色 */
.list-row.offline .list-location strong,
.list-row.offline .list-location .country-label {
  color: var(--state-offline);
}
.list-row .list-name .title-sort:focus-visible {
  outline: 1px dotted var(--blue);
  outline-offset: 1px;
}
.node-table thead th .title-sort {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.node-table thead th .title-sort:hover {
  text-decoration: underline;
}
.node-table thead th .title-sort .sort-arrow {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.85;
}
.sidebar {
  background: var(--sf-paper);
  display: flex;
  flex-direction: column;
  width: 208px;
  flex: none;
  min-width: 0;
  border: 1px solid var(--sf-border);
  box-shadow:
    inset 1px 1px var(--sf-hi),
    inset -1px -1px var(--sf-bevel-lo);
  overflow: hidden;
}
.sidebar-title {
  height: 32px;
  margin: 3px;
  padding: 0 6px 0 9px;
  justify-content: space-between;
  flex: none;
}
.sidebar-title > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-closed {
  display: none;
}
.title-btn {
  min-width: 22px;
  width: 22px;
  height: 22px;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: var(--face);
  color: #111;
  border: 1px solid;
  border-color: var(--sf-hi) var(--sf-shade) var(--sf-shade) var(--sf-hi);
  box-shadow: inset -1px -1px #8a8780;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: bold;
}
.title-btn:hover {
  background: var(--sf-face-hi);
}
.title-btn:active,
.classic-button:active {
  border-color: var(--sf-shade2) var(--sf-hi) var(--sf-hi) var(--sf-shade2);
  box-shadow: inset 1px 1px #888;
}
.tree-scroll {
  min-height: 0;
  overflow: auto;
  padding: 13px 8px;
  background: var(--sf-tree);
}
.tree-group {
  margin-bottom: 20px;
}
.tree-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  white-space: nowrap;
  min-height: 28px;
  color: var(--sf-text-2);
  font-size: 12px;
}
.tree-toggle {
  width: 11px;
  height: 11px;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
}
.pixel-folder,
.pixel-globe,
.pixel-tool {
  display: inline-flex;
  min-width: 18px;
  font-size: 17px;
  height: 20px;
  align-items: center;
  justify-content: center;
}
.nav-row {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  min-height: 30px;
  width: 100%;
  padding: 5px 5px 5px calc(var(--indent) * 7px + 5px);
  line-height: 1.4;
  white-space: nowrap;
  color: #343840;
  font-size: 12px;
}
.nav-row:hover:not(.selected) {
  background: var(--sf-hover);
}
.nav-row.selected {
  background: var(--blue);
  color: var(--sf-hi);
  outline: 1px dotted #ffffff80;
  outline-offset: -3px;
}
.nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--sf-line2);
}
.tree-tools button {
  background: none;
  border: 0;
  padding: 6px 5px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 33px;
}
.tree-tools button:hover {
  background: var(--sf-hover);
}
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #466f51;
  box-shadow: inset 1px 1px #ffffff88;
  vertical-align: -1px;
  background: #999;
}
.status-dot.online {
  background: #38b65f;
}
.status-dot.offline {
  background: #979995;
  border-color: #70746c;
}
.status-dot.warning,
.status-dot.pending {
  background: #dba42c;
  border-color: #a77721;
}
.status-dot.invalid {
  background: #bf4333;
  border-color: #983024;
}
.pixel-pc {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 21px;
  vertical-align: middle;
  image-rendering: pixelated;
}
.pixel-pc:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 15px;
  height: 14px;
  border: 2px solid #353839;
  box-shadow:
    inset 2px 2px var(--sf-hi-dim),
    inset -2px -2px #727776;
  background: #bbbfb8;
}
.pc-screen {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 8px;
  height: 7px;
  background: linear-gradient(138deg, #163f65, #61bac0);
  border: 1px solid #263841;
  z-index: 2;
}
.pc-base {
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 19px;
  height: 5px;
  background: #b7b9b2;
  border: 1px solid var(--sf-shade);
  box-shadow: inset 1px 1px var(--sf-hi);
}
.classic-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--face);
  min-height: 30px;
  padding: 5px 11px;
  white-space: nowrap;
  color: var(--sf-text);
  border: 1px solid;
  border-color: var(--sf-hi) var(--sf-shade2) var(--sf-shade2) var(--sf-hi);
  box-shadow: inset -1px -1px #96938c;
  text-decoration: none;
  font-size: 12px;
}
.classic-button:hover {
  background: var(--sf-face-hi);
}
.content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--sf-sunken);
  border: 1px solid var(--sf-border);
  box-shadow: inset 1px 1px var(--sf-hi);
  padding: 10px 12px 16px;
  scrollbar-color: var(--sf-scroll) var(--sf-sunken);
  scrollbar-gutter: stable;
}
.content-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin: -6px -8px 12px;
  padding: 3px 5px 3px 11px;
}
.toolbar-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.toolbar-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: normal;
  min-width: 0;
}
.toolbar-right select,
#history-range {
  background: var(--sf-hi);
  border: 1px solid #777;
  height: 29px;
  min-width: 103px;
  padding: 2px 5px;
  color: var(--sf-text);
}
.view-label {
  margin-left: 4px;
}
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sf-hi);
  border: 1px solid #aaa;
  padding: 0 8px;
  height: 29px;
  width: 190px;
  color: var(--sf-text-3);
  box-shadow: inset 1px 1px #888;
}
.toolbar-search span {
  font-size: 20px;
}
.toolbar-search input {
  font:
    12px Tahoma,
    "Microsoft YaHei",
    sans-serif;
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  min-width: 0;
  color: var(--sf-text);
}
.toolbar-search:focus-within {
  outline: 2px solid var(--sf-focus-bd);
  outline-offset: 1px;
}
.view-square {
  width: 29px;
  min-height: 29px;
  font-size: 17px;
  padding: 0;
  color: var(--blue);
}
.mobile-menu {
  display: none;
}
.overview-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 16px;
  background: var(--sf-strip);
  border: 1px solid var(--sf-border2);
  box-shadow:
    inset 1px 1px var(--sf-hi),
    inset -1px -1px var(--sf-bevel-lo2);
}
.overview-strip > div {
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  position: relative;
}
.overview-strip > div + div:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  border-left: 1px solid var(--sf-line);
}
.overview-strip > div > span {
  font-size: 11px;
  color: var(--sf-text-dim);
}
.overview-strip strong {
  font: 26px var(--mono);
  color: #29354c;
  white-space: nowrap;
}
.overview-strip strong i {
  font: 12px var(--mono);
  font-style: normal;
  color: #8a8f94;
}
.overview-strip small {
  font-size: 10px;
  color: var(--sf-text-dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.overview-strip .summary-online {
  color: #227447;
}
.overview-strip .summary-warning {
  color: #af4a30;
}
.overview-strip .summary-rate {
  font-size: 17px;
  margin-top: 7px;
  margin-bottom: 2px;
}
.node-grid {
  --card-min: 260px;
  display: grid;
  grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 0 2px 8px;
}
.node-window {
  background: var(--face);
  min-width: 0;
  max-width: 100%;
  border: 1px solid;
  border-color: var(--sf-hi) #6a6863 #6a6863 var(--sf-hi);
  box-shadow:
    inset -1px -1px var(--sf-bevel-lo),
    1px 2px 0 var(--sf-shadow);
  padding: 3px;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.14s,
    transform 0.14s;
}
.node-window:hover {
  box-shadow:
    inset -1px -1px var(--sf-bevel-lo),
    2px 4px 0 #aba9a1;
  transform: translateY(-1px);
}
.node-window:focus-visible {
  outline: 2px dotted var(--blue);
  outline-offset: 3px;
}
.card-offline .node-title {
  background: linear-gradient(90deg, #686d70, #9a9e9f);
}
.node-title {
  min-height: 29px;
  padding: 3px 3px 3px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.3;
}
.node-title .truncate {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.window-actions {
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.node-body {
  padding: 11px 11px 0;
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
}
.node-identity {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 47px;
}
.pc-picture {
  width: 39px;
  flex: 0 0 39px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.identity-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.identity-text strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #29303b;
}
.country-label {
  font-size: 10px;
  color: #72726d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  white-space: nowrap;
  color: #246742;
  background: #e7ede1;
  border: 1px solid #a4b79b;
  padding: 3px 6px;
  line-height: 1.2;
}
/* 状态栏"离线"：深紫色文字 */
.online-label.offline {
  background: #dddcd7;
  color: var(--state-offline);
  border-color: #aaa9a3;
}
.online-label.offline .status-dot {
  background: var(--state-offline);
  border-color: var(--state-offline-deep);
}
.online-label.warning,
.online-label.pending {
  background: #f0e8d5;
  color: #936a1b;
  border-color: var(--sf-warn-bd);
}
.online-label.invalid {
  background: #f1ded7;
  color: #a94434;
  border-color: var(--sf-err-bd);
}
.node-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #73736e;
  font-size: 10px;
  margin: 8px 0 9px;
  min-height: 15px;
}
.node-note.state-note {
  color: #896631;
}
.bevel-line {
  height: 2px;
  border-top: 1px solid var(--sf-scroll);
  border-bottom: 1px solid var(--sf-line);
  margin: 0 0 12px;
}
.meters {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 13px;
}
.meter-row {
  display: grid;
  grid-template-columns: 52px 47px minmax(20px, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  line-height: 1.2;
  position: relative;
}
.meter-label {
  font-size: 11px;
  white-space: nowrap;
  color: #4c514f;
}
.meter-number {
  min-width: 0;
  font: 11px var(--mono);
  white-space: nowrap;
  text-align: right;
  color: #263c35;
}
.meter-wrap {
  position: relative;
  display: block;
  height: 12px;
  background: var(--sf-track);
  border: 1px solid var(--sf-track-bd);
  box-shadow:
    inset 1px 1px var(--sf-track-sh),
    inset -1px -1px var(--sf-hi);
  overflow: hidden;
}
.meter-fill {
  display: block;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, #ffffff3d 7px 9px),
    linear-gradient(var(--meter-hi), var(--meter-lo));
  height: 100%;
  max-width: 100%;
  box-shadow: inset 0 1px #ffffff70;
}
.meter-danger {
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, #ffffff38 7px 9px),
    #b98a3d;
}
.meter-extra {
  display: none;
}
.graph {
  border: 1px solid #585e58;
  box-shadow: 0 1px var(--sf-line);
  padding: 8px 9px;
  background: #081710;
  margin: 10px 0 12px;
  height: 118px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: default;
}
.graph-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 10px var(--mono);
  color: var(--sf-graph-cap);
  min-height: 12px;
  flex: none;
}
.graph-caption > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.graph-caption > span:last-child {
  color: #79c38a;
  flex: none;
}
.graph-plot {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-left: 22px;
}
.graph-scale {
  position: absolute;
  right: calc(100% + 5px);
  font: 8px var(--mono);
  color: #657c6b;
}
.graph-scale-top {
  top: 0;
}
.graph-scale-bottom {
  bottom: 0;
}
.graph-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.graph-grid {
  stroke: #244831;
  stroke-width: 0.6;
  fill: none;
}
.graph-line {
  fill: none;
  stroke: #75d188;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.graph-line path {
  vector-effect: non-scaling-stroke;
}
.traffic-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--sf-border3);
  background: var(--sf-panel);
}
.traffic-block > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.traffic-block span {
  color: #6c716f;
  font-size: 11px;
}
.traffic-block strong {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
}
.traffic-remaining {
  color: #087347;
}
.probe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.probe-card {
  min-width: 0;
  padding: 12px;
  background: var(--sf-panel);
  border: 1px solid var(--sf-border3);
}
.probe-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.probe-heading span {
  color: #087347;
  font-family: var(--mono);
}
.probe-card p {
  font-size: 11px;
  color: #6c716f;
}
.probe-unconfigured {
  min-height: 80px;
}
.graph-time {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font: 8px var(--mono);
  color: #728b78;
  flex: none;
  margin-left: 22px;
}
.graph-time > span {
  white-space: nowrap;
}
.graph-no-data {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #899b8e;
  font-size: 10px;
  background: #08171080;
}
.history-placeholder {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-sunken);
  border: 1px inset var(--sf-border3);
  color: #84847d;
  font-size: 11px;
  margin: 10px 0 12px;
}
.history-error {
  background: #f5e7dd;
  color: #956348;
  border: 1px solid var(--sf-err-bd);
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin-bottom: 12px;
}
.card-facts > .fact:not(.net-fact) {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
}
.fact {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  line-height: 1.3;
}
.fact > span:first-child {
  font-size: 10px;
  color: #74756e;
}
.fact strong {
  font: 11px var(--mono);
  font-weight: normal;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fact.net-fact {
  grid-column: 1 / -1;
  grid-template-columns: 65px minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
}
.net-down {
  color: var(--net-down);
}
.net-up {
  color: var(--net-up);
}
.node-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #7a7b73;
  margin: 0 -11px;
  padding: 8px 11px;
  border-top: 1px solid var(--sf-border3);
  box-shadow: inset 0 1px var(--sf-hi-dim);
  background: var(--sf-foot);
}
.node-footer > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-footer > span:last-child {
  flex: none;
}
.node-footer .expiry-warning {
  color: #9d5436;
  font-weight: bold;
}
.compact-grid .node-body {
  padding: 8px 10px 0;
}
.compact-grid .node-identity {
  min-height: 38px;
}
.compact-grid .graph,
.compact-grid .history-placeholder {
  height: 86px;
  margin: 8px 0;
}
.compact-grid .node-note {
  display: none;
}
.compact-grid .bevel-line {
  margin: 7px 0 8px;
}
.compact-grid .meters {
  gap: 6px;
  margin-bottom: 9px;
}
.compact-grid .card-facts {
  gap: 5px;
  margin-bottom: 9px;
}
.demo-banner,
.notice,
.error-banner,
.restore-row {
  padding: 9px 11px;
  margin: 0 0 12px;
  border: 1px solid var(--sf-border4);
  box-shadow: inset 1px 1px var(--sf-hi);
  background: #f6f0dc;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.demo-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8a7943;
  background: #f5efdc;
}
.demo-banner strong {
  font-size: 10px;
  border: 1px solid #bfb38a;
  padding: 0 6px;
}
.demo-banner a {
  margin-left: auto;
  font-size: 10px;
  color: #7f734f;
  text-decoration: none;
}
.notice {
  background: #eef1f5;
  white-space: pre-wrap;
}
.error-banner {
  background: #f5e0da;
  border-color: #c69786;
  color: #93442f;
}
.restore-row {
  background: var(--sf-paper);
  color: #676862;
}
.error-banner button,
.restore-row button {
  font: inherit;
  text-decoration: underline;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 3px 7px;
}
.empty-state {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #50565a;
  text-align: center;
  padding: 24px;
}
.empty-state .pixel-folder {
  font-size: 32px;
  height: 36px;
}
.empty-state p {
  font-weight: bold;
  margin: 6px 0 0;
  font-size: 16px;
}
.empty-state small {
  color: #85867d;
  line-height: 1.8;
}
.empty-symbol {
  background: #9b735a;
  color: var(--sf-hi);
  width: 36px;
  height: 36px;
  font: 24px var(--mono);
  display: grid;
  place-items: center;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  flex: none;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.status-cell {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 8px;
  border: 1px solid;
  border-color: var(--sf-border3) var(--sf-line) var(--sf-line) var(--sf-border3);
  overflow: hidden;
  text-overflow: ellipsis;
  color: #676960;
}
.status-cell.spacer {
  flex: 1;
}
.status-ready {
  min-width: 145px;
  color: #394952;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #25323870;
  backdrop-filter: blur(2px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog-window {
  outline: 0;
  max-width: min(620px, 100%);
  max-height: 90dvh;
  width: 520px;
  background: var(--face);
  padding: 4px;
  border: 1px solid;
  border-color: var(--sf-hi) #4e514f #4e514f var(--sf-hi);
  box-shadow:
    inset -1px -1px #8a887e,
    5px 7px 0 #26353650;
  display: flex;
  flex-direction: column;
}
.dialog-title {
  min-height: 31px;
  flex: none;
  justify-content: space-between;
  padding: 4px 5px 4px 9px;
}
.dialog-body {
  overflow: auto;
  padding: 18px 16px;
  font-size: 13px;
}
.dialog-body p {
  line-height: 1.8;
  color: #62675f;
  margin: 0 0 15px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--sf-border4);
}
.dialog-footer button {
  min-width: 85px;
}
.properties {
  border: 1px solid var(--sf-border4);
  background: var(--sf-props);
  padding: 4px 10px;
  margin: 0;
}
.properties div {
  display: grid;
  grid-template-columns: minmax(95px, 34%) minmax(0, 1fr);
  padding: 10px 2px;
  border-bottom: 1px solid var(--sf-line);
  gap: 12px;
}
.properties div:last-child {
  border-bottom: 0;
}
.properties dt {
  color: var(--sf-text-dim);
  font-size: 12px;
}
.properties dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--sf-text-2);
  font-size: 12px;
}
.modal-list {
  border: 1px inset var(--sf-border4);
  background: var(--sf-strip);
  padding: 4px 12px;
  max-height: 340px;
  overflow: auto;
}
.modal-list > div {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 1px;
  border-bottom: 1px solid var(--sf-line);
  font-size: 12px;
}
.modal-list > div > span:last-child {
  margin-left: auto;
  flex: none;
  color: #747a70;
}
.modal-list > div > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.setting-row {
  padding: 13px 4px;
  border-bottom: 1px solid var(--sf-border3);
  margin-bottom: 6px;
}
.setting-row label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.setting-row input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.node-flag,
.title-flag,
.tree-flag,
.hero-flag,
.detail-flag {
  display: inline-block;
  object-fit: cover;
  flex: none;
  aspect-ratio: 3/2;
  border: 1px solid #868b83;
  background: var(--sf-hi);
  vertical-align: middle;
}
.title-flag {
  width: 18px;
  height: 13px;
  border-color: #adc0d3;
}
.tree-flag {
  width: 18px;
  height: 13px;
}
.hero-flag {
  width: 36px;
  height: 24px;
  border: 2px solid var(--sf-hi-dim);
  outline: 1px solid #959a91;
  box-shadow: 1px 2px #aba99e;
}
.detail-flag {
  width: 64px;
  height: 44px;
  border: 3px solid var(--sf-line);
  outline: 1px solid #92958c;
  box-shadow: 2px 3px #b2b0a5;
}
.flag-fallback {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--sf-sunken);
  color: #677c8b;
  font-weight: bold;
  font-size: 9px;
  overflow: hidden;
}
.hero-flag.flag-fallback {
  font-size: 13px;
}
.detail-flag.flag-fallback {
  font-size: 20px;
}
.tiny-pc {
  display: inline-flex;
  flex: none;
}
.node-page {
  padding: 0;
  background: var(--sf-sunken);
}
.detail-toolbar {
  min-height: 35px;
  position: sticky;
  top: 0;
  z-index: 3;
  gap: 8px;
  padding: 4px 7px;
  font-size: 12px;
}
.detail-toolbar > span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.detail-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px clamp(12px, 2.5vw, 28px) 26px;
  min-width: 0;
}
.detail-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7d8076;
  font-size: 11px;
  margin-bottom: 18px;
}
.detail-navigation > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-header {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 106px;
  background: var(--sf-panel);
  border: 1px solid var(--sf-border4);
  box-shadow: inset 1px 1px var(--sf-hi);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.detail-header > div {
  min-width: 0;
}
.detail-header h1 {
  font-size: 23px;
  margin: 0 0 10px;
  line-height: 1.4;
  color: #283a50;
  overflow-wrap: anywhere;
  font-weight: bold;
}
.detail-header p {
  font-size: 12px;
  margin: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #7a8178;
  flex-wrap: wrap;
}
.history-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #777d72;
  font-size: 11px;
}
.history-controls .classic-button {
  margin-left: auto;
}
.retention-label {
  font-size: 10px;
  color: #909286;
}
.detail-tabs {
  display: flex;
  gap: 3px;
  padding: 0 6px;
  flex-wrap: wrap;
  position: relative;
  border-bottom: 1px solid var(--sf-line);
}
.detail-tab {
  font-size: 12px;
  white-space: nowrap;
  color: #696f65;
  border: 1px solid;
  border-color: #aaa69a #88877c #aaa69a #aaa69a;
  background: var(--sf-tab);
  box-shadow: inset 1px 1px var(--sf-hi-dim);
  padding: 9px 18px;
  min-height: 36px;
}
.detail-tab:hover {
  background: var(--sf-hover);
}
.detail-tab.active {
  background: var(--sf-panel);
  border-color: var(--sf-hi) #999588 var(--sf-panel) var(--sf-hi);
  color: var(--blue);
  font-weight: bold;
  position: relative;
}
.detail-tab.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--sf-panel);
}
.detail-sections {
  min-height: 265px;
  padding: 20px 17px;
  background: var(--sf-panel);
  border: 1px solid;
  border-color: var(--sf-hi) #999588 #999588 var(--sf-hi);
  min-width: 0;
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.win-panel {
  margin: 0 0 16px;
  min-width: 0;
  border: 1px solid var(--sf-line2);
  background: var(--sf-panel2);
  padding: 18px 15px;
  color: var(--sf-text-2);
}
.win-panel legend {
  color: var(--sf-text-3);
  padding: 0 8px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.detail-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  min-height: 22px;
  font-size: 12px;
  color: #6e766c;
}
.detail-meter-grid {
  display: grid;
  gap: 13px;
  margin-bottom: 18px;
}
.detail-meter .meter-row {
  grid-template-columns: 85px 48px minmax(40px, 1fr);
  gap: 10px;
}
.detail-meter .meter-wrap {
  height: 14px;
}
.detail-graph {
  min-width: 0;
}
.detail-graph .graph {
  height: 192px;
  margin: 0;
}
.detail-graph .graph-caption {
  font-size: 11px;
}
.detail-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.detail-chart-grid.performance-chart-grid {
  grid-template-columns: minmax(0, 1fr);
}
.detail-chart-grid > .win-panel:first-child:last-child {
  grid-column: span 2;
}
.detail-muted {
  color: #7a8076;
  font-size: 11px;
  margin: 14px 0;
  line-height: 1.8;
}
.detail-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 0 0;
}
.detail-footer .classic-button {
  min-width: 90px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.skeleton-card {
  height: 290px;
  border: 1px solid var(--sf-border4);
  background: var(--sf-skel);
  padding: 5px 15px;
}
.skeleton-card > div {
  height: 27px;
  background: #b1b7be;
  margin: 0 -10px 35px;
}
.skeleton-card > span {
  display: block;
  height: 15px;
  background: var(--sf-skel-bar);
  margin-bottom: 20px;
}
.skeleton-card > span:last-child {
  height: 100px;
  background: var(--sf-skel-bar);
}
@media (min-width: 1500px) {
  .node-grid {
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  }
}
@media (min-width: 1800px) {
  .node-body {
    padding: 14px 15px 0;
  }
  .node-footer {
    margin: 0 -15px;
    padding: 9px 15px;
  }
  .graph {
    height: 135px;
  }
  .node-title {
    min-height: 33px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 184px;
  }
  .node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar-search {
    width: 160px;
  }
  .overview-strip > div {
    padding: 12px 11px;
  }
  .overview-strip strong {
    font-size: 24px;
  }
  .overview-strip .summary-rate {
    font-size: 14px;
  }
  .detail-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .desktop-heading h1 {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 162px;
  }
  .tree-scroll {
    padding: 10px 4px;
  }
  .desktop-heading {
    padding: 6px 4px 10px;
  }
  .desktop-shell {
    padding: 7px;
    gap: 7px;
  }
  .workarea {
    gap: 7px;
  }
  .content {
    padding: 10px 9px;
  }
  .content-toolbar {
    flex-wrap: wrap;
    padding: 7px 8px;
    gap: 8px;
    margin: -6px -5px 12px;
  }
  .toolbar-name {
    width: 100%;
    min-height: 24px;
  }
  .toolbar-right {
    width: 100%;
    flex: 1;
  }
  .toolbar-search {
    flex: 1;
    width: auto;
  }
  .view-label {
    display: none;
  }
  .overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .overview-strip > div:nth-child(4),
  .overview-strip > div:nth-child(5) {
    grid-column: span 1;
    border-top: 1px solid var(--sf-line);
  }
  .overview-strip > div:nth-child(4) {
    grid-column: span 2;
  }
  .overview-strip > div:nth-child(4):before {
    display: none;
  }
  .overview-strip > div {
    padding: 10px 12px;
  }
  .overview-strip .summary-rate {
    font-size: 16px;
  }
  .overview-strip > div:nth-child(n + 4) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
  }
  .overview-strip > div:nth-child(n + 4) small {
    display: none;
  }
  .overview-strip .summary-rate {
    margin: 0;
  }
  .node-grid {
    gap: 10px;
  }
  .node-body {
    padding: 10px 9px 0;
  }
  .node-footer {
    margin: 0 -9px;
    padding: 8px 9px;
  }
  .online-label {
    font-size: 9px;
    padding: 3px 4px;
  }
  .node-identity {
    gap: 8px;
  }
  .identity-text strong {
    font-size: 14px;
  }
  .session-label {
    display: none;
  }
  .brand-kicker {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .detail-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .status-cell:nth-child(5),
  .status-cell:nth-child(6) {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    top: 80px;
    bottom: 42px;
    left: 7px;
    z-index: 10;
    width: min(260px, 80vw);
    box-shadow: 4px 6px 0 #1e2d3050;
  }
  .sidebar.sidebar-closed {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
    width: 31px;
    min-height: 31px;
    padding: 0;
    font-size: 18px;
  }
  .view-square {
    display: none;
  }
  .brand-kicker {
    letter-spacing: 0.8px;
    font-size: 8px;
  }
  .desktop-heading h1 {
    font-size: 19px;
  }
  .desktop-actions {
    gap: 4px;
  }
  .desktop-actions .classic-button {
    padding: 4px 6px;
    font-size: 11px;
    min-width: auto;
  }
  .content-toolbar {
    min-height: 72px;
  }
  .toolbar-name {
    font-size: 12px;
  }
  .node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-strip strong {
    font-size: 22px;
  }
  .overview-strip > div > span {
    font-size: 10px;
  }
  .desktop-brand > img {
    width: 29px;
    height: 29px;
  }
  .desktop-brand {
    gap: 9px;
  }
  .status-cell:nth-child(4) {
    display: none;
  }
  .status-refresh {
    max-width: 180px;
  }
  .status-ready {
    min-width: 130px;
  }
  .dialog-window {
    width: 480px;
  }
  .setting-row {
    padding: 17px 4px;
  }
  .setting-row input {
    width: 19px;
    height: 19px;
  }
  .classic-button {
    min-height: 34px;
  }
  .node-title .title-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
  .node-title {
    min-height: 36px;
  }
  .detail-tabs {
    padding: 0 3px;
    gap: 2px;
  }
  .detail-tab {
    padding: 10px 12px;
    min-height: 40px;
  }
  .detail-inner {
    padding: 14px 12px 24px;
  }
  .detail-header {
    padding: 16px 14px;
    gap: 16px;
  }
  .detail-header h1 {
    font-size: 20px;
  }
  .detail-sections {
    padding: 15px 10px;
  }
  .win-panel {
    padding: 16px 12px;
  }
  .retention-label {
    display: none;
  }
  .statusbar {
    font-size: 9px;
  }
  .status-cell {
    padding: 2px 5px;
  }
  .demo-banner {
    gap: 8px;
  }
  .demo-banner a {
    font-size: 9px;
  }
  .demo-banner > span {
    font-size: 10px;
  }
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .overview-strip {
    width: 100%;
  }
  .desktop-shell {
    padding: 5px;
    gap: 6px;
  }
  .desktop-heading {
    gap: 7px;
    padding: 6px 4px 9px;
  }
  .desktop-brand {
    gap: 8px;
  }
  .brand-kicker {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .desktop-heading h1 {
    font-size: 18px;
    margin-top: 5px;
  }
  .desktop-actions .classic-button {
    font-size: 10px;
    padding: 3px 5px;
    min-width: auto;
  }
  .content {
    padding: 9px 9px 14px;
    scrollbar-gutter: auto;
  }
  .content-toolbar {
    margin: -5px -5px 11px;
    padding: 7px 8px;
  }
  .toolbar-right {
    gap: 6px;
  }
  .toolbar-search {
    height: 32px;
  }
  .toolbar-search input {
    font-size: 11px;
  }
  .toolbar-right select {
    height: 32px;
    min-width: 100px;
    font-size: 11px;
  }
  .node-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 0 1px 8px;
  }
  .node-body {
    padding: 14px 14px 0;
  }
  .node-identity {
    gap: 13px;
    min-height: 43px;
  }
  .identity-text strong {
    font-size: 16px;
  }
  .country-label {
    font-size: 11px;
  }
  .pc-picture {
    width: 40px;
    flex-basis: 40px;
  }
  .hero-flag {
    width: 38px;
    height: 26px;
  }
  .online-label {
    font-size: 10px;
    padding: 4px 6px;
  }
  .meter-row {
    grid-template-columns: 60px 52px minmax(30px, 1fr);
    gap: 10px;
  }
  .meter-number {
    font-size: 12px;
  }
  .meter-label {
    font-size: 12px;
  }
  .meter-wrap {
    height: 14px;
  }
  .meters {
    gap: 11px;
  }
  .node-note {
    font-size: 11px;
    margin: 10px 0;
  }
  .graph,
  .history-placeholder {
    height: 128px;
  }
  .fact {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .fact.net-fact {
    grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
  }
  .fact strong {
    font-size: 11px;
  }
  .fact > span:first-child {
    font-size: 11px;
  }
  .card-facts {
    gap: 8px;
    margin-bottom: 14px;
  }
  .node-footer {
    margin: 0 -14px;
    padding: 10px 14px;
    font-size: 10px;
  }
  .overview-strip {
    margin-bottom: 15px;
  }
  .overview-strip > div {
    padding: 11px 10px;
  }
  .overview-strip small {
    font-size: 9px;
  }
  .overview-strip > div:nth-child(n + 4) {
    padding: 10px;
  }
  .overview-strip .summary-rate {
    font-size: 12px;
  }
  .overview-strip > div:nth-child(n + 4) > span {
    font-size: 9px;
  }
  .status-cell:nth-child(3) {
    display: none;
  }
  .statusbar {
    gap: 3px;
  }
  .status-refresh {
    max-width: 175px;
  }
  .status-ready {
    min-width: 125px;
  }
  .status-cell.spacer {
    display: none;
  }
  .status-refresh {
    margin-left: auto;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .dialog-body {
    padding: 17px 12px;
  }
  .dialog-title {
    min-height: 36px;
  }
  .dialog-title .title-btn {
    width: 28px;
    height: 28px;
  }
  .modal-list > div {
    font-size: 11px;
    gap: 6px;
  }
  .detail-header .detail-flag {
    width: 50px;
    height: 35px;
  }
  .detail-header {
    gap: 13px;
  }
  .detail-header h1 {
    font-size: 18px;
  }
  .detail-header p {
    font-size: 10px;
    gap: 5px;
  }
  .detail-navigation > span {
    display: none;
  }
  .detail-inner {
    padding: 13px 10px 20px;
  }
  .detail-tabs {
    gap: 2px;
    padding: 0;
  }
  .detail-tab {
    font-size: 11px;
    padding: 10px 9px;
  }
  .detail-sections {
    padding: 14px 9px;
  }
  .properties div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
  }
  .properties dt,
  .properties dd {
    font-size: 11px;
  }
  .detail-meter .meter-row {
    grid-template-columns: 76px 43px minmax(20px, 1fr);
    gap: 6px;
  }
  .detail-meter .meter-label,
  .detail-meter .meter-number {
    font-size: 10px;
  }
  .detail-graph .graph {
    height: 180px;
  }
  .graph-time {
    font-size: 7px;
  }
  .skeleton-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-banner a {
    display: none;
  }
  .history-controls {
    gap: 8px;
  }
  .history-controls .classic-button {
    font-size: 10px;
    min-height: 30px;
    padding: 5px 8px;
  }
}
@media (max-width: 350px) {
  .brand-kicker {
    display: none;
  }
  .desktop-brand > img {
    width: 24px;
    height: 24px;
  }
  .overview-strip > div {
    padding: 10px 7px;
  }
  .overview-strip > div:nth-child(n + 4) {
    grid-column: span 3;
    border-top: 1px solid var(--sf-line);
  }
  .overview-strip > div:nth-child(5):before {
    display: none;
  }
  .detail-tab {
    font-size: 10px;
    padding: 10px 7px;
  }
  .status-ready {
    min-width: 113px;
    font-size: 8px;
  }
  .status-refresh {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .node-window:hover {
    transform: none;
  }
}
/* Room for eight readable windows on a standard desktop, with compact chrome. */
@media (min-width: 901px) {
  .overview-strip > div {
    padding: 11px 15px;
  }
  .node-body {
    padding: 9px 11px 0;
  }
  .node-identity {
    min-height: 39px;
  }
  .node-note {
    margin: 5px 0 7px;
    min-height: 13px;
  }
  .bevel-line {
    margin-bottom: 9px;
  }
  .meters {
    gap: 7px;
    margin-bottom: 9px;
  }
  .graph,
  .history-placeholder {
    height: 102px;
    margin: 8px 0 10px;
  }
  .card-facts {
    gap: 6px;
    margin-bottom: 10px;
  }
  .node-footer {
    padding: 7px 11px;
  }
}
@media (min-width: 1360px) {
  .node-grid {
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  }
}
.graph-time {
  font-size: 9px;
}
.graph-scale {
  font-size: 9px;
}
@media (max-width: 700px) {
  .graph-time,
  .graph-scale {
    font-size: 8px;
  }
}
.node-page:focus {
  outline: none;
}
/* One traffic meter occupies the existing resource area without stretching cards. */
.node-window .meters:has(.traffic-meter) {
  gap: 5px;
  margin-bottom: 3px;
}
.traffic-value {
  position: absolute;
  inset: 0;
  font: 9px var(--mono);
  line-height: 10px;
  text-align: right;
  padding-right: 3px;
  color: #18352d;
  text-shadow: 0 1px #ffffffaa;
  white-space: nowrap;
}
.probe-grid {
  display: block;
}
.probe-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.probe-grid > .graph {
  height: 240px;
}
.probe-heading strong {
  display: flex;
  align-items: center;
  gap: 6px;
}
.probe-heading i {
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid #777;
}
.probe-unconfigured {
  min-height: 0;
}
@media (max-width: 540px) {
  .probe-legend {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .probe-card {
    padding: 8px;
  }
  .probe-card p {
    margin-bottom: 0;
  }
}
.node-slot {
  min-width: 0;
  container-type: inline-size;
}
@media (min-width: 701px) {
  .node-slot > .node-window {
    width: 450px;
    max-width: none;
    zoom: calc(100cqw / 450px);
  }
}
@media (min-width: 901px) {
  .node-grid {
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .node-slot .node-title {
    min-height: 33px;
  }
  .node-slot .node-footer {
    margin: 0 -11px;
  }
}
/* One flag in the title; location and group form a single metadata line. */
.node-identity .identity-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.node-identity .identity-text strong {
  font-size: 13px;
  flex: none;
}
.node-identity .country-label {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Classic beveled controls share the same chrome as window buttons. */
.toolbar-right select,
#history-range {
  appearance: none;
  background-color: var(--face);
  border: 1px solid;
  border-color: var(--sf-hi) var(--sf-text-mute) var(--sf-text-mute) var(--sf-hi);
  box-shadow:
    inset -1px -1px #929088,
    inset 1px 1px var(--sf-line);
  padding: 3px 28px 3px 8px;
  color: var(--sf-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24'%3E%3Cpath d='M1 2H21V22H1Z' fill='%23d4d0c8' stroke='%23929088'/%3E%3Cpath d='M2 21V3H20' fill='none' stroke='white'/%3E%3Cpath d='M7 10H15L11 14Z' fill='%2320242b'/%3E%3C/svg%3E");
  background-position: right 2px center;
  background-repeat: no-repeat;
  font-size: 13px;
  cursor: pointer;
}
.toolbar-right select option,
#history-range option {
  background: var(--face);
  color: var(--sf-text);
}
.navigation-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 3px;
  flex: none;
}
.navigation-toggle .pixel-pc {
  margin: 0;
}
.brand-toggle {
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.brand-toggle img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
.brand-toggle:active img {
  transform: translate(1px, 1px);
}
.scope-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
}
.scope-icon .pixel-pc {
  margin: 0;
}
.scope-icon .pc-screen {
  background: #3a99bc;
}
.view-control {
  position: relative;
  flex: none;
}
.view-select {
  height: 32px;
  min-width: 112px;
  padding: 3px 29px 3px 9px;
  text-align: left;
  color: var(--sf-text);
  background: var(--face);
  border: 1px solid;
  border-color: var(--sf-hi) var(--sf-text-mute) var(--sf-text-mute) var(--sf-hi);
  box-shadow:
    inset -1px -1px #929088,
    inset 1px 1px var(--sf-line);
}
.view-select::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 13px;
  border: 4px solid transparent;
  border-top-color: var(--sf-text);
}
.view-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  width: 100%;
  min-width: 0;
  z-index: 80;
  background: var(--face);
  padding: 3px;
  border: 1px solid;
  border-color: var(--sf-hi) var(--sf-text-mute) var(--sf-text-mute) var(--sf-hi);
  box-shadow:
    inset -1px -1px #929088,
    2px 3px #0004;
}
.view-options [role="option"] {
  display: block;
  width: 100%;
  min-height: 32px;
  border: 0;
  padding: 5px 8px;
  background: transparent;
  color: var(--sf-text);
  text-align: left;
}
.view-options [role="option"]:hover,
.view-options [role="option"]:focus-visible {
  background: var(--blue);
  color: var(--sf-hi);
  outline: 1px dotted var(--sf-hi);
  outline-offset: -3px;
}
.window-glyph {
  position: relative;
  width: 12px;
  height: 12px;
}
.window-glyph::before,
.window-glyph::after {
  content: "";
  position: absolute;
}
.glyph-min::before {
  left: 2px;
  bottom: 2px;
  width: 8px;
  height: 2px;
  background: #111;
}
.glyph-max::before {
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 1px solid #111;
  border-top-width: 2px;
}
.glyph-close::before {
  left: 1px;
  top: 1px;
  width: 2px;
  height: 2px;
  background: #111;
  box-shadow:
    2px 2px #111,
    4px 4px #111,
    6px 6px #111,
    8px 8px #111,
    8px 0 #111,
    6px 2px #111,
    2px 6px #111,
    0 8px #111;
}
.glyph-restore::before {
  left: 4px;
  top: 1px;
  width: 7px;
  height: 7px;
  border: 1px solid #111;
  background: var(--face);
}
.glyph-restore::after {
  left: 1px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid #111;
  border-top-width: 2px;
  background: var(--face);
}
@media (max-width: 700px) {
  .brand-toggle {
    width: 32px;
    height: 34px;
  }
  .brand-toggle img {
    width: 29px;
    height: 29px;
  }
  .window-actions .title-btn {
    position: relative;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .window-actions .title-btn::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--face);
    border: 1px solid;
    border-color: var(--sf-hi) var(--sf-shade) var(--sf-shade) var(--sf-hi);
    box-shadow: inset -1px -1px #8a8780;
  }
  .window-actions .title-btn:hover::before {
    background: var(--sf-face-hi);
  }
  .window-actions .title-btn:active::before {
    border-color: var(--sf-shade) var(--sf-hi) var(--sf-hi) var(--sf-shade);
  }
  .window-actions .title-btn:active .window-glyph {
    transform: translate(1px, 1px);
  }
}
.tree-folder-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  padding: 6px 2px;
}
.tree-folder-toggle:hover {
  background: var(--sf-hover);
}
.tree-folder-toggle .tree-toggle {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid;
  border-color: var(--sf-hi) var(--sf-text-mute) var(--sf-text-mute) var(--sf-hi);
  background: var(--face);
  box-shadow:
    inset -1px -1px #929088,
    inset 1px 1px var(--sf-line);
  font-size: 0;
  flex: none;
}
.tree-folder-toggle .tree-toggle::before,
.tree-folder-toggle[aria-expanded="false"] .tree-toggle::after {
  content: "";
  position: absolute;
  background: var(--sf-text);
}
.tree-folder-toggle .tree-toggle::before {
  width: 8px;
  height: 2px;
  left: 4px;
  top: 7px;
}
.tree-folder-toggle[aria-expanded="false"] .tree-toggle::after {
  width: 2px;
  height: 8px;
  left: 7px;
  top: 4px;
}
.tree-folder-toggle:active .tree-toggle {
  border-color: var(--sf-text-mute) var(--sf-hi) var(--sf-hi) var(--sf-text-mute);
  box-shadow: inset 1px 1px #929088;
  transform: translate(1px, 1px);
}
/* Keep three columns, but make the text legible instead of tiny console labels. */
.node-window .meter-row {
  grid-template-columns: 52px 70px minmax(20px, 1fr);
}
.meter-number,
.fact strong,
.traffic-value,
.overview-strip strong,
.graph-caption > span:last-child,
.graph-time,
.graph-scale,
.properties dd {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}
.node-window .country-label,
.node-window .node-note,
.node-window .node-footer,
.node-window .fact > span:first-child {
  color: var(--sf-text-mute);
}
.node-window .node-title {
  font-size: 19px;
}
.node-window .identity-text strong {
  font-size: 18px;
}
.node-window .country-label,
.node-window .node-note {
  font-size: 15px;
}
.node-window .meter-label,
.node-window .meter-number {
  font-size: 18px;
}
.node-window .fact > span:first-child,
.node-window .fact strong {
  font-size: 16px;
}
.node-window .online-label,
.node-window .node-footer {
  font-size: 14px;
}
.node-window .graph-caption {
  font-size: 14px;
}
.node-window .graph-time,
.node-window .graph-scale,
.node-window .traffic-value {
  font-size: 12px;
}
.node-window .traffic-value {
  line-height: 12px;
}
.node-window .traffic-meter .meter-wrap {
  height: 16px;
}
@media (max-width: 700px) {
  .node-window .meter-row {
    grid-template-columns: 52px 58px minmax(20px, 1fr);
  }
  .node-window .node-title {
    font-size: 15px;
  }
  .node-window .identity-text strong,
  .node-window .meter-label,
  .node-window .meter-number {
    font-size: 14px;
  }
  .node-window .country-label,
  .node-window .node-note,
  .node-window .fact > span:first-child,
  .node-window .fact strong {
    font-size: 12px;
  }
  .node-window .online-label,
  .node-window .node-footer {
    font-size: 11px;
  }
  .node-window .graph-caption {
    font-size: 12px;
  }
  .node-window .graph-time,
  .node-window .graph-scale,
  .node-window .traffic-value {
    font-size: 10px;
  }
}
/* ---------------------------------------------------------------------------
   列表视图：ServerStatus 风格的紧凑表格
   --------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}
.list-view {
  margin: 0 0 10px;
  padding: 2px;
  background: var(--sf-strip);
  border: 1px solid #8f8c85;
  box-shadow:
    inset 1px 1px var(--sf-hi),
    1px 2px 0 var(--sf-shadow);
}
.list-scroll {
  overflow-x: auto;
  scrollbar-color: var(--sf-scroll) var(--sf-sunken);
}
.node-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--sf-table);
  font-size: 12px;
}
.node-table .col-name {
  width: 16%;
}
.node-table .col-location {
  width: 12%;
}
.node-table .col-status {
  width: 10%;
}
.node-table .col-cpu,
.node-table .col-mem,
.node-table .col-disk {
  width: 9%;
}
.node-table .col-ping {
  width: 7%;
}
.node-table .col-uptime {
  width: 9%;
}
.node-table .col-net {
  width: 10%;
}
.node-table .col-note {
  width: 9%;
}
.node-table thead th {
  position: sticky;
  top: -1px;
  z-index: 2;
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  color: var(--sf-text-hi);
  background: linear-gradient(90deg, var(--blue), #27538f);
  border: 1px solid;
  border-color: #5a7fb5 #0b1f52 #0b1f52 #5a7fb5;
}
.node-table caption {
  text-align: left;
}
.list-row {
  border-bottom: 0;
  cursor: pointer;
}
.list-row:nth-child(even) {
  background: var(--sf-zebra);
}
.list-row:hover,
.list-row:focus-visible {
  background: var(--sf-focus-bg);
  outline: 1px dotted var(--blue);
  outline-offset: -2px;
}
.list-row > * {
  padding: 7px 8px;
  vertical-align: middle;
  min-width: 0;
}
.list-row.offline {
  color: #6c7176;
  background: var(--sf-text-hi);
}
.list-name {
  font-weight: 700;
  color: var(--sf-text);
  border-left: 1px solid var(--sf-line);
}
.node-table tbody tr:not(:first-child) > * {
  border-top: 1px solid var(--sf-line);
}
.node-table tbody th,
.node-table tbody td {
  border-right: 1px solid var(--sf-line);
}
.node-table tbody tr > *:last-child {
  border-right: 0;
}
.list-name,
.list-location {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.list-name .truncate {
  max-width: calc(100% - 30px);
  vertical-align: middle;
}
/* 节点前竖条已取消 */
.list-mark {
  display: none;
}
.list-flag {
  display: inline-block;
  width: 17px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid #8f8c85;
  object-fit: cover;
  background: var(--sf-hi);
}
.list-location {
  font-size: 11px;
  color: #4a4f56;
}
.list-location strong {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--sf-text);
}
.list-location .country-label {
  display: block;
  font-size: 10px;
  color: #7d7b74;
}
.list-status {
  font-size: 11px;
  white-space: nowrap;
}
.list-status .online-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.list-status small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--sf-text-dim);
}
.list-meter {
  white-space: nowrap;
}
.list-meter-number {
  display: block;
  font: 11px var(--mono);
  color: #29354c;
}
.list-meter-wrap {
  margin-top: 4px;
  height: 7px;
  background: var(--sf-track);
  border: 1px solid #a5a29a;
  box-shadow: inset 1px 1px var(--sf-bevel-lo);
}
.list-traffic strong {
  display: block;
  font: 11px var(--mono);
  white-space: nowrap;
}
.list-traffic .net-down {
  color: var(--net-down);
}
.list-traffic .net-up {
  color: var(--net-up);
}
.list-ping,
.list-uptime {
  font: 11px var(--mono);
  color: #414750;
  white-space: nowrap;
}
.list-note {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  color: #5d626a;
}
.list-row.row-min .list-location .country-label,
.list-row.row-min .list-status small,
.list-row.row-min .list-meter-wrap {
  visibility: hidden;
}
@media (max-width: 1100px) {
  .node-table {
    min-width: 820px;
  }
  .node-table .col-note {
    width: 0;
  }
  .list-note {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   紧凑卡片视图：固定一行四列（独立于"宽屏卡片列数"配置）
   置于文件末尾以确保覆盖上方各媒体查询中的 .node-grid 列数声明
   --------------------------------------------------------------------------- */
.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
/* 紧凑视图优先保证一行四列；仅在确实放不下时才逐级降列 */
@media (max-width: 900px) {
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 540px) {
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 380px) {
  .compact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ===========================================================================
   夜间模式：整体压至纯黑（置于文件末尾以确保覆盖上方全部规则）
   --------------------------------------------------------------------------- */
/* 顶层容器 */
[data-theme="dark"],
[data-theme="dark"] body {
  background: #000000 !important;
}
[data-theme="dark"] .desktop-shell,
[data-theme="dark"] .content,
[data-theme="dark"] .toolbar,
[data-theme="dark"] .overview-strip,
[data-theme="dark"] .statusbar,
[data-theme="dark"] .win-panel,
[data-theme="dark"] .detail-sections,
[data-theme="dark"] .properties,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .tree-scroll {
  background: #000000 !important;
}

/* 卡片本体：背景、灰边、悬停灰影全部压黑 */
[data-theme="dark"] .node-window,
[data-theme="dark"] .skeleton-card {
  background: #000000 !important;
  border-color: #1c1c1c #000000 #000000 #1c1c1c !important;
  box-shadow:
    inset -1px -1px #000000,
    1px 2px 0 #000000 !important;
}
[data-theme="dark"] .node-window:hover {
  box-shadow:
    inset -1px -1px #000000,
    2px 4px 0 #000000 !important;
}

/* 标题栏（在线蓝渐变 / 离线灰渐变）统一纯黑 */
[data-theme="dark"] .node-title,
[data-theme="dark"] .classic-title,
[data-theme="dark"] .card-offline .node-title {
  background: #000000 !important;
}
[data-theme="dark"] .node-table thead th {
  background: #000000 !important;
  border-color: #333333 #000000 #000000 #333333 !important;
}

/* 列表 / 表格 / 输入框 */
[data-theme="dark"] .node-table,
[data-theme="dark"] .node-table tbody,
[data-theme="dark"] .node-table tr,
[data-theme="dark"] .list-view,
[data-theme="dark"] .list-row,
[data-theme="dark"] .history-placeholder,
[data-theme="dark"] .toolbar-search,
[data-theme="dark"] .toolbar-search input {
  background: #000000 !important;
}

/* 悬停态不再泛灰 */
[data-theme="dark"] .classic-button:hover,
[data-theme="dark"] .tree-tools button:hover,
[data-theme="dark"] .tree-folder-toggle:hover {
  background: #161616 !important;
}

/* ===========================================================================
   夜间模式：文字可读性修正
   以下选择器在基础规则中写死了适配浅色背景的深色文字（多数 R/G/B < 0x8f），
   在纯黑背景上对比度不足。此处统一提亮，保证清晰可读。
   --------------------------------------------------------------------------- */

/* —— 主要标题 / 数值：最亮 —— */
[data-theme="dark"] .overview-strip strong,
[data-theme="dark"] .detail-header h1,
[data-theme="dark"] .identity-text strong,
[data-theme="dark"] .title-btn {
  color: var(--sf-text) !important;
}

/* —— 正文 / 列表主色 —— */
[data-theme="dark"] .nav-row,
[data-theme="dark"] .meter-number,
[data-theme="dark"] .traffic-value,
[data-theme="dark"] .dialog-body p,
[data-theme="dark"] .list-meter-number,
[data-theme="dark"] .list-location,
[data-theme="dark"] .list-location .country-label,
[data-theme="dark"] .list-ping,
[data-theme="dark"] .list-uptime,
[data-theme="dark"] .list-note,
[data-theme="dark"] .status-cell,
[data-theme="dark"] .status-ready,
[data-theme="dark"] .detail-muted,
[data-theme="dark"] .detail-header p,
[data-theme="dark"] .detail-navigation,
[data-theme="dark"] .detail-banner,
[data-theme="dark"] .detail-tab,
[data-theme="dark"] .history-controls,
[data-theme="dark"] .modal-list > div > span:last-child,
[data-theme="dark"] .flag-fallback,
[data-theme="dark"] .list-row.offline {
  color: var(--sf-text-2) !important;
}

/* —— 次级 / 说明文字：中性灰 —— */
[data-theme="dark"] .brand-kicker,
[data-theme="dark"] .session-label,
[data-theme="dark"] .country-label,
[data-theme="dark"] .node-note,
[data-theme="dark"] .meter-label,
[data-theme="dark"] .graph-scale,
[data-theme="dark"] .graph-time,
[data-theme="dark"] .traffic-block span,
[data-theme="dark"] .probe-card p,
[data-theme="dark"] .fact > span:first-child,
[data-theme="dark"] .node-footer,
[data-theme="dark"] .restore-row,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .empty-state small,
[data-theme="dark"] .history-placeholder,
[data-theme="dark"] button:disabled {
  color: var(--sf-text-mute) !important;
}

/* —— 语义色：保持色相但提亮（置于最后，确保覆盖上方分组）—— */
[data-theme="dark"] .overview-strip .summary-online,
[data-theme="dark"] .online-label,
[data-theme="dark"] .traffic-remaining,
[data-theme="dark"] .probe-heading span {
  color: #6fd48f !important;
}
[data-theme="dark"] .node-note.state-note,
[data-theme="dark"] .demo-banner,
[data-theme="dark"] .demo-banner a {
  color: #e0c06a !important;
}

/* ===========================================================================
   三网延时（电信 / 联通 / 移动）
   --------------------------------------------------------------------------- */

/* —— 卡片内三网延时块 —— */
.card-ping {
  margin: -4px 0 12px;
}
.card-ping-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
}
.cp-item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  line-height: 1.3;
  font-size: 10px;
}
.cp-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset;
}
.cp-label {
  flex: none;
  color: #74756e;
}
.cp-val {
  font: 11px var(--mono);
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #263c35;
}
.cp-bad {
  color: #a94434;
}

/* 紧凑卡片形态下略收紧 */
.card-compact .card-ping {
  margin: -2px 0 8px;
}
.card-compact .cp-label {
  display: none;
}

/* —— 列表内三网延时单元格 —— */
.list-ping3 {
  white-space: nowrap;
}
.list-ping3 .cp3-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 7px;
  font: 11px var(--mono);
}
.list-ping3 .cp3-item:last-child {
  margin-right: 0;
}
.list-ping3 .cp3-tag {
  color: #4a4f56;
  font-size: 10px;
  text-transform: uppercase;
}
.list-ping3 .cp3-na {
  color: var(--sf-text-dim);
}
.list-ping3 strong {
  font-weight: normal;
}

/* —— 暗色模式适配 —— */
[data-theme="dark"] .cp-label,
[data-theme="dark"] .list-ping3 .cp3-tag {
  color: var(--sf-text-mute) !important;
}
[data-theme="dark"] .cp-val,
[data-theme="dark"] .list-ping3 strong {
  color: var(--sf-text-2) !important;
}
[data-theme="dark"] .cp-bad,
[data-theme="dark"] .list-ping3 .cp-bad {
  color: #ff8a75 !important;
}

/* —— 彩蛋主题适配 —— */
[data-theme="easter"] .cp-label,
[data-theme="easter"] .list-ping3 .cp3-tag {
  color: var(--sf-text-mute) !important;
}
[data-theme="easter"] .cp-val,
[data-theme="easter"] .list-ping3 strong {
  color: var(--sf-text-2) !important;
}
[data-theme="easter"] .cp-bad,
[data-theme="easter"] .list-ping3 .cp-bad {
  color: #8aff75 !important;
}

/* ===========================================================================
   主题切换按钮 + 列表列宽微调
   --------------------------------------------------------------------------- */

.header-theme {
  min-width: auto;
  padding: 0 12px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .header-theme .btn-text,
  .header-refresh .btn-text {
    display: none;
  }
}

/* 列表视图：合并后的延迟列 */
.col-ping {
  width: 280px;
  min-width: 240px;
}
.list-ping-merged {
  white-space: nowrap;
  vertical-align: middle;
}
.list-ping-merged .lp-carrier {
  display: inline;
  margin-right: 8px;
  font: 11px var(--mono);
}
.list-ping-merged .lp-carrier:last-child {
  margin-right: 0;
}
.list-ping-merged .lp-name {
  margin-right: 1px;
}
.list-ping-merged .lp-val {
  color: #111;
}
[data-theme="dark"] .list-ping-merged .lp-val {
  color: var(--sf-text-2);
}
[data-theme="dark"] {
  --net-down: #35e07a;
}

/* —— 彩蛋主题：spot-probe 默认暗色风格主要覆盖 —— */
[data-theme="easter"],
[data-theme="easter"] body,
[data-theme="easter"] .desktop-shell,
[data-theme="easter"] .content,
[data-theme="easter"] .win-panel,
[data-theme="easter"] .detail-sections,
[data-theme="easter"] .properties,
[data-theme="easter"] .sidebar,
[data-theme="easter"] .tree-scroll,
[data-theme="easter"] .node-window,
[data-theme="easter"] .skeleton-card {
  background: #0f1218 !important;
}
[data-theme="easter"] .desktop-shell {
  border-color: #2a323f;
}
[data-theme="easter"] .node-title,
[data-theme="easter"] .classic-title,
[data-theme="easter"] .node-table thead th {
  background: #161a22 !important;
  border-color: #2a323f #0f1218 #0f1218 #2a323f !important;
}
[data-theme="easter"] .classic-button {
  background: #1e242e;
  border-color: #3d4757 #2a323f #2a323f #3d4757;
  color: #e8ecf3;
}
[data-theme="easter"] .classic-button:hover {
  background: #2a323f;
}
[data-theme="easter"] .node-window {
  border-color: #2a323f #1a1f28 #1a1f28 #2a323f;
}
[data-theme="easter"] .overview-strip > div {
  background: #161a22;
  border-color: #2a323f;
}
[data-theme="easter"] .meter-fill {
  background: linear-gradient(180deg, #5b8cff, #3a5bbf);
}
[data-theme="easter"] .online-label.online {
  background: #1d3326;
  border-color: #2f5a3d;
  color: #34d399;
}
[data-theme="easter"] .online-label.offline {
  background: #3a1f1f;
  border-color: #5c2a2a;
  color: #f87171;
}
[data-theme="easter"] .online-label.warning,
[data-theme="easter"] .online-label.pending {
  background: #3d3115;
  border-color: #6a5626;
  color: #fbbf24;
}
[data-theme="easter"] .summary-online {
  color: #34d399 !important;
}
[data-theme="easter"] .net-down {
  color: #34d399 !important;
}
[data-theme="easter"] .net-up {
  color: #f87171 !important;
}
[data-theme="easter"] .list-ping-merged .lp-val {
  color: #e8ecf3;
}

.list-ping3 .cp3-item {
  margin-bottom: 2px;
}
/* ==== EASTER MUSIC PLAYER CSS ==== */
/* ===========================================================================
   彩蛋主题：音乐播放器（常驻 / 四音源 / 彩虹迷你条 / 可拖动吸附 / 最小化）
   面板配色跟随主题变量（--sf-* / --blue），浅色皮肤下自动变浅；
   迷你条的高饱和七彩虹与光晕不参与换肤，保持鲜艳。
   --------------------------------------------------------------------------- */
.ee-player { display: none; }
.ee-player.ee-on { display: contents; }

/* —— 迷你条：高饱和七彩虹 + 光晕 + 流光 —— */
.ee-player-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0044,
    #ff6a00,
    #ffdd00,
    #00e676,
    #00b0ff,
    #7c4dff,
    #ff00cc,
    #ff0044
  );
  background-size: 400% 100%;
  animation: ee-rainbow 3.2s linear infinite;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1px;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(255, 0, 110, 0.5),
    0 0 26px rgba(0, 176, 255, 0.35);
  transition: box-shadow 0.15s, filter 0.15s;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
/* 外圈彩虹光晕（绝对定位，不参与 flex 布局） */
.ee-player-bar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff0044,
    #ff6a00,
    #ffdd00,
    #00e676,
    #00b0ff,
    #7c4dff,
    #ff00cc,
    #ff0044
  );
  background-size: 400% 100%;
  animation: ee-rainbow 3.2s linear infinite;
  filter: blur(6px) saturate(1.4);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}
@keyframes ee-rainbow {
  from { background-position: 0% 50%; }
  to { background-position: 400% 50%; }
}
.ee-player-bar:hover {
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 26px rgba(255, 0, 110, 0.65),
    0 0 34px rgba(0, 176, 255, 0.5);
}
.ee-player-bar:active { cursor: grabbing; }
.ee-player-bar:focus-visible {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 26px rgba(255, 0, 110, 0.65),
    0 0 0 4px rgba(255, 255, 255, 0.7);
}
.ee-player-bar svg {
  width: 11px;
  height: 11px;
  fill: #fff;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.ee-bar-text {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.ee-player.open .ee-player-bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ee-player-bar,
  .ee-player-bar::before { animation: none; background-position: 25% 50%; }
}

/* —— 展开面板 —— */
.ee-player-panel {
  position: fixed;
  right: 16px;
  bottom: 66px;
  z-index: 9001;
  display: none;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: min(82vh, 720px);
  overflow: auto;
  border: 1px solid var(--sf-border, #e8ebf1);
  border-radius: 12px;
  background: var(--sf-panel, #ffffff);
  color: var(--sf-text, #1c2231);
  box-shadow: 0 12px 32px -8px rgba(16, 24, 40, 0.16), 0 4px 10px -4px rgba(16, 24, 40, 0.08);
  padding: 12px;
}
.ee-player.open .ee-player-panel { display: block; }

/* —— 拖动中 —— */
.ee-dragging {
  transition: none !important;
  opacity: 0.92;
  box-shadow: 0 20px 44px -10px rgba(16, 24, 40, 0.28) !important;
  cursor: grabbing !important;
}

/* —— 标题栏（拖动把手 + 最小化按钮） —— */
.ee-player-head {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ee-player-head:active { cursor: grabbing; }
.ee-player-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue, #193cb8);
  pointer-events: none;
}
.ee-player-title svg { width: 15px; height: 15px; fill: var(--blue, #193cb8); }
.ee-player-mini {
  border: 1px solid var(--sf-border, #e8ebf1);
  background: var(--sf-panel2, #f2f4f8);
  color: var(--sf-text-3, #667085);
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  line-height: 0;
  display: grid;
  place-items: center;
}
.ee-player-mini:hover { background: var(--sf-hover, #eef3ff); color: var(--sf-text, #1c2231); }
.ee-player-mini svg { width: 16px; height: 16px; fill: currentColor; }

/* —— 当前曲目 —— */
.ee-player-now { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ee-cover {
  width: 52px; height: 52px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #eef3ff, #dbe4fe);
  border: 1px solid var(--sf-border, #e8ebf1);
}
.ee-cover.playing { background: linear-gradient(135deg, #3d5bd9, #22d3ee); }
.ee-cover-txt { font-size: 20px; font-weight: 700; color: var(--blue, #193cb8); }
.ee-cover.playing .ee-cover-txt { color: #ffffff; }
.ee-now-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ee-now-meta strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ee-now-meta small { font-size: 11px; color: var(--sf-text-3, #667085); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* —— 进度 / 音量 —— */
.ee-progress, .ee-volume {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--sf-text-3, #667085); font-family: var(--mono);
}
.ee-progress { margin-bottom: 8px; }
.ee-volume { margin: 8px 0 10px; }
.ee-volume svg { width: 15px; height: 15px; fill: var(--sf-text-3, #667085); flex: none; }
.ee-player input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--sf-track, #eef0f5); outline: none; cursor: pointer; min-width: 0;
}
.ee-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue, #193cb8); border: 2px solid var(--sf-panel, #ffffff);
}
.ee-player input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border: 2px solid var(--sf-panel, #ffffff);
  border-radius: 50%; background: var(--blue, #193cb8);
}

/* —— 控制按钮 —— */
.ee-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.ee-controls button {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--sf-border, #e8ebf1); border-radius: 50%;
  background: var(--sf-panel2, #f2f4f8); color: var(--sf-text-2, #3f4657); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ee-controls button:hover { background: var(--sf-hover, #eef3ff); color: var(--sf-text, #1c2231); }
.ee-controls button svg { width: 17px; height: 17px; fill: currentColor; }
.ee-controls button.ee-main {
  width: 44px; height: 44px;
  background: var(--blue, #193cb8); border-color: var(--blue, #193cb8); color: #ffffff;
}
.ee-controls button.ee-main:hover { background: #3d5bd9; }
.ee-controls button.ee-main svg { width: 20px; height: 20px; }

/* —— 标签页 —— */
.ee-tabs {
  display: flex; gap: 4px; margin: 10px 0 8px;
  border-bottom: 1px solid var(--sf-border, #e8ebf1); padding-bottom: 4px;
}
.ee-tab {
  flex: 1; border: 0; border-radius: 6px;
  background: transparent; color: var(--sf-text-3, #667085);
  padding: 5px 4px; font-size: 11px; cursor: pointer;
}
.ee-tab.active { background: var(--sf-focus-bg, #eef3ff); color: var(--blue, #193cb8); font-weight: 700; }
.ee-pane { display: none; max-height: 240px; overflow: auto; }
.ee-pane.active { display: block; }

/* —— 音源切换（四档，可换行） —— */
.ee-src { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.ee-src-label { font-size: 10px; color: var(--sf-text-3, #667085); margin-right: 2px; }
.ee-src-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 9px;
  border: 1px solid var(--sf-border, #e8ebf1); border-radius: 6px;
  background: var(--sf-panel2, #f2f4f8); color: var(--sf-text-3, #667085);
  font-size: 11px; cursor: pointer; white-space: nowrap;
}
.ee-src-btn:hover { background: var(--sf-hover, #eef3ff); color: var(--sf-text, #1c2231); }
.ee-src-btn.active {
  background: var(--sf-focus-bg, #eef3ff); border-color: var(--blue, #193cb8);
  color: var(--blue, #193cb8); font-weight: 700;
}
.ee-src-btn svg { width: 12px; height: 12px; fill: currentColor; }
.ee-src-btn[hidden] { display: none; }

/* —— YouTube 添加行 —— */
.ee-yt-add { display: flex; gap: 5px; margin-bottom: 8px; }
.ee-yt-add[hidden] { display: none; }
.ee-yt-add input {
  flex: 1; min-width: 0; height: 28px; padding: 0 8px;
  border: 1px solid var(--sf-border, #e8ebf1); border-radius: 6px;
  background: var(--sf-sunken, #f1f3f7); color: var(--sf-text, #1c2231); font-size: 11px;
}
.ee-yt-add input:focus { border-color: var(--blue, #193cb8); outline: none; }
.ee-yt-add button {
  flex: none; height: 28px; padding: 0 12px;
  border: 1px solid var(--blue, #193cb8); border-radius: 6px;
  background: var(--blue, #193cb8); color: #ffffff;
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.ee-yt-add button:hover { background: #3d5bd9; }

/* —— 提示条 —— */
.ee-notice {
  margin-bottom: 6px; padding: 6px 8px;
  border-radius: 6px; background: #fdf3e3;
  border: 1px solid #e8cf9a; color: #b45309;
  font-size: 10px; line-height: 1.5;
}

/* —— 搜索 —— */
.ee-search { display: flex; gap: 5px; margin-bottom: 8px; }
.ee-search input {
  flex: 1; min-width: 0; height: 28px; padding: 0 8px;
  border: 1px solid var(--sf-border, #e8ebf1); border-radius: 6px;
  background: var(--sf-sunken, #f1f3f7); color: var(--sf-text, #1c2231); font-size: 11px;
}
.ee-search input:focus { border-color: var(--blue, #193cb8); outline: none; }
.ee-search button {
  flex: none; height: 28px; padding: 0 10px;
  border: 1px solid var(--sf-border, #e8ebf1); border-radius: 6px;
  background: var(--sf-panel2, #f2f4f8); color: var(--sf-text, #1c2231); font-size: 11px; cursor: pointer;
}
.ee-search button:hover { background: var(--sf-hover, #eef3ff); }

/* —— 列表 —— */
.ee-list, .ee-results { min-height: 40px; }
.ee-list .ee-empty, .ee-results .ee-empty {
  padding: 12px; text-align: center; color: var(--sf-text-3, #667085); font-size: 11px; line-height: 1.6;
}
.ee-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-bottom: 1px solid var(--sf-line, #eceef3);
  font-size: 12px; cursor: pointer; min-height: 32px;
}
.ee-item:last-child { border-bottom: 0; }
.ee-item:hover { background: var(--sf-hover, #eef3ff); }
.ee-item.active { color: var(--blue, #193cb8); }
.ee-item-idx {
  width: 18px; flex: none; color: var(--sf-text-3, #667085);
  font-family: var(--mono); font-size: 10px; text-align: right;
}
.ee-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ee-item-artist {
  flex: none; max-width: 100px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  color: var(--sf-text-3, #667085); font-size: 11px;
}

/* —— 底部提示 —— */
.ee-tip { margin: 8px 0 0; font-size: 10px; line-height: 1.5; color: var(--sf-text-3, #667085); }

/* —— 移动端 —— */
@media (max-width: 540px) {
  .ee-player-bar { right: 10px; bottom: 10px; }
  .ee-player-panel { width: calc(100vw - 20px); max-width: none; right: 10px; bottom: 10px; }
  .ee-bar-text { max-width: 58px; }
}
/* ==== EASTER LIGHT SKIN CSS ==== */
/* ===========================================================================
   彩蛋主题 · 浅色皮肤
   配色参考 monitor-theme-default（spot-probe 内置默认主题）：
     冷调近白地面 #f7f8fa + 纯白卡片 #ffffff + 描边 #e8ebf1
     唯一强调色为深蓝 #193cb8，状态由绿 / 琥珀 / 红承载
     标签为中性底 + 描边，不给每种状态配淡色底
   实现方式是覆盖 [data-theme="easter"] 的暗色变量与硬编码规则，
   因此不需要改动任何 JS，迷你播放器（七彩虹）保持不变。
   =========================================================================== */

/* ---------------------------------------------------------------- 变量重映射 */
[data-theme="easter"] {
  color-scheme: light;

  /* 地面与卡片：近白地面 + 纯白卡片 */
  --sf-face: #f7f8fa;
  --sf-paper: #ffffff;
  --sf-sunken: #f1f3f7;
  --sf-panel: #ffffff;
  --sf-panel2: #f2f4f8;
  --sf-strip: #fbfbfd;
  --sf-table: #ffffff;
  --sf-tree: #fafbfd;
  --sf-props: #f7f8fa;

  /* 文字：深墨蓝，均满足 WCAG AA */
  --sf-text: #1c2231;
  --sf-text-2: #3f4657;
  --sf-text-3: #667085;
  --sf-text-mute: #667085;
  --sf-text-dim: #8a93a6;
  /* 同时用于「表头文字」与「离线行底色」，这里取浅底，表头文字另行列改 */
  --sf-text-hi: #f1f3f7;

  /* 描边与斜面 */
  --sf-border: #e8ebf1;
  --sf-border2: #dfe3ea;
  --sf-border3: #cfd5df;
  --sf-border4: #c3cad6;
  --sf-bevel-lo: #d5dae3;
  --sf-bevel-lo2: #e3e7ef;
  --sf-hi: #ffffff;
  --sf-hi-dim: #f5f7fb;
  --sf-shade: #c3cad6;
  --sf-shade2: #b6bfcd;
  --sf-line: #eceef3;
  --sf-line2: #dde1e9;
  --sf-scroll: #c3cad6;

  /* 轨道、悬停、骨架 */
  --sf-track: #eef0f5;
  --sf-track-bd: #d6dbe4;
  --sf-track-sh: #c3cad6;
  --sf-face-hi: #eef3ff;
  --sf-hover: #eef3ff;
  --sf-shadow: #cfd5df;
  --sf-skel: #e8ebf1;
  --sf-skel-bar: #dfe3ea;

  /* 页脚、标签页、斑马纹、图表、焦点 */
  --sf-foot: #eceef3;
  --sf-tab: #eef0f5;
  --sf-zebra: #f7f8fa;
  --sf-graph-cap: #193cb8;
  --sf-focus-bg: #eef3ff;
  --sf-focus-bd: #193cb8;

  /* 提示条边框 */
  --sf-warn-bd: #f2dca8;
  --sf-err-bd: #f6cfc7;

  /* 旧变量别名 */
  --face: #f7f8fa;
  --paper: #ffffff;
  --edge: #e8ebf1;

  /* 语义色：深蓝强调 + 绿/琥珀/红三态 */
  --blue: #193cb8;
  --green: #15803d;
  --region-red: #dc2626;
  --region-red-deep: #991b1b;
  --region-yellow: #f59e0b;
  --region-yellow-deep: #b45309;
  --region-blue: #193cb8;
  --region-blue-deep: #0f2a8a;
  --state-offline: #6d28d9;
  --state-offline-deep: #4c1d95;
  --net-up: #dc2626;
  --net-down: #15803d;
  --meter-hi: #3d5bd9;
  --meter-lo: #193cb8;
}

/* ------------------------------------------------- 覆盖 easter 的硬编码暗色规则 */
/* 地面：外壳与滚动区用近白地面 */
[data-theme="easter"],
[data-theme="easter"] body,
[data-theme="easter"] .content,
[data-theme="easter"] .tree-scroll {
  background: #f7f8fa !important;
}
/* 卡片：窗口、面板、属性、侧栏、骨架用纯白 */
[data-theme="easter"] .desktop-shell,
[data-theme="easter"] .win-panel,
[data-theme="easter"] .detail-sections,
[data-theme="easter"] .properties,
[data-theme="easter"] .sidebar,
[data-theme="easter"] .node-window,
[data-theme="easter"] .skeleton-card {
  background: #ffffff !important;
}

[data-theme="easter"] .desktop-shell {
  border-color: #e8ebf1;
}

[data-theme="easter"] .node-title,
[data-theme="easter"] .classic-title,
[data-theme="easter"] .node-table thead th {
  background: #ffffff !important;
  border-color: #e8ebf1 #f7f8fa #f7f8fa #e8ebf1 !important;
}
/* 表头文字：--sf-text-hi 被上面改成了浅底，这里单独给深色字 */
[data-theme="easter"] .node-table thead th {
  color: #1c2231 !important;
}

[data-theme="easter"] .classic-button {
  background: #f2f4f8;
  border-color: #d5dae3 #c3cad6 #c3cad6 #d5dae3;
  color: #1c2231;
}
[data-theme="easter"] .classic-button:hover {
  background: #eef3ff;
}

[data-theme="easter"] .node-window {
  border-color: #e8ebf1 #dfe3ea #dfe3ea #e8ebf1;
}

[data-theme="easter"] .overview-strip > div {
  background: #ffffff;
  border-color: #e8ebf1;
}

[data-theme="easter"] .meter-fill {
  background: linear-gradient(180deg, #3d5bd9, #193cb8);
}

/* 状态标签：中性浅底 + 同色描边 + 深色文字（颜色不作为唯一信号） */
[data-theme="easter"] .online-label.online {
  background: #e7f7ee;
  border-color: #a7d8bb;
  color: #15803d;
}
[data-theme="easter"] .online-label.offline {
  background: #fdeaea;
  border-color: #f3b5b5;
  color: #dc2626;
}
[data-theme="easter"] .online-label.warning,
[data-theme="easter"] .online-label.pending {
  background: #fdf3e3;
  border-color: #e8cf9a;
  color: #b45309;
}

[data-theme="easter"] .summary-online,
[data-theme="easter"] .net-down {
  color: #15803d !important;
}
[data-theme="easter"] .net-up {
  color: #dc2626 !important;
}

[data-theme="easter"] .cp-bad,
[data-theme="easter"] .list-ping3 .cp-bad {
  color: #15803d !important;
}

[data-theme="easter"] .list-ping-merged .lp-val {
  color: #1c2231;
}
/* ==== EASTER INK SKIN CSS ==== */
/* ===========================================================================
   第二套彩蛋主题：INK · 深蓝灵动（非纯黑）
   配色移植自 komari-theme-ink（jacob-bytes/komari-theme-ink，MIT）：
     暗底   oklch(0.14 0.022 265)  →  #050912（蓝紫底，非纯黑）
     primary oklch(0.55 0.16 258)  →  #2d6fcd
     success oklch(0.62 0.13 154)  →  #379c61
     danger  oklch(0.58 0.18 25)   →  #cf4040
     warning oklch(0.72 0.14 70)   →  #dc932e
   落地时按 Monitor Classic 的 --sf-* 变量体系铺开：把底色整体抬到 L≈0.17
   以上保证「非纯黑」，语义色在深色底上适度提亮以保证对比度。
   只做覆盖、不动 JS；七彩虹迷你条保持原样。
   生效条件：<html data-theme="easter" data-ee-skin="ink">
   =========================================================================== */

/* ---------------------------------------------------------------- 变量重映射 */
[data-theme="easter"][data-ee-skin="ink"] {
  color-scheme: dark;

  /* 地面与卡片：深蓝底 + 略亮的卡片层 */
  --sf-face: #0b0f1a;
  --sf-paper: #0b0f1a;
  --sf-sunken: #0e1420;
  --sf-panel: #121826;
  --sf-panel2: #172033;
  --sf-strip: #0d121d;
  --sf-table: #121826;
  --sf-tree: #0e1420;
  --sf-props: #121826;

  /* 文字：冷白 → 蓝灰，均满足 WCAG AA */
  --sf-text: #e6eaf2;
  --sf-text-2: #c3cad8;
  --sf-text-3: #8b95a8;
  --sf-text-mute: #7b8699;
  --sf-text-dim: #6b7688;
  --sf-text-hi: #ffffff;

  /* 描边与斜面 */
  --sf-border: #232c3d;
  --sf-border2: #2c3648;
  --sf-border3: #37425a;
  --sf-border4: #44506b;
  --sf-bevel-lo: #1a2231;
  --sf-bevel-lo2: #202a3b;
  --sf-hi: #1c2537;
  --sf-hi-dim: #1e2739;
  --sf-shade: #2a3446;
  --sf-shade2: #35415a;
  --sf-line: #1e2635;
  --sf-line2: #28324a;
  --sf-scroll: #39445c;

  /* 轨道、悬停、骨架 */
  --sf-track: #162031;
  --sf-track-bd: #232c3d;
  --sf-track-sh: #070a12;
  --sf-face-hi: #16233d;
  --sf-hover: #16233d;
  --sf-shadow: #05070d;
  --sf-skel: #141b29;
  --sf-skel-bar: #1d2536;

  /* 页脚、标签页、斑马纹、图表、焦点 */
  --sf-foot: #0d121d;
  --sf-tab: #141b29;
  --sf-zebra: #0d1320;
  --sf-graph-cap: #4b8ef0;
  --sf-focus-bg: #16233d;
  --sf-focus-bd: #3d7fd6;

  /* 提示条边框 */
  --sf-warn-bd: #4a3f1f;
  --sf-err-bd: #4a2620;

  /* 旧变量别名 */
  --face: #0b0f1a;
  --paper: #121826;
  --edge: #232c3d;

  /* 语义色：蓝为唯一强调，绿/琥珀/红承载状态 */
  --blue: #3d7fd6;
  --green: #35a06a;
  --region-red: #e05252;
  --region-red-deep: #b03a3a;
  --region-yellow: #e0a33f;
  --region-yellow-deep: #b07c22;
  --region-blue: #3d7fd6;
  --region-blue-deep: #2a5fa8;
  --state-offline: #8b6ce0;
  --state-offline-deep: #6a4fbf;
  --net-up: #e05252;
  --net-down: #35a06a;
  --meter-hi: #5b9df0;
  --meter-lo: #2d6fcd;
}

/* ------------------------------------------ 覆盖浅色皮肤留下的硬编码浅色规则 */
/* 地面：外壳与滚动区用深蓝地面 */
[data-theme="easter"][data-ee-skin="ink"],
[data-theme="easter"][data-ee-skin="ink"] body,
[data-theme="easter"][data-ee-skin="ink"] .content,
[data-theme="easter"][data-ee-skin="ink"] .tree-scroll {
  background: #0b0f1a !important;
}
/* 卡片层：窗口、面板、属性、侧栏、骨架 */
[data-theme="easter"][data-ee-skin="ink"] .desktop-shell,
[data-theme="easter"][data-ee-skin="ink"] .win-panel,
[data-theme="easter"][data-ee-skin="ink"] .detail-sections,
[data-theme="easter"][data-ee-skin="ink"] .properties,
[data-theme="easter"][data-ee-skin="ink"] .sidebar,
[data-theme="easter"][data-ee-skin="ink"] .node-window,
[data-theme="easter"][data-ee-skin="ink"] .skeleton-card {
  background: #121826 !important;
}

[data-theme="easter"][data-ee-skin="ink"] .desktop-shell {
  border-color: #232c3d;
}

[data-theme="easter"][data-ee-skin="ink"] .node-title,
[data-theme="easter"][data-ee-skin="ink"] .classic-title,
[data-theme="easter"][data-ee-skin="ink"] .node-table thead th {
  background: #172033 !important;
  border-color: #232c3d #0b0f1a #0b0f1a #232c3d !important;
}
[data-theme="easter"][data-ee-skin="ink"] .node-table thead th {
  color: #c3cad8 !important;
}

[data-theme="easter"][data-ee-skin="ink"] .classic-button {
  background: #172033;
  border-color: #2c3648 #232c3d #232c3d #2c3648;
  color: #e6eaf2;
}
[data-theme="easter"][data-ee-skin="ink"] .classic-button:hover {
  background: #16233d;
  border-color: #3d7fd6 #2c3648 #2c3648 #3d7fd6;
}

[data-theme="easter"][data-ee-skin="ink"] .node-window {
  border-color: #232c3d #2c3648 #2c3648 #232c3d;
}

[data-theme="easter"][data-ee-skin="ink"] .overview-strip > div {
  background: #121826;
  border-color: #232c3d;
}

[data-theme="easter"][data-ee-skin="ink"] .meter-fill {
  background: linear-gradient(180deg, #5b9df0, #2d6fcd);
}

/* 状态标签：深底 + 同色描边 + 亮色文字 */
[data-theme="easter"][data-ee-skin="ink"] .online-label.online {
  background: #12291f;
  border-color: #2f6a4a;
  color: #5ec490;
}
[data-theme="easter"][data-ee-skin="ink"] .online-label.offline {
  background: #2a1518;
  border-color: #6b3336;
  color: #ef7b7b;
}
[data-theme="easter"][data-ee-skin="ink"] .online-label.warning,
[data-theme="easter"][data-ee-skin="ink"] .online-label.pending {
  background: #2a2211;
  border-color: #6e5824;
  color: #ecbb6a;
}

[data-theme="easter"][data-ee-skin="ink"] .summary-online,
[data-theme="easter"][data-ee-skin="ink"] .net-down {
  color: #5ec490 !important;
}
[data-theme="easter"][data-ee-skin="ink"] .net-up {
  color: #ef7b7b !important;
}
[data-theme="easter"][data-ee-skin="ink"] .cp-bad,
[data-theme="easter"][data-ee-skin="ink"] .list-ping3 .cp-bad {
  color: #5ec490 !important;
}
[data-theme="easter"][data-ee-skin="ink"] .list-ping-merged .lp-val {
  color: #e6eaf2;
}

/* 彩蛋播放器：提示条跟随深蓝底 */
[data-theme="easter"][data-ee-skin="ink"] .ee-notice {
  background: #16233d;
  border-color: #2c3a5c;
  color: #c3cad8;
}
[data-theme="easter"][data-ee-skin="ink"] .ee-player-panel {
  border-color: #2c3648;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(61, 127, 214, 0.18);
}
[data-theme="easter"][data-ee-skin="ink"] .ee-player-head {
  background: linear-gradient(180deg, #172033, #121826);
  border-color: #232c3d;
}

/* ==== 电台插件 UI ==== */
/* 跟随当前皮肤变量，浅色 / 深蓝都能用 */
.ee-radio-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ee-radio-btn {
  font: inherit;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--sf-border, #e8ebf1);
  background: var(--sf-panel2, #f2f4f8);
  color: var(--sf-text-2, #3f4657);
  cursor: pointer;
}
.ee-radio-btn:hover {
  background: var(--sf-hover, #eef3ff);
}
.ee-radio-btn.active {
  background: var(--sf-focus-bg, #eef3ff);
  border-color: var(--sf-focus-bd, #193cb8);
  color: var(--blue, #193cb8);
}
.ee-radio-in {
  flex: 1 1 100px;
  min-width: 0;
  font: inherit;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--sf-border, #e8ebf1);
  background: var(--sf-paper, #ffffff);
  color: var(--sf-text, #1c2231);
}
.ee-radio-list {
  max-height: 176px;
  overflow: auto;
  border: 1px solid var(--sf-border, #e8ebf1);
  border-radius: 5px;
  background: var(--sf-panel2, #f2f4f8);
}
.ee-radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  cursor: pointer;
  border-bottom: 1px solid var(--sf-line, #eceef3);
}
.ee-radio-item:last-child {
  border-bottom: 0;
}
.ee-radio-item:hover {
  background: var(--sf-hover, #eef3ff);
}
.ee-radio-item.active {
  background: var(--sf-focus-bg, #eef3ff);
}
.ee-radio-item.active .ee-radio-name {
  color: var(--blue, #193cb8);
  font-weight: 700;
}
.ee-radio-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf-border4, #c3cad6);
}
.ee-radio-item.active .ee-radio-dot {
  background: var(--blue, #193cb8);
  animation: ee-radio-live 1.4s ease-in-out infinite;
}
@keyframes ee-radio-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .ee-radio-item.active .ee-radio-dot { animation: none; }
}
.ee-radio-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--sf-text, #1c2231);
}
.ee-radio-tag {
  flex: 0 0 auto;
  font-size: 9px;
  color: var(--sf-text-3, #667085);
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ee-radio-hint {
  font-size: 10px;
  line-height: 1.5;
  color: var(--sf-text-3, #667085);
  margin-top: 6px;
}

/* 头部「皮肤 / 最小化」两个按钮之间留空隙；电台面板稍高一点 */
.ee-player-head { gap: 4px; }
.ee-pane[data-pane="radio"] { max-height: 268px; }

/* ==== 彩蛋皮肤分段切换 ==== */
.ee-skin {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--sf-line, #eceef3);
}
.ee-skin-label {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--sf-text-3, #667085);
}
.ee-skin-btn {
  flex: 1 1 0;
  font: inherit;
  font-size: 11px;
  padding: 5px 4px;
  border-radius: 6px;
  border: 1px solid var(--sf-border, #e8ebf1);
  background: var(--sf-panel2, #f2f4f8);
  color: var(--sf-text-2, #3f4657);
  cursor: pointer;
  white-space: nowrap;
}
.ee-skin-btn:hover {
  background: var(--sf-hover, #eef3ff);
}
.ee-skin-btn.active {
  background: var(--sf-focus-bg, #eef3ff);
  border-color: var(--sf-focus-bd, #193cb8);
  color: var(--blue, #193cb8);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--sf-focus-bd, #193cb8);
}

/* ==== 彩蛋主题菜单（悬浮入口，独立于播放器） ==== */
.ee-menu {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9002;
  display: none;
  font-family: inherit;
}
.ee-menu.on { display: block; }

.ee-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--sf-panel, #ffffff);
  border: 1px solid var(--sf-border, #e8ebf1);
  color: var(--sf-text, #1c2231);
  box-shadow: 0 6px 18px -6px rgba(16, 24, 40, 0.28);
}
.ee-menu-btn:hover { background: var(--sf-hover, #eef3ff); }
.ee-menu-btn-ico { font-size: 14px; line-height: 1; }

.ee-menu-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 216px;
  padding: 5px;
  background: var(--sf-panel, #ffffff);
  border: 1px solid var(--sf-border, #e8ebf1);
  border-radius: 10px;
  box-shadow: 0 14px 34px -10px rgba(16, 24, 40, 0.34);
}
.ee-menu-title {
  font-size: 10px;
  color: var(--sf-text-3, #667085);
  padding: 3px 7px 5px;
}
.ee-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--sf-text, #1c2231);
}
.ee-menu-item:hover { background: var(--sf-hover, #eef3ff); }
.ee-menu-item.active { background: var(--sf-focus-bg, #eef3ff); }

.ee-menu-ico { font-size: 17px; line-height: 1; flex: 0 0 auto; }
.ee-menu-txt {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ee-menu-txt strong { font-size: 12px; font-weight: 700; }
.ee-menu-txt small { font-size: 10px; color: var(--sf-text-3, #667085); }
.ee-menu-chk {
  flex: 0 0 auto;
  width: 14px;
  text-align: center;
  color: var(--blue, #193cb8);
  font-weight: 700;
}

@media (max-width: 540px) {
  .ee-menu { left: 10px; bottom: 10px; }
  .ee-menu-btn-txt { display: none; }
}

/* ==== CLASSIC LIGHT SKIN CSS ==== */
/* 菜单「1 · 浅色」：把经典复古主题（非彩蛋）整体翻成浅色。
   规则由「彩蛋浅色皮肤」同一套色板改写选择器而来，色值与对比度完全一致。 */

/* ===========================================================================
   经典主题 · 浅色皮肤
   配色参考 monitor-theme-default（spot-probe 内置默认主题）：
     冷调近白地面 #f7f8fa + 纯白卡片 #ffffff + 描边 #e8ebf1
     唯一强调色为深蓝 #193cb8，状态由绿 / 琥珀 / 红承载
     标签为中性底 + 描边，不给每种状态配淡色底
   实现方式是覆盖 html[data-ee-skin="light"] 的暗色变量与硬编码规则，
   因此不需要改动任何 JS，迷你播放器（七彩虹）保持不变。
   =========================================================================== */

/* ---------------------------------------------------------------- 变量重映射 */
html[data-ee-skin="light"] {
  color-scheme: light;

  /* 地面与卡片：近白地面 + 纯白卡片 */
  --sf-face: #f7f8fa;
  --sf-paper: #ffffff;
  --sf-sunken: #f1f3f7;
  --sf-panel: #ffffff;
  --sf-panel2: #f2f4f8;
  --sf-strip: #fbfbfd;
  --sf-table: #ffffff;
  --sf-tree: #fafbfd;
  --sf-props: #f7f8fa;

  /* 文字：深墨蓝，均满足 WCAG AA */
  --sf-text: #1c2231;
  --sf-text-2: #3f4657;
  --sf-text-3: #667085;
  --sf-text-mute: #667085;
  --sf-text-dim: #8a93a6;
  /* 同时用于「表头文字」与「离线行底色」，这里取浅底，表头文字另行列改 */
  --sf-text-hi: #f1f3f7;

  /* 描边与斜面 */
  --sf-border: #e8ebf1;
  --sf-border2: #dfe3ea;
  --sf-border3: #cfd5df;
  --sf-border4: #c3cad6;
  --sf-bevel-lo: #d5dae3;
  --sf-bevel-lo2: #e3e7ef;
  --sf-hi: #ffffff;
  --sf-hi-dim: #f5f7fb;
  --sf-shade: #c3cad6;
  --sf-shade2: #b6bfcd;
  --sf-line: #eceef3;
  --sf-line2: #dde1e9;
  --sf-scroll: #c3cad6;

  /* 轨道、悬停、骨架 */
  --sf-track: #eef0f5;
  --sf-track-bd: #d6dbe4;
  --sf-track-sh: #c3cad6;
  --sf-face-hi: #eef3ff;
  --sf-hover: #eef3ff;
  --sf-shadow: #cfd5df;
  --sf-skel: #e8ebf1;
  --sf-skel-bar: #dfe3ea;

  /* 页脚、标签页、斑马纹、图表、焦点 */
  --sf-foot: #eceef3;
  --sf-tab: #eef0f5;
  --sf-zebra: #f7f8fa;
  --sf-graph-cap: #193cb8;
  --sf-focus-bg: #eef3ff;
  --sf-focus-bd: #193cb8;

  /* 提示条边框 */
  --sf-warn-bd: #f2dca8;
  --sf-err-bd: #f6cfc7;

  /* 旧变量别名 */
  --face: #f7f8fa;
  --paper: #ffffff;
  --edge: #e8ebf1;

  /* 语义色：深蓝强调 + 绿/琥珀/红三态 */
  --blue: #193cb8;
  --green: #15803d;
  --region-red: #dc2626;
  --region-red-deep: #991b1b;
  --region-yellow: #f59e0b;
  --region-yellow-deep: #b45309;
  --region-blue: #193cb8;
  --region-blue-deep: #0f2a8a;
  --state-offline: #6d28d9;
  --state-offline-deep: #4c1d95;
  --net-up: #dc2626;
  --net-down: #15803d;
  --meter-hi: #3d5bd9;
  --meter-lo: #193cb8;
}

/* ------------------------------------------------- 覆盖 easter 的硬编码暗色规则 */
/* 地面：外壳与滚动区用近白地面 */
html[data-ee-skin="light"],
html[data-ee-skin="light"] body,
html[data-ee-skin="light"] .content,
html[data-ee-skin="light"] .tree-scroll {
  background: #f7f8fa !important;
}
/* 卡片：窗口、面板、属性、侧栏、骨架用纯白 */
html[data-ee-skin="light"] .desktop-shell,
html[data-ee-skin="light"] .win-panel,
html[data-ee-skin="light"] .detail-sections,
html[data-ee-skin="light"] .properties,
html[data-ee-skin="light"] .sidebar,
html[data-ee-skin="light"] .node-window,
html[data-ee-skin="light"] .skeleton-card {
  background: #ffffff !important;
}

html[data-ee-skin="light"] .desktop-shell {
  border-color: #e8ebf1;
}

html[data-ee-skin="light"] .node-title,
html[data-ee-skin="light"] .classic-title,
html[data-ee-skin="light"] .node-table thead th {
  background: #ffffff !important;
  border-color: #e8ebf1 #f7f8fa #f7f8fa #e8ebf1 !important;
}
/* 表头文字：--sf-text-hi 被上面改成了浅底，这里单独给深色字 */
html[data-ee-skin="light"] .node-table thead th {
  color: #1c2231 !important;
}

html[data-ee-skin="light"] .classic-button {
  background: #f2f4f8;
  border-color: #d5dae3 #c3cad6 #c3cad6 #d5dae3;
  color: #1c2231;
}
html[data-ee-skin="light"] .classic-button:hover {
  background: #eef3ff;
}

html[data-ee-skin="light"] .node-window {
  border-color: #e8ebf1 #dfe3ea #dfe3ea #e8ebf1;
}

html[data-ee-skin="light"] .overview-strip > div {
  background: #ffffff;
  border-color: #e8ebf1;
}

html[data-ee-skin="light"] .meter-fill {
  background: linear-gradient(180deg, #3d5bd9, #193cb8);
}

/* 状态标签：中性浅底 + 同色描边 + 深色文字（颜色不作为唯一信号） */
html[data-ee-skin="light"] .online-label.online {
  background: #e7f7ee;
  border-color: #a7d8bb;
  color: #15803d;
}
html[data-ee-skin="light"] .online-label.offline {
  background: #fdeaea;
  border-color: #f3b5b5;
  color: #dc2626;
}
html[data-ee-skin="light"] .online-label.warning,
html[data-ee-skin="light"] .online-label.pending {
  background: #fdf3e3;
  border-color: #e8cf9a;
  color: #b45309;
}

html[data-ee-skin="light"] .summary-online,
html[data-ee-skin="light"] .net-down {
  color: #15803d !important;
}
html[data-ee-skin="light"] .net-up {
  color: #dc2626 !important;
}

html[data-ee-skin="light"] .cp-bad,
html[data-ee-skin="light"] .list-ping3 .cp-bad {
  color: #15803d !important;
}

html[data-ee-skin="light"] .list-ping-merged .lp-val {
  color: #1c2231;
}

/* ==== 主题外观下拉菜单（接管主题自带的 header-theme 按钮） ==== */
.ee-theme-pop {
  position: fixed;
  z-index: 9003;
  min-width: 224px;
  padding: 5px;
  background: var(--sf-panel, #ffffff);
  border: 1px solid var(--sf-border, #e8ebf1);
  border-radius: 10px;
  box-shadow: 0 14px 34px -10px rgba(16, 24, 40, 0.34);
}
.ee-theme-pop[hidden] { display: none; }

/* 主题头部那个按钮：图标 + 当前外观名 */
.header-theme {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ee-tb-ico { font-size: 13px; line-height: 1; }
