/* ───────────────────────────────────────────────
   桌面版外壳：桌面 / 任务栏 / 窗口 / 文件管理器
   变量与组件样式沿用 style.css，这里只加桌面相关的部分
   ─────────────────────────────────────────────── */

:root { --taskbar: 54px; }

body.desktop-mode {
  height: 100vh;
  overflow: hidden;
  user-select: none;
  background:
    radial-gradient(1100px 700px at 78% 12%, rgba(47, 111, 230, .30), transparent 60%),
    radial-gradient(900px 620px at 12% 88%, rgba(15, 159, 115, .24), transparent 62%),
    linear-gradient(150deg, #0b1220 0%, #101a2c 45%, #0d1626 100%);
}
body.desktop-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- 桌面与图标 ---------- */
#desktop { position: fixed; inset: 0 0 var(--taskbar) 0; padding: 18px; }
.dicons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 92px);
  grid-auto-rows: 96px;
  gap: 4px;
  align-content: start;
}
.dicon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: default;
  color: #eaf1fb;
  outline: none;
}
.dicon:hover { background: rgba(255, 255, 255, .10); }
.dicon.on, .dicon:focus-visible { background: rgba(122, 166, 255, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.dicon .box {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6);
  color: #fff;
}
.dicon .badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.dicon .lb {
  font-size: 12px; line-height: 1.3; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
  word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 任务栏 ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--taskbar);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  background: rgba(10, 16, 28, .74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: #dce6f5;
  z-index: 9000;
}
.startbtn {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px;
  border: none; border-radius: 10px;
  background: none; color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.startbtn:hover, .startbtn.on { background: rgba(255, 255, 255, .14); opacity: 1; }
.startbtn .mk {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, #4f8bff, #22c39a);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.tasks { display: flex; align-items: center; gap: 6px; overflow: auto hidden; flex: 1; }
.tasks::-webkit-scrollbar { height: 0; }
.task {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 13px;
  border: none; border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #cfdcee; font-size: 12.5px;
  max-width: 210px; white-space: nowrap;
  cursor: pointer;
}
.task:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
.task.act { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.task .ti { display: inline-flex; }
.task .t { overflow: hidden; text-overflow: ellipsis; }
.tray { display: flex; align-items: center; gap: 6px; }
.tray-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: none; border: none; color: #cfdcee; cursor: pointer;
}
.tray-btn:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.bell-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.tray-user {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 9px;
  background: none; border: none; color: #cfdcee; font-size: 12.5px; cursor: pointer;
}
.tray-user:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.tray-user b { color: #fff; font-weight: 600; }
.clock { text-align: right; line-height: 1.25; font-size: 11px; color: #b8c7dd; padding: 0 6px; font-variant-numeric: tabular-nums; }
.clock b { display: block; font-size: 13px; color: #fff; font-weight: 600; }
/* 任务栏里的语言开关配深色底 */
#taskbar .lang-switch { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .12); }
#taskbar .lang-seg { color: #b8c7dd; }
#taskbar .lang-seg.on { background: rgba(255, 255, 255, .92); color: #12233f; }

/* ---------- 开始菜单 ---------- */
#start {
  position: fixed; left: 10px; bottom: calc(var(--taskbar) + 8px);
  width: 306px;
  background: rgba(16, 23, 36, .95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  padding: 10px;
  z-index: 9100;
  display: none;
  color: #dce6f5;
}
#start.on { display: block; }
#start .sec { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fa2bd; padding: 6px 10px 5px; }
#start .row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; cursor: default; }
#start .row:hover { background: rgba(255, 255, 255, .1); }
#start .row .ic { color: #a9c2e6; }
#start .u { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 8px; }
#start .u .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #4f8bff, #22c39a); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
#start .u .n { font-size: 13px; color: #fff; }
#start .u .m { font-size: 11px; color: #8fa2bd; }

/* ---------- 窗口 ---------- */
.win {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 60px -18px rgba(6, 12, 24, .55), 0 2px 8px rgba(6, 12, 24, .18);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-width: 460px; min-height: 300px;
  z-index: 100;
}
.win.min { display: none; }
.win.max { border-radius: 0; }
.win.inactive { box-shadow: 0 10px 30px -14px rgba(6, 12, 24, .45); }
.win.inactive .titlebar .ttl { color: var(--mute); }
.titlebar {
  height: 40px; flex: none;
  display: flex; align-items: center; gap: 9px;
  padding: 0 8px 0 13px;
  background: var(--panel, var(--surface-2));
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.titlebar .ttl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg); overflow: hidden; white-space: nowrap; }
.titlebar .ttl .ic { color: var(--gold); }
.wbtns { display: flex; gap: 2px; }
.wbtn { width: 30px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--mute); background: none; border: none; cursor: pointer; }
.wbtn:hover { background: var(--fill); color: var(--fg); opacity: 1; }
.wbtn.close:hover { background: var(--danger); color: #fff; }
.wbody { flex: 1; display: flex; min-height: 0; overflow: hidden; }
.wbody > .page { flex: 1; overflow: auto; padding: 18px 20px; }
.resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }

/* ---------- 文件管理器 ---------- */
.fm { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.crumbbar { height: 38px; flex: none; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.navbtn { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--mute); background: none; border: none; cursor: pointer; }
.navbtn:hover:not(:disabled) { background: var(--fill); color: var(--fg); opacity: 1; }
.navbtn:disabled { opacity: .32; cursor: default; }
.crumbs { display: flex; align-items: center; gap: 1px; font-size: 12.5px; overflow: hidden; }
.crumbs a { color: var(--mute); padding: 3px 6px; border-radius: 6px; white-space: nowrap; cursor: default; }
.crumbs a:hover { background: var(--fill); color: var(--fg); }
.crumbs a.cur { color: var(--fg); font-weight: 600; }
.crumbs i { color: var(--faint); font-style: normal; }
.fm-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.fm-search .ic { position: absolute; left: 8px; color: var(--faint); }
.fm-search input {
  width: 170px; height: 26px;
  padding: 0 10px 0 27px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface-2); color: var(--fg);
  font: inherit; font-size: 12px; outline: none;
  transition: width .15s;
}
.fm-search input:focus { border-color: var(--accent); background: var(--surface); width: 220px; box-shadow: none; }
.fm-search .sp {
  position: absolute; top: 30px; right: 0; width: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 44px -14px rgba(6, 12, 24, .4);
  z-index: 50; display: none; overflow: hidden; max-height: 340px; overflow-y: auto;
}
.fm-search .sp.on { display: block; }
.fm-search .sp .tip { padding: 7px 12px; font-size: 11.5px; color: var(--faint); border-bottom: 1px solid var(--line); }
.fm-search .sp .r { padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: default; }
.fm-search .sp .r:last-child { border-bottom: none; }
.fm-search .sp .r:hover { background: var(--surface-2); }
.fm-search .sp .r .n { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg); }
.fm-search .sp .r .p { font-size: 11px; color: var(--mute); padding-left: 19px; }

.fm .toolbar {
  height: 40px; flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.tool {
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 7px;
  background: none; color: var(--mute);
  font: inherit; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.tool:hover:not(:disabled) { background: var(--surface); border-color: var(--line); color: var(--fg); opacity: 1; }
.tool.primary { background: var(--accent); color: #fff; font-weight: 600; }
.tool.primary:hover { background: var(--accent); color: #fff; border-color: transparent; opacity: .9; }
.tool.danger { color: var(--danger); }
.tool:disabled { opacity: .38; cursor: default; }
.fm .divider { width: 1px; height: 17px; background: var(--line); margin: 0 2px; }
.fm .spacer { flex: 1; }
.seg.v-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.seg.v-seg button { padding: 3px 8px; border: none; border-radius: 5px; background: none; color: var(--mute); display: grid; place-items: center; cursor: pointer; }
.seg.v-seg button.on { background: var(--fill); color: var(--accent); }

.fm-main { flex: 1; display: flex; min-height: 0; }
.fm .tree {
  width: 206px; flex: none;
  border-right: 1px solid var(--line);
  background: var(--panel, var(--surface-2));
  overflow: auto;
  padding: 8px 6px 16px;
}
.fm .tree-h { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 4px 8px 6px; }
.fm .node {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 8px;
  border-radius: 6px;
  font-size: 12.5px; color: var(--mist);
  white-space: nowrap; cursor: default;
}
.fm .node:hover { background: var(--fill); }
.fm .node.on { background: var(--accent-soft, rgba(47,111,230,.09)); color: var(--accent); font-weight: 600; }
.fm .node.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.fm .node .tw { width: 12px; text-align: center; color: var(--faint); font-size: 9px; flex: none; }
.fm .node .nm { overflow: hidden; text-overflow: ellipsis; }
.fm .node.grp { font-weight: 600; color: var(--fg); font-size: 12px; }
.fm .node .cnt { margin-left: auto; font-size: 10.5px; color: var(--faint); }
.fm .node .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-left: auto; flex: none; }

.fm .files { flex: 1; overflow: auto; position: relative; padding: 8px 10px 24px; min-width: 0; }
.fm .files.dropping { outline: 2px dashed var(--accent); outline-offset: -6px; }
.marquee { position: absolute; display: none; border: 1px solid var(--accent); background: var(--accent-soft, rgba(47,111,230,.1)); pointer-events: none; z-index: 5; }
.lhead, .lrow { display: grid; grid-template-columns: 24px 1fr 110px 78px 130px; align-items: center; gap: 9px; }
.lhead { padding: 0 9px 6px; font-size: 11px; color: var(--faint); border-bottom: 1px solid var(--line); position: sticky; top: -8px; background: var(--surface); z-index: 2; }
.lrow { height: 31px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; cursor: default; }
.lrow:hover { background: var(--fill); }
.lrow.sel { background: var(--accent-soft, rgba(47,111,230,.1)); }
.nm-cell { display: flex; align-items: center; gap: 7px; overflow: hidden; }
.nm-cell .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.fm .meta { font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn { font: inherit; font-size: 12.5px; padding: 2px 6px; border: 1px solid var(--accent); border-radius: 5px; background: var(--surface); color: var(--fg); outline: none; width: 220px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.tile { padding: 10px 5px 9px; border-radius: 9px; text-align: center; cursor: default; }
.tile:hover { background: var(--fill); }
.tile.sel { background: var(--accent-soft, rgba(47,111,230,.1)); }
.tile .th { width: 58px; height: 58px; margin: 0 auto 7px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); }
.tile .t { font-size: 11.5px; color: var(--mist); line-height: 1.35; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cols { display: flex; height: 100%; margin: -8px -10px -24px; }
.col { width: 200px; flex: none; border-right: 1px solid var(--line); overflow: auto; padding: 5px; }
.col:last-child { flex: 1; }
.citem { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 7px; border-radius: 6px; font-size: 12.5px; cursor: default; }
.citem:hover { background: var(--fill); }
.citem.on, .citem.sel { background: var(--accent-soft, rgba(47,111,230,.1)); }
.citem .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .ar { margin-left: auto; color: var(--faint); font-size: 9px; }

.fm .statusbar {
  height: 25px; flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  background: var(--panel, var(--surface-2));
  font-size: 11.5px; color: var(--mute);
}
.fm .statusbar .spacer { flex: 1; }
.rembar {
  display: flex; align-items: center; gap: 9px;
  background: var(--accent-soft, rgba(47,111,230,.09));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  margin-bottom: 8px;
}
.rembar.expired { opacity: .6; }
.rembar .ic { color: var(--accent); }
.rembar .rb-main { flex: 1; min-width: 0; }
.rembar .rb-msg { font-size: 12.5px; color: var(--fg); }
.rembar .rb-meta { font-size: 11px; color: var(--mute); margin-top: 2px; }

/* ---------- 右键菜单 ---------- */
.ctx-menu {
  position: fixed;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px -14px rgba(6, 12, 24, .45);
  padding: 5px;
  z-index: 9500;
}
.ctx-menu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 7px 10px;
  border: none; border-radius: 6px;
  background: none; color: var(--mist);
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
}
.ctx-menu button:hover:not(:disabled) { background: var(--accent-soft, rgba(47,111,230,.09)); color: var(--accent); opacity: 1; }
.ctx-menu button.danger { color: var(--danger); }
.ctx-menu button.danger:hover { background: rgba(190, 18, 60, .09); }
.ctx-menu button:disabled { opacity: .35; cursor: default; }
.ctx-menu .sep { height: 1px; background: var(--line); margin: 4px; }
.ctx-menu .kbd { margin-left: auto; font-size: 10.5px; color: var(--faint); }

/* ---------- 预览窗口 ---------- */
/* min-width:0 是关键：.pv 是 .wbody 这个横向 flex 的子项，
   默认的 min-width:auto 会被宽内容（几十列的装箱清单）撑破，
   窗口的宽度约束整条失效，表格顶出窗口而不是在自己的容器里滚。 */
.pv { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pv-body { flex: 1; min-width: 0; overflow: auto; display: grid; place-items: center; background: var(--surface-2); padding: 14px; }
/* Excel 预览自己占满窗口、自己滚。
   .pv-body 默认是 grid + place-items:center，宽表被居中后向两侧溢出，
   左边那半截怎么拉都拉不到——装箱清单那种几十列的表就永远看不全。 */
.pv-body.excel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}
.pv-foot { height: 34px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; }
.pv-foot .m { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pv-foot .spacer { flex: 1; }
.pv-foot .tool { flex: none; }
.pv-img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .4); }
.pv-frame { width: 100%; height: 100%; border: none; border-radius: 6px; background: #fff; }

/* 提醒中心 */
.rem-item { border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; margin-bottom: 9px; }
.rem-loc { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; color: var(--fg); margin-bottom: 5px; }
.rem-msg { font-size: 13px; line-height: 1.6; color: var(--mist); margin-bottom: 8px; }
.rem-foot { display: flex; align-items: center; gap: 9px; }
.rem-foot .spacer { flex: 1; }

@media (max-width: 820px) {
  /* min-width 不一起放开的话，窗口会比手机屏幕还宽，右上角的关闭按钮被挤出屏幕 */
  .win { left: 0 !important; top: 0 !important; width: 100vw !important; height: calc(100vh - var(--taskbar)) !important; border-radius: 0; min-width: 0; }
  .fm .tree { display: none; }
  .lhead, .lrow { grid-template-columns: 24px 1fr 80px; }
  .lhead span:nth-child(3), .lrow .meta:nth-of-type(1), .lhead span:nth-child(5), .lrow .meta:nth-of-type(3) { display: none; }
  #desktop { padding: 10px; }
}

/* 弹窗、抽屉、提示要盖在所有窗口之上（窗口 z-index 从 100 起递增） */
body.desktop-mode .modal-mask { z-index: 9800; }
body.desktop-mode .toast { z-index: 9900; bottom: calc(var(--taskbar) + 18px); }
body.desktop-mode .preview-mask { z-index: 9700; }
body.desktop-mode .dev-switcher { bottom: calc(var(--taskbar) + 12px); z-index: 9600; }

/* 窗口内的 spacer 一律撑开——标题栏的最小化/最大化/关闭要贴在右上角 */
.win .spacer { flex: 1; }
.titlebar .spacer { flex: 1; }

/* 图片放大层：盖在窗口之上，右上角给一个明确的关闭按钮 */
body.desktop-mode .img-lightbox { z-index: 9850; }
.img-lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff; cursor: pointer;
}
.img-lightbox .lb-close:hover { background: rgba(255, 255, 255, .3); opacity: 1; }

/* 兜底：窗口按钮里的图标必须有尺寸，否则渲染成空白 */
.wbtn .ic { width: 15px; height: 15px; }

/* 图标按钮：清掉全局 button 的内边距，否则图标会被挤出中心 */
.wbtn, .tray-btn, .navbtn, .startbtn, .task, .img-lightbox .lb-close,
.seg.v-seg button, .dicon, .fm-search button {
  padding: 0;
}
.startbtn { padding: 0 14px; }
.task { padding: 0 13px; }
.seg.v-seg button { padding: 3px 8px; }
.wbtn { width: 34px; height: 26px; }

/* ---------- 标签与备注 ---------- */
.nm-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chips { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent-soft, rgba(47, 111, 230, .1));
  color: var(--accent);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.chip.note { padding: 1px 5px; color: var(--mute); background: var(--fill); }
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag-opt {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--mute);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
}
.tag-opt:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.tag-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 上传重名 ---------- */
.dup-modal { max-width: 460px; }
.dup-msg { margin: 0 0 10px; color: var(--fg); }
.dup-old {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2);
  font-size: 12.5px; color: var(--mute);
}
.dup-acts { display: flex; flex-direction: column; gap: 8px; }
.dup-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--fg);
  text-align: left; cursor: pointer;
}
.dup-opt:hover, .dup-opt:focus-visible { border-color: var(--accent); background: var(--accent-soft); opacity: 1; }
.dup-opt b { font-size: 13.5px; font-weight: 600; }
.dup-opt span { font-size: 12px; color: var(--mute); font-weight: 400; }
.dup-rest { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.dup-rest input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ---------- 回收站 ---------- */
.tr-name { margin-left: 6px; }
