/* ============================================================
   皮肤系统（2026-10-29）
   四套皮肤：classic 经典浅色（默认） / tech 深空科技 / aurora 极光紫夜 / mist 晨雾青
   切换方式：<html data-skin="xxx">，由 cookie ui_skin 决定（顶栏「换肤」入口写入）。
   本文件在 app.css / dash.css 之后加载，只做变量与少量硬编码颜色覆盖，
   不改动原有布局，任何皮肤失效都会自然退回经典浅色。
   ============================================================ */

/* ---------------- 深空科技 ---------------- */
html[data-skin="tech"] {
  --bg: #050c1c;
  --panel: #0b1730;
  --line: rgba(74, 144, 226, 0.26);
  --line-soft: rgba(74, 144, 226, 0.14);
  --text: #dbe9ff;
  --text-2: #90aacb;
  --text-3: #5f7595;
  --nav: #071226;
  --nav-dark: #0a1a33;
  --primary: #2ea8ff;
  --primary-dark: #5cbcff;
  --primary-soft: rgba(46, 168, 255, 0.12);
  --danger: #ff6b6b;
  --warn: #ffb44d;
  --teal: #2ee6c8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

html[data-skin="aurora"] {
  --bg: #090a1c;
  --panel: #141634;
  --line: rgba(140, 124, 255, 0.26);
  --line-soft: rgba(140, 124, 255, 0.14);
  --text: #e8e6ff;
  --text-2: #a9a4cf;
  --text-3: #726d9c;
  --nav: #0c0d24;
  --nav-dark: #14163a;
  --primary: #8b7bff;
  --primary-dark: #a79bff;
  --primary-soft: rgba(139, 123, 255, 0.14);
  --danger: #ff6f9c;
  --warn: #ffc266;
  --teal: #35e0ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------------- 晨雾青（浅色科技） ---------------- */
html[data-skin="mist"] {
  --bg: #eef4f8;
  --panel: #ffffff;
  --line: #d7e5ee;
  --line-soft: #e8f1f6;
  --text: #1b2b3a;
  --text-2: #52697f;
  --text-3: #8ba1b4;
  --nav: #0f3d4c;
  --nav-dark: #145266;
  --primary: #0d7d94;
  --primary-dark: #0a677b;
  --primary-soft: #e4f3f7;
  --danger: #d9534f;
  --warn: #b0730c;
  --teal: #0f7d6a;
}

/* ============================================================
   深色通用覆盖（tech + aurora 共用，仅换颜色不换结构）
   ============================================================ */

html[data-skin="tech"] body,
html[data-skin="aurora"] body {
  background-color: var(--bg);
}

html[data-skin="tech"] body {
  background-image:
    radial-gradient(110% 80% at 88% -10%, rgba(46, 168, 255, 0.16), transparent 60%),
    radial-gradient(80% 60% at 4% 100%, rgba(46, 230, 200, 0.08), transparent 65%);
  background-attachment: fixed;
}

html[data-skin="aurora"] body {
  background-image:
    radial-gradient(100% 70% at 85% -8%, rgba(139, 123, 255, 0.2), transparent 62%),
    radial-gradient(80% 60% at 6% 100%, rgba(53, 224, 255, 0.1), transparent 65%),
    radial-gradient(60% 50% at 50% 40%, rgba(255, 111, 156, 0.06), transparent 70%);
  background-attachment: fixed;
}

/* ---------- 顶栏 ---------- */

html[data-skin="tech"] .g-top {
  background: linear-gradient(90deg, #050f22 0%, #0b1e3b 50%, #050f22 100%);
  box-shadow: inset 0 -1px 0 rgba(46, 168, 255, 0.28), 0 2px 14px rgba(0, 0, 0, 0.55);
}

html[data-skin="aurora"] .g-top {
  background: linear-gradient(90deg, #0a0b20 0%, #191a44 50%, #0a0b20 100%);
  box-shadow: inset 0 -1px 0 rgba(139, 123, 255, 0.3), 0 2px 14px rgba(0, 0, 0, 0.55);
}

html[data-skin="tech"] .g-top::after,
html[data-skin="aurora"] .g-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  opacity: 0.55;
  pointer-events: none;
}

html[data-skin="tech"] .g-top::after {
  background: linear-gradient(90deg, transparent, #2ea8ff 22%, #2ee6c8 50%, #2ea8ff 78%, transparent);
}

html[data-skin="aurora"] .g-top::after {
  background: linear-gradient(90deg, transparent, #8b7bff 22%, #35e0ff 50%, #ff6f9c 78%, transparent);
}

html[data-skin="tech"] .g-brand .g-logo,
html[data-skin="aurora"] .g-brand .g-logo {
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.35)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

html[data-skin="tech"] .g-home,
html[data-skin="aurora"] .g-home { color: rgba(180, 205, 235, 0.75); border-left-color: rgba(150, 190, 235, 0.24); }

html[data-skin="tech"] .g-slogan,
html[data-skin="aurora"] .g-slogan { color: rgba(210, 228, 255, 0.72); }

html[data-skin="tech"] .g-user,
html[data-skin="aurora"] .g-user { color: rgba(190, 210, 235, 0.85); }

/* ---------- 侧边栏 ---------- */

html[data-skin="tech"] .side {
  background: linear-gradient(180deg, #081426 0%, #071021 100%);
  border-right-color: rgba(46, 168, 255, 0.16);
}

html[data-skin="aurora"] .side {
  background: linear-gradient(180deg, #0d0f28 0%, #0a0b1f 100%);
  border-right-color: rgba(139, 123, 255, 0.18);
}

html[data-skin="tech"] .nav-group,
html[data-skin="aurora"] .nav-group { border-bottom-color: rgba(120, 160, 220, 0.1); }

html[data-skin="tech"] .nav-group > summary,
html[data-skin="aurora"] .nav-group > summary { color: #b7cbe4; }

html[data-skin="tech"] .nav-group > summary:hover,
html[data-skin="aurora"] .nav-group > summary:hover { background: rgba(46, 168, 255, 0.07); }

html[data-skin="tech"] .nav-group > summary::after,
html[data-skin="aurora"] .nav-group > summary::after { color: #58749a; }

html[data-skin="tech"] .nav-group .nav,
html[data-skin="aurora"] .nav-group .nav { color: #92a9c6; }

html[data-skin="tech"] .nav-group .nav::before,
html[data-skin="aurora"] .nav-group .nav::before {
  background: rgba(46, 168, 255, 0.08);
  border-color: rgba(46, 168, 255, 0.22);
}

html[data-skin="aurora"] .nav-group .nav::before {
  background: rgba(139, 123, 255, 0.1);
  border-color: rgba(139, 123, 255, 0.25);
}

html[data-skin="tech"] .nav-group .nav:hover,
html[data-skin="aurora"] .nav-group .nav:hover { background: rgba(120, 180, 255, 0.08); color: #dbe9ff; }

html[data-skin="tech"] .nav-group .nav.on {
  background: linear-gradient(90deg, rgba(46, 168, 255, 0.2), rgba(46, 168, 255, 0.04));
  color: #7fd0ff;
}

html[data-skin="aurora"] .nav-group .nav.on {
  background: linear-gradient(90deg, rgba(139, 123, 255, 0.24), rgba(139, 123, 255, 0.05));
  color: #b9aeff;
}

html[data-skin="tech"] .side-note,
html[data-skin="aurora"] .side-note {
  background: rgba(12, 28, 52, 0.6);
  border-color: rgba(90, 140, 200, 0.22);
  color: #6d86a6;
}

/* ---------- 页头 / 卡片 / 表格 ---------- */

html[data-skin="tech"] .topbar,
html[data-skin="aurora"] .topbar {
  background: rgba(11, 23, 48, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}

html[data-skin="aurora"] .topbar { background: rgba(20, 22, 52, 0.72); }

html[data-skin="tech"] .topbar h1,
html[data-skin="aurora"] .topbar h1 { color: var(--text); }

html[data-skin="tech"] .card,
html[data-skin="aurora"] .card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 2px 10px rgba(0, 0, 0, 0.28);
}

html[data-skin="tech"] .card-h,
html[data-skin="aurora"] .card-h {
  background: rgba(12, 28, 54, 0.7);
  border-bottom-color: var(--line-soft);
  color: var(--text);
}

html[data-skin="aurora"] .card-h { background: rgba(24, 26, 62, 0.7); }

html[data-skin="tech"] .table,
html[data-skin="aurora"] .table { background: transparent; }

html[data-skin="tech"] .table th,
html[data-skin="aurora"] .table th {
  background: rgba(46, 168, 255, 0.08);
  color: #9db8d8;
}

html[data-skin="aurora"] .table th { background: rgba(139, 123, 255, 0.1); color: #b3aada; }

html[data-skin="tech"] .table td,
html[data-skin="aurora"] .table td { border-color: var(--line-soft); }

html[data-skin="tech"] .table tbody tr:hover { background: rgba(46, 168, 255, 0.08); }
html[data-skin="aurora"] .table tbody tr:hover { background: rgba(139, 123, 255, 0.09); }

html[data-skin="tech"] .table tbody tr:nth-child(even),
html[data-skin="aurora"] .table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }

html[data-skin="tech"] .table tbody tr:nth-child(even):hover { background: rgba(46, 168, 255, 0.1); }
html[data-skin="aurora"] .table tbody tr:nth-child(even):hover { background: rgba(139, 123, 255, 0.12); }

html[data-skin="tech"] .table td.clip:hover,
html[data-skin="aurora"] .table td.clip:hover { background: rgba(255, 200, 80, 0.1); }

html[data-skin="tech"] .tw::-webkit-scrollbar-track,
html[data-skin="aurora"] .tw::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); }

html[data-skin="tech"] .tw::-webkit-scrollbar-thumb,
html[data-skin="aurora"] .tw::-webkit-scrollbar-thumb { background: rgba(120, 170, 230, 0.28); }

/* ---------- 徽标 ---------- */

html[data-skin="tech"] .b-gray,
html[data-skin="aurora"] .b-gray { background: rgba(140, 170, 210, 0.12); color: #9fb6d2; border-color: rgba(140, 170, 210, 0.24); }
html[data-skin="tech"] .b-blue,
html[data-skin="aurora"] .b-blue { background: rgba(46, 168, 255, 0.16); color: #7fd0ff; border-color: rgba(46, 168, 255, 0.34); }
html[data-skin="tech"] .b-teal,
html[data-skin="aurora"] .b-teal { background: rgba(46, 230, 200, 0.14); color: #5ff0d6; border-color: rgba(46, 230, 200, 0.32); }
html[data-skin="tech"] .b-green,
html[data-skin="aurora"] .b-green { background: rgba(120, 220, 130, 0.14); color: #8fe39a; border-color: rgba(120, 220, 130, 0.3); }
html[data-skin="tech"] .b-amber,
html[data-skin="aurora"] .b-amber { background: rgba(255, 180, 77, 0.15); color: #ffc978; border-color: rgba(255, 180, 77, 0.34); }
html[data-skin="tech"] .b-red,
html[data-skin="aurora"] .b-red { background: rgba(255, 107, 107, 0.15); color: #ff9c9c; border-color: rgba(255, 107, 107, 0.34); }

/* ---------- 按钮 / 表单 ---------- */

html[data-skin="tech"] .btn,
html[data-skin="aurora"] .btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: #c3d5ea;
}

html[data-skin="tech"] .btn:hover,
html[data-skin="aurora"] .btn:hover {
  background: rgba(46, 168, 255, 0.12);
  border-color: var(--primary);
  color: #bfe5ff;
}

html[data-skin="aurora"] .btn:hover { background: rgba(139, 123, 255, 0.14); color: #d6ceff; }

/* 主按钮必须显式给回背景色：上面的 .btn 覆盖优先级更高，不补就会变成「深底深字」 */
html[data-skin="tech"] .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #04121f;
  font-weight: 600;
}

html[data-skin="aurora"] .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #0b0b1e;
  font-weight: 600;
}

html[data-skin="tech"] .btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #04121f; }
html[data-skin="aurora"] .btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #0b0b1e; }

html[data-skin="tech"] .btn.danger,
html[data-skin="aurora"] .btn.danger { border-color: rgba(255, 107, 107, 0.4); }
html[data-skin="tech"] .btn.danger:hover { background: rgba(255, 107, 107, 0.14); color: #ff9c9c; }

html[data-skin="tech"] .input,
html[data-skin="aurora"] .input {
  background: rgba(5, 14, 30, 0.72);
  border-color: var(--line);
  color: var(--text);
}

html[data-skin="aurora"] .input { background: rgba(12, 13, 34, 0.72); }

html[data-skin="tech"] .input::placeholder,
html[data-skin="aurora"] .input::placeholder { color: #54708f; }

html[data-skin="tech"] .input:focus,
html[data-skin="aurora"] .input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.16);
}

html[data-skin="aurora"] .input:focus { box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.18); }

html[data-skin="tech"] select.input option,
html[data-skin="aurora"] select.input option { background: #0b1730; color: var(--text); }
html[data-skin="aurora"] select.input option { background: #141634; }

html[data-skin="tech"] .ch-edit,
html[data-skin="aurora"] .ch-edit {
  background: rgba(46, 168, 255, 0.06);
  border-color: rgba(46, 168, 255, 0.22);
}

html[data-skin="aurora"] .ch-edit { background: rgba(139, 123, 255, 0.07); border-color: rgba(139, 123, 255, 0.24); }

html[data-skin="tech"] .sumline,
html[data-skin="aurora"] .sumline { background: rgba(12, 28, 52, 0.6); border-color: var(--line); }

html[data-skin="tech"] .batch,
html[data-skin="aurora"] .batch,
html[data-skin="tech"] .pager,
html[data-skin="aurora"] .pager { background: rgba(10, 22, 44, 0.7); border-color: var(--line-soft); }

html[data-skin="tech"] .pg,
html[data-skin="aurora"] .pg { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: #b9cde3; }

html[data-skin="tech"] .pg-dis,
html[data-skin="aurora"] .pg-dis { background: rgba(255, 255, 255, 0.02); color: #54708f; border-color: var(--line-soft); }

html[data-skin="tech"] .filters,
html[data-skin="aurora"] .filters,
html[data-skin="tech"] .filter-bar,
html[data-skin="aurora"] .filter-bar { background: rgba(11, 23, 48, 0.72); border-color: var(--line); }

html[data-skin="tech"] .tag,
html[data-skin="aurora"] .tag { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

html[data-skin="tech"] .code,
html[data-skin="tech"] code,
html[data-skin="aurora"] code { background: rgba(255, 255, 255, 0.07); }

html[data-skin="tech"] .flash.ok { background: rgba(46, 230, 200, 0.1); color: #5ff0d6; border-color: rgba(46, 230, 200, 0.3); }
html[data-skin="tech"] .flash.err { background: rgba(255, 107, 107, 0.1); color: #ff9c9c; border-color: rgba(255, 107, 107, 0.32); }
html[data-skin="aurora"] .flash.ok { background: rgba(53, 224, 255, 0.1); color: #7ee9ff; border-color: rgba(53, 224, 255, 0.3); }
html[data-skin="aurora"] .flash.err { background: rgba(255, 111, 156, 0.1); color: #ff9dbb; border-color: rgba(255, 111, 156, 0.32); }

html[data-skin="tech"] details.revoke-box > .form,
html[data-skin="aurora"] details.revoke-box > .form { background: rgba(12, 28, 52, 0.6); border-color: var(--line); }

html[data-skin="tech"] .srch-list,
html[data-skin="aurora"] .srch-list { background: #0d1b34; border-color: var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
html[data-skin="aurora"] .srch-list { background: #171a3c; }

html[data-skin="tech"] .modal-box,
html[data-skin="aurora"] .modal-box { background: #0b1730; }
html[data-skin="aurora"] .modal-box { background: #141634; }

/* ---------- 看板变量 ---------- */

html[data-skin="tech"] .dash {
  --chart-1: #2ea8ff;
  --chart-2: #2ee6c8;
  --chart-3: #ffc24d;
  --chart-4: #9d8cff;
  --chart-5: #45d0ff;
  --chart-6: #ff6b8a;
  --chart-grid: rgba(90, 160, 230, 0.18);
  --hero-bg:
    radial-gradient(120% 170% at 0% 0%, rgba(46, 168, 255, 0.24), transparent 55%),
    radial-gradient(100% 150% at 100% 0%, rgba(46, 230, 200, 0.14), transparent 62%),
    linear-gradient(120deg, #0a1730, #081327 60%, #071120);
  --hero-line: rgba(70, 150, 230, 0.34);
  --kpi-bg: linear-gradient(160deg, #183763 0%, #0e2246 58%, #0a1832 100%);
  --kpi-line: rgba(74, 164, 255, 0.34);
  --card-head: rgba(12, 28, 54, 0.85);
}

html[data-skin="aurora"] .dash {
  --chart-1: #8b7bff;
  --chart-2: #35e0ff;
  --chart-3: #ffb35c;
  --chart-4: #ff6f9c;
  --chart-5: #6ff0c4;
  --chart-6: #c58bff;
  --chart-grid: rgba(150, 130, 255, 0.18);
  --hero-bg:
    radial-gradient(120% 170% at 0% 0%, rgba(139, 123, 255, 0.3), transparent 58%),
    radial-gradient(100% 150% at 100% 0%, rgba(53, 224, 255, 0.16), transparent 62%),
    linear-gradient(120deg, #12142f, #0b0c22 60%, #0a0b1d);
  --hero-line: rgba(139, 123, 255, 0.34);
  --kpi-bg: linear-gradient(160deg, #272b6b 0%, #1a1c49 58%, #12142f 100%);
  --kpi-line: rgba(150, 132, 255, 0.34);
  --card-head: rgba(24, 26, 62, 0.85);
}

html[data-skin="mist"] .dash {
  --chart-1: #0d7d94;
  --chart-2: #12a594;
  --chart-3: #f0a53c;
  --chart-4: #5b6cd6;
  --chart-5: #37b7d4;
  --chart-6: #e06c6c;
  --chart-grid: rgba(13, 125, 148, 0.13);
  --hero-bg:
    radial-gradient(120% 160% at 0% 0%, rgba(13, 125, 148, 0.14), transparent 58%),
    radial-gradient(90% 140% at 100% 0%, rgba(18, 165, 148, 0.1), transparent 60%),
    linear-gradient(120deg, #ffffff, #f2fafc 60%, #eaf6f9);
  --hero-line: #cfe6ee;
  --kpi-bg: #ffffff;
  --kpi-line: #dbeaf2;
  --card-head: #f6fbfd;
}

/* 晨雾青：顶栏换一套青灰渐变，其余沿用浅色结构 */
html[data-skin="mist"] .g-top {
  background: linear-gradient(90deg, #0d3441 0%, #145266 52%, #0d3441 100%);
  box-shadow: inset 0 -1px 0 rgba(120, 220, 235, 0.22), 0 2px 10px rgba(12, 46, 58, 0.18);
}

html[data-skin="mist"] .side { border-right-color: #e0eef3; }
html[data-skin="mist"] .nav-group .nav.on { background: #e4f3f7; color: #0a677b; }
html[data-skin="mist"] .hero-scope { background: #e6f4f7; }

/* 深色皮肤下，看板里的细线更亮一点，避免糊成一片 */
html[data-skin="tech"] .d-card,
html[data-skin="aurora"] .d-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 2px 12px rgba(0, 0, 0, 0.32);
}

html[data-skin="tech"] .d-table th,
html[data-skin="aurora"] .d-table th { background: rgba(255, 255, 255, 0.04); color: #7f9ab8; }

html[data-skin="tech"] .d-table tbody tr:hover { background: rgba(46, 168, 255, 0.07); }
html[data-skin="aurora"] .d-table tbody tr:hover { background: rgba(139, 123, 255, 0.09); }

html[data-skin="tech"] .d-todo,
html[data-skin="aurora"] .d-todo { background: rgba(255, 255, 255, 0.035); border-color: rgba(120, 160, 220, 0.18); }

html[data-skin="tech"] .d-quick a,
html[data-skin="aurora"] .d-quick a { background: rgba(255, 255, 255, 0.04); }

html[data-skin="tech"] .hbtn,
html[data-skin="aurora"] .hbtn { background: rgba(255, 255, 255, 0.05); border-color: rgba(120, 170, 230, 0.28); color: #b9cde3; }

/* 看板头部的主按钮同样要显式补背景，否则会被上面的 .hbtn 覆盖成深底深字 */
html[data-skin="tech"] .hbtn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #04121f;
  font-weight: 600;
}

html[data-skin="aurora"] .hbtn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #0b0b1e;
  font-weight: 600;
}

html[data-skin="tech"] .hbtn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #04121f; }
html[data-skin="aurora"] .hbtn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #0b0b1e; }

html[data-skin="tech"] .hbtn em,
html[data-skin="aurora"] .hbtn em { color: #fff; }

/* 深色模式下登录页 */
html[data-skin="tech"] .login-body {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(46, 168, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #071225 0%, #050c1c 100%);
}

html[data-skin="aurora"] .login-body {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(139, 123, 255, 0.24), transparent 60%),
    radial-gradient(80% 60% at 10% 100%, rgba(53, 224, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #0b0c22 0%, #090a1c 100%);
}

html[data-skin="tech"] .login-card,
html[data-skin="aurora"] .login-card {
  background: rgba(12, 24, 46, 0.9);
  border-color: rgba(70, 150, 230, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

html[data-skin="aurora"] .login-card { background: rgba(22, 24, 56, 0.9); border-color: rgba(139, 123, 255, 0.28); }

html[data-skin="tech"] .login-card h1,
html[data-skin="aurora"] .login-card h1 { color: var(--text); }

html[data-skin="tech"] .login-head,
html[data-skin="aurora"] .login-head { border-bottom-color: rgba(120, 170, 230, 0.18); }

html[data-skin="mist"] .login-body {
  background: linear-gradient(180deg, #0f3d4c 0%, #145266 140px, #eef4f8 140px, #eef4f8 100%);
}

/* ============================================================
   换肤入口（顶栏下拉）
   ============================================================ */

.skin-pick { position: relative; }

.skin-pick > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(228, 240, 253, 0.88);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 4px 11px;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.skin-pick > summary::-webkit-details-marker { display: none; }
.skin-pick > summary:hover,
.skin-pick[open] > summary { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.34); color: #fff; }

.skin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 216px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(10, 26, 48, 0.24);
  z-index: 120;
  display: grid;
  gap: 4px;
}

.skin-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: left;
}

.skin-opt:hover { background: var(--primary-soft); color: var(--primary); }
.skin-opt.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.skin-sw {
  width: 26px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.skin-sw.s-classic { background: linear-gradient(120deg, #ffffff 0 50%, #dfe8f2 50% 100%); }
.skin-sw.s-tech { background: linear-gradient(120deg, #071226 0 50%, #2ea8ff 50% 100%); }
.skin-sw.s-aurora { background: linear-gradient(120deg, #0c0d24 0 50%, #8b7bff 50% 100%); }
.skin-sw.s-mist { background: linear-gradient(120deg, #ffffff 0 50%, #12a594 50% 100%); }

.skin-tip { padding: 4px 9px 2px; font-size: 11px; color: var(--text-3); }


/* ================= 深色皮肤：app.css 硬编码浅底/深字补齐（tech / aurora） ================= */
/* app.css 里仍有少量硬编码色，深色皮肤下会突兀或看不清，这里统一压暗。 */

html[data-skin="tech"] .flash.warn,
html[data-skin="aurora"] .flash.warn { background: rgba(255, 180, 77, 0.12); color: #ffc978; border-color: rgba(255, 180, 77, 0.3); }

html[data-skin="tech"] .table tr.row-warn,
html[data-skin="aurora"] .table tr.row-warn { background: rgba(255, 180, 77, 0.08); }
html[data-skin="tech"] .table tr.row-warn:hover,
html[data-skin="aurora"] .table tr.row-warn:hover { background: rgba(255, 180, 77, 0.14); }

html[data-skin="tech"] .table tr.row-on { background: rgba(46, 168, 255, 0.1); }
html[data-skin="aurora"] .table tr.row-on { background: rgba(139, 123, 255, 0.13); }
html[data-skin="tech"] .table tr.row-on:hover { background: rgba(46, 168, 255, 0.17); }
html[data-skin="aurora"] .table tr.row-on:hover { background: rgba(139, 123, 255, 0.2); }

html[data-skin="tech"] .nav-badge,
html[data-skin="aurora"] .nav-badge { background: rgba(255, 255, 255, 0.1); color: #b9cde3; }
html[data-skin="tech"] .nav-badge.warn,
html[data-skin="aurora"] .nav-badge.warn { background: #c9443f; color: #fff; }

html[data-skin="tech"] .view-tabs a,
html[data-skin="aurora"] .view-tabs a { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: var(--text-2); }
html[data-skin="tech"] .view-tabs a:hover,
html[data-skin="aurora"] .view-tabs a:hover { border-color: var(--primary); color: var(--text); }
html[data-skin="tech"] .view-tabs a.on { background: var(--primary); border-color: var(--primary); color: #04121f; }
html[data-skin="aurora"] .view-tabs a.on { background: var(--primary); border-color: var(--primary); color: #0b0b1e; }

/* 经典版工作台（/home-classic）在深色皮肤下同样走暗色 */
html[data-skin="tech"] .todo-item,
html[data-skin="aurora"] .todo-item { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
html[data-skin="tech"] .todo-item:hover,
html[data-skin="aurora"] .todo-item:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--primary); }
html[data-skin="tech"] .todo-item.pending,
html[data-skin="aurora"] .todo-item.pending { background: rgba(255, 107, 107, 0.09); border-color: rgba(255, 107, 107, 0.26); }
html[data-skin="tech"] .todo-item.pending:hover,
html[data-skin="aurora"] .todo-item.pending:hover { background: rgba(255, 107, 107, 0.15); }

html[data-skin="tech"] .todo-text,
html[data-skin="aurora"] .todo-text { color: var(--text); }
html[data-skin="tech"] .todo-num,
html[data-skin="aurora"] .todo-num { color: var(--text-3); }
html[data-skin="tech"] .todo-item.pending .todo-num { color: #ff8f8f; }
html[data-skin="aurora"] .todo-item.pending .todo-num { color: #ff8fb0; }
html[data-skin="tech"] .todo-item.pending .todo-go { color: #e0736f; }
html[data-skin="aurora"] .todo-item.pending .todo-go { color: #d9789a; }

html[data-skin="tech"] .card-b::-webkit-scrollbar-thumb,
html[data-skin="aurora"] .card-b::-webkit-scrollbar-thumb { background: rgba(120, 170, 230, 0.28); }

/* ---------- 会话气泡内缩略图（tech/aurora 深色下弱化浅色边框） ---------- */
html[data-skin="tech"] .am-thumb, html[data-skin="tech"] .m-thumb,
html[data-skin="aurora"] .am-thumb, html[data-skin="aurora"] .m-thumb {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}
html[data-skin="tech"] .am-bad, html[data-skin="aurora"] .am-bad {
  color: #ffc978; background: rgba(255, 180, 77, 0.12); border-color: rgba(255, 180, 77, 0.34);
}
