* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 13px; color: #1b1b1b;
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
kbd {
  display: inline-block; padding: 0 5px; border: 1px solid #c8c8c8; border-bottom-width: 2px;
  border-radius: 4px; background: #fafafa; font-family: inherit; font-size: 11px; line-height: 16px; color: #333;
}
.sp { flex: 1; }

/* ---------------- 桌面 ---------------- */
#desktop {
  position: fixed; left: 0; top: 0; right: 0; bottom: 48px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 62% 58%, rgba(120,190,255,.95) 0%, rgba(40,120,230,.7) 30%, rgba(10,60,160,0) 62%),
    radial-gradient(ellipse 45% 55% at 48% 64%, rgba(170,220,255,.8) 0%, rgba(60,140,240,0) 55%),
    radial-gradient(ellipse 80% 90% at 70% 40%, #1d5fd0 0%, #0b2f86 55%, #071a4f 100%);
}
#icons { position: absolute; inset: 0; z-index: 1; }
.ditem {
  position: absolute; width: 76px; padding: 4px 2px 3px; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; border: 1px solid transparent;
}
.ditem .ic { width: 44px; height: 44px; }
.ditem .ic svg { width: 100%; height: 100%; display: block; }
.ditem .nm {
  margin-top: 3px; color: #fff; font-size: 12px; line-height: 15px; text-align: center; word-break: break-all;
  text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ditem:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.ditem.sel { background: rgba(140,190,255,.38); border-color: rgba(190,220,255,.6); }
.ditem.sel .nm { -webkit-line-clamp: 6; }
.ditem.drop-hl { background: rgba(140,190,255,.45); border-color: #fff; }

/* ---------------- 说明卡片 ---------------- */
#guide {
  position: absolute; left: 270px; top: 22px; width: 480px; z-index: 4;
  background: rgba(255,255,255,.93); backdrop-filter: blur(16px);
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.28); padding: 12px 14px;
  font-size: 12.5px; line-height: 1.6;
}
#guide .g-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#guide .g-tag { font-size: 11px; background: #eef4ff; color: #0b5cd5; padding: 1px 7px; border-radius: 10px; }
#guide .g-toggle { border: 0; background: #f0f0f0; border-radius: 5px; padding: 2px 9px; cursor: pointer; font-size: 12px; }
#guide .g-toggle:hover { background: #e4e4e4; }
#guide ol { margin: 8px 0 8px; padding-left: 20px; }
#guide li { margin: 3px 0; }
#guide .g-warn { margin: 6px 0 0; color: #a15c00; font-size: 12px; }
#guide .g-note { margin: 6px 0 0; color: #777; font-size: 11.5px; }
#guide .g-acts { display: flex; flex-wrap: wrap; gap: 6px; }
#guide.collapsed { width: auto; }
#guide.collapsed .g-body { display: none; }

.btn {
  border: 1px solid #d0d0d0; background: #fff; border-radius: 5px; padding: 5px 14px; cursor: pointer;
}
.btn:hover { background: #f5f5f5; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.primary { background: #0067c0; border-color: #0067c0; color: #fff; }
.btn.primary:hover { background: #1975c5; }
.btn.danger { background: #c42b1c; border-color: #c42b1c; color: #fff; }
.btn.danger:hover { background: #d13a2b; }

/* ---------------- 格子组（小格子） ---------------- */
#group {
  position: absolute; z-index: 5; display: flex; flex-direction: column;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
#group.top, #panel.top { z-index: 30; }
#group.gap0 { border-radius: 8px; overflow: hidden; }
#group.gap0 .cell + .cell { box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
#group:not(.gap0) .cell { border-radius: 6px; }
.cell {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px;
  cursor: grab; backdrop-filter: blur(12px); font-size: 13px; font-weight: 600;
  text-shadow: 0 0 2px rgba(0,0,0,.15);
  transition: filter .12s;
}
#group.locked .cell { cursor: default; }
.cell:hover { filter: brightness(1.12); }
.cell.active::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: currentColor; opacity: .85;
}
.cell .cname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .ccount { font-size: 11px; font-weight: 400; opacity: .7; }
.cell.empty { background: rgba(255,255,255,.25); color: #fff; justify-content: center; cursor: pointer; font-weight: 400; }
.cell.drop-hl { filter: brightness(1.25); box-shadow: inset 0 0 0 2px #fff !important; }
.cell.lifting { opacity: .45; }
.cell.pulse { animation: pulse .9s ease 2; }
@keyframes pulse { 50% { filter: brightness(1.5); } }
.cell input.cren {
  width: 100%; border: 1px solid #0067c0; border-radius: 3px; padding: 2px 5px; outline: none;
  font-size: 13px; color: #1b1b1b; background: #fff; text-shadow: none; font-weight: 400;
}
.cell input.cren.bad { border-color: #c42b1c; background: #fff2f1; }
#group .lockbadge {
  position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.35); z-index: 2;
}
#reorder-line { position: absolute; height: 3px; background: #fff; border-radius: 2px; box-shadow: 0 0 4px rgba(0,0,0,.6); z-index: 40; pointer-events: none; }

/* ---------------- 大格子 ---------------- */
#panel {
  position: absolute; z-index: 5; display: none; flex-direction: column;
  border-radius: 8px 0 8px 8px; backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: -6px 8px 28px rgba(0,0,0,.3);
  --fg: #fff; --sub: rgba(255,255,255,.72); --hov: rgba(255,255,255,.14); --selb: rgba(255,255,255,.28); --line: rgba(255,255,255,.22);
  color: var(--fg);
}
#panel.flip { border-radius: 0 8px 8px 8px; box-shadow: 6px 8px 28px rgba(0,0,0,.3); }
#panel.light { --fg: #1b1b1b; --sub: rgba(0,0,0,.55); --hov: rgba(0,0,0,.07); --selb: rgba(0,0,0,.14); --line: rgba(0,0,0,.14); }
#panel.drop-hl { box-shadow: inset 0 0 0 2px #fff, -6px 8px 28px rgba(0,0,0,.3); }
.ptitle {
  height: 34px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 12px;
  border-bottom: 1px solid var(--line);
}
.ptitle .pname { font-size: 13px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptitle .pcount { color: var(--sub); font-size: 12px; margin-left: 4px; white-space: nowrap; }
.psearch {
  width: 96px; height: 24px; border-radius: 4px; border: 1px solid var(--line); background: var(--hov);
  color: var(--fg); padding: 0 7px; outline: none; font-size: 12px; transition: width .15s;
}
.psearch::placeholder { color: var(--sub); }
.psearch:focus { width: 130px; border-color: var(--fg); }
.tbtn {
  height: 24px; min-width: 24px; border: 0; background: transparent; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0 4px; color: var(--fg); font-size: 12px;
}
.tbtn:hover { background: var(--hov); }
.tbtn.on { background: var(--selb); }
.tbtn svg { display: block; }
.pviews { display: inline-flex; }
.pbody { flex: 1; overflow: auto; position: relative; padding: 6px; }
.pbody::-webkit-scrollbar, .wlist::-webkit-scrollbar { width: 10px; }
.pbody::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 3px solid transparent; background-clip: padding-box; }
.pempty {
  position: absolute; inset: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--line); border-radius: 8px; color: var(--sub); gap: 6px; pointer-events: none;
}
.pnote { padding: 2px 6px 6px; color: var(--sub); font-size: 11.5px; }

/* 视图 */
.v-large { display: grid; grid-template-columns: repeat(auto-fill, 88px); gap: 2px; align-content: start; }
.v-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px 4px; align-content: start; }
.v-list { display: flex; flex-direction: column; }
.fitem { border: 1px solid transparent; border-radius: 4px; }
.v-large .fitem { padding: 6px 3px 4px; display: flex; flex-direction: column; align-items: center; }
.v-large .fitem .ic { width: 48px; height: 48px; }
.v-large .fitem .nm {
  margin-top: 3px; font-size: 12px; line-height: 15px; text-align: center; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%;
}
.v-small .fitem, .v-list .fitem { display: flex; align-items: center; gap: 7px; padding: 3px 6px; height: 28px; }
.v-small .fitem .ic, .v-list .fitem .ic { width: 20px; height: 20px; flex: none; }
.v-small .fitem .nm, .v-list .fitem .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.v-list .fitem .c { flex: none; color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-list .c.t { width: 112px; } .v-list .c.y { width: 92px; } .v-list .c.s { width: 64px; text-align: right; }
.lhead {
  display: flex; gap: 7px; padding: 0 7px 3px 33px; color: var(--sub); font-size: 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 3px; position: sticky; top: -6px; z-index: 1;
}
.lhead span { cursor: pointer; white-space: nowrap; }
.lhead span:hover { color: var(--fg); }
.lhead .h-n { flex: 1; } .lhead .h-t { width: 112px; } .lhead .h-y { width: 92px; } .lhead .h-s { width: 64px; text-align: right; }
.fitem .ic svg { width: 100%; height: 100%; display: block; }
#panel .fitem:hover, #win .fitem:hover { background: var(--hov); }
#panel .fitem.sel, #win .fitem.sel { background: var(--selb); border-color: var(--line); }
.v-large .fitem.sel .nm { -webkit-line-clamp: 6; }
.fitem.cut .ic { opacity: .45; }
.fitem.drop-hl { background: var(--selb) !important; border-color: var(--fg) !important; }
.fitem.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { background: rgba(255,214,10,.55); } }
textarea.ren {
  width: 100%; resize: none; border: 1px solid #0067c0; outline: none; border-radius: 2px; padding: 1px 3px;
  font-size: 12px; line-height: 15px; color: #1b1b1b; background: #fff; text-align: center; overflow: hidden;
  -webkit-user-select: text; user-select: text;
}
.v-small textarea.ren, .v-list textarea.ren, #win textarea.ren { text-align: left; height: 21px; white-space: nowrap; }
textarea.ren.bad { border-color: #c42b1c; background: #fff2f1; }

/* 调整大小的把手 */
.rh { position: absolute; z-index: 3; }
.rh[data-edge="x"] { left: -3px; top: 0; bottom: 8px; width: 6px; cursor: ew-resize; }
.rh[data-edge="y"] { left: 8px; right: 0; bottom: -3px; height: 6px; cursor: ns-resize; }
.rh[data-edge="xy"] { left: -3px; bottom: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
#panel.flip .rh[data-edge="x"] { left: auto; right: -3px; }
#panel.flip .rh[data-edge="y"] { left: 0; right: 8px; }
#panel.flip .rh[data-edge="xy"] { left: auto; right: -3px; cursor: nwse-resize; }
#panel .rh:hover { background: rgba(255,255,255,.25); border-radius: 3px; }
#sizetip {
  position: fixed; z-index: 100; background: #2b2b2b; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; pointer-events: none;
}

/* 框选 */
.band { position: fixed; z-index: 90; border: 1px solid #0078d4; background: rgba(0,120,212,.22); pointer-events: none; }

/* 拖拽幻影 */
#ghost { position: fixed; z-index: 120; pointer-events: none; display: flex; flex-direction: column; align-items: flex-start; }
#ghost[hidden], #sizetip[hidden] { display: none; }
#ghost .gi { width: 48px; height: 48px; opacity: .85; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
#ghost .gi svg { width: 100%; height: 100%; }
#ghost .gb {
  position: absolute; left: 38px; top: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #0067c0;
  color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px;
}
#ghost .gb:empty { display: none; }
#ghost .gl {
  margin-top: 4px; background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 2px 7px;
  font-size: 12px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ---------------- 资源管理器窗口 ---------------- */
.win {
  position: absolute; z-index: 20; background: #f3f3f3; border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.4); border: 1px solid rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  --fg: #1b1b1b; --sub: #666; --hov: #e9eef5; --selb: #cce4f7; --line: #b9d7ef;
}
.win[hidden] { display: none; }
.wtitle { height: 38px; display: flex; align-items: center; gap: 8px; padding-left: 12px; flex: none; cursor: default; }
.wtitle .wbtn { width: 46px; height: 38px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.wtitle .wbtn:hover { background: #e5e5e5; }
.wtitle .wbtn.x:hover { background: #c42b1c; color: #fff; }
.wbar { display: flex; align-items: center; gap: 4px; padding: 4px 10px 8px; flex: none; }
.wbar .nbtn { width: 30px; height: 28px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; display: grid; place-items: center; }
.wbar .nbtn:hover:not(:disabled) { background: #e5e5e5; }
.wbar .nbtn:disabled { opacity: .35; cursor: default; }
.wbar .addr {
  flex: 1; height: 30px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; display: flex; align-items: center;
  padding: 0 10px; font-size: 12.5px; color: #333; white-space: nowrap; overflow: hidden;
}
.wmain { flex: 1; display: flex; min-height: 0; background: #fff; border-top: 1px solid #e5e5e5; }
.wside { width: 176px; flex: none; padding: 6px; border-right: 1px solid #ececec; overflow: auto; background: #fafafa; }
.wside .nav {
  display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; border-radius: 4px; cursor: default;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent;
}
.wside .nav:hover { background: #ececec; }
.wside .nav.on { background: #e1ecf8; }
.wside .nav.drop-hl { border-color: #0078d4; background: #cce4f7; }
.wside .nav svg { width: 16px; height: 16px; flex: none; }
.wside .nav .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.wside .grp { font-size: 11.5px; color: #888; padding: 10px 8px 3px; }
.wside .sub { padding-left: 20px; }
.wlist { flex: 1; overflow: auto; padding: 6px 10px; position: relative; }
.wlist.drop-hl { box-shadow: inset 0 0 0 2px #0078d4; }
.wlist .lhead { padding-left: 33px; top: -6px; background: #fff; }
.wempty { color: #888; text-align: center; padding: 40px 0; pointer-events: none; }
.wstatus { height: 26px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 12px; color: #555; background: #fff; border-top: 1px solid #eee; }

/* ---------------- 任务栏 ---------------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 48px; z-index: 60;
  background: rgba(238,242,248,.88); backdrop-filter: blur(30px) saturate(1.5);
  border-top: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center;
}
.tb-center { display: flex; align-items: center; gap: 4px; }
.tb-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 5px; display: grid; place-items: center; cursor: pointer; position: relative; }
.tb-btn:hover { background: rgba(255,255,255,.7); }
.tb-btn.running::after { content: ""; position: absolute; bottom: 2px; width: 6px; height: 3px; border-radius: 2px; background: #8a8a8a; }
.tb-btn.running.front::after { width: 16px; background: #0067c0; }
.tb-search {
  height: 32px; width: 180px; border-radius: 16px; background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #555; margin: 0 4px; cursor: text;
}
.tb-right { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 4px; }
.tray-app { width: 30px; height: 36px; border: 0; background: transparent; border-radius: 4px; display: grid; place-items: center; cursor: pointer; }
.tray-app:hover { background: rgba(255,255,255,.7); }
.tray-app.off { opacity: .35; }
.tray-sys { display: flex; gap: 8px; padding: 0 8px; height: 36px; align-items: center; border-radius: 4px; }
.clock { text-align: right; font-size: 12px; line-height: 16px; padding: 0 8px; }
.show-desk { width: 10px; height: 48px; border-left: 1px solid rgba(0,0,0,.15); margin-left: 4px; cursor: pointer; }
.show-desk:hover { background: rgba(255,255,255,.6); }

/* ---------------- 菜单 / 弹出层 ---------------- */
.menu {
  position: fixed; z-index: 200; min-width: 210px; background: rgba(249,249,249,.97); backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.12); border-radius: 8px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  font-size: 13px; color: #1b1b1b;
}
.menu .mi {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px 0 8px; border-radius: 4px; cursor: default;
  position: relative; white-space: nowrap;
}
.menu .mi:hover:not(.dis) { background: rgba(0,0,0,.06); }
.menu .mi .mic { width: 16px; display: grid; place-items: center; color: #444; flex: none; }
.menu .mi .ml { flex: 1; }
.menu .mi .mk { color: #888; font-size: 12px; }
.menu .mi.dis { color: #aaa; }
.menu .mi.danger { color: #c42b1c; }
.menu .mi.danger .mic { color: #c42b1c; }
.menu .sep { height: 1px; background: rgba(0,0,0,.09); margin: 4px 2px; }
.menu .mh { font-size: 11px; color: #888; padding: 4px 10px 2px; display: flex; align-items: center; gap: 6px; }
.menu .mbar { display: flex; gap: 2px; padding: 2px 2px 4px; border-bottom: 1px solid rgba(0,0,0,.09); margin-bottom: 4px; }
.menu .mbar button { flex: 1; height: 34px; border: 0; background: transparent; border-radius: 4px; display: grid; place-items: center; cursor: pointer; color: #333; }
.menu .mbar button:hover:not(:disabled) { background: rgba(0,0,0,.06); }
.menu .mbar button:disabled { opacity: .3; cursor: default; }
.menu .sub { display: none; position: absolute; left: 100%; top: -5px; }
.menu .sub.left { left: auto; right: 100%; }
.menu .mi:hover > .sub { display: block; }
.menu .mi .arr { color: #777; }

.pop {
  position: fixed; z-index: 210; width: 248px; background: #fbfbfb; border-radius: 8px; border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.22); padding: 12px; font-size: 12.5px;
}
.pop h4 { margin: 0 0 9px; font-size: 13px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.swatches button {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; position: relative;
}
.swatches button.on::after { content: ""; position: absolute; inset: -4px; border: 2px solid #0067c0; border-radius: 8px; }
.pop .row { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.pop .row label { width: 68px; color: #555; flex: none; }
.pop input[type=color] { width: 34px; height: 26px; border: 1px solid #ccc; border-radius: 4px; padding: 1px; background: #fff; cursor: pointer; }
.pop input.hex { width: 90px; height: 26px; border: 1px solid #ccc; border-radius: 4px; padding: 0 7px; outline: none; -webkit-user-select: text; user-select: text; }
.pop input.hex.bad { border-color: #c42b1c; }
.pop input[type=range] { flex: 1; accent-color: #0067c0; }
.pop .val { width: 38px; text-align: right; color: #333; font-variant-numeric: tabular-nums; }
.pop .hint { color: #888; font-size: 11.5px; margin-top: 8px; }

/* ---------------- 对话框 ---------------- */
.mask { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.28); display: grid; place-items: center; }
.dlg {
  width: 440px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); overflow: auto;
  background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.dlg .dh { padding: 18px 22px 4px; font-size: 16px; font-weight: 600; }
.dlg .db { padding: 8px 22px 16px; line-height: 1.6; }
.dlg .df { background: #f3f3f3; padding: 14px 22px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e5e5e5; }
.dlg .db label.opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid #e3e3e3; border-radius: 6px; margin-top: 8px; cursor: pointer; }
.dlg .db label.opt:hover { background: #f7f9fc; }
.dlg .db label.opt small { color: #777; display: block; }
.fcard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #e3e3e3; border-radius: 6px; margin-top: 8px; }
.fcard .ic { width: 36px; height: 36px; flex: none; }
.fcard .ic svg { width: 100%; height: 100%; }
.fcard small { color: #777; }
.dlg.settings { width: 560px; }
.set-sec { font-weight: 600; margin: 14px 0 6px; font-size: 13px; color: #333; }
.set-sec:first-child { margin-top: 2px; }
.set-row { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.set-row > label:first-child { width: 170px; color: #444; flex: none; }
.set-row input[type=range] { flex: 1; accent-color: #0067c0; }
.set-row .val { width: 64px; text-align: right; font-variant-numeric: tabular-nums; color: #333; }
.set-row input[type=checkbox], .set-row input[type=radio], .dlg input[type=checkbox] { accent-color: #0067c0; }
.set-row input.path { flex: 1; height: 28px; border: 1px solid #d5d5d5; border-radius: 4px; padding: 0 8px; background: #f8f8f8; color: #555; }
.set-hint { color: #888; font-size: 11.5px; margin: -2px 0 4px 180px; }
.props td { padding: 3px 0; vertical-align: top; } .props td:first-child { color: #777; width: 84px; }

/* ---------------- 全屏模拟 / 提示 ---------------- */
#fullscreen { position: fixed; inset: 0; z-index: 250; background: #0b0b0f; color: #ddd; display: grid; place-items: center; text-align: center; }
#fullscreen[hidden] { display: none; }
#fullscreen .fs-play { font-size: 60px; color: #444; }
#fullscreen .fs-sub { color: #7fd17f; font-size: 13px; }
#toasts { position: fixed; right: 16px; bottom: 60px; z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  pointer-events: auto; max-width: 380px; background: rgba(32,32,32,.95); color: #fff; border-radius: 8px; padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); font-size: 12.5px; line-height: 1.5; display: flex; gap: 12px; align-items: center;
  animation: tin .18s ease-out;
}
.toast button { border: 0; background: rgba(255,255,255,.14); color: #8cc8ff; border-radius: 4px; padding: 3px 10px; cursor: pointer; flex: none; }
.toast button:hover { background: rgba(255,255,255,.24); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* 大格子展开 / 收起动画（B-06） */
#panel.anim-in { animation: pin .12s ease-out; transform-origin: right center; }
#panel.anim-out { animation: pout .1s ease-in forwards; transform-origin: right center; pointer-events: none; }
#panel.flip.anim-in, #panel.flip.anim-out { transform-origin: left center; }
@keyframes pin { from { opacity: 0; transform: scaleX(.85); } }
@keyframes pout { to { opacity: 0; transform: scaleX(.85); } }
