/* Inter 数字字体 */
@import url("./fonts.css");

/* ========== 专业工具台 · Docker 式浅色壳层 ========== */
:root {
    color-scheme: light;
    /* === 深蓝顶栏 + 交互蓝 === */
    /* Option 1 · Ant Design Pro / 飞书浅色企业体系 */
    --primary: #1677ff;
    --primary-rgb: 22, 119, 255;
    --primary-light: #4096ff;
    --primary-dark: #0958d9;
    --gradient-start: #1677ff;
    --gradient-end: #001529;
    --header-bg: #0f172a;
    --header-fg: #ffffff;

    /* 辅色 */
    --secondary: #334155;
    --secondary-rgb: 51, 65, 85;

    /* 功能色系 */
    --color-primary: #1677ff;
    --color-primary-light: rgba(22, 119, 255, 0.1);
    --color-primary-dark: #0958d9;
    --color-secondary: #334155;
    --color-secondary-light: rgba(51, 65, 85, 0.08);
    --color-success: #16a34a;
    --color-success-light: rgba(22, 163, 74, 0.1);
    --color-warning: #d97706;
    --color-warning-light: rgba(217, 119, 6, 0.12);
    --color-danger: #dc2626;
    --color-danger-light: rgba(220, 38, 38, 0.1);
    --color-info: #0284c7;
    --color-info-light: rgba(2, 132, 199, 0.1);

    /* 兼容旧变量名 */
    --macaron-pink: #dc2626;
    --macaron-pink-deep: #b91c1c;
    --macaron-mint: #16a34a;
    --macaron-mint-deep: #15803d;
    --macaron-lavender: #1d63ed;
    --macaron-lavender-deep: #154fc4;
    --macaron-peach: #d97706;
    --macaron-peach-deep: #b45309;
    --macaron-sky: #0284c7;
    --macaron-sky-deep: #0369a1;
    --macaron-lemon: #ca8a04;
    --macaron-lemon-deep: #a16207;

    /* ===== 浅色专业工具表面（UI/UX Pro Max） ===== */
    --bg-gradient: #f8fafc;
    --color-background: #f8fafc;
    --color-surface: #f8fafc;
    --color-card: #ffffff;
    --color-card-solid: #ffffff;
    --color-elevated: #f1f5f9;
    --color-border: #e2e8f0;
    --color-hover: #f1f5f9;
    --color-glass: rgba(255, 255, 255, 0.92);
    --color-input-bg: #ffffff;
    --color-bg-soft: #f1f5f9;
    --color-sidebar: #f1f5f9;

    /* 文字颜色 */
    --color-text: #020617;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;

    /* 间距系统 */
    --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px;
    --spacing-lg: 24px; --spacing-xl: 32px; --spacing-xxl: 48px;

    /* 圆角 - 克制 */
    --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 10px;
    --radius-3xl: 12px; --radius-full: 9999px;

    /* 阴影 - 轻量专业 */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 0 3px rgba(29, 99, 237, 0.16);
    --shadow-25d: 0 2px 0 rgba(29, 99, 237, 0.08), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-25d-sm: 0 1px 0 rgba(29, 99, 237, 0.06), 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-rose: 0 4px 12px rgba(220, 38, 38, 0.12);
    --shadow-mint: 0 4px 12px rgba(22, 163, 74, 0.12);
    --shadow-sky: 0 4px 12px rgba(2, 132, 199, 0.12);
    --shadow-lavender: 0 4px 12px rgba(29, 99, 237, 0.12);
    --shadow-glass: 0 1px 2px rgba(15, 23, 42, 0.05);

    /* 字体：中文走系统黑体，数字走 Inter */
    --font-family: "Inter Numerals", "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --font-numeric: "Inter Numerals", "Inter", "Segoe UI", system-ui, sans-serif;
    --font-size-xs: 12px; --font-size-sm: 13px; --font-size-md: 14px;
    --font-size-lg: 16px; --font-size-xl: 20px; --font-size-xxl: 28px;
    --font-size-hero: 36px;

    /* 动画 */
    --transition-fast: 0.2s cubic-bezier(.4, 0, .2, 1);
    --transition-normal: 0.35s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: 0.5s cubic-bezier(.4, 0, .2, 1);

    /* 布局 */
    --header-height: 64px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --container-max-width: 1440px;
    --container-padding: 1.5rem;
    --element-gap: 1rem;
}

/* ===== 暗色主题 (Dark) ===== */
.dark {
    --bg-gradient: linear-gradient(135deg, #0F172A 0%, #102A2A 45%, #111827 100%);
    --color-background: #0F172A;
    --color-surface: #1E293B;
    --color-card: rgba(30, 41, 59, 0.85);
    --color-card-solid: #1E293B;
    --color-border: #334155;
    --color-hover: rgba(20, 184, 166, 0.12);
    --color-glass: rgba(15, 23, 42, 0.3);
    --color-input-bg: rgba(30, 41, 59, 0.95);
    --color-text: #F8FAFC;
    --color-text-light: #CBD5E1;
    --color-text-lighter: #64748B;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ========== 重置 & 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font-family); font-size: var(--font-size-md); line-height: 1.6;
    color: var(--color-text); background: var(--bg-gradient);
    background-attachment: fixed; overflow-x: hidden;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* 金额、百分比、计数等数字展示统一 Inter */
.num,
.amount,
.money,
.currency,
.stat-value,
.kpi-value,
.metric-value,
.summary-value,
.center-value,
.bar-value,
.donut-legend-value,
.donut-legend-pct,
.pie-slice-label,
.app-progress-value,
.sync-progress-value,
.progress-panel-status,
input[type="number"],
td.num,
td.amount,
th.num {
    font-family: var(--font-numeric), var(--font-family);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

svg text,
svg tspan {
    font-family: var(--font-numeric), var(--font-family);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--gradient-end)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========== Glass Morphism 通用类 ========== */
.glass-morphism {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(180%); -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dark .glass-morphism {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-morphism-strong {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(200%); -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.dark .glass-morphism-strong {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== 布局 ========== */
.app-container {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.app-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
}

/* 左侧边栏 - 深度玻璃态设计 */
.app-sidebar {
    width: var(--sidebar-width); min-width: var(--sidebar-width);
    background: var(--color-glass);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex; flex-direction: column;
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 4px 0 24px rgba(99, 102, 241, 0.06);
    position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 1000;
    transition: all var(--transition-normal);
    transform: translateX(0);
    min-height: 0;
}
.app-sidebar.hidden-sidebar {
    width: 0; min-width: 0; overflow: hidden; border-right: none;
    box-shadow: none; transform: translateX(-100%);
}
.app-sidebar::-webkit-scrollbar { width: 3px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.2); border-radius: 4px; }

#sidebar-header,
.sidebar-header,
.sidebar-company-card {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}
.sidebar-logo {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: #fff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    position: relative; overflow: hidden;
}
.sidebar-logo::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
}
.sidebar-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.sidebar-title-area { flex: 1; min-width: 0; }
.sidebar-title {
    font-size: 15px; font-weight: 700; color: var(--color-text); letter-spacing: 0.3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-subtitle {
    font-size: 11px; color: var(--color-text-lighter); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 侧边栏菜单 - 现代风格 */
.sidebar-menu {
    flex: 1; padding: var(--spacing-sm) var(--spacing-md); overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
}
.menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition-fast); border: 1.5px solid transparent;
    user-select: none; background: transparent;
    color: var(--color-text-light); font-size: 13px; font-weight: 500;
    white-space: nowrap; overflow: hidden;
    position: relative;
}
.menu-item:hover {
    background: var(--color-primary-light); color: var(--color-text);
    transform: translateX(4px);
}
.menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(147, 51, 234, 0.08));
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--primary); font-weight: 600;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.menu-item .menu-icon {
    font-size: 19px; flex-shrink: 0; width: 26px; text-align: center;
    display: flex; align-items: center; justify-content: center;
    color: inherit; transition: color var(--transition-fast);
}
.menu-item .menu-icon svg { display: block; }
.menu-item .menu-text { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.menu-item.is-locked {
    opacity: 1;
    color: var(--color-text-light);
}
.menu-item.is-locked:hover {
    color: var(--color-text);
}
.menu-item .menu-lock {
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(120, 53, 15, 0.35);
    background: linear-gradient(145deg, #ffe08a 0%, #f59e0b 48%, #ea580c 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45), 0 4px 10px rgba(234, 88, 12, 0.28);
    animation: menu-buy-pulse 1.6s ease-in-out infinite;
}
@keyframes menu-buy-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4), 0 4px 10px rgba(234, 88, 12, 0.28);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0), 0 6px 14px rgba(234, 88, 12, 0.34);
        filter: brightness(1.15);
    }
}
@media (prefers-reduced-motion: reduce) {
    .menu-item .menu-lock { animation: none; }
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    display: flex; flex-direction: column; gap: 2px;
}
.sidebar-footer-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 12px; color: var(--color-text-lighter);
    transition: all var(--transition-fast);
}
.sidebar-footer-item:hover { background: var(--color-primary-light); color: var(--color-text-light); }
.sidebar-footer-item .footer-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sidebar-footer-item .footer-icon svg { display: block; }

/* 侧边栏折叠状态 */
.app-sidebar.collapsed {
    width: var(--sidebar-collapsed-width); min-width: var(--sidebar-collapsed-width);
}
.app-sidebar.collapsed .menu-text,
.app-sidebar.collapsed .sidebar-footer-item span:not(.footer-icon) { display: none; }
.app-sidebar.collapsed .menu-item { justify-content: center; padding: 12px 0; }
.app-sidebar.collapsed .sidebar-footer-item { justify-content: center; padding: 10px 0; }
.app-sidebar.collapsed .sidebar-footer-item .footer-icon { width: auto; }

/* 右侧主内容区 */
.app-main {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
    background: var(--bg-gradient); background-attachment: fixed;
}

/* 顶部栏 - 高级毛玻璃效果 */
.app-header {
    background: var(--color-glass);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0 var(--spacing-xl);
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height); flex-shrink: 0;
    box-shadow: 0 1px 12px rgba(99, 102, 241, 0.06);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    position: sticky; top: 0; z-index: 100;
    -webkit-app-region: drag;
}
.app-header button,
.app-header input,
.app-header select,
.app-header a,
.header-user,
.header-status-group,
.header-brand,
.header-brand *,
.header-company-switcher,
.header-company-switcher *,
.header-company-menu,
.header-company-menu *,
.window-controls,
.window-controls * {
    -webkit-app-region: no-drag;
}

/* 无边框窗口：右上角最小化 / 关闭 */
.window-controls {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100000;
    display: flex;
    align-items: stretch;
    height: 36px;
    -webkit-app-region: no-drag;
}
.window-controls.in-header {
    position: static;
    height: 32px;
    margin-left: 4px;
}
.window-control-btn {
    width: 46px;
    height: 100%;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.window-control-btn:hover {
    background: rgba(148, 163, 184, 0.22);
    color: #0f172a;
}
.window-control-btn.is-active {
    background: rgba(22, 119, 255, 0.16);
    color: #1677ff;
}
.window-control-btn.window-close:hover {
    background: #e81123;
    color: #fff;
}
.header-left { display: flex; align-items: center; gap: var(--spacing-md); min-width: 0; flex: 1 1 auto; -webkit-app-region: no-drag; }
.sidebar-toggle {
    width: 40px; height: 40px; border: none; border-radius: 12px;
    background: var(--color-primary-light); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--primary);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}
.sidebar-toggle svg { width: 20px; height: 20px; display: block; }
.sidebar-toggle:hover { background: rgba(99, 102, 241, 0.18); transform: scale(1.05); }
.sidebar-toggle:active { transform: scale(0.96); }
.header-title { font-size: 15px; font-weight: 600; color: var(--color-text); letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-right { display: flex; align-items: center; gap: var(--spacing-md); flex: 0 0 auto; }
.header-right > * { flex-shrink: 0; }
.header-status-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.data-center-pill { display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-input-bg);color:var(--color-text-light);font-size:12px;cursor:pointer;white-space:nowrap; }
.data-center-pill strong { color:var(--color-text);font-size:12px; }
.data-center-pill i { width:1px;height:14px;background:rgba(148,163,184,.4); }
.data-center-pill.online { color:#047857;background:rgba(16,185,129,.08);border-color:rgba(16,185,129,.25); }
.data-center-pill.syncing { color:#0f766e;background:rgba(13,148,136,.08);border-color:rgba(13,148,136,.25); }
.data-center-pill.syncing .db-status-dot { animation:pulse 1s ease-in-out infinite; }
.data-center-pill.warning { color:#b45309;background:rgba(245,158,11,.09);border-color:rgba(245,158,11,.25); }
.data-center-pill.offline { color:#b91c1c;background:rgba(239,68,68,.09);border-color:rgba(239,68,68,.25); }
.display-adjustment-pill { display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid var(--color-border);border-radius:999px;background:var(--color-input-bg);color:var(--color-text-light);font-size:12px;cursor:pointer;white-space:nowrap; }
.display-adjustment-pill strong { color:var(--color-text);font-size:12px; }
.display-adjustment-pill i { width:1px;height:14px;background:rgba(148,163,184,.4); }
.display-adjustment-pill span:first-child { width:8px;height:8px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.14); }
.display-adjustment-pill.adjusted { color:#9a3412;background:rgba(249,115,22,.08);border-color:rgba(249,115,22,.25); }
.display-adjustment-pill.adjusted span:first-child { background:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.14); }
.header-user {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(147, 51, 234, 0.06));
    padding: 8px 18px; border-radius: var(--radius-full);
    font-size: 13px; color: var(--primary); cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-weight: 500;
    min-width: 0;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
}
.header-user span:last-child { overflow: hidden; text-overflow: ellipsis; }
.header-user:hover { background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.25); transform: translateY(-1px); }

.page-container {
    flex: 1; padding: var(--spacing-lg) var(--spacing-xl);
    max-width: var(--container-max-width); width: 100%; margin: 0 auto;
}

.app-footer {
    background: var(--color-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: var(--spacing-sm) var(--spacing-lg); text-align: center;
    color: var(--color-text-lighter); font-size: 11px;
    border-top: 1px solid rgba(226, 232, 240, 0.4); flex-shrink: 0;
}

/* ========== 卡片 · 高级玻璃态 ========== */
.card {
    background: var(--color-card);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: var(--radius-lg); padding: var(--spacing-lg);
    box-shadow: var(--shadow-card); transition: all var(--transition-normal);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ========== 标题 ========== */
.page-title { margin-bottom: var(--spacing-xl); }
.page-title h1 { font-size: 24px; color: var(--color-text); font-weight: 700; letter-spacing: -0.3px; }
.page-subtitle { color: var(--color-text-lighter); font-size: 13px; margin-top: 4px; }

/* ========== 按钮 · 现代风格 ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 24px; border: none; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all var(--transition-fast); outline: none; user-select: none; white-space: nowrap;
    font-family: var(--font-family);
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity var(--transition-fast);
    border-radius: inherit;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-sm) !important; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), 0 2px 4px rgba(147, 51, 234, 0.15);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.42), 0 4px 8px rgba(147, 51, 234, 0.2); }

.btn-secondary {
    background: #fff; color: var(--color-text);
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--color-primary-light); }

.btn-success { background: linear-gradient(135deg, #10B981, #059669); color: #fff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); }
.btn-danger { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3); }
.btn-info { background: linear-gradient(135deg, #06B6D4, #0891B2); color: #fff; box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3); }
.btn-warning { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3); }
.btn-sm { padding: 7px 16px; font-size: 12px; border-radius: 10px; }

.btn-icon {
    width: 38px; height: 38px; padding: 0; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1.5px solid var(--color-border);
    cursor: pointer; transition: all var(--transition-fast);
    font-size: 15px; color: var(--color-text);
    box-shadow: var(--shadow-sm);
}
.btn-icon:hover { border-color: var(--primary); background: var(--color-primary-light); color: var(--primary); transform: scale(1.06); }

/* ========== 表单 ========== */
.form-control {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm); font-size: 14px; background: var(--color-input-bg);
    transition: all var(--transition-fast); outline: none; font-family: var(--font-family);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.04);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 1px 3px rgba(99, 102, 241, 0.06);
    background: var(--color-surface);
}
.form-control:disabled { background: #f1f5f9; cursor: not-allowed; opacity: 0.55; }
.form-control::placeholder { color: var(--color-text-lighter); }
.form-group { margin-bottom: var(--spacing-lg); }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; color: var(--color-text); font-size: 13px; }
.form-row { display: flex; gap: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.form-row .form-group { flex: 1; margin-bottom: 0; }
.form-actions { display: flex; gap: var(--spacing-md); justify-content: flex-end; margin-top: var(--spacing-lg); }

/* ========== 表格 ========== */
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: var(--spacing-lg) 0; border-radius: var(--radius-md); overflow: hidden; }
.table th {
    text-align: left; padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(147, 51, 234, 0.04));
    font-weight: 600; font-size: 12px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1.5px solid rgba(99, 102, 241, 0.15);
}
.table td { padding: 13px 18px; border-bottom: 1px solid rgba(226, 232, 240, 0.6); font-size: 13px; color: var(--color-text); background: var(--color-surface); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(99, 102, 241, 0.03); }

/* ========== 徽章 ========== */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-primary { background: rgba(99, 102, 241, 0.12); color: var(--primary); }
.badge-success { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #DC2626; }
.badge-info { background: rgba(6, 182, 212, 0.12); color: #0891B2; }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: var(--spacing-xxl) var(--spacing-lg); color: var(--color-text-lighter); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: var(--spacing-md); opacity: 0.4; }

/* ========== 文字 ========== */
.text-warning { color: #D97706 !important; }
.text-danger { color: #DC2626 !important; }
.text-success { color: #059669 !important; }
.text-primary { color: var(--primary) !important; }
.font-bold { font-weight: 700; }

/* ========== 自动保存提示 ========== */
.auto-save-indicator {
    position: fixed; bottom: 24px; right: 24px;
    background: linear-gradient(135deg, var(--color-success), #059669); color: #fff;
    padding: 10px 22px; border-radius: 24px; font-size: 12px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); z-index: 9999;
    opacity: 0; transform: translateY(10px); transition: all var(--transition-normal);
}
.auto-save-indicator.show { opacity: 1; transform: translateY(0); }

/* ========== 搜索 & 筛选 ========== */
.search-box { position: relative; display: inline-flex; align-items: center; }
.search-box input { padding-right: 40px; }
.search-box .search-icon { position: absolute; right: 14px; color: var(--color-text-lighter); }
.filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
    padding: 7px 18px; border: 1.5px solid var(--color-border); border-radius: var(--radius-full);
    background: var(--color-surface); cursor: pointer; font-size: 12px; font-weight: 500;
    transition: all var(--transition-fast); font-family: var(--font-family);
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    font-weight: 600;
}

/* ========== 年份折叠 ========== */
.year-group { margin-bottom: var(--spacing-md); }
.year-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(147, 51, 234, 0.03));
    border-radius: var(--radius-md); cursor: pointer; user-select: none;
    border: 1.5px solid rgba(226, 232, 240, 0.7); transition: all var(--transition-fast);
}
.year-header:hover { background: linear-gradient(135deg, rgba(99, 102, 241, 0.09), rgba(147, 51, 234, 0.06)); border-color: rgba(99, 102, 241, 0.2); }
.year-count { color: var(--color-text-lighter); font-size: 12px; }
.year-toggle { transition: transform var(--transition-fast); color: var(--primary); }
.year-group.expanded .year-toggle { transform: rotate(180deg); }
.year-contracts { display: none; padding: var(--spacing-md) 0; }
.year-group.expanded .year-contracts { display: block; }

/* ========== 动画 ========== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.15); } 50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.3); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ========== 渐变文字辅助类 ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 响应式 ========== */
@media (min-width: 768px) {
    .mobile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Desktop · 专业工具台（Docker 式浅色） ========== */
:root {
    color-scheme: light;
    --primary: #1d63ed;
    --primary-rgb: 29, 99, 237;
    --primary-light: #4b83f2;
    --primary-dark: #154fc4;
    --gradient-start: #1d63ed;
    --gradient-end: #1c2438;
    --header-bg: #1d63ed;
    --header-fg: #ffffff;
    --secondary: #334155;
    --secondary-rgb: 51, 65, 85;
    --color-primary: #1d63ed;
    --color-primary-light: rgba(29, 99, 237, 0.1);
    --color-primary-dark: #154fc4;
    --color-secondary: #334155;
    --color-secondary-light: rgba(51, 65, 85, 0.08);
    --color-success: #16a34a;
    --color-success-light: rgba(22, 163, 74, 0.1);
    --color-warning: #d97706;
    --color-warning-light: rgba(217, 119, 6, 0.12);
    --color-danger: #dc2626;
    --color-danger-light: rgba(220, 38, 38, 0.1);
    --color-info: #0284c7;
    --color-info-light: rgba(2, 132, 199, 0.1);
    --macaron-pink: #dc2626;
    --macaron-pink-deep: #b91c1c;
    --macaron-mint: #16a34a;
    --macaron-mint-deep: #15803d;
    --macaron-lavender: #1d63ed;
    --macaron-lavender-deep: #154fc4;
    --macaron-peach: #d97706;
    --macaron-peach-deep: #b45309;
    --macaron-sky: #0284c7;
    --macaron-sky-deep: #0369a1;
    --macaron-lemon: #ca8a04;
    --macaron-lemon-deep: #a16207;
    --bg-gradient: #f8fafc;
    --color-background: #f8fafc;
    --color-bg-soft: #f1f5f9;
    --color-surface: #f8fafc;
    --color-card: #ffffff;
    --color-card-solid: #ffffff;
    --color-border: #e2e8f0;
    --color-hover: #f1f5f9;
    --color-glass: rgba(255, 255, 255, 0.92);
    --color-input-bg: #ffffff;
    --color-sidebar: #f1f5f9;
    --color-elevated: #f1f5f9;
    --color-text: #020617;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --header-bg: #0f172a;
    --header-fg: #ffffff;
    --primary: #1677ff;
    --primary-rgb: 22, 119, 255;
    --color-primary: #1677ff;
    --color-primary-light: rgba(22, 119, 255, 0.12);
    --color-primary-dark: #0958d9;
    --header-height: 64px;
    --sidebar-width: 232px;
    --footer-height: 28px;
    --container-max-width: none;
    --container-padding: 20px;
    --ink-grid: none;
}

html {
    font-size: 14px;
}

body {
    background: var(--color-background);
    background-attachment: fixed;
    background-color: var(--color-background);
    letter-spacing: 0;
    color: var(--color-text);
}

body::before {
    display: none;
}

.app-container,
.app-main,
.app-sidebar,
.app-body {
    position: relative;
    z-index: 1;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 6px;
}

.app-container {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: var(--color-background);
}

.app-body {
    background: var(--color-background);
}

.app-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
}

.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100%;
    max-height: 100%;
    align-self: stretch;
    position: relative;
    top: auto;
    background: var(--color-sidebar);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-right: 1px solid var(--color-border);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.sidebar-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
}

.sidebar-logo::before,
.card::before,
.balance-card::before,
.balance-card::after,
.stat-card::after,
.quick-action-btn::before,
.customer-card::after,
.report-card::after,
.backup-card::after {
    display: none !important;
}

.company-switch-chevron {
    display: flex;
    flex: 0 0 auto;
    color: var(--color-text-lighter);
    transition: transform var(--transition-fast);
}

.header-company-switcher.open .company-switch-chevron {
    transform: rotate(180deg);
}

.company-switch-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-card-solid);
    box-shadow: var(--shadow-lg);
}

.company-switch-menu[hidden] {
    display: none;
}

.company-switch-option {
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    text-align: left;
    color: var(--color-text);
    cursor: pointer;
}

.company-switch-option:hover {
    background: var(--color-hover);
}

.company-switch-option.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.company-switch-option-mark {
    min-height: 18px;
    color: var(--color-primary);
    font-weight: 700;
}

.company-switch-option strong,
.company-switch-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-switch-option strong {
    font-size: 13px;
}

.company-switch-option small {
    margin-top: 2px;
    color: var(--color-text-lighter);
    font-size: 10px;
}

.sidebar-menu {
    /* 侧栏公司卡已移除；菜单区独自滚动，底部 footer 固定 */
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 10px 12px;
    gap: 2px;
}

.menu-item {
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
    gap: 10px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.menu-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: none;
}

.menu-item.active {
    background: var(--color-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: none;
    font-weight: 600;
}

.menu-item .menu-icon {
    width: 36px;
    height: 36px;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    flex-shrink: 0;
    transition: background .16s ease, color .16s ease;
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon {
    background: transparent;
    color: inherit;
}

.menu-item .menu-icon svg,
.footer-icon svg,
.header-user svg,
.sidebar-toggle svg,
.dropdown-icon svg,
.btn svg,
.settings-status-icon svg,
.ink-icon-btn svg,
.btn-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-item .menu-icon svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 8px 10px 12px;
    border-top: 1px solid #e4e7eb;
    background: #f1f3f5;
    flex: 0 0 auto;
    margin-top: auto;
}

.sidebar-footer-item {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #64748b;
}

.sidebar-footer-item:hover {
    background: rgba(29, 99, 237, 0.06);
    color: #1e293b;
}

.app-header {
    height: var(--header-height);
    min-height: 95px;
    padding: 14px 16px;
    background: #1d63ed;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    z-index: 1200;
}

html[data-platform="darwin"] .app-header {
    padding-left: 78px;
}

html[data-platform="darwin"] .window-controls,
html[data-platform="darwin"] #global-window-controls {
    display: none !important;
}

.app-header.has-tools-row {
    height: auto;
    min-height: 120px;
}

.app-header .header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.app-header .header-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px) auto;
    align-items: center;
    gap: 12px;
}

.app-header .header-left {
    flex: none;
    min-width: 0;
    /* 必须可见：公司切换下拉挂在 header-brand 内，hidden 会把菜单裁掉 */
    overflow: visible;
}

.app-header .header-center {
    min-width: 0;
}

.app-header .header-right,
.app-header .header-right-main {
    flex: none;
    justify-self: end;
}

.app-header .header-row-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
}

.app-header .header-tools-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.app-header .header-status-slot {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.app-header,
.app-header .header-title,
.app-header .gradient-text,
.app-header .header-user span {
    color: #ffffff;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: visible;
}

.header-center {
    position: relative;
    display: flex;
    justify-content: stretch;
    align-items: center;
    min-width: 0;
    z-index: 1;
}

.header-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    z-index: 1301;
    overflow: visible;
}

.header-company-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: min(320px, 34vw);
    padding: 4px 10px 4px 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    -webkit-app-region: no-drag !important;
}

.header-company-switcher:hover,
.header-company-switcher:focus-visible,
.header-company-switcher.open {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.header-company-switcher.switching {
    opacity: 0.7;
    pointer-events: none;
}

.header-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex: 0 0 auto;
}

.header-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 1px;
}

.header-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.header-brand-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.header-company-switcher .company-switch-chevron {
    color: rgba(255, 255, 255, 0.8);
}

.header-company-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 24px));
    z-index: 1400;
    max-height: min(360px, calc(100vh - 120px));
    overflow: auto;
}

.header-edition-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-search {
    width: 100%;
    max-width: 340px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.header-search:focus-within {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.28);
}

.header-search-icon {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.7);
}

.header-search-icon svg {
    width: 15px;
    height: 15px;
}

.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.header-search-kbd {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-family: inherit;
    line-height: 1.4;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: min(100vw - 24px, 320px);
    max-height: 320px;
    overflow: auto;
    padding: 6px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    z-index: 1300;
}

.header-search-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
}

.header-search-item:hover,
.header-search-item.active {
    background: #e8f0fe;
}

.header-search-item small {
    color: #94a3b8;
    font-size: 11px;
}

.header-search-empty {
    padding: 12px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: none;
}

.header-title {
    font-size: 13px;
    letter-spacing: 0;
    color: #ffffff;
    font-weight: 600;
}

.gradient-text {
    background: none;
    color: rgba(255, 255, 255, 0.78);
    -webkit-text-fill-color: currentColor;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible,
.header-icon-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.header-music-slot {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-music {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 280px;
    height: 34px;
    padding: 0 8px 0 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    flex: 0 0 auto;
    z-index: 1;
    -webkit-app-region: no-drag;
}
.header-music.is-playing {
    border-color: rgba(147, 197, 253, 0.55);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.18);
}
.header-music-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}
.header-music-btn {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.header-music-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}
.header-music-play {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.14);
}
.header-music-search-btn {
    margin-left: 0;
}
.header-music-query {
    min-width: 72px;
    width: 88px;
    max-width: 110px;
    height: 24px;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 2px;
}
.header-music-query::placeholder {
    color: rgba(255, 255, 255, 0.72);
}
.header-music-title {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    padding: 0 4px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.header-music-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 24px));
    max-height: min(56vh, 420px);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
    z-index: 12020;
    overflow: hidden;
}
.header-music-panel[hidden] { display: none !important; }
.header-music-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 8px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.header-music-tab {
    height: 30px;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.header-music-tab:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}
.header-music-tab.is-active {
    color: #1d4ed8;
    background: #fff;
    box-shadow: inset 0 -2px 0 #2563eb;
}
.header-music-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    font-size: 12px;
}
.header-music-panel-head strong { color: #0f172a; }
.header-music-panel-head span { color: #64748b; }
.header-music-panel-search {
    display: flex;
    gap: 8px;
    padding: 10px 12px 6px;
}
.header-music-panel-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
}
.header-music-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.header-music-progress-row.in-panel {
    padding: 4px 12px 0;
}
.header-music-progress-row input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 3px;
    accent-color: #2563eb;
    cursor: pointer;
}
.header-music-status {
    padding: 4px 12px 8px;
    font-size: 11px;
    color: #64748b;
}
.header-music-list {
    overflow: auto;
    padding: 4px 8px 10px;
    display: grid;
    gap: 4px;
}
.header-music-empty {
    padding: 20px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}
.header-music-item {
    display: grid;
    gap: 2px;
    text-align: left;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 8px 10px;
    cursor: pointer;
    color: #0f172a;
}
.header-music-item:hover { background: #f1f5f9; }
.header-music-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}
.header-music-item span {
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-music-item small {
    font-size: 11px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .header-music { max-width: 220px; }
    .header-music-query { width: 64px; max-width: 72px; }
}

@media (max-width: 900px) {
    .app-header .header-row-main {
        grid-template-columns: minmax(0, 1fr) minmax(160px, 1fr) auto;
        gap: 8px;
    }
    .header-search-kbd { display: none; }
    .header-music-query { display: none; }
}

.header-env-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.16);
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.header-env-chip.draft {
    background: rgba(127, 29, 29, 0.4);
    border-color: rgba(254, 202, 202, 0.55);
    color: #fee2e2;
}

.connection-status-indicator {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.connection-status-indicator:hover,
.connection-status-indicator:focus-visible {
    background: rgba(0, 0, 0, 0.22);
    outline: none;
}

.connection-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.22);
}

.connection-status-indicator.online .connection-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28), 0 0 10px rgba(34, 197, 94, 0.55);
    animation: connection-blink-green 1.4s ease-in-out infinite;
}

.connection-status-indicator.offline .connection-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28), 0 0 10px rgba(239, 68, 68, 0.5);
    animation: connection-blink-red 1.1s ease-in-out infinite;
}

.connection-status-indicator.degraded .connection-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28), 0 0 10px rgba(245, 158, 11, 0.45);
    animation: connection-blink-amber 1.2s ease-in-out infinite;
}

.connection-status-indicator.checking .connection-status-dot {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.28);
    animation: connection-blink-amber 0.9s ease-in-out infinite;
}

@keyframes connection-blink-green {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28), 0 0 10px rgba(34, 197, 94, 0.55); }
    50% { opacity: 0.45; transform: scale(0.86); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12), 0 0 4px rgba(34, 197, 94, 0.25); }
}

@keyframes connection-blink-red {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28), 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { opacity: 0.35; transform: scale(0.84); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12), 0 0 4px rgba(239, 68, 68, 0.22); }
}

@keyframes connection-blink-amber {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.header-apps-menu {
    position: fixed;
    z-index: 10050;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.header-apps-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
}

.header-apps-item:hover,
.header-apps-item:focus-visible {
    background: #f3f6fb;
    outline: none;
}

.header-apps-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: #eef2f7;
    color: #1d63ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-apps-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-apps-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-top: 1px;
}

.header-apps-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.header-apps-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.header-apps-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1d63ed;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.header-user {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    gap: 6px;
}

.header-user:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: none;
}

.header-user-label {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.header-right,
.header-right-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-left: 0;
    flex-shrink: 0;
    justify-self: end;
    z-index: 2;
}

.app-header .window-controls.in-header {
    position: static;
    height: 36px;
    color: #ffffff;
}

.app-header .window-control-btn {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.app-header .window-control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-header .window-control-btn.is-active {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.app-header .window-control-btn.window-close:hover {
    background: #e81123;
    color: #ffffff;
}

.global-share-button {
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 13px;
    font-weight: 700;
}

.global-share-button:hover {
    background: #f3f4f6 !important;
}

.app-header .environment-switcher {
    height: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

.app-header .header-status-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    flex: 0 1 auto;
    overflow: visible;
}

.app-header .header-row-main .display-adjustment-pill {
    min-height: 28px;
    max-width: 160px;
    padding: 0 10px;
    font-size: 11px;
}

.app-header .data-center-pill,
.app-header .display-adjustment-pill,
.app-header .db-status-pill,
.app-header .sync-status-pill {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    max-width: 100%;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

.app-header .data-center-pill > *,
.app-header .display-adjustment-pill > * {
    position: static;
    flex: 0 0 auto;
}

.app-header .environment-switcher:hover {
    background: rgba(0, 0, 0, 0.18);
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.header-user-icon,
.header-user-caret,
.dropdown-icon,
.settings-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    position: fixed;
    right: 20px;
    min-width: 172px;
    z-index: 10001;
    padding: 6px;
    background: var(--color-card-solid);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text);
}

.dropdown-item:hover {
    background: var(--color-hover);
    color: var(--color-primary);
}

.dropdown-item.danger {
    color: var(--color-danger);
}

.dropdown-item.danger:hover {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px;
}

.page-container {
    max-width: none;
    padding: 20px 24px 28px;
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: transparent;
}

.app-footer {
    height: var(--footer-height);
    min-height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f4f6f8;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid #e5e8ec;
    padding: 0 14px;
    color: #5b6573;
    font-size: 11px;
    z-index: 1100;
}

.app-footer .footer-left,
.app-footer .footer-center,
.app-footer .footer-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-footer .footer-center {
    flex: 1;
    justify-content: center;
}

.app-footer .footer-sep {
    width: 1px;
    height: 12px;
    background: #cfd5dd;
}

.app-footer .footer-engine {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.app-footer .footer-engine i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}

.app-footer .footer-engine.online {
    color: #15803d;
}

.app-footer .footer-engine.online i {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.app-footer .footer-engine.offline {
    color: #b91c1c;
}

.app-footer .footer-engine.offline i {
    background: #ef4444;
}

.card,
.delivery-form,
.customer-card,
.report-card,
.backup-card,
.stat-card,
.quick-action-btn,
.settings-info-item,
.delivery-print-preview {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: none;
}

.card:hover,
.customer-card:hover,
.report-card:hover,
.backup-card:hover,
.stat-card:hover,
.quick-action-btn:hover {
    transform: none;
    box-shadow: var(--shadow-card-hover);
    border-color: #d1d5db;
}

.page-title {
    margin-bottom: 16px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111827;
}

.page-subtitle {
    font-size: 12px;
    color: var(--color-text-light);
}

.btn {
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none !important;
}

.btn::after {
    display: none;
}

.btn:hover {
    transform: none;
}

.btn-primary {
    background: #1d63ed;
    color: #ffffff;
}

.btn-primary:hover {
    background: #154fc4;
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-hover);
    color: var(--color-text);
    border-color: #cbd5e1;
}

.btn-success {
    background: var(--color-success);
    color: #ffffff;
}

.btn-danger {
    background: var(--color-danger);
    color: #ffffff;
}

.btn-info {
    background: var(--color-info);
    color: #ffffff;
}

.btn-warning {
    background: var(--color-warning);
    color: #ffffff;
}

.btn-sm {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 6px;
}

.btn-icon,
.ink-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #1d63ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.btn-icon:hover,
.btn-icon:focus-visible,
.ink-icon-btn:hover,
.ink-icon-btn:focus-visible,
.ink-icon-btn.is-active,
.btn-icon.is-active {
    transform: none;
    background: rgba(29, 99, 237, 0.12);
    color: #1d63ed;
    border: 0;
    outline: none;
}

.ink-icon-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-control,
input,
select,
textarea {
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-text);
    font-family: var(--font-family);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #1d63ed;
    box-shadow: var(--shadow-glow);
    outline: none;
}

.table,
.goods-list table {
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin: 14px 0;
}

.table th,
.goods-list th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: #64748b;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.contract-table th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table td,
.goods-list td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    background: transparent;
    transition: background .16s ease, color .16s ease;
}

.table tr:hover td,
.goods-list tr:hover td {
    background: #f8fafc;
}

.table tr,
.goods-list tr,
.contract-table tr {
    transition: background .16s ease;
}

.row-actions,
.contract-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
    opacity: .86;
    transition: opacity .16s ease, transform .16s ease;
}

.table tr:hover .row-actions,
.contract-table tr:hover .row-actions,
.contract-item:hover .contract-actions {
    opacity: 1;
    transform: translateY(-1px);
}

.table-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
}

.status-badge.success { color: #15803d; background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .2); }
.status-badge.warning { color: #b45309; background: rgba(217, 119, 6, .1); border-color: rgba(217, 119, 6, .2); }
.status-badge.danger { color: #b91c1c; background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .18); }
.status-badge.info { color: #1d4ed8; background: rgba(29, 99, 237, .1); border-color: rgba(29, 99, 237, .2); }

.import-validation-panel {
    display: grid;
    gap: 12px;
    color: var(--color-text);
}

.import-validation-summary {
    padding: 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .18);
}

.import-validation-summary strong,
.import-validation-summary span {
    display: block;
}

.import-validation-summary strong {
    color: #b91c1c;
    margin-bottom: 4px;
}

.import-validation-errors {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
}

.import-validation-row {
    display: grid;
    grid-template-columns: 80px minmax(90px, 1fr) 1.5fr;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-card-solid);
    font-size: 13px;
}

.import-validation-row b { color: var(--color-text); }
.import-validation-row span { color: var(--color-primary); font-weight: 700; }
.import-validation-row em { color: #e8a0a0; font-style: normal; }
.import-validation-panel p { margin: 0; color: var(--color-text-light); font-size: 13px; }

.filter-btn {
    border-radius: 6px;
    box-shadow: none;
}

.filter-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: none;
}

.empty-state {
    padding: 36px 20px;
}

.empty-state .empty-icon {
    font-size: 34px;
}

.app-container.database-setup-mode .sidebar-menu {
    flex: 0;
}

.app-container.database-setup-mode .header-user {
    pointer-events: none;
    opacity: 0.72;
}

.app-container.database-setup-mode .page-container {
    max-width: none;
    width: 100%;
    margin: 0;
}

.settings-page {
    max-width: none;
    width: 100%;
    margin: 0;
}

.settings-info-grid {
    gap: 10px;
}

.settings-info-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.settings-status-icon svg {
    width: 15px;
    height: 15px;
}

.settings-status-icon {
    color: currentColor;
}

.settings-btn-group {
    gap: 10px;
}

.settings-warning {
    border-radius: 8px;
}

.inline-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* 内容区图标：蓝色描边 + 圆形浅底 */
.row-actions .btn-icon,
.list-toolbar-actions .btn-icon,
.page-toolbar .btn-icon,
.ink-icon-toolbar .ink-icon-btn {
    color: #1d63ed;
}

.sidebar-footer-item .footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d63ed;
}

.sidebar-footer-item:hover .footer-icon {
    background: rgba(29, 99, 237, 0.12);
}

.btn .inline-icon,
.btn-icon .inline-icon {
    width: 16px;
    height: 16px;
}

.btn-icon .inline-icon {
    margin: auto;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--color-input-bg);
    color: var(--color-text-lighter);
}

.empty-icon .inline-icon,
.backup-icon .inline-icon {
    width: 28px;
    height: 28px;
}

.customer-contact .inline-icon,
.contract-amount .inline-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
}

.backup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    margin-bottom: 14px;
    background: var(--color-input-bg);
    color: var(--color-primary);
}




/* 数据库在线状态 */
.db-status-pill { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:999px; font-size:12px; font-weight:700; border:1px solid var(--color-border); background:var(--color-input-bg); color:var(--color-text-light); white-space:nowrap; }
.db-status-dot { width:8px; height:8px; border-radius:50%; background:#94a3b8; box-shadow:0 0 0 3px rgba(148,163,184,.16); }
.db-status-pill.online { color:#047857; border-color:rgba(16,185,129,.25); background:rgba(16,185,129,.08); }
.db-status-pill.online .db-status-dot { background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.16); }
.db-status-pill.offline { color:#b91c1c; border-color:rgba(239,68,68,.25); background:rgba(239,68,68,.08); }
.db-status-pill.offline .db-status-dot { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.16); }
.sync-status-pill { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:999px; font-size:12px; font-weight:700; border:1px solid var(--color-border); background:var(--color-input-bg); color:var(--color-text-light); white-space:nowrap; }
.settings-sync .settings-sync-status-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
}
.settings-sync .settings-sync-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.settings-sync .sync-status-pill {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    align-items: flex-start;
    border-radius: 12px;
    padding: 10px 14px;
    overflow: visible;
    line-height: 1.45;
}
.settings-sync .sync-status-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.settings-sync .sync-status-copy > strong {
    font-size: 13px;
    font-weight: 800;
}
.sync-status-pill .sync-status-detail { font-size:11px; font-weight:500; opacity:.85; }
.settings-sync .sync-status-detail {
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
    opacity: .9;
}
.sync-status-pill.success { color:#047857; border-color:rgba(16,185,129,.25); background:rgba(16,185,129,.08); }
.sync-status-pill.success .db-status-dot { background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.16); }
.sync-status-pill.warning { color:#b45309; border-color:rgba(245,158,11,.25); background:rgba(245,158,11,.09); }
.sync-status-pill.warning .db-status-dot { background:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.16); }
.sync-status-pill.danger { color:#b91c1c; border-color:rgba(239,68,68,.25); background:rgba(239,68,68,.09); }
.sync-status-pill.danger .db-status-dot { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.16); }
.sync-status-pill.info { color:#0369a1; border-color:rgba(14,165,233,.22); background:rgba(14,165,233,.09); }
.sync-status-pill.info .db-status-dot { background:#0ea5e9; box-shadow:0 0 0 3px rgba(14,165,233,.16); }
.sync-status-pill.syncing { color:#0f766e; border-color:rgba(13,148,136,.22); background:rgba(13,148,136,.08); }
.sync-status-pill.syncing .db-status-dot { background:#0d9488; animation:pulse 1s ease-in-out infinite; }

@media (max-width: 720px) {
    .app-header { padding:0 12px; }
    .header-left { gap:0; }
    .header-title { display:none; }
    .header-right { gap:6px; margin-left:auto; min-width:0; }
    .db-status-pill span:last-child { display:none; }
    .db-status-pill { padding:8px; }
    .data-center-pill { padding:8px; gap:0; }
    .data-center-pill > strong,
    .data-center-pill > i,
    .data-center-pill > span:not(.db-status-dot) { display:none; }
    .display-adjustment-pill { padding:8px 9px; gap:4px; }
    .display-adjustment-pill > strong,
    .display-adjustment-pill > i { display:none; }
    .header-user { padding:0 9px; }
    .header-user > span:last-child { display:none; }
    .header-status-group .sync-status-pill span:last-child,
    .header-status-group .sync-status-detail {
        display:none;
    }
    .header-status-group {
        gap: 4px;
    }
}

/* AI智能助手 / AI 自动化工作台 */
.ai-assistant-btn { border:1px solid rgba(3,105,161,.22); background:#e0f2fe; color:#0369a1; border-radius:8px; padding:8px 13px; font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap; }
.ai-assistant-btn:hover { background:#bae6fd; transform:none; }
.ai-assistant-panel { display:flex; flex-direction:column; gap:14px; }
.ai-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.ai-summary-grid div { border:1px solid var(--color-border); border-radius:8px; padding:12px; background:var(--color-card-solid); }
.ai-summary-grid span { display:block; color:var(--color-text-light); font-size:12px; margin-bottom:6px; }
.ai-summary-grid strong { color:var(--primary); font-size:18px; }
.ai-suggestion-list { display:grid; gap:8px; }
.ai-suggestion-list p { margin:0; padding:10px 12px; border-radius:8px; background:#f1f5f9; color:var(--color-text); font-size:13px; }
#ai-report-text,.ai-ops-report { width:100%; min-height:120px; border:1px solid var(--color-border); border-radius:8px; padding:10px; resize:vertical; font-family:var(--font-family); font-size:13px; color:var(--color-text); background:var(--color-input-bg); box-sizing:border-box; }

.ai-ops-panel { display:flex; flex-direction:column; gap:14px; }
.ai-ops-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:10px; background:linear-gradient(145deg,#0f172a 0%,#1e3a5f 55%,#0369a1 140%); color:#f8fafc; }
.ai-ops-eyebrow { font-size:11px; font-weight:700; letter-spacing:.04em; color:#94a3b8; text-transform:uppercase; }
.ai-ops-title { margin:4px 0 0; font-size:18px; font-weight:800; letter-spacing:-.02em; }
.ai-ops-sub { margin:6px 0 0; font-size:12px; color:#cbd5e1; line-height:1.45; }
.ai-ops-badge { flex-shrink:0; min-height:32px; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); font-size:12px; font-weight:700; color:#e0f2fe; }
.ai-ops-kpi-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
@media (min-width:640px){ .ai-ops-kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.ai-ops-kpi { border:1px solid #e2e8f0; border-radius:8px; padding:12px; background:#fff; }
.ai-ops-kpi span { display:block; font-size:12px; color:#64748b; font-weight:600; margin-bottom:4px; }
.ai-ops-kpi strong { font-size:18px; font-weight:800; color:#0f172a; font-variant-numeric:tabular-nums; }
.ai-ops-kpi.tone-warn strong { color:#d97706; }
.ai-ops-kpi.tone-danger strong { color:#dc2626; }
.ai-ops-kpi.tone-ok strong { color:#047857; }
.ai-ops-sec { font-size:13px; font-weight:800; color:#334155; }
.ai-ops-tasks { display:grid; gap:8px; }
.ai-ops-task { width:100%; display:flex; align-items:center; gap:12px; text-align:left; border:1px solid #e2e8f0; border-radius:10px; background:#fff; padding:12px 14px; cursor:pointer; font:inherit; color:inherit; transition:border-color .15s ease, background-color .15s ease; }
.ai-ops-task:hover,.ai-ops-task:active { border-color:#7dd3fc; background:#f0f9ff; }
.ai-ops-task.level-high { border-left:3px solid #dc2626; }
.ai-ops-task.level-medium { border-left:3px solid #d97706; }
.ai-ops-task.level-low { border-left:3px solid #0369a1; }
.ai-ops-task.level-ok { border-left:3px solid #047857; }
.ai-ops-task-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ai-ops-task-main strong { font-size:14px; font-weight:700; color:#0f172a; }
.ai-ops-task-main em { font-style:normal; font-size:12px; color:#64748b; line-height:1.4; }
.ai-ops-task-cta { flex-shrink:0; min-height:32px; padding:0 12px; border-radius:8px; background:#0369a1; color:#fff; font-size:12px; font-weight:700; display:inline-flex; align-items:center; }

.ai-ops-llm-box { display:grid; gap:10px; padding:12px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; }
.ai-ops-llm-cfg { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
@media (min-width:720px){ .ai-ops-llm-cfg { grid-template-columns:140px 1fr 1.2fr auto; } }
.ai-ops-chat { max-height:220px; overflow:auto; display:grid; gap:8px; padding:8px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; }
.ai-ops-chat-msg { padding:8px 10px; border-radius:8px; font-size:13px; line-height:1.5; white-space:pre-wrap; word-break:break-word; }
.ai-ops-chat-msg.is-user { background:#e0f2fe; color:#0c4a6e; justify-self:end; max-width:92%; }
.ai-ops-chat-msg.is-assistant { background:#f1f5f9; color:#0f172a; }
.ai-ops-chat-msg.is-sys { background:transparent; color:#64748b; font-size:12px; }
.ai-ops-chat-input { display:flex; gap:8px; }
.ai-ops-chat-input .form-control { flex:1; min-height:40px; }
.ai-ops-chips { display:flex; flex-wrap:wrap; gap:6px; }
.ai-ops-chip { min-height:32px; padding:0 10px; border-radius:999px; border:1px solid #e2e8f0; background:#fff; color:#0f172a; font-size:12px; font-weight:700; cursor:pointer; }
.ai-ops-chip:hover { border-color:#7dd3fc; background:#f0f9ff; transform:none; }
.ai-ops-jumps { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.ai-ops-jump { min-height:32px; padding:0 12px; border-radius:8px; border:0; background:#0369a1; color:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.ai-ops-jump:hover { background:#075985; transform:none; }
.ai-ops-hint { margin:0; font-size:12px; color:#64748b; line-height:1.45; }
.header-ask-btn { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; min-height:36px; }
.header-ask-btn svg { width:14px; height:14px; }

@media (max-width:720px){ .ai-assistant-btn { padding:8px 10px; } }
@media (prefers-reduced-motion: reduce) {
  .ai-ops-task { transition: none; }
}
.db-status-pill.checking {
    background: rgba(14, 165, 233, 0.10);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.22);
}
.db-status-pill.checking .db-status-dot {
    background: #0ea5e9;
    animation: pulse 1s ease-in-out infinite;
}
.link-pair-card {
    display: grid;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--link-bg, rgba(15, 143, 131, 0.08));
    border: 1px solid var(--link-color, #0f8f83);
    border-left: 4px solid var(--link-color, #0f8f83);
    color: var(--link-text, #0f766e);
}
.link-pair-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    padding: 5px 10px 5px 6px;
    border-radius: 6px;
    background: var(--link-bg, rgba(99, 102, 241, 0.08));
    border: 1px solid var(--link-color, #6366f1);
    border-left: 4px solid var(--link-color, #6366f1);
    color: var(--link-text, #3730a3);
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
    white-space: nowrap;
}
button.link-pair-chip,
button.link-pair-card {
    font: inherit;
    text-align: left;
    cursor: pointer;
}
button.link-pair-chip.is-jumpable:hover,
button.link-pair-card.is-jumpable:hover {
    filter: brightness(0.97);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}
button.link-pair-chip.is-jumpable:focus-visible,
button.link-pair-card.is-jumpable:focus-visible {
    outline: 2px solid var(--link-color, #0f766e);
    outline-offset: 2px;
}
.ilog-item.link-jump-flash,
.contract-item.link-jump-flash,
.quotation-item.link-jump-flash {
    animation: link-jump-flash 1.2s ease;
}
@keyframes link-jump-flash {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
    35% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35); background-color: rgba(254, 243, 199, 0.55); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.link-pair-chip i {
    font-style: normal;
    background: var(--link-color, #6366f1);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1.3;
}
.link-pair-chip b {
    font-weight: 800;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 0 0 auto;
    color: var(--link-text, #3730a3);
}
.link-pair-chip .link-pair-rates {
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    color: var(--link-text, #3730a3);
    opacity: 0.95;
}
.link-pair-chip.unlinked {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.35);
    border-left-color: #f59e0b;
    color: #b45309;
    font-weight: 700;
    padding: 5px 10px;
}
.acceptance-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
@media (max-width: 900px) {
    .acceptance-address-grid {
        grid-template-columns: 1fr;
    }
}
.link-pair-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}
.link-pair-head span {
    background: var(--link-color, #0f8f83);
    color: #fff;
    border-radius: 999px;
    padding: 1px 6px;
    white-space: nowrap;
}
.link-pair-body {
    font-size: 11px;
    line-height: 1.35;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-pair-profit {
    font-size: 11px;
    font-weight: 800;
    color: var(--link-text, #0f766e);
    white-space: nowrap;
}
.link-pair-card.unlinked {
    min-width: 0;
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.35);
    border-left-color: #f59e0b;
    color: #b45309;
}
.link-pair-card.unlinked span {
    font-size: 11px;
    color: var(--color-text-lighter);
}

.business-list-scroll {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-card-solid, var(--color-card));
}
.business-list-table {
    margin: 0;
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}
.business-list-table th,
.business-list-table td {
    padding: 8px 8px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.business-list-table th {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-text-light);
    background: rgba(15, 23, 42, 0.03);
}
.business-list-table .cell-clip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.business-list-table .col-partner,
.contract-table .col-partner {
    width: 96px;
    max-width: 96px;
    min-width: 80px;
}
.business-list-table th.col-partner,
.contract-table th.col-partner {
    white-space: nowrap;
}
.business-list-table .col-type,
.business-list-table .col-status {
    text-align: center;
}
.business-list-table .col-actions,
.business-list-table td.col-actions,
.business-list-table th.col-actions {
    white-space: nowrap;
    overflow: visible;
    min-width: 196px;
    width: 210px;
    max-width: none;
    vertical-align: middle;
}
.business-list-table .col-link {
    overflow: hidden;
    min-width: 240px;
    max-width: 320px;
    vertical-align: middle;
}
.business-list-table .col-link .link-pair-chip {
    max-width: 100%;
    overflow: hidden;
}
.business-list-table .col-link .link-pair-chip .link-pair-rates {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.business-list-table .row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    flex-wrap: nowrap;
    max-width: none;
    opacity: 1;
}
.business-list-table .row-actions .btn-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 8px !important;
    flex: 0 0 auto;
    box-shadow: none !important;
    line-height: 1;
    overflow: visible;
}
.business-list-table .row-actions .btn-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}
.business-list-table .row-actions .btn-icon:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08) !important;
}
.business-list-table .row-actions .btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-header-actions .btn {
    white-space: nowrap;
}

/* LOGO 编辑器 */
.logo-editor {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.logo-editor-hint {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-lighter);
    text-align: center;
    line-height: 1.5;
}
.logo-editor-stage {
    display: flex;
    justify-content: center;
    width: 100%;
}
.logo-editor-viewport {
    width: 280px;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%) 0 0 / 16px 16px,
        linear-gradient(-45deg, rgba(255,255,255,.04) 25%, transparent 25%) 0 8px / 16px 16px,
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.04) 75%) 8px -8px / 16px 16px,
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.04) 75%) -8px 0 / 16px 16px,
        #262d3c;
    border: 1px solid var(--color-border);
    cursor: grab;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    user-select: none;
}
.logo-editor-viewport:active {
    cursor: grabbing;
}
.logo-editor-viewport img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    transform-origin: 0 0;
    pointer-events: none;
}
.logo-editor-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    font-size: 14px;
    pointer-events: none;
}
.logo-editor-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.logo-editor-upload-btn {
    cursor: pointer;
    margin: 0;
}
.logo-editor-zoom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-secondary, #64748b);
}
.logo-editor-zoom input[type="range"] {
    width: 120px;
}
.logo-editor-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-secondary, #64748b);
}
.logo-editor-mini {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border: 1px solid var(--color-border, #e5e7eb);
}
.logo-editor-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.environment-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(95, 173, 134, 0.35);
    border-radius: 8px;
    background: rgba(95, 173, 134, 0.12);
    color: #8fd4b0;
    font-weight: 700;
    cursor: pointer;
    height: 34px;
    white-space: nowrap;
}

/* 顶栏「分享」按钮样式见上方 .global-share-button（描边按钮） */

.environment-switcher.draft {
    border-color: rgba(212, 115, 115, 0.4);
    background: rgba(212, 115, 115, 0.14);
    color: #e8a0a0;
}

.draft-environment-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #ef4444;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.draft-environment-warning button {
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 7px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1400px) {
    .app-header { padding: 0 12px; }
    .header-left { gap: 8px; }
    .header-title { max-width: 160px; }
    .header-right { gap: 7px; }
    .draft-environment-detail,
    #display-adjustment-status-pill { display: none; }
    .header-user { max-width: 145px; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 1120px) {
    .header-title { display: none; }
    .app-header .header-row-main .display-adjustment-pill > strong,
    .app-header .header-row-main .display-adjustment-pill > i { display: none; }
    .draft-environment-warning { padding: 0 8px; }
}
