:root {
  --bg: #0f1115;
  --panel: #161922;
  --panel-2: #1d212c;
  --border: #2a2f3a;
  --text: #e6e8ee;
  --muted: #8b92a5;
  --accent: #4f8cff;
  --danger: #ff5c5c;
  --ok: #3ddc84;
  /* 主操作按钮成对令牌：填充底色（渐变两端）+ 前景色 + 光晕。
     每个主题单独成对定义，避免浅色 accent（青/绿/橙）上放白字导致对比度不足。 */
  --accent-fill-a: #4680f0;
  --accent-fill-b: #3364d6;
  --on-accent: #ffffff;
  --accent-ring: rgba(79, 140, 255, .42);
}
:root[data-theme="light"] {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f0f1f4;
  --border: #dcdfe6;
  --text: #1c1f26;
  --muted: #6b7280;
  --accent: #2f6fed;
  --danger: #d93636;
  --ok: #1f9d55;
  --accent-fill-a: #3f7df2;
  --accent-fill-b: #2a63d8;
  --on-accent: #ffffff;
  --accent-ring: rgba(47, 111, 237, .30);
}
:root[data-theme="ocean"] {
  --bg: #0b1a24;
  --panel: #102530;
  --panel-2: #16303d;
  --border: #1f4152;
  --text: #dff3f8;
  --muted: #7fa8b5;
  --accent: #22c3ee;
  --danger: #ff6b6b;
  --ok: #35d0a0;
  --accent-fill-a: #2bc9f0;
  --accent-fill-b: #109cc2;
  --on-accent: #03212a;
  --accent-ring: rgba(34, 195, 238, .38);
}
:root[data-theme="forest"] {
  --bg: #10160f;
  --panel: #182016;
  --panel-2: #202b1c;
  --border: #33452c;
  --text: #e3ecdd;
  --muted: #93a687;
  --accent: #7cc142;
  --danger: #ff6a5e;
  --ok: #4fd67f;
  --accent-fill-a: #86cc4c;
  --accent-fill-b: #5f9f2d;
  --on-accent: #11230a;
  --accent-ring: rgba(124, 193, 66, .38);
}
:root[data-theme="sunset"] {
  --bg: #1a1210;
  --panel: #241a16;
  --panel-2: #2e211b;
  --border: #4a352a;
  --text: #f5e6dc;
  --muted: #b58f7c;
  --accent: #ff8a3d;
  --danger: #ff5c5c;
  --ok: #4bd07a;
  --accent-fill-a: #ff9550;
  --accent-fill-b: #e06c19;
  --on-accent: #2b1404;
  --accent-ring: rgba(255, 138, 61, .40);
}
:root[data-theme="grape"] {
  --bg: #150f1e;
  --panel: #1d1528;
  --panel-2: #251a33;
  --border: #3a2b4d;
  --text: #ede7f5;
  --muted: #9c8bb5;
  --accent: #b06bff;
  --danger: #ff6b81;
  --ok: #46d19b;
  --accent-fill-a: #ab6bf6;
  --accent-fill-b: #8b3fe0;
  --on-accent: #ffffff;
  --accent-ring: rgba(176, 107, 255, .40);
}
:root[data-theme="slate"] {
  --bg: #14171c;
  --panel: #1b1f26;
  --panel-2: #232833;
  --border: #2f3540;
  --text: #e4e7ec;
  --muted: #8790a3;
  --accent: #2dd4bf;
  --danger: #ff5c5c;
  --ok: #3ddc84;
  --accent-fill-a: #34e0c9;
  --accent-fill-b: #17a390;
  --on-accent: #04211d;
  --accent-ring: rgba(45, 212, 191, .38);
}
:root[data-theme="rose"] {
  --bg: #1c1116;
  --panel: #24161d;
  --panel-2: #2e1c24;
  --border: #4a2b38;
  --text: #f5e3ea;
  --muted: #b98a9c;
  --accent: #ff6fa5;
  --danger: #ff5c5c;
  --ok: #3ddc84;
  --accent-fill-a: #ff7fb0;
  --accent-fill-b: #e0447f;
  --on-accent: #2b0817;
  --accent-ring: rgba(255, 111, 165, .40);
}
:root[data-theme="amber"] {
  --bg: #1a1508;
  --panel: #241d0c;
  --panel-2: #2e2510;
  --border: #4a3b1a;
  --text: #f3ecd8;
  --muted: #b8a877;
  --accent: #f2b632;
  --danger: #ff5c5c;
  --ok: #4bd07a;
  --accent-fill-a: #f7c04a;
  --accent-fill-b: #d69412;
  --on-accent: #2b1e02;
  --accent-ring: rgba(242, 182, 50, .40);
}
:root[data-theme="mint"] {
  --bg: #f2faf6;
  --panel: #ffffff;
  --panel-2: #e7f6ee;
  --border: #cfe8dc;
  --text: #123326;
  --muted: #5f8a76;
  --accent: #1fae7e;
  --danger: #d93636;
  --ok: #1f9d55;
  --accent-fill-a: #26c48f;
  --accent-fill-b: #158f65;
  --on-accent: #ffffff;
  --accent-ring: rgba(31, 174, 126, .30);
}
:root[data-theme="midnight"] {
  --bg: #0a0f1f;
  --panel: #11172b;
  --panel-2: #172038;
  --border: #232e4d;
  --text: #e2e6f5;
  --muted: #7c86a8;
  --accent: #6c7bff;
  --danger: #ff5c5c;
  --ok: #3ddc84;
  --accent-fill-a: #7a89ff;
  --accent-fill-b: #4e5ce0;
  --on-accent: #ffffff;
  --accent-ring: rgba(108, 123, 255, .40);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: background-color .2s ease, color .2s ease;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; }

/* thin, theme-aware scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
*::-webkit-scrollbar-track { background: transparent; }

.view { height: 100%; }
.centered { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%), var(--bg); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.login-icon { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.card h1 { margin: 0 0 4px; font-size: 21px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
button:hover { filter: brightness(1.12); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
button:active { transform: translateY(1px); }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); box-shadow: none; }
button.ghost:hover { background: var(--panel-2); filter: none; box-shadow: none; }
button.small { padding: 5px 10px; font-size: 12px; }
button.icon-btn { background: transparent; border: none; color: var(--muted); font-size: 16px; padding: 4px 6px; box-shadow: none; }
button.icon-btn:hover { color: var(--text); filter: none; box-shadow: none; }
button.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-icon, .tab-icon, .mini-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-icon { width: 15px; height: 15px; }
.tab-icon { width: 16px; height: 16px; }
.mini-icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.brand-icon { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; margin-right: 6px; }

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  position: relative;
  z-index: 10;
}
.brand { font-weight: 600; font-size: 15px; display: flex; align-items: center; }
.spacer { flex: 1; }

/* ---------- 主题切换 ---------- */
.theme-picker { position: relative; }
.theme-popover {
  position: absolute; top: 40px; right: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.3);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  z-index: 60; width: 190px;
}
.theme-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; padding: 8px 4px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--text); font-size: 11px; box-shadow: none;
}
.theme-swatch:hover { background: var(--panel-2); filter: none; box-shadow: none; }
.theme-swatch.active { border-color: var(--accent); background: var(--panel-2); }
.theme-swatch .swatch-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

.layout { display: flex; height: calc(100% - 54px); }
.sidebar { width: 240px; border-right: 1px solid var(--border); background: var(--panel); overflow-y: auto; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-title { display: flex; align-items: center; }
.host-list { list-style: none; margin: 0; padding: 0 6px; }
.host-list li {
  padding: 10px 12px; border-radius: 9px; cursor: pointer; margin-bottom: 3px; font-size: 14px;
  border: 1px solid transparent;
  transition: background-color .12s ease, border-color .12s ease, transform .1s ease;
}
.host-list li:hover { background: var(--panel-2); transform: translateX(1px); }
.host-list li.active { background: var(--accent); color: white; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); }
.host-list li .host-meta { display: block; font-size: 11px; color: var(--muted); }
.host-list li.active .host-meta { color: rgba(255,255,255,.8); }

.workspace { flex: 1; position: relative; display: flex; flex-direction: column; }
.empty-state { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }

.session-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.session-tabbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel); }
.tab {
  height: 34px;
  padding: 0 13px;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: 9px; box-shadow: none; font-size: 13px; font-weight: 500;
}
.tab:hover { background: var(--panel-2); filter: none; box-shadow: none; color: var(--text); }
.tab.active {
  background: color-mix(in srgb, var(--accent) 14%, var(--panel-2));
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: none;
}
.tab.active .tab-icon { stroke: var(--accent); }

/* 连接状态：带一枚跟随文字颜色的小圆点（颜色由 JS 内联设置） */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-left: 8px; white-space: nowrap; }
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.status:empty { display: none; }

.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#terminal { flex: 1; padding: 10px; min-height: 0; }

/* ---------- 文件管理工具栏 ----------
   层次：路径导航（上级 / 地址栏 / 跳转）— 分隔线 — 次级操作（刷新 / 新建文件夹）— 主操作（上传文件）。
   所有控件统一 34px 高、9px 圆角、13px 字号，避免出现高度参差。 */
.fm-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  background: var(--panel);
}
.fm-toolbar .toolbar-divider {
  width: 1px; height: 20px; flex: none; margin: 0 2px;
  background: var(--border);
}

/* 次级工具按钮：描边 + 透明底，与右侧唯一的填充态主按钮形成主次对比 */
.fm-toolbar > button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.fm-toolbar > button:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-2));
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  color: var(--text);
  filter: none;
  box-shadow: none;
}
.fm-toolbar > button:active { transform: translateY(1px); }

.fm-path {
  flex: 1;
  min-width: 120px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
}

/* 主操作：上传文件。唯一的填充态按钮，图标与文字同行（此前因继承 label 的
   flex-direction:column 被挤成两行方块）。 */
.upload-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-fill-a), var(--accent-fill-b));
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  box-shadow: 0 2px 10px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,.18);
  display: inline-flex;
  flex-direction: row;          /* 关键：覆盖全局 label 的 column 方向 */
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex: none;
  transition: filter .15s ease, box-shadow .15s ease, transform .1s ease;
}
.upload-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 16px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,.24); }
.upload-btn:active { transform: translateY(1px); }
.upload-btn .btn-icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* 键盘可达性：<label> 本身不可聚焦，靠 tabindex + 显式焦点环补上 */
.fm-toolbar > button:focus-visible,
.upload-btn:focus-visible,
.fm-path:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.fm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fm-table th, .fm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.fm-table tbody tr { transition: background-color .1s ease; }
.fm-table tbody tr:hover { background: var(--panel-2); }
.fm-table button { padding: 4px 8px; font-size: 12px; margin-right: 4px; }
.fm-uploads { padding: 6px 14px; font-size: 12px; color: var(--muted); }

/* ---------- 复选框列 / 全选 ---------- */
.fm-check-col { width: 34px; }
.fm-check-col input, .fm-body-check input {
  width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0;
  vertical-align: middle;
}
.fm-body-check { width: 34px; }
.fm-table tbody tr.selected { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.fm-table tbody tr.selected:hover { background: color-mix(in srgb, var(--accent) 19%, transparent); }

/* ---------- 批量操作按钮（选中后激活） ---------- */
.batch-btn {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.batch-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-2));
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  filter: none; box-shadow: none;
}
.batch-btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

/* 「上传文件夹」次级按钮：描边态，避免和主操作「上传文件」视觉同级 */
.upload-btn.ghost-upload {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 500;
}
.upload-btn.ghost-upload:hover { filter: none; box-shadow: 0 2px 10px var(--accent-ring); }

/* ---------- 批量操作状态条 ---------- */
.fm-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  font-size: 12px;
}
.fm-batch-bar.hidden { display: none; }
.fm-batch-info { display: inline-flex; align-items: center; gap: 6px; }
.fm-batch-bar .spacer { flex: 1; }

/* ---------- 移动 / 重命名弹窗 ---------- */
.move-toolbar { display: flex; gap: 8px; margin: 10px 0; align-items: center; }
.move-list-wrap {
  border: 1px solid var(--border);
  border-radius: 9px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--panel-2);
}
.move-list { list-style: none; margin: 0; padding: 4px; }
.move-list li {
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.move-list li:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.move-list .entry-ico { width: 16px; text-align: center; }

/* ---------- 打开方式弹窗 ---------- */
.open-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.open-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  cursor: pointer;
  color: var(--text);
  text-align: left;
  width: 100%;
  box-shadow: none;
}
.open-item:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); filter: none; box-shadow: none; }
.open-item .open-ico { font-size: 20px; flex: none; }
.open-item .open-text { display: flex; flex-direction: column; gap: 2px; }
.open-item .open-title { font-size: 14px; font-weight: 600; }
.open-item .open-desc { font-size: 12px; color: var(--muted); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; width: 420px; max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-card.wide { width: 760px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.rwx-grid { display: grid; grid-template-columns: 80px repeat(3, 1fr); gap: 6px; font-size: 13px; margin: 10px 0; }
.rwx-grid .hdr { color: var(--muted); text-align: center; }
.chown-row { display: flex; gap: 12px; }
.chown-row label { flex: 1; }

.admin-tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.admin-pane h3 { margin-top: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.admin-table th, .admin-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.grid-form .full { grid-column: 1 / -1; }
.grid-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
/* 主机表单里「选择密钥文件」一行：按钮 + 已选文件名（.hidden 类负责隐藏） */
#hf_secretFileRow { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.cap-fieldset { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: 9px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.cap-fieldset label { flex-direction: row; align-items: center; gap: 6px; }
.host-checks { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.host-checks label { flex-direction: row; align-items: center; gap: 4px; }

/* ---------- 监控面板 (CPU/内存/硬件信息/进程管理) ---------- */
.monitor-scroll { flex: 1; overflow-y: auto; padding: 18px; }
.monitor-section { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.monitor-section h3 { margin: 0 0 12px; font-size: 14px; display: flex; align-items: center; }
.monitor-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.monitor-section-head h3 { margin: 0; }

.sysinfo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; font-size: 13px; }
.sysinfo-grid .item-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.sysinfo-grid .item-value { margin-top: 2px; word-break: break-word; }

.disk-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 14px; }
.disk-table th, .disk-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); }

.stats-row { display: flex; gap: 24px; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 160px; }
.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-size: 13px; margin-top: 6px; }
.progress-bar { height: 10px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .4s ease, background-color .4s ease; }
.progress-fill.warn { background: #e0a82e; }
.progress-fill.danger { background: var(--danger); }

.proc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.proc-table th, .proc-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.proc-table tbody tr { transition: background-color .1s ease; }
.proc-table tbody tr:hover { background: var(--panel-2); }
.proc-table button { padding: 3px 8px; font-size: 11px; }

/* ---------- 断线状态：让"看起来还能操作"变得不可能 ---------- */
.session-disconnected #terminalPane,
.session-disconnected #filesPane,
.session-disconnected #monitorPane {
  opacity: .45;
  pointer-events: none;
  filter: grayscale(.3);
}
