/* Tool Manager — Polar Precision master-detail layout (v3 重设计)
   壳：顶栏 + 56px 图标轨 + (列表 | 详情) + 底部通栏终端 */

/* ── 壳 ── */
.app {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

/* ── 顶栏 ── */
.topbar {
  flex: none;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 12px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; flex: none;
  background: var(--accent);
}
.brand strong { font-size: 13.5px; font-weight: 680; letter-spacing: -.01em; white-space: nowrap; }
.brand small { color: var(--text-3); font-size: 10px; white-space: nowrap; }
.topbar-search { flex: 0 1 340px; min-width: 150px; margin-left: 8px; }
.topbar-spring { flex: 1 1 8px; min-width: 0; }
.health { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--success); font-size: 12px; }
.topbar-ver { flex: none; color: var(--text-3); font-size: 10px; font-weight: 560; }
.tb-btn {
  width: 30px; height: 30px; padding: 0; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-1); color: var(--text-2);
}
.tb-btn:hover { background: var(--surface-2); color: var(--text-1); border-color: var(--border-strong); }
.tb-btn.btn-text { font: 650 10px/1 var(--mono); color: var(--accent); }
.theme-icon { width: 14px; height: 14px; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

/* 目标设备（顶栏下拉，向下弹出） */
.device-dropdown { position: relative; flex: none; }
.device-trigger {
  height: 30px;
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-1);
  padding: 0 10px;
  outline: none;
  color: var(--text-1);
  font-size: 12.5px;
  max-width: 300px;
}
.device-trigger:hover { border-color: var(--border-strong); background: var(--surface-2); }
.device-trigger:focus,
.device-trigger[aria-expanded="true"] {
  box-shadow: var(--ring);
  border-color: rgba(var(--accent-rgb), .45);
}
.device-trigger-caption { color: var(--text-3); font-size: 11px; flex: none; }
.device-trigger-label {
  min-width: 0; max-width: 160px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.device-trigger-caret { flex: none; color: var(--text-3); font-size: 10px; line-height: 1; }
.device-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  min-width: 240px;
  max-height: min(380px, 60vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  box-shadow: var(--shadow-2);
}
.device-dropdown-panel.is-fixed {
  position: fixed;
  right: auto;
  top: auto;
  max-width: min(340px, calc(100vw - 16px));
}
.device-optgroup {
  padding: 6px 8px 4px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.device-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-1);
  text-align: left;
  padding: 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-option:hover,
.device-option:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
  outline: none;
}
.device-option.is-active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 650;
}

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; background: var(--unknown); flex: none;
  aspect-ratio: 1 / 1;
}
.dot.on { background: var(--st-online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-online) 16%, transparent); }
.dot.warn { background: var(--warning); }
.dot.busy { background: var(--st-alarm); }

/* ── 图标轨 ── */
.rail {
  flex: none; width: var(--rail-w);
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 0;
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  z-index: 20;
}
.side-link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 11px;
  background: transparent; color: var(--text-2);
  position: relative;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.side-link svg { width: 17px; height: 17px; }
.side-link:hover:not(:disabled) { background: var(--surface-2); color: var(--text-1); }
.side-link.is-active { background: var(--accent-dim); color: var(--accent); }
.side-link.is-active::before {
  content: "";
  position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 2px; background: var(--accent);
}

/* ── workspace：主区 + 分隔条 + 底部终端 ── */
.workspace {
  flex: 1;
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 10px 12px 10px 10px;
  overflow: hidden;
  gap: 0;
}
.main {
  flex: 1 1 auto; min-width: 0; min-height: 90px;
  display: flex; flex-direction: column;
  overflow: hidden;
  container: main-pane / inline-size;
}
.view { display: none; flex-direction: column; flex: 1; min-height: 0; gap: 8px; }
.view.is-active { display: flex; }

/* 水平分隔条：上下拖动调终端高度 */
.hsplit {
  flex: none; height: 10px; margin: 0;
  cursor: row-resize; position: relative; z-index: 3; touch-action: none;
}
.hsplit[hidden] { display: none !important; }
.hsplit::after {
  content: "";
  position: absolute; left: 18%; right: 18%; top: 50%;
  height: 3px; transform: translateY(-50%);
  border-radius: 2px; background: rgba(28, 58, 74, .14);
}
.hsplit:hover::after, .hsplit:active::after {
  background: rgba(var(--accent-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

/* ── 通用控件 ── */
.page-head h1 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 680;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.page-sub {
  margin: 0;
  max-width: 720px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  box-shadow: var(--shadow-1);
}
.phead-title {
  margin: 0; flex: none;
  font-size: 15px; font-weight: 680; letter-spacing: -.02em; line-height: 1.2;
}
.phead-sub {
  flex: 0 1 auto; min-width: 0;
  color: var(--text-3); font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.phead-spring { flex: 1 1 8px; min-width: 0; }
.count { font-size: 11px; color: var(--text-2); white-space: nowrap; }

.search {
  display: flex; align-items: center; gap: 6px;
  height: var(--ctrl-h); padding: 0 10px;
  min-width: 140px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-3);
}
.search input {
  border: 0; outline: none; background: transparent;
  flex: 1; min-width: 0; color: var(--text-1); font-size: 12.5px;
}
.search:focus-within {
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: var(--ring);
  color: var(--text-2);
}
.kbd-hint {
  flex: none; border: 1px solid var(--border); border-radius: 5px;
  background: var(--surface-1); color: var(--text-3);
  font-size: 10px; padding: 2px 5px; line-height: 1.2; cursor: pointer;
}
.kbd-hint:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .35); }
.filter-select {
  height: 26px;
  padding: 0 24px 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-2);
  min-width: 88px;
  font-size: 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position:
    calc(100% - 11px) calc(50% - 2px),
    calc(100% - 6px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.filter-select:focus { outline: none; box-shadow: var(--ring); border-color: rgba(var(--accent-rgb), .45); }

.btn {
  height: var(--ctrl-h); padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-1); font-weight: 550; font-size: 12.5px;
  white-space: nowrap; flex: none;
  box-shadow: none;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary {
  color: #fff; border-color: transparent;
  background: var(--accent);
}
[data-theme="dark"] .btn.primary { color: #0a1518; }
.btn.primary:hover:not(:disabled) {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 88%, #000);
}
[data-theme="dark"] .btn.primary:hover:not(:disabled) {
  color: #0a1518;
  background: color-mix(in srgb, var(--accent) 88%, #fff);
}
.btn.danger {
  color: var(--danger);
  border-color: transparent;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.btn.danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
}
.btn.sm { height: 24px; padding: 0 7px; font-size: 11px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-icon { width: var(--ctrl-h); height: var(--ctrl-h); padding: 0; display: grid; place-items: center; }
.btn-icon-sm { width: 26px; height: 26px; min-height: 26px; }
.btn-icon svg, .btn-icon-sm svg { width: 14px; height: 14px; }
.caret { font-size: 10px; color: var(--text-3); margin-left: 2px; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  min-width: 140px; padding: 4px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
}
.dropdown-panel button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 8px 10px;
  border-radius: 6px; color: var(--text-1); white-space: nowrap;
}
.dropdown-panel button:hover { background: var(--accent-dim); color: var(--accent); }

/* ── packages：筛选行 ── */
.filterbar {
  flex: none;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 0 2px;
}
.filterbar > #chkAll { flex: none; margin: 0 2px 0 6px; }
.fchips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fchip {
  height: 26px; padding: 0 11px; flex: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-1); color: var(--text-2); font-size: 12px;
}
.fchip:hover { color: var(--text-1); border-color: var(--border-strong); }
.fchip.on {
  background: var(--accent-dim); color: var(--accent);
  border-color: rgba(var(--accent-rgb), .32); font-weight: 600;
}
.filter-spring { flex: 1 1 8px; min-width: 0; }

/* ── packages：列表 | 详情 ── */
.pkg-split {
  flex: 1; min-height: 0; min-width: 0;
  display: flex; align-items: stretch;
}
.table-card, .card {
  position: relative; isolation: isolate;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  flex: 1; min-height: 0; overflow: auto;
}
.table-card.is-grabbing,
.table-card.is-grabbing * {
  cursor: grabbing !important;
  user-select: none !important;
}
.listcard { flex: 1 1 auto; min-width: 240px; }
.pkg-list { min-width: 0; }

/* 分组头：按第一层目录分类，吸顶 */
.lgroup {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 12px;
  background: color-mix(in srgb, var(--surface-2) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.lgroup .lg-name {
  font-size: 10px; font-weight: 720;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3);
}
.lgroup .lg-n { margin-left: auto; font-size: 10px; color: var(--text-3); }

.lrow {
  display: flex; align-items: center; gap: 9px;
  height: var(--row-h); padding: 0 10px 0 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; min-width: 0;
}
.lrow:hover { background: rgba(var(--accent-rgb), .04); }
.lrow.is-selected { background: rgba(var(--accent-rgb), .07); box-shadow: inset 2px 0 0 var(--accent); }
.lrow input[type="checkbox"] { flex: none; }
.lrow .st { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-offline); }
.lrow .st.run { background: var(--st-online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-online) 15%, transparent); }
.lrow .nm {
  flex: 0 1 auto; min-width: 56px;
  font-weight: 620; font-size: 12.5px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lrow .ds {
  flex: 1 1 60px; min-width: 0;
  color: var(--text-3); font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lrow .qact {
  flex: none; width: 26px; height: 26px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface-1); color: var(--text-2);
}
.lrow .qact svg { width: 12px; height: 12px; }
.lrow .qact:hover:not(:disabled) { color: var(--accent); border-color: rgba(var(--accent-rgb), .4); }
.lrow .qact.stop { color: var(--danger); }
.lrow .qact.stop:hover:not(:disabled) { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.lrow .qact:disabled { opacity: .4; cursor: not-allowed; }
.lrow .qact[aria-busy="true"] { opacity: .55; }
.lrow.is-batch-fail { background: color-mix(in srgb, var(--danger) 6%, transparent); }
.lrow.is-batch-fail .nm { color: var(--danger); }
.lrow.is-batch-ok { background: color-mix(in srgb, var(--success) 4%, transparent); }

.empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); pointer-events: none;
}

/* 竖分隔条 */
.vsplit {
  flex: none; width: 10px;
  cursor: col-resize; position: relative; z-index: 3; touch-action: none;
}
.vsplit::after {
  content: "";
  position: absolute; top: 18%; bottom: 18%; left: 50%;
  width: 3px; transform: translateX(-50%);
  border-radius: 2px; background: rgba(28, 58, 74, .14);
}
.vsplit:hover::after, .vsplit:active::after {
  background: rgba(var(--accent-rgb), .55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

/* 详情面板 */
.detail {
  flex: none; width: var(--detail-w);
  min-width: 280px; max-width: 56%;
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: auto;
}
.d-hd {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.pkg-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center; flex: none;
  border-radius: 9px; color: #fff;
  background: var(--accent);
}
.pkg-icon svg { width: 15px; height: 15px; }
.pkg-icon.tone-blue { background: #3B82C4; }
.pkg-icon.tone-violet { background: #8b5cf6; }
.pkg-icon.tone-amber { background: #D9822B; }
.pkg-icon.tone-rose { background: #E25563; }
.d-hd .tt { min-width: 0; flex: 1; }
.d-hd .tt b {
  display: block; font-size: 13.5px; font-weight: 660; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.d-hd .tt small {
  color: var(--text-3); font-size: 11px; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-pill {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.status-pill .dot { background: var(--st-offline); box-shadow: none; }
.status-pill.is-online { color: var(--success); }
.status-pill.is-online .dot { background: var(--st-online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-online) 15%, transparent); }
.d-warn {
  flex: none; margin: 10px 12px 0;
  padding: 6px 10px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.5; font-weight: 550;
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
  white-space: normal; word-break: break-word;
}
.d-note {
  flex: none; margin: 10px 12px 0;
  padding: 6px 10px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  white-space: normal; word-break: break-word;
}
.d-acts {
  flex: none; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.d-acts .btn {
  height: 28px; padding: 0 11px; gap: 5px;
  font-size: 12px; min-width: max-content;
}
.d-acts .btn .action-icon { display: none; }
.btn.act-start {
  color: var(--action-start-fg);
  background: var(--action-start-bg);
  border-color: var(--action-start-bd);
}
/* 前台运行是调试用途，做成次级：只有「启动服务」保持唯一实心 CTA */
.btn.act-run-fg {
  color: var(--accent);
  background: var(--surface-1);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}
.btn.act-run-fg:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-1));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn.act-stop {
  color: var(--action-danger-fg);
  background: var(--action-danger-bg);
  border-color: var(--action-danger-bd);
}
.btn.act-clean {
  color: var(--action-warn-fg);
  background: var(--action-warn-bg);
  border-color: var(--action-warn-bd);
}
.btn.act-pack, .btn.act-sync, .btn.act-install, .btn.act-uninstall {
  color: var(--action-cfg-fg);
  background: var(--action-cfg-bg);
  border-color: var(--action-cfg-bd);
}
/* 禁用态一律剥掉语义色：只靠 opacity 会让实心强调按钮退成“浅青”，
   跟可点的浅色按钮撞脸。改成中性灰 + 斜纹，可点与否一眼可辨。 */
.btn.act-start:disabled,
.btn.act-run-fg:disabled,
.btn.act-stop:disabled,
.btn.act-clean:disabled,
.btn.act-pack:disabled,
.btn.act-sync:disabled,
.btn.act-install:disabled,
.btn.act-uninstall:disabled {
  opacity: 1;
  color: var(--text-3);
  border-color: var(--border);
  background:
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--text-3) 9%, transparent) 0 5px,
      transparent 5px 10px
    ),
    var(--surface-2);
}
.btn.act-start:disabled .action-icon,
.btn.act-run-fg:disabled .action-icon,
.btn.act-stop:disabled .action-icon,
.btn.act-clean:disabled .action-icon,
.btn.act-pack:disabled .action-icon,
.btn.act-sync:disabled .action-icon,
.btn.act-install:disabled .action-icon,
.btn.act-uninstall:disabled .action-icon {
  color: var(--text-3);
  background: transparent;
}
.d-kv {
  flex: none; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.d-kv .f { display: flex; gap: 10px; font-size: 12px; min-width: 0; }
.d-kv .k { flex: none; width: 4.8em; color: var(--text-3); }
.d-kv .v {
  flex: 1; min-width: 0; font-family: var(--mono); color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-kv .v a { color: var(--accent); text-decoration: none; }
.d-kv .v a:hover { text-decoration: underline; text-underline-offset: 2px; }
.d-kv .v.wrap { white-space: normal; word-break: break-all; line-height: 1.5; }
.d-empty {
  flex: 1; display: grid; place-items: center;
  color: var(--text-3); font-size: 12px; text-align: center; line-height: 1.9;
  padding: 20px;
}

/* ── artifacts 表（保留表格 + 行展开范式） ── */
.data-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-size: 12.5px;
}
.data-table th {
  position: sticky; top: 0; z-index: 1;
  height: 34px; padding: 0 10px;
  text-align: left;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-weight: 650;
  font-size: 10.5px;
  letter-spacing: .05em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.data-table td {
  height: 42px; padding: 0 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tbody tr.pkg-row { cursor: pointer; }
.data-table tbody tr.pkg-row:hover td { background: rgba(var(--accent-rgb), .035); }
.data-table tbody tr.pkg-row.is-selected td { background: rgba(var(--accent-rgb), .055); }
.tag {
  display: inline-flex; align-items: center; flex: none;
  color: var(--text-2);
  font-size: 12px; font-weight: 550; white-space: nowrap;
}
.tag.sub, .tag.muted { color: var(--text-3); font-weight: 500; }
.tag.ok { color: var(--success); font-weight: 600; }

tr.pkg-expand td {
  padding: 0 10px 10px !important;
  background: rgba(var(--accent-rgb), .03);
  border-bottom: 1px solid var(--border);
  white-space: normal;
  height: auto;
}
.param-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 2px 0 2px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.param-panel-hd { display: flex; align-items: center; gap: 8px; margin: 0; }
.param-panel-hd .t { font-weight: 680; font-size: 13px; letter-spacing: -.02em; }
.param-panel-hd .spacer { flex: 1; }
.param-panel-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.param-hint {
  font-size: 11.5px; line-height: 1.5; color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  white-space: normal; word-break: break-word;
}
.param-hint.is-warn {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
  border-color: color-mix(in srgb, var(--warning) 28%, transparent);
  font-weight: 550;
}
.param-kv-stack, .param-path-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 14px;
  min-width: 0;
  max-width: 100%;
}
.param-field {
  display: flex; align-items: center; gap: 8px;
  margin: 0; min-width: 0; max-width: 100%; font-size: 11.5px; color: var(--text-2);
}
.param-field.is-path { grid-column: 1 / -1; }
.param-field .plab {
  flex: none; width: 4.4em; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.param-field .pval {
  flex: 1; min-width: 0; font-family: var(--mono); color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.param-field .pval a.access-link {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.pkg-row td.ver.is-old, .param-field .pval.is-old { color: var(--warning); font-weight: 560; }

/* 展开区操作条（artifacts 行展开用） */
.expand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--border);
}
.expand-actions::before {
  content: attr(data-label);
  flex: 0 0 100%;
  margin: 0 0 2px;
  color: var(--text-3);
  font: 650 10px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.expand-actions .btn {
  width: auto;
  flex: 0 0 auto;
  height: 28px;
  min-width: max-content;
  min-height: 28px;
  padding: 0 10px;
  justify-content: center;
  gap: 5px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 550;
}
.action-icon {
  width: 16px; height: 16px; display: grid; place-items: center; flex: none;
  border-radius: 4px;
}
.action-icon svg { width: 11px; height: 11px; }
.btn.act-start .action-icon { color: var(--action-start-fg); background: rgba(255, 255, 255, 0.18); }
.btn.act-stop .action-icon,
.btn.act-uninstall .action-icon {
  color: var(--action-danger-fg);
  background: color-mix(in srgb, var(--action-danger-fg) 12%, transparent);
}
.btn.act-clean .action-icon {
  color: var(--action-warn-fg);
  background: color-mix(in srgb, var(--action-warn-fg) 12%, transparent);
}
.btn.act-pack .action-icon, .btn.act-sync .action-icon, .btn.act-install .action-icon {
  color: var(--text-2);
  background: var(--surface-2);
}
.action-copy { min-width: 0; display: flex; flex-direction: column; gap: 0; line-height: 1; font-size: 11px; }
.action-copy small { display: none; }

.presence {
  display: inline-flex; align-items: center; gap: 4px;
  font: 560 11px/1 var(--mono); padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-3); background: var(--surface-2);
}
.presence.is-yes {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  background: color-mix(in srgb, var(--success) 10%, transparent);
}
.presence.is-no { color: var(--text-3); opacity: .85; }
.presence.is-diff {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 40%, transparent);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
}
.remote-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font: 550 12px/1.2 var(--mono);
  color: var(--text-2); max-width: 360px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.remote-chip.is-ok { color: var(--success); font-weight: 600; }
.remote-chip.is-bad { color: var(--danger); font-weight: 600; }

/* ── dock / terminal（底部通栏） ── */
.dock {
  flex: none; z-index: 25;
  width: auto; height: var(--term-h, 250px);
  min-height: 120px; max-height: 78vh;
  display: flex; align-items: stretch;
  background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-2);
}
.dock.is-max { height: min(72vh, calc(100vh - 180px)) !important; }
.dock.is-collapsed {
  height: 38px !important; min-height: 38px; overflow: hidden;
}
.dock.is-collapsed .term,
.dock.is-collapsed .term-tabs,
.dock.is-collapsed .job-result-box { display: none !important; }
/* 收起=一条状态栏：只留 标题 + 任务胶囊 + 展开按钮，保证按钮完整可点 */
.dock.is-collapsed #btnTermWrap,
.dock.is-collapsed #btnHl,
.dock.is-collapsed #btnClearLog,
.dock.is-collapsed #btnCancelJob,
.dock.is-collapsed #btnBackBatch,
.dock.is-collapsed #btnTermExpand,
.dock.is-collapsed .term-meta { display: none !important; }
.dock[hidden] { display: none !important; }
.dock-main {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 13px;
}
.dock .dbar {
  flex: none; display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px 8px; padding: 6px 10px 5px;
  min-height: 26px;
}
.dock.is-collapsed .dbar { flex-wrap: nowrap; overflow: hidden; }
.dock .dbar .t { font-weight: 620; font-size: 12.5px; flex: none; white-space: nowrap; }
.dock .dbar .spacer { flex: 1; min-width: 8px; }
.term-expand-icon { display: none; flex: none; }
.dock:not(.is-max) .term-expand-max { display: inline-block; }
.dock.is-max .term-expand-restore { display: inline-block; }
#btnTermExpand { gap: 4px; }
#btnTermWrap[aria-checked="true"] {
  color: var(--accent); background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.term-meta {
  font-size: 11px; font-weight: 500; color: var(--text-2);
  max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 任务状态一行胶囊 */
.jobstrip {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; max-width: 46%;
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 11.5px; color: var(--text-2);
}
.jobstrip .js-seg {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 0 1 auto;
}
.jobstrip .js-step { color: var(--accent); max-width: 200px; }
.jobstrip .js-sep { flex: none; color: var(--text-3); }
.jobstrip .job-bar {
  flex: none; width: 56px; height: 4px; margin: 0;
  border-radius: 999px; background: rgba(28,58,74,.08); overflow: hidden;
}
.jobstrip .job-bar i {
  display: block; height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-strong));
  transition: width .25s var(--ease);
}
.jobstrip .job-pill {
  flex: none; display: inline-flex; align-items: center;
  font: 600 11.5px/1.2 var(--mono); color: var(--text-2); white-space: nowrap;
}
.jobstrip[data-status="running"] .job-pill,
.jobstrip[data-status="queued"] .job-pill { color: var(--accent); }
.jobstrip[data-status="ok"] .job-pill { color: var(--success); }
.jobstrip[data-status="fail"] .job-pill,
.jobstrip[data-status="cancelled"] .job-pill { color: var(--danger); }
.jobstrip[data-status="running"] .job-bar i,
.jobstrip[data-status="queued"] .job-bar i {
  width: 35%; animation: job-indet 1.2s ease-in-out infinite;
}
.jobstrip[data-status="ok"] .job-bar i { width: 100%; background: var(--success); animation: none; }
.jobstrip[data-status="fail"] .job-bar i,
.jobstrip[data-status="cancelled"] .job-bar i { width: 100%; background: var(--danger); animation: none; }
.jobstrip[data-status="idle"] .job-bar i { width: 0; animation: none; }
@keyframes job-indet {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.dock .term {
  flex: 1; min-height: 0;
  background: #0A0C10; color: #C9D6DE;
  font-family: var(--mono); font-size: 12px; line-height: 18px;
  padding: 10px 12px; margin: 0 7px 7px; overflow: auto;
  /* 默认不折行：长路径横滚 */
  white-space: pre; word-break: normal; overflow-wrap: normal;
  border: 1px solid rgba(49,88,105,.44); border-radius: 10px; cursor: text;
}
.dock.is-wrap .term {
  white-space: pre-wrap; word-break: break-all;
}
.dock .term.idle {
  display: flex; align-items: center; justify-content: center; cursor: default;
}
.dock .term.idle::before {
  content: "暂无输出\A在「工具管理器」选中行执行操作后，日志会出现在这里";
  white-space: pre-line; text-align: center;
  color: #5F7285; font-size: 12px; line-height: 2;
}
.dock .dbar .hl-btn.on {
  color: var(--accent); background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.dock .term .lg-err { color: #FF8C92; }
.dock .term .lg-warn { color: #FFD08A; }
.dock .term .lg-dbg { color: #66788B; }
.dock .term .lg-meta { color: #69B7C4; }
.dock .term .lg-ok { color: #9FE8C8; }
.dock .term .lg-node { color: #7E93A8; }
.dock .term .lg-cmd { color: #7EC8E3; }
.dock .term .lg-sep {
  display: inline-block; width: 100%; margin: 2px 0; padding: 1px 0;
  color: #69B7C4; font-weight: 600; border-bottom: 1px solid rgba(105,183,196,.22);
}
.dock .term .lg-sep.is-flash {
  background: rgba(217,71,84,.28);
  box-shadow: 0 0 0 2px rgba(217,71,84,.35);
  border-radius: 3px;
}
.dock .term .tk-info { color: #57C7A0; }
.dock .term .tk-warn { color: #FFB84D; font-weight: 600; }
.dock .term .tk-err { color: #FF6B74; font-weight: 600; }
.dock .term .tk-dbg { color: #8B9AAB; }
.dock .term .tk-ok { color: #57C7A0; font-weight: 600; }
.dock .term .tk-meta { color: #69B7C4; }
.dock .term .tk-path { color: #A8B8C8; }

.term-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 6px; flex: none;
}
.term-tabs[hidden] { display: none !important; }
.term-tab {
  height: 24px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  font: 560 11.5px/1 var(--mono); cursor: pointer;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.term-tab.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 650;
}
.term-tab.is-run { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.term-tab.is-fail { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* 批量结果：终端下方横排小节 */
.job-result-box {
  flex: none; margin: 0 8px 8px; padding: 6px 10px;
  border: 1px dashed var(--border); border-radius: 10px;
  background: var(--surface-2);
  max-height: 132px; overflow: auto;
}
.job-result-box[hidden] { display: none !important; }
.job-result-hd {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; color: var(--text-1); margin-bottom: 4px;
}
.job-result-hint { font-weight: 500; color: var(--text-3); font-size: 10px; }
.job-result-stats { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-2); }
.job-result-flow { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }
.job-result-sec { margin-top: 2px; min-width: 0; }
.job-result-sec-hd {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; margin: 0 8px 4px 0;
}
.job-result-sec-hd.is-fail { color: var(--danger); }
.job-result-sec-hd.is-ok { color: var(--success); }
.job-result-n {
  min-width: 16px; height: 16px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; background: var(--surface-1); color: inherit;
}
.job-result-list { display: flex; flex-wrap: wrap; gap: 4px; max-height: 88px; overflow: auto; }
.job-result-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 22px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-1);
  font: 600 11px/1 var(--mono); cursor: pointer; white-space: nowrap;
}
.job-result-chip .x { color: var(--text-3); font-weight: 500; }
.job-result-chip.is-fail {
  border-color: color-mix(in srgb, var(--danger) 32%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger);
}
.job-result-chip.is-ok {
  border-color: color-mix(in srgb, var(--success) 32%, transparent);
  background: color-mix(in srgb, var(--success) 8%, transparent); color: var(--success);
}
.job-result-chip.is-cancel { border-color: var(--border); color: var(--text-3); }
.job-result-chip.is-active { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }

.log-stage {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 0;
}
.log-stage > .dock {
  width: auto !important; height: auto !important; max-height: none;
  max-width: none; min-width: 0; flex: 1; min-height: 0;
  border: 0; border-radius: 16px; box-shadow: none;
}
.log-stage > .dock #btnTermClp,
.log-stage > .dock #btnTermExpand { display: none; }

/* ── remote 表单：分组配置（左轨 + 右当前组） ── */
.cfg-layout {
  flex: 1; min-height: 0; min-width: 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.cfg-rail {
  flex: none; width: 180px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}
.cfg-rail-item {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2);
  font-size: 12.5px; text-align: left; white-space: nowrap;
}
.cfg-rail-item svg { flex: none; }
.cfg-rail-item span { overflow: hidden; text-overflow: ellipsis; }
.cfg-rail-item:hover { background: var(--surface-2); color: var(--text-1); }
.cfg-rail-item.is-active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.cfg-page {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 720px; overflow: auto;
}
.cfg-page [data-cfg-panel] { display: none; }
.cfg-page [data-cfg-panel].is-active { display: block; }
@media (max-width: 720px) {
  .cfg-layout { flex-direction: column; }
  .cfg-rail { width: 100%; flex-direction: row; }
}
.deploy-form.card { padding: 12px 14px; overflow: visible; flex: none; align-self: flex-start; width: 100%; }
.cfg-section { margin-bottom: 10px; }
.cfg-section h3 { margin: 0 0 6px; font: 620 12px/1.2 var(--sans); color: var(--text-2); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field .label { font-size: 10px; line-height: 1.2; color: var(--text-2); }
.field input, .field select {
  height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); outline: none; font-size: 12px; min-width: 0;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: var(--ring); }
.field input[readonly] { color: var(--text-2); background: var(--surface-3); cursor: default; }
.field input.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cfg-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hint { width: 100%; margin: 2px 0 0; font-size: 10px; color: var(--text-3); }
.cmd-line {
  width: 100%; margin: 4px 0 0; padding: 6px 8px;
  border-radius: 8px; border: 1px solid rgba(49,88,105,.44);
  background: #0A0C10; color: #C8D2DE;
  font: 10px/1.4 var(--mono); white-space: pre-wrap; word-break: break-all;
}

/* ── Ctrl+K 命令面板 ── */
.cmdk {
  position: fixed; inset: 0; z-index: calc(var(--z-toast, 70) + 20);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(16, 35, 45, .32); backdrop-filter: blur(2px);
}
.cmdk[hidden] { display: none !important; }
.cmdk-box {
  width: min(560px, 94vw);
  display: flex; flex-direction: column;
  border-radius: 14px; background: var(--surface-1);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: tm-modal-in .16s var(--ease) both;
}
.cmdk-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  color: var(--text-3);
}
.cmdk-hd input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13.5px; color: var(--text-1);
}
.cmdk-esc {
  flex: none; font-size: 10px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 2px 5px;
}
.cmdk-list { max-height: min(46vh, 420px); overflow: auto; padding: 5px; }
.cmdk-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; border: 0; border-radius: 8px;
  background: transparent; text-align: left;
  padding: 8px 10px; color: var(--text-1); font-size: 12.5px;
  cursor: pointer;
}
.cmdk-item .ck-ic {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: 6px; background: var(--surface-2); color: var(--text-2);
  font-size: 11px;
}
.cmdk-item .ck-ic.run { color: var(--accent); background: var(--accent-dim); }
.cmdk-item .ck-ic.stop { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.cmdk-item .ck-t { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .ck-t small { color: var(--text-3); margin-left: 6px; }
.cmdk-item .ck-kind {
  flex: none; font: 550 10px var(--mono); color: var(--text-3);
  letter-spacing: .05em; text-transform: uppercase;
}
.cmdk-item.is-active { background: var(--accent-dim); }
.cmdk-item.is-active .ck-kind { color: var(--accent); }
.cmdk-empty { padding: 18px 12px; text-align: center; color: var(--text-3); font-size: 12px; }
.cmdk-foot {
  display: flex; gap: 14px; padding: 7px 12px;
  border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 10px;
}

/* ── toast / modal ── */
.toast-root {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  min-width: 180px; max-width: 360px; padding: 10px 14px;
  border-radius: 10px; background: var(--surface-1);
  border: 1px solid var(--border); box-shadow: var(--shadow-2); font-size: 13px;
}
.toast.err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

.overlay {
  position: fixed; inset: 0; z-index: calc(var(--z-toast, 70) + 10);
  display: grid; place-items: center; padding: 20px;
  background: rgba(16, 35, 45, .38); backdrop-filter: blur(2px);
}
.overlay[hidden] { display: none !important; }
.modal {
  width: min(860px, 94vw); max-height: 86vh;
  display: flex; flex-direction: column;
  border-radius: 14px; background: var(--surface-1);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  animation: tm-modal-in .2s var(--ease) both;
}
.modal .m-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.modal .m-head .t { font-weight: 620; font-size: 13px; color: var(--text-1); }
.modal.confirm { width: min(420px, 92vw); }
.modal.confirm .m-body { padding: 14px; font-size: 13px; line-height: 1.55; color: var(--text-1); }
.modal.confirm .confirm-msg { margin: 0; }
.modal.confirm .confirm-sub { margin: 8px 0 0; font-size: 12px; color: var(--text-2); word-break: break-all; }
.modal.confirm .m-body.is-warn .confirm-msg { color: var(--warning); font-weight: 560; }
.modal.confirm .m-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 12px;
}
@keyframes tm-modal-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
  .btn, .side-link { transition: none; }
}

/* ── 响应式 ── */
/* 窄主区（按 .main 实宽）：先藏行内描述，再收详情面板 */
.main.is-compact-pane .lrow .ds { display: none; }
@container main-pane (max-width: 900px) {
  .detail { min-width: 260px; }
}
@container main-pane (max-width: 700px) {
  .lrow .ds { display: none; }
}
@container main-pane (max-width: 560px) {
  .pkg-split { flex-direction: column; }
  .vsplit { display: none; }
  .detail { width: auto !important; max-width: none; min-width: 0; flex: 0 0 44%; }
}
@media (max-width: 860px) {
  .topbar-search { flex-basis: 200px; }
  .brand small, .topbar-ver, .health span:last-child { display: none; }
  .device-trigger-caption { display: none; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 6px 10px; }
  .body { flex-direction: column; }
  .rail {
    width: auto; flex-direction: row; justify-content: center;
    padding: 4px 6px; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .side-link.is-active::before { left: 9px; right: 9px; top: auto; bottom: -4px; width: auto; height: 3px; }
  .workspace { padding: 8px; }
  .dock { max-height: 45vh; }
  .jobstrip { display: none; }
}
