/* ===== 全局 ===== */
:root {
    --bg: #0f1923;
    --card-bg: linear-gradient(135deg, #152238 0%, #1a2d4a 100%);
    --card-border: #1e3a5f;
    --header-bg: linear-gradient(135deg, #0a1628 0%, #1a2c4e 100%);
    --primary: #4facfe;
    --primary-glow: rgba(79,172,254,.15);
    --danger: #e74c3c;
    --text: #e0e6ed;
    --text-muted: #7a8fa6;
    --text-dim: #5a7a9a;
    --text-bright: #c0d8f0;
    --divider: #1e3a5f;
    --radius: 12px;
    --sidebar-bg: linear-gradient(180deg, #060d19 0%, #0c1a2e 40%, #111d2e 100%);
    --sidebar-border: rgba(255,255,255,.06);
    --accent: #2563eb;
    --accent-secondary: #7c3aed;
    --nav-active-bg: linear-gradient(135deg, rgba(37,99,235,.2), rgba(124,58,237,.12));
    --nav-active-border: rgba(37,99,235,.25);
    --nav-active-dot: #3b82f6;
    --input-bg: #152238;
    --input-border: #2a4a6e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    /* 统一用灰度抗锯齿：避免默认 auto 在初次绘制(亚像素,偏重)与重绘/合成后(灰度,偏浅)之间跳变，
       表现为切换按钮等元素点击后字重突然变浅。深色主题下灰度渲染也更干净。 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== 首页布局 ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== 侧边栏（2026-10-26 改为悬浮抽屉：默认隐藏、内容全屏；鼠标贴到屏幕最左侧时由浅入深淡入） ===== */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0;
    overflow-y: auto;
    z-index: 800;   /* 2026-10-26 抽屉要压住各页 sticky 筛选栏(120)/弹层(300-400)，低于 modal(1000)/toast(9999) */
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .32s ease, transform .32s ease, box-shadow .32s ease, visibility 0s linear .32s;
    box-shadow: none;
}
body.sb-open .sidebar, .sidebar.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .32s ease, transform .32s ease, box-shadow .32s ease, visibility 0s;
    box-shadow: 12px 0 40px rgba(0,0,0,.28);
}
[data-theme="daylight"] body.sb-open .sidebar, [data-theme="daylight"] .sidebar.open { box-shadow: 12px 0 40px rgba(15,23,42,.12); }
[data-theme="festive"] body.sb-open .sidebar, [data-theme="festive"] .sidebar.open { box-shadow: 12px 0 40px rgba(120,15,25,.12); }
/* 左缘感应区 + 极细把手（提示这里有菜单） */
.sb-hot { position: fixed; left: 0; top: 0; bottom: 0; width: 12px; z-index: 799; }   /* 不用 100vh：sidebar.html 给 body 加 zoom 后 vh 会缩 */
.sb-hot::after { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 56px; margin-top: -28px; border-radius: 0 3px 3px 0; background: currentColor; opacity: .18; transition: opacity .2s; }
.sb-hot:hover::after, body.sb-open .sb-hot::after { opacity: 0; }
[data-theme="daylight"] .sb-hot, [data-theme="festive"] .sb-hot { color: #475569; }
.sb-hot { color: #cbd5e1; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* Logo */
.logo {
    padding: 22px 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--sidebar-border);
}
.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);  /* logo-mark shadow */
}
.logo-text { overflow: hidden; }
.logo-text h1 { font-size: 14px; color: #fff; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.logo-sub { font-size: 11px; color: var(--text-dim); font-weight: 400; }

/* Nav */
.sidebar nav { padding: 8px 0; flex: 1; }

/* 一级分组标题 */
.nav-section { margin-bottom: 4px; }
.nav-section-title {
    padding: 18px 20px 8px;
    font-size: 10px;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* 一级导航项 */
.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 2px 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
    border-radius: 8px;
    gap: 10px;
    cursor: pointer;
    position: relative;
}
.nav-item:hover { color: #e5e7eb; background: rgba(255,255,255,.04); }
.nav-item.active {
    color: #fff;
    background: var(--nav-active-bg);
    box-shadow: 0 0 0 1px var(--nav-active-border) inset;
}
.nav-item.active .nav-dot {
    background: var(--nav-active-dot);
    box-shadow: 0 0 8px rgba(59,130,246,.6);
}
.nav-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
    transition: all .3s;
}
.nav-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; opacity: .85; }
.nav-icon svg { width: 16px; height: 16px; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

/* 可展开项的箭头 */
.nav-arrow {
    margin-left: auto;
    font-size: 16px;
    color: rgba(255,255,255,.2);
    transition: transform .25s ease;
    font-weight: 300;
}
.nav-parent.open > .nav-item .nav-arrow { transform: rotate(90deg); color: rgba(255,255,255,.4); }
.nav-expandable { user-select: none; }

/* 二级子导航容器 */
.nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.nav-parent.open > .nav-children,
.nav-parent.open + .nav-children,
.nav-group.open > .nav-children { max-height: 1200px; }  /* 2026-10-23: 内容电商>抖音专项>达人分析 三层全开已 430px，400 会把最后一项(专场达人分析)裁掉 */

/* 二级导航项 */
.nav-child {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 42px;
    margin: 1px 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: all .2s;
    border-radius: 6px;
    gap: 8px;
}
.nav-child:hover { color: #e5e7eb; background: rgba(255,255,255,.03); }
.nav-child.active {
    color: var(--primary);
    background: rgba(79,172,254,.06);
}
.nav-child.active .child-dot { background: var(--primary); box-shadow: 0 0 6px rgba(79,172,254,.5); }
.child-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
    transition: all .3s;
}

/* 三级子导航 */
.nav-sub-parent { position: relative; }
.nav-sub-parent > .nav-child { cursor: pointer; }
.nav-sub-parent > .nav-child .sub-arrow {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255,255,255,.2);
    transition: transform .25s ease;
}
.nav-sub-parent.open > .nav-child .sub-arrow { transform: rotate(90deg); color: rgba(255,255,255,.4); }
.nav-sub-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.nav-sub-parent.open > .nav-sub-children { max-height: 300px; }
.nav-grandchild {
    display: flex;
    align-items: center;
    padding: 7px 16px 7px 58px;
    margin: 1px 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: all .2s;
    border-radius: 6px;
    gap: 6px;
}
.nav-grandchild:hover { color: #e5e7eb; background: rgba(255,255,255,.03); }
.nav-grandchild.active { color: var(--primary); background: rgba(79,172,254,.06); }
.nav-grandchild.active .gc-dot { background: var(--primary); box-shadow: 0 0 4px rgba(79,172,254,.4); }
.gc-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

/* 底部用户信息 */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-label {
    font-size: 12px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.avatar-letter {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.avatar-detail {
    display: flex; flex-direction: column; flex: 1; min-width: 0;
}
.avatar-name {
    font-size: 13px; color: #e5e7eb; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.avatar-role {
    font-size: 10px; color: var(--text-dim); margin-top: 2px;
    display: block;
}
.logout-link {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    transition: all .2s;
}
.logout-link:hover { color: #e74c3c; border-color: rgba(231,76,60,.3); background: rgba(231,76,60,.06); }
[data-theme="daylight"] .avatar-name { color: #1f2937; }
[data-theme="daylight"] .logout-link { border-color: #d1d5db; color: #6b7280; }
.user-badge { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.user-info { overflow: hidden; }
.user-name { display: block; font-size: 12px; color: #e5e7eb; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 10px; color: var(--text-dim); margin-top: 1px; }
.logout-btn {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    transition: all .2s;
}
.logout-btn:hover { color: #e74c3c; border-color: rgba(231,76,60,.3); background: rgba(231,76,60,.06); }

/* ===== 主内容 ===== */
.main-content {
    margin-left: 0;   /* 2026-10-26 侧栏改悬浮抽屉，内容铺满 */
    flex: 1;
    padding: 32px 40px;
    min-width: 0;
}

/* ===== 页面头部（动态背景） ===== */
.page-header { margin-bottom: 24px; position: relative; overflow: hidden; border-radius: 16px; padding: 28px 30px; background: linear-gradient(135deg, #1e3a5f, #1a2744); }
.page-header canvas.header-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.page-header h2 { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 1px; position: relative; z-index: 1; }
.page-header .subtitle { position: relative; z-index: 1; }
.subtitle { color: var(--text-muted); margin-top: 4px; font-size: 13px; }
.page-header .subtitle { color: rgba(255,255,255,.7); }

/* ===== 上传区 ===== */
.upload-section { margin-bottom: 32px; }
.upload-area {
    border: 2px dashed var(--card-border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    background: var(--card-bg);
    cursor: pointer;
    transition: all .3s;
}
.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: var(--primary-glow);
}
.upload-icon { font-size: 40px; color: var(--primary); margin-bottom: 12px; }
.upload-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.upload-hint { color: var(--text-muted); margin-bottom: 16px; font-size: 13px; }

.upload-progress {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}
.progress-bar { height: 6px; background: #1e3a5f; border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #00f2fe);
    border-radius: 3px;
    transition: width .3s;
}
.progress-text { color: var(--text-muted); font-size: 13px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
}
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ===== 报告卡片 ===== */
.reports-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.report-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
}
.report-card:hover { border-color: var(--primary); box-shadow: 0 0 20px rgba(79,172,254,.1); }

.report-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 8px;
}
.report-icon { font-size: 28px; }
.report-card-header h4 { font-size: 14px; font-weight: 600; word-break: break-all; color: #fff; }

.report-card-body { padding: 4px 20px 12px; }
.report-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.brand-tag {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
}
.report-date { font-size: 12px; }

.report-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

/* ===== 仪表盘：KPI 卡片 ===== */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
}
.kpi-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.kpi-value {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.kpi-sub { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* ===== 仪表盘：控制栏 ===== */
.controls {
    padding: 14px 20px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.controls label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.controls .divider { width: 1px; height: 24px; background: var(--card-border); }

.btn-group { display: flex; gap: 0; }
.btn-group button {
    padding: 6px 14px;
    font-size: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
}
.btn-group button:first-child { border-radius: 6px 0 0 6px; }
.btn-group button:last-child { border-radius: 0 6px 6px 0; }
.btn-group button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-group button:hover:not(.active) { background: #1e3a5f; color: var(--text-bright); }

.brand-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.brand-btn {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
    font-weight: 500;
}
.brand-btn.active { color: #fff !important; }
.brand-btn:not(.active) { opacity: 0.35; background: transparent !important; }

.date-inputs { display: flex; gap: 6px; align-items: center; }
.date-inputs input {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-bright);
    border-radius: 6px;
}
.date-inputs span { color: var(--text-dim); font-size: 12px; }

/* ===== 仪表盘：图表区域 ===== */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.chart-full { grid-column: 1 / -1; }

.chart-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
}
.chart-box h3 {
    font-size: 15px;
    color: var(--text-bright);
    margin-bottom: 16px;
    font-weight: 500;
}
.chart-box h3 .tag {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.chart { width: 100%; height: 400px; }
.chart-tall { height: 500px; }
.chart-short { height: 350px; }

.inner-controls { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }

.tab-bar { display: flex; gap: 0; margin-bottom: 12px; }
.tab-bar button {
    padding: 6px 18px;
    font-size: 12px;
    border: 1px solid #2a4a6e;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
}
.tab-bar button:first-child { border-radius: 6px 0 0 6px; }
.tab-bar button:last-child { border-radius: 0 6px 6px 0; }
.tab-bar button.active { background: var(--primary-glow); color: var(--primary); border-color: var(--primary); }
.tab-bar button:hover:not(.active) { background: #1e3a5f; color: var(--text-bright); }

/* ===== 仪表盘：段落标题 ===== */
.section-title-bar {
    padding: 20px 0 12px;
    font-size: 18px;
    color: var(--primary);
    border-top: 1px solid var(--card-border);
    margin-top: 16px;
    margin-bottom: 20px;
}
.section-title-bar span { font-size: 12px; color: var(--text-dim); margin-left: 10px; font-weight: 400; }

/* ===== 表格 ===== */
.table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 16px;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    background: rgba(255,255,255,.03);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-muted);
    white-space: nowrap;
}
.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: var(--text-bright);
}
.data-table tbody tr:hover { background: rgba(79,172,254,.05); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.muted { color: var(--text-muted); }

/* ===== 页脚 ===== */
footer { text-align: center; padding: 30px; color: var(--text-dim); font-size: 12px; }

/* ===== 主题选择器 ===== */
.theme-picker { padding: 10px 16px; border-top: 1px solid var(--sidebar-border); display: flex; align-items: center; gap: 10px; }
.theme-picker-label { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.theme-dots { display: flex; gap: 6px; }
.theme-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; background: var(--dot-color); cursor: pointer; transition: all .2s; padding: 0; outline: none; }
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: rgba(255,255,255,.8); box-shadow: 0 0 8px var(--dot-color); }

[data-theme="obsidian"] .page-header { background: linear-gradient(135deg, #1a1a2e, #16213e); }
[data-theme="silver"] .page-header { background: linear-gradient(135deg, #374151, #4b5563); }
[data-theme="festive"] .page-header {
    background: linear-gradient(135deg, #8b0010 0%, #c8161d 48%, #fdd835 100%);
    box-shadow: 0 12px 30px rgba(139,0,16,.28);
}

/* ===== Theme: Festive (大促红) — 白底红金 ===== */
[data-theme="festive"] {
    --bg: #fff5ec;
    --card-bg: linear-gradient(135deg, #ffffff 0%, #fffaf2 100%);
    --card-border: #f0d4be;
    --header-bg: linear-gradient(135deg, #ffffff 0%, #fef0e0 100%);
    --primary: #c8161d;
    --primary-glow: rgba(200,22,29,.08);
    --text: #3a1a14;
    --text-muted: #6e3a2a;
    --text-dim: #9a7060;
    --text-bright: #1f0a08;
    --divider: #f0d4be;
    --sidebar-bg: linear-gradient(180deg, #fff8f0 0%, #fef0e0 40%, #fce4cc 100%);
    --sidebar-border: rgba(200,22,29,.10);
    --accent: #c8161d;
    --accent-secondary: #fdd835;
    --nav-active-bg: linear-gradient(135deg, rgba(200,22,29,.10), rgba(253,216,53,.08));
    --nav-active-border: rgba(200,22,29,.28);
    --nav-active-dot: #c8161d;
    --input-bg: #ffffff;
    --input-border: #f0c8a8;
    --danger: #c8161d;
}
[data-theme="festive"] body {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(253,216,53,.18), transparent 70%),
        radial-gradient(ellipse 50% 40% at 5% 100%, rgba(248,113,113,.14), transparent 70%),
        radial-gradient(ellipse 50% 40% at 95% 100%, rgba(253,216,53,.12), transparent 70%),
        linear-gradient(180deg, #fff5ec 0%, #fde9d4 100%);
    background-attachment: fixed;
}
[data-theme="festive"] .logo-mark { box-shadow: 0 4px 14px rgba(200,22,29,.35); }
[data-theme="festive"] .logo-text h1 { color: #8b0010; }
[data-theme="festive"] .logo-sub { color: #9a7060; }
[data-theme="festive"] .page-header h2 { color: #fff !important; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
[data-theme="festive"] .reports-section h3,
[data-theme="festive"] .report-card-header h4,
[data-theme="festive"] .upload-title { color: #3a1a14; }
[data-theme="festive"] .chart-box h3 { color: #3a1a14; }
[data-theme="festive"] .nav-section-title { color: rgba(139,0,16,.45); }
[data-theme="festive"] .nav-item { color: #6e3a2a; }
[data-theme="festive"] .nav-item:hover { color: #1f0a08; background: rgba(200,22,29,.06); }
[data-theme="festive"] .nav-item.active { color: #8b0010; }
[data-theme="festive"] .nav-child { color: #8a4a3a; }
[data-theme="festive"] .nav-child:hover { color: #1f0a08; background: rgba(200,22,29,.04); }
[data-theme="festive"] .nav-child.active { color: var(--primary); }
[data-theme="festive"] .nav-grandchild { color: #9a7060; }
[data-theme="festive"] .nav-grandchild:hover { color: #1f0a08; background: rgba(200,22,29,.04); }
[data-theme="festive"] .nav-grandchild.active { color: var(--primary); }
[data-theme="festive"] .gc-dot { background: rgba(139,0,16,.15); }
[data-theme="festive"] .nav-sub-parent > .nav-child .sub-arrow { color: rgba(139,0,16,.25); }
[data-theme="festive"] .nav-sub-parent.open > .nav-child .sub-arrow { color: rgba(139,0,16,.5); }
[data-theme="festive"] .nav-dot { background: rgba(139,0,16,.15); }
[data-theme="festive"] .nav-arrow { color: rgba(139,0,16,.25); }
[data-theme="festive"] .user-name,
[data-theme="festive"] .avatar-name { color: #3a1a14; }
[data-theme="festive"] .user-role { color: #9a7060; }
[data-theme="festive"] .logout-btn,
[data-theme="festive"] .logout-link { color: #9a7060; border-color: rgba(139,0,16,.15); }
[data-theme="festive"] .logout-btn:hover,
[data-theme="festive"] .logout-link:hover { color: #c8161d; border-color: rgba(200,22,29,.30); background: rgba(200,22,29,.04); }
[data-theme="festive"] .data-table th { background: #fef0e0; color: #3a1a14; border-bottom: 2px solid #f0d4be; }
[data-theme="festive"] .data-table td { color: #3a1a14; border-bottom-color: #f0d4be; }
[data-theme="festive"] .data-table tbody tr:hover { background: rgba(200,22,29,.04); }
[data-theme="festive"] .theme-picker-label { color: rgba(139,0,16,.40); }
[data-theme="festive"] .theme-dot.active { border-color: #c8161d; box-shadow: 0 0 10px rgba(200,22,29,.45); }
[data-theme="festive"] .kpi-value { background: linear-gradient(135deg, #c8161d, #fdd835); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="festive"] .brand-tag { background: rgba(200,22,29,.08); color: #c8161d; }
[data-theme="festive"] .section-title-bar { color: var(--primary); border-top-color: #f0d4be; }
[data-theme="festive"] .chart-card { background: #fff !important; border-color: #f0d4be !important; box-shadow: 0 1px 4px rgba(120,15,25,.06) !important; }
[data-theme="festive"] .chart-card h3 { color: #3a1a14 !important; }
[data-theme="festive"] .chart-card h3 .tag { color: #9a7060 !important; background: rgba(120,15,25,.05) !important; }
[data-theme="festive"] .kpi-card { background: #fff !important; border-color: #f0d4be !important; box-shadow: 0 1px 4px rgba(120,15,25,.06) !important; }
[data-theme="festive"] .kpi-label { color: #6e3a2a !important; }
[data-theme="festive"] .kpi-sub { color: #9a7060 !important; }
[data-theme="festive"] .btn-group button { background: #fff; color: #6e3a2a; border-color: #f0d4be; }
[data-theme="festive"] .btn-group button:hover:not(.active) { background: #fef5ec; color: #3a1a14; }
[data-theme="festive"] .btn-group button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="festive"] .tab-bar button { border-color: #f0d4be; color: #6e3a2a; background: #fff; }
[data-theme="festive"] .tab-bar button:hover:not(.active) { background: #fef5ec; color: #3a1a14; }
[data-theme="festive"] .tab-bar button.active { background: var(--primary-glow); color: var(--primary); border-color: var(--primary); }
[data-theme="festive"] .progress-bar { background: #f4dcc4; }
[data-theme="festive"] footer { color: #9a7060; }
[data-theme="festive"] .detail-table th,
[data-theme="festive"] .week-table th { background: #fef0e0 !important; color: #3a1a14 !important; border-bottom: 2px solid #f0d4be !important; font-weight: 700 !important; }
[data-theme="festive"] .detail-table td,
[data-theme="festive"] .week-table td { color: #3a1a14 !important; border-bottom-color: #f0d4be !important; }
[data-theme="festive"] .detail-table tr:hover td,
[data-theme="festive"] .week-table tr:hover td { background: rgba(200,22,29,.04) !important; }
[data-theme="festive"] .tab-btn { border-color: #f0d4be !important; color: #6e3a2a !important; background: #fff !important; }
[data-theme="festive"] .tab-btn:hover { border-color: #c8161d !important; color: #3a1a14 !important; }
[data-theme="festive"] .tab-btn.active { background: #c8161d !important; color: #fff !important; border-color: #c8161d !important; }
[data-theme="festive"] .acct-chip { border-color: rgba(139,0,16,.12) !important; color: #6e3a2a !important; }
[data-theme="festive"] .acct-chip.on { color: #fff !important; }
[data-theme="festive"] .acct-expand-btn { border-color: rgba(200,22,29,.25) !important; color: #c8161d !important; }
[data-theme="festive"] .quick-btn { border-color: rgba(139,0,16,.12) !important; color: #6e3a2a !important; background: #fff !important; }
[data-theme="festive"] .quick-btn:hover,
[data-theme="festive"] .quick-btn.active { background: #c8161d !important; color: #fff !important; border-color: #c8161d !important; }

/* ───── 大促 618 页（p6-*）：白底红金亮色版 ───── */
[data-theme="festive"]{
    --p6-accent:#c8161d;
    --p6-accent-soft:rgba(200,22,29,.08);
    --p6-accent-line:rgba(200,22,29,.25);
    --p6-rose:#e8232a;
    --p6-rose-soft:rgba(232,35,42,.08);
    --p6-cool:#0ea5e9;
    --p6-cool-soft:rgba(14,165,233,.08);
    --p6-green:#10b981;
    --p6-surface:linear-gradient(180deg,#ffffff,#fffaf2);
    --p6-surface-soft:#fff5ec;
    --p6-line:#f0d4be;
}
[data-theme="festive"] .p6-tabs{border-bottom-color:var(--p6-line)}
[data-theme="festive"] .p6-tab{color:#6e3a2a}
[data-theme="festive"] .p6-tab:hover{color:#3a1a14}
[data-theme="festive"] .p6-tab.active{color:var(--p6-accent)!important;border-bottom-color:var(--p6-accent)!important}
[data-theme="festive"] #fc-filter-toggle:hover,
[data-theme="festive"] #fc-filter-toggle.active{background:var(--p6-accent-soft)!important;color:var(--p6-accent)!important;border-color:var(--p6-accent-line)!important}
[data-theme="festive"] .p6-panel{background:var(--p6-surface)!important;border-color:var(--p6-line)!important;box-shadow:0 4px 18px rgba(120,15,25,.06)!important}
[data-theme="festive"] .p6-panel-title{color:#3a1a14!important}
[data-theme="festive"] .p6-panel-title .dot{box-shadow:0 0 0 4px rgba(200,22,29,.06)}
[data-theme="festive"] .p6-panel-title .dot[style*="#60a5fa"]{background:var(--p6-cool)!important}
[data-theme="festive"] .p6-panel-title .dot[style*="#fbbf24"]{background:#f59e0b!important}
[data-theme="festive"] .p6-panel-title .dot[style*="#f87171"]{background:var(--p6-rose)!important}
[data-theme="festive"] .p6-panel-title .dot[style*="#a78bfa"]{background:#7c3aed!important}
[data-theme="festive"] .p6-panel-title .dot[style*="#f472b6"]{background:#ec4899!important}
[data-theme="festive"] .p6-kpi,
[data-theme="festive"] .kw-summary-card{background:linear-gradient(180deg,#fff,#fff5ec)!important;border-color:var(--p6-line)!important;box-shadow:0 2px 8px rgba(120,15,25,.05)!important}
[data-theme="festive"] .p6-kpi .val,
[data-theme="festive"] .kw-summary-card .val{color:#3a1a14!important}
[data-theme="festive"] .p6-kpi .lbl,
[data-theme="festive"] .kw-summary-card .lbl{color:#6e3a2a!important}
[data-theme="festive"] .p6-kpi .yoy.up,
[data-theme="festive"] .p6-tbl .positive{color:var(--p6-green)!important}
[data-theme="festive"] .p6-kpi .yoy.down,
[data-theme="festive"] .p6-tbl .negative{color:var(--p6-accent)!important}
[data-theme="festive"] .p6-tbl th{background:#fef0e0!important;color:#3a1a14!important;border-bottom-color:var(--p6-line)!important;font-weight:700}
[data-theme="festive"] .p6-tbl td{color:#3a1a14!important;border-bottom-color:#f7e6d4!important}
[data-theme="festive"] .p6-tbl tr:hover td{background:rgba(200,22,29,.04)!important}
[data-theme="festive"] .p6-tbl .total-row td{border-top-color:var(--p6-accent-line)!important;background:rgba(200,22,29,.04)!important}
[data-theme="festive"] .p6-tbl th[style*="border-left"],
[data-theme="festive"] .p6-tbl td[style*="border-left"]{border-left-color:var(--p6-line)!important}
[data-theme="festive"] .p6-toggle,
[data-theme="festive"] .p6-metric-btn,
[data-theme="festive"] .kw-pager-nav button{border-color:var(--p6-line)!important;color:#6e3a2a!important;background:#fff!important}
[data-theme="festive"] .p6-toggle:hover,
[data-theme="festive"] .p6-metric-btn:hover,
[data-theme="festive"] .kw-pager-nav button:hover:not(:disabled){background:#fef5ec!important;color:#3a1a14!important;border-color:var(--p6-accent-line)!important}
[data-theme="festive"] .p6-toggle.active,
[data-theme="festive"] .p6-metric-btn.active{background:var(--p6-accent-soft)!important;color:var(--p6-accent)!important;border-color:var(--p6-accent-line)!important}
[data-theme="festive"] .p6-progress-bar,
[data-theme="festive"] .p6-rate-bar,
[data-theme="festive"] .p6-gap-bar .bar-track{background:#e8c4a8!important;border:1px solid rgba(120,15,25,.10)}
[data-theme="festive"] .p6-progress-fill{background:linear-gradient(90deg,var(--p6-rose),#fdd835)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
[data-theme="festive"] .p6-progress-info{color:#6e3a2a!important}
[data-theme="festive"] .p6-rate-fill,
[data-theme="daylight"] .p6-rate-fill { min-width:4px }
[data-theme="festive"] .p6-rate-fill{background:var(--p6-cool)}
[data-theme="festive"] .p6-rate-fill.over{background:var(--p6-green)}
[data-theme="festive"] .p6-rate-fill.low{background:var(--p6-accent)}
/* 通用修复：fill 必须 display:block 才能让 width 生效（默认 span 是 inline，width 被忽略 → 永远 0 宽）；
   再给一个最小可见宽度，避免低完成率（1-3%）像素级看不到 */
.p6-rate-fill { display: block !important; min-width: 4px; }
[data-theme="festive"] .p6-gap-bar .bar-fill.blue{background:linear-gradient(90deg,#0284c7,var(--p6-cool))}
[data-theme="festive"] .p6-gap-bar .bar-fill.red{background:linear-gradient(90deg,#c8161d,#e8232a)}
[data-theme="festive"] .p6-gap-bar .bar-fill.green{background:linear-gradient(90deg,#059669,var(--p6-green))}
[data-theme="festive"] .p6-filter-bar{background:linear-gradient(180deg,#fff,#fff5ec)!important;border-bottom-color:var(--p6-line)!important;box-shadow:0 2px 10px rgba(120,15,25,.04)}
[data-theme="festive"] .p6-filter-label{color:#6e3a2a!important}
[data-theme="festive"] .p6-pill-group{background:#fef5ec!important;border-color:var(--p6-line)!important}
[data-theme="festive"] .p6-pill{color:#6e3a2a!important}
[data-theme="festive"] .p6-pill:hover{background:#fef0e0!important;color:#3a1a14!important}
[data-theme="festive"] .p6-pill.active{background:linear-gradient(135deg,var(--p6-rose),var(--p6-accent))!important;color:#fff!important;box-shadow:0 4px 12px rgba(200,22,29,.30)}
[data-theme="festive"] .p6-date-input,
[data-theme="festive"] .p6-select{background:#fff!important;border-color:var(--p6-line)!important;color:#3a1a14!important;color-scheme:light}
[data-theme="festive"] .p6-select option{background:#fff;color:#3a1a14}
[data-theme="festive"] .p6-rank-item{background:#fff!important;border-color:var(--p6-line)!important;box-shadow:0 1px 4px rgba(120,15,25,.05)}
[data-theme="festive"] .p6-rank-item.is-kd{background:linear-gradient(135deg,rgba(14,165,233,.08),rgba(253,216,53,.06))!important;border-color:rgba(14,165,233,.30)!important}
[data-theme="festive"] .p6-rank-name{color:#3a1a14!important}
[data-theme="festive"] .p6-rank-val{color:#6e3a2a!important}
[data-theme="festive"] .p6-rank-badge.gold{background:linear-gradient(135deg,#fdd835,#c89200)!important;color:#3a1a14!important}
[data-theme="festive"] .p6-rank-badge.bronze{background:linear-gradient(135deg,#c7855f,#9f6b4a)!important;color:#fff!important}
[data-theme="festive"] .p6-rank-badge.normal{background:#f7e6d4!important;color:#6e3a2a!important}
[data-theme="festive"] .kw-focus-card{background:linear-gradient(180deg,rgba(14,165,233,.06),rgba(253,216,53,.05))!important;border-color:rgba(14,165,233,.30)!important}
[data-theme="festive"] .kw-focus-card .val{color:var(--p6-cool)!important}
[data-theme="festive"] .kw-focus-card .lbl,
[data-theme="festive"] .kw-pager-info{color:#6e3a2a!important}
[data-theme="festive"] .kw-trend-col,
[data-theme="festive"] .kw-pct-bar{background:var(--p6-cool)}
[data-theme="festive"] .kw-trend-col:hover{background:#0284c7}
[data-theme="festive"] .kw-trend-col .tip{background:#fff!important;color:#3a1a14!important;border:1px solid var(--p6-line)!important;box-shadow:0 4px 12px rgba(120,15,25,.10)}
[data-theme="festive"] .kw-highlight{background:rgba(253,216,53,.18)!important}
[data-theme="festive"] .kw-highlight td{color:var(--p6-accent)!important;font-weight:700}
/* 618 大促进度面板：加深小字与百分比对比 */
[data-theme="festive"] .p6-progress-info span{color:#3a1a14!important;font-weight:600}
[data-theme="festive"] .p6-kpi .val{color:#1f0a08!important;font-weight:900}
[data-theme="festive"] .p6-kpi .lbl{color:#3a1a14!important;font-weight:700}
[data-theme="festive"] .p6-kpi > div[style*="font-size:10px"]{color:#6e3a2a!important;font-weight:600;font-size:11px!important}
[data-theme="festive"] .p6-kpi b[style*="#fbbf24"]{color:#c8161d!important}
[data-theme="festive"] .p6-kpi b[style*="#60a5fa"]{color:#0284c7!important}

/* ===== Theme: Obsidian (曜石黑) ===== */
[data-theme="obsidian"] {
    --bg: #101010;
    --card-bg: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    --card-border: #333333;
    --header-bg: linear-gradient(135deg, #141414 0%, #222222 100%);
    --primary: #a78bfa;
    --primary-glow: rgba(167,139,250,.15);
    --text: #e5e5e5;
    --text-muted: #8a8a8a;
    --text-dim: #666666;
    --text-bright: #cccccc;
    --divider: #333333;
    --sidebar-bg: linear-gradient(180deg, #0a0a0a 0%, #141414 40%, #1a1a1a 100%);
    --sidebar-border: rgba(255,255,255,.06);
    --accent: #7c3aed;
    --accent-secondary: #a78bfa;
    --nav-active-bg: linear-gradient(135deg, rgba(124,58,237,.2), rgba(167,139,250,.12));
    --nav-active-border: rgba(124,58,237,.25);
    --nav-active-dot: #a78bfa;
    --input-bg: #1a1a1a;
    --input-border: #3a3a3a;
    --danger: #ef4444;
}

/* ===== Theme: Slate (银石灰) ===== */
[data-theme="slate"] {
    --bg: #1a1c23;
    --card-bg: linear-gradient(135deg, #22252e 0%, #282b36 100%);
    --card-border: #3a3d4a;
    --header-bg: linear-gradient(135deg, #1a1c23 0%, #22252e 100%);
    --primary: #60a5fa;
    --primary-glow: rgba(96,165,250,.15);
    --text: #e2e4ea;
    --text-muted: #8a8e9a;
    --text-dim: #6a6e7a;
    --text-bright: #c0c4d0;
    --divider: #3a3d4a;
    --sidebar-bg: linear-gradient(180deg, #14161c 0%, #1a1c23 40%, #22252e 100%);
    --sidebar-border: rgba(255,255,255,.06);
    --accent: #2563eb;
    --accent-secondary: #60a5fa;
    --nav-active-bg: linear-gradient(135deg, rgba(37,99,235,.2), rgba(96,165,250,.12));
    --nav-active-border: rgba(37,99,235,.25);
    --nav-active-dot: #60a5fa;
    --input-bg: #22252e;
    --input-border: #3a3d4a;
    --danger: #ef4444;
}

/* ===== Theme: Daylight (晨光白) ===== */
[data-theme="daylight"] {
    --bg: #f4f6fb;
    --card-bg: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    --card-border: #e5e7eb;
    --header-bg: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    --primary: #2563eb;
    --primary-glow: rgba(37,99,235,.08);
    --text: #111827;
    --text-muted: #374151;
    --text-dim: #6b7280;
    --text-bright: #1f2937;
    --divider: #d1d5db;
    --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f9fafb 40%, #f3f4f6 100%);
    --sidebar-border: rgba(0,0,0,.06);
    --accent: #2563eb;
    --accent-secondary: #6366f1;
    --nav-active-bg: linear-gradient(135deg, rgba(37,99,235,.08), rgba(99,102,241,.05));
    --nav-active-border: rgba(37,99,235,.12);
    --nav-active-dot: #2563eb;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --danger: #dc2626;
}
/* Daylight overrides for elements using hardcoded colors */
[data-theme="daylight"] .logo-text h1 { color: #1f2937; }
[data-theme="daylight"] .page-header { background: linear-gradient(135deg, #1e40af, #4f46e5); }
[data-theme="daylight"] .page-header h2 { color: #fff !important; }
[data-theme="daylight"] .reports-section h3 { color: #1f2937; }
[data-theme="daylight"] .report-card-header h4 { color: #1f2937; }
[data-theme="daylight"] .upload-title { color: #1f2937; }
[data-theme="daylight"] .chart-box h3 { color: #374151; }
[data-theme="daylight"] .nav-section-title { color: rgba(0,0,0,.4); }
[data-theme="daylight"] .nav-item { color: #374151; }
[data-theme="daylight"] .nav-item:hover { color: #111827; background: rgba(0,0,0,.05); }
[data-theme="daylight"] .nav-item.active { color: #111827; }
[data-theme="daylight"] .nav-child { color: #6b7280; }
[data-theme="daylight"] .nav-child:hover { color: #1f2937; background: rgba(0,0,0,.04); }
[data-theme="daylight"] .nav-child.active { color: var(--primary); }
[data-theme="daylight"] .nav-grandchild { color: #9ca3af; }
[data-theme="daylight"] .nav-grandchild:hover { color: #1f2937; background: rgba(0,0,0,.04); }
[data-theme="daylight"] .nav-grandchild.active { color: var(--primary); }
[data-theme="daylight"] .gc-dot { background: rgba(0,0,0,.1); }
[data-theme="daylight"] .nav-sub-parent > .nav-child .sub-arrow { color: rgba(0,0,0,.2); }
[data-theme="daylight"] .nav-sub-parent.open > .nav-child .sub-arrow { color: rgba(0,0,0,.4); }
[data-theme="daylight"] .nav-dot { background: rgba(0,0,0,.12); }
[data-theme="daylight"] .nav-arrow { color: rgba(0,0,0,.2); }
[data-theme="daylight"] .user-name { color: #1f2937; }
[data-theme="daylight"] .user-role { color: #9ca3af; }
[data-theme="daylight"] .logo-sub { color: #9ca3af; }
[data-theme="daylight"] .logout-btn { color: #9ca3af; border-color: rgba(0,0,0,.1); }
[data-theme="daylight"] .logout-btn:hover { color: #dc2626; border-color: rgba(220,38,38,.3); background: rgba(220,38,38,.04); }
[data-theme="daylight"] .data-table th { background: #f3f4f6; color: #374151; border-bottom: 2px solid #d1d5db; }
[data-theme="daylight"] .data-table td { color: #1f2937; border-bottom-color: #e5e7eb; }
[data-theme="daylight"] .data-table tbody tr:hover { background: rgba(37,99,235,.03); }
[data-theme="daylight"] .theme-dot.active { border-color: rgba(0,0,0,.5); }
[data-theme="daylight"] .theme-picker-label { color: rgba(0,0,0,.35); }
[data-theme="daylight"] .btn-group button { background: #fff; color: #6b7280; border-color: #d1d5db; }
[data-theme="daylight"] .btn-group button:hover:not(.active) { background: #f3f4f6; color: #374151; }
[data-theme="daylight"] .btn-group button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="daylight"] .tab-bar button { border-color: #d1d5db; color: #6b7280; background: #fff; }
[data-theme="daylight"] .tab-bar button:hover:not(.active) { background: #f3f4f6; color: #374151; }
[data-theme="daylight"] .tab-bar button.active { background: var(--primary-glow); color: var(--primary); border-color: var(--primary); }
[data-theme="daylight"] .kpi-value { background: linear-gradient(135deg, #2563eb, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="daylight"] .progress-bar { background: #e5e7eb; }
[data-theme="daylight"] .brand-tag { background: rgba(37,99,235,.08); color: #2563eb; }
[data-theme="daylight"] .section-title-bar { color: var(--primary); border-top-color: #e5e7eb; }
[data-theme="daylight"] .chart-card { border-color: #d1d5db; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
[data-theme="daylight"] footer { color: #6b7280; }
/* Daylight: override inline template colors */
[data-theme="daylight"] .kpi-card { background: #fff !important; border-color: #d1d5db !important; box-shadow: 0 1px 4px rgba(0,0,0,.06) !important; }
[data-theme="daylight"] .kpi-label { color: #374151 !important; }
[data-theme="daylight"] .kpi-sub { color: #6b7280 !important; }
[data-theme="daylight"] .chart-card { background: #fff !important; border-color: #d1d5db !important; box-shadow: 0 1px 4px rgba(0,0,0,.06) !important; }
[data-theme="daylight"] .chart-card h3 { color: #111827 !important; }
[data-theme="daylight"] .chart-card h3 .tag { color: #9ca3af !important; background: rgba(0,0,0,.05) !important; }
[data-theme="daylight"] .detail-table th,
[data-theme="daylight"] .week-table th { background: #f3f4f6 !important; color: #1f2937 !important; border-bottom: 2px solid #d1d5db !important; font-weight: 700 !important; }
[data-theme="daylight"] .detail-table td,
[data-theme="daylight"] .week-table td { color: #1f2937 !important; border-bottom-color: #e5e7eb !important; }
[data-theme="daylight"] .detail-table tr:hover td,
[data-theme="daylight"] .week-table tr:hover td { background: rgba(37,99,235,.03) !important; }
[data-theme="daylight"] .tab-btn { border-color: #d1d5db !important; color: #6b7280 !important; background: #fff !important; }
[data-theme="daylight"] .tab-btn:hover { border-color: #2563eb !important; color: #374151 !important; }
[data-theme="daylight"] .tab-btn.active { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
[data-theme="daylight"] .acct-chip { border-color: rgba(0,0,0,.1) !important; color: #6b7280 !important; }
[data-theme="daylight"] .acct-chip.on { color: #fff !important; }
[data-theme="daylight"] .acct-expand-btn { border-color: rgba(37,99,235,.2) !important; color: #2563eb !important; }
[data-theme="daylight"] .quick-btn { border-color: rgba(0,0,0,.1) !important; color: #6b7280 !important; background: #fff !important; }
[data-theme="daylight"] .quick-btn:hover,
[data-theme="daylight"] .quick-btn.active { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
[data-theme="daylight"] .date-filter input[type="date"] { background: #fff !important; border-color: #d1d5db !important; color: #1f2937 !important; }
[data-theme="daylight"] .date-filter label { color: #6b7280 !important; }
[data-theme="daylight"] .sticky-filter { background: #f4f6fb !important; border-bottom-color: rgba(0,0,0,.06) !important; }
[data-theme="daylight"] .sticky-filter.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08) !important; }
[data-theme="daylight"] .filter-divider { background: rgba(0,0,0,.1) !important; }
[data-theme="daylight"] .section-bar { color: #1f2937 !important; border-left-color: #2563eb !important; }
[data-theme="daylight"] .collapsible-header { background: #fff !important; border-color: #e5e7eb !important; }
[data-theme="daylight"] .collapsible-header:hover { background: #f9fafb !important; border-color: rgba(37,99,235,.2) !important; }
[data-theme="daylight"] .collapsible-header h3 { color: #1f2937 !important; }
[data-theme="daylight"] .collapsible-toggle { border-color: rgba(0,0,0,.1) !important; color: #9ca3af !important; }
[data-theme="daylight"] .acct-panel { background: #fff !important; border-color: #e5e7eb !important; }
[data-theme="daylight"] .acct-panel-header { border-bottom-color: #e5e7eb !important; }
[data-theme="daylight"] .acct-panel-header h4 { color: #1f2937 !important; }
[data-theme="daylight"] .acct-search { background: #f9fafb !important; border-color: #d1d5db !important; color: #1f2937 !important; }
[data-theme="daylight"] .acct-panel-actions button { border-color: rgba(0,0,0,.1) !important; color: #6b7280 !important; }
[data-theme="daylight"] .acct-panel-item { color: #374151 !important; }
[data-theme="daylight"] .acct-panel-item.on { border-color: rgba(37,99,235,.2) !important; background: rgba(37,99,235,.04) !important; }
[data-theme="daylight"] .acct-panel-item .acct-name { color: #374151 !important; }
[data-theme="daylight"] .acct-panel-item .acct-gmv { color: #9ca3af !important; }
[data-theme="daylight"] .acct-panel-footer { border-top-color: #e5e7eb !important; }
[data-theme="daylight"] .acct-panel-footer .acct-selected-count { color: #6b7280 !important; }
[data-theme="daylight"] .pk-val.win { color: #059669 !important; }
[data-theme="daylight"] .pk-val.lose { color: #9ca3af !important; }
[data-theme="daylight"] .pk-metric { color: #6b7280 !important; }
[data-theme="daylight"] select { background: #fff !important; border-color: #d1d5db !important; color: #1f2937 !important; }
[data-theme="daylight"] .subtitle { color: #4b5563 !important; }
/* Daylight: fix all rgba(255,255,255) inline styles */
[data-theme="daylight"] [style*="rgba(255,255,255"] { --tw-fix: 1; }
[data-theme="daylight"] .kpi-card { border-color: #e5e7eb !important; }
[data-theme="daylight"] .chart-card { border-color: #e5e7eb !important; }
[data-theme="daylight"] .progress-bar-mini { background: rgba(0,0,0,.08) !important; }
[data-theme="daylight"] .rate-bar-track { background: rgba(0,0,0,.08) !important; }
[data-theme="daylight"] .detail-table th { background: #f3f4f6 !important; border-bottom: 2px solid #d1d5db !important; color: #1f2937 !important; font-weight: 700 !important; }
[data-theme="daylight"] .detail-table td { border-bottom-color: #e5e7eb !important; color: #1f2937 !important; }
[data-theme="daylight"] .detail-table tr:hover td { background: rgba(37,99,235,.03) !important; }
[data-theme="daylight"] svg circle[stroke*="rgba(255,255,255"] { stroke: rgba(0,0,0,.1) !important; }
[data-theme="daylight"] tr[style*="rgba(255,255,255"] { border-color: rgba(0,0,0,.1) !important; }
[data-theme="daylight"] .kpi-ring-wrap circle:first-child { stroke: rgba(0,0,0,.08) !important; }
[data-theme="daylight"] .tab-btn { border-color: #d1d5db !important; }
[data-theme="daylight"] h2 { color: #1f2937 !important; }
[data-theme="daylight"] .page-header h2 { color: #fff !important; }
[data-theme="daylight"] .page-header .subtitle { color: rgba(255,255,255,.7) !important; }
[data-theme="daylight"] .main-content { color: #1f2937; }
[data-theme="daylight"] p.subtitle, [data-theme="daylight"] .subtitle { color: #4b5563 !important; }
[data-theme="daylight"] .section-title { color: #111827 !important; }
[data-theme="daylight"] .section-block { border-bottom: 1px solid #e5e7eb; padding-bottom: 24px; }
[data-theme="daylight"] .tag-green { background: rgba(5,150,105,.12) !important; color: #047857 !important; }
[data-theme="daylight"] .tag-red { background: rgba(220,38,38,.12) !important; color: #b91c1c !important; }
[data-theme="daylight"] .tag-orange { background: rgba(217,119,6,.12) !important; color: #b45309 !important; }
[data-theme="daylight"] .vs-ahead { background: rgba(5,150,105,.12) !important; color: #047857 !important; }
[data-theme="daylight"] .vs-behind { background: rgba(220,38,38,.12) !important; color: #b91c1c !important; }
[data-theme="daylight"] .vs-close { background: rgba(217,119,6,.12) !important; color: #b45309 !important; }
[data-theme="daylight"] .detail-table tr.row-total td { color: #111827 !important; border-top: 2px solid #d1d5db !important; }
[data-theme="daylight"] .yoy-toggle { background: #f3f4f6 !important; border-color: #d1d5db !important; }
[data-theme="daylight"] .yoy-btn { color: #374151 !important; }
[data-theme="daylight"] .yoy-btn:hover { color: #111827 !important; background: rgba(0,0,0,.05) !important; }
[data-theme="daylight"] .kpi-value.green { -webkit-text-fill-color: #059669 !important; color: #059669 !important; }
[data-theme="daylight"] .kpi-value.orange { -webkit-text-fill-color: #d97706 !important; color: #d97706 !important; }
[data-theme="daylight"] .kpi-value.red { -webkit-text-fill-color: #dc2626 !important; color: #dc2626 !important; }
[data-theme="daylight"] .kpi-value.purple { -webkit-text-fill-color: #7c3aed !important; color: #7c3aed !important; }
/* Daylight: inline style overrides for template elements */
[data-theme="daylight"] .kpi-ring-label { color: #1f2937 !important; }
[data-theme="daylight"] .rate-bar-label { color: #1f2937 !important; text-shadow: none !important; font-weight: 800 !important; }
[data-theme="daylight"] td[style*="color:#fff"] { color: #1f2937 !important; }
[data-theme="daylight"] td[style*="color: #fff"] { color: #1f2937 !important; }
[data-theme="daylight"] span[style*="color:#fff"] { color: #1f2937 !important; }
[data-theme="daylight"] div[style*="color:#fff"] { color: #1f2937 !important; }
[data-theme="daylight"] td[style*="color:#e5e7eb"] { color: #1f2937 !important; }
[data-theme="daylight"] td[style*="color:#60a5fa"] { color: #2563eb !important; }
[data-theme="daylight"] td[style*="color:#34d399"] { color: #059669 !important; }
[data-theme="daylight"] td[style*="color:#f87171"] { color: #dc2626 !important; }
[data-theme="daylight"] td[style*="color:#a78bfa"] { color: #7c3aed !important; }
[data-theme="daylight"] td[style*="color:#2dd4bf"] { color: #0d9488 !important; }
[data-theme="daylight"] span[style*="color:#a78bfa"] { color: #7c3aed !important; }
[data-theme="daylight"] span[style*="color:#2dd4bf"] { color: #0d9488 !important; }
[data-theme="daylight"] span[style*="color:#60a5fa"] { color: #2563eb !important; }
[data-theme="daylight"] .chart-card h3 .tag { color: #6b7280 !important; background: rgba(0,0,0,.06) !important; }
[data-theme="daylight"] [style*="background:#111827"] { background: #fff !important; }
[data-theme="daylight"] [style*="background:#0f172a"] { background: #fff !important; }
[data-theme="daylight"] [style*="background:#1e293b"] { background: #f3f4f6 !important; }
[data-theme="daylight"] [style*="background:var(--card-bg"] { background: #fff !important; }
[data-theme="daylight"] [style*="color:#e0e6ed"] { color: #1f2937 !important; }
[data-theme="daylight"] [style*="color:#e5e7eb"] { color: #1f2937 !important; }
[data-theme="daylight"] [style*="color:#d1d5db"] { color: #374151 !important; }
[data-theme="daylight"] [style*="color:#9ca3af"] { color: #4b5563 !important; }
[data-theme="daylight"] [style*="color:#6b7280"] { color: #374151 !important; }
[data-theme="daylight"] [style*="color:#4b5563"] { color: #1f2937 !important; }
[data-theme="daylight"] [style*="border-top:2px solid rgba(255,255,255"] { border-top-color: rgba(0,0,0,.1) !important; }
[data-theme="daylight"] [style*="border:1px solid rgba(255,255,255"] { border-color: rgba(0,0,0,.08) !important; }
[data-theme="daylight"] [style*="border:1px dashed rgba("] { border-color: rgba(37,99,235,.3) !important; }
[data-theme="daylight"] [style*="border-bottom:1px solid rgba(255,255,255"] { border-bottom-color: rgba(0,0,0,.06) !important; }

/* ===== 响应式 ===== */

/* 侧边栏折叠按钮 */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 820;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(15,25,35,.95);
    color: #e5e7eb;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
[data-theme="daylight"] .sidebar-toggle { background: rgba(255,255,255,.95); color: #1f2937; border-color: #d1d5db; }

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 805;
}

/* 大屏 (>1600px) */
@media (min-width: 1601px) {
    .main-content { padding: 32px 48px; }
}

/* 中等屏幕 (1024-1280) */
@media (max-width: 1280px) {
    .main-content { padding: 24px 24px; }
    .sidebar { width: 220px; }
}

/* 平板 (768-1024) */
@media (max-width: 1024px) {
    .sidebar-toggle { display: flex; }
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform .3s ease, opacity .3s ease;
        z-index: 810;
    }
    .sidebar.open { transform: translateX(0); }
    .sb-hot { display: none; }   /* 触屏用 ☰ 按钮 */
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0 !important; padding: 24px 20px; padding-top: 64px; }
    .chart-grid { grid-template-columns: 1fr; }
}

/* 手机 (<=768px) */
@media (max-width: 768px) {
    .main-content { padding: 16px 12px; padding-top: 60px; }
    .page-header { padding: 20px 16px; border-radius: 12px; }
    .page-header h2 { font-size: 18px; }
    .reports-grid { grid-template-columns: 1fr; }
    .kpi-row { flex-direction: column; }
    .kpi-card { min-width: unset !important; }
    .chart-grid { grid-template-columns: 1fr; }
    .controls { flex-direction: column; align-items: flex-start; }
    .refund-kpi-group-cards { flex-direction: column; }
    .refund-kpi-eq { display: none; }
    .detail-grid { grid-template-columns: 1fr !important; }
    table { font-size: 11px; }
    th, td { padding: 6px 8px; }
}

/* ═════════════════════════════════════════════════════════
   Festive 主题：通用模板适配（content_ecommerce、shelf、anchor、weekly、material、wx、journey 等）
   覆盖大量模板内联 <style> 里的暗色硬编码
   ═════════════════════════════════════════════════════════ */

/* ── 卡片/边框 ── */
[data-theme="festive"] .kpi-card,
[data-theme="festive"] .chart-card,
[data-theme="festive"] .detail-table,
[data-theme="festive"] .detail-table-manual { background:#fff !important; border-color:#f0d4be !important; box-shadow:0 1px 6px rgba(120,15,25,.05) !important; }
[data-theme="festive"] .chart-card h3 { color:#3a1a14 !important; }
[data-theme="festive"] .view-section-title { color:#1f0a08 !important; }
[data-theme="festive"] .section-title { color:#3a1a14 !important; }
[data-theme="festive"] .section-title::before { background:linear-gradient(180deg,#c8161d,#fdd835) !important; }

/* ── KPI 卡片 ── */
[data-theme="festive"] .kpi-value { color:#c8161d !important; }
[data-theme="festive"] .kpi-value.green { color:#059669 !important; }
[data-theme="festive"] .kpi-value.red { color:#dc2626 !important; }
[data-theme="festive"] .kpi-value.orange { color:#d97706 !important; }
[data-theme="festive"] .kpi-value.blue { color:#0284c7 !important; }
[data-theme="festive"] .kpi-label { color:#3a1a14 !important; font-weight:600 }
[data-theme="festive"] .kpi-sub { color:#6e3a2a !important; }
[data-theme="festive"] .kpi-info { background:rgba(200,22,29,.10) !important; color:#c8161d !important; }
[data-theme="festive"] .kpi-info:hover { background:rgba(200,22,29,.18) !important; color:#8b0010 !important; }
[data-theme="festive"] .kpi-tip { background:#3a1a14 !important; color:#fff5ec !important; border-color:rgba(58,26,20,.6) !important; }
[data-theme="festive"] .kpi-tip::after { border-top-color:#3a1a14 !important; }
[data-theme="festive"] .kpi-ring-label { color:#1f0a08 !important; }

/* ── 进度条（rate-bar，覆盖叠在 fill 上的白色文字）── */
[data-theme="festive"] .rate-bar-track { background:#f7e6d4 !important; }
[data-theme="festive"] .rate-bar-label { color:#1f0a08 !important; text-shadow:0 1px 2px rgba(255,255,255,.6) !important; font-weight:800 !important; }
[data-theme="festive"] .progress-bar-mini { background:#f7e6d4 !important; }

/* ── 详情表 ── */
[data-theme="festive"] .detail-table th,
[data-theme="festive"] .detail-table-manual th { background:#fef0e0 !important; color:#3a1a14 !important; border-bottom-color:#f0d4be !important; font-weight:700 }
[data-theme="festive"] .detail-table td,
[data-theme="festive"] .detail-table-manual td { color:#3a1a14 !important; border-bottom-color:#f7e6d4 !important; }
[data-theme="festive"] .detail-table tr:hover td,
[data-theme="festive"] .detail-table-manual tr:hover td { background:rgba(200,22,29,.04) !important; }
[data-theme="festive"] .detail-table tr.row-total td,
[data-theme="festive"] .detail-table-manual tr.row-total td { color:#1f0a08 !important; border-top-color:#f0d4be !important; background:#fef5ec !important; font-weight:800 !important; }

/* ── Tag/Badge ── */
[data-theme="festive"] .tag-green { background:rgba(5,150,105,.12) !important; color:#047857 !important; font-weight:700 }
[data-theme="festive"] .tag-red { background:rgba(200,22,29,.10) !important; color:#c8161d !important; font-weight:700 }
[data-theme="festive"] .tag-orange { background:rgba(217,119,6,.12) !important; color:#b45309 !important; font-weight:700 }
[data-theme="festive"] .vs-ahead { background:rgba(5,150,105,.12) !important; color:#047857 !important; font-weight:700 }
[data-theme="festive"] .vs-behind { background:rgba(200,22,29,.10) !important; color:#c8161d !important; font-weight:700 }
[data-theme="festive"] .vs-close { background:rgba(217,119,6,.12) !important; color:#b45309 !important; font-weight:700 }

/* ── Tab/Toggle 按钮组 ── */
[data-theme="festive"] .tab-btn { color:#6e3a2a !important; border-color:#f0d4be !important; background:#fff !important; }
[data-theme="festive"] .tab-btn:hover { color:#1f0a08 !important; border-color:#c8161d !important; }
[data-theme="festive"] .tab-btn.active { background:#c8161d !important; color:#fff !important; border-color:#c8161d !important; }
[data-theme="festive"] .yoy-toggle { background:#fef5ec !important; border-color:#f0d4be !important; }
[data-theme="festive"] .yoy-btn { color:#6e3a2a !important; }
[data-theme="festive"] .yoy-btn:hover { color:#1f0a08 !important; background:#fef0e0 !important; }
[data-theme="festive"] .yoy-btn.active { background:linear-gradient(135deg,#c8161d,#fdd835) !important; color:#fff !important; box-shadow:0 2px 8px rgba(200,22,29,.30) !important; }

/* ── 退货分析 / refund 模块 ── */
[data-theme="festive"] .refund-tab { color:#6e3a2a !important; }
[data-theme="festive"] .refund-tab:hover { color:#1f0a08 !important; background:#fef5ec !important; }
[data-theme="festive"] .refund-tab.active { background:linear-gradient(135deg,#c8161d,#e8232a) !important; color:#fff !important; box-shadow:0 2px 8px rgba(200,22,29,.30) !important; }
[data-theme="festive"] .refund-quick-btn { background:#fff !important; color:#6e3a2a !important; border-color:#f0d4be !important; }
[data-theme="festive"] .refund-quick-btn:hover,
[data-theme="festive"] .refund-quick-btn.active { background:#c8161d !important; color:#fff !important; border-color:#c8161d !important; }
[data-theme="festive"] .refund-kol-select { background:#fff !important; color:#3a1a14 !important; border-color:#f0d4be !important; color-scheme:light !important; }

/* ── 模板内联 tab/refund 按钮组容器（rgba 灰底）── */
[data-theme="festive"] [style*="background:rgba(255,255,255,.06)"][style*="border-radius"],
[data-theme="festive"] [style*="background:rgba(255,255,255,.04)"][style*="border-radius"] { background:#fef5ec !important; border-color:#f0d4be !important; }
[data-theme="festive"] [style*="color:#64748b"] { color:#6e3a2a !important; }
[data-theme="festive"] [style*="color:#4b5563"] { color:#9a7060 !important; }

/* ── 日期输入框：浅色主题下统一压成白底深字 + light scheme，覆盖 inline 写死的深色 ── */
[data-theme="festive"] input[type="date"],
[data-theme="festive"] input[type="text"][placeholder*="日期"],
[data-theme="festive"] input[type="datetime-local"] {
    background:#fff !important; color:#3a1a14 !important;
    border-color:#f0d4be !important; color-scheme:light !important;
}
[data-theme="daylight"] input[type="date"],
[data-theme="daylight"] input[type="text"][placeholder*="日期"],
[data-theme="daylight"] input[type="datetime-local"] {
    background:#fff !important; color:#1e293b !important;
    border-color:#d1d5db !important; color-scheme:light !important;
}

/* ── pp 涨跌幅 chip（同比/环比 chips：通常 color:#34d399/#f87171/#fbbf24 的 inline 色）── */
[data-theme="festive"] [style*="color:#34d399"],
[data-theme="festive"] [style*="color:#10b981"],
[data-theme="festive"] [style*="color:#6ee7b7"] { color:#047857 !important; }
[data-theme="festive"] [style*="color:#f87171"],
[data-theme="festive"] [style*="color:#fca5a5"],
[data-theme="festive"] [style*="color:#ef4444"] { color:#c8161d !important; }
[data-theme="festive"] [style*="color:#fbbf24"],
[data-theme="festive"] [style*="color:#fcd34d"],
[data-theme="festive"] [style*="color:#fde68a"] { color:#b45309 !important; }
[data-theme="festive"] [style*="color:#60a5fa"],
[data-theme="festive"] [style*="color:#38bdf8"] { color:#0284c7 !important; }
[data-theme="festive"] [style*="color:#a78bfa"],
[data-theme="festive"] [style*="color:#c4b5fd"] { color:#7c3aed !important; }
[data-theme="festive"] [style*="color:#cbd5e1"],
[data-theme="festive"] [style*="color:#d1d5db"],
[data-theme="festive"] [style*="color:#e5e7eb"],
[data-theme="festive"] [style*="color:#94a3b8"],
[data-theme="festive"] [style*="color:#9ca3af"],
[data-theme="festive"] [style*="color:#f1f5f9"] { color:#3a1a14 !important; }

/* ── 图表容器内白色文字（ECharts 容器外的标签）── */
[data-theme="festive"] .chart-box,
[data-theme="festive"] .chart-box.tall { color:#3a1a14; }

/* ===== CD 全局美化下拉 (cd_select.js) ===== */
.cd-native-hidden{display:none !important}
.cd-wrap{position:relative;display:inline-block}
.cd-trigger{display:inline-flex;align-items:center;gap:10px;padding:7px 14px;background:var(--card-bg,#111827);border:1px solid rgba(255,255,255,.18);border-radius:8px;color:var(--text,#e5e7eb);cursor:pointer;font-size:13px;font-weight:600;min-width:130px;text-align:left;transition:border-color .15s,box-shadow .15s}
.cd-trigger:hover{border-color:rgba(96,165,250,.6)}
.cd-wrap.open .cd-trigger{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.15)}
.cd-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cd-arrow{font-size:9px;opacity:.55;transition:transform .15s;flex-shrink:0}
.cd-wrap.open .cd-arrow{transform:rotate(180deg);opacity:.9}
.cd-panel{position:absolute;top:calc(100% + 6px);left:0;background:var(--card-bg,#1e293b);border:1px solid rgba(255,255,255,.15);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.40);min-width:160px;max-width:260px;max-height:340px;overflow:hidden;display:none;flex-direction:column;z-index:200}
.cd-wrap.open .cd-panel{display:flex}
.cd-list{overflow-y:auto;padding:4px;max-height:300px;scrollbar-width:thin}
.cd-list::-webkit-scrollbar{width:6px}
.cd-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}
.cd-item{padding:8px 12px;cursor:pointer;font-size:13px;display:flex;justify-content:space-between;align-items:center;color:var(--text,#e5e7eb);border-radius:6px;border-left:3px solid transparent;transition:background .1s;white-space:nowrap}
.cd-item:hover{background:rgba(96,165,250,.08);border-left-color:#60a5fa}
.cd-item.selected{color:#60a5fa;font-weight:700;background:rgba(96,165,250,.12);border-left-color:#60a5fa}
[data-theme="daylight"] .cd-trigger{background:#fff;border-color:#d1d5db;color:#1f2937}
[data-theme="daylight"] .cd-trigger:hover{border-color:#2563eb}
[data-theme="daylight"] .cd-wrap.open .cd-trigger{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
[data-theme="daylight"] .cd-panel{background:#fff;border-color:#e5e7eb;box-shadow:0 14px 36px rgba(15,23,42,.14)}
[data-theme="daylight"] .cd-item{color:#374151}
[data-theme="daylight"] .cd-item:hover{background:#eff6ff;border-left-color:#2563eb}
[data-theme="daylight"] .cd-item.selected{color:#2563eb;background:#eff6ff;border-left-color:#2563eb}
[data-theme="daylight"] .cd-list::-webkit-scrollbar-thumb{background:#d1d5db}
[data-theme="festive"] .cd-trigger{background:#fff;border-color:#f0d4be;color:#3a1a14}
[data-theme="festive"] .cd-trigger:hover{border-color:#c8161d}
[data-theme="festive"] .cd-wrap.open .cd-trigger{border-color:#c8161d;box-shadow:0 0 0 3px rgba(200,22,29,.12)}
[data-theme="festive"] .cd-arrow{color:#9a7060}
[data-theme="festive"] .cd-panel{background:#fff;border-color:#f0d4be;box-shadow:0 14px 36px rgba(120,15,25,.18)}
[data-theme="festive"] .cd-item{color:#3a1a14}
[data-theme="festive"] .cd-item:hover{background:#fef5ec;border-left-color:#c8161d}
[data-theme="festive"] .cd-item.selected{color:#c8161d;background:#fef0e0;border-left-color:#c8161d}
[data-theme="festive"] .cd-list::-webkit-scrollbar-thumb{background:#f0d4be}
