/* 取证镜像浏览器 — 暖纸浅色 · 青绿点缀 · 现代工具风 */

:root {
  --bg: #f6f6f3;
  --panel: #ffffff;
  --panel-alt: #fafaf8;
  --border: #e7e5df;
  --border-light: #efeeea;
  --text: #1c1917;
  --dim: #78716c;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-bg: #e6f6f3;
  --hover: #f4f4f1;
  --sel: #d8efeb;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --ok: #059669;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.6 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.dim { color: var(--dim); }

/* ============ 按钮 ============ */
.btn {
  padding: 5px 13px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { border-color: #c8c5bd; background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.35);
}
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.big { padding: 11px 26px; font-size: 14px; border-radius: 10px; }
.btn.small { padding: 1px 9px; font-size: 11.5px; border-radius: 6px; }
.btn.icon { padding: 4px 8px; }
.btn .spinner { border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; }

/* ============ 顶栏 ============ */
#topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 10;
}

/* 品牌区:渐变 Logo + 双行标题 */
.tb-brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(20, 184, 166, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.logo svg { width: 19px; height: 19px; color: #fff; display: block; }
.tb-titles { display: flex; flex-direction: column; gap: 1px; }.app-name { font-size: 14px; font-weight: 650; letter-spacing: .5px; line-height: 1.2; }
.app-sub {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--dim);
  opacity: .8;
  line-height: 1.2;
}
.badge-readonly {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ok);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 99px;
  padding: 1px 9px;
  margin-left: 4px;
}
.topbar-image {
  color: var(--dim);
  font-size: 12px;
  background: var(--panel-alt, #f5f4f0);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 4px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 38vw;
}
.topbar-spacer { flex: 1; }
#loading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 12px;
  background: var(--panel-alt, #f5f4f0);
  border-radius: 99px;
  padding: 4px 12px;
}
.spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner.big { width: 26px; height: 26px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 用户区:头像身份胶囊 + 幽灵按钮 */
.tb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border-light);
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text);
  background: var(--panel-alt, #f5f4f0);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 3px 11px 3px 3px;
  white-space: nowrap;
}
.uc-avatar {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  border-radius: 50%;
}
.uc-role {
  font-size: 10px;
  color: var(--accent);
  background: rgba(13, 148, 136, 0.10);
  border-radius: 99px;
  padding: 0 7px;
  line-height: 16px;
}
.tb-btn {
  font-size: 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .13s;
}
.tb-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(13, 148, 136, 0.06);
}
.tb-btn.tb-danger:hover {
  color: var(--danger);
  border-color: #fda4af;
  background: var(--danger-bg);
}

/* ============ 错误条 ============ */
#error-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--danger-bg);
  color: var(--danger);
  border-bottom: 1px solid #fecdd3;
  font-size: 12.5px;
}
#error-bar button {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 13px;
}

/* ============ 布局 ============ */
#layout {
  display: flex;
  height: calc(100vh - 56px);
  box-sizing: border-box;
  padding: 14px 0 14px 14px; /* 侧栏上下左留出悬空空间 */
}

/* ============ 左侧栏(悬空卡片) ============ */
#sidebar {
  width: 280px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 14px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  overflow-y: auto;
}
.open-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 550;
  border: none;
  border-radius: 10px;
  background: var(--text);
  color: #fafaf9;
  cursor: pointer;
  transition: all .15s ease;
}
.open-btn:hover { background: #44403c; }
.open-btn:active { transform: translateY(1px); }
.side-block { display: flex; flex-direction: column; gap: 3px; }
.side-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 2px 5px;
}
.side-label::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.count-badge {
  display: inline-block;
  min-width: 17px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  border-radius: 99px;
  padding: 0 5px;
  margin-left: 5px;
}
.side-spacer { flex: 1; }

/* 已打开镜像卡片(统计 + 直接操作) */
#image-list { display: flex; flex-direction: column; gap: 8px; }
.img-card {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--panel);
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.img-card:hover { border-color: #c8c5bd; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
/* 当前镜像:左侧渐变高亮条 + 浅青底 */
.img-card.active {
  border-color: rgba(13, 148, 136, 0.45);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.05), rgba(13, 148, 136, 0.015));
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.10);
}
.img-card.active::before {
  content: '';
  position: absolute;
  left: -1px; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #14b8a6, #3b82f6);
}
.img-head { display: flex; align-items: center; gap: 8px; }
.img-icon {
  width: 26px; height: 26px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: var(--panel-alt);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.img-card.active .img-icon {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
}
.img-name {
  flex: 1;
  font-weight: 550;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.img-meta { display: block; font-size: 10.5px; margin-top: 3px; }
.img-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-top: 4px;
  min-height: 16px;
}
.img-close {
  flex: none;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  padding: 0 3px;
  font-size: 11px;
  border-radius: 4px;
  visibility: hidden;
}
.img-card:hover .img-close, .img-card.active .img-close { visibility: visible; }
.img-close:hover { color: var(--danger); background: var(--danger-bg); }
/* 直接操作:2×2 网格,整齐克制 */
.img-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}
.img-act {
  border: 1px solid var(--border-light);
  background: var(--panel);
  border-radius: 6px;
  padding: 3px 0;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  cursor: pointer;
  transition: all .12s;
}
.img-act:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-bg); }

/* 侧栏信息面板(当前镜像 / 分析统计) */
.side-panel {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.ss-title { font-size: 10.5px; color: var(--dim); margin-bottom: 6px; letter-spacing: .8px; text-transform: uppercase; }
.ss-title-row { display: flex; align-items: center; justify-content: space-between; }
#btn-reindex {
  border: none;
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 5px;
  text-transform: none;
  letter-spacing: 0;
}
#btn-reindex:hover { color: var(--accent); background: var(--accent-bg); }
#btn-reindex:disabled { opacity: .5; cursor: default; }
.ss-body { font-size: 12.5px; word-break: break-all; }
.ss-body .ss-name { font-weight: 600; }
.ss-body .ss-meta { color: var(--dim); font-size: 11.5px; margin-top: 2px; }

/* 分区卡片内分析统计(索引/已删除状态着色) */
.si-ok { color: var(--ok); }
.si-err { color: var(--danger); }

/* ============ 右侧内容区 ============ */
#content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 24px 28px;
}
.view { max-width: 1100px; margin: 0 auto; }
/* 分区/信息视图与镜像导航栏同宽(占满内容区) */
#view-parts.view, #view-info.view { max-width: none; }
#view-browser.view { max-width: none; height: 100%; }

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* 镜像导航栏(悬浮卡片):当前镜像 + 分区/信息分段页签 */
#view-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 8px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.vt-image {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 6px;
  font-size: 12.5px;
  color: var(--dim);
  overflow: hidden;
  white-space: nowrap;
}
.vt-image b {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-seg {
  display: flex;
  gap: 2px;
  flex: none;
  background: var(--panel-alt);
  border-radius: 9px;
  padding: 3px;
}
.vtab {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--dim);
  padding: 5px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.vtab:hover { color: var(--text); }
.vtab.active {
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
}
.view-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: .2px; }
.hint { color: var(--dim); font-size: 12px; margin-top: 10px; }

/* 卡片 */
.card {
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.table-card { padding: 6px 0; }

/* 键值对 */
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 8px;
  column-gap: 14px;
  font-size: 12.5px;
}
.kv-k { color: var(--dim); }
.kv-v { word-break: break-all; }
.kv-v.mono { font-family: var(--mono); font-size: 12px; }

/* ============ 欢迎引导页 ============ */
#view-welcome { height: 100%; display: flex; align-items: center; justify-content: center; }
.hero { text-align: center; max-width: 660px; padding-bottom: 6vh; }
.hero-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-icon svg { width: 34px; height: 34px; color: var(--accent); display: block; }
.hero h1 { margin: 0 0 10px; font-size: 27px; font-weight: 700; letter-spacing: .5px; }
.hero-desc { color: var(--dim); font-size: 13.5px; line-height: 1.9; margin: 0 0 24px; }
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.step {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: border-color .15s, box-shadow .15s;
}
.step:hover { border-color: #99e5dc; box-shadow: 0 4px 14px rgba(13, 148, 136, 0.10); }
.step b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-dark);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step span { font-size: 13px; font-weight: 600; }
.step i { font-style: normal; font-size: 11px; color: var(--dim); }
.step-arrow { align-self: center; color: #d6d3cb; font-size: 16px; }
.hero-note { margin-top: 32px; color: var(--dim); font-size: 11.5px; }
.hero-copyright { margin-top: 10px; color: var(--dim); font-size: 10.5px; opacity: .75; letter-spacing: .5px; }

/* ============ 表格 ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td {
  text-align: left;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbl th {
  background: var(--panel-alt);
  color: var(--dim);
  font-weight: 550;
  font-size: 11.5px;
  letter-spacing: .3px;
  user-select: none;
  border-bottom: 1px solid var(--border);
}
.tbl th.c, .tbl td.c { text-align: center; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td.num { font-family: var(--mono); font-size: 12px; }
.tbl td.t { font-family: var(--mono); font-size: 12px; }
.tbl td.name { overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: var(--accent-bg); }
.tbl tbody tr.sel { background: var(--sel); }

/* 文件系统徽章 */
.fs-badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 99px;
  padding: 1px 10px;
  font-weight: 550;
}
.fs-ntfs { background: #e0f2fe; color: #0369a1; }
.fs-fat { background: #fef3c7; color: #b45309; }
.fs-ext4 { background: #d1fae5; color: #047857; }
.fs-unknown { background: #f5f5f4; color: var(--dim); }

/* ============ 磁盘布局示意图 ============ */
#disk-total { font-weight: 400; text-transform: none; letter-spacing: 0; }
#disk-map {
  display: flex;
  gap: 2px;                 /* 段间 2px 白色间隔,分界清晰 */
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;         /* 间隔露出的底色 */
}
.dm-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3px;
  cursor: pointer;
  transition: filter .12s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); /* 段内描边,色彩相近时也能分辨 */
}
.dm-seg:not(.dm-free):hover { filter: brightness(1.12); }
.dm-seg span {
  font-size: 10.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  padding: 0 4px;
}
.dm-free {
  background: repeating-linear-gradient(45deg, #f5f5f4 0 6px, #e7e5e4 6px 12px);
  cursor: default;
}
#disk-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.dm-key { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--dim); }
.dm-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dm-key-free {
  background: repeating-linear-gradient(45deg, #f5f5f4 0 3px, #d6d3d1 3px 6px);
  border: 1px solid var(--border-light);
}

/* ============ 分区卡片 ============ */
#part-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.part-card {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--panel);
  padding: 15px 14px 12px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .13s, box-shadow .13s, border-color .13s;
}
.part-card:hover {
  transform: translateY(-2px);
  border-color: #c8c5bd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.pc-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; }
.pc-idx { font-size: 15px; font-weight: 700; }
.pc-size { font-size: 21px; font-weight: 700; margin-top: 9px; letter-spacing: .3px; }
.pc-desc {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin-top: 11px;
  font-size: 11px;
}
.pc-kv span { color: var(--dim); }
.pc-kv b { font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.pc-acts {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

/* 分区卡片内嵌的分析统计(索引/已删除扫描状态) */
.pc-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-size: 11px;
  min-height: 34px;
}
.pc-stats > div { display: flex; align-items: center; gap: 4px; }

/* 分区视图头部按钮组 */
.view-head-acts { display: flex; gap: 8px; }
/* ============ 文件浏览:未识别提示 ============ */
#unrec { height: 100%; display: flex; align-items: center; justify-content: center; }
.unrec-box {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 48px;
}
.unrec-icon { font-size: 36px; }
.unrec-box h3 { margin: 10px 0 4px; }

/* ============ 文件浏览:三栏布局 ============ */
#browser-cols { display: flex; height: 100%; }

/* 中栏:文件树 */
#tree-col {
  width: 260px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#tree-head {
  padding: 9px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: .3px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tree-col.scanning #tree-head { color: var(--accent); }
#tree, #del-tree { flex: 1; overflow: auto; padding: 8px; }
#tree ul, #del-tree ul { list-style: none; margin: 0; padding-left: 13px; }
#tree > ul, #del-tree > ul { padding-left: 0; }
.trow {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 7px;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 12.5px;
  transition: background .1s;
}
.trow:hover { background: var(--hover); }
.trow.sel { background: var(--sel); }
.trow.terr .tlabel { color: var(--danger); }
.ttoggle { width: 13px; flex: none; text-align: center; color: #b5b1a8; font-size: 9px; }
.ticon { flex: none; font-size: 12px; }
.tlabel { overflow: hidden; text-overflow: ellipsis; }
.tcount { color: var(--dim); font-size: 10.5px; flex: none; }

/* 含已删除记录的目录小红点(混合视图) */
.dot-del {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  margin-left: 5px;
  flex: none;
  vertical-align: middle;
}

/* 分隔条(可拖拽) */
#col-resizer { width: 9px; flex: none; cursor: col-resize; }
#col-resizer::after {
  content: '';
  display: block;
  width: 3px;
  height: 100%;
  margin: 0 auto;
  border-radius: 2px;
  transition: background .12s;
}
#col-resizer:hover::after { background: #99e5dc; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing #col-resizer::after { background: var(--accent); }

/* ============ 文件浏览:右栏 ============ */
#browser-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 7px 9px;
}
#addr-bar {
  flex: 1;
  min-width: 0;
  background: var(--panel-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  overflow: hidden;
}
#breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { cursor: pointer; color: var(--accent-dark); font-weight: 500; }
.crumb:hover { text-decoration: underline; }
.csep { color: #c7c4be; margin: 0 3px; }

/* 搜索框 */
#search-wrap { position: relative; flex: none; display: flex; align-items: center; }
#search-box {
  width: 170px;
  padding: 5px 24px 5px 11px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: 99px;
  outline: none;
  background: var(--panel-alt);
  transition: all .18s ease;
}
#search-box:focus {
  border-color: var(--accent);
  width: 230px;
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
#search-clear {
  position: absolute;
  right: 5px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
#search-clear:hover { color: var(--danger); }

/* 分段控件(胶囊) */
.seg {
  display: flex;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 4px 13px;
  font-size: 12px;
  border-radius: 99px;
  cursor: pointer;
  color: var(--dim);
  white-space: nowrap;
  transition: all .15s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--text); color: #fafaf9; font-weight: 550; }
.seg-btn:disabled { opacity: .45; cursor: default; }

/* 高级检索面板 */
#adv-panel {
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.adv-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
}
.adv-btns .dim { flex: 1; }

/* 查询构造器:条件行列表 + 与/或组合 */
.qb-toolbar { display: flex; align-items: center; gap: 10px; }
.qb-comb-label { font-size: 12px; color: var(--dim); }
#qb-rules { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
#qb-rules:empty { margin-top: 0; }
.qb-row { display: flex; align-items: center; gap: 6px; }
.qb-row select, .qb-row input {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--panel-alt);
  color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
.qb-row select:focus, .qb-row input:focus {
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.qb-field { width: 92px; flex: none; }
.qb-op { width: 110px; flex: none; }
.qb-val { flex: 1; display: flex; gap: 6px; min-width: 0; }
.qb-val .qb-input { flex: 1; min-width: 0; }
.qb-val .qb-num { width: 110px; flex: none; }
.qb-val .qb-unit { width: 62px; flex: none; }
.qb-val select.qb-input { flex: none; width: 130px; }

/* 检索结果中的已删除条目标签 */
.tag-del {
  font-size: 10.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
  white-space: nowrap;
}
.tag-del-dim {
  font-size: 10.5px;
  color: var(--dim);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
  white-space: nowrap;
}

/* 列表 + 详情 */
#browser-main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 10px;
}
.list-wrap {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 0;
  margin-bottom: 0;
  position: relative;
}
#file-table { table-layout: fixed; }
#file-table th { position: relative; }
#file-table td.mono-path { overflow: hidden; text-overflow: ellipsis; }
#file-table td.name { max-width: none; }
#file-table th.sortable { cursor: pointer; }
#file-table th.sortable:hover { color: var(--accent); }
.col-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
  touch-action: none;
}
.col-handle:hover { background: var(--accent-bg); box-shadow: inset 1.5px 0 0 var(--accent); }
#file-table.stale tbody { opacity: .35; transition: opacity .15s; }
.list-empty { padding: 36px; text-align: center; color: var(--dim); }

/* 搜索进行中的遮罩 */
#searching {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--dim);
  font-size: 13px;
}

/* 已删除条目样式 */
.tbl tbody tr.del-row { background: #fff7f7; }
.tbl tbody tr.del-row:hover { background: #fdecec; }
.tbl tbody tr.del-row.sel { background: #fbe3e3; }
.del-name { text-decoration: line-through; color: #be123c; }
.tbl td.mono-path { font-family: var(--mono); font-size: 12px; }
.rec-yes { color: var(--ok); font-weight: 550; }
.attr-tag {
  display: inline-block;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 6px;
  margin-right: 3px;
  font-size: 11px;
  color: var(--dim);
}

/* 详情面板 */
#detail-pane {
  width: 292px;
  flex: none;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-light);
}
.dp-title { font-weight: 600; font-size: 13px; word-break: break-all; }
#dp-body { padding: 13px; overflow-y: auto; flex: 1; grid-template-columns: 80px 1fr; }
.dp-btns { padding: 11px 13px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; }

/* 状态栏 */
#status-bar {
  padding: 6px 13px;
  font-size: 12px;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

/* ============ 模态框 ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
}
.modal-title { font-size: 14px; font-weight: 650; word-break: break-all; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
}
.modal-foot .dim { margin-right: auto; }

/* ============ 镜像选择对话框 ============ */
#dlg { width: min(780px, 92vw); }
#dir-modal { width: min(680px, 92vw); }
.dlg-loc {
  display: flex;
  gap: 6px;
  padding: 13px 18px 0;
}
#dlg-path {
  flex: 1;
  padding: 6px 11px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--panel-alt);
  font-family: var(--mono);
  transition: border-color .12s, box-shadow .12s;
}
#dlg-path:focus {
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.dlg-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px 0;
  gap: 10px;
}
#dlg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: var(--panel-alt);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 11.5px;
  cursor: pointer;
  color: var(--dim);
  transition: all .12s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-bg); }
.dlg-filter { font-size: 12px; color: var(--dim); display: flex; gap: 12px; }
.dlg-list-wrap {
  margin: 11px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: auto;
  min-height: 280px;
  max-height: 46vh;
}
.dlg-error {
  margin: 0 18px 10px;
  padding: 8px 12px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.dlg-selected { font-size: 12px; color: var(--dim); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 打开镜像进行中的对话框内状态 */
#dlg-opening {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-size: 12px;
}
#dlg-opening.hidden { display: none; }

/* ============ 导出文件对话框 ============ */
#exp-modal { width: min(560px, 92vw); }
.exp-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.exp-group {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
}
.exp-group label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.exp-group input[type="radio"] { accent-color: var(--accent); }
.exp-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: .5px;
}
#exp-dest-row { padding-left: 24px; display: flex; gap: 6px; }
#exp-dest-row .btn { flex: none; }
#exp-dest {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--panel-alt);
  font-family: var(--mono);
}
#exp-dest:focus { border-color: var(--accent); background: var(--panel); }
.exp-note { font-size: 12px; color: var(--dim); padding: 0 2px; }
.exp-note.warn { color: var(--danger); }

/* ============ Hex 查看器 ============ */
#hex-modal { width: min(860px, 94vw); }
#hex-view {
  margin: 0;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  overflow: auto;
  background: #1c1917;
  color: #d6d3cb;
  min-height: 320px;
  max-height: 60vh;
  white-space: pre;
}
#hex-progress { font-size: 11.5px; }

/* ============ 文件预览 ============ */
#pv-modal { width: min(1080px, 94vw); height: min(84vh, 860px); }
#pv-body {
  flex: 1;
  min-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: var(--panel-alt);
}
#pv-body.pv-center { align-items: center; justify-content: center; }
.pv-img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}
.pv-frame { flex: 1; width: 100%; border: 0; background: #525659; }
.pv-video { max-width: 100%; max-height: 100%; margin: auto; }
.pv-audio { width: min(560px, 90%); margin: auto; }
.pv-text {
  margin: 0;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.pv-note {
  padding: 8px 18px;
  font-size: 12px;
  color: #92400e;
  background: #fffbeb;
  border-bottom: 1px solid var(--border-light);
}
.pv-office { padding: 4px 0 12px; }
.pv-sec-title {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 650;
  background: var(--panel);
  border-bottom: 1px solid var(--border-light);
}
.pv-fallback { margin: auto; padding: 40px 18px; text-align: center; }

/* ============ $LogFile 日志分析 ============ */
#lf-modal, #uj-modal { width: min(1240px, 96vw); height: min(88vh, 940px); }
.lf-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 0;
  flex-wrap: wrap;
}
.lf-toolbar input[type="text"] {
  width: 230px;
  padding: 6px 11px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--panel-alt);
}
.lf-toolbar input[type="text"]:focus { border-color: var(--accent); background: var(--panel); }
.lf-toolbar select {
  padding: 6px 8px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.lf-chk { font-size: 12.5px; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.lf-chips { display: flex; gap: 6px; }
.lf-chips .chip.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-bg);
  font-weight: 600;
}
.lf-note {
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}
.lf-spacer { flex: 1; }
#lf-summary, #uj-summary { padding: 8px 18px 0; font-size: 12px; }
.lf-more-hint td { text-align: center; padding: 14px; }
.lf-table-wrap {
  flex: 1;
  overflow: auto;
  margin: 8px 18px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
#lf-table td, #uj-table td { white-space: nowrap; }
#lf-table td.name, #uj-table td.name { max-width: 320px; }
#lf-table td.mono-path, #uj-table td.mono-path { max-width: 240px; }
.lf-cat {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 2px;
}
.lf-index_add { background: #dcfce7; color: #166534; }
.lf-index_del, .lf-delete { background: #fee2e2; color: #991b1b; }
.lf-create { background: #dbeafe; color: #1e40af; }
.lf-attr_set, .lf-attr_add, .lf-attr_del, .lf-fn_update { background: #fef3c7; color: #92400e; }
.lf-other { background: #e5e7eb; color: #374151; }
/* xlsx 工作表表格 */
.pv-grid {
  border-collapse: collapse;
  margin: 10px 18px 16px;
  font-size: 12.5px;
  background: var(--panel);
}
.pv-grid td {
  border: 1px solid #e3e1dc;
  padding: 4px 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 420px;
}
/* docx 富格式渲染(docx-preview 注入页面样式,容器撑满预览区) */
.pv-docx { flex: 1; width: 100%; overflow: auto; }
.pv-docx .docx-wrapper { padding-top: 16px; }

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d6d3cb; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b5b1a8; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 窄屏适配 ============ */
@media (max-width: 1100px) {
  #sidebar { width: 240px; }
  #tree-col { width: 215px; }
  #content { padding: 16px 18px; }
}

/* ============ 登录页(浅色系) ============ */
#login-overlay {
  background: radial-gradient(1200px 800px at 70% -10%, #eef4fb 0%, #f6f7f4 55%, #f1efe9 100%);
  z-index: 300;
  overflow: hidden;
}

/* ---- 背景动画层 ---- */
.login-bg { position: absolute; inset: 0; pointer-events: none; }

/* 漂移光晕(柔和浅色) */
.lb-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.lb-g1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 70%);
  top: -140px; left: -120px;
  animation: lb-drift1 22s ease-in-out infinite alternate;
}
.lb-g2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25), transparent 70%);
  bottom: -120px; right: -100px;
  animation: lb-drift2 26s ease-in-out infinite alternate;
}
.lb-g3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 70%);
  top: 40%; left: 55%;
  animation: lb-drift3 18s ease-in-out infinite alternate;
}
@keyframes lb-drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(120px, 90px) scale(1.15); }
}
@keyframes lb-drift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-110px, -80px) scale(0.95); }
}
@keyframes lb-drift3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-90px, 70px); }
}

/* 透视网格地板:向观察者缓慢滚动(浅色淡网格) */
.lb-grid {
  position: absolute;
  left: -25%; right: -25%;
  bottom: -6%;
  height: 55%;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center top;
  animation: lb-grid-scroll 3.2s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 90%, transparent 100%);
}
@keyframes lb-grid-scroll {
  from { background-position-y: 0; }
  to   { background-position-y: 44px; }
}

/* 扫描线:缓慢上下扫过(取证扫描意象,浅色版) */
.lb-scan {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(13, 148, 136, 0.04) 40%,
    rgba(13, 148, 136, 0.09) 50%,
    rgba(13, 148, 136, 0.04) 60%,
    transparent);
  animation: lb-scan-move 9s ease-in-out infinite;
}
@keyframes lb-scan-move {
  0%   { top: -15%; }
  50%  { top: 105%; }
  100% { top: -15%; }
}

/* ---- 登录卡片(浅色玻璃拟态) ---- */
#login-box {
  position: relative;
  width: min(360px, 92vw);
  padding: 38px 34px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(13, 148, 136, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  color: #1e293b;
  animation: login-rise .55s cubic-bezier(.2, .9, .25, 1.15);
}
@keyframes login-rise {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo:辉光圆环 + 涟漪脉冲 */
.login-logo {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.20), rgba(96, 165, 250, 0.16));
  border: 1px solid rgba(13, 148, 136, 0.30);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.20),
              inset 0 0 18px rgba(45, 212, 191, 0.12);
}
.login-logo svg { width: 34px; height: 34px; color: #0f766e; display: block; }
.login-logo i {
  position: absolute; inset: -1px;
  border-radius: 22px;
  border: 1px solid rgba(13, 148, 136, 0.45);
  animation: lb-ripple 2.6s ease-out infinite;
}
@keyframes lb-ripple {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.55); }
  100% { opacity: 0;  transform: scale(1.55); }
}

#login-box h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #0f172a, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-sub {
  margin: 6px 0 24px;
  font-size: 10.5px;
  letter-spacing: 4px;
  color: #94a3b8;
}

/* 表单 */
#login-form { display: flex; flex-direction: column; gap: 14px; }
.lf-field { text-align: left; }
.lf-field label {
  display: block;
  margin: 0 2px 6px;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 1px;
}
#login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#login-form input::placeholder { color: #b6c2cf; }
#login-form input:focus {
  border-color: rgba(13, 148, 136, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14),
              0 0 18px rgba(13, 148, 136, 0.10);
}
#login-form .dlg-error {
  text-align: left;
  margin: -2px 0 0;
  background: rgba(225, 29, 72, 0.07);
  border-color: rgba(225, 29, 72, 0.35);
  color: #be123c;
  animation: login-shake .4s;
}
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
#login-submit {
  margin-top: 4px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(4, 47, 46, 0.25);
  background: linear-gradient(90deg, #14b8a6, #3b82f6);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}
#login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.45);
}
#login-submit:active:not(:disabled) { transform: translateY(0); }
#login-submit:disabled { opacity: .55; cursor: default; }

.login-foot {
  margin: 22px 0 0;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #a1a1aa;
}
.login-copyright {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: .5px;
  color: #b8bec8;
}

/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .lb-glow, .lb-grid, .lb-scan, .login-logo i { animation: none; }
  #login-box { animation: none; }
}

/* ============ 授权镜像列表(操作员侧栏) ============ */
.grant-empty { font-size: 12px; padding: 6px 2px; }

/* ============ 用户与授权管理 ============ */
#admin-modal { width: min(760px, 94vw); }
.admin-body {
  padding: 14px 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-new { display: flex; gap: 8px; }
.admin-new input, .admin-new select {
  padding: 6px 10px;
  font-size: 12.5px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}
.admin-new input { flex: 1; min-width: 0; }
.admin-new select { flex: none; }
#admin-table select {
  font-size: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 4px;
  background: #fff;
}
#admin-table td.c, #admin-table th.c { text-align: center; }
#admin-table .btn.small { margin: 0 2px; }
#admin-table td input[type="password"] {
  width: 150px;
  padding: 3px 8px;
  font-size: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}
.btn.danger { color: var(--danger); border-color: #fecdd3; }
.btn.danger:hover { background: var(--danger-bg); }

/* 授权编辑器 */
#grant-editor {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ge-add { display: flex; gap: 8px; }
.ge-add input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 12.5px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.ge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fff;
}
.ge-path {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
}
.ge-perm { display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }

/* ============ 修改口令 ============ */
#pwd-modal { width: min(380px, 92vw); }
.pwd-grid { display: flex; flex-direction: column; gap: 10px; }
.pwd-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--dim); }
.pwd-grid input {
  padding: 7px 11px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.pwd-grid input:focus { outline: none; border-color: var(--accent); }

/* ============ 导出任务栏(右下角浮动面板) ============ */
#task-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 900;
  overflow: hidden;
}
#tp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border-light);
}
.tp-title { font-weight: 600; font-size: 12.5px; }
.tp-spacer { flex: 1; }
#tp-fold, #tp-close { padding: 1px 7px; font-size: 12px; }
#task-panel.collapsed #task-list { display: none; }
#task-panel.collapsed #tp-head { border-bottom: none; }
#task-list {
  max-height: 46vh;
  overflow: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-empty { text-align: center; padding: 14px 0; font-size: 12px; }

.tp-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--panel);
}
.tp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tp-desc {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-chip {
  flex-shrink: 0;
  font-size: 11px;
  border-radius: 99px;
  padding: 0 8px;
  line-height: 18px;
  background: var(--accent-bg);
  color: var(--accent-dark);
}
.tp-chip.warn { background: #fef3c7; color: #b45309; }
.tp-chip.err { background: var(--danger-bg); color: var(--danger); }
.tp-chip.ok { background: #ecfdf5; color: var(--ok); }
.tp-chip.mut { background: var(--hover); color: var(--dim); }

.tp-bar {
  margin-top: 7px;
  height: 6px;
  border-radius: 99px;
  background: var(--border-light);
  overflow: hidden;
}
.tp-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--accent);
  transition: width .3s ease;
}
.tp-fill.verify { background: #7c3aed; }
.tp-fill.ok { background: var(--ok); }
.tp-fill.err { background: var(--danger); }
/* 收集清单中:总量未知,来回扫动指示 */
.tp-fill.indet { width: 40% !important; animation: tp-slide 1.1s ease-in-out infinite alternate; }
@keyframes tp-slide { from { margin-left: 0; } to { margin-left: 60%; } }

.tp-detail {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-all;
}
.tp-detail .si-ok, .tp-detail .si-err { font-weight: 500; }
.tp-cur {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-acts {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.tp-acts .btn { padding: 2px 9px; font-size: 11.5px; }

/* ============ 镜像完整性校验 ============ */
.verify-tip { margin: 0 0 10px; font-size: 12px; }
.verify-row { display: flex; align-items: center; gap: 10px; }
#verify-bar-wrap { margin-top: 10px; }
#verify-result { margin-top: 10px; }
#verify-result:empty { display: none; }

/* ============ $UsnJrnl 分析(窗口解析 + 筛选 + 翻页) ============ */
.uj-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
  background: var(--panel-alt);
}
.uj-lbl { font-size: 12px; white-space: nowrap; }
.uj-disabled { opacity: .45; pointer-events: none; }
#uj-from, #uj-to {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}
