/* Kaiqian CRM application styles. Extracted from index.html for browser caching. */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif; background: #f1f5f9; -webkit-font-smoothing: antialiased; }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* 登录页 - 深色简约毛玻璃 */
        .login-container {
            height: 100vh; display: flex; justify-content: center; align-items: center;
            background-color: #0b0f19;
            background-image:
                radial-gradient(circle at 80% 10%, rgba(99,102,241,0.18) 0%, transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(168,85,247,0.12) 0%, transparent 40%),
                linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
            background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
            position: relative; overflow: hidden;
        }
        .login-box {
            width: 400px; padding: 44px 40px;
            background: rgba(30,41,59,0.55);
            backdrop-filter: blur(32px) saturate(140%);
            -webkit-backdrop-filter: blur(32px) saturate(140%);
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 24px 64px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
            position: relative; z-index: 1;
        }
        .login-logo { text-align: center; margin-bottom: 28px; }
        .login-logo svg {
            display: inline-block; width: 52px; height: 52px; padding: 12px;
            background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(168,85,247,0.9));
            border-radius: 14px;
            box-shadow: 0 8px 20px -4px rgba(99,102,241,0.35);
        }
        .login-box h2 {
            text-align: center; margin-bottom: 8px;
            color: #f8fafc; font-size: 24px; font-weight: 700; letter-spacing: -0.3px;
        }
        .login-subtitle { text-align: center; color: #94a3b8; font-size: 14px; margin-bottom: 32px; font-weight: 400; }
        .login-box .el-form-item { margin-bottom: 20px; }
        .login-box .el-form-item__error { color: #f87171; padding-top: 4px; }
        .login-box .el-input__wrapper {
            background: rgba(255,255,255,0.04);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 1px 14px;
            transition: all 0.25s;
        }
        .login-box .el-input__wrapper:hover {
            background: rgba(255,255,255,0.07);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
        }
        .login-box .el-input__wrapper.is-focus {
            background: rgba(255,255,255,0.06);
            box-shadow: inset 0 0 0 1px rgba(99,102,241,0.6), 0 0 0 3px rgba(99,102,241,0.12);
        }
        .login-box .el-input__inner {
            border: none; background: transparent; box-shadow: none;
            height: 44px; line-height: 44px; padding: 0;
            color: #f1f5f9; font-size: 15px;
        }
        .login-box .el-input__inner::placeholder { color: #64748b; }
        .login-box .el-input__prefix-inner { color: #64748b; }
        .login-box .el-button--primary {
            border-radius: 10px; height: 46px; font-size: 15px; font-weight: 600;
            background: #4f46e5; border: none;
            transition: all 0.2s;
            letter-spacing: 2px;
        }
        .login-box .el-button--primary:hover {
            background: #4338ca;
            box-shadow: 0 8px 24px -6px rgba(79,70,229,0.45);
            transform: translateY(-1px);
        }
        .login-box .el-button--primary:active { transform: translateY(0); }
        .login-footer { text-align: center; margin-top: 24px; color: #475569; font-size: 12px; letter-spacing: 0.3px; }
        .auth-loading-box { width: 320px; padding: 36px 32px; text-align: center; }
        .auth-loading-text { margin-top: 18px; color: #cbd5e1; font-size: 15px; font-weight: 500; }
        .auth-loading-dot { width: 28px; height: 28px; margin: 20px auto 0; border: 3px solid rgba(148,163,184,0.28); border-top-color: #818cf8; border-radius: 50%; animation: authSpin 0.8s linear infinite; }
        @keyframes authSpin { to { transform: rotate(360deg); } }

        /* 侧边栏 */
        .el-aside { background: #0f172a; color: #fff; transition: width 0.3s; border-right: 1px solid rgba(255,255,255,0.05); }
        .el-aside .logo { height: 68px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; letter-spacing: 0.5px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #f8fafc; gap: 10px; }
        .el-menu { border-right: none; background: transparent !important; }
        .el-menu-item, .el-sub-menu__title { color: #94a3b8; height: 48px; line-height: 48px; margin: 4px 12px; border-radius: 10px; font-size: 14px; transition: all 0.2s; }
        .el-menu-item:hover, .el-sub-menu__title:hover { background: rgba(255,255,255,0.06) !important; color: #e2e8f0; }
        .el-menu-item.is-active { color: #818cf8; background: rgba(99,102,241,0.12) !important; font-weight: 500; }
        .el-menu-item.is-active::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: linear-gradient(180deg, #6366f1, #8b5cf6); border-radius: 0 4px 4px 0; }
        .el-menu-item .el-icon { color: inherit; margin-right: 12px; font-size: 18px; }

        /* 头部 */
        .el-header { background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,232,240,0.6); display: flex; align-items: center; justify-content: space-between; z-index: 10; height: 64px !important; }
        .page-title { font-size: 22px; font-weight: 700; color: #0f172a; letter-spacing: -0.3px; }
        .el-header .el-tag { border-radius: 8px; font-weight: 500; padding: 0 12px; height: 28px; }

        /* 主内容 */
        .main-content { padding: 24px; }
        .card-list { margin-bottom: 24px; }

        /* 搜索栏 */
        .search-bar { background: #fff; padding: 24px; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; }
        .search-bar .el-input__wrapper { box-shadow: 0 0 0 1px #e2e8f0 inset; }
        .search-bar .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px #6366f1 inset, 0 0 0 3px rgba(99,102,241,0.08); }
        .search-bar .el-button { border-radius: 10px; font-weight: 500; }
        .search-bar .el-button--primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); border: none; }

        /* 表格卡片 */
        .table-card { background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; }
        .table-card .el-table { border-radius: 12px; overflow: hidden; }
        .table-card .el-table th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 13px; height: 48px; }
        .table-card .el-table td { color: #334155; font-size: 14px; height: 52px; }
        .table-card .el-table--enable-row-hover .el-table__body tr:hover > td { background: #f8fafc; }
        .table-card .el-table__header-wrapper { border-radius: 12px 12px 0 0; }

        /* 分页 */
        .pagination { margin-top: 24px; display: flex; justify-content: flex-end; }
        .pagination .el-pagination .el-pager li { border-radius: 8px; font-weight: 500; }
        .pagination .el-pagination button { border-radius: 8px; }
        .pagination .el-pagination.is-background .el-pager li:not(.is-disabled).is-active { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

        /* 统计卡片 */
        .stat-card { background: #fff; padding: 24px; border-radius: 16px; display: flex; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #f1f5f9; transition: all 0.3s; }
        .stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); }
        .stat-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-right: 18px; flex-shrink: 0; }
        .stat-info h3 { font-size: 28px; margin-bottom: 6px; color: #0f172a; font-weight: 700; letter-spacing: -0.5px; }
        .stat-info p { color: #64748b; font-size: 14px; font-weight: 500; }

        /* 待办事项 */
        .todo-card { padding: 20px 24px; margin-bottom: 0; }
        .todo-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed #e2e8f0; }
        .todo-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #f1f5f9; background: #fff; cursor: pointer; transition: all 0.25s ease; min-height: 76px; }
        .todo-item:hover { border-color: #c7d2fe; box-shadow: 0 6px 16px -6px rgba(79,70,229,0.18); transform: translateY(-1px); }
        .todo-item.urgent { background: linear-gradient(135deg,#fff5f5,#ffffff); border-color: #fecaca; }
        .todo-item.urgent:hover { border-color: #fca5a5; box-shadow: 0 6px 16px -6px rgba(239,68,68,0.25); }
        .todo-item.empty { opacity: 0.55; }
        .todo-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .todo-info { flex: 1; min-width: 0; }
        .todo-title { font-weight: 600; font-size: 14px; color: #0f172a; }
        .todo-desc { font-size: 12px; color: #64748b; margin-top: 3px; line-height: 1.4; }
        .todo-count { text-align: right; flex-shrink: 0; line-height: 1; padding-left: 8px; }

        /* 轨迹时间线 */
        .track-timeline { padding: 16px 8px; }
        .track-item { display: flex; margin-bottom: 20px; position: relative; }
        .track-time { width: 150px; color: #64748b; font-size: 13px; flex-shrink: 0; font-weight: 500; font-variant-numeric: tabular-nums; padding-top: 2px; }
        .track-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; margin: 4px 14px 0; flex-shrink: 0; position: relative; z-index: 1; }
        .track-dot.active { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }
        .track-dot::after { content: ''; position: absolute; top: 14px; left: 4px; width: 2px; height: calc(100% + 16px); background: #e2e8f0; border-radius: 1px; }
        .track-item:last-child .track-dot::after { display: none; }
        .track-content { color: #475569; font-size: 14px; line-height: 1.6; padding-top: 1px; }
        .track-content.active { color: #4f46e5; font-weight: 600; }

        /* 弹窗 */
        .el-dialog { border-radius: 20px; overflow: hidden; }
        .el-dialog__header { padding: 24px 24px 16px; margin: 0; border-bottom: 1px solid #f1f5f9; }
        .el-dialog__title { font-weight: 700; color: #0f172a; font-size: 18px; }
        .el-dialog__body { padding: 24px; }
        .el-dialog__footer { padding: 16px 24px 24px; border-top: 1px solid #f1f5f9; }
        .el-dialog .el-button { border-radius: 10px; font-weight: 500; }
        .el-dialog .el-button--primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); border: none; }

        /* 描述列表 */
        .el-descriptions { border-radius: 12px; overflow: hidden; }
        .el-descriptions__body { border-radius: 12px; }

        /* Element Plus 全局微调 */
        .el-tag { border-radius: 6px; font-weight: 500; border: none; }
        .el-tag--success { background: #dcfce7; color: #166534; }
        .el-tag--warning { background: #fef3c7; color: #92400e; }
        .el-tag--danger { background: #fee2e2; color: #991b1b; }
        .el-tag--info { background: #f1f5f9; color: #475569; }
        .el-tag--primary { background: #eef2ff; color: #4338ca; }
        .el-button { border-radius: 10px; font-weight: 500; transition: all 0.2s; }
        .el-button:hover { transform: translateY(-1px); }
        .el-button--link, .el-button.is-link, .el-button.is-text { border-radius: 0; transform: none; padding: 0; height: auto; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
        .el-button--link:hover, .el-button.is-link:hover, .el-button.is-text:hover,
        .el-button--link:focus, .el-button.is-link:focus, .el-button.is-text:focus { transform: none !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important; text-decoration: underline; }
        .el-button--link.el-button--primary:hover, .el-button.is-link.el-button--primary:hover { color: #4338ca; }
        .el-button--link.el-button--danger:hover, .el-button.is-link.el-button--danger:hover { color: #b91c1c; }
        .el-button--primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); border: none; }
        .el-button--primary:hover { background: linear-gradient(135deg, #4338ca, #6d28d9); box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
        .el-button--danger { background: linear-gradient(135deg, #ef4444, #dc2626); border: none; color: #fff; }
        .el-button--danger:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
        .el-button--success { background: linear-gradient(135deg, #22c55e, #16a34a); border: none; color: #fff; }
        .el-button--success:hover { background: linear-gradient(135deg, #16a34a, #15803d); }
        .el-button--warning { background: linear-gradient(135deg, #f59e0b, #d97706); border: none; color: #fff; }
        .el-button--warning:hover { background: linear-gradient(135deg, #d97706, #b45309); }
        .el-input__inner { border-radius: 10px; }
        .el-input__wrapper { border-radius: 10px; box-shadow: 0 0 0 1px #e2e8f0 inset; transition: all 0.2s; }
        .el-input__wrapper:hover { box-shadow: 0 0 0 1px #cbd5e1 inset; }
        .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px #818cf8 inset, 0 0 0 3px rgba(99,102,241,0.08); }
        .el-textarea__inner { border-radius: 10px; }
        .el-textarea__inner:focus { box-shadow: 0 0 0 1px #818cf8, 0 0 0 3px rgba(99,102,241,0.08); }
        .el-radio-button__inner { border-radius: 10px !important; }
        .el-input-number .el-input__inner { border-radius: 10px; }
        .el-select .el-input__wrapper { border-radius: 10px; }
        .el-empty__description { color: #94a3b8; }
        .el-divider { border-color: #f1f5f9; }
        .el-descriptions__cell { padding: 14px 18px !important; }
        .el-form-item__label { color: #475569; font-weight: 500; }
        .el-form--inline .el-form-item { margin-right: 16px; }
        .el-link { font-weight: 500; }


        .settings-page { max-width: 1280px; margin: 0 auto; }
        .settings-grid { column-count: 2; column-gap: 18px; }
        .settings-grid > .table-card { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 18px !important; min-width: 0; }
        .settings-page > .table-card { margin: 0 !important; min-width: 0; }
        .settings-page h3 { margin-top: 0; }
        .settings-page .el-form-item { margin-bottom: 16px; }
        .settings-page .el-input { width: min(100%, 420px) !important; }
        .settings-page .el-input-number { width: 150px !important; }
        .settings-page .el-radio-group { flex-wrap: wrap; gap: 6px; }
        .settings-page .el-form-item__content { min-width: 0; }
        .settings-page .el-form-item__content > span { display: inline-block; margin-top: 6px; line-height: 1.5; }
        .backup-panel { margin-top: 0 !important; padding: 0 !important; overflow:hidden; }
        .backup-panel__header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 22px 16px; border-bottom:1px solid #e8edf3; }
        .backup-panel__title { display:flex; align-items:center; gap:9px; margin:0; font-size:18px; }
        .backup-panel__subtitle { margin:5px 0 0; color:#64748b; font-size:13px; line-height:1.5; }
        .backup-panel__actions { display:flex; gap:10px; flex-shrink:0; }
        .backup-workflows { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid #e8edf3; }
        .backup-workflow { display:grid; grid-template-columns:40px minmax(0,1fr); align-content:start; gap:12px; min-height:190px; padding:20px 22px; }
        .backup-workflow + .backup-workflow { border-left:1px solid #e8edf3; }
        .backup-workflow__icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px; color:#2563eb; background:#eff6ff; border-radius:6px; }
        .backup-workflow--restore .backup-workflow__icon { color:#d4380d; background:#fff2f0; }
        .backup-workflow__body { min-width:0; }
        .backup-workflow__title { margin:0 0 5px; color:#1e293b; font-size:15px; font-weight:650; }
        .backup-workflow__description { min-height:40px; margin:0 0 12px; color:#64748b; font-size:12px; line-height:1.55; }
        .backup-workflow__control { display:flex; align-items:center; gap:8px; }
        .backup-workflow__control .el-select { width:100%; min-width:0; }
        .backup-workflow__meta { margin-top:9px; color:#64748b; font-size:12px; line-height:1.5; }
        .backup-workflow__meta strong { color:#334155; font-weight:600; }
        .backup-records__header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 22px 11px; }
        .backup-records__title { margin:0; color:#1e293b; font-size:15px; }
        .backup-records__count { color:#94a3b8; font-size:12px; }
        .backup-records__table { padding:0 22px 22px; }
        .backup-notice { display:flex; align-items:center; gap:8px; padding:9px 12px; margin:14px 22px 0; color:#8a5a00; background:#fff8e8; border:1px solid #f6dfad; border-radius:6px; font-size:13px; line-height:1.5; }
        .contact-action-panel { width:100%; padding:10px 12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; }
        .contact-action-panel__value { display:flex; align-items:center; gap:7px; color:#334155; min-height:24px; overflow-wrap:anywhere; }
        .contact-action-panel__value a { color:#2563eb; text-decoration:none; font-weight:600; }
        .contact-action-panel__hint { margin-top:3px; color:#94a3b8; font-size:12px; line-height:1.4; }
        .equipment-params { margin:4px 0 18px; border-top:1px solid #eef2f7; }
        .equipment-params__header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 8px; }
        .equipment-params__hint { margin-top:3px; color:#94a3b8; font-size:12px; font-weight:400; }
        .equipment-param-row { display:grid; grid-template-columns:minmax(150px,1.2fr) minmax(160px,1fr) 110px 32px; gap:10px; align-items:center; margin-bottom:10px; }
        .equipment-param-row--labels { margin-bottom:6px; color:#64748b; font-size:12px; }
        .equipment-param-row .el-input { width:100%; }
        @media (max-width: 1180px) { .settings-grid { column-count:1; } .settings-page { max-width:760px; } .backup-workflows { grid-template-columns:1fr; } .backup-workflow { min-height:0; } .backup-workflow + .backup-workflow { border-left:0; border-top:1px solid #e8edf3; } }
        @media (max-width: 760px) {
            .backup-panel__header { align-items:stretch; flex-direction:column; }
            .backup-panel__actions { justify-content:flex-end; }
            .backup-workflow { grid-template-columns:34px minmax(0,1fr); padding:17px; }
            .backup-workflow__icon { width:34px; height:34px; }
            .backup-workflow__control { align-items:stretch; flex-direction:column; }
            .backup-records__table { padding:0 12px 16px; }
            .equipment-param-row { grid-template-columns:1fr 1fr; }
        }

        [v-cloak] { display: none; }

        .native-drop-zone:hover { border-color: #409eff !important; background: #f0f7ff; }
        .native-drop-zone:hover svg { fill: #409eff; }

        /* Minimal premium admin theme */
        :root {
            --app-bg: #f6f7f9;
            --surface: #ffffff;
            --surface-soft: #f9fafb;
            --surface-muted: #f2f4f7;
            --line: #e5e7eb;
            --line-strong: #d8dde6;
            --text: #111827;
            --text-muted: #667085;
            --text-soft: #98a2b3;
            --accent: #1d4ed8;
            --accent-soft: #eff6ff;
            --danger: #dc2626;
            --success: #16a34a;
            --warning: #d97706;
            --radius: 8px;
            --radius-sm: 6px;
            --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.04);
        }

        /* Keep the document coordinate system unscaled. Element Plus teleports popup
           panels to body, so root zoom/transform would offset selects and pickers. */
        html, body { background: var(--app-bg); color: var(--text); }
        body { font-size: 14px; letter-spacing: 0; }
        ::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 999px; }
        ::-webkit-scrollbar-thumb:hover { background: #98a2b3; }

        .login-container { background: var(--app-bg); background-image: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,247,249,0.96)), radial-gradient(circle at 30% 18%, rgba(29,78,216,0.08), transparent 34%); }
        .login-box { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
        .login-logo svg { background: var(--text); border-radius: var(--radius); box-shadow: none; }
        .login-box h2 { color: var(--text); letter-spacing: 0; }
        .login-subtitle, .login-footer { color: var(--text-muted); }
        .login-box .el-input__wrapper { background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line) inset; }
        .login-box .el-input__wrapper:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong) inset; }
        .login-box .el-input__wrapper.is-focus { background: var(--surface); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 0 3px rgba(29,78,216,0.08); }
        .login-box .el-input__inner { color: var(--text); }
        .login-box .el-button--primary { letter-spacing: 0; background: var(--text); border: 1px solid var(--text); border-radius: var(--radius); box-shadow: none; }
        .login-box .el-button--primary:hover { background: #000; box-shadow: none; transform: none; }

        .el-container { background: var(--app-bg); }
        .el-aside { background: var(--surface); color: var(--text); border-right: 1px solid var(--line); box-shadow: none; }
        .el-aside .logo { height: 64px; justify-content: flex-start; padding: 0 16px; color: var(--text); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; letter-spacing: 0; gap: 8px; }
        .el-menu { padding: 10px 8px; }
        .el-menu-item, .el-sub-menu__title { height: 38px; line-height: 38px; margin: 2px 0; padding: 0 10px !important; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; font-weight: 500; }
        .el-menu-item .el-icon, .el-sub-menu__title .el-icon { margin-right: 8px; font-size: 16px; color: var(--text-soft); }
        .el-menu-item:hover, .el-sub-menu__title:hover { background: var(--surface-soft) !important; color: var(--text); }
        .el-menu-item.is-active { background: var(--accent-soft) !important; color: var(--accent); font-weight: 600; }
        .el-menu-item.is-active .el-icon { color: var(--accent); }
        .el-menu-item.is-active::before { left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); border-radius: 999px; }

        .el-header { height: 60px !important; background: rgba(255,255,255,0.86); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(14px); }
        .page-title { color: var(--text); font-size: 18px; font-weight: 650; letter-spacing: 0; }
        .main-content { padding: 20px; background: var(--app-bg); }
        .card-list { margin-bottom: 18px; }

        .search-bar, .table-card, .stat-card, .todo-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
        .search-bar { padding: 16px; margin-bottom: 16px; }
        .table-card { padding: 18px; }
        .stat-card { padding: 18px; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
        .stat-card:hover { transform: none; border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
        .stat-icon { width: 42px; height: 42px; border-radius: var(--radius); margin-right: 14px; background: var(--surface-muted) !important; color: var(--accent) !important; }
        .stat-icon svg { width: 22px; height: 22px; }
        .stat-info h3 { color: var(--text); font-size: 24px; font-weight: 700; letter-spacing: 0; margin-bottom: 3px; }
        .stat-info p { color: var(--text-muted); font-size: 13px; font-weight: 500; }

        .table-card .el-table { border-radius: var(--radius-sm); border: 1px solid var(--line); }
        .table-card .el-table th, .el-table th.el-table__cell { background: var(--surface-soft); color: #475467; height: 42px; font-size: 13px; font-weight: 600; }
        .table-card .el-table td, .el-table td.el-table__cell { height: 46px; color: #344054; font-size: 13px; }
        .table-card .el-table--enable-row-hover .el-table__body tr:hover > td, .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell { background: var(--surface-soft); }

        .todo-card { padding: 16px; }
        .todo-card-header { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
        .todo-item { min-height: 66px; padding: 12px 14px; }
        .todo-item:hover { transform: none; border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
        .todo-item.urgent { background: #fff; border-color: #fecaca; }
        .todo-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-muted) !important; }
        .todo-title { color: var(--text); }
        .todo-desc { color: var(--text-muted); }

        .el-button { border-radius: var(--radius-sm); font-weight: 500; box-shadow: none !important; transform: none !important; }
        .el-button:hover { transform: none !important; }
        .el-button--primary, .search-bar .el-button--primary, .el-dialog .el-button--primary { background: var(--accent); border-color: var(--accent); }
        .el-button--primary:hover, .search-bar .el-button--primary:hover, .el-dialog .el-button--primary:hover { background: #1e40af; border-color: #1e40af; }
        .el-button--danger { background: var(--danger); border-color: var(--danger); }
        .el-button--success { background: var(--success); border-color: var(--success); }
        .el-button--warning { background: var(--warning); border-color: var(--warning); }

        .el-input__wrapper, .search-bar .el-input__wrapper, .el-select .el-input__wrapper, .el-textarea__inner { border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line) inset; }
        .el-input__wrapper:hover, .search-bar .el-input__wrapper:hover, .el-select .el-input__wrapper:hover { box-shadow: 0 0 0 1px var(--line-strong) inset; }
        .el-input__wrapper.is-focus, .search-bar .el-input__wrapper.is-focus, .el-textarea__inner:focus { box-shadow: 0 0 0 1px var(--accent) inset, 0 0 0 3px rgba(29,78,216,0.08); }
        .el-form-item__label { color: #475467; font-weight: 500; }

        .el-tag { border-radius: 999px; border: 1px solid transparent; font-weight: 500; }
        .el-tag--success { background: #ecfdf3; color: #067647; }
        .el-tag--warning { background: #fffaeb; color: #b54708; }
        .el-tag--danger { background: #fef3f2; color: #b42318; }
        .el-tag--info { background: var(--surface-muted); color: #475467; }
        .el-tag--primary { background: var(--accent-soft); color: var(--accent); }

        .el-dialog { border-radius: 10px; box-shadow: 0 24px 70px rgba(15,23,42,0.18); }
        .el-dialog__header { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
        .el-dialog__title { color: var(--text); font-size: 16px; font-weight: 650; }
        .el-dialog__body { padding: 20px; }
        .el-dialog__footer { padding: 14px 20px 18px; border-top: 1px solid var(--line); }

        .track-dot.active { background: var(--accent); box-shadow: 0 0 0 4px rgba(29,78,216,0.1); }
        .track-content.active { color: var(--accent); }
        .pagination { margin-top: 18px; }
        .pagination .el-pagination.is-background .el-pager li:not(.is-disabled).is-active { background: var(--accent); }
        .native-drop-zone:hover { border-color: var(--accent) !important; background: var(--accent-soft); }
        .native-drop-zone:hover svg { fill: var(--accent); }
        /* 防止缩放或窄屏时整体页面向右溢出 */
        html, body, #app { width: 100%; max-width: 100%; overflow: hidden; }
        * { box-sizing: border-box; }
        .el-container { min-width: 0; max-width: 100%; }
        .el-aside { flex: 0 0 auto; }
        .el-aside + .el-container { flex: 1 1 auto; min-width: 0; overflow: hidden; }
        .el-header { min-width: 0; padding: 0 20px; gap: 12px; overflow: hidden; }
        .page-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .el-header > div:last-child { flex: 0 1 auto; min-width: 0; max-width: 56%; gap: 10px !important; justify-content: flex-end; overflow: hidden; }
        .el-header .el-tag { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
        .el-header .el-button { flex-shrink: 0; }
        .main-content { min-width: 0; width: 100%; max-width: 100%; height: calc(100vh - 60px); overflow: auto; overflow-x: hidden; }
        .main-content .el-row { max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
        .search-bar, .table-card, .stat-card, .todo-card, .el-card { min-width: 0; max-width: 100%; }
        .table-card { overflow: hidden; }
        .table-card .el-table { width: 100% !important; max-width: 100%; }
        .table-card .el-table__body-wrapper, .table-card .el-scrollbar__wrap { overflow-x: auto; }
        /* Desktop density equivalent to the former 90% page zoom, without changing
           the coordinate system used by dropdown, date and time popup panels. */
        @media (min-width: 901px) {
            :root {
                --el-font-size-base: 13px;
                --el-font-size-small: 12px;
                --el-component-size: 29px;
                --el-component-size-small: 22px;
                --el-component-size-large: 36px;
            }
            body { font-size: 13px; }
            .el-aside { width: 158px !important; }
            .el-aside .logo { height: 58px; padding: 0 14px; font-size: 14px; gap: 7px; }
            .el-menu { padding: 9px 7px; }
            .el-menu-item, .el-sub-menu__title {
                height: 34px;
                line-height: 34px;
                padding: 0 9px !important;
                font-size: 12px;
            }
            .el-menu-item .el-icon, .el-sub-menu__title .el-icon { margin-right: 7px; font-size: 15px; }
            .el-header { height: 54px !important; padding: 0 18px; }
            .page-title { font-size: 16px; }
            .main-content { height: calc(100vh - 54px); padding: 18px; }
            .card-list { margin-bottom: 16px; }
            .search-bar { padding: 14px; margin-bottom: 14px; }
            .table-card { padding: 16px; }
            .stat-card { padding: 16px; }
            .table-card .el-table th, .el-table th.el-table__cell { height: 38px; font-size: 12px; }
            .table-card .el-table td, .el-table td.el-table__cell { height: 42px; font-size: 12px; }
            .el-form-item { margin-bottom: 16px; }
            .el-form-item__label, .el-input__inner, .el-textarea__inner,
            .el-select-dropdown__item, .el-cascader-node, .el-button,
            .el-tabs__item, .el-pagination { font-size: 13px; }
            .el-select-dropdown__item { height: 31px; line-height: 31px; }
            .el-button { padding: 7px 13px; }
            .el-button--small { padding: 5px 9px; }
            .el-dialog__header { padding: 16px 18px 13px; }
            .el-dialog__body { padding: 18px; }
            .el-dialog__footer { padding: 13px 18px 16px; }
        }
        @media (max-width: 900px) {
            .el-aside { width: 132px !important; }
            .el-aside .logo { padding: 0 10px; font-size: 13px; }
            .el-header { padding: 0 12px; }
            .el-header > div:last-child { max-width: 62%; gap: 6px !important; }
            .el-header .el-tag { max-width: 96px; padding: 0 8px; }
            .main-content { padding: 12px; }
        }
        /* 移动端适配：管理后台在窄屏下改为顶部横向导航，内容单列显示 */
        @media (max-width: 900px) {
            html, body, #app { overflow: hidden; }
            #app > .el-container {
                height: 100dvh !important;
                flex-direction: column;
                overflow: hidden;
            }
            #app > .el-container > .el-aside {
                width: 100% !important;
                height: 104px;
                border-right: 0;
                border-bottom: 1px solid var(--line);
                overflow: hidden;
            }
            #app > .el-container > .el-aside .logo {
                height: 46px;
                justify-content: center;
                padding: 0 12px;
                border-bottom: 0;
                font-size: 15px;
                white-space: nowrap;
            }
            #app > .el-container > .el-aside .logo img,
            #app > .el-container > .el-aside .logo svg {
                width: 24px !important;
                height: 24px !important;
                margin-right: 6px !important;
            }
            #app > .el-container > .el-aside .el-menu {
                display: flex;
                gap: 8px;
                width: 100%;
                min-width: 0;
                padding: 6px 10px 10px;
                overflow-x: auto;
                overflow-y: hidden;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
            }
            #app > .el-container > .el-aside .el-menu::-webkit-scrollbar { height: 0; }
            #app > .el-container > .el-aside .el-menu-item {
                flex: 0 0 auto;
                height: 38px;
                line-height: 38px;
                margin: 0;
                padding: 0 12px !important;
                border-radius: 8px;
            }
            #app > .el-container > .el-aside .el-menu-item .el-icon {
                margin-right: 6px;
                font-size: 16px;
            }
            #app > .el-container > .el-aside .el-menu-item.is-active::before {
                left: 10px;
                right: 10px;
                top: auto;
                bottom: 0;
                width: auto;
                height: 3px;
                border-radius: 999px;
            }
            #app > .el-container > .el-aside + .el-container {
                height: calc(100dvh - 104px);
                min-height: 0;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            .el-header {
                height: auto !important;
                min-height: 56px;
                align-items: flex-start;
                padding: 9px 12px !important;
                gap: 8px;
            }
            .page-title {
                min-height: 30px;
                line-height: 30px;
                font-size: 18px;
            }
            .el-header > div:last-child {
                display: flex;
                flex-wrap: wrap;
                justify-content: flex-end;
                max-width: 58%;
                gap: 6px !important;
                overflow: visible;
            }
            .el-header .el-tag {
                height: 26px;
                max-width: 92px;
                padding: 0 8px;
            }
            .el-header .el-button {
                height: 28px;
                padding: 0 10px;
            }
            .main-content {
                flex: 1 1 auto;
                height: auto;
                min-height: 0;
                padding: 10px;
                overflow-y: auto;
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch;
            }
            .main-content .el-row { row-gap: 12px; }
            .main-content > .el-row > .el-col,
            .chart-card,
            .todo-card { min-width: 0; }
            .main-content .el-row:not(.card-list) > .el-col {
                flex: 0 0 100% !important;
                max-width: 100% !important;
            }
            .card-list { margin-bottom: 12px !important; }
            .card-list > .el-col {
                flex: 0 0 50% !important;
                max-width: 50% !important;
            }
            .stat-card { min-height: 96px; padding: 14px; }
            .stat-icon { width: 40px; height: 40px; margin-right: 10px; }
            .stat-icon svg { width: 20px; height: 20px; }
            .stat-info h3 { font-size: 21px; margin-bottom: 2px; }
            .stat-info p { font-size: 12px; line-height: 1.35; }
            .chart-card { padding: 14px; }
            .chart-card > div:last-child { min-width: 260px; height: 240px !important; }
            .todo-card-header {
                align-items: flex-start;
                gap: 8px;
                flex-direction: column;
            }
            .todo-item { min-height: 64px; padding: 12px; }
            .search-bar {
                padding: 14px;
                margin-bottom: 12px;
                overflow: hidden;
            }
            .search-bar[style*="display:flex"] {
                flex-wrap: wrap;
                align-items: stretch !important;
            }
            .search-bar .el-form--inline {
                display: grid;
                grid-template-columns: 1fr;
                gap: 10px;
                width: 100%;
            }
            .search-bar .el-form--inline .el-form-item {
                display: flex;
                width: 100%;
                margin: 0 !important;
                align-items: center;
            }
            .search-bar .el-form-item__label {
                flex: 0 0 72px;
                justify-content: flex-start;
                padding-right: 8px;
            }
            .search-bar .el-form-item__content {
                flex: 1 1 auto;
                min-width: 0;
            }
            .search-bar .el-input,
            .search-bar .el-select,
            .search-bar .el-date-editor,
            .search-bar .el-input-number { width: 100% !important; }
            .search-bar .el-form-item:last-child .el-form-item__content {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }
            .table-card {
                padding: 12px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .table-card .el-table {
                min-width: 680px;
                max-width: none;
            }
            .table-card .el-table th,
            .el-table th.el-table__cell,
            .table-card .el-table td,
            .el-table td.el-table__cell { font-size: 12px; }
            .pagination {
                justify-content: center;
                overflow-x: auto;
            }
            .el-tabs__nav-scroll {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .el-tabs__nav { white-space: nowrap; }
            .settings-page { max-width: 100%; }
            .settings-grid { column-count: 1; }
            .backup-workflows { grid-template-columns: 1fr; }
            .backup-workflow + .backup-workflow {
                border-left: 0;
                border-top: 1px solid #e8edf3;
            }
            .el-dialog {
                width: calc(100vw - 24px) !important;
                max-width: calc(100vw - 24px);
                margin-top: 5vh !important;
            }
            .el-dialog__header { padding: 14px 16px 12px; }
            .el-dialog__body {
                max-height: 72vh;
                overflow: auto;
                padding: 16px;
            }
            .el-dialog__footer { padding: 12px 16px 14px; }
            .el-dialog .el-row > .el-col {
                flex: 0 0 100% !important;
                max-width: 100% !important;
            }
            .el-dialog .el-form-item { margin-bottom: 14px; }
        }
        @media (max-width: 480px) {
            #app > .el-container > .el-aside { height: 98px; }
            #app > .el-container > .el-aside + .el-container { height: calc(100dvh - 98px); }
            #app > .el-container > .el-aside .logo { height: 42px; font-size: 14px; }
            .el-header {
                min-height: 84px;
                flex-direction: column;
                align-items: stretch;
            }
            .el-header > div:last-child {
                max-width: 100%;
                justify-content: flex-start;
            }
            .main-content { height: auto; }
            .card-list > .el-col {
                flex: 0 0 100% !important;
                max-width: 100% !important;
            }
            .search-bar .el-form--inline .el-form-item {
                align-items: stretch;
                flex-direction: column;
            }
            .search-bar .el-form-item__label {
                flex: 0 0 auto;
                margin-bottom: 4px;
            }
            .table-card .el-table { min-width: 620px; }
        }
