
        /* 加载遮罩 */
        #page-loading {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: #fff;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #page-loading .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e2e8f0;
            border-top-color: var(--brand);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
    

        /* ===== 莫兰迪干玫瑰 · 统一视觉变量 ===== */
        :root {
            /* 色板 - 对齐财务系统 */

            --bg-card: #ffffff;

            --brand-light: #eef2ff;

            --sidebar-from: #ffffff;
            --sidebar-to: #ffffff;
            --sidebar-text: #475569;
            --sidebar-active: linear-gradient(135deg, var(--brand), var(--brand-hover));
            --text-primary: #0f172a;
            --text-secondary: #334155;

            --border-light: #f1f5f9;

            --success-bg: #d1fae5;

            --warning-bg: #fef3c7;

            --info-bg: #dbeafe;
            /* 语义三层（11号档 §1.3）：-fill 实心 / -text 浅底文字(700系,对-bg≥4.5:1) / -bg 浅底 */
            --success-fill: var(--success);
            --success-text: #047857;
            --warning-fill: var(--warning);
            --warning-text: #b45309;
            --danger-fill: var(--danger);
            --danger-text: #b91c1c;
            --info-fill: var(--info);
            --info-text: #1d4ed8;
            /* 禁用文字（11号档 §1.2）：仅允许 disabled/placeholder，不得用于可读文字 */
            --text-disabled: #94a3b8;
            /* 圆角 */

            --radius-xl: 1.25rem;
            --radius-2xl: 1.5rem;
            --radius-control: 6px;
            --radius-pill: 999px;
            /* 阴影 */
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08);
            --shadow-brand: 0 4px 14px rgba(79, 70, 229, .25);
            /* 权限页专用（D15 收敛 L788，原名保留） */
            --brand-dark: #4338ca;
            --text: #1e293b;
            --muted: #64748b;
            --ok-bg: #dcfce7;
            --ok-tx: #166534;
            --bad-bg: #fee2e2;
            --bad-tx: #991b1b;
        }

        /* ===== 深色模式变量 ===== */
        .dark {
            --bg-page: #0f172a;
            --bg-card: #1e293b;
            --brand: #818cf8;
            --brand-hover: var(--brand-hover);
            --brand-light: #312e81;
            --sidebar-from: #1e293b;
            --sidebar-to: #1e293b;
            --sidebar-text: #cbd5e1;
            --text-primary: #f1f5f9;
            --text-secondary: #e2e8f0;
            --text-muted: #94a3b8;
            --border: #334155;
            --border-light: #1e293b;
            --success: #10b981;
            --success-bg: #064e3b;
            --warning: #f59e0b;
            --warning-bg: #78350f;
            --danger: #ef4444;
            --danger-bg: #7f1d1d;
            --info: #3b82f6;
            --info-bg: #1e3a8a;
            /* 语义三层 - 暗色（11号档 §1.6：新增令牌两处同写；暗色下 -text 用暗色 fill 值，对深底达对比度） */
            --success-fill: var(--success);
            --success-text: #34d399;
            --warning-fill: var(--warning);
            --warning-text: #fbbf24;
            --danger-fill: var(--danger);
            --danger-text: #fca5a5;
            --info-fill: var(--info);
            --info-text: #93c5fd;
            --text-disabled: #64748b;
            --text: #f1f5f9;
            --muted: #94a3b8;
            --brand-dark: var(--brand-hover);
            --ok-bg: #064e3b;
            --ok-tx: #34d399;
            --bad-bg: #7f1d1d;
            --bad-tx: #fca5a5;
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .4);
        }

        body {
            font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
            background-color: var(--bg-page);
            color: var(--text-primary);
        }

        /* 侧栏导航 */
        .sidebar-item {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius-lg);
            font-size: 12px;
            color: var(--sidebar-text);
            transition: all .2s ease;
        }
        /* 防闪烁：排序完成前隐藏菜单项 */
        #sidebar:not(.menu-ready) .sidebar-item { visibility: hidden; }
        .sidebar-item:hover {
            background-color: #f1f5f9;
            color: var(--brand);
        }
        .sidebar-item.active {
            background: var(--sidebar-active);
            color: #fff;
            font-weight: 600;
        }

        /* 卡片hover */
        .card-hover {
            transition: transform .2s, box-shadow .2s;
        }
        .card-hover:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* 统一按钮 */
        /* 通用按钮样式，统一大小（和导出按钮一致） */
        button, .btn, a.btn-primary, a.btn-secondary, a.btn-danger,
        a[class*="bg-red-"] {
            padding: 0.375rem 0.75rem !important;
            font-size: 0.875rem !important;
            border-radius: var(--radius-lg);
            min-height: 36px !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
            transition: all .2s;
            cursor: pointer;
            border: none;
        }
        .btn-primary {
            background-color: var(--brand);
            color: #fff;
            padding: 0.375rem 0.75rem;
            font-weight: 600;
            box-shadow: var(--shadow-brand);
        }
        .btn-primary:hover {
            background-color: var(--brand-hover);
        }
        .btn-secondary {
            background-color: #fff;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 0.5rem 1.25rem;
            font-size: 0.875rem;
            transition: all .2s;
            cursor: pointer;
        }
        .btn-secondary:hover {
            border-color: var(--brand);
            color: var(--brand);
        }
        .btn-danger {
            background-color: var(--danger);
            color: #fff;
            border-radius: var(--radius-lg);
            padding: 0.5rem 1.25rem;
            font-weight: 600;
            font-size: 0.875rem;
            transition: all .2s;
            border: none;
            cursor: pointer;
        }
        .btn-danger:hover {
            background-color: #9e3a33;
        }

        /* 统一输入框 */
        .form-input {
            width: 100%;
            padding: 0.5rem 0.875rem;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background-color: #fff;
            font-size: 0.875rem;
            color: var(--text-primary);
            transition: all .2s;
        }
        .form-input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px var(--brand-ring);
        }
        .form-input::placeholder {
            color: var(--text-muted);
        }
        select.form-input {
            cursor: pointer;
        }

        /* 统一卡片（决策113 D27：.card 定义已收敛至组件层，见批2 组件定义层） */

        /* 统一表格 */
        .table-morandi {
            width: 100%;
            font-size: 0.875rem;
        }
        .table-morandi thead th {
            background-color: #faf5f5;
            color: var(--text-secondary);
            font-weight: 600;
            padding: 0.75rem 1rem;
            text-align: center;
            border-bottom: 1px solid var(--border-light);
            font-size: 12px;
        }
        /* 第一列左对齐 */
        .table-morandi thead th:first-child,
        .table-morandi tbody td:first-child {
            text-align: left;
        }
        .table-morandi tbody td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #f3eaea;
            color: var(--text-primary);
            text-align: center;
        }
        .table-morandi tbody tr:hover {
            background-color: #faf5f5;
        }

        /* 标签 */
        .tag {
            display: inline-block;
            padding: 0.125rem 0.625rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .tag-brand { background-color: var(--brand-light); color: var(--brand); }
        .tag-success { background-color: var(--success-bg); color: var(--success-text); }
        .tag-warning { background-color: var(--warning-bg); color: var(--warning-text); }
        .tag-danger { background-color: var(--danger-bg); color: var(--danger-text); }
        .tag-info { background-color: var(--info-bg); color: var(--info-text); }
        .tag-muted { background-color: #f0eaea; color: var(--text-muted); }

        /* 空状态 */
        .empty-state {
            padding: 3rem 1rem;
            text-align: center;
            color: var(--text-muted);
        }

        /* 滚动条美化 */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #d4c4c7; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--brand); }

        /* ===== 移动端抽屉式侧边栏 ===== */
        /* 侧边栏在移动端为fixed抽屉，lg以上恢复静态布局 */
        #sidebar {
            transition: left .3s ease;
            background: var(--sidebar-from);
        }
        @media (max-width: 1023px) {
            #sidebar {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                z-index: 50;
                left: -280px; transform: none;
                width: 16rem; /* w-60 */
                max-width: 85vw;
                background: var(--sidebar-from);
            }
            body.sidebar-open #sidebar {
                left: 0;
            }
            #sidebar-overlay {
                display: none;
            }
            body.sidebar-open #sidebar-overlay {
                display: block;
            }
        }
        @media (min-width: 1024px) {
            #sidebar-overlay {
                display: none !important;
            }
        }

        /* ===== 移动端表格横向滚动 ===== */
        @media (max-width: 639px) {
            .card {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .table-morandi {
                min-width: 700px;
            }
            .card, .bg-white {
                overflow-x: auto;
            }
            /* 表格内操作链接触摸区域放大 */
            .table-morandi tbody td a {
                display: inline-block;
                padding: 4px 8px;
                white-space: nowrap;
            }
        }

        /* ===== 移动端表单单列 ===== */
        @media (max-width: 767px) {
            /* 表单内的多列grid改为单列 */
            form.grid.grid-cols-2,
            form.grid.grid-cols-3,
            form.grid.grid-cols-4,
            form.grid.grid-cols-5,
            form.grid.grid-cols-6,
            form .grid.grid-cols-2,
            form .grid.grid-cols-3,
            form .grid.grid-cols-4,
            form .grid.grid-cols-5,
            form .grid.grid-cols-6 {
                grid-template-columns: 1fr !important;
            }
            /* 输入框最小触摸高度 */
            .form-input, select.form-input, textarea.form-input {
                min-height: 44px;
                font-size: 16px; /* 防止iOS自动缩放 */
            }
            /* col-span在单列模式下不再有意义 */
            form [class*="col-span"] {
                grid-column: auto !important;
            }
            /* 统计卡片单列堆叠 - 覆盖Tailwind的grid-cols-* */
            body .grid.grid-cols-2:not(.mobile-bottom-nav .grid), 
            body .grid.grid-cols-3:not(.mobile-bottom-nav .grid), 
            body .grid.grid-cols-4:not(.mobile-bottom-nav .grid), 
            body .grid.grid-cols-5:not(.mobile-bottom-nav .grid), 
            body .grid.grid-cols-6:not(.mobile-bottom-nav .grid) {
                grid-template-columns: 1fr !important;
            }
            /* 按钮触摸区域放大 */
            .btn-primary, .btn-secondary, button, .table-morandi tbody td a {
                min-height: 44px;
                padding: 8px 16px;
            }
            /* 内容区边距缩小，底部留出导航高度 */
            main, .content-area, .space-y-6, .space-y-5 {
                padding: 16px !important;
                padding-bottom: 120px !important;
                margin: 0 !important;
            }
            /* 卡片内边距缩小 */
            .card, .bg-white {
                padding: 16px !important;
            }
        }

        /* ===== 移动端通用间距调整 ===== */
        @media (max-width: 1023px) {
            /* 页面头部（标题+操作按钮行）在移动端允许换行 */
            main .flex.justify-between {
                flex-wrap: wrap;
                gap: 8px 12px;
            }
            /* space-x 系列在换行后补上gap间距 */
            main .space-x-2,
            main .space-x-4 {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }
            main .space-x-2 > * + *,
            main .space-x-4 > * + * {
                margin-left: 0;
            }
        }

        /* ===== 小屏进一步压缩 ===== */
        @media (max-width: 639px) {
            main .p-7, main .p-8 {
                padding: 1.25rem;
            }
            main .text-2xl {
                font-size: 1.25rem;
            }
            main .text-3xl {
                font-size: 1.5rem;
            }
        }

        /* 侧边栏折叠组 */
        .sidebar-subgroup .sidebar-item {
            font-size: 12px;
            padding-left: 1.5rem;
            margin-left: 0.5rem;
        }
        .sidebar-subgroup-title {
            font-size: 13px !important;
            font-weight: 600 !important;
            color: #64748b !important;
            margin-top: 4px;
        }
        .sidebar-subgroup-title:hover { color: var(--brand) !important; }
        .sidebar-group-title:hover { color: var(--brand) !important; }
        .sidebar-group-content { overflow: hidden; transition: max-height 0.3s ease; }
        .sidebar-group-content.collapsed { display: none; }
        .sidebar-group-arrow.expanded { transform: rotate(90deg); }
    

    /* [SIDEBAR-FIX 20260917] 移动端侧边栏修复 */
    @media (max-width: 1023px) {
        body.sidebar-open { overflow: hidden; }
        #sidebar { z-index: 60 !important; box-shadow: 4px 0 20px rgba(0,0,0,0.15); }
        #sidebar-overlay { z-index: 55 !important; }
    }
    

    /* [MOBILE-DEEP-FIX 20260917] 纯CSS移动端适配，不依赖Tailwind CDN */
    .mobile-topbar { display: none; }
    @media (max-width: 1023px) {
        .mobile-topbar { display: flex !important; }
        body > div.flex.min-h-screen { display: block !important; }
        #sidebar {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            bottom: 0 !important;
            z-index: 60 !important;
            left: -280px !important; transform: none !important;
            transition: left 0.3s ease !important;
            width: 260px !important;
            max-width: 85vw !important;
            box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
        }
        body.sidebar-open #sidebar {
            left: 0 !important;
        }
        #sidebar-overlay {
            display: none !important;
            position: fixed !important;
            inset: 0 !important;
            background: rgba(0,0,0,0.5) !important;
            z-index: 55 !important;
        }
        body.sidebar-open #sidebar-overlay {
            display: block !important;
        }
        body.sidebar-open { overflow: hidden !important; }
        /* PC端顶部导航栏在移动端隐藏 */
        header.hidden.lg\:flex { display: none !important; }
        main { padding-top: 70px !important; }
    }
    @media (min-width: 1024px) {
        .mobile-topbar { display: none !important; }
        #sidebar { transform: none !important; position: relative !important; }
        #sidebar-overlay { display: none !important; }
    }
    /* ===== 侧边栏菜单拖拽排序 [20260925] ===== */
    .sidebar-item[draggable="true"] { cursor: grab; }
    .sidebar-item[draggable="true"]:active { cursor: grabbing; }
    .sidebar-item.sidebar-dragging { opacity: 0.45; }
    .sidebar-item.sidebar-drag-over { outline: 2px dashed var(--brand-hover); outline-offset: -2px; }
    

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
    

        .toast {
            padding: 12px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            animation: slideIn 0.3s ease;
            max-width: 350px;
        }
        .toast-success { background: #10b981; color: white; }
        .toast-error { background: #ef4444; color: white; }
        .toast-info { background: #3b82f6; color: white; }
        .toast-warning { background: #f59e0b; color: white; }
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }
        .toast-hide {
            animation: slideOut 0.3s ease forwards;
        }
    

/* 移动端底部Tab优化 */
@media (max-width: 1023px) {
    main {
        padding-bottom: 120px !important;
    }
}
.mobile-bottom-nav a.active {
    color: var(--brand) !important;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .welcome-banner h2 { font-size: 1.25rem !important; }
    .stat-card { padding: 12px !important; }
    .stat-card .text-3xl { font-size: 1.5rem !important; }
    .perf-tab { padding: 6px 12px !important; font-size: 12px !important; }
    .quick-entry { padding: 12px 8px !important; }
    .quick-entry span.text-2xl { font-size: 1.25rem !important; }
    .log-table { font-size: 12px !important; }
    .alert-box { padding: 8px 12px !important; font-size: 12px !important; }
    .trend-chart { height: 220px !important; }
}

        body.err-page {
            font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
            background-color: var(--bg-page);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 1rem;
        }
        .err-page .error-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            padding: 2.5rem 2rem;
            max-width: 480px;
            width: 100%;
            text-align: center;
            border: 1px solid var(--border);
        }
        .err-page .error-code {
            font-size: 4rem;
            font-weight: 700;
            color: var(--brand);
            line-height: 1;
            margin-bottom: 0.5rem;
        }
        .err-page .error-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
        }
        .err-page .error-message {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            word-break: break-word;
        }
        .err-page .error-actions {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        .btn {
            display: inline-block;
            padding: 0.6rem 1.5rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
            border: none;
        }
        .btn-primary {
            background: var(--brand);
            color: #fff;
        }
        .btn-primary:hover {
            background: var(--brand-hover);
        }
        .btn-secondary {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }
        .btn-secondary:hover {
            background: var(--bg-page);
        }
    

        body.fp-page * { margin: 0; padding: 0; box-sizing: border-box; }
        body.fp-page {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #f0f2f5;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .fp-page .card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            padding: 40px;
            max-width: 400px;
            width: 90%;
        }
        .fp-page h2 {
            font-size: 20px;
            color: #1f2937;
            text-align: center;
            margin-bottom: 8px;
        }
        .fp-page .subtitle {
            color: #6b7280;
            font-size: 14px;
            text-align: center;
            margin-bottom: 24px;
        }
        .fp-page .error {
            background: #fef2f2;
            color: #dc2626;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 16px;
        }
        .fp-page .success {
            background: #f0fdf4;
            color: #16a34a;
            padding: 12px 14px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 16px;
            line-height: 1.6;
        }
        .fp-page label {
            display: block;
            font-size: 13px;
            color: #374151;
            margin-bottom: 6px;
            font-weight: 500;
        }
        .fp-page input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 16px;
        }
        .fp-page button {
            width: 100%;
            padding: 11px;
            background: var(--brand);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            cursor: pointer;
        }
        .fp-page button:hover {
            background: #4338ca;
        }
        .fp-page .back {
            text-align: center;
            margin-top: 20px;
        }
        .fp-page .back a {
            color: #6b7280;
            font-size: 14px;
            text-decoration: none;
        }
        .fp-page .back a:hover {
            color: var(--brand);
        }
    

.my-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid var(--border-light);
    transition: all .2s;
}
.my-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.add-panel {
    position: fixed; bottom: 96px; right: 24px;
    width: 320px; max-height: 400px; background: white;
    border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 101; display: none; overflow: hidden;
}
.add-panel.show { display: block !important; }
.add-panel-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-light); font-weight: 600;
}
.add-panel-list { max-height: 320px; overflow-y: auto; padding: 8px 0; }
.add-item {
    display: flex; align-items: center; padding: 12px 20px;
    cursor: pointer; transition: background .15s;
}
.add-item:hover { background: #f8fafc; }
.add-item-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px; font-size: 18px;
}
.add-item-info { flex: 1; }
.add-item-title { font-size: 14px; font-weight: 500; }
.add-item-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
.add-item-check {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #e2e8f0; display: flex; align-items: center;
    justify-content: center; font-size: 12px;
}
.add-item.checked .add-item-check {
    background: var(--brand); border-color: var(--brand); color: white;
}
.card-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.card-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.card-link { font-size: 13px; color: var(--brand); text-decoration: none; margin-top: 8px; display: inline-block; }

/* ================= 通用 ================= */
.perm-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  margin: 0 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.perm-topbar h2 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.perm-topbar .sub { font-size: 12px; color: var(--muted); margin-top: 2px; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perm-save-btn {
  background: var(--brand); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.perm-save-btn:disabled { opacity: .6; cursor: not-allowed; }
.perm-save-btn .cnt { font-weight: 400; }
#save-msg { font-size: 13px; padding: 6px 12px; border-radius: 8px; margin: 0 12px 10px; display: none; }
#save-msg.ok { display: block; background: var(--ok-bg); color: var(--ok-tx); }
#save-msg.err { display: block; background: var(--bad-bg); color: var(--bad-tx); }

/* 分组 */
.perm-group { margin-bottom: 14px; }
.perm-group-title {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 12px; border-radius: 10px 10px 0 0;
  cursor: pointer; user-select: none;
}
.perm-group-title .arrow { transition: transform .2s; font-size: 12px; }
.perm-group-title.collapsed .arrow { transform: rotate(-90deg); }
.perm-group-body.collapsed { display: none; }

/* 二级分组行 */
.perm-g2 {
  display: flex; align-items: center; justify-content: space-between;
  background: #f1f5f9; padding: 6px 10px;
  font-weight: 600; font-size: 13px; color: #475569;
  border-left: 3px solid var(--brand);
}
.perm-batch { font-size: 13px; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid var(--brand); border-radius: 6px; padding: 3px 12px; cursor: pointer; }
.perm-batch:hover { background: var(--brand-light); }

/* 已授权徽标 */
.perm-count {
  display: inline-block; font-size: 11px; color: var(--brand);
  background: var(--brand-light); border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}

/* ================= PC 表格 ================= */
.perm-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 0 0 10px 10px; }
table.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; table-layout: fixed; }
.perm-table th, .perm-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.perm-table thead th {
  background: #f8fafc; font-weight: 600;
  text-align: center;
}
.perm-table tbody tr:hover { background: #fafaff; }
.perm-table .perm-g2-row td { background: #e8edf5; font-weight: 700; color: #334155; font-size: 13px; }
.perm-table td.perm-check { text-align: center; }  /* 特异性须高于 .perm-table td(0,1,1)，否则 text-align:left 压过 center（决策78） */
.perm-check input, .perm-active-box { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.perm-path { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }
.status-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.status-on { background: var(--ok-bg); color: var(--ok-tx); }
.status-off { background: #f1f5f9; color: var(--muted); }

/* ================= 移动卡片（默认隐藏，<768px 显示） ================= */
.perm-cards { display: none; }
.perm-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.perm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.perm-card-name { font-weight: 600; color: var(--text); font-size: 14px; }
.perm-card-path { color: var(--muted); font-size: 11px; font-family: ui-monospace, monospace; }
.perm-card-active { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.perm-card-active input { width: 16px; height: 16px; accent-color: var(--brand); }
.perm-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perm-role-opt {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; color: var(--text);
  cursor: pointer; background: #fff;
}
.perm-role-opt:active { background: var(--brand-light); }
.perm-role-opt input { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.perm-role-opt.on { background: var(--brand-light); border-color: #c7d2fe; }

@media (max-width: 767px) {
  .perm-table-wrap { display: none; }
  .perm-cards { display: block; }
  /* 移动端隐藏英文页面路径（PC 表格保留），手机卡片只留页面名+徽标 */
  .perm-card-path { display: none; }
}

        body.wq-page * { margin: 0; padding: 0; box-sizing: border-box; }
        body.wq-page {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #f0f2f5;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .wq-page .card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            padding: 40px;
            text-align: center;
            max-width: 400px;
            width: 90%;
        }
        .wq-page .icon {
            width: 60px;
            height: 60px;
            background: #e8f3ff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 24px;
        }
        .wq-page h2 {
            font-size: 18px;
            color: #1f2937;
            margin-bottom: 10px;
        }
        .wq-page p {
            color: #6b7280;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 24px;
        }
        .wq-page .back a {
            color: var(--brand);
            font-size: 14px;
            text-decoration: none;
        }
    

    @media (max-width: 768px) {
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .table-morandi { min-width: 900px; }
        .bulk-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
        .bulk-buttons button { font-size: 13px; white-space: nowrap; }
        @media (max-width: 768px) { .bulk-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; } }
    }
    

    @media print {
        aside, header { display: none !important; }
        main { padding: 0 !important; }
        body { background: white !important; }
    }

.tag-chip { border: 1px solid #e5e7eb; background: #fff; color: #9ca3af; }
.tag-chip:hover { border-color: #c7d2fe; }
.tag-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

        body {
            font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
            background-color: var(--bg-page);
            color: var(--text-primary);
        }
        .nav-link {
            color: var(--text-secondary);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 14px;
            transition: all .15s;
        }
        .nav-link:hover { background: var(--brand-light); color: var(--brand); }
        .nav-link.active { background: var(--brand-light); color: var(--brand); font-weight: 500; }

/* ================= UI-3 批2 组件定义层（11号档 §3，同名重定义，2026-10-03） ================= */

/* U-05 卡片（决策113 D27：L247 抽取块 .card 已删，border 随迁至此——radius-md + border 1px 与收敛前业务页生效值一致） */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.card-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }

/* U-01 按钮补充：disabled / loading / ghost */
.btn[disabled], .btn-primary[disabled], .btn-secondary[disabled], .btn-danger[disabled], .btn-ghost[disabled] {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ui3-spin .7s linear infinite;
}
/* H-07 加载态兜底（不带 .btn 前缀）：综合 8 个批量页的提交按钮用 Tailwind
   工具类、不含 btn 类，上面的 .btn.is-loading 不生效（::after content=none、
   零视觉反馈）。以下两条与 .btn.is-loading 逐字一致，仅去掉 .btn 前缀；
   不给按钮加 btn 类（其 padding/font-size !important 与 min-height:44px 会破坏布局），
   不改 base.html、不改 JS。 */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ui3-spin .7s linear infinite;
}
@keyframes ui3-spin { to { transform: rotate(360deg); } }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand); }

/* U-04 状态胶囊（语义三层 -text/-bg，对比度 ≥4.5:1） */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-text); }
.badge-info    { background: var(--info-bg);    color: var(--info-text); }
.badge-secondary { background: var(--border-light); color: var(--text-secondary); }
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-control);
    font-size: 12px;
    background: var(--border-light);
    color: var(--text-secondary);
    white-space: nowrap;
}
.tag-brand { background: var(--brand-light); color: var(--brand); }

/* U-03 表格 CSS 半边（数值右对齐 + tabular-nums；sticky 表头在滚动容器内生效） */
.table-morandi { width: 100%; border-collapse: collapse; }
.table-morandi thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-card); }
.table-morandi tbody tr:hover { background: var(--border-light); }
.num, .tar { text-align: right; font-variant-numeric: tabular-nums; }
.tac { text-align: center; }

/* U-06 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
    color: var(--text-muted);
}

/* UI-3 批 5③ 综合 C 族语义工具类（style 属性 var(--x) → 类；值=令牌，零视觉变化；引用 var，.dark 自动跟随） */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-brand { color: var(--brand); }
.bg-brand-light { background: var(--brand-light); }
.bg-page { background: var(--bg-page); }
.border-light { border-color: var(--border-light); }
.border-default { border-color: var(--border); }
.text-success { color: var(--success); }
.bg-success { background: var(--success-bg); }
.text-danger { color: var(--danger); }
.bg-danger { background: var(--danger-bg); }
.text-warning { color: var(--warning); }
.bg-warning { background: var(--warning-bg); }
.text-info { color: var(--info); }
.bg-info { background: var(--info-bg); }
.shadow-brand { box-shadow: var(--shadow-brand); }
/* dashboard 锁定状态（单页语义，值=原字面量 #f0f0f0 / #666，零视觉变化） */
.bg-f0 { background: #f0f0f0; }
.text-666 { color: #666; }
/* ===== D33批: D族静态内联样式迁移类 =====
 * 值 = 原内联样式字面量（归一化空白，渲染等价），仅用于 style->class 迁移。
 * 非通用组件类：若元素存在同类 tailwind 工具类，本块位于 app-components.css（components 层，
 * 加载于 tailwind.build.css 之后），后写胜，行为等价于原内联样式覆盖。
 * 勿删除/重构为 var() 令牌引用——原内联为字面量，暗色(.dark)下不随令牌变化，保持字面量以保零视觉变化。
 */
.d-s-title{color:#334155;font-weight:700;font-size:14px}
.d-bg-brand{background:var(--brand)}
.d-bg-page-soft{background:#f8fafc}
.d-text-coffee{color:#6b5358}
.d-bg-peach{background:#fed7aa}
.d-bg-skysoft{background:#e0f2fe}
.d-bg-indigosoft{background:#eef2ff}
.d-border-line{border-color:#e2e8f0}
.d-bg-grad-brand{background:linear-gradient(135deg,var(--brand),var(--brand-hover))}
.d-panel-soft{background:#f1f5f9;color:#475569}
.d-opacity-30{opacity:0.3}
.d-btn-lg{padding:0.75rem 2rem;font-size:1rem}
.d-page-shell{padding:28px;background:#f8fafc;min-height:100vh;margin:-24px}
.d-icon-20{width:20px;height:20px;cursor:pointer}
.d-bg-redsoft{background:#fee2e2}
.d-bg-white20{background:rgba(255,255,255,.20)}
.d-minw-100{min-width:100px}
.d-w-110{width:110px}
.d-title-22-700{font-size:22px;font-weight:700;color:#0f172a;margin:0}
.d-sub-14{font-size:14px;color:#64748b;margin:4px 0 0}
.d-card-line{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:16px}
.d-text-12{font-size:12px;color:#6b7280}
.d-pad-12-16{padding:12px 16px}
.d-text-13-taupe{font-size:13px;color:#73726e}
.d-title-22-600{font-size:22px;font-weight:600;color:#37352f;margin-top:2px}
.d-card-soft{background:#fff;border-radius:6px;padding:20px;box-shadow:0 1px 3px rgba(0,0,0,0.04)}
.d-text-13-foot{font-size:13px;color:#8898aa;margin-bottom:4px}
.d-title-28-600{font-size:28px;font-weight:600;color:#32325d}
.d-text-13-muted{font-size:13px;color:#64748b;margin:0}
/* D33 补：tailwind.build.css 未预编译的 Tailwind 风格工具类（D34 立规，手工补进本层） */
.border-0{border-width:0}

/* UI-3 批 5⑤ 收口：综合剩余 30 处内联 style 清零（决策 122） */
.bg-amber-soft { background: #fed7aa; }
.bg-sky-soft { background: #e0f2fe; }
.sup-card { background:#fff; border-radius:16px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.06); border:1px solid #f1f5f9; }

/* UI-3 批 5⑤ 收口 v2：综合 18 D 串 + 3 E 串 清零（决策 122）——sup-* 内距属表格单元格语义（D21 例外） */
.sup-th { padding:10px 16px; font-weight:500; color:#6b7280; font-size:12px; }
.sup-th2 { padding:12px 24px; font-weight:600; color:#64748b; font-size:13px; }
.sup-th3 { padding:14px 20px; font-weight:500; color:#8898aa; font-size:13px; }
.sup-td { padding:16px 20px; }
.bg-cyan-300 { background:#22d3ee; }
.bg-amber-600 { background:#d97706; }
.bg-indigo-soft { background:var(--brand); }
@media (max-width: 1023px) {
    .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    main { overflow-x: auto; }
}

/* U-14 batch3: high-freq 10 pages mobile card-ize (table->block, td::before labels)
   M-43 改1：卡片化堆叠断点由 1023 收窄到 767；768-1023 平板恢复真表格。
   与 mobile-columns.js MEDIA 同值（test_m01 C1 固定 JS＝CSS）。 */
@media (max-width: 767px) {
    table, thead, tbody, tr, th, td { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    td { padding: .5rem .75rem; text-align: left; }
    td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: .5rem;
        color: #64748b;
    }
    td:not([data-label]), td[data-label=""] {
        padding-left: .75rem;
        text-align: left;
    }
}

/* M-43 改2：768–1023 竖屏平板真表格横滑档（既有声明一条不改，仅新增本块）。
   整表按 900px 撑开；表头 nowrap 与卡片/main 横滑容器见改3 ≥768 块。 */
@media (min-width: 768px) and (max-width: 1023px) {
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-morandi { min-width: 900px; }
}

/* M-43 改3：≥768 表格横滑容器 ＋ 表头 nowrap（只新增，不改既有声明）。
   :has 只命中直接装宽表/mo-scroll 的卡片，不动其余 card；overflow-y:hidden 防 x 轴 auto 带出竖滚条；
   main 兜住无 card 包裹的裸表页。 */
@media (min-width: 768px) {
    main { overflow-x: auto; }
    .card:has(> table.table-morandi),
    .card:has(> .mo-scroll) { overflow-x: auto; overflow-y: hidden; }
    .table-morandi thead th { white-space: nowrap; }
}

/* U-14 supplier page header: flex row -> column on narrow screens
   M-43 改1：从上面 767 块提独立 1023 块——页头形态不在本单表格治理范围，平板现网视觉零变化。 */
@media (max-width: 1023px) {
    .sup-page-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .sup-page-head > div:last-child {
        flex-wrap: wrap !important;
    }
}

/* U-14 batch4: mobile touch baseline (>=1024px untouched) */
@media (max-width: 1023px) {
    button, input[type="button"], input[type="submit"], input[type="reset"],
    select, input[type="date"], input[type="time"] {
        min-height: 44px;
        font-size: 16px;
    }
    input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
    input[type="password"], input[type="search"], textarea {
        font-size: 16px;
    }
    .btn-sm, button.btn-sm, .table-actions button, .table-actions a {
        min-height: 36px;
    }
}

/* ===== 页面反馈 FAB + 弹窗（20号工单 S-02）===== */
.feedback-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 45;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
}
.feedback-fab:hover { background: #1d4ed8; }

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feedback-modal[hidden] { display: none; }
.feedback-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.feedback-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.feedback-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}
.feedback-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.feedback-msg {
    font-size: 13px;
    margin-top: 8px;
    color: #2563eb;
    min-height: 18px;
}
.feedback-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 1023px) {
    .feedback-fab {
        bottom: 84px;
        right: 16px;
    }
}


/* ===== P4 PageStandard ===== */
/* 六页样板命名类：替代模板内联 style / 硬编码 hex（P4-PageStandard-001）*/
/* hero 欢迎横幅 4 角色渐变（原模板 style 内 4 组 hex）*/
.hero-bg-boss{background:linear-gradient(135deg,var(--brand) 0%,#4338ca 50%,#3730a3 100%)}
.hero-bg-hr{background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 50%,#1e40af 100%)}
.hero-bg-manager{background:linear-gradient(135deg,#059669 0%,#047857 50%,#065f46 100%)}
.hero-bg-default{background:linear-gradient(135deg,#0891b2 0%,#0e7490 50%,#155e75 100%)}
.hero-shadow{box-shadow:0 12px 32px -8px rgba(79,70,229,.35)}
/* 白色透明度文本 / 背景（dashboard 欢迎横幅）*/
.text-white-95{color:#fff}
.text-rose-white-85{color:rgba(255,255,255,.95)}
.text-rose-white-70{color:rgba(255,255,255,.90)}
.bg-white-20{background:rgba(255,255,255,.2)}
/* 进度条渐变 */
.bar-grad-cyan{background:linear-gradient(to right,#22d3ee,#818cf8)}
/* 告警三档（bg + border + text 组合）*/
.alert-danger{background:#fef2f2;border-color:#fecaca;color:#dc2626}
.alert-warning{background:#fffbeb;border-color:#fde68a;color:#d97706}
.alert-info{background:#eff6ff;border-color:#bfdbfe;color:#2563eb}
/* 指标数字色（dashboard / reports）*/
.text-violet{color:#7c3aed}
.bg-violet{background:#7c3aed}
.bg-violet-soft{background:#ede9fe}
.text-slateblue{color:#2f5b8a}/* [M-42] 由 #5a7fa8 加深：浅蓝卡片底 3.63→5.5 */
.text-plum{color:#8b5a8a}
.text-brand-green{color:#4c7a63}
.bg-brand-green{background:#4c7a63}
.text-brand-red{color:#b3423a}
.text-taupe{color:#6b5358}
.text-steel{color:#6b8a9e}
.text-slate-400{color:#94a3b8}
/* 品牌实底 / hover（tailwind 缺 hover:bg-brand-hover）*/
.bg-brand{background:var(--brand)}
.hover-bg-brand-hover:hover{background:#4338ca}
.text-brand-hover{color:#4338ca}
/* reports 状态底 / 边框 */
.bg-cream{background:#faf6ed}
.border-cream{border-color:#ecdcbf}
.bg-mist{background:#faf5f5}
.bg-blush{background:#faf0f1}
.bg-blush2{background:#faf0ef}
.bg-mint{background:#eef4f0}
.border-rose-soft{border-color:#ebd4d6}
.bg-pink-soft{background:#fce7f3}
/* bulk/import 样本标签 */
.tag-sample{background:#f0eaea;color:#334155}
.min-w-30{min-width:30px}

/* P4 六页样板：SVG 进度条填充色（reports/dashboard）*/
.pct-fill-blush{fill:#faf0f1}
.pct-fill-mint{fill:#eef4f0}
.pct-fill-blush2{fill:#faf0ef}
.pct-fill-indigo{fill:var(--brand-hover)}
.pct-fill-teal{fill:#14b8a6}
.pct-fill-emerald{fill:#059669}

/* ===== P5a 任意色收敛 ===== */
.bg-brand-deep{background:#4338ca}
.ring-brand{box-shadow:0 0 0 3px rgba(79,70,229,.5)}
.bg-rose-soft{background:#f5e4e6}
.bg-rose-mist{background:#f0eaea}
.text-mauve{color:#7f5a63}
.bg-sage-soft{background:#e4ece7}
.text-sage{color:#2f4a3d}
.text-steel-deep{color:#4a6375}
.bg-slate-mist{background:#e6edf1}
.border-rose-mid{border-color:#e8c9c7}
.bg-amber-mist{background:#f6ede0}
.text-gold{color:#8a6d3b}/* [M-42] 由 #c2a24b 加深：2.45→6.9 */
.text-sage-deep{color:#3d6250}
.text-bronze{color:#8a6d3b}
.text-ink{color:#0f172a}
.border-sage-soft{border-color:#c9ddd2}
.bg-lavender{background:#e8e6f0}
.text-lavender{color:#5a5a8a}
.text-taupe-light{color:#c0b4b4}
.text-emerald{color:#059669}
.bg-ivory{background:#fafafa}
.text-rose-mid{color:#9e3a33}/* [M-42] 由 #c25a5a 加深：4.28→6.76 */
/* ===== P5b 内联 style 收敛 ===== */
/* 批1+批2 新类（逐字复制原内联 style 值，零视觉变化） */
.text-rosewood { color: #a37676; }
.bg-slate-300 { background-color: #9ca3af; }
.bg-indigo-mist { background-color: #e0e7ff; }
.bg-grad-mist { background: linear-gradient(to right, #f8fafc, #ffffff); }
.border-slate-100 { border-color: #f1f5f9; }
.bg-brand-grad { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%); }
.text-slate-300 { color: #cbd5e1; }
.input-white { padding:9px 18px; border-radius:8px; font-size:14px; color:#334155; background:#fff; border:1px solid #e2e8f0; text-decoration:none; }
.input-white-500 { padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #334155; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; }
.chip-slate { display:inline-block; padding:6px 14px; border-radius:8px; font-size:13px; font-weight:500; color:#334155; background:#f1f5f9; text-decoration:none; margin-right:6px; }
.chip-indigo { display:inline-block; padding:6px 14px; border-radius:8px; font-size:13px; font-weight:500; color:var(--brand); background:#eef2ff; text-decoration:none; margin-right:6px; }
.pill-indigo { background:#eef2ff; color:var(--brand); padding:3px 10px; border-radius:9999px; font-size:12px; font-weight:500; }
.badge-indigo-xs { background:#eef2ff; color:var(--brand); padding:2px 8px; border-radius:6px; font-size:12px; }
.btn-red-soft { padding:6px 14px; border-radius:8px; font-size:13px; font-weight:500; color:#dc2626; background:#fee2e2; border:none; cursor:pointer; }
.btn-emerald-soft { padding:6px 14px; border-radius:8px; font-size:13px; font-weight:500; color:#059669; background:#d1fae5; border:none; cursor:pointer; }
.btn-gray-soft { padding:6px 14px; border-radius:8px; font-size:13px; font-weight:500; color:#6b7280; background:#f3f4f6; border:none; cursor:pointer; margin-left:6px; }
.table-head { border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.row-hover { border-bottom:1px solid #f1f5f9; transition: background 0.15s; }
.td-cell { padding:14px 24px; }
.dot-emerald-6 { width:6px; height:6px; border-radius:50%; background:#10b981; }
.dot-gray-6 { width:6px; height:6px; border-radius:50%; background:#d1d5db; }
.dot-emerald-8 { width:8px; height:8px; border-radius:50%; background:#2db344; }
.dot-gray-8 { width:8px; height:8px; border-radius:50%; background:#d1d1cf; }
.tag-khaki { font-size:12px; color:#73726e; background:#f1f1ef; padding:2px 8px; border-radius:4px; }
.stat-num-ink { font-size:28px; font-weight:600; color:#0f172a; margin:4px 0 0; }
.stat-num-emerald { font-size:28px; font-weight:600; color:#10b981; margin:4px 0 0; }
.stat-num-slate { font-size:28px; font-weight:600; color:#94a3b8; margin:4px 0 0; }
.stat-title { font-size:16px; font-weight:600; color:#0f172a; margin:0; }
.page-title { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0; letter-spacing: -0.02em; }
.page-sub { font-size: 14px; color: #64748b; margin: 4px 0 0; }
.demo1-title { font-size:20px; font-weight:600; color:#1a1d23; margin:0; }
.demo1-sub { font-size:13px; color:#6b7280; margin:4px 0 0; }
.text-emerald-500 { color: #10b981; }
.btn-brand-grad { padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-hover)); text-decoration: none; box-shadow: 0 4px 14px rgba(79,70,229,.25); }
.card-soft { background:#fff; border-radius:16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border:1px solid #f1f5f9; overflow:hidden; }
.card-head-grad { padding: 16px 24px; border-bottom: 1px solid #f1f5f9; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
/* P5d-R: d-w-auto/d-w-120 覆盖 .form-input width:100%（操作方 2026-10-28） */
.d-w-auto{width:auto}
.d-w-120{width:120px}
/* P5e: 内联style收敛追加类（d-* 体系）2026-10-28 */
.d-w-180{width:180px}
.d-w-192{width:192px}
.d-minw-70{min-width:70px}
.d-minw-120{min-width:120px}
.d-minw-140{min-width:140px}
.d-bg-mask{background:rgba(0,0,0,0.5)}
.d-z-9999{z-index:9999}
.d-bottom-100{bottom:100px}
.d-right-30{right:30px}
/* [20261031-PRIVACY-MODAL] 补齐 L-12 弹窗缺失的 Tailwind 任意值类（构建冻结，走组件层） */
#privacy-consent-modal{z-index:1000;background:rgba(15,23,42,.72);padding:16px}
#privacy-consent-modal>div{width:100%;border-radius:24px;max-height:86vh;overflow-y:auto;margin:0 16px}
#privacy-consent-modal .h-px{height:1px;background:#f1f5f9;margin:20px 0}
#privacy-consent-modal .w-11{width:2.75rem}
#privacy-consent-modal .h-11{height:2.75rem}
#privacy-consent-modal input[type=checkbox]{accent-color:#4f46e5}
#privacy-consent-modal .btn-primary:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:640px){#privacy-consent-modal>div{margin:0 8px;padding:20px}}
/* ===== UI-8-1 内联 style 工具类（u-*） ===== */
.u-22295700{background: #dc2626; color: white}
.u-dbc16af2{background: #f8fafc}
.u-b7b40c7c{background: #fef3c7}
.u-b4bc3280{background: linear-gradient(to right, var(--brand), var(--brand-hover))}
.u-71e10ac8{background: rgba(0,0,0,0.5)}
.u-b32ced90{background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3)}
.u-f5a00488{background:#10b98115;color:#10b981}
.u-e0c5d5f4{background:#3b82f615;color:#3b82f6}
.u-3292eed4{background:#64748b15;color:#64748b}
.u-3cba941e{background:#8b5cf615;color:#8b5cf6}
.u-567ec73e{background:#ef444415;color:#ef4444}
.u-76d2f617{background:#f59e0b15;color:#f59e0b}
.u-8ab54dc7{background:#f9731615;color:#f97316}
.u-1a65d062{background:white;border-radius:16px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.06)}
.u-18bc0be7{border-color:#e0a34a}
.u-50382971{border-color:#e2e8f0}
.u-86148b74{color: #1e293b}
.u-a6f48144{color: #64748b}
.u-b9815fc4{color: #a5b4fc}
.u-ddfd6064{color: #ef4444}
.u-59ae1146{color:#059669;border-color:#e5e7eb}
.u-b0484c3f{color:#94a3b8;flex-shrink:0}
.u-731da7a6{color:#dc2626;border-color:#e5e7eb}
.u-f7d0eec2{display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.8); z-index: 9999; align-items: center; justify-content: center}
.u-2a1b75c9{display:block}
.u-9d5f63b3{display:flex;align-items:center;cursor:pointer}
.u-5327d9c6{display:flex;align-items:center;gap:8px;font-size:14px;color:#475569;cursor:pointer}
.u-d35546d9{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;touch-action:manipulation}
.u-63ed11ff{display:flex;align-items:center;justify-content:flex-start;gap:8px;background:transparent;border:none;width:100%}
.u-c3ea757d{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.u-9b61b45e{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:12px}
.u-6b99de8b{display:none}
.u-4132b4f3{font-size: 16px; font-weight: 800}
.u-322c8cf2{font-weight:500;color:#334155}
.u-2cf75d07{font-weight:600;font-size:15px;color:#1e293b;flex:1;min-width:0;word-break:break-all}
.u-761d3add{margin-bottom:10px}
.u-356078f7{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
.u-75de06ee{padding:14px 16px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:10px}
.u-0464c4b6{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.u-2f9867f6{width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite}
.u-fefb41ae{width:18px;height:18px;cursor:pointer}
.u-f296cfa7{width:36px;height:36px;border-radius:50%;background:var(--brand);color:white;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:14px;flex-shrink:0}
.u-eca3ce70{z-index:1000}
.u-21728caf{z-index:1000; min-width: 320px}
/* ---- UI-8-1 动态样式（R3：四类一 JS） ---- */
.d-dept-recruit{color:#4f46e5}
.d-dept-project{color:#4c7a63}
.d-dept-sales{color:#d97706}
.d-dept-hr{color:#7c3aed}
.d-dept-bg-recruit{background:#4f46e5}
.d-dept-bg-project{background:#4c7a63}
.d-dept-bg-sales{background:#d97706}
.d-dept-bg-hr{background:#7c3aed}
.d-grid-4{grid-template-columns:repeat(4,1fr)}
.d-grid-5{grid-template-columns:repeat(5,1fr)}
.d-tag{background:color-mix(in srgb,var(--tag,var(--brand-weak)) 12.5%,transparent);color:var(--tag,var(--brand))}
.d-pct{width:var(--pct)}


/* ===== M-01（历史挂账 O-09）移动端可藏列 =====
   断点与全站卡片化断点同源：本文件内 table/thead/tbody/tr/th/td{display:block}
   所在 @media 同为 767px（复审 C1），此处不得出现第二处魔数。 */
@media (max-width:767px){
    .u14-col-off{display:none!important}
}

.u14-cols-btn{
    display:none;
    margin:0 0 6px auto;
    padding:4px 12px;
    font-size:12px;
    line-height:1.6;
    border:1px solid var(--line,#e5e7eb);
    border-radius:999px;
    background:#fff;
    color:var(--brand,#4f46e5);
}

.u14-cols-panel{
    display:none;
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:1000;
    max-height:60vh;
    background:#fff;
    border-top:1px solid var(--line,#e5e7eb);
    box-shadow:0 -8px 24px rgba(0,0,0,.12);
    border-radius:16px 16px 0 0;
    flex-direction:column;
}

.u14-cols-panel.open{display:flex}

.u14-cols-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px;
    font-size:14px;
    font-weight:600;
    border-bottom:1px solid var(--line,#e5e7eb);
}

.u14-cols-close{
    width:28px;height:28px;
    line-height:1;
    font-size:18px;
    color:#6b7280;
    background:none;
    border:0;
}

.u14-cols-body{
    overflow-y:auto;
    padding:8px 16px 12px;
}

.u14-cols-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 0;
    font-size:14px;
    border-bottom:1px solid #f3f4f6;
}

.u14-cols-item input{width:18px;height:18px}

.u14-cols-hint{
    padding:8px 0;
    font-size:12px;
    color:#9ca3af;
}

.u14-cols-foot{
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line,#e5e7eb);
}

.u14-cols-reset{
    width:100%;
    padding:8px;
    font-size:14px;
    color:var(--brand,#4f46e5);
    background:#f8fafc;
    border:1px solid var(--line,#e5e7eb);
    border-radius:10px;
}

@media (max-width:767px){
    .u14-cols-btn{display:block}
}


/* [T-43] 移动端适配（≤767px；[M-11] 断点由 640 提到 767，补 641–767 大屏手机横屏/小平板断档）。
   口径：所有规则只在 max-width:767px 内生效，768px 以上（含桌面 ≥1024px）视觉零变化。
   [M-11] 选「把现有规则改挂到 767px」而非「另加 641–767 一档」：改挂后 .mo-scroll 的 min-width 只剩 1 条
   （观5 要删的重复类型不会复发），640 与 641–767 行为完全一致，768 以上逐字节不变。
   用法：宽表外层容器加 .mo-scroll（并保留 overflow-x-auto）；主操作按钮/链接加 .mo-touch；
   打标等筛选输入加 .mo-field；文件上传控件加 .mo-file。 */
@media (max-width:767px){
    .mo-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .mo-scroll > table{min-width:640px}
    .mo-touch{min-height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center}
    .mo-field{display:block;width:100%;min-height:40px}
    .mo-file{display:block;width:100%;min-height:40px;padding:8px 12px;box-sizing:border-box}
}
