/*
 * 2026-11-27 视觉皮肤库：橙光轻商务 / 深蓝商家台 / 墨青数据舱。
 *
 * 设计原则：
 *   1. 只覆盖视觉层，不改 DOM 结构、data-action、表单字段与业务逻辑；
 *   2. 三套皮肤对照用户提供的三张参考图，保留「档案原版」作为回退；
 *   3. 主题切换只改 html[data-theme]，菜单与页面组件不重建；
 *   4. 动效遵守 prefers-reduced-motion；切页与换肤都有明确但克制的过渡。
 */

/* ---------------- 通用：切换器浮层 / 页面进场 / 换肤过渡 ---------------- */
.theme-wrap { position: relative; flex: none; }
.theme-wrap-fixed { position: fixed; top: 16px; right: 18px; z-index: 400; }
.theme-toggle-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--field-border); border-radius: 9px;
  background: var(--paper-card); color: var(--ink-soft);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.theme-toggle-btn:hover { border-color: var(--steel); color: var(--steel); transform: translateY(-1px); }
.theme-toggle-btn[aria-expanded="true"] { border-color: var(--steel); color: var(--steel); background: var(--steel-wash); }
.theme-toggle-ico { display: inline-flex; align-items: center; justify-content: center; opacity: .95; }
.theme-toggle-label { max-width: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-toggle-chev { display: inline-flex; opacity: .55; transition: transform .18s ease; }
.theme-wrap.open .theme-toggle-chev { transform: rotate(180deg); }
.theme-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 286px; z-index: 80;
  padding: 10px; border: 1px solid var(--rule); border-radius: 14px;
  background: var(--paper-card); color: var(--ink);
  box-shadow: 0 18px 44px rgba(18, 26, 35, .22);
  opacity: 0; visibility: hidden; transform: translateY(-7px) scale(.98); transform-origin: top right;
  transition: opacity .2s ease, visibility .2s ease, transform .2s cubic-bezier(.22, .61, .36, 1);
}
.theme-wrap.open .theme-pop { opacity: 1; visibility: visible; transform: none; }
.theme-pop-head { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 6px 9px; }
.theme-pop-head strong { font-size: 13px; letter-spacing: .06em; }
.theme-pop-head span { color: var(--ink-mute); font-size: 11px; }
.theme-list { display: flex; flex-direction: column; gap: 3px; }
.theme-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; text-align: left; color: var(--ink);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.theme-option:hover { background: var(--steel-wash); border-color: var(--rule); transform: translateX(1px); }
.theme-option.is-active { background: var(--steel-wash); border-color: var(--steel); }
.theme-option-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.theme-option-meta strong { font-size: 12.5px; font-weight: 700; }
.theme-option-meta small { color: var(--ink-mute); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-option-check { flex: none; color: var(--steel); font-weight: 800; opacity: 0; transform: scale(.8); transition: opacity .18s ease, transform .18s ease; }
.theme-option.is-active .theme-option-check { opacity: 1; transform: scale(1); }
.theme-swatch { position: relative; flex: none; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.theme-swatch::after { content: ""; position: absolute; width: 12px; height: 12px; right: 5px; bottom: 5px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.theme-swatch-bizzy { background: linear-gradient(135deg, #FFD28A 0 34%, #F4971E 35% 70%, #FBF8F2 71%); }
.theme-swatch-tigshop { background: linear-gradient(135deg, #0E1B2D 0 46%, #1677FF 47% 76%, #EEF3FA 77%); }
.theme-swatch-whale { background: linear-gradient(135deg, #0E1D20 0 52%, #2BD4BE 53% 78%, #DDE7E8 79%); }
.theme-swatch-vault { background: linear-gradient(135deg, #1E2E26 0 46%, #C8A063 47% 76%, #F4F1E9 77%); }

/* 2026-11-27 布局扩展：侧栏搜索 / 模块轨 / 二级菜单 / 侧栏账号默认隐藏，
   只由对应的皮肤打开，保证“档案原版”不出现多余块。 */
.sidebar-search,
.nav-rail,
.sidebar-user,
.subnav,
.topbar-search-lead { display: none; }
.nav-classic { min-width: 0; }
.dash-board { min-width: 0; }

.view-root { animation: none; }
.view-root.view-enter { animation: view-enter .38s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes view-enter {
  0% { opacity: 0; transform: translateY(9px); filter: blur(2px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition-property: background-color, border-color, color, box-shadow, fill, stroke !important;
  transition-duration: .38s !important;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1) !important;
}
html.theme-switching .theme-pop { transition-property: opacity, visibility, transform, background-color, border-color, color, box-shadow !important; }

@media (prefers-reduced-motion: reduce) {
  .theme-pop, .theme-toggle-btn, .theme-option, .view-root.view-enter { transition: none !important; animation: none !important; }
}

/* =====================================================================
 * 皮肤一：橙光轻商务（Bizzy 参考稿）
 * 奶油白画布 + 暖橙主色 + 大圆角白卡 + 左侧模糊色带
 * ===================================================================== */
html[data-theme="bizzy"] {
  --steel: #F39A22;
  --steel-deep: #DE7B0B;
  --steel-mid: #F7B654;
  --steel-wash: #FFF3E1;
  --kraft: #F5C269;
  --kraft-soft: #FFF3DE;
  --kraft-ink: #A96A0B;
  --vermilion: #F06449;
  --vermilion-s: #FFF0EB;
  --paper: #FBF8F2;
  --paper-card: #FFFFFF;
  --ink: #17181C;
  --ink-soft: #4F5661;
  --ink-mute: #8B9098;
  --rule: #EFE8DE;
  --field-border: #E9E0D3;
  --side-text: #5E6168;
  --side-dim: #969AA2;
  --sidebar-w: 230px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 66px;
}
html[data-theme="bizzy"] body {
  background-color: #FBF8F2;
  background-image: none;
  color: var(--ink);
}
html[data-theme="bizzy"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 240px at 3% 0%, rgba(255, 161, 71, .52), transparent 66%),
    radial-gradient(540px 220px at 18% 100%, rgba(95, 203, 197, .32), transparent 68%),
    radial-gradient(720px 260px at 96% 2%, rgba(255, 206, 138, .38), transparent 70%),
    linear-gradient(180deg, #FFF7EC, #FBF8F2 46%);
  filter: blur(18px);
}
html[data-theme="bizzy"] .app-shell,
html[data-theme="bizzy"] .login-root { position: relative; z-index: 1; }
html[data-theme="bizzy"] .app-shell { background: transparent; }
html[data-theme="bizzy"] .sidebar {
  top: 12px; left: 12px; bottom: 12px; width: 208px;
  padding: 14px 0 12px;
  background: #FFFFFF;
  border: 1px solid #F0E7DA; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(117, 79, 27, .12);
}
html[data-theme="bizzy"] .topbar {
  margin-left: var(--sidebar-w);
  height: var(--topbar-h); padding: 0 24px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid #F1E8DC;
  box-shadow: 0 6px 24px rgba(121, 84, 33, .035);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
html[data-theme="bizzy"] .main { margin-left: var(--sidebar-w); padding: 4px 26px 56px; }
html[data-theme="bizzy"] .sidebar-brand { padding: 0 16px 14px; border-bottom-color: #F3ECE2; margin-bottom: 8px; }
html[data-theme="bizzy"] .brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, #FFB44C, #EE8B0B);
  color: #FFFDF8; font-family: var(--sans); font-size: 17px;
  box-shadow: 0 7px 16px rgba(243, 154, 34, .30);
}
html[data-theme="bizzy"] .brand-mark::after { border: 0; }
html[data-theme="bizzy"] .sidebar-brand strong { color: #1A1B20; font-size: 16px; letter-spacing: .02em; }
html[data-theme="bizzy"] .sidebar-brand .brand-text span { color: #9B7B54; letter-spacing: .12em; }
html[data-theme="bizzy"] .nav-group { border-top-color: #F4EDE4; }
html[data-theme="bizzy"] .nav-group-toggle {
  padding: 10px 15px 8px; background: transparent;
  color: #9A8B78; font-size: 10.5px; letter-spacing: .16em;
}
html[data-theme="bizzy"] .nav-group-toggle::before { width: 4px; height: 4px; border-radius: 50%; background: #E7B672; }
html[data-theme="bizzy"] .nav-group-toggle:hover { color: #4B4D53; background: #FFF8EE; }
html[data-theme="bizzy"] .nav-group.has-active .nav-group-toggle { background: transparent; color: #C47714; }
html[data-theme="bizzy"] .nav-group.has-active .nav-group-toggle::before { background: #F39A22; }
html[data-theme="bizzy"] .nav-group-count { border-color: #EDE2D2; color: #A48B6E; background: #FFFBF5; }
html[data-theme="bizzy"] .nav-group.has-active .nav-group-count { border-color: #F6CF95; color: #B36A06; }
html[data-theme="bizzy"] .nav-group-chev { color: #D0B18A; }
html[data-theme="bizzy"] .nav-group-items { margin: 0 8px 7px 15px; padding-left: 6px; border-left-color: #F0E7DB; }
html[data-theme="bizzy"] .nav-item {
  min-height: 40px; padding: 9px 11px; border-radius: 9px;
  color: #5E6168; font-size: 13.5px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
html[data-theme="bizzy"] .nav-item:hover { background: #FFF7EC; color: #202126; transform: translateX(2px); }
html[data-theme="bizzy"] .nav-item.active {
  background: linear-gradient(90deg, #FFF0D9, #FFF9F0);
  color: #B66A05; font-weight: 700;
}
html[data-theme="bizzy"] .nav-item.active::before { left: 1px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: #F39A22; }
html[data-theme="bizzy"] .nav-ico { color: #D99134; opacity: .9; }
html[data-theme="bizzy"] .nav-item.active .nav-ico { color: #F39A22; }
html[data-theme="bizzy"] .sidebar-foot { border-top-color: #F0E7DB; color: #9B7C55; }
html[data-theme="bizzy"] .page-name { color: #8C8377; }
html[data-theme="bizzy"] .page-name .crumb-root { color: #A18B70; }
html[data-theme="bizzy"] .page-name strong { color: #24252B; }
html[data-theme="bizzy"] .crumb-sep { color: #F0A43C; }
html[data-theme="bizzy"] .side-toggle { border-color: #EEE5DA; border-radius: 9px; color: #7C756C; }
html[data-theme="bizzy"] .side-toggle:hover { background: #FFF4E3; color: #EC8F17; }
html[data-theme="bizzy"] .topbar-search {
  height: 34px; padding: 0 13px; border-color: #EEE4D8; border-radius: 10px;
  background: #FFFCF7; color: #8A8074;
}
html[data-theme="bizzy"] .topbar-search:hover { border-color: #F5C47F; color: #D17D0C; background: #FFF6E9; }
html[data-theme="bizzy"] .icon-btn { border-color: #EEE4D8; border-radius: 9px; color: #81786C; }
html[data-theme="bizzy"] .icon-btn:hover, html[data-theme="bizzy"] .notify-wrap .icon-btn[aria-expanded="true"] {
  border-color: #F5C47F; color: #D17D0C; background: #FFF5E6;
}
html[data-theme="bizzy"] .notify-badge { background: #F06449; }
html[data-theme="bizzy"] .user-chip { border-radius: 10px; padding: 4px 7px; }
html[data-theme="bizzy"] .user-chip:hover, html[data-theme="bizzy"] .user-wrap.open .user-chip { background: #FFF4E4; }
html[data-theme="bizzy"] .user-avatar { background: linear-gradient(145deg, #FFB24A, #F18912); color: #fff; }
html[data-theme="bizzy"] .user-name { color: #222329; }
html[data-theme="bizzy"] .user-role { color: #9B8D7C; }
html[data-theme="bizzy"] .user-pop, html[data-theme="bizzy"] .notify-pop, html[data-theme="bizzy"] .theme-pop {
  border-color: #EFE5D8; border-radius: 12px; box-shadow: 0 18px 44px rgba(120, 86, 37, .16);
}
html[data-theme="bizzy"] .notify-pop { border-top: 3px solid #F39A22; }
html[data-theme="bizzy"] .user-pop-item:hover { background: #FFF6E9; }
html[data-theme="bizzy"] .page-head { padding: 22px 0 14px; }
html[data-theme="bizzy"] .page-head h2 { font-size: 28px; font-weight: 800; letter-spacing: .01em; color: #1C1D22; }
html[data-theme="bizzy"] .page-head h2::after { display: none; }
html[data-theme="bizzy"] .page-desc { color: #898378; font-size: 12.5px; letter-spacing: 0; }
html[data-theme="bizzy"] .today-strip { gap: 14px; margin: 18px 0 20px; }
html[data-theme="bizzy"] .today-item {
  min-height: 106px; padding: 17px 16px 14px 64px;
  border: 1px solid #F2E8DA; border-top: 0; border-radius: 15px;
  background: linear-gradient(145deg, #FFFFFF, #FFFDF9);
  box-shadow: 0 9px 26px rgba(137, 94, 33, .075);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html[data-theme="bizzy"] .today-item:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(137, 94, 33, .11); border-color: #F5D8AE; }
html[data-theme="bizzy"] .today-item::before {
  content: "▤"; position: absolute; left: 16px; top: 17px;
  width: 34px; height: 34px; border-radius: 10px;
  background: #FFF1DD; color: #F29A26; border: 1px solid #FBE1B8;
  font: 700 17px/32px var(--sans); text-align: center;
}
html[data-theme="bizzy"] .today-item:nth-child(2)::before { content: "⇢"; }
html[data-theme="bizzy"] .today-item:nth-child(3)::before { content: "↺"; }
html[data-theme="bizzy"] .today-item:nth-child(4)::before { content: "▦"; }
html[data-theme="bizzy"] .today-item:first-child::after { display: none; }
html[data-theme="bizzy"] .today-item:nth-child(n+5) {
  min-height: 78px; padding: 13px 16px 11px; grid-column: span 2;
  border-top: 0; border-radius: 13px;
}
html[data-theme="bizzy"] .today-item:nth-child(n+5)::before { display: none; }
html[data-theme="bizzy"] .t-num { font-family: var(--sans); font-weight: 800; color: #222329; letter-spacing: -.03em; }
html[data-theme="bizzy"] .t-num.t-urgent { color: #E45B40; }
html[data-theme="bizzy"] .t-label { color: #8E8579; font-size: 11.5px; }
html[data-theme="bizzy"] .t-link { color: #D9830E; }
html[data-theme="bizzy"] .stamp { display: none; }
html[data-theme="bizzy"] .card {
  background: #FFFFFF; border: 1px solid #F1E8DB; border-top: 0; border-radius: 15px;
  box-shadow: 0 9px 28px rgba(128, 88, 31, .065); padding: 17px 19px;
}
html[data-theme="bizzy"] .card-title, html[data-theme="bizzy"] .card-head h3 { color: #292A30; font-weight: 800; letter-spacing: .02em; }
html[data-theme="bizzy"] .card-head {
  margin: -17px -19px 14px; padding: 14px 19px;
  border-bottom: 1px solid #F3EAE0;
}
html[data-theme="bizzy"] .queue-row { border-bottom-color: #F3ECE3; }
html[data-theme="bizzy"] .queue-empty { color: #B07829; }
html[data-theme="bizzy"] .bar { background: linear-gradient(180deg, #FFD08A, #F6A439); border-radius: 8px; }
html[data-theme="bizzy"] .bar-col:last-child .bar { background: linear-gradient(180deg, #FFE3B9, #F8B85D); }
html[data-theme="bizzy"] .filter-bar {
  background: #FFFFFF; border: 1px solid #F1E8DB; border-left: 0; border-radius: 13px;
  box-shadow: 0 7px 22px rgba(130, 89, 31, .05);
}
html[data-theme="bizzy"] .filter-bar input, html[data-theme="bizzy"] .filter-bar select,
html[data-theme="bizzy"] .toolbar input, html[data-theme="bizzy"] .toolbar select,
html[data-theme="bizzy"] .field input, html[data-theme="bizzy"] .field select, html[data-theme="bizzy"] .field textarea {
  border-color: #E8DFD2; border-radius: 9px; background: #FFFDFA;
}
html[data-theme="bizzy"] .filter-bar input:focus, html[data-theme="bizzy"] .filter-bar select:focus,
html[data-theme="bizzy"] .toolbar input:focus, html[data-theme="bizzy"] .toolbar select:focus,
html[data-theme="bizzy"] .field input:focus, html[data-theme="bizzy"] .field select:focus, html[data-theme="bizzy"] .field textarea:focus {
  border-color: #F0A33B; box-shadow: 0 0 0 3px rgba(243, 154, 34, .13);
}
html[data-theme="bizzy"] .btn { border-radius: 9px; border-color: #E7DED1; background: #FFFCF7; }
html[data-theme="bizzy"] .btn:hover:not(:disabled) { border-color: #F1AF55; color: #D17D0C; background: #FFF6E9; transform: translateY(-1px); }
html[data-theme="bizzy"] .btn-primary { background: linear-gradient(135deg, #F7AE4D, #F08E13); border-color: #F08E13; color: #fff; box-shadow: 0 6px 14px rgba(243, 154, 34, .18); }
html[data-theme="bizzy"] .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #F9B961, #E78309); border-color: #E78309; color: #fff; }
html[data-theme="bizzy"] .btn-ok { background: #5AB7A5; border-color: #5AB7A5; }
html[data-theme="bizzy"] .btn-danger { background: #EC6850; border-color: #EC6850; }
html[data-theme="bizzy"] .btn-link { border-radius: 7px; color: #D6810B; }
html[data-theme="bizzy"] .btn-link:hover:not(:disabled) { background: #FFF2E1; color: #C47308; }
html[data-theme="bizzy"] .pager-btn { border-radius: 8px; border-color: #E7DED1; background: #FFFDFA; }
html[data-theme="bizzy"] .pager-btn:hover:not(:disabled) { border-color: #F0A33B; color: #D17D0C; }
html[data-theme="bizzy"] .status-chips .chip { border-radius: 999px; border-color: #EEE5D8; background: #FFFCF7; }
html[data-theme="bizzy"] .status-chips .chip:hover { border-color: #F0A33B; color: #D17D0C; }
html[data-theme="bizzy"] .status-chips .chip.on { background: #F39A22; border-color: #F39A22; color: #fff; }
html[data-theme="bizzy"] .status-chips .chip.on::before { color: #FFE0B2; }
html[data-theme="bizzy"] .badge { border-radius: 999px; padding: 4px 10px; font-weight: 700; }
html[data-theme="bizzy"] .badge-success { color: #2E8A72; border-color: #BEE7DC; background: #EAF9F3; }
html[data-theme="bizzy"] .badge-warn { color: #A96808; border-color: #F4D4A1; background: #FFF5E5; }
html[data-theme="bizzy"] .badge-danger { color: #C9503C; border-color: #F5C4BA; background: #FFF0EC; }
html[data-theme="bizzy"] .badge-info { color: #5D7BAA; border-color: #DCE6F5; background: #F1F6FE; }
html[data-theme="bizzy"] .badge-muted { color: #8B8F96; border-color: #EEE8DF; background: #FAF8F4; }
html[data-theme="bizzy"] table.data th, html[data-theme="bizzy"] table.line-items th {
  background: #FCF8F2; color: #8D8173; border-bottom-color: #F0E7DA;
}
html[data-theme="bizzy"] table.data td, html[data-theme="bizzy"] table.line-items td { border-bottom-color: #F4EEE5; }
html[data-theme="bizzy"] table.data tbody tr:hover, html[data-theme="bizzy"] table.line-items tbody tr:hover { background: #FFF9F1; }
html[data-theme="bizzy"] .theme-toggle-btn { background: #FFFDF9; border-color: #EEE4D7; color: #877D6F; border-radius: 10px; }
html[data-theme="bizzy"] .theme-toggle-btn:hover, html[data-theme="bizzy"] .theme-toggle-btn[aria-expanded="true"] { border-color: #F3BA68; color: #CF7B0A; background: #FFF5E7; }
html[data-theme="bizzy"] .modal-mask { background: rgba(62, 44, 25, .42); backdrop-filter: blur(4px); }
html[data-theme="bizzy"] .modal-dialog, html[data-theme="bizzy"] .drawer { border-radius: 16px; border-color: #EFE5D8; }
html[data-theme="bizzy"] .modal-dialog { border-top: 0; box-shadow: 0 26px 70px rgba(69, 45, 18, .25); }
html[data-theme="bizzy"] .drawer { border-left: 0; box-shadow: -18px 0 50px rgba(69, 45, 18, .18); }
html[data-theme="bizzy"] .modal-head { border-bottom-color: #F0E7DA; }
html[data-theme="bizzy"] .toast { border-radius: 10px; background: #2A2B30; border-left-color: #F39A22; }
html[data-theme="bizzy"] .toast-success { background: #2E8A72; }
html[data-theme="bizzy"] .toast-error { background: #E45B40; }
html[data-theme="bizzy"] .note-strip { border-radius: 0 9px 9px 0; background: #FFF0EB; border-left-color: #F06449; color: #B24B38; }
html[data-theme="bizzy"] .login-root {
  background:
    radial-gradient(760px 440px at 6% 0%, rgba(255, 158, 54, .40), transparent 66%),
    radial-gradient(600px 420px at 100% 8%, rgba(77, 196, 190, .28), transparent 68%),
    linear-gradient(160deg, #FFF7EA 0%, #FBEFE1 55%, #F7E9DC 100%);
}
html[data-theme="bizzy"] .login-card {
  border: 1px solid #EFE4D5; border-top: 0; border-radius: 18px;
  background: rgba(255, 255, 255, .93); box-shadow: 0 28px 70px rgba(112, 75, 28, .20);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
html[data-theme="bizzy"] .login-card::before { display: none; }
html[data-theme="bizzy"] .login-brand::before { border-color: #F39A22; color: #F39A22; }
html[data-theme="bizzy"] .login-brand strong { color: #222329; }
html[data-theme="bizzy"] .login-demo-hint { background: #FFF4E3; border-left-color: #F39A22; color: #876737; border-radius: 0 10px 10px 0; }
html[data-theme="bizzy"] .login-real-hint { background: #F1F8F4; border-left-color: #5AB7A5; color: #4A6659; border-radius: 0 10px 10px 0; }
html[data-theme="bizzy"] .theme-wrap-fixed .theme-toggle-btn { background: rgba(255,255,255,.86); box-shadow: 0 8px 22px rgba(120, 86, 37, .14); }

@media (max-width: 849px) {
  html[data-theme="bizzy"] .sidebar { width: var(--sidebar-w-collapsed); }
  html[data-theme="bizzy"] .topbar { margin-left: var(--sidebar-w-collapsed); padding: 0 16px; }
  html[data-theme="bizzy"] .main { margin-left: var(--sidebar-w-collapsed); padding: 4px 16px 40px; }
}
@media (max-width: 640px) {
  html[data-theme="bizzy"] .sidebar { position: static; width: 100%; border-radius: 0; border: 0; box-shadow: none; }
  html[data-theme="bizzy"] .topbar, html[data-theme="bizzy"] .main { margin-left: 0; }
  html[data-theme="bizzy"] .main { padding: 2px 14px 40px; }
  html[data-theme="bizzy"] .app-shell.side-collapsed .topbar, html[data-theme="bizzy"] .app-shell.side-collapsed .main { margin-left: 0; }
}

/* =====================================================================
 * 皮肤二：深蓝商家台（Tigshop 参考稿）
 * 藏蓝侧栏 + 电商蓝 + 高密度白卡 + 彩色指标块
 * ===================================================================== */
html[data-theme="tigshop"] {
  --steel: #1677FF;
  --steel-deep: #0E5FD6;
  --steel-mid: #3C8CFF;
  --steel-wash: #EAF3FF;
  --kraft: #FFB020;
  --kraft-soft: #FFF4D8;
  --kraft-ink: #9A6800;
  --vermilion: #F53F5C;
  --vermilion-s: #FFECF0;
  --paper: #F5F7FA;
  --paper-card: #FFFFFF;
  --ink: #1C2430;
  --ink-soft: #4F5B6B;
  --ink-mute: #7D8795;
  --rule: #E5EAF2;
  --field-border: #D9E1EC;
  --side-text: #C7D2E2;
  --side-dim: #7D8DA4;
  --sidebar-w: 212px;
  --topbar-h: 56px;
}
html[data-theme="tigshop"] body { background: #F5F7FA; background-image: none; color: var(--ink); }
html[data-theme="tigshop"] .sidebar {
  background: linear-gradient(180deg, #0D1B2D, #101F34);
  box-shadow: 6px 0 24px rgba(12, 27, 45, .08);
}
html[data-theme="tigshop"] .topbar {
  margin-left: var(--sidebar-w); height: var(--topbar-h); padding: 0 18px;
  background: #FFFFFF; border-bottom: 1px solid #E5EAF2;
}
html[data-theme="tigshop"] .main { margin-left: var(--sidebar-w); padding: 10px 20px 48px; }
html[data-theme="tigshop"] .sidebar-brand { padding: 16px 16px 15px; border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="tigshop"] .brand-mark {
  width: 31px; height: 31px; border-radius: 7px;
  background: #1677FF; color: #fff; font-family: var(--sans); font-size: 15px;
  box-shadow: 0 4px 12px rgba(22, 119, 255, .24);
}
html[data-theme="tigshop"] .brand-mark::after { display: none; }
html[data-theme="tigshop"] .sidebar-brand strong { color: #F4F8FF; font-size: 15px; letter-spacing: .03em; }
html[data-theme="tigshop"] .sidebar-brand .brand-text span { color: #8093AE; letter-spacing: .12em; }
html[data-theme="tigshop"] .nav-group { border-top-color: rgba(255,255,255,.06); }
html[data-theme="tigshop"] .nav-group-toggle { color: #8EA0BA; background: transparent; font-size: 10.5px; letter-spacing: .13em; }
html[data-theme="tigshop"] .nav-group-toggle::before { background: #2D4260; }
html[data-theme="tigshop"] .nav-group-toggle:hover { color: #EAF3FF; background: rgba(255,255,255,.055); }
html[data-theme="tigshop"] .nav-group.has-active .nav-group-toggle { background: transparent; color: #D8E8FF; }
html[data-theme="tigshop"] .nav-group.has-active .nav-group-toggle::before { background: #1677FF; }
html[data-theme="tigshop"] .nav-group-count { border-color: #29405F; color: #8DA1BD; background: transparent; }
html[data-theme="tigshop"] .nav-group.has-active .nav-group-count { border-color: #2C5E9F; color: #B9D8FF; }
html[data-theme="tigshop"] .nav-group-chev { color: #7F96B3; }
html[data-theme="tigshop"] .nav-group-items { border-left-color: #253A56; margin: 0 8px 7px 15px; }
html[data-theme="tigshop"] .nav-item { color: #C7D2E2; border-radius: 5px; font-size: 13px; padding: 9px 10px; }
html[data-theme="tigshop"] .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="tigshop"] .nav-item.active {
  background: linear-gradient(90deg, #1677FF, #2B8CFF); color: #fff;
  box-shadow: 0 5px 12px rgba(22, 119, 255, .22);
}
html[data-theme="tigshop"] .nav-item.active::before { display: none; }
html[data-theme="tigshop"] .nav-ico { color: #9CB4D2; }
html[data-theme="tigshop"] .nav-item.active .nav-ico { color: #fff; }
html[data-theme="tigshop"] .sidebar-foot { border-top-color: #253A56; color: #7F92AD; }
html[data-theme="tigshop"] .page-name { color: #7B8796; font-size: 12.5px; }
html[data-theme="tigshop"] .page-name .crumb-root { color: #9AA5B3; }
html[data-theme="tigshop"] .page-name strong { color: #1D2735; }
html[data-theme="tigshop"] .crumb-sep { color: #B5C0CE; }
html[data-theme="tigshop"] .side-toggle { border-color: #E4EAF2; border-radius: 4px; color: #5F6C7D; }
html[data-theme="tigshop"] .side-toggle:hover { background: #F3F7FF; color: #1677FF; }
html[data-theme="tigshop"] .topbar-search {
  height: 32px; padding: 0 12px; border: 1px solid #EEF2F7; border-radius: 999px;
  background: #F6F8FB; color: #8A95A4;
}
html[data-theme="tigshop"] .topbar-search:hover { border-color: #C9DFFF; color: #1677FF; background: #F1F7FF; }
html[data-theme="tigshop"] .icon-btn { border-color: transparent; border-radius: 4px; color: #697687; }
html[data-theme="tigshop"] .icon-btn:hover, html[data-theme="tigshop"] .notify-wrap .icon-btn[aria-expanded="true"] {
  border-color: #DCEAFF; color: #1677FF; background: #F2F7FF;
}
html[data-theme="tigshop"] .notify-badge { background: #FF4D4F; }
html[data-theme="tigshop"] .user-chip { border-radius: 4px; }
html[data-theme="tigshop"] .user-chip:hover, html[data-theme="tigshop"] .user-wrap.open .user-chip { background: #F4F7FB; }
html[data-theme="tigshop"] .user-avatar { background: #1677FF; color: #fff; }
html[data-theme="tigshop"] .user-name { color: #1D2735; }
html[data-theme="tigshop"] .user-role { color: #8A95A4; }
html[data-theme="tigshop"] .user-pop, html[data-theme="tigshop"] .notify-pop, html[data-theme="tigshop"] .theme-pop {
  border-color: #E3E9F2; border-radius: 6px; box-shadow: 0 14px 34px rgba(24, 39, 66, .14);
}
html[data-theme="tigshop"] .notify-pop { border-top: 3px solid #1677FF; }
html[data-theme="tigshop"] .user-pop-item:hover { background: #F4F8FF; }
html[data-theme="tigshop"] .page-head { padding: 12px 0 11px; }
html[data-theme="tigshop"] .page-head h2 { font-size: 23px; font-weight: 700; letter-spacing: 0; color: #1C2430; }
html[data-theme="tigshop"] .page-head h2::after { width: 4px; height: 15px; margin: 0 0 0 9px; background: #1677FF; border-radius: 2px; vertical-align: 1px; }
html[data-theme="tigshop"] .page-desc { color: #8A95A4; font-size: 12px; }
html[data-theme="tigshop"] .today-strip { gap: 12px; margin: 12px 0 16px; }
html[data-theme="tigshop"] .today-item {
  min-height: 92px; padding: 17px 15px 14px 76px;
  border: 0; border-radius: 5px; overflow: hidden;
  background: #FFFFFF; box-shadow: 0 1px 4px rgba(20, 35, 58, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
html[data-theme="tigshop"] .today-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 35, 58, .10); }
html[data-theme="tigshop"] .today-item::before {
  content: "▤"; position: absolute; left: 0; top: 0; bottom: 0;
  width: 60px; display: flex; align-items: center; justify-content: center;
  background: #2F6BFF; color: #fff; font: 700 22px/1 var(--sans);
}
html[data-theme="tigshop"] .today-item:nth-child(2)::before { content: "⇢"; background: #FFAD1F; }
html[data-theme="tigshop"] .today-item:nth-child(3)::before { content: "↺"; background: #1BBFA4; }
html[data-theme="tigshop"] .today-item:nth-child(4)::before { content: "▦"; background: #FF4D6D; }
html[data-theme="tigshop"] .today-item:first-child::after { display: none; }
html[data-theme="tigshop"] .today-item:nth-child(n+5) {
  min-height: 72px; padding: 13px 15px; grid-column: span 2;
  background: #FBFCFE; border: 1px solid #EDF1F7; box-shadow: none;
}
html[data-theme="tigshop"] .today-item:nth-child(n+5)::before { display: none; }
html[data-theme="tigshop"] .t-num { font-family: var(--sans); font-weight: 800; font-size: 25px; letter-spacing: -.02em; color: #222B38; }
html[data-theme="tigshop"] .t-num.t-urgent { color: #F53F5C; }
html[data-theme="tigshop"] .t-label { color: #8A95A4; font-size: 11.5px; }
html[data-theme="tigshop"] .t-link { color: #1677FF; }
html[data-theme="tigshop"] .stamp { display: none; }
html[data-theme="tigshop"] .card {
  background: #fff; border: 1px solid #E8EDF4; border-top: 0; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 35, 58, .04); padding: 15px 17px;
}
html[data-theme="tigshop"] .card-title, html[data-theme="tigshop"] .card-head h3 { font-size: 13px; font-weight: 700; letter-spacing: 0; color: #1E2836; }
html[data-theme="tigshop"] .card-head { margin: -15px -17px 13px; padding: 12px 17px; border-bottom: 1px solid #EDF1F7; }
html[data-theme="tigshop"] .queue-row { border-bottom: 1px solid #F0F3F8; }
html[data-theme="tigshop"] .queue-empty { color: #6E7E92; }
html[data-theme="tigshop"] .bar { background: linear-gradient(180deg, #4D96FF, #1677FF); border-radius: 2px; }
html[data-theme="tigshop"] .bar-col:last-child .bar { background: linear-gradient(180deg, #FFD36E, #FFB020); }
html[data-theme="tigshop"] .filter-bar {
  background: #fff; border: 1px solid #E7ECF4; border-left: 3px solid #1677FF; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(20, 35, 58, .04);
}
html[data-theme="tigshop"] .filter-bar input, html[data-theme="tigshop"] .filter-bar select,
html[data-theme="tigshop"] .toolbar input, html[data-theme="tigshop"] .toolbar select,
html[data-theme="tigshop"] .field input, html[data-theme="tigshop"] .field select, html[data-theme="tigshop"] .field textarea {
  border-color: #DCE3ED; border-radius: 4px; background: #fff;
}
html[data-theme="tigshop"] .filter-bar input:focus, html[data-theme="tigshop"] .filter-bar select:focus,
html[data-theme="tigshop"] .toolbar input:focus, html[data-theme="tigshop"] .toolbar select:focus,
html[data-theme="tigshop"] .field input:focus, html[data-theme="tigshop"] .field select:focus, html[data-theme="tigshop"] .field textarea:focus {
  border-color: #1677FF; box-shadow: 0 0 0 3px rgba(22, 119, 255, .10);
}
html[data-theme="tigshop"] .btn { border-radius: 4px; border-color: #DCE3ED; background: #fff; transition: all .18s ease; }
html[data-theme="tigshop"] .btn:hover:not(:disabled) { border-color: #1677FF; color: #1677FF; background: #F5F9FF; transform: translateY(-1px); }
html[data-theme="tigshop"] .btn-primary { background: #1677FF; border-color: #1677FF; color: #fff; }
html[data-theme="tigshop"] .btn-primary:hover:not(:disabled) { background: #0E5FD6; border-color: #0E5FD6; }
html[data-theme="tigshop"] .btn-ok { background: #13A98B; border-color: #13A98B; }
html[data-theme="tigshop"] .btn-danger { background: #F53F5C; border-color: #F53F5C; }
html[data-theme="tigshop"] .btn-link { color: #1677FF; border-radius: 3px; }
html[data-theme="tigshop"] .btn-link:hover:not(:disabled) { background: #EAF3FF; }
html[data-theme="tigshop"] .pager-btn { border-radius: 4px; border-color: #DCE3ED; background: #fff; }
html[data-theme="tigshop"] .pager-btn:hover:not(:disabled) { border-color: #1677FF; color: #1677FF; }
html[data-theme="tigshop"] .status-chips .chip { border-radius: 4px; background: #fff; border-color: #DDE4EE; }
html[data-theme="tigshop"] .status-chips .chip:hover { border-color: #1677FF; color: #1677FF; }
html[data-theme="tigshop"] .status-chips .chip.on { background: #1677FF; border-color: #1677FF; color: #fff; }
html[data-theme="tigshop"] .status-chips .chip.on::before { color: #9FC8FF; }
html[data-theme="tigshop"] .badge { border-radius: 4px; font-weight: 600; }
html[data-theme="tigshop"] .badge-success { color: #0F8B72; border-color: #B9E5D8; background: #ECF9F4; }
html[data-theme="tigshop"] .badge-warn { color: #946100; border-color: #F1D29A; background: #FFF7E7; }
html[data-theme="tigshop"] .badge-danger { color: #D52E4A; border-color: #F5C3CD; background: #FFF0F3; }
html[data-theme="tigshop"] .badge-info { color: #0E5FD6; border-color: #BFD8FF; background: #EEF5FF; }
html[data-theme="tigshop"] .badge-muted { color: #8793A2; border-color: #E7ECF4; background: #FAFBFD; }
html[data-theme="tigshop"] table.data th, html[data-theme="tigshop"] table.line-items th { background: #F7F9FC; color: #7D8795; border-bottom-color: #E8EDF4; }
html[data-theme="tigshop"] table.data td, html[data-theme="tigshop"] table.line-items td { border-bottom-color: #F0F3F8; }
html[data-theme="tigshop"] table.data tbody tr:hover, html[data-theme="tigshop"] table.line-items tbody tr:hover { background: #F7FAFF; }
html[data-theme="tigshop"] .theme-toggle-btn { background: #F6F9FF; border-color: #DFE8F4; color: #64748B; border-radius: 4px; }
html[data-theme="tigshop"] .theme-toggle-btn:hover, html[data-theme="tigshop"] .theme-toggle-btn[aria-expanded="true"] { border-color: #1677FF; color: #1677FF; background: #F1F7FF; }
html[data-theme="tigshop"] .modal-mask { background: rgba(10, 24, 43, .45); backdrop-filter: blur(3px); }
html[data-theme="tigshop"] .modal-dialog, html[data-theme="tigshop"] .drawer { border: 1px solid #E3E9F2; border-radius: 6px; }
html[data-theme="tigshop"] .modal-dialog { border-top: 3px solid #1677FF; box-shadow: 0 24px 60px rgba(15, 30, 50, .24); }
html[data-theme="tigshop"] .drawer { border-left: 0; border-top: 0; box-shadow: -16px 0 46px rgba(15, 30, 50, .20); }
html[data-theme="tigshop"] .modal-head { border-bottom: 1px solid #EDF1F7; }
html[data-theme="tigshop"] .toast { border-radius: 4px; background: #13233A; border-left-color: #1677FF; }
html[data-theme="tigshop"] .toast-success { background: #0F8B72; }
html[data-theme="tigshop"] .toast-error { background: #D52E4A; }
html[data-theme="tigshop"] .note-strip { border-radius: 0 4px 4px 0; background: #FFF0F3; border-left-color: #F53F5C; color: #B12E45; }
html[data-theme="tigshop"] .login-root {
  background:
    radial-gradient(720px 420px at 8% 0%, rgba(22, 119, 255, .22), transparent 68%),
    linear-gradient(155deg, #EDF4FF 0%, #F6F9FF 52%, #EAF0F9 100%);
}
html[data-theme="tigshop"] .login-card {
  border: 1px solid #DCE6F4; border-top: 4px solid #1677FF; border-radius: 8px;
  background: #fff; box-shadow: 0 26px 64px rgba(24, 52, 92, .18);
}
html[data-theme="tigshop"] .login-card::before { display: none; }
html[data-theme="tigshop"] .login-brand::before { border-color: #1677FF; color: #1677FF; border-radius: 6px; transform: none; }
html[data-theme="tigshop"] .login-brand strong { color: #1C2430; }
html[data-theme="tigshop"] .login-demo-hint { background: #FFF6E5; border-left-color: #FFB020; color: #796227; border-radius: 0 4px 4px 0; }
html[data-theme="tigshop"] .login-real-hint { background: #EEF5FF; border-left-color: #1677FF; color: #35557C; border-radius: 0 4px 4px 0; }
html[data-theme="tigshop"] .theme-wrap-fixed .theme-toggle-btn { background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(24, 52, 92, .12); }
@media (max-width: 849px) {
  html[data-theme="tigshop"] .topbar { margin-left: var(--sidebar-w-collapsed); padding: 0 16px; }
  html[data-theme="tigshop"] .main { margin-left: var(--sidebar-w-collapsed); padding: 10px 16px 40px; }
}
@media (max-width: 640px) {
  html[data-theme="tigshop"] .topbar, html[data-theme="tigshop"] .main,
  html[data-theme="tigshop"] .app-shell.side-collapsed .topbar,
  html[data-theme="tigshop"] .app-shell.side-collapsed .main { margin-left: 0; }
  html[data-theme="tigshop"] .main { padding: 8px 14px 40px; }
}

/* =====================================================================
 * 皮肤三：墨青数据舱（Whale 参考稿）
 * 浅灰外画布 + 深青圆角舱体 + 霓虹青强调 + 内发光数据卡
 * ===================================================================== */
html[data-theme="whale"] {
  --steel: #2BD4BE;
  --steel-deep: #12B6A1;
  --steel-mid: #51E0CA;
  --steel-wash: rgba(43, 212, 190, .10);
  --kraft: #9DE8DD;
  --kraft-soft: rgba(43, 212, 190, .10);
  --kraft-ink: #A3EDE4;
  --vermilion: #FF6B7A;
  --vermilion-s: rgba(255, 107, 122, .13);
  --paper: #DDE7E8;
  --paper-card: #172B2F;
  --ink: #E8F5F2;
  --ink-soft: #A7C2BE;
  --ink-mute: #7F9B98;
  --rule: #2A4246;
  --field-border: #355257;
  --side-text: #A9C5C1;
  --side-dim: #708D8A;
  --sidebar-w: 204px;
  --topbar-h: 60px;
}
html[data-theme="whale"] body {
  background: #DDE7E8;
  color: var(--ink);
  background-image: radial-gradient(800px 360px at 50% 0%, rgba(255,255,255,.72), transparent 70%);
  overflow: hidden;
}
html[data-theme="whale"] .app-shell {
  position: relative; margin: 16px 18px; height: calc(100vh - 32px); min-height: 0;
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #1A3135 0%, #13272B 38%, #102125 100%);
  box-shadow: 0 30px 80px rgba(15, 42, 44, .26);
}
html[data-theme="whale"] .sidebar {
  position: absolute; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  padding: 20px 0 14px;
  background: linear-gradient(180deg, #14262A, #102024 68%, #0E1E21);
  border-right: 1px solid #233B3E;
  box-shadow: inset -1px 0 rgba(255,255,255,.02);
}
html[data-theme="whale"] .topbar {
  position: relative; flex: none; margin-left: var(--sidebar-w); height: var(--topbar-h); padding: 0 22px;
  background: rgba(17, 33, 37, .88); border-bottom: 1px solid #294246;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html[data-theme="whale"] .main {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  margin-left: var(--sidebar-w); padding: 6px 24px 42px;
  scrollbar-width: thin; scrollbar-color: #34575A transparent;
}
html[data-theme="whale"] .main::-webkit-scrollbar { width: 8px; }
html[data-theme="whale"] .main::-webkit-scrollbar-track { background: transparent; }
html[data-theme="whale"] .main::-webkit-scrollbar-thumb { background: #34575A; border-radius: 8px; }
html[data-theme="whale"] .main::-webkit-scrollbar-thumb:hover { background: #427073; }
html[data-theme="whale"] .sidebar-brand { padding: 0 16px 18px; border-bottom-color: #233B3E; }
html[data-theme="whale"] .brand-mark {
  width: 33px; height: 33px; border-radius: 50%;
  background: radial-gradient(circle at 36% 25%, #8FF6E7, #1FBCA8 42%, #0C8176 100%);
  color: #072420; font-family: var(--sans); font-size: 15px;
  box-shadow: 0 0 24px rgba(43, 212, 190, .34), 0 4px 10px rgba(0,0,0,.25);
}
html[data-theme="whale"] .brand-mark::after { border: 1px solid rgba(200, 255, 247, .30); border-radius: 50%; }
html[data-theme="whale"] .sidebar-brand strong { color: #E9FBF7; font-size: 15px; letter-spacing: .04em; }
html[data-theme="whale"] .sidebar-brand .brand-text span { color: #779793; letter-spacing: .14em; }
html[data-theme="whale"] .nav-group { border-top-color: #223A3D; }
html[data-theme="whale"] .nav-group-toggle { background: transparent; color: #74918D; font-size: 10px; letter-spacing: .15em; }
html[data-theme="whale"] .nav-group-toggle::before { width: 4px; height: 4px; border-radius: 50%; background: #4D8E86; }
html[data-theme="whale"] .nav-group-toggle:hover { color: #DDF7F1; background: rgba(43, 212, 190, .06); }
html[data-theme="whale"] .nav-group.has-active .nav-group-toggle { background: linear-gradient(90deg, rgba(43,212,190,.12), transparent); color: #8CF3E3; }
html[data-theme="whale"] .nav-group.has-active .nav-group-toggle::before { background: #2BD4BE; box-shadow: 0 0 8px rgba(43,212,190,.8); }
html[data-theme="whale"] .nav-group-count { border-color: #2C474A; color: #7C9995; background: rgba(255,255,255,.02); }
html[data-theme="whale"] .nav-group.has-active .nav-group-count { border-color: #2D6E69; color: #74DCCE; }
html[data-theme="whale"] .nav-group-chev { color: #5C8A84; }
html[data-theme="whale"] .nav-group-items { margin: 0 8px 7px 15px; padding-left: 6px; border-left-color: #223A3D; }
html[data-theme="whale"] .nav-item {
  color: #9DBAB6; border-radius: 7px; font-size: 13px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
html[data-theme="whale"] .nav-item:hover { background: rgba(43, 212, 190, .06); color: #E4FDF8; transform: translateX(2px); }
html[data-theme="whale"] .nav-item.active {
  background: linear-gradient(90deg, rgba(43, 212, 190, .17), rgba(43, 212, 190, .02));
  color: #A5F7EB; font-weight: 700;
}
html[data-theme="whale"] .nav-item.active::before { border-radius: 4px; background: #2BD4BE; box-shadow: 0 0 12px rgba(43, 212, 190, .65); }
html[data-theme="whale"] .nav-ico { color: #5FA49C; }
html[data-theme="whale"] .nav-item.active .nav-ico { color: #2BD4BE; }
html[data-theme="whale"] .sidebar-foot { border-top-color: #223A3D; color: #75928E; }
html[data-theme="whale"] .page-name { color: #75928E; }
html[data-theme="whale"] .page-name .crumb-root { color: #8AA7A3; }
html[data-theme="whale"] .page-name strong { color: #E9F9F6; }
html[data-theme="whale"] .crumb-sep { color: #2F7770; }
html[data-theme="whale"] .side-toggle { border-color: #2D494D; border-radius: 7px; color: #91AFAB; background: rgba(255,255,255,.02); }
html[data-theme="whale"] .side-toggle:hover { background: rgba(43,212,190,.08); color: #2BD4BE; }
html[data-theme="whale"] .topbar-search {
  border-color: #2C484C; border-radius: 8px; background: rgba(255,255,255,.035); color: #8FAEAA;
}
html[data-theme="whale"] .topbar-search:hover { border-color: #2E877D; color: #53DCC9; background: rgba(43,212,190,.075); }
html[data-theme="whale"] .icon-btn { border-color: #2C484C; border-radius: 7px; color: #93AFAB; background: rgba(255,255,255,.02); }
html[data-theme="whale"] .icon-btn:hover, html[data-theme="whale"] .notify-wrap .icon-btn[aria-expanded="true"] {
  border-color: #2E877D; color: #58E1CD; background: rgba(43,212,190,.07);
}
html[data-theme="whale"] .notify-badge { background: #FF6B7A; box-shadow: 0 0 10px rgba(255,107,122,.35); }
html[data-theme="whale"] .user-chip { border-radius: 8px; }
html[data-theme="whale"] .user-chip:hover, html[data-theme="whale"] .user-wrap.open .user-chip { background: rgba(43,212,190,.07); }
html[data-theme="whale"] .user-avatar {
  background: linear-gradient(145deg, #4FE1CE, #139483); color: #06221F;
  box-shadow: 0 0 18px rgba(43,212,190,.22);
}
html[data-theme="whale"] .user-name { color: #E8F9F6; }
html[data-theme="whale"] .user-role { color: #7F9B97; }
html[data-theme="whale"] .user-pop, html[data-theme="whale"] .notify-pop, html[data-theme="whale"] .theme-pop {
  border-color: #2A4549; border-radius: 12px; background: #172D31;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .34);
}
html[data-theme="whale"] .notify-pop { border-top: 2px solid #2BD4BE; }
html[data-theme="whale"] .user-pop-head { border-bottom-color: #2A4549; }
html[data-theme="whale"] .user-pop-item:hover { background: rgba(43,212,190,.08); color: #DDF8F2; }
html[data-theme="whale"] .page-head { padding: 20px 0 14px; }
html[data-theme="whale"] .page-head h2 { font-size: 26px; font-weight: 800; letter-spacing: .02em; color: #ECFBF8; }
html[data-theme="whale"] .page-head h2::after { width: 20px; height: 3px; background: #2BD4BE; box-shadow: 0 0 12px rgba(43,212,190,.55); }
html[data-theme="whale"] .page-desc { color: #7F9B98; font-size: 12.5px; }
html[data-theme="whale"] .today-strip { gap: 12px; margin: 16px 0 20px; }
html[data-theme="whale"] .today-item {
  min-height: 102px; padding: 17px 15px 14px 62px;
  border: 1px solid #2B484C; border-top: 0; border-radius: 13px;
  background: linear-gradient(145deg, #1C3438, #172C30 70%);
  box-shadow: inset 0 1px rgba(255,255,255,.03), 0 12px 26px rgba(0, 0, 0, .16);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html[data-theme="whale"] .today-item:hover { transform: translateY(-2px); border-color: #32736D; box-shadow: 0 16px 32px rgba(0,0,0,.22); }
html[data-theme="whale"] .today-item::before {
  content: "◇"; position: absolute; left: 15px; top: 17px;
  width: 33px; height: 33px; border-radius: 50%;
  border: 1px solid rgba(43, 212, 190, .30); background: rgba(43, 212, 190, .07);
  color: #56E2D0; font: 600 16px/31px var(--sans); text-align: center;
  box-shadow: inset 0 0 10px rgba(43,212,190,.10);
}
html[data-theme="whale"] .today-item:nth-child(2)::before { content: "⇢"; }
html[data-theme="whale"] .today-item:nth-child(3)::before { content: "↺"; }
html[data-theme="whale"] .today-item:nth-child(4)::before { content: "▦"; }
html[data-theme="whale"] .today-item:first-child::after { display: none; }
html[data-theme="whale"] .today-item:nth-child(n+5) {
  min-height: 76px; padding: 13px 15px; grid-column: span 2;
  background: #172C30; border-radius: 11px;
}
html[data-theme="whale"] .today-item:nth-child(n+5)::before { display: none; }
html[data-theme="whale"] .t-num { font-family: var(--sans); font-weight: 800; color: #EAFBF7; letter-spacing: -.02em; }
html[data-theme="whale"] .t-num.t-urgent { color: #FF7C8A; }
html[data-theme="whale"] .t-label { color: #8EA9A6; }
html[data-theme="whale"] .t-link { color: #48D7C4; }
html[data-theme="whale"] .stamp { display: none; }
html[data-theme="whale"] .card {
  background: #172C30; border: 1px solid #2A4549; border-top: 0; border-radius: 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .17); padding: 16px 18px;
}
html[data-theme="whale"] .card-title, html[data-theme="whale"] .card-head h3 { color: #DFF5F0; font-weight: 700; letter-spacing: .04em; }
html[data-theme="whale"] .card-head { margin: -16px -18px 14px; padding: 13px 18px; border-bottom: 1px solid #2A4549; }
html[data-theme="whale"] .queue-row { border-bottom-color: #274044; }
html[data-theme="whale"] .q-meta, html[data-theme="whale"] .q-sub { color: #93AFAB; }
html[data-theme="whale"] .queue-empty { color: #66CFC1; }
html[data-theme="whale"] .bar { background: linear-gradient(180deg, #4CE4D1, #1BAE9D); border-radius: 6px; box-shadow: 0 0 14px rgba(43,212,190,.20); }
html[data-theme="whale"] .bar-col:last-child .bar { background: linear-gradient(180deg, #C9FFF7, #55DCC9); }
html[data-theme="whale"] .bar-value, html[data-theme="whale"] .bar-label { color: #86A5A1; }
html[data-theme="whale"] .filter-bar {
  background: #172C30; border: 1px solid #2A4549; border-left: 2px solid #2BD4BE; border-radius: 12px;
}
html[data-theme="whale"] .filter-bar input, html[data-theme="whale"] .filter-bar select,
html[data-theme="whale"] .toolbar input, html[data-theme="whale"] .toolbar select,
html[data-theme="whale"] .field input, html[data-theme="whale"] .field select, html[data-theme="whale"] .field textarea {
  border-color: #355257; border-radius: 8px; background: #132629; color: #E4F4F1;
}
html[data-theme="whale"] .filter-bar input::placeholder, html[data-theme="whale"] .toolbar input::placeholder,
html[data-theme="whale"] .field input::placeholder, html[data-theme="whale"] .field textarea::placeholder { color: #6F8B88; }
html[data-theme="whale"] .filter-bar input:focus, html[data-theme="whale"] .filter-bar select:focus,
html[data-theme="whale"] .toolbar input:focus, html[data-theme="whale"] .toolbar select:focus,
html[data-theme="whale"] .field input:focus, html[data-theme="whale"] .field select:focus, html[data-theme="whale"] .field textarea:focus {
  border-color: #2BD4BE; box-shadow: 0 0 0 3px rgba(43, 212, 190, .12);
}
html[data-theme="whale"] .btn {
  border-radius: 8px; border-color: #355257; background: rgba(255,255,255,.035); color: #C6E5DF;
  transition: all .18s ease;
}
html[data-theme="whale"] .btn:hover:not(:disabled) { border-color: #2BD4BE; color: #86F5E5; background: rgba(43,212,190,.08); transform: translateY(-1px); }
html[data-theme="whale"] .btn-primary { background: linear-gradient(135deg, #5BE7D3, #20C2AE); border-color: #20C2AE; color: #07211E; font-weight: 700; }
html[data-theme="whale"] .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #7CF3E2, #29D0BC); color: #07211E; }
html[data-theme="whale"] .btn-ok { background: #2DB39E; border-color: #2DB39E; color: #061F1C; }
html[data-theme="whale"] .btn-danger { background: #FF6B7A; border-color: #FF6B7A; color: #23080C; }
html[data-theme="whale"] .btn-link { color: #4CE0CD; border-radius: 6px; }
html[data-theme="whale"] .btn-link:hover:not(:disabled) { background: rgba(43,212,190,.08); color: #8AF5E6; }
html[data-theme="whale"] .pager-btn { border-radius: 7px; border-color: #355257; background: #172C30; color: #C6E3DE; }
html[data-theme="whale"] .pager-btn:hover:not(:disabled) { border-color: #2BD4BE; color: #5DE7D5; }
html[data-theme="whale"] .status-chips .chip { border-radius: 999px; background: rgba(255,255,255,.02); border-color: #355257; color: #A3BFBB; }
html[data-theme="whale"] .status-chips .chip:hover { border-color: #2BD4BE; color: #65E4D3; }
html[data-theme="whale"] .status-chips .chip.on { background: #2BD4BE; border-color: #2BD4BE; color: #06221F; font-weight: 700; }
html[data-theme="whale"] .status-chips .chip.on::before { color: #0B4A43; }
html[data-theme="whale"] .badge { border-radius: 999px; font-weight: 600; background: rgba(255,255,255,.03); }
html[data-theme="whale"] .badge-success { color: #73E8D8; border-color: #2E6E68; background: rgba(43,212,190,.09); }
html[data-theme="whale"] .badge-warn { color: #F3D58A; border-color: #6E6133; background: rgba(243,213,138,.09); }
html[data-theme="whale"] .badge-danger { color: #FF9AA5; border-color: #733C44; background: rgba(255,107,122,.10); }
html[data-theme="whale"] .badge-info { color: #7EDCEB; border-color: #2E5D68; background: rgba(126,220,235,.09); }
html[data-theme="whale"] .badge-muted { color: #8AA5A1; border-color: #355257; background: rgba(255,255,255,.02); }
html[data-theme="whale"] table.data th, html[data-theme="whale"] table.line-items th {
  background: #14282B; color: #85A39F; border-bottom-color: #2A4549;
}
html[data-theme="whale"] table.data td, html[data-theme="whale"] table.line-items td { border-bottom-color: #243D41; color: #D8ECE8; }
html[data-theme="whale"] table.data tbody tr:hover, html[data-theme="whale"] table.line-items tbody tr:hover { background: rgba(43, 212, 190, .05); }
html[data-theme="whale"] table.data .muted, html[data-theme="whale"] .muted { color: #7F9B98; }
html[data-theme="whale"] .hint-box { background: rgba(43,212,190,.05); border-left-color: #2BD4BE; color: #A5C1BD; }
html[data-theme="whale"] .rank-bar { background: rgba(255,255,255,.06); }
html[data-theme="whale"] .rank-bar-fill { background: #2BD4BE; }
html[data-theme="whale"] .theme-toggle-btn { background: rgba(255,255,255,.035); border-color: #2C484C; color: #9AB7B3; border-radius: 8px; }
html[data-theme="whale"] .theme-toggle-btn:hover, html[data-theme="whale"] .theme-toggle-btn[aria-expanded="true"] { border-color: #2BD4BE; color: #66E7D6; background: rgba(43,212,190,.08); }
html[data-theme="whale"] .theme-pop { background: #172D31; border-color: #2A4549; }
html[data-theme="whale"] .theme-option:hover { background: rgba(43,212,190,.06); border-color: #2A4549; }
html[data-theme="whale"] .theme-option.is-active { background: rgba(43,212,190,.10); border-color: #2BD4BE; }
html[data-theme="whale"] .theme-pop-head span, html[data-theme="whale"] .theme-option-meta small { color: #7F9B98; }
html[data-theme="whale"] .modal-mask { background: rgba(6, 16, 18, .68); backdrop-filter: blur(5px); }
html[data-theme="whale"] .modal-dialog, html[data-theme="whale"] .drawer { background: #172C30; border: 1px solid #2A4549; border-radius: 14px; color: #E4F5F1; }
html[data-theme="whale"] .modal-dialog { border-top: 2px solid #2BD4BE; box-shadow: 0 28px 70px rgba(0,0,0,.46); }
html[data-theme="whale"] .drawer { border-left: 0; box-shadow: -20px 0 54px rgba(0,0,0,.40); }
html[data-theme="whale"] .modal-head { border-bottom-color: #2A4549; }
html[data-theme="whale"] .modal-head h3 { color: #EDFBF8; }
html[data-theme="whale"] .modal-foot { border-top-color: #2A4549; }
html[data-theme="whale"] .toast { background: #1C393C; color: #E8F9F6; border-left-color: #2BD4BE; border-radius: 9px; box-shadow: 0 12px 30px rgba(0,0,0,.34); }
html[data-theme="whale"] .toast-success { background: #176E61; }
html[data-theme="whale"] .toast-error { background: #8E3543; }
html[data-theme="whale"] .note-strip { border-radius: 0 9px 9px 0; background: rgba(255,107,122,.12); border-left-color: #FF6B7A; color: #F6A8B0; }
html[data-theme="whale"] .product-thumb-img, html[data-theme="whale"] .content-thumb, html[data-theme="whale"] .rec-thumb, html[data-theme="whale"] .gallery-cell { border-color: #355257; background: #132629; }
html[data-theme="whale"] .product-thumb-ph, html[data-theme="whale"] .gallery-add { border-color: #355257; background: #14282B; color: #8AA6A2; }
html[data-theme="whale"] .login-root {
  background:
    radial-gradient(760px 480px at 12% -6%, rgba(43, 212, 190, .18), transparent 65%),
    radial-gradient(620px 420px at 100% 10%, rgba(64, 143, 255, .12), transparent 66%),
    linear-gradient(155deg, #0D1E21, #102528 52%, #0B191B);
}
html[data-theme="whale"] .login-card {
  border: 1px solid #29464A; border-top: 3px solid #2BD4BE; border-radius: 18px;
  background: rgba(22, 42, 45, .94); box-shadow: 0 28px 74px rgba(0,0,0,.48);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
html[data-theme="whale"] .login-card::before { display: none; }
html[data-theme="whale"] .login-brand::before { border-color: #2BD4BE; color: #7FF5E5; background: rgba(43,212,190,.07); }
html[data-theme="whale"] .login-brand strong { color: #E9FBF7; }
html[data-theme="whale"] .login-brand span, html[data-theme="whale"] .login-sub { color: #8FADA8; }
html[data-theme="whale"] .login-demo-hint { background: rgba(43,212,190,.08); border-left-color: #2BD4BE; color: #9ED5CC; border-radius: 0 9px 9px 0; }
html[data-theme="whale"] .login-real-hint { background: rgba(255,255,255,.035); border-left-color: #3D6B6B; color: #9AB6B1; border-radius: 0 9px 9px 0; }
html[data-theme="whale"] .theme-wrap-fixed .theme-toggle-btn { background: rgba(22,42,45,.88); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
@media (max-width: 849px) {
  html[data-theme="whale"] .app-shell { margin: 12px; height: calc(100vh - 24px); }
  html[data-theme="whale"] .sidebar { width: var(--sidebar-w-collapsed); }
  html[data-theme="whale"] .topbar, html[data-theme="whale"] .main { margin-left: var(--sidebar-w-collapsed); }
}
@media (max-width: 640px) {
  html[data-theme="whale"] body { overflow: auto; }
  html[data-theme="whale"] .app-shell { margin: 0; height: auto; min-height: 100vh; display: block; border-radius: 0; }
  html[data-theme="whale"] .sidebar { position: static; width: 100%; border-right: 0; }
  html[data-theme="whale"] .topbar, html[data-theme="whale"] .main,
  html[data-theme="whale"] .app-shell.side-collapsed .topbar,
  html[data-theme="whale"] .app-shell.side-collapsed .main { margin-left: 0; }
  html[data-theme="whale"] .main { overflow: visible; }
}

/* 窄屏顶部空间有限：风格按钮收成图标 */
@media (max-width: 599px) {
  #topbar .theme-toggle-label,
  #topbar .theme-toggle-chev { display: none; }
  #topbar .theme-toggle-btn { width: 32px; padding: 0; justify-content: center; }
  #topbar .theme-pop { width: min(286px, calc(100vw - 20px)); }
}

/* 849px 以下侧栏收成图标轨：去掉分组之间的空行和缩进，避免出现一排无意义横线 */
@media (min-width: 641px) and (max-width: 849px) {
  html:is([data-theme="bizzy"], [data-theme="tigshop"], [data-theme="whale"]) .nav-group {
    margin: 0; padding: 0; border-top: 0;
  }
  html:is([data-theme="bizzy"], [data-theme="tigshop"], [data-theme="whale"]) .nav-group-items {
    margin: 0; padding: 0; border-left: 0;
  }
  html:is([data-theme="bizzy"], [data-theme="tigshop"], [data-theme="whale"]) .nav-item {
    justify-content: center; padding: 10px 0;
  }
  html:is([data-theme="bizzy"], [data-theme="tigshop"], [data-theme="whale"]) .nav-item.active::before {
    left: 3px; top: 6px; bottom: 6px;
  }
}

/* 深蓝皮肤的表单页签改成电商蓝，避免沿用原版朱砂/牛皮纸撞色 */
html[data-theme="tigshop"] .form-tab.active {
  color: #1677FF; border-bottom-color: #1677FF; background: #EAF3FF;
}
html[data-theme="tigshop"] .form-tab:hover { color: #0E5FD6; }

/* 换肤整页交叉淡化（Chromium View Transitions）；旧浏览器走上面的颜色过渡 */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .42s;
  animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .01ms; }
}

/* =====================================================================
 * 2026-11-27 布局层：不只是换色，按三张参考稿重排分类、侧栏、顶栏和首页栅格
 * ===================================================================== */

/* ---------- 橙光轻商务：单列分类 + 侧栏搜索 + 侧栏账号 ---------- */
html[data-theme="bizzy"] .sidebar {
  overflow: hidden;
  padding: 14px 0 12px;
}
html[data-theme="bizzy"] .sidebar-search {
  display: flex; align-items: center; gap: 9px;
  height: 38px; margin: 0 12px 12px; padding: 0 11px;
  border: 1px solid #EFE6DA; border-radius: 10px;
  background: #FFFCF8; color: #938879;
  font-size: 12px; text-align: left;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
html[data-theme="bizzy"] .sidebar-search:hover { border-color: #F2BE71; background: #FFF7EB; color: #C77C11; }
html[data-theme="bizzy"] .sidebar-search svg { flex: none; color: #D8902F; }
html[data-theme="bizzy"] .sidebar-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="bizzy"] .nav-classic {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 4px 8px;
  scrollbar-width: thin; scrollbar-color: #EADCC9 transparent;
}
html[data-theme="bizzy"] .nav-classic::-webkit-scrollbar { width: 5px; }
html[data-theme="bizzy"] .nav-classic::-webkit-scrollbar-thumb { background: #E9DCCB; border-radius: 5px; }
html[data-theme="bizzy"] .nav-group { margin: 0 4px 10px; padding: 0; border-top: 0; }
html[data-theme="bizzy"] .nav-group-toggle {
  padding: 6px 10px 7px; border-radius: 8px;
  background: transparent; color: #9A8B78;
  font-size: 10.5px; letter-spacing: .12em;
}
html[data-theme="bizzy"] .nav-group-toggle::before { display: none; }
html[data-theme="bizzy"] .nav-group-toggle::after {
  content: "−"; flex: none; margin-left: auto;
  width: 18px; height: 18px; border: 1px solid #EFE3D3; border-radius: 50%;
  color: #A08C73; font: 600 12px/16px var(--sans); text-align: center;
  background: #FFFBF6;
}
html[data-theme="bizzy"] .nav-group.is-collapsed .nav-group-toggle::after { content: "+"; }
html[data-theme="bizzy"] .nav-group-toggle:hover { color: #5E564B; background: #FFF8EE; }
html[data-theme="bizzy"] .nav-group.has-active .nav-group-toggle { background: transparent; color: #C47714; }
html[data-theme="bizzy"] .nav-group.has-active .nav-group-toggle::after { border-color: #F5CE97; color: #D28316; background: #FFF4E3; }
html[data-theme="bizzy"] .nav-group-count,
html[data-theme="bizzy"] .nav-group-chev { display: none; }
html[data-theme="bizzy"] .nav-group-items { margin: 0; padding: 0; border-left: 0; }
html[data-theme="bizzy"] .nav-item {
  min-height: 38px; padding: 8px 10px; gap: 10px; border-radius: 9px;
}
html[data-theme="bizzy"] .sidebar-user {
  display: flex; align-items: center; gap: 9px;
  margin: 6px 12px 0; padding: 12px 2px 0;
  border-top: 1px solid #F1E7D9;
}
html[data-theme="bizzy"] .sidebar-user .user-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: linear-gradient(145deg, #FFB24A, #F18912);
  color: #fff; font-size: 13px;
}
html[data-theme="bizzy"] .sidebar-user-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
html[data-theme="bizzy"] .sidebar-user-meta strong { color: #292A30; font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="bizzy"] .sidebar-user-meta small { color: #9B8D7C; font-size: 10.5px; }
html[data-theme="bizzy"] .sidebar-logout {
  flex: none; margin-left: auto; padding: 4px 7px;
  border: 1px solid #EFE4D6; border-radius: 7px;
  background: #FFFCF7; color: #998A77; font-size: 10.5px;
}
html[data-theme="bizzy"] .sidebar-logout:hover { border-color: #F1B867; color: #C8780A; background: #FFF5E6; }
@media (min-width: 850px) {
  html[data-theme="bizzy"] .topbar-tools .topbar-search { display: none; }
  html[data-theme="bizzy"] .topbar-right .user-wrap { display: none; }
  html[data-theme="bizzy"] .topbar-left .page-name { margin-left: 2px; }
}
@media (max-width: 849px) {
  html[data-theme="bizzy"] .sidebar-search,
  html[data-theme="bizzy"] .sidebar-user { display: none; }
  html[data-theme="bizzy"] .sidebar { overflow-y: auto; }
  html[data-theme="bizzy"] .nav-classic { overflow: visible; padding: 0; flex: 0 0 auto; }
}
@media (max-width: 640px) {
  html[data-theme="bizzy"] .nav-classic { display: flex; width: 100%; overflow-x: auto; }
}

/* 橙光首页：待办全宽，主趋势 2/3 + 最新订单 1/3，下方销量/库存双列 */
html[data-theme="bizzy"] .dash-board {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px; align-items: stretch;
}
html[data-theme="bizzy"] .dash-board > .today-strip { grid-column: 1 / -1; margin: 0; }
html[data-theme="bizzy"] .dash-board .dash-cols { display: contents; }
html[data-theme="bizzy"] .dash-board .dash-queue { grid-column: 1 / -1; }
html[data-theme="bizzy"] .dash-board .dash-trend,
html[data-theme="bizzy"] .dash-board .dash-recent,
html[data-theme="bizzy"] .dash-board .dash-top,
html[data-theme="bizzy"] .dash-board .dash-stock { margin-top: 0; }

/* ---------- 深蓝商家台：一级图标轨 + 白色二级菜单 ---------- */
html[data-theme="tigshop"] {
  --tig-rail-w: 92px;
  --tig-subnav-w: 200px;
}
html[data-theme="tigshop"] .sidebar {
  width: var(--tig-rail-w); padding: 12px 0 10px;
  align-items: stretch; overflow: hidden;
}
html[data-theme="tigshop"] .sidebar-brand {
  justify-content: center; padding: 2px 8px 14px; margin-bottom: 4px;
}
html[data-theme="tigshop"] .brand-text { display: none; }
html[data-theme="tigshop"] .brand-mark { width: 34px; height: 34px; }
html[data-theme="tigshop"] .nav-classic,
html[data-theme="tigshop"] .sidebar-search,
html[data-theme="tigshop"] .sidebar-user { display: none; }
html[data-theme="tigshop"] .nav-rail {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 2px 7px 8px;
  scrollbar-width: none;
}
html[data-theme="tigshop"] .nav-rail::-webkit-scrollbar { display: none; }
html[data-theme="tigshop"] .rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; padding: 8px 2px 7px; border: 0; border-radius: 7px;
  background: transparent; color: #8FA2BD; text-align: center;
  transition: background .18s ease, color .18s ease;
}
html[data-theme="tigshop"] .rail-item:hover { background: rgba(255,255,255,.06); color: #EAF3FF; }
html[data-theme="tigshop"] .rail-item.active { background: #1677FF; color: #fff; box-shadow: 0 5px 12px rgba(22,119,255,.22); }
html[data-theme="tigshop"] .rail-ico { display: inline-flex; }
html[data-theme="tigshop"] .rail-ico svg { width: 18px; height: 18px; }
html[data-theme="tigshop"] .rail-text { font-size: 10px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
html[data-theme="tigshop"] .subnav {
  display: block; position: fixed; z-index: 9;
  left: var(--tig-rail-w); top: var(--topbar-h); bottom: 0;
  width: var(--tig-subnav-w);
  background: #FFFFFF; border-right: 1px solid #E8EDF4;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: #D9E1EC transparent;
}
html[data-theme="tigshop"] .subnav::-webkit-scrollbar { width: 5px; }
html[data-theme="tigshop"] .subnav::-webkit-scrollbar-thumb { background: #DDE5F0; border-radius: 5px; }
html[data-theme="tigshop"] .subnav-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 16px 12px; border-bottom: 1px solid #EEF2F8;
}
html[data-theme="tigshop"] .subnav-head strong { font-size: 15px; font-weight: 700; color: #1D2735; }
html[data-theme="tigshop"] .subnav-head span { color: #98A3B2; font-size: 10.5px; }
html[data-theme="tigshop"] .subnav-groups { padding: 10px 8px 28px; }
html[data-theme="tigshop"] .subnav-group { margin-bottom: 12px; }
html[data-theme="tigshop"] .subnav-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px 5px 9px; color: #8A95A4;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
}
html[data-theme="tigshop"] .subnav-group-title small {
  min-width: 17px; padding: 1px 4px; border-radius: 3px;
  background: #F4F7FB; color: #9BA6B4; font-size: 9.5px; text-align: center;
}
html[data-theme="tigshop"] .subnav-group.is-active .subnav-group-title { color: #1677FF; }
html[data-theme="tigshop"] .subnav-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 7px 9px; border: 0; border-radius: 4px;
  background: transparent; color: #5E6B7B; font-size: 12px; text-align: left;
}
html[data-theme="tigshop"] .subnav-item:hover { background: #F2F7FF; color: #1677FF; }
html[data-theme="tigshop"] .subnav-item.active { background: #EAF3FF; color: #1677FF; font-weight: 600; }
html[data-theme="tigshop"] .subnav-dot { width: 5px; height: 5px; border-radius: 50%; background: #C6D1DF; flex: none; }
html[data-theme="tigshop"] .subnav-item.active .subnav-dot { background: #1677FF; box-shadow: 0 0 0 2px #D9E9FF; }
html[data-theme="tigshop"] .topbar {
  margin-left: var(--tig-rail-w);
}
html[data-theme="tigshop"] .main {
  margin-left: calc(var(--tig-rail-w) + var(--tig-subnav-w));
  padding: 10px 20px 48px;
}
@media (min-width: 850px) {
  html[data-theme="tigshop"] .side-toggle { display: none; }
  html[data-theme="tigshop"] .topbar-left .page-name { display: none; }
  html[data-theme="tigshop"] .topbar-search-lead { display: flex; width: min(420px, 40vw); }
  html[data-theme="tigshop"] .topbar-tools .topbar-search { display: none; }
}
@media (max-width: 849px) {
  html[data-theme="tigshop"] .subnav { display: none; }
  html[data-theme="tigshop"] .nav-rail { display: none; }
  html[data-theme="tigshop"] .nav-classic { display: block; width: 100%; }
  html[data-theme="tigshop"] .topbar { margin-left: var(--sidebar-w-collapsed); padding: 0 16px; }
  html[data-theme="tigshop"] .main { margin-left: var(--sidebar-w-collapsed); padding: 10px 16px 40px; }
  html[data-theme="tigshop"] .sidebar { width: var(--sidebar-w-collapsed); }
  html[data-theme="tigshop"] .nav-classic .nav-group.is-collapsed .nav-group-items,
  html[data-theme="tigshop"] .nav-classic .nav-group .nav-group-items { display: block; }
}
@media (max-width: 640px) {
  html[data-theme="tigshop"] .nav-classic { display: flex; width: 100%; overflow-x: auto; }
  html[data-theme="tigshop"] .topbar, html[data-theme="tigshop"] .main,
  html[data-theme="tigshop"] .app-shell.side-collapsed .topbar,
  html[data-theme="tigshop"] .app-shell.side-collapsed .main { margin-left: 0; }
}
html[data-theme="tigshop"] .dash-board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; align-items: stretch;
}
html[data-theme="tigshop"] .dash-board > .today-strip { grid-column: 1 / -1; margin: 0; }
html[data-theme="tigshop"] .dash-board .dash-cols { display: contents; }
html[data-theme="tigshop"] .dash-board .dash-queue { grid-column: 1 / -1; }
html[data-theme="tigshop"] .dash-board .card { margin-top: 0; }

/* ---------- 墨青数据舱：紧凑分组 + 数据舱栅格 ---------- */
html[data-theme="whale"] {
  --sidebar-w: 190px;
  --sidebar-w-collapsed: 72px;
}
html[data-theme="whale"] .sidebar { padding: 16px 0 12px; }
html[data-theme="whale"] .nav-classic { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 3px 6px; }
html[data-theme="whale"] .nav-group { margin: 0 4px 8px; padding: 0 0 2px; }
html[data-theme="whale"] .nav-group-toggle { padding: 6px 9px 5px; font-size: 9.5px; letter-spacing: .12em; }
html[data-theme="whale"] .nav-group-count { display: none; }
html[data-theme="whale"] .nav-group-chev { width: 12px; opacity: .5; }
html[data-theme="whale"] .nav-group-items { margin: 0; padding: 0; border-left: 0; }
html[data-theme="whale"] .nav-item { min-height: 31px; padding: 6px 9px; border-radius: 6px; font-size: 12px; gap: 9px; }
html[data-theme="whale"] .nav-item .nav-ico svg { width: 15px; height: 15px; }
html[data-theme="whale"] .nav-item.active::before { left: 0; top: 4px; bottom: 4px; width: 3px; }
html[data-theme="whale"] .sidebar-user { display: none; }
html[data-theme="whale"] .nav-classic { scrollbar-width: thin; scrollbar-color: #2A4549 transparent; }
html[data-theme="whale"] .nav-classic::-webkit-scrollbar { width: 5px; }
html[data-theme="whale"] .nav-classic::-webkit-scrollbar-thumb { background: #2A4549; border-radius: 5px; }
html[data-theme="whale"] .topbar-left .crumb-root,
html[data-theme="whale"] .topbar-left .crumb-sep { display: none; }
html[data-theme="whale"] .topbar-left .page-name { font-size: 13px; color: #A7C2BE; }
html[data-theme="whale"] .page-name strong { font-size: 13px; }

html[data-theme="whale"] .dash-board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px; align-items: stretch;
}
html[data-theme="whale"] .dash-board > .today-strip {
  grid-column: 1 / -1; margin: 0; gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
html[data-theme="whale"] .dash-board .dash-cols { display: contents; }
html[data-theme="whale"] .dash-board .dash-trend { grid-column: 1 / 9; order: 1; }
html[data-theme="whale"] .dash-board .dash-top { grid-column: 9 / 13; order: 2; }
html[data-theme="whale"] .dash-board .dash-queue { grid-column: 1 / 9; order: 3; }
html[data-theme="whale"] .dash-board .dash-stock { grid-column: 9 / 13; order: 4; }
html[data-theme="whale"] .dash-board .dash-recent { grid-column: 1 / -1; order: 5; }
html[data-theme="whale"] .dash-board .card { margin-top: 0; }
html[data-theme="whale"] .dash-board .today-item { min-height: 88px; padding: 14px 12px 12px 54px; }
html[data-theme="whale"] .dash-board .today-item::before { left: 12px; top: 14px; width: 30px; height: 30px; font-size: 14px; line-height: 28px; }
html[data-theme="whale"] .dash-board .today-item:nth-child(n+5) { min-height: 68px; padding: 11px 12px; }
html[data-theme="whale"] .dash-board .today-item:nth-child(n+5)::before { display: none; }

/* 新布局在窄屏一律回到单列，避免侧栏加宽后主区被挤扁 */
@media (max-width: 1100px) {
  html[data-theme="bizzy"] .dash-board,
  html[data-theme="tigshop"] .dash-board,
  html[data-theme="whale"] .dash-board { display: block; }
  html[data-theme="bizzy"] .dash-board > .today-strip,
  html[data-theme="tigshop"] .dash-board > .today-strip,
  html[data-theme="whale"] .dash-board > .today-strip { margin: 16px 0 18px; }
  html[data-theme="bizzy"] .dash-board .card,
  html[data-theme="tigshop"] .dash-board .card,
  html[data-theme="whale"] .dash-board .card { margin-top: 14px; }
  html[data-theme="whale"] .dash-board .dash-recent,
  html[data-theme="whale"] .dash-board .dash-queue,
  html[data-theme="whale"] .dash-board .dash-stock,
  html[data-theme="whale"] .dash-board .dash-top,
  html[data-theme="whale"] .dash-board .dash-trend { display: block; }
}

/* ---------- 第二轮布局回归修正：窄屏导航、橙光表格和墨青 KPI ---------- */
html[data-theme="bizzy"] .topbar-left .crumb-root,
html[data-theme="bizzy"] .topbar-left .crumb-sep,
html[data-theme="tigshop"] .topbar-left .crumb-root,
html[data-theme="tigshop"] .topbar-left .crumb-sep { display: none; }

/* 橙光：给“最新订单”多留一点宽度，窄表头不再逐字换行 */
html[data-theme="bizzy"] .dash-board { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
html[data-theme="bizzy"] .dash-recent td,
html[data-theme="bizzy"] .dash-recent th { padding-left: 8px; padding-right: 8px; font-size: 11.5px; }
html[data-theme="bizzy"] .dash-recent th { font-size: 10.5px; letter-spacing: .02em; }
html[data-theme="bizzy"] .dash-recent .table-wrap { overflow-x: auto; }
html[data-theme="bizzy"] .dash-recent td:first-child,
html[data-theme="bizzy"] .dash-recent td:last-child { white-space: nowrap; }

/* 墨青：800 以下 KPI 回两列，手机回一列，避免被压成竖条 */
@media (max-width: 849px) {
  html[data-theme="whale"] .dash-board > .today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="whale"] .dash-board .today-item:nth-child(n+5) { min-height: 64px; }
}
@media (max-width: 640px) {
  html[data-theme="whale"] .dash-board .today-item { min-height: 72px; }
}

/* 640 以下所有主题统一走横向图标导航；nav-classic 包装层不能继续块级排列 */
@media (max-width: 640px) {
  .nav-classic {
    display: flex; align-items: center;
    width: 100%; flex: 0 0 auto;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none;
  }
  .nav-classic::-webkit-scrollbar { display: none; }
  .nav-classic .nav-group {
    display: flex; align-items: center;
    width: auto; margin: 0; padding: 0; border: 0;
  }
  .nav-classic .nav-group-toggle { display: none; }
  .nav-classic .nav-group-items,
  .nav-classic .nav-group.is-collapsed .nav-group-items {
    display: flex; align-items: center;
    width: auto; margin: 0; padding: 0; border: 0;
  }
  .nav-classic .nav-item {
    width: auto; min-width: 46px;
    padding: 9px 10px; margin: 0;
  }
  html[data-theme="tigshop"] .sidebar { width: 100%; height: auto; }
  html[data-theme="tigshop"] .nav-classic .nav-group { display: flex; }
  html[data-theme="tigshop"] .nav-classic .nav-group .nav-group-items { display: flex; }
  html[data-theme="tigshop"] .nav-classic { display: flex; width: 100%; overflow-x: auto; }
  html[data-theme="whale"] .sidebar { width: 100%; height: auto; }
  html[data-theme="whale"] .nav-classic { height: auto; }
}

/* 侧栏折叠态的兼容：深蓝固定为图标轨宽度，橙光把搜索/账号退回顶栏 */
@media (min-width: 850px) {
  html[data-theme="tigshop"] .app-shell.side-collapsed .sidebar { width: var(--tig-rail-w); }
  html[data-theme="tigshop"] .app-shell.side-collapsed .topbar { margin-left: var(--tig-rail-w); }
  html[data-theme="tigshop"] .app-shell.side-collapsed .main { margin-left: calc(var(--tig-rail-w) + var(--tig-subnav-w)); }
  html[data-theme="bizzy"] .app-shell.side-collapsed .sidebar-search,
  html[data-theme="bizzy"] .app-shell.side-collapsed .sidebar-user { display: none; }
  html[data-theme="bizzy"] .app-shell.side-collapsed .topbar-tools .topbar-search { display: inline-flex; }
  html[data-theme="bizzy"] .app-shell.side-collapsed .topbar-right .user-wrap { display: flex; }
}

/* 墨青右栏偏窄：库存行改为两行文本 + 右侧按钮，避免名称/阈值被挤成竖排 */
html[data-theme="whale"] .dash-stock .queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
  padding: 10px 4px;
}
html[data-theme="whale"] .dash-stock .q-no {
  grid-column: 1; grid-row: 1; min-width: 0;
  font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html[data-theme="whale"] .dash-stock .q-meta {
  grid-column: 1; grid-row: 2; font-size: 10.5px; color: #78978F; white-space: nowrap;
}
html[data-theme="whale"] .dash-stock .q-meta b { font-size: 13px !important; }
html[data-theme="whale"] .dash-stock .queue-row .btn {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  padding: 5px 9px; font-size: 11px;
}
html[data-theme="whale"] .dash-top th,
html[data-theme="whale"] .dash-top td { padding: 7px 6px; font-size: 11.5px; }
html[data-theme="whale"] .dash-top th { font-size: 10px; }

/* ---------------- 2026-11-27 中控台 / 库存 / 标签通用组件 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.stat-grid.finance-stats, .stat-grid.control-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { padding: 15px 16px; }
.stat-label { color: var(--ink-mute); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.stat-value { margin: 6px 0 4px; font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 11px; }
.tag-chip { display: inline-flex; align-items: center; max-width: 100%; margin: 2px 3px 2px 0; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--tag-color, #2563eb) 30%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--tag-color, #2563eb) 10%, transparent); color: var(--tag-color, #2563eb); font-size: 11px; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn { border: 0; padding: 0 2px; background: none; color: var(--steel); font: inherit; text-decoration: underline; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.check input { width: 14px; height: 14px; }
.tag-choice { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 4px 0 10px; }
.control-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.control-section { margin: 0 0 22px; }
.control-section .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 10px; }
.control-section .section-head h3 { margin: 0 0 3px; font-size: 16px; }
.control-section .head-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.control-group { margin-bottom: 10px; }
.control-list { display: flex; flex-direction: column; }
.control-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 2px; border-top: 1px solid var(--rule); }
.control-row:first-child { border-top: 0; }
.control-row.is-off { opacity: .68; }
.control-title { font-size: 13px; font-weight: 650; }
.control-desc { margin-top: 2px; line-height: 1.45; }
.control-state, .control-action { white-space: nowrap; }
.control-filter { margin-bottom: 14px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.settings-grid .settings-note { grid-column: 1 / -1; }
.settings-readonly { display: flex; flex-direction: column; gap: 8px; }
.stock-in { color: #16845b; }
.stock-out { color: #b5532a; }
@media (max-width: 849px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid.finance-stats, .stat-grid.control-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .stat-grid, .stat-grid.finance-stats, .stat-grid.control-stats { grid-template-columns: minmax(0, 1fr); }
  .control-row { grid-template-columns: minmax(0, 1fr) auto; }
  .control-state { grid-column: 2; grid-row: 1; justify-self: end; }
  .control-action { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
