:root {
            /* Primary - Ocean Blue Palette */
            --primary-50: #f0f9ff;
            --primary-100: #e0f2fe;
            --primary-200: #bae6fd;
            --primary-300: #7dd3fc;
            --primary-400: #38bdf8;
            --primary-500: #0ea5e9;
            --primary-600: #0284c7;
            --primary-700: #0369a1;
            --primary-800: #075985;
            --primary-900: #0c4a6e;

            /* Accent - Orange/Coral */
            --accent-400: #fb923c;
            --accent-500: #f97316;
            --accent-600: #ea580c;

            /* Neutral - Slate */
            --slate-50: #f8fafc;
            --slate-100: #f1f5f9;
            --slate-200: #e2e8f0;
            --slate-300: #cbd5e1;
            --slate-400: #94a3b8;
            --slate-500: #64748b;
            --slate-600: #475569;
            --slate-700: #334155;
            --slate-800: #1e293b;
            --slate-900: #0f172a;

            /* Semantic */
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;

            /* Staff workspace */
            --staff-bg: #f6f8fb;
            --staff-surface: #ffffff;
            --staff-surface-soft: #f8fafc;
            --staff-line: #dbe5ef;
            --staff-line-strong: #cbd8e6;
            --staff-hover: #f0f7ff;
            --staff-active: #eaf5ff;
            --staff-active-border: #8ccdf4;
            --staff-accent: #0284c7;
            --staff-ok-bg: #edfdf5;
            --staff-ok-text: #047857;
            --staff-warn-bg: #fff8e6;
            --staff-warn-text: #b45309;
            --staff-danger-bg: #fff1f2;
            --staff-danger-text: #be123c;
            --staff-info-bg: #eef6ff;
            --staff-info-text: #1d4ed8;
            --staff-card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 22px rgba(15, 23, 42, .035);

            /* Elevation */
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
            --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
            --shadow-glow: 0 0 40px -10px var(--primary-500);

            /* Radius */
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-2xl: 32px;
            --radius-full: 9999px;

            /* Animation */
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            line-height: 1.7;
            color: var(--slate-800);
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ===== NAVIGATION ===== */
        .navbar {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 1000;
            padding: 1.25rem 0;
            transition: all var(--transition-base);
            background: transparent;
        }

        .navbar.scrolled {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            box-shadow: var(--shadow-md);
            padding: 0.875rem 0;
        }

        .nav-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.375rem;
            font-weight: 700;
            color: var(--slate-50);
            text-decoration: none;
            transition: color var(--transition-fast);
        }

        .navbar.scrolled .logo { color: var(--primary-700); }

        .logo-icon {
            width: 68px; height: 68px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: transform var(--transition-spring);
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .logo:hover .logo-icon { transform: scale(1.05); }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: rgba(255,255,255,0.9);
            font-weight: 500;
            font-size: 0.9375rem;
            position: relative;
            padding: 0.5rem 0.25rem;
            transition: color var(--transition-fast);
        }

        .navbar.scrolled .nav-links a { color: var(--slate-600); }
        .nav-links a:hover { color: var(--accent-500); }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0;
            width: 0; height: 2px;
            background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
            border-radius: 2px;
            transition: width var(--transition-base);
        }

        .nav-links a:hover::after { width: 100%; }

        .nav-cta {
            padding: 0.625rem 1.25rem;
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            color: white !important;
            border-radius: var(--radius-md);
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
            transition: all var(--transition-base) !important;
        }

        .nav-cta::after { display: none !important; }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
        }

        .nav-login {
            padding: 0.5rem 1rem;
            border: 1.5px solid rgba(255,255,255,0.35);
            color: rgba(255,255,255,0.95);
            border-radius: var(--radius-md);
            font-weight: 500;
            font-size: 0.9375rem;
            text-decoration: none;
            transition: all var(--transition-fast);
            display: inline-flex;
            align-items: center;
        }

        .navbar.scrolled .nav-login {
            border-color: var(--slate-300);
            color: var(--slate-600);
        }

        .nav-login:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.6);
            color: white;
        }

        .navbar.scrolled .nav-login:hover {
            background: var(--slate-100);
            border-color: var(--slate-400);
            color: var(--slate-800);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: white;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: var(--radius-md);
            transition: background var(--transition-fast);
        }

        .mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }
        .navbar.scrolled .mobile-menu-btn { color: var(--slate-700); }
        .navbar.scrolled .mobile-menu-btn:hover { background: var(--slate-100); }

        /* ===== HERO SECTION ===== */
        .hero {
            min-height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            overflow: hidden;
            background: linear-gradient(165deg, var(--slate-900) 0%, var(--primary-900) 50%, var(--primary-800) 100%);
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 50% at 20% 40%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
        }

        .hero-grid-pattern {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 64px 64px;
            animation: gridMove 30s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(64px, 64px); }
        }

        .hero-content {
            position: relative;
            z-index: 10;
            max-width: 1280px;
            margin: 0 auto;
            padding: 4rem 1.5rem 5rem;
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: var(--radius-full);
            font-size: 0.875rem;
            color: var(--primary-300);
            margin-bottom: 1.5rem;
            animation: fadeInUp 0.6s ease backwards;
        }

        .hero-badge i { color: var(--accent-400); }

        .hero-text h1 {
            font-size: clamp(2.75rem, 5vw, 4.5rem);
            font-weight: 900;
            color: white;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
            animation: fadeInUp 0.6s ease 0.1s backwards;
        }

        .hero-text h1 .highlight {
            background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--slate-300);
            margin-bottom: 2.5rem;
            line-height: 1.8;
            max-width: 540px;
            animation: fadeInUp 0.6s ease 0.2s backwards;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero-stats {
            display: flex;
            gap: 2.5rem;
            margin-bottom: 2.5rem;
            animation: fadeInUp 0.6s ease 0.3s backwards;
        }

        .stat-item { text-align: left; }
        .stat-number {
            font-size: 2.75rem;
            font-weight: 800;
            color: white;
            line-height: 1;
            letter-spacing: -0.02em;
        }

        .stat-number .suffix {
            font-size: 1.5rem;
            color: var(--accent-400);
        }

        .stat-label {
            font-size: 0.875rem;
            color: var(--slate-400);
            margin-top: 0.5rem;
            font-weight: 500;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.6s ease 0.4s backwards;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 1rem 1.75rem;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: var(--radius-md);
            transition: all var(--transition-base);
            cursor: pointer;
            border: none;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }

        .btn:hover::before { transform: translateX(100%); }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            color: white;
            box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
        }

        .btn-secondary {
            background: rgba(255,255,255,0.1);
            color: white;
            border: 1px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.15);
            border-color: rgba(255,255,255,0.3);
        }

        /* Hero Visual */
        .hero-visual {
            position: relative;
            animation: fadeInUp 0.8s ease 0.3s backwards;
        }

        .globe-container {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            max-width: 480px;
            margin: 0 auto;
        }

        .globe {
            width: 100%; height: 100%;
            border-radius: 50%;
            background:
                radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.4), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.2), transparent 50%),
                linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(3, 105, 161, 0.3));
            border: 1px solid rgba(255,255,255,0.15);
            position: relative;
            animation: globeFloat 6s ease-in-out infinite;
            box-shadow:
                inset 0 0 60px rgba(14, 165, 233, 0.2),
                0 0 80px rgba(14, 165, 233, 0.15);
        }

        @keyframes globeFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-15px); }
        }

        .globe-lines {
            position: absolute;
            inset: 10%;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.1);
            animation: globeRotate 30s linear infinite;
        }

        .globe-lines::before,
        .globe-lines::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.08);
        }

        .globe-lines::before { inset: 15%; }
        .globe-lines::after { inset: 30%; }

        @keyframes globeRotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .warehouse-badge {
            position: absolute;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-radius: var(--radius-lg);
            padding: 1rem 1.25rem;
            box-shadow: var(--shadow-xl);
            animation: badgeFloat 5s ease-in-out infinite;
            cursor: pointer;
            transition: all var(--transition-base);
            min-width: 140px;
        }

        .warehouse-badge:hover {
            transform: scale(1.05) translateY(-5px);
            box-shadow: var(--shadow-2xl);
        }

        .warehouse-badge:nth-child(2) { top: 5%; right: -5%; animation-delay: 0s; }
        .warehouse-badge:nth-child(3) { bottom: 15%; left: -10%; animation-delay: 1.5s; }
        .warehouse-badge:nth-child(4) { top: 45%; right: -15%; animation-delay: 3s; }

        @keyframes badgeFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }

        .badge-flag {
            width: 40px; height: 40px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
        }

        .badge-title { font-weight: 700; color: var(--slate-800); font-size: 0.9375rem; }
        .badge-desc {
            font-size: 0.8125rem;
            color: var(--slate-500);
            margin-top: 0.25rem;
            font-weight: 500;
        }

        /* ===== TRUST BAR ===== */
        .trust-bar {
            background: white;
            padding: 2rem 0;
            border-bottom: 1px solid var(--slate-200);
        }

        .trust-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4rem;
            flex-wrap: wrap;
        }

        .trust-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--slate-500);
            font-size: 0.9375rem;
            font-weight: 500;
        }

        .trust-item i {
            color: var(--success);
            font-size: 1.25rem;
        }

        /* ===== SECTION COMMON ===== */
        section { padding: 6rem 0; position: relative; }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
            max-width: 640px;
            margin-left: auto;
            margin-right: auto;
        }

        .section-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--primary-100);
            color: var(--primary-700);
            font-size: 0.875rem;
            font-weight: 600;
            border-radius: var(--radius-full);
            margin-bottom: 1rem;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            color: var(--slate-900);
            margin-bottom: 1rem;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .section-subtitle {
            font-size: 1.125rem;
            color: var(--slate-500);
            line-height: 1.7;
        }

        /* ===== ABOUT SECTION ===== */
        .about { background: white; }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 5rem;
            align-items: center;
        }

        .about-gallery {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .about-img {
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            transition: all var(--transition-base);
            position: relative;
        }

        .about-img::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .about-img:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-xl);
        }

        .about-img:hover::after { opacity: 1; }

        .about-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .about-img:hover img { transform: scale(1.08); }

        .about-img-main { grid-row: span 2; height: 100%; min-height: 420px; }
        .about-img-sub { height: 200px; }

        .about-logo {
            width: 160px;
            height: 160px;
            margin: 1rem 0 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .about-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .about-content h3 {
            font-size: 2.25rem;
            font-weight: 800;
            color: var(--slate-900);
            margin-bottom: 1.5rem;
            line-height: 1.3;
        }

        .about-content > p {
            color: var(--slate-600);
            margin-bottom: 1.25rem;
            font-size: 1.0625rem;
            line-height: 1.8;
        }

        .about-features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-top: 2.5rem;
        }

        .about-feature {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 1.125rem;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border-radius: var(--radius-lg);
            transition: all var(--transition-base);
            cursor: pointer;
            border: 1px solid transparent;
        }

        .about-feature:hover {
            background: var(--primary-50);
            border-color: var(--primary-200);
            transform: translateX(5px);
        }

        .about-feature i {
            width: 44px; height: 44px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
        }

        .about-feature span {
            font-weight: 600;
            color: var(--slate-800);
            font-size: 1rem;
        }

        /* ===== SERVICES SECTION ===== */
        .services { background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%); }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .service-card {
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all var(--transition-base);
            position: relative;
            border: 1px solid var(--slate-200);
            display: flex;
            flex-direction: column;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
            transform: scaleX(0);
            transition: transform var(--transition-base);
        }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-200);
        }

        .service-card:hover::before { transform: scaleX(1); }

        .service-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .service-card:hover .service-image img { transform: scale(1.08); }

        .service-image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
            display: flex;
            align-items: flex-end;
            padding: 1.25rem;
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .service-card:hover .service-image-overlay { opacity: 1; }

        .service-view-btn {
            background: white;
            color: var(--slate-800);
            padding: 0.625rem 1.125rem;
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all var(--transition-fast);
            box-shadow: var(--shadow-md);
        }

        .service-view-btn:hover {
            background: var(--primary-500);
            color: white;
        }

        .service-content {
            padding: 1.75rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .service-icon {
            width: 56px; height: 56px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            margin-bottom: 1.25rem;
            transition: all var(--transition-base);
            box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
        }

        .service-card:hover .service-icon {
            transform: scale(1.1) rotate(5deg);
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
        }

        .service-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--slate-900);
            margin-bottom: 0.875rem;
        }

        .service-card > p {
            color: var(--slate-600);
            font-size: 0.9375rem;
            line-height: 1.7;
            margin-bottom: 1.25rem;
            flex: 1;
        }

        .service-features {
            list-style: none;
            margin-bottom: 1.5rem;
        }

        .service-features li {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.375rem 0;
            color: var(--slate-600);
            font-size: 0.875rem;
        }

        .service-features li i {
            color: var(--success);
            font-size: 0.9375rem;
        }

        .service-cta {
            width: 100%;
            padding: 0.875rem;
            background: var(--slate-100);
            color: var(--slate-700);
            border: none;
            border-radius: var(--radius-md);
            font-weight: 600;
            font-size: 0.9375rem;
            cursor: pointer;
            transition: all var(--transition-base);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: auto;
        }

        .service-cta:hover {
            background: var(--primary-500);
            color: white;
            box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
        }

        /* ===== WAREHOUSE SECTION ===== */
        .warehouse {
            background: linear-gradient(165deg, var(--slate-900) 0%, var(--primary-900) 100%);
            color: white;
            overflow: hidden;
            position: relative;
        }

        .warehouse::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse at 0% 0%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 100%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
        }

        .warehouse .section-title { color: white; }
        .warehouse .section-subtitle { color: var(--slate-400); }

        .warehouse-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 10;
        }

        .warehouse-gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .warehouse-img {
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-2xl);
            cursor: pointer;
            transition: all var(--transition-base);
            position: relative;
        }

        .warehouse-img:hover {
            transform: translateY(-5px) scale(1.02);
        }

        .warehouse-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .warehouse-img:hover img { transform: scale(1.1); }

        .warehouse-img-large { grid-column: span 2; height: 260px; }
        .warehouse-img-small { height: 190px; }

        .warehouse-img-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            display: flex;
            align-items: flex-end;
            padding: 1.25rem;
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .warehouse-img:hover .warehouse-img-overlay { opacity: 1; }

        .warehouse-img-title {
            color: white;
            font-weight: 600;
            font-size: 1rem;
        }

        .warehouse-cards { display: grid; gap: 1.25rem; }

        .warehouse-card {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-xl);
            padding: 1.75rem;
            transition: all var(--transition-base);
            cursor: pointer;
        }

        .warehouse-card:hover {
            background: rgba(255,255,255,0.1);
            transform: translateX(8px);
            border-color: var(--accent-500);
        }

        .warehouse-card.active {
            background: rgba(249, 115, 22, 0.15);
            border-color: var(--accent-500);
        }

        .warehouse-card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .warehouse-flag {
            width: 52px; height: 52px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 14px rgba(0,0,0,0.2);
        }

        .warehouse-card h4 {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .warehouse-card > p {
            color: var(--slate-400);
            font-size: 0.9375rem;
            line-height: 1.7;
            margin-bottom: 1.25rem;
        }

        .warehouse-detail-btn {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.25);
            color: white;
            padding: 0.625rem 1.125rem;
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-base);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .warehouse-detail-btn:hover {
            background: var(--accent-500);
            border-color: var(--accent-500);
        }

        .warehouse-stats {
            display: flex;
            gap: 2rem;
            margin-top: 1.25rem;
            padding-top: 1.25rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .warehouse-stat { text-align: center; }

        .warehouse-stat-value {
            font-size: 1.625rem;
            font-weight: 800;
            color: var(--accent-400);
        }

        .warehouse-stat-label {
            font-size: 0.8125rem;
            color: var(--slate-500);
            margin-top: 0.25rem;
            font-weight: 500;
        }

        /* ===== PROCESS SECTION ===== */
        .process { background: white; }

        .process-timeline {
            display: flex;
            justify-content: space-between;
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        .process-timeline::before {
            content: '';
            position: absolute;
            top: 36px;
            left: 10%; right: 10%;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
            border-radius: 2px;
        }

        .process-step {
            flex: 1;
            text-align: center;
            position: relative;
            padding: 0 1rem;
            cursor: pointer;
            transition: transform var(--transition-base);
        }

        .process-step:hover { transform: translateY(-8px); }

        .process-step-number {
            width: 72px; height: 72px;
            background: white;
            border: 3px solid var(--primary-500);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.625rem;
            font-weight: 800;
            color: var(--primary-600);
            margin: 0 auto 1.25rem;
            position: relative;
            z-index: 2;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-md);
        }

        .process-step:hover .process-step-number {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            transform: scale(1.1);
            box-shadow: var(--shadow-glow);
        }

        .process-step h4 {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--slate-900);
            margin-bottom: 0.5rem;
        }

        .process-step p {
            font-size: 0.9375rem;
            color: var(--slate-500);
            line-height: 1.6;
        }

        /* ===== TESTIMONIALS SECTION ===== */
        .testimonials {
            background: linear-gradient(180deg, var(--slate-50) 0%, white 100%);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .testimonial-card {
            background: white;
            padding: 2rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--slate-200);
            transition: all var(--transition-base);
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-200);
        }

        .testimonial-stars {
            color: #fbbf24;
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        .testimonial-text {
            color: var(--slate-600);
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .testimonial-avatar {
            width: 48px; height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.125rem;
        }

        .testimonial-info h5 {
            font-weight: 700;
            color: var(--slate-900);
            font-size: 0.9375rem;
        }

        .testimonial-info p {
            font-size: 0.875rem;
            color: var(--slate-500);
        }

        /* ===== PARTNERS SECTION ===== */
        .partners { background: white; padding: 4rem 0; }

        .partners-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
        }

        .partner-logo {
            padding: 1rem 1.5rem;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--slate-600);
            border: 1px solid var(--slate-200);
            transition: all var(--transition-base);
            cursor: pointer;
        }

        .partner-logo:hover {
            background: var(--primary-50);
            border-color: var(--primary-300);
            color: var(--primary-700);
            transform: translateY(-3px);
        }

        /* ===== ADVANTAGES SECTION ===== */
        .advantages { background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%); }

        .advantages-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .advantage-card {
            text-align: center;
            padding: 2.5rem 1.5rem;
            background: white;
            border-radius: var(--radius-xl);
            transition: all var(--transition-base);
            border: 1px solid var(--slate-200);
            cursor: pointer;
        }

        .advantage-card:hover {
            border-color: var(--primary-300);
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
        }

        .advantage-icon {
            width: 72px; height: 72px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            color: white;
            margin: 0 auto 1.5rem;
            transition: all var(--transition-spring);
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
        }

        .advantage-card:hover .advantage-icon {
            transform: scale(1.1) rotate(-5deg);
            box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
        }

        .advantage-card h4 {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--slate-900);
            margin-bottom: 0.875rem;
        }

        .advantage-card p {
            font-size: 0.9375rem;
            color: var(--slate-500);
            line-height: 1.7;
        }

        /* ===== GALLERY SECTION ===== */
        .gallery { background: white; }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }

        .gallery-item {
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            cursor: pointer;
            transition: all var(--transition-base);
            position: relative;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .gallery-item:hover img { transform: scale(1.1); }

        .gallery-item-large { grid-column: span 2; grid-row: span 2; height: 420px; }
        .gallery-item-medium { grid-column: span 2; height: 200px; }
        .gallery-item-small { height: 200px; }

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            display: flex;
            align-items: flex-end;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .gallery-item:hover .gallery-overlay { opacity: 1; }

        .gallery-title {
            color: white;
            font-weight: 600;
            font-size: 1.0625rem;
        }

        .gallery-zoom {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            width: 56px; height: 56px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            color: var(--slate-800);
            opacity: 0;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-lg);
        }

        .gallery-item:hover .gallery-zoom {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        /* ===== CTA SECTION ===== */
        .cta-section {
            background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
            padding: 5rem 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .cta-content {
            position: relative;
            z-index: 1;
        }

        .cta-section h2 {
            font-size: 2.5rem;
            font-weight: 800;
            color: white;
            margin-bottom: 1rem;
        }

        .cta-section p {
            font-size: 1.25rem;
            color: var(--primary-200);
            margin-bottom: 2rem;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1.125rem 2.5rem;
            background: white;
            color: var(--primary-700);
            font-size: 1.125rem;
            font-weight: 700;
            border-radius: var(--radius-md);
            text-decoration: none;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-xl);
        }

        .cta-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }

        /* ===== CONTACT SECTION ===== */
        .contact {
            background: linear-gradient(165deg, var(--slate-900) 0%, var(--primary-900) 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .contact::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            position: relative;
            z-index: 10;
        }

        .contact-info h3 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1.25rem;
            letter-spacing: -0.02em;
        }

        .contact-info > p {
            font-size: 1.125rem;
            color: var(--slate-400);
            margin-bottom: 2.5rem;
            line-height: 1.7;
        }

        .contact-items { display: grid; gap: 1.25rem; }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1.125rem;
            padding: 1.375rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-lg);
            transition: all var(--transition-base);
            cursor: pointer;
        }

        .contact-item:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.2);
            transform: translateX(8px);
        }

        .contact-item i {
            width: 52px; height: 52px;
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
        }

        .contact-item div h4 {
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--slate-400);
            margin-bottom: 0.375rem;
        }

        .contact-item div p {
            font-size: 1.125rem;
            font-weight: 600;
            color: white;
        }

        .contact-form {
            background: white;
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            color: var(--slate-800);
            box-shadow: var(--shadow-2xl);
        }

        .contact-form h4 {
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            color: var(--slate-900);
        }

        .contact-form > p {
            color: var(--slate-500);
            font-size: 0.9375rem;
            margin-bottom: 1.75rem;
        }

        .form-group { margin-bottom: 1.25rem; }

        .form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--slate-700);
            margin-bottom: 0.5rem;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid var(--slate-200);
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-family: inherit;
            transition: all var(--transition-fast);
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary-500);
            background: white;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 110px;
        }

        .form-submit {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--transition-base);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.625rem;
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
        }

        .form-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(249, 115, 22, 0.45);
        }

        /* ===== FOOTER ===== */
        footer {
            background: #0f172a;
            color: white;
            padding: 4rem 0 2rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-brand h3 {
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: white;
        }

        .footer-logo {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .footer-brand p {
            color: var(--slate-400);
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        .footer-social {
            display: flex;
            gap: 0.875rem;
        }

        .footer-social a {
            width: 42px; height: 42px;
            background: rgba(255,255,255,0.08);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all var(--transition-base);
            font-size: 1.125rem;
        }

        .footer-social a:hover {
            background: var(--accent-500);
            transform: translateY(-3px);
        }

        .footer-column h4 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
            color: white;
        }

        .footer-column ul { list-style: none; }
        .footer-column li { margin-bottom: 0.75rem; }

        .footer-column a {
            color: var(--slate-400);
            text-decoration: none;
            font-size: 0.9375rem;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-column a:hover {
            color: var(--accent-400);
            transform: translateX(4px);
        }

        .footer-bottom {
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-bottom p {
            color: var(--slate-500);
            font-size: 0.875rem;
        }

        /* ===== MOBILE MENU ===== */
        .mobile-menu {
            position: fixed;
            top: 0; right: -100%;
            width: 85%;
            max-width: 380px;
            height: 100vh;
            background: white;
            z-index: 10001;
            padding: 1.5rem;
            transition: right var(--transition-slow);
            box-shadow: var(--shadow-2xl);
        }

        .mobile-menu.active { right: 0; }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--slate-200);
        }

        .mobile-menu-header h3 {
            font-size: 1.375rem;
            font-weight: 800;
            color: var(--slate-900);
        }

        .mobile-menu-close {
            background: var(--slate-100);
            border: none;
            width: 40px; height: 40px;
            border-radius: var(--radius-md);
            font-size: 1.25rem;
            color: var(--slate-600);
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .mobile-menu-close:hover {
            background: var(--slate-200);
            color: var(--slate-900);
        }

        .mobile-menu-links { list-style: none; }
        .mobile-menu-links li { margin-bottom: 0.5rem; }

        .mobile-menu-links a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.125rem;
            color: var(--slate-700);
            text-decoration: none;
            font-weight: 600;
            border-radius: var(--radius-lg);
            transition: all var(--transition-fast);
        }

        .mobile-menu-links a:hover {
            background: var(--primary-50);
            color: var(--primary-600);
        }

        .mobile-menu-links a i {
            width: 40px; height: 40px;
            background: var(--slate-100);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-600);
        }

        /* ===== MODAL ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all var(--transition-base);
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .modal-container {
            background: white;
            border-radius: var(--radius-2xl);
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            transform: scale(0.95) translateY(20px);
            transition: all var(--transition-base);
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-2xl);
        }

        .modal-overlay.active .modal-container {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            padding: 1.5rem 1.75rem;
            border-bottom: 1px solid var(--slate-200);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 1.375rem;
            font-weight: 800;
            color: var(--slate-900);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .modal-title i { color: var(--primary-500); }

        .modal-close {
            width: 40px; height: 40px;
            background: var(--slate-100);
            border: none;
            border-radius: var(--radius-md);
            font-size: 1.125rem;
            color: var(--slate-500);
            cursor: pointer;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: var(--error);
            color: white;
        }

        .modal-content {
            padding: 1.75rem;
            overflow-y: auto;
            flex: 1;
        }

        .modal-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: var(--radius-lg);
            margin-bottom: 1.5rem;
        }

        .modal-section { margin-bottom: 1.5rem; }

        .modal-section h4 {
            font-size: 1.0625rem;
            font-weight: 700;
            color: var(--slate-900);
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .modal-section h4 i { color: var(--primary-500); }

        /* ===== CONTACT MODAL ===== */
        .contact-modal-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            padding: 2rem;
        }

        .contact-modal-left {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .contact-modal-logo {
            width: 100px;
            height: 100px;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .contact-modal-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .contact-modal-info h4 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--slate-900);
            margin-bottom: 1rem;
        }

        .contact-modal-item {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 0.875rem;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border-radius: var(--radius-lg);
            margin-bottom: 0.75rem;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .contact-modal-item:hover {
            background: var(--primary-50);
            transform: translateX(4px);
        }

        .contact-modal-item i {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-600);
            font-size: 1rem;
            box-shadow: var(--shadow-sm);
        }

        .contact-modal-item div {
            flex: 1;
        }

        .contact-modal-item .label {
            font-size: 0.75rem;
            color: var(--slate-500);
            margin-bottom: 0.125rem;
        }

        .contact-modal-item .value {
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--slate-800);
        }

        .contact-modal-right {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background: linear-gradient(135deg, var(--primary-50), var(--slate-50));
            border-radius: var(--radius-xl);
        }

        .contact-modal-right h4 {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--slate-900);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .contact-modal-right h4 i {
            color: #07C160;
        }

        .qr-code-placeholder {
            width: 180px;
            height: 180px;
            background: white;
            border-radius: var(--radius-lg);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            border: 2px dashed var(--slate-300);
            margin-bottom: 1rem;
        }

        .qr-code-placeholder i {
            font-size: 4rem;
            color: var(--slate-300);
            margin-bottom: 0.5rem;
        }

        .qr-code-placeholder span {
            font-size: 0.75rem;
            color: var(--slate-400);
        }

        .qr-code-img {
            width: 180px;
            height: 180px;
            object-fit: contain;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            margin-bottom: 1rem;
        }

        .contact-modal-right p {
            font-size: 0.875rem;
            color: var(--slate-500);
            text-align: center;
        }

        @media (max-width: 768px) {
            .contact-modal-content {
                grid-template-columns: 1fr;
            }
            .contact-modal-right {
                order: -1;
                padding: 1rem;
            }
        }

        .modal-section p {
            color: var(--slate-600);
            line-height: 1.8;
        }

        .modal-list {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .modal-list li {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            color: var(--slate-700);
            padding: 0.625rem 0.875rem;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border-radius: var(--radius-md);
            font-size: 0.9375rem;
        }

        .modal-list li i { color: var(--success); }

        /* ===== LIGHTBOX ===== */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.95);
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all var(--transition-base);
        }

        .lightbox.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .lightbox img {
            max-width: 90%;
            max-height: 85vh;
            object-fit: contain;
            border-radius: var(--radius-lg);
            transform: scale(0.9);
            transition: transform var(--transition-base);
        }

        .lightbox.active img { transform: scale(1); }

        .lightbox-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 48px; height: 48px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 50%;
            font-size: 1.25rem;
            color: white;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .lightbox-close:hover { background: var(--error); }

        .lightbox-caption {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-full);
            font-size: 0.9375rem;
            font-weight: 500;
        }

        /* ===== SCROLL TO TOP ===== */
        .scroll-top {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            width: 48px; height: 48px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.125rem;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-base);
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-top:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-xl), var(--shadow-glow);
        }

        /* ===== ADMIN LOGIN ===== */
        .admin-login-overlay {
            position: fixed;
            inset: 0;
            background: linear-gradient(165deg, var(--slate-900) 0%, var(--primary-900) 100%);
            z-index: 10002;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .admin-login-overlay.active { display: flex; }

        .admin-login-container {
            background: white;
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            width: 100%;
            max-width: 420px;
            box-shadow: var(--shadow-2xl);
            animation: fadeInUp 0.4s ease;
        }

        .admin-login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .admin-login-header .logo-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 1rem;
            font-size: 1.75rem;
        }

        .admin-login-header h2 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--slate-900);
            margin-bottom: 0.5rem;
        }

        .admin-login-header p {
            color: var(--slate-500);
            font-size: 0.9375rem;
        }

        .admin-form-group {
            margin-bottom: 1.25rem;
        }

        .admin-form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--slate-700);
            margin-bottom: 0.5rem;
        }

        .admin-form-group input {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid var(--slate-200);
            border-radius: var(--radius-md);
            font-size: 1rem;
            transition: all var(--transition-fast);
        }

        .admin-form-group input:focus {
            outline: none;
            border-color: var(--primary-500);
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        .admin-login-btn {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--transition-base);
            margin-bottom: 1rem;
        }

        .admin-login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
        }

        .admin-quick-login {
            width: 100%;
            padding: 0.875rem;
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 0.9375rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-base);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .admin-quick-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
        }

        .admin-login-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 44px;
            height: 44px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .admin-login-close:hover {
            background: rgba(255,255,255,0.2);
        }

        /* ===== PORTAL MODAL ===== */
        .portal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            z-index: 10002;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .portal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .portal-container {
            background: white;
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            width: 100%;
            max-width: 640px;
            box-shadow: var(--shadow-2xl);
            transform: scale(0.92) translateY(20px);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .portal-overlay.active .portal-container {
            transform: scale(1) translateY(0);
        }

        .portal-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .portal-header h2 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--slate-800);
            margin-bottom: 0.5rem;
        }

        .portal-header p {
            color: var(--slate-500);
            font-size: 0.9375rem;
        }

        .portal-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .portal-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 2rem 1.5rem;
            border: 2px solid var(--slate-100);
            border-radius: var(--radius-xl);
            cursor: pointer;
            transition: all 0.25s ease;
            text-decoration: none;
            color: var(--slate-700);
            background: white;
            font-family: inherit;
            font-size: inherit;
            width: 100%;
        }

        .portal-card:hover {
            border-color: var(--primary-300);
            background: var(--primary-50);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(14, 165, 233, 0.12);
        }

        .portal-card i {
            font-size: 2.5rem;
            color: var(--primary-500);
            transition: transform 0.3s ease;
        }

        .portal-card:hover i {
            transform: scale(1.1);
        }

        .portal-card-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--slate-800);
        }

        .portal-card-desc {
            font-size: 0.8125rem;
            color: var(--slate-500);
            text-align: center;
            line-height: 1.5;
        }

        .portal-close {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: var(--slate-100);
            color: var(--slate-500);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }

        .portal-close:hover {
            background: var(--slate-200);
            color: var(--slate-800);
        }

        @media (max-width: 640px) {
            .portal-options { grid-template-columns: 1fr; }
            .portal-container { padding: 1.75rem; }
        }

        /* ===== ADMIN DASHBOARD ===== */
        .admin-dashboard {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            background: var(--staff-bg);
            z-index: 9999;
            overflow-y: auto;
        }

        .admin-dashboard.active { display: block; }

        .admin-sidebar {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: 260px;
            background:
                linear-gradient(180deg, #e0f2fe 0, #eef8ff 210px, #ffffff 62%),
                #fff;
            border-right: 1px solid #b7d8ef;
            z-index: 100;
            display: flex;
            flex-direction: column;
            transition: width .24s ease, transform .3s cubic-bezier(.4,0,.2,1), box-shadow .24s ease;
        }

        .admin-sidebar-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,.24);
            background: linear-gradient(135deg, #075985 0%, #0284c7 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
        }

        .admin-sidebar-header .admin-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.25rem;
            color: #fff;
        }

        .admin-sidebar-header .admin-logo-icon {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: rgba(255,255,255,.92);
            box-shadow: 0 8px 24px rgba(7, 89, 133, .24);
        }

        .admin-sidebar-header .admin-logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .admin-sidebar-collapse {
            width: 34px;
            height: 34px;
            border: 1px solid rgba(255,255,255,.32);
            border-radius: 8px;
            background: rgba(255,255,255,.14);
            color: #e0f2fe;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-fast);
            flex: 0 0 auto;
        }

        .admin-sidebar-collapse:hover {
            border-color: rgba(255,255,255,.7);
            background: rgba(255,255,255,.24);
            color: #fff;
        }

        .admin-nav {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
        }

        .admin-nav-section {
            margin-bottom: 1.5rem;
        }

        .admin-nav-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: #246b96;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.75rem;
            padding-left: 0.75rem;
        }

        .admin-nav-item {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            padding: 0.75rem;
            border-radius: 8px;
            color: #314b68;
            text-decoration: none;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-fast);
            margin-bottom: 0.25rem;
            overflow: hidden;
            white-space: nowrap;
            border: 1px solid transparent;
            position: relative;
        }

        .admin-nav-item:hover,
        .admin-nav-item.active {
            background: #dff1ff;
            border-color: #93c5fd;
            color: var(--primary-700);
            box-shadow: 0 8px 18px rgba(2, 132, 199, .08);
        }

        .admin-nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 9px;
            bottom: 9px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: var(--staff-accent);
        }

        .admin-nav-item i {
            width: 28px;
            height: 28px;
            text-align: center;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 7px;
            background: rgba(255,255,255,.72);
            color: #2d668a;
            flex: 0 0 28px;
        }

        .admin-nav-item:hover i,
        .admin-nav-item.active i {
            background: #0ea5e9;
            color: var(--staff-accent);
            color: #fff;
        }

        .admin-sidebar-footer {
            padding: 1rem;
            border-top: 1px solid var(--staff-line);
        }

        .admin-logout-btn {
            width: 100%;
            padding: 0.75rem;
            background: var(--slate-100);
            color: var(--slate-600);
            border: none;
            border-radius: var(--radius-md);
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .admin-logout-btn:hover {
            background: var(--error);
            color: white;
        }

        .admin-main {
            margin-left: 260px;
            min-height: 100vh;
            transition: margin-left .24s ease;
        }

        .admin-header {
            position: sticky;
            top: 0;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--slate-200);
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 50;
        }

        .admin-header h1 {
            font-size: 1.375rem;
            font-weight: 800;
            color: var(--slate-900);
        }

        .admin-header-user {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .admin-header-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 0.9375rem;
            overflow: hidden;
        }

        .admin-header-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .admin-content {
            padding: 1rem 1.25rem 1.25rem;
            max-width: none;
        }

        .admin-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: .75rem;
            margin-bottom: 1rem;
        }

        .admin-stat-card {
            background: var(--staff-surface);
            border-radius: 8px;
            padding: .9rem 1rem;
            border: 1px solid var(--staff-line);
            box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
            transition: all var(--transition-base);
        }

        .admin-stat-card:hover {
            border-color: var(--staff-active-border);
            box-shadow: var(--staff-card-shadow);
            transform: translateY(-2px);
        }

        .admin-stat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }

        .admin-stat-title {
            font-size: 0.8rem;
            color: var(--slate-500);
            font-weight: 500;
        }

        .admin-stat-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
        }

        .admin-stat-value {
            font-size: 1.45rem;
            font-weight: 800;
            color: var(--slate-900);
            margin-bottom: 0.12rem;
        }

        .admin-stat-change {
            font-size: 0.76rem;
            font-weight: 500;
        }

        .admin-stat-change.up { color: var(--success); }
        .admin-stat-change.down { color: var(--error); }

        .admin-card {
            background: var(--staff-surface);
            border-radius: 8px;
            border: 1px solid var(--staff-line);
            box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
            overflow: hidden;
        }

        .admin-card-header {
            padding: .85rem 1rem;
            border-bottom: 1px solid var(--staff-line);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .admin-card-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--slate-900);
        }

        .admin-card-body {
            padding: 1rem;
        }

        .admin-dashboard.role-staff .admin-header {
            padding: .78rem 1rem;
        }

        .admin-dashboard.role-staff .admin-header h1 {
            font-size: 1.08rem;
        }

        .admin-dashboard.role-staff .admin-header-avatar {
            width: 36px;
            height: 36px;
            font-size: .86rem;
        }

        .admin-dashboard.role-staff .admin-content {
            padding: .78rem 1rem 1rem;
        }

        .admin-dashboard.role-staff .admin-stats-grid {
            gap: .58rem;
            margin-bottom: .72rem;
        }

        .admin-dashboard.role-staff .admin-stat-card {
            padding: .7rem .78rem;
            min-height: 98px;
        }

        .admin-dashboard.role-staff .admin-stat-header {
            margin-bottom: .5rem;
        }

        .admin-dashboard.role-staff .admin-stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            font-size: .95rem;
        }

        .admin-dashboard.role-staff .admin-stat-title {
            font-size: .76rem;
            font-weight: 700;
        }

        .admin-dashboard.role-staff .admin-stat-value {
            font-size: 1.28rem;
            margin-bottom: .04rem;
        }

        .admin-dashboard.role-staff .admin-stat-change {
            font-size: .72rem;
        }

        .admin-dashboard.role-staff .admin-card-header {
            padding: .64rem .78rem;
        }

        .admin-dashboard.role-staff .admin-card-title {
            font-size: .92rem;
        }

        .admin-dashboard.role-staff .admin-card-body {
            padding: .78rem;
        }

        .admin-dashboard.role-staff .admin-table th,
        .admin-dashboard.role-staff .admin-table td {
            padding: .58rem .7rem;
            font-size: .82rem;
        }

        .staff-dashboard-announcements {
            margin-bottom: .85rem;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            background: #f0f9ff;
            box-shadow: 0 4px 12px rgba(2, 132, 199, .06);
            overflow: hidden;
        }

        .staff-dashboard-announcement-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            padding: .62rem .78rem;
            border-bottom: 1px solid rgba(14, 165, 233, .18);
            flex-wrap: wrap;
        }

        .staff-dashboard-announcement-head strong {
            display: flex;
            align-items: center;
            gap: .45rem;
            color: #075985;
            font-size: .9rem;
        }

        .staff-dashboard-announcement-head span {
            display: block;
            margin-top: .08rem;
            color: #3b6f8f;
            font-size: .76rem;
        }

        .staff-dashboard-announcement-list {
            display: grid;
            gap: 0;
            background: rgba(255, 255, 255, .78);
        }

        .staff-dashboard-announcement-item {
            width: 100%;
            border: 0;
            border-bottom: 1px solid rgba(186, 230, 253, .72);
            background: transparent;
            display: grid;
            grid-template-columns: 26px minmax(0, 1fr) auto;
            gap: .55rem;
            padding: .5rem .78rem;
            text-align: left;
            cursor: pointer;
            align-items: center;
            transition: background var(--transition-fast);
        }

        .staff-dashboard-announcement-item:last-child {
            border-bottom: 0;
        }

        .staff-dashboard-announcement-item:hover,
        .staff-dashboard-announcement-item.unread {
            background: rgba(255, 255, 255, .86);
        }

        .staff-dashboard-announcement-icon {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e0f2fe;
            color: #0369a1;
            font-size: .78rem;
        }

        .staff-dashboard-announcement-icon.green { background: #dcfce7; color: #15803d; }
        .staff-dashboard-announcement-icon.amber { background: #fef3c7; color: #b45309; }
        .staff-dashboard-announcement-icon.rose { background: #fee2e2; color: #b91c1c; }
        .staff-dashboard-announcement-icon.blue { background: #dbeafe; color: #1d4ed8; }

        .staff-dashboard-announcement-copy {
            min-width: 0;
            display: grid;
            gap: .16rem;
        }

        .staff-dashboard-announcement-title {
            color: var(--slate-900);
            font-weight: 800;
            font-size: .84rem;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .staff-dashboard-announcement-title em {
            margin-left: .38rem;
            color: #dc2626;
            font-size: .68rem;
            font-style: normal;
        }

        .staff-dashboard-announcement-text {
            color: var(--slate-600);
            font-size: .76rem;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .staff-dashboard-announcement-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: .16rem;
            color: var(--slate-400);
            font-size: .7rem;
            white-space: nowrap;
        }

        .staff-dashboard-announcement-empty {
            padding: .58rem .78rem;
            color: var(--slate-500);
            font-size: .8rem;
            background: rgba(255, 255, 255, .78);
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
        }

        .admin-table th,
        .admin-table td {
            padding: 0.875rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--staff-line);
        }

        .admin-table th {
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--slate-500);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            background: var(--staff-surface-soft);
        }

        .admin-table tr:hover td {
            background: var(--staff-hover);
        }

        .admin-table td {
            font-size: 0.9375rem;
            color: var(--slate-700);
        }

        .lcl-rates-table-wrap,
        .staff-business-table-wrap.lcl-rates-table-wrap {
            width: 100%;
            overflow-x: auto;
            scrollbar-gutter: stable;
        }

        .admin-table.lcl-rates-table {
            min-width: 2260px !important;
            table-layout: fixed;
        }

        .lcl-rates-table th,
        .lcl-rates-table td {
            white-space: nowrap;
            vertical-align: middle;
        }

        .lcl-rates-table td {
            padding: 0.82rem 0.72rem;
        }

        .lcl-rates-table .lcl-text-cell {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .lcl-rates-price-editor {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.3rem;
        }

        .lcl-rates-price-editor input {
            width: 112px;
            min-width: 112px;
            text-align: right;
        }

        .lcl-rates-price-label,
        .lcl-rates-price-editor span {
            color: var(--slate-500);
            font-size: 0.75rem;
            white-space: nowrap;
        }

        .lcl-rates-table .lcl-time-input {
            min-width: 150px;
        }

        .lcl-rates-table .lcl-remarks-input {
            min-width: 220px;
        }

        .staff-workbench-notice {
            margin-bottom: .55rem;
            padding: .52rem .7rem;
            border-radius: 8px;
            border: 1px solid #fcd34d;
            background: #fffbeb;
            color: #92400e;
            font-size: .82rem;
            font-weight: 700;
        }

        .staff-workbench-hero {
            margin-bottom: .58rem;
            border-color: var(--staff-line);
            background: var(--staff-surface);
        }

        .staff-workbench-hero .admin-card-body {
            padding: .68rem .78rem;
        }

        .staff-workbench-hero-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .65rem;
            flex-wrap: wrap;
        }

        .staff-workbench-title-wrap {
            display: flex;
            align-items: center;
            gap: .58rem;
            min-width: 260px;
        }

        .staff-workbench-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-600);
            background: var(--staff-active);
            font-size: .98rem;
            flex: 0 0 auto;
        }

        .staff-workbench-title-wrap h2 {
            margin: 0;
            font-size: 1rem;
            color: var(--slate-900);
        }

        .staff-workbench-title-wrap p {
            margin: .1rem 0 0;
            color: var(--slate-500);
            font-size: .78rem;
            line-height: 1.35;
        }

        .staff-workbench-scope {
            margin-top: .12rem;
            color: var(--slate-400);
            font-size: .74rem;
        }

        .staff-workbench-actions {
            display: flex;
            align-items: center;
            gap: .4rem;
            flex-wrap: wrap;
        }

        .staff-workbench-tabs {
            display: flex;
            gap: .32rem;
            flex-wrap: wrap;
            margin-top: .52rem;
        }

        .staff-workbench-tab {
            border: 1px solid var(--staff-line);
            border-radius: 7px;
            background: var(--staff-surface);
            color: var(--slate-700);
            padding: .32rem .52rem;
            cursor: pointer;
            font-weight: 700;
            font-size: .76rem;
            display: inline-flex;
            align-items: center;
            gap: .35rem;
        }

        .staff-workbench-tab.active {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
            color: var(--staff-accent);
        }

        .staff-workbench-tab:focus-visible,
        .staff-operation-filter:focus-visible,
        .staff-cs-tab:focus-visible,
        .staff-finance-tab:focus-visible,
        .admin-btn:focus-visible {
            outline: 3px solid rgba(14, 165, 233, .18);
            outline-offset: 2px;
        }

        .staff-workbench-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: .58rem;
            align-items: start;
        }

        .staff-workbench-card-header {
            gap: .75rem;
            flex-wrap: wrap;
        }

        .staff-workbench-orders {
            display: grid;
            gap: .48rem;
        }

        .staff-workbench-order-card {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            padding: .62rem .72rem .58rem;
            background: var(--staff-surface);
            box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
            transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
            position: relative;
            overflow: hidden;
        }

        .staff-workbench-order-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #bae6fd;
        }

        .staff-workbench-order-card:hover {
            border-color: var(--staff-active-border);
            box-shadow: var(--staff-card-shadow);
            transform: translateY(-1px);
        }

        .staff-workbench-fold-card {
            padding: 0;
        }

        .staff-workbench-fold-card > summary {
            list-style: none;
            cursor: pointer;
            padding: .62rem .72rem .58rem;
        }

        .staff-workbench-fold-card > summary::-webkit-details-marker {
            display: none;
        }

        .staff-workbench-fold-card > summary::after {
            content: '\f107';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--slate-400);
            align-self: center;
            justify-self: end;
            grid-column: 3;
            grid-row: 1;
        }

        .staff-workbench-fold-card[open] > summary::after {
            transform: rotate(180deg);
        }

        .staff-workbench-fold-card > .staff-workbench-meta,
        .staff-workbench-fold-card > .staff-workbench-order-actions,
        .staff-workbench-fold-card > .staff-business-operation-panel,
        .staff-workbench-fold-card > .staff-cs-cost-grid {
            margin: 0 .72rem .58rem;
        }
        .staff-workbench-signal-fold {
            margin: 0 .72rem .58rem;
            border: 1px dashed #fcd34d;
            background: #fffbeb;
            border-radius: 8px;
            overflow: hidden;
        }
        .staff-workbench-signal-fold summary {
            list-style: none;
            cursor: pointer;
            padding: .48rem .58rem;
            color: #92400e;
            font-size: .82rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
        }
        .staff-workbench-signal-fold summary::-webkit-details-marker {
            display: none;
        }
        .staff-workbench-signal-fold summary::after {
            content: '展开';
            color: #b45309;
            font-size: .74rem;
        }
        .staff-workbench-signal-fold[open] summary::after {
            content: '收起';
        }
        .staff-workbench-signal-list {
            border-top: 1px solid #fde68a;
            padding: .45rem .58rem .55rem;
            display: grid;
            gap: .35rem;
        }
        .staff-workbench-signal-list p {
            margin: 0;
            display: grid;
            gap: .12rem;
        }
        .staff-workbench-signal-list strong {
            color: var(--slate-800);
            font-size: .78rem;
        }
        .staff-workbench-signal-list span {
            color: var(--slate-600);
            font-size: .78rem;
            line-height: 1.45;
            word-break: break-word;
        }

        .staff-operation-order-card::before { background: #93c5fd; }
        .staff-cs-cost-card::before { background: #67e8f9; }
        .staff-document-card::before { background: #38bdf8; }
        .staff-document-card.is-returned::before { background: #fb7185; }
        .staff-finance-card::before { background: #22c55e; }

        .staff-workbench-order-top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
        }

        .staff-workbench-order-top > div:first-child {
            display: flex;
            align-items: center;
            gap: .45rem .62rem;
            flex-wrap: wrap;
            min-width: 0;
        }

        .staff-workbench-order-no {
            font-size: .86rem;
            font-weight: 800;
            color: var(--slate-900);
            line-height: 1.25;
            overflow-wrap: anywhere;
            flex: 0 0 auto;
        }

        .staff-workbench-order-top > div:first-child > .staff-workbench-meta {
            margin-top: 0;
        }

        .staff-workbench-meta {
            display: flex;
            flex-wrap: wrap;
            gap: .24rem .5rem;
            margin-top: .22rem;
            color: var(--slate-500);
            font-size: .74rem;
            line-height: 1.35;
        }

        .staff-workbench-meta span {
            display: inline-flex;
            align-items: center;
            gap: .25rem;
            min-width: 0;
        }

        .staff-workbench-meta i {
            color: #7c93aa;
            width: 14px;
            text-align: center;
            flex: 0 0 14px;
        }

        .staff-workbench-badges {
            display: flex;
            gap: .28rem;
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: 360px;
        }

        .staff-workbench-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 6px;
            padding: .14rem .36rem;
            font-size: .67rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .staff-workbench-badge.blue { background: var(--staff-info-bg); color: var(--staff-info-text); }
        .staff-workbench-badge.green { background: var(--staff-ok-bg); color: var(--staff-ok-text); }
        .staff-workbench-badge.amber { background: var(--staff-warn-bg); color: var(--staff-warn-text); }
        .staff-workbench-badge.rose { background: var(--staff-danger-bg); color: var(--staff-danger-text); }

        .staff-workbench-demo-badge {
            display: inline-flex;
            align-items: center;
            margin-left: .45rem;
            padding: .12rem .45rem;
            border-radius: 999px;
            background: var(--staff-warn-bg);
            color: var(--staff-warn-text);
            font-size: .7rem;
            font-weight: 800;
            vertical-align: middle;
        }

        .staff-workbench-order-actions {
            display: flex;
            gap: .32rem;
            flex-wrap: wrap;
            margin-top: .42rem;
            padding-top: .42rem;
            border-top: 1px solid var(--staff-line);
            justify-content: flex-end;
        }

        .staff-operation-filterbar {
            display: flex;
            gap: .32rem;
            flex-wrap: wrap;
            margin-bottom: .2rem;
        }

        .staff-operation-filter {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface);
            color: var(--slate-700);
            border-radius: 8px;
            padding: .3rem .5rem;
            font-weight: 800;
            font-size: .75rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: .4rem;
        }

        .staff-operation-filter span {
            min-width: 1.35rem;
            height: 1.35rem;
            border-radius: 999px;
            background: var(--staff-surface-soft);
            color: var(--slate-500);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .72rem;
        }

        .staff-operation-filter.active {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
            color: var(--staff-accent);
        }

        .staff-operation-filter.active span {
            background: var(--staff-accent);
            color: #fff;
        }

        .staff-operation-searchbar {
            display: grid;
            grid-template-columns: repeat(2, minmax(130px, 180px)) minmax(220px, 1fr) auto auto;
            gap: .45rem;
            align-items: end;
            margin: .25rem 0 .65rem;
            padding: .55rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface-soft);
        }

        .staff-operation-searchbar label {
            display: grid;
            gap: .2rem;
            min-width: 0;
        }

        .staff-operation-searchbar span {
            color: var(--slate-500);
            font-size: .72rem;
            font-weight: 800;
        }

        .staff-operation-searchbar input {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 36px;
            padding: .45rem .55rem;
            font: inherit;
            font-size: .82rem;
            background: #fff;
        }

        .staff-operation-card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: .42rem;
            margin-top: .48rem;
        }

        .staff-operation-card-grid div {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .46rem .55rem;
            min-width: 0;
        }

        .staff-operation-card-grid span {
            display: block;
            color: var(--slate-500);
            font-size: .74rem;
            font-weight: 700;
            margin-bottom: .18rem;
        }

        .staff-operation-card-grid strong {
            color: var(--slate-900);
            font-size: .86rem;
            line-height: 1.35;
            word-break: break-word;
        }

        .staff-workbench-empty,
        .staff-workbench-error,
        .staff-workbench-loading {
            padding: .76rem;
            text-align: center;
            color: var(--slate-500);
            background: #f8fafc;
            border: 1px dashed var(--slate-300);
            border-radius: 8px;
            font-size: .84rem;
        }

        .staff-workbench-error {
            color: var(--error);
            background: #fff1f2;
            border-color: #fecdd3;
        }

        .staff-workbench-side-list {
            display: grid;
            gap: .7rem;
        }

        .staff-workbench-side-item {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            padding: .8rem;
            background: var(--staff-surface-soft);
        }

        .staff-workbench-side-item strong {
            display: block;
            font-size: .88rem;
            color: var(--slate-800);
        }

        .staff-workbench-side-item span {
            display: block;
            margin-top: .3rem;
            color: var(--slate-500);
            font-size: .78rem;
            line-height: 1.5;
        }

        .staff-business-tabs {
            display: flex;
            gap: .4rem;
            flex-wrap: wrap;
            margin-bottom: .75rem;
            padding-bottom: .65rem;
            border-bottom: 1px solid var(--staff-line);
        }

        .staff-business-tab {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            color: var(--slate-700);
            padding: .38rem .62rem;
            cursor: pointer;
            font-weight: 700;
            font-size: .82rem;
            display: inline-flex;
            align-items: center;
            gap: .35rem;
        }

        .staff-business-tab.active {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
            color: var(--staff-accent);
        }

        .staff-business-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            flex-wrap: wrap;
            margin-bottom: .9rem;
        }

        .staff-business-filters {
            display: flex;
            align-items: center;
            gap: .5rem;
            flex-wrap: wrap;
        }

        .staff-business-filters input,
        .staff-business-filters select {
            border: 1px solid var(--staff-line-strong);
            border-radius: 8px;
            padding: .42rem .58rem;
            font: inherit;
            font-size: .85rem;
            min-height: 34px;
            background: var(--staff-surface);
        }

        .staff-business-table-wrap {
            overflow-x: auto;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
        }

        .staff-business-table {
            min-width: 860px;
        }

        .staff-business-table td,
        .staff-business-table th {
            font-size: .82rem;
        }

        .staff-table-actions {
            display: flex;
            gap: .4rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .staff-business-reserved {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: .7rem;
            margin-bottom: 1rem;
        }

        .staff-business-reserved-item {
            border: 1px dashed var(--staff-line-strong);
            border-radius: 8px;
            padding: .65rem;
            background: var(--staff-surface-soft);
            color: var(--slate-500);
            font-size: .82rem;
        }

        .staff-business-reserved-item strong {
            display: block;
            color: var(--slate-700);
            margin-bottom: .25rem;
        }

        .staff-business-operation-panel {
            margin-top: .58rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface-soft);
            padding: .65rem;
        }

        .staff-business-operation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: .42rem;
            margin-top: .48rem;
        }

        .staff-business-kv {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            padding: .46rem .55rem;
            font-size: .8rem;
        }

        .staff-business-kv b {
            display: block;
            color: var(--slate-500);
            font-size: .74rem;
            margin-bottom: .25rem;
        }

        .staff-platform-page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .65rem;
            flex-wrap: wrap;
            margin-bottom: .58rem;
            padding: .62rem .78rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
        }

        .staff-platform-page-header h2 {
            margin: 0;
            color: var(--slate-900);
            font-size: 1rem;
        }

        .staff-platform-page-header p {
            margin: .1rem 0 0;
            color: var(--slate-500);
            font-size: .76rem;
            line-height: 1.35;
        }

        .staff-rate-hub-layout {
            display: grid;
            gap: .58rem;
        }

        .staff-rate-hub-top-row {
            display: grid;
            grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
            gap: .58rem;
        }

        .staff-rate-hub-panel {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
        }

        .staff-rate-hub-panel-header {
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            padding: .48rem .62rem;
            border-bottom: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            color: var(--slate-800);
            font-size: .8rem;
            font-weight: 800;
        }

        .staff-rate-hub-list {
            display: grid;
            gap: .34rem;
            max-height: 240px;
            overflow: auto;
            padding: .46rem;
        }

        .staff-rate-hub-list-item {
            width: 100%;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            color: var(--slate-700);
            cursor: pointer;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: .58rem;
            padding: .46rem .55rem;
            text-align: left;
        }

        .staff-rate-hub-list-item:hover,
        .staff-rate-hub-list-item.active {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
        }

        .staff-rate-hub-list-item strong {
            display: block;
            color: var(--slate-900);
            font-size: .84rem;
            line-height: 1.35;
            word-break: break-word;
        }

        .staff-rate-hub-list-item small {
            display: block;
            margin-top: .25rem;
            color: var(--slate-500);
            font-size: .74rem;
            line-height: 1.4;
        }

        .staff-rate-hub-list-item em {
            flex: 0 0 auto;
            color: #15803d;
            font-size: .74rem;
            font-style: normal;
            font-weight: 800;
            white-space: nowrap;
        }

        .staff-rate-hub-list-item em.muted {
            color: #b45309;
        }

        .staff-modal-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .staff-modal-body {
            overflow-y: auto;
            padding: 1.25rem 1.5rem;
        }

        .staff-modal-body .admin-form-group label {
            display: block;
            font-size: .82rem;
            font-weight: 700;
            color: var(--slate-700);
            margin-bottom: .4rem;
        }

        .staff-modal-body input,
        .staff-modal-body select,
        .staff-modal-body textarea,
        .staff-batch-editor-table input,
        .staff-batch-editor-table select {
            width: 100%;
            border: 1px solid var(--slate-300);
            border-radius: var(--radius-md);
            padding: .58rem .7rem;
            font: inherit;
            font-size: .86rem;
            background: #fff;
        }

        .staff-modal-hint {
            font-size: .8rem;
            color: var(--slate-600);
            line-height: 1.7;
            margin-bottom: .75rem;
            background: #f8fafc;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-md);
            padding: .75rem;
        }

        .staff-modal-inline-actions {
            display: flex;
            align-items: center;
            gap: .55rem;
            flex-wrap: wrap;
            margin-bottom: .75rem;
        }

        .staff-modal-muted {
            font-size: .76rem;
            color: var(--slate-500);
        }

        .staff-modal-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .8rem;
        }

        .staff-batch-modal {
            width: min(1180px, 96vw);
            max-width: 1180px;
        }

        .staff-batch-textarea {
            font-family: "SF Mono", Consolas, monospace;
            font-size: .82rem;
            line-height: 1.6;
            margin-bottom: .75rem;
        }

        .staff-batch-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: .75rem;
            flex-wrap: wrap;
            margin: .75rem 0;
            color: var(--slate-600);
            font-size: .82rem;
            font-weight: 700;
        }

        .staff-batch-toolbar > div:last-child {
            display: flex;
            gap: .5rem;
            flex-wrap: wrap;
        }

        .staff-batch-editor-wrap {
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-md);
            overflow-x: auto;
            background: #fff;
        }

        .staff-batch-editor-table {
            width: 100%;
            min-width: 1120px;
            border-collapse: collapse;
        }

        .staff-batch-editor-table th,
        .staff-batch-editor-table td {
            padding: .55rem;
            border-bottom: 1px solid var(--slate-200);
            font-size: .78rem;
            text-align: left;
        }

        .staff-batch-editor-table th {
            background: #f8fafc;
            color: var(--slate-600);
            font-weight: 800;
        }

        .staff-modal-result {
            margin-top: .75rem;
            padding: .75rem;
            border-radius: var(--radius-md);
            font-size: .86rem;
            max-height: 190px;
            overflow-y: auto;
        }

        .staff-cs-tool {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface-soft);
            padding: .75rem;
            display: grid;
            gap: .6rem;
        }

        .staff-cs-tool-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: .75rem;
            flex-wrap: wrap;
        }

        .staff-cs-tool-head strong {
            display: block;
            color: var(--slate-900);
            font-size: .95rem;
        }

        .staff-cs-tool-head span {
            display: block;
            color: var(--slate-500);
            font-size: .8rem;
            line-height: 1.45;
            margin-top: .25rem;
        }

        .staff-cs-search {
            align-items: stretch;
        }

        .staff-cs-domestic-results {
            display: grid;
            gap: .6rem;
        }

        .staff-cs-tabbar {
            display: flex;
            gap: .4rem;
            flex-wrap: wrap;
            margin-bottom: .25rem;
        }

        .staff-cs-tab {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface);
            color: var(--slate-700);
            border-radius: 8px;
            padding: .38rem .62rem;
            font-weight: 800;
            font-size: .8rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: .4rem;
        }

        .staff-cs-tab span {
            min-width: 1.35rem;
            height: 1.35rem;
            border-radius: 999px;
            background: var(--staff-surface-soft);
            color: var(--slate-500);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .72rem;
        }

        .staff-cs-tab.active {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
            color: var(--staff-accent);
        }

        .staff-cs-tab.active span {
            background: var(--staff-accent);
            color: #fff;
        }

        .staff-cs-cost-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: .42rem;
            margin-top: .58rem;
        }

        .staff-cs-cost-grid div {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .46rem .55rem;
            min-width: 0;
        }

        .staff-cs-cost-grid span {
            display: block;
            color: var(--slate-500);
            font-size: .74rem;
            font-weight: 700;
            margin-bottom: .18rem;
        }

        .staff-cs-cost-grid strong {
            color: var(--slate-900);
            font-size: .86rem;
            line-height: 1.35;
            word-break: break-word;
        }

        .staff-cs-readonly-note {
            display: flex;
            align-items: center;
            gap: .45rem;
            border: 1px solid #fecdd3;
            background: #fff1f2;
            color: #be123c;
            border-radius: 8px;
            padding: .55rem .65rem;
            font-size: .82rem;
            font-weight: 700;
            margin-bottom: .65rem;
        }

        .staff-cs-alertbar {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
            margin: .35rem 0 .65rem;
        }

        .staff-cs-alertbar span {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            border: 1px solid #bae6fd;
            background: #f0f9ff;
            color: #075985;
            border-radius: 8px;
            padding: .38rem .55rem;
            font-size: .78rem;
            font-weight: 800;
        }

        .staff-cs-alertbar strong {
            min-width: 1.35rem;
            height: 1.35rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #0284c7;
            color: #fff;
            font-size: .72rem;
        }

        .staff-cs-template-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
            gap: .75rem;
            align-items: start;
        }

        .staff-cs-template-main,
        .staff-cs-template-form,
        .staff-cs-template-list,
        .staff-cs-flow-card,
        .staff-cs-change-card {
            min-width: 0;
        }

        .staff-cs-template-form {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #fff;
            padding: .85rem;
            display: grid;
            gap: .75rem;
        }

        .staff-cs-template-topline {
            display: flex;
            align-items: center;
            gap: .55rem;
            flex-wrap: wrap;
            color: var(--slate-700);
            font-size: .82rem;
            font-weight: 800;
        }

        .staff-cs-template-topline select {
            min-width: min(260px, 100%);
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #fff;
            padding: .46rem .6rem;
            color: var(--slate-800);
            font-size: .82rem;
        }

        .staff-cs-route-badge,
        .staff-cs-doc-badge {
            display: inline-flex;
            align-items: center;
            gap: .32rem;
            border-radius: 7px;
            padding: .25rem .58rem;
            font-size: .74rem;
            font-weight: 900;
        }

        .staff-cs-route-badge {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .staff-cs-doc-badge {
            background: #f0fdfa;
            color: #0f766e;
        }

        .staff-cs-form-block {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface-soft);
            padding: .75rem;
            display: grid;
            gap: .65rem;
        }

        .staff-cs-form-block.auto {
            background: #f0fdfa;
            border-color: #ccfbf1;
        }

        .staff-cs-form-block.memory,
        .staff-cs-form-block.return {
            background: #fffbeb;
            border-color: #fde68a;
        }

        .staff-cs-form-block-title {
            display: flex;
            align-items: center;
            gap: .4rem;
            color: var(--slate-700);
            font-size: .82rem;
            font-weight: 900;
        }

        .staff-cs-form-block.auto .staff-cs-form-block-title { color: #0f766e; }
        .staff-cs-form-block.memory .staff-cs-form-block-title,
        .staff-cs-form-block.return .staff-cs-form-block-title { color: #92400e; }

        .staff-cs-form-grid {
            display: grid;
            gap: .55rem;
        }

        .staff-cs-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .staff-cs-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .staff-cs-form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

        .staff-cs-form-group {
            display: grid;
            gap: .25rem;
            min-width: 0;
        }

        .staff-cs-form-group label {
            color: var(--slate-600);
            font-size: .74rem;
            font-weight: 900;
        }

        .staff-cs-form-group input,
        .staff-cs-form-group select,
        .staff-cs-form-group textarea {
            width: 100%;
            min-width: 0;
            border: 1px solid #dbe5ef;
            border-radius: 8px;
            background: #fff;
            color: var(--slate-800);
            padding: .5rem .58rem;
            font-size: .8rem;
            font-family: inherit;
        }

        .staff-cs-form-group textarea {
            resize: vertical;
            min-height: 66px;
            line-height: 1.45;
        }

        .staff-cs-form-group .readonly,
        .staff-cs-form-group input[readonly],
        .staff-cs-form-group textarea[readonly] {
            background: #f8fafc;
            color: #475569;
        }

        .staff-cs-inline-actions {
            display: flex;
            gap: .45rem;
            flex-wrap: wrap;
        }

        .staff-cs-api-note {
            color: var(--slate-500);
            font-size: .76rem;
            font-weight: 700;
        }

        .staff-cs-isf-alert {
            border: 1px solid #93c5fd;
            border-radius: 8px;
            background: #eff6ff;
            color: #1e3a8a;
            padding: .58rem .72rem;
            font-size: .8rem;
            font-weight: 800;
        }

        .staff-cs-ams-steps {
            margin-top: 0;
        }

        .staff-cs-ams-steps small {
            display: block;
            color: inherit;
            opacity: .72;
            font-size: .7rem;
            font-weight: 700;
        }

        .staff-cs-template-text {
            width: 100%;
            min-height: 360px;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #fff;
            padding: .75rem;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
            font-size: .82rem;
            line-height: 1.55;
            color: var(--slate-800);
            resize: vertical;
        }

        .staff-cs-template-list {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #fff;
            padding: .6rem;
            display: grid;
            gap: .45rem;
        }

        .staff-cs-template-list > strong {
            font-size: .82rem;
            color: var(--slate-800);
        }

        .staff-cs-template-list > small {
            color: var(--slate-500);
            font-size: .72rem;
            line-height: 1.35;
        }

        .staff-cs-template-search {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            padding: .45rem .55rem;
            font-size: .78rem;
        }

        .staff-cs-template-card {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            padding: .58rem;
            background: var(--staff-surface-soft);
            display: grid;
            gap: .28rem;
        }

        .staff-cs-template-card.selected {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
            box-shadow: 0 0 0 2px rgba(14, 165, 233, .08);
        }

        .staff-cs-template-card .t-name {
            color: var(--slate-900);
            font-weight: 900;
            font-size: .82rem;
        }

        .staff-cs-template-card .t-meta {
            color: var(--slate-500);
            font-size: .72rem;
        }

        .staff-cs-template-card .t-actions {
            display: flex;
            gap: .35rem;
            flex-wrap: wrap;
        }

        .staff-cs-template-card .admin-btn {
            padding: .28rem .45rem;
            font-size: .72rem;
        }

        .staff-cs-template-order {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .5rem .55rem;
            text-align: left;
            cursor: pointer;
            display: grid;
            gap: .18rem;
        }

        .staff-cs-template-order:hover {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
        }

        .staff-cs-template-order span {
            color: var(--slate-900);
            font-size: .82rem;
            font-weight: 900;
        }

        .staff-cs-template-order small {
            color: var(--slate-500);
            font-size: .72rem;
            line-height: 1.35;
        }

        .staff-cs-flow-list,
        .staff-cs-change-list {
            display: grid;
            gap: .65rem;
        }

        .staff-cs-flow-steps {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .45rem;
            margin-top: .55rem;
        }

        .staff-cs-flow-steps div {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .5rem;
            display: flex;
            align-items: center;
            gap: .45rem;
            color: var(--slate-500);
            font-size: .78rem;
            font-weight: 800;
        }

        .staff-cs-flow-steps strong {
            width: 1.45rem;
            height: 1.45rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e2e8f0;
            color: #475569;
            flex: 0 0 auto;
        }

        .staff-cs-flow-steps .done {
            background: #f0fdf4;
            border-color: #bbf7d0;
            color: #166534;
        }

        .staff-cs-flow-steps .done strong {
            background: #16a34a;
            color: #fff;
        }

        .staff-cs-flow-steps .active {
            background: #fffbeb;
            border-color: #fde68a;
            color: #92400e;
        }

        .staff-cs-flow-steps .active strong {
            background: #f59e0b;
            color: #fff;
        }

        .staff-cs-change-note {
            margin-top: .5rem;
            border: 1px solid #fde68a;
            background: #fffbeb;
            color: #92400e;
            border-radius: 8px;
            padding: .48rem .55rem;
            font-size: .78rem;
            font-weight: 700;
        }

        .staff-cs-payee-form {
            display: grid;
            grid-template-columns: 1.4fr .8fr 1fr 1fr 1.2fr auto;
            gap: .45rem;
            align-items: stretch;
        }

        .staff-cs-payee-form input,
        .staff-cs-payee-form select {
            min-width: 0;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            padding: .52rem .6rem;
            font-size: .82rem;
            background: #fff;
            color: var(--slate-800);
        }

        .staff-cs-payee-table {
            min-width: 780px;
        }

        .staff-finance-tabbar {
            display: flex;
            gap: .4rem;
            flex-wrap: wrap;
            margin-bottom: .6rem;
        }

        .staff-finance-tab {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface);
            color: var(--slate-700);
            border-radius: 8px;
            padding: .38rem .62rem;
            font-weight: 800;
            font-size: .8rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: .42rem;
        }

        .staff-finance-tab span {
            min-width: 1.35rem;
            height: 1.35rem;
            border-radius: 999px;
            background: var(--staff-surface-soft);
            color: var(--slate-500);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .72rem;
        }

        .staff-finance-tab.active {
            border-color: var(--staff-active-border);
            background: var(--staff-active);
            color: var(--staff-accent);
        }

        .staff-finance-tab.active span {
            background: var(--staff-accent);
            color: #fff;
        }

        .staff-finance-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            flex-wrap: wrap;
            border: 1px solid var(--staff-line);
            background: var(--staff-info-bg);
            color: var(--staff-info-text);
            border-radius: 8px;
            padding: .65rem .8rem;
            margin-bottom: .8rem;
            font-size: .86rem;
        }

        .staff-finance-summary strong {
            color: #0f172a;
        }

        .staff-finance-demo-panel {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .8rem;
            flex-wrap: wrap;
            border: 1px solid #bbf7d0;
            background: #f0fdf4;
            border-radius: 8px;
            padding: .6rem .75rem;
            margin-bottom: .65rem;
        }

        .staff-finance-demo-panel strong {
            display: block;
            color: #14532d;
            font-size: .84rem;
        }

        .staff-finance-demo-panel span {
            display: block;
            margin-top: .18rem;
            color: #166534;
            font-size: .76rem;
            line-height: 1.4;
        }

        .staff-finance-card.is-overdue {
            border-color: #fda4af;
            box-shadow: 0 8px 22px rgba(185, 28, 28, .08);
        }

        .staff-finance-money-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: .42rem;
            margin-top: .58rem;
        }

        .staff-finance-money-grid div {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .46rem .55rem;
            min-width: 0;
        }

        .staff-finance-money-grid span {
            display: block;
            color: var(--slate-500);
            font-size: .7rem;
            font-weight: 700;
            margin-bottom: .12rem;
        }

        .staff-finance-money-grid strong {
            color: var(--slate-900);
            font-size: .82rem;
            line-height: 1.3;
            word-break: break-word;
        }

        .staff-order-finance-lens {
            margin-top: .65rem;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .45rem;
        }

        .staff-order-finance-lens div {
            border: 1px solid #d1fae5;
            border-radius: 8px;
            background: #f0fdf4;
            padding: .5rem .6rem;
            min-width: 0;
        }

        .staff-order-finance-lens span {
            display: block;
            color: var(--slate-500);
            font-size: .7rem;
            font-weight: 700;
        }

        .staff-order-finance-lens strong {
            display: block;
            margin-top: .14rem;
            color: #065f46;
            font-size: .84rem;
            word-break: break-word;
        }

        .staff-finance-fold-card > .staff-finance-card-body {
            margin: 0 .72rem .58rem;
            display: grid;
            gap: .48rem;
        }

        .staff-finance-fold-card .staff-finance-money-grid {
            margin-top: 0;
        }

        .staff-finance-fee-breakdown {
            margin-top: .65rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }

        .staff-finance-fee-breakdown summary {
            cursor: pointer;
            list-style: none;
            padding: .62rem .75rem;
            font-weight: 800;
            color: var(--slate-800);
            background: var(--staff-surface-soft);
        }

        .staff-finance-fee-breakdown summary::-webkit-details-marker {
            display: none;
        }

        .staff-finance-split-stack {
            display: grid;
            gap: .5rem;
            padding: .5rem;
            background: #fff;
        }

        .staff-finance-split-block {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
            padding: 0;
        }

        .staff-finance-split-block.is-receivable { border-color: #bfdbfe; }
        .staff-finance-split-block.is-payable { border-color: #fed7aa; }
        .staff-finance-split-block.is-profit { border-color: #bbf7d0; }

        .staff-finance-ledger-toolbar {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: .6rem;
            align-items: center;
        }

        .staff-finance-ledger-toolbar {
            padding: .42rem .55rem;
            background: #f8fafc;
        }

        .staff-finance-split-block.is-receivable .staff-finance-ledger-toolbar { background: #eff6ff; }
        .staff-finance-split-block.is-payable .staff-finance-ledger-toolbar { background: #fff7ed; }

        .staff-finance-ledger-toolbar strong {
            color: var(--slate-900);
            font-size: .86rem;
        }

        .staff-finance-ledger-toolbar span,
        .staff-finance-split-empty {
            color: var(--slate-500);
            font-size: .76rem;
            font-weight: 800;
        }

        .staff-finance-ledger-toolbar b,
        .staff-finance-split-row strong {
            color: var(--slate-900);
            font-size: .82rem;
            white-space: nowrap;
        }

        .staff-finance-split-empty {
            padding: .45rem .6rem;
            border-top: 1px solid var(--slate-100);
        }

        .staff-finance-ledger-table-wrap {
            overflow-x: auto;
            border-top: 1px solid var(--slate-100);
        }

        .staff-finance-ledger-table {
            width: 100%;
            min-width: 1120px;
            border-collapse: collapse;
            font-size: .74rem;
            background: #fff;
        }

        .staff-finance-ledger-table th,
        .staff-finance-ledger-table td {
            border-right: 1px solid var(--slate-200);
            border-bottom: 1px solid var(--slate-200);
            padding: .26rem .35rem;
            white-space: nowrap;
            color: var(--slate-800);
            line-height: 1.25;
        }

        .staff-finance-ledger-table th {
            background: #f8fafc;
            color: var(--slate-600);
            font-weight: 800;
            text-align: center;
        }

        .staff-finance-ledger-table td.num {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        .staff-finance-ledger-index {
            width: 28px;
            text-align: center;
            color: var(--slate-500);
            background: #fbfdff;
        }

        .staff-finance-split-block.is-receivable .staff-finance-ledger-table td.num:nth-child(11),
        .staff-finance-split-block.is-receivable .staff-finance-ledger-table td.num:nth-child(12) {
            color: #1d4ed8;
        }

        .staff-finance-split-block.is-payable .staff-finance-ledger-table td {
            color: #dc2626;
        }

        .staff-finance-profit-summary {
            display: flex;
            flex-wrap: wrap;
            gap: .45rem .9rem;
            padding: .42rem .55rem;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
            background: #f0fdf4;
            color: var(--slate-700);
            font-size: .78rem;
            font-weight: 800;
        }

        .staff-finance-profit-summary strong {
            color: var(--slate-900);
            font-weight: 900;
        }

        .staff-finance-profit-summary strong.is-positive { color: #047857; }
        .staff-finance-profit-summary strong.is-negative { color: #b91c1c; }
        .staff-finance-profit-summary strong.is-empty { color: var(--slate-400); }

        .staff-finance-bill-toolbar,
        .staff-finance-receipt-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: .5rem;
            align-items: end;
            margin-bottom: .65rem;
        }

        .staff-finance-bill-toolbar label,
        .staff-finance-receipt-form label,
        .staff-finance-allocation-editor label {
            display: flex;
            flex-direction: column;
            gap: .22rem;
            color: var(--slate-600);
            font-size: .73rem;
            font-weight: 800;
            min-width: 0;
        }

        .staff-finance-bill-toolbar input,
        .staff-finance-bill-toolbar select,
        .staff-finance-receipt-form input,
        .staff-finance-receipt-form select,
        .staff-finance-receipt-form textarea,
        .staff-finance-allocation-editor input {
            width: 100%;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .45rem .55rem;
            font: inherit;
            background: #fff;
            color: var(--slate-800);
            font-size: .82rem;
        }

        .staff-finance-bill-toolbar .admin-btn {
            min-height: 2.3rem;
            justify-content: center;
            font-size: .82rem;
        }

        .staff-finance-inline-select {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            color: var(--slate-600);
            font-size: .76rem;
            font-weight: 800;
        }

        .staff-finance-inline-select select {
            min-width: 6.4rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .42rem .55rem;
            background: #fff;
            color: var(--slate-800);
            font: inherit;
        }

        .staff-finance-bill-list {
            display: grid;
            gap: .65rem;
        }

        .staff-finance-bill-card {
            border-left: 4px solid var(--staff-accent);
        }

        .staff-finance-detail-panel {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .75rem;
            margin-top: .7rem;
        }

        .staff-finance-detail-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: .55rem;
            flex-wrap: wrap;
            margin-bottom: .65rem;
        }

        .staff-finance-detail-head strong {
            display: block;
            color: var(--slate-900);
            font-size: .9rem;
        }

        .staff-finance-detail-head span {
            color: var(--slate-500);
            font-size: .74rem;
        }

        .staff-finance-table-wrap {
            overflow-x: auto;
            margin-top: .7rem;
        }

        .staff-finance-table-wrap .admin-table {
            min-width: 760px;
        }

        .staff-finance-overview-table-wrap .admin-table {
            min-width: 1260px;
        }

        .staff-finance-overview-table th,
        .staff-finance-overview-table td {
            padding: .42rem .5rem;
            font-size: .8rem;
            line-height: 1.25;
            vertical-align: middle;
        }

        .staff-finance-overview-table th {
            font-size: .72rem;
            letter-spacing: 0;
        }

        .staff-finance-overview-table-wrap {
            position: relative;
            overflow: auto;
            padding-bottom: .35rem;
        }

        .staff-finance-overview-table th:first-child,
        .staff-finance-overview-table td:first-child {
            position: sticky;
            left: 0;
            z-index: 1;
            background: #fff;
            min-width: 156px;
            font-weight: 800;
        }

        .staff-finance-overview-table thead th:first-child {
            z-index: 2;
            background: #f8fafc;
        }

        .staff-finance-overview-table tr.is-section td {
            background: #f8fafc;
            color: var(--slate-900);
            font-weight: 900;
        }

        .staff-finance-overview-table tr.is-custom td {
            background: #fbfdff;
        }

        .staff-finance-overview-head-cell {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
            min-width: 260px;
        }

        .staff-finance-overview-head-cell > span:last-child {
            display: inline-flex;
            gap: .25rem;
        }

        .staff-finance-overview-head-cell .admin-btn {
            flex: 0 0 auto;
            padding: .28rem .45rem;
            font-size: .68rem;
            min-height: 1.9rem;
        }

        .staff-finance-overview-cell-btn {
            width: 100%;
            min-height: 24px;
            border: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            font-weight: 700;
            text-align: right;
            cursor: pointer;
            border-radius: 8px;
            padding: .18rem .28rem;
            font-size: .82rem;
        }

        .staff-finance-overview-cell-btn:hover,
        .staff-finance-overview-cell-btn:focus-visible {
            background: #eff6ff;
            color: var(--primary-600);
            outline: none;
        }

        .staff-finance-overview-cell-btn.is-empty {
            color: var(--slate-400);
            font-weight: 800;
        }

        .staff-finance-overview-cell-btn.is-positive {
            color: #0f766e;
        }

        .staff-finance-overview-cell-btn.is-negative {
            color: #b91c1c;
        }

        .staff-finance-overview-cell-btn.has-adjustment span::after {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            margin-left: 5px;
            border-radius: 999px;
            background: #f59e0b;
            vertical-align: middle;
        }

        .staff-finance-overview-row-label {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            font-size: .82rem;
        }

        .staff-finance-overview-row-label em {
            border: 1px solid #bfdbfe;
            color: #1d4ed8;
            background: #eff6ff;
            border-radius: 999px;
            padding: .06rem .35rem;
            font-size: .64rem;
            font-style: normal;
            font-weight: 800;
        }

        .staff-finance-overview-total {
            display: block;
            text-align: right;
            font-weight: 900;
            font-size: .82rem;
        }

        .staff-finance-overview-total.is-positive { color: #0f766e; }
        .staff-finance-overview-total.is-negative { color: #b91c1c; }
        .staff-finance-overview-total.is-empty { color: var(--slate-400); }

        .staff-finance-overview-split {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: .65rem;
            margin-top: .7rem;
        }

        .staff-finance-overview-popover {
            position: absolute;
            z-index: 8;
            width: min(400px, calc(100% - 20px));
            filter: drop-shadow(0 18px 35px rgba(15, 23, 42, .16));
        }

        .staff-finance-overview-popover .admin-card {
            margin: 0;
            border-color: #cbd5e1;
            border-radius: 10px;
            overflow: hidden;
        }

        .staff-finance-overview-popover .admin-card-header {
            background: linear-gradient(180deg, #f8fafc, #fff);
            padding: .55rem .65rem;
        }

        .staff-finance-overview-popover-section {
            border-top: 1px solid var(--slate-100);
            margin-top: .7rem;
            padding-top: .65rem;
        }

        .staff-finance-overview-popover-section h4 {
            margin: 0 0 .35rem;
            color: var(--slate-700);
            font-size: .76rem;
        }

        .staff-finance-overview-popover-slot {
            display: none;
        }

        .staff-finance-overview-detail {
            margin-top: .75rem;
            font-size: .84rem;
        }

        .staff-finance-overview-rate-card {
            margin-top: .75rem;
        }

        .staff-finance-overview-detail h4 {
            margin: .1rem 0 .4rem;
            color: var(--slate-800);
            font-size: .8rem;
        }

        .staff-finance-note-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
            border: 1px solid var(--slate-100);
            border-radius: 8px;
            padding: .35rem .45rem;
            margin-bottom: .35rem;
            background: #f8fafc;
        }

        .staff-finance-note-row span {
            flex: 1;
            color: var(--slate-600);
            font-size: .76rem;
        }

        .staff-finance-mini-empty {
            border: 1px dashed var(--slate-200);
            border-radius: 8px;
            color: var(--slate-500);
            padding: .55rem;
            background: #f8fafc;
            font-size: .76rem;
        }

        .staff-finance-overview-history,
        .staff-finance-project-manager {
            display: grid;
            gap: .4rem;
        }

        .staff-finance-overview-history-item,
        .staff-finance-project-row {
            border: 1px solid var(--slate-100);
            background: #f8fafc;
            border-radius: 8px;
            padding: .45rem;
        }

        .staff-finance-overview-history-item > div,
        .staff-finance-project-row > div:first-child {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .4rem;
        }

        .staff-finance-overview-history-item span,
        .staff-finance-project-row span {
            color: var(--slate-500);
            font-size: .68rem;
            font-weight: 700;
        }

        .staff-finance-overview-history-item p,
        .staff-finance-project-row p {
            margin: .25rem 0 .35rem;
            color: var(--slate-600);
            font-size: .74rem;
            line-height: 1.38;
        }

        .staff-finance-project-row.is-editing {
            display: grid;
            gap: .45rem;
        }

        .staff-finance-project-row input,
        .staff-finance-project-row textarea {
            width: 100%;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .38rem .5rem;
            font: inherit;
            font-size: .8rem;
        }

        .staff-finance-overview-panel .admin-card-body {
            padding: .85rem;
        }

        .staff-finance-overview-panel .staff-workbench-empty {
            padding: .9rem;
            font-size: .82rem;
        }

        @media (max-width: 900px) {
            .staff-finance-overview-split {
                grid-template-columns: 1fr;
            }

            .staff-finance-overview-popover {
                left: 12px !important;
                right: 12px;
                width: calc(100% - 24px);
            }
        }

        .staff-finance-allocation-list {
            margin-top: .9rem;
            border-top: 1px solid var(--slate-200);
            padding-top: .75rem;
        }

        .staff-finance-allocation-list > div {
            display: flex;
            justify-content: space-between;
            gap: .75rem;
            border-bottom: 1px solid var(--slate-100);
            padding: .45rem 0;
            color: var(--slate-600);
            font-size: .82rem;
        }

        .staff-finance-allocation-list p {
            margin: .45rem 0 0;
            color: var(--slate-500);
            font-size: .82rem;
        }

        .staff-finance-warning-list {
            display: grid;
            gap: .45rem;
            margin-top: .65rem;
        }

        .staff-finance-warning-item {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: .45rem;
            align-items: center;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            padding: .45rem .55rem;
            font-size: .78rem;
            color: var(--slate-600);
        }

        .staff-finance-warning-item strong {
            color: var(--slate-900);
            white-space: nowrap;
        }

        .staff-finance-warning-item em {
            font-style: normal;
            color: var(--slate-700);
            font-weight: 800;
        }

        .staff-finance-warning-item.is-danger {
            border-color: #fda4af;
            background: var(--staff-danger-bg);
        }

        .staff-finance-warning-item.is-warning {
            border-color: #facc15;
            background: var(--staff-warn-bg);
        }

        .staff-finance-invoice-segment-form {
            margin: .55rem 0 .75rem;
            padding: .55rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
        }

        .staff-finance-invoice-segment-form .admin-btn {
            align-self: end;
        }

        .staff-finance-timeline {
            margin-top: .75rem;
            border-top: 1px solid var(--staff-line);
            padding-top: .65rem;
        }

        .staff-finance-timeline > strong {
            display: block;
            color: var(--slate-900);
            font-size: .82rem;
            margin-bottom: .4rem;
        }

        .staff-finance-timeline-row {
            display: grid;
            grid-template-columns: 82px minmax(0, 1fr);
            gap: .5rem;
            padding: .35rem 0;
            border-bottom: 1px solid var(--staff-line);
            font-size: .78rem;
        }

        .staff-finance-timeline-row > span {
            color: var(--slate-500);
        }

        .staff-finance-timeline-row b {
            display: block;
            color: var(--slate-800);
        }

        .staff-finance-timeline-row small {
            color: var(--slate-500);
        }

        .staff-finance-receipt-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: .9rem;
        }

        .staff-finance-expense-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
            gap: .9rem;
            margin-bottom: .9rem;
        }

        .staff-finance-category-list {
            display: flex;
            flex-wrap: wrap;
            gap: .45rem;
            margin-top: .75rem;
        }

        .staff-finance-category-pill {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            color: var(--slate-700);
            padding: .45rem .6rem;
            cursor: pointer;
            font-weight: 800;
        }

        .staff-finance-category-pill em {
            font-style: normal;
            color: var(--slate-400);
            font-size: .72rem;
        }

        .staff-finance-category-pill.is-muted {
            background: var(--staff-surface-soft);
            color: var(--slate-400);
        }

        .staff-finance-receipt-note {
            grid-column: 1 / -1;
        }

        .staff-finance-allocation-editor {
            display: grid;
            gap: .65rem;
            margin-bottom: .85rem;
        }

        .staff-finance-allocation-editor label {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .6rem;
        }

        .staff-finance-allocation-editor span {
            color: var(--slate-700);
            line-height: 1.35;
        }

        .staff-customer-toolbar {
            align-items: flex-start;
            gap: .7rem;
        }

        .staff-customer-search {
            display: flex;
            align-items: center;
            gap: .38rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .staff-customer-search > i {
            color: var(--slate-400);
        }

        .staff-customer-search input {
            width: min(360px, 48vw);
            padding: .5rem .62rem;
            border: 1px solid var(--slate-300);
            border-radius: var(--radius-md);
            font-size: .8rem;
        }

        .staff-customer-search select {
            min-width: 150px;
            padding: .5rem .62rem;
            border: 1px solid var(--slate-300);
            border-radius: var(--radius-md);
            background: #fff;
            color: var(--slate-700);
            font-size: .8rem;
        }

        .staff-customer-tabs {
            display: flex;
            gap: .32rem;
            flex-wrap: wrap;
            margin-bottom: .55rem;
        }

        .staff-customer-tabs .admin-btn.active {
            background: var(--staff-active);
            color: var(--staff-accent);
            border-color: var(--staff-active-border);
        }

        .staff-customer-table-wrap {
            width: 100%;
            overflow-x: auto;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
        }

        .staff-customer-table {
            min-width: 1160px;
        }

        .staff-customer-name {
            font-weight: 800;
            color: var(--slate-900);
            margin-bottom: 0.2rem;
        }

        .staff-customer-sub,
        .staff-customer-muted {
            color: var(--slate-500);
            font-size: .76rem;
        }

        .staff-customer-owner strong {
            display: block;
            color: var(--slate-800);
            font-size: .84rem;
            white-space: nowrap;
        }

        .staff-customer-owner span {
            display: block;
            margin-top: .1rem;
            color: var(--slate-500);
            font-size: .74rem;
            line-height: 1.35;
        }

        .staff-customer-profit {
            font-weight: 800;
            white-space: nowrap;
        }

        .profit-positive {
            color: #15803d;
        }

        .profit-negative {
            color: #b91c1c;
        }

        .staff-customer-source,
        .staff-customer-badge {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            margin-top: 0.35rem;
            padding: 0.18rem 0.5rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 700;
            background: var(--staff-info-bg);
            color: var(--staff-info-text);
        }

        .staff-customer-badge {
            margin-top: 0;
        }

        .staff-customer-badge.alert {
            background: var(--staff-danger-bg);
            color: var(--staff-danger-text);
        }

        .staff-customer-badge.shipped {
            background: var(--staff-ok-bg);
            color: var(--staff-ok-text);
        }

        .staff-customer-badge.unshipped {
            background: var(--staff-warn-bg);
            color: var(--staff-warn-text);
        }

        .staff-customer-orders-row td {
            background: var(--staff-surface-soft);
        }

        .staff-customer-orders {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
        }

        .staff-customer-profit-list {
            display: grid;
            gap: 0.875rem;
            padding: 0.875rem;
        }

        .staff-customer-profit-card {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            overflow: hidden;
        }

        .staff-customer-profit-card-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.875rem 1rem;
            border-bottom: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
        }

        .staff-customer-order-no {
            font-weight: 800;
            color: var(--slate-900);
            margin-bottom: 0.25rem;
        }

        .staff-customer-profit-card-status {
            text-align: right;
            flex-shrink: 0;
        }

        .staff-customer-profit-summary-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            padding: 0.875rem 1rem;
            border-bottom: 1px solid var(--staff-line);
        }

        .staff-customer-profit-mini {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            padding: 0.75rem;
            border-radius: 8px;
            background: var(--staff-surface-soft);
        }

        .staff-customer-profit-mini span {
            font-size: 0.75rem;
            color: var(--slate-500);
            font-weight: 700;
        }

        .staff-customer-profit-mini strong {
            font-size: 0.9375rem;
            color: var(--slate-900);
        }

        .staff-customer-profit-detail-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.875rem;
            padding: 1rem;
        }

        .staff-customer-profit-lines {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            overflow: hidden;
        }

        .staff-customer-profit-lines-title {
            padding: 0.65rem 0.75rem;
            background: var(--staff-surface-soft);
            font-weight: 800;
            color: var(--slate-700);
            font-size: 0.8125rem;
        }

        .staff-customer-profit-line {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.55rem 0.75rem;
            border-top: 1px solid var(--staff-line);
            font-size: 0.8125rem;
        }

        .staff-customer-profit-line span {
            color: var(--slate-500);
        }

        .staff-customer-profit-line strong {
            color: var(--slate-800);
            white-space: nowrap;
        }

        .staff-customer-profit-line.total {
            background: var(--staff-ok-bg);
            font-weight: 800;
        }

        .staff-customer-orders-table {
            width: 100%;
            min-width: 820px;
            border-collapse: collapse;
        }

        .staff-customer-orders-table th,
        .staff-customer-orders-table td {
            padding: 0.7rem 0.8rem;
            border-bottom: 1px solid var(--staff-line);
            font-size: 0.85rem;
            text-align: left;
        }

        .staff-customer-orders-table th {
            color: var(--slate-500);
            background: #f8fafc;
            font-weight: 800;
        }

        .staff-customer-owner-board {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: .75rem;
            margin: 0 0 1rem;
        }

        .staff-customer-owner-board-card {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #fff;
            padding: .8rem;
            display: flex;
            flex-direction: column;
            gap: .65rem;
            text-align: left;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
        }

        .staff-customer-owner-board-card:hover {
            border-color: var(--primary-300);
            background: #f8fafc;
        }

        .staff-customer-owner-board-card strong {
            display: block;
            color: var(--slate-900);
            font-size: .92rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .staff-customer-owner-board-card span {
            display: block;
            color: var(--slate-500);
            font-size: .78rem;
            margin-top: .16rem;
        }

        .staff-customer-owner-board-metrics {
            display: flex;
            flex-wrap: wrap;
            gap: .35rem;
        }

        .staff-customer-owner-board-metrics em {
            font-style: normal;
            padding: .18rem .42rem;
            border-radius: 999px;
            background: var(--slate-100);
            color: var(--slate-600);
            font-size: .72rem;
            font-weight: 700;
        }

        .staff-customer-owner-board-metrics em.alert {
            background: #fee2e2;
            color: #b91c1c;
        }

        .staff-customer-empty-orders {
            padding: 1rem;
            color: var(--slate-500);
            font-size: 0.875rem;
        }

        .staff-customer-owner-log-wrap {
            margin-top: .9rem;
            border-top: 1px solid var(--staff-line);
            padding-top: .75rem;
        }

        .staff-customer-owner-log-title {
            font-weight: 800;
            color: var(--slate-800);
            font-size: .86rem;
            margin-bottom: .5rem;
        }

        .staff-customer-owner-log-list {
            display: grid;
            gap: .45rem;
        }

        .staff-customer-owner-log,
        .staff-customer-owner-log-empty {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #f8fafc;
            padding: .55rem .65rem;
            font-size: .8rem;
        }

        .staff-customer-owner-log {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .8rem;
        }

        .staff-customer-owner-log strong {
            color: var(--slate-800);
        }

        .staff-customer-owner-log span,
        .staff-customer-owner-log time,
        .staff-customer-owner-log-empty {
            color: var(--slate-500);
        }

        .staff-customer-owner-log span {
            display: block;
            margin-top: .12rem;
            font-size: .74rem;
        }

        .staff-customer-owner-log time {
            flex: 0 0 auto;
            font-size: .74rem;
        }

        .admin-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.42rem;
            padding: 0.5rem 0.78rem;
            border-radius: 8px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            border: none;
        }

        .admin-btn-primary {
            background: var(--primary-600);
            color: white;
        }

        .admin-btn-primary:hover {
            background: var(--primary-700);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(2, 132, 199, 0.22);
        }

        .admin-btn-secondary {
            background: var(--slate-100);
            color: var(--slate-700);
        }

        .admin-btn-secondary:hover {
            background: var(--staff-active);
            color: var(--staff-accent);
        }

        .admin-btn-danger {
            background: var(--error);
            color: white;
        }

        .admin-btn-danger:hover {
            background: #dc2626;
        }

        .admin-form-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .admin-form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--slate-700);
            margin-bottom: 0.375rem;
        }

        .admin-form-group input,
        .admin-form-group select {
            width: 100%;
            padding: 0.625rem 0.875rem;
            border: 1px solid var(--slate-300);
            border-radius: var(--radius-md);
            font-size: 0.9375rem;
            transition: all var(--transition-fast);
        }

        .admin-form-group input:focus,
        .admin-form-group select:focus {
            outline: none;
            border-color: var(--primary-500);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .admin-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.625rem;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 600;
        }

        .admin-badge-success { background: #d1fae5; color: #065f46; }
        .admin-badge-warning { background: #fef3c7; color: #92400e; }
        .admin-badge-danger { background: #fee2e2; color: #991b1b; }
        .admin-badge-info { background: #dbeafe; color: #1e40af; }

        .admin-page { display: none; }
        .admin-page.active { display: block; }

        .staff-account-toolbar {
            gap: 0.75rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .staff-account-filters {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex: 1;
            min-width: 320px;
        }

        .staff-account-filters input,
        .staff-account-filters select {
            min-width: 150px;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--slate-300);
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            background: #fff;
        }

        .staff-account-table {
            min-width: 980px;
        }

        .staff-account-roles {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
        }

        .staff-account-role-chip {
            display: inline-flex;
            align-items: center;
            padding: 0.18rem 0.48rem;
            border-radius: var(--radius-full);
            background: var(--slate-100);
            color: var(--slate-700);
            font-size: 0.75rem;
            font-weight: 600;
        }

        .staff-account-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background: rgba(15, 23, 42, 0.48);
            z-index: 10080;
        }

        .staff-account-modal.is-open {
            display: flex;
        }

        .staff-account-modal-panel {
            width: min(860px, calc(100vw - 2rem));
            max-height: 92vh;
            overflow: auto;
            background: #fff;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-xl);
            padding: 1rem;
        }

        .staff-account-form-grid,
        .staff-profile-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .staff-avatar-editor {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: #f8fafc;
        }

        .staff-avatar-preview {
            width: 88px;
            height: 88px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 800;
            overflow: hidden;
            flex: 0 0 auto;
        }

        .staff-avatar-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .staff-avatar-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: .5rem;
            min-width: 0;
        }

        .staff-avatar-actions p {
            flex-basis: 100%;
            margin: 0;
            color: var(--slate-500);
            font-size: .82rem;
        }

        .staff-account-role-checkboxes {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.35rem;
            padding: 0.5rem;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-md);
            background: var(--slate-50);
        }

        .staff-account-role-checkboxes label {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            min-height: 32px;
            padding: 0.35rem 0.45rem;
            margin: 0;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
            font-size: 0.78rem;
            line-height: 1.15;
            color: var(--slate-700);
        }

        .staff-account-role-checkboxes input {
            flex: 0 0 auto;
            width: 14px;
            height: 14px;
        }

        @media (max-width: 760px) {
            .staff-account-filters,
            .staff-account-form-grid,
            .staff-profile-grid {
                grid-template-columns: 1fr;
            }
            .staff-account-role-checkboxes {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .staff-avatar-editor {
                align-items: flex-start;
            }
            .staff-account-filters {
                display: grid;
                min-width: 100%;
            }
        }

        /* Hamburger toggle */
        .admin-menu-toggle{display:flex;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px;z-index:110}
        .admin-menu-toggle span{display:block;width:22px;height:2px;background:var(--slate-700);border-radius:1px;transition:all .25s ease}
        .admin-menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
        .admin-menu-toggle.open span:nth-child(2){opacity:0}
        .admin-menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

        /* Sidebar overlay */
        .admin-sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:99;opacity:0;transition:opacity .3s ease}
        .admin-sidebar-overlay.active{opacity:1}

        @media (min-width: 993px) {
            body.admin-sidebar-collapsed .admin-sidebar{width:76px}
            body.admin-sidebar-collapsed .admin-sidebar-header{padding:1rem .6rem}
            body.admin-sidebar-collapsed .admin-sidebar-header .admin-logo{justify-content:center;gap:0}
            body.admin-sidebar-collapsed .admin-sidebar-header .admin-logo span,
            body.admin-sidebar-collapsed .admin-sidebar-collapse,
            body.admin-sidebar-collapsed .admin-nav-title,
            body.admin-sidebar-collapsed .admin-nav-item span{display:none}
            body.admin-sidebar-collapsed .admin-sidebar-header .admin-logo-icon{width:44px;height:44px}
            body.admin-sidebar-collapsed .admin-nav{padding:.85rem .55rem}
            body.admin-sidebar-collapsed .admin-nav-section{margin-bottom:.75rem}
            body.admin-sidebar-collapsed .admin-nav-item{justify-content:center;gap:0;padding:.55rem .35rem}
            body.admin-sidebar-collapsed .admin-nav-item i{width:auto}
            body.admin-sidebar-collapsed .admin-sidebar-footer{padding:.75rem .55rem}
            body.admin-sidebar-collapsed .admin-logout-btn{font-size:0;gap:0;padding:.75rem .5rem}
            body.admin-sidebar-collapsed .admin-logout-btn i{font-size:1rem}
            body.admin-sidebar-collapsed .admin-main{margin-left:76px}
        }

        @media (max-width: 992px) {
            .admin-menu-toggle{display:flex}
            .admin-sidebar{width:260px;transform:translateX(-100%);box-shadow:4px 0 24px rgba(0,0,0,.12)}
            .admin-sidebar.active{transform:translateX(0)}
            .admin-sidebar-overlay{display:block;pointer-events:none}
            .admin-sidebar-overlay.active{pointer-events:auto}
            .admin-main{margin-left:0}
            .admin-stats-grid{grid-template-columns:repeat(2,1fr)}
            .admin-form-row{grid-template-columns:1fr}
            .admin-header{padding:1rem}
            .admin-header h1{font-size:1.1rem}
            .admin-header-user span{display:none}
            .knowledge-grid{grid-template-columns:1fr}
            .knowledge-search-bar{flex-direction:column}
            .staff-customer-toolbar{flex-direction:column}
            .staff-customer-search{width:100%;justify-content:flex-start}
            .staff-customer-search input{width:100%}
            .staff-customer-search select{width:100%}
            .staff-workbench-grid{grid-template-columns:1fr}
            .staff-workbench-actions{width:100%;justify-content:flex-start}
            .staff-dashboard-announcement-item{grid-template-columns:30px minmax(0,1fr)}
            .staff-dashboard-announcement-meta{grid-column:2;align-items:flex-start;flex-direction:row;flex-wrap:wrap}
            .staff-rate-hub-top-row{grid-template-columns:1fr}
            .staff-platform-page-header .staff-business-filters{width:100%;justify-content:flex-start}
            .staff-modal-form-grid{grid-template-columns:1fr}
            .staff-customer-profit-summary-row{grid-template-columns:1fr}
            .staff-customer-profit-detail-grid{grid-template-columns:1fr}
            .staff-finance-receipt-grid{grid-template-columns:1fr}
            body.admin-sidebar-open{overflow:hidden}
        }

        @media (max-width: 480px) {
            .admin-stats-grid{grid-template-columns:1fr}
            .admin-header{padding:.75rem 1rem}
            .admin-header h1{font-size:1rem}
            .admin-content{padding:1rem}
        }

        @media (max-width: 992px) {
            #dmFloatTools {
                right: 10px !important;
                top: auto !important;
                bottom: 16px !important;
                transform: none !important;
            }
            #dmFloatBtn {
                padding: .62rem .78rem !important;
                border-radius: 12px !important;
                font-size: .84rem !important;
            }
            #dmDashboardDrawer {
                width: 100vw !important;
                right: -100vw !important;
                border-left: none !important;
                box-shadow: none !important;
                display: block !important;
            }
            #dmDrawerSide {
                width: 100% !important;
                height: 42vh !important;
                border-right: none !important;
                border-bottom: 1px solid #e2e8f0 !important;
            }
            #dmDrawerMain {
                height: 58vh !important;
            }
            #dmContactList button {
                padding: .78rem .85rem !important;
            }
            #dmMessageList {
                padding: .72rem !important;
            }
            #dmInput {
                min-height: 40px;
            }
        }

        /* Knowledge page */
        .knowledge-search-bar{display:flex;gap:.75rem;margin-bottom:1.5rem;align-items:center}
        .knowledge-search-bar input{flex:1;padding:.625rem .875rem;border:1px solid var(--slate-300);border-radius:var(--radius-md);font-size:.9375rem}
        .knowledge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}
        .knowledge-card{background: linear-gradient(180deg, #ffffff 0%, #f3fbff 60%, #ecfeff 100%);border:1px solid var(--slate-100);border-radius:var(--radius-lg);padding:1.25rem;cursor:pointer;transition:all var(--transition-fast);display:flex;flex-direction:column;gap:.625rem}
        .knowledge-card:hover{border-color:var(--primary-200);box-shadow:0 4px 12px rgba(0,0,0,.06);transform:translateY(-1px)}
        .knowledge-card-title{font-weight:600;color:var(--slate-800);font-size:.9375rem;line-height:1.4}
        .knowledge-card-summary{font-size:.8125rem;color:var(--slate-500);line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
        .knowledge-card-tags{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.25rem}
        .knowledge-tag{display:inline-block;padding:.125rem .5rem;font-size:.6875rem;border-radius:999px;background:var(--slate-100);color:var(--slate-500)}
        .knowledge-card-meta{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:var(--slate-400);margin-top:auto}
        .knowledge-card-actions{display:flex;gap:.5rem}
        .knowledge-card-actions button{background:none;border:none;color:var(--slate-400);cursor:pointer;font-size:.75rem;padding:.25rem .5rem;border-radius:var(--radius-sm);transition:all var(--transition-fast)}
        .knowledge-card-actions button:hover{color:var(--primary-500);background:var(--slate-50)}
        .knowledge-card-actions .btn-delete:hover{color:var(--error);background:#fef2f2}
        .knowledge-empty{text-align:center;padding:3rem 1rem;color:var(--slate-400)}
        .knowledge-empty i{font-size:3rem;margin-bottom:1rem;display:block;opacity:.5}
        .knowledge-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:10001;display:flex;align-items:center;justify-content:center;padding:1rem}
        .knowledge-modal{background: linear-gradient(180deg, #ffffff 0%, #f3fbff 60%, #ecfeff 100%);border-radius:var(--radius-xl);width:100%;max-width:560px;max-height:85vh;overflow-y:auto;padding:2rem;box-shadow:0 20px 60px rgba(0,0,0,.15)}
        .knowledge-modal h3{font-size:1.125rem;font-weight:700;color:var(--slate-800);margin-bottom:1.25rem}
        .knowledge-modal .admin-form-group{margin-bottom:1rem}
        .knowledge-modal .admin-form-group label{display:block;font-size:.8125rem;font-weight:600;color:var(--slate-600);margin-bottom:.375rem}
        .knowledge-modal .admin-form-group input,.knowledge-modal .admin-form-group textarea,.knowledge-modal .admin-form-group select{width:100%;padding:.625rem .875rem;border:1px solid var(--slate-300);border-radius:var(--radius-md);font-size:.9375rem;font-family:inherit}
        .knowledge-modal .admin-form-group textarea{min-height:120px;resize:vertical}

        @media (max-width: 768px) {
            .admin-stats-grid { grid-template-columns: 1fr; }
            .admin-table { display: block; overflow-x: auto; }
        }

        /* ===== ANIMATIONS ===== */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ===== HERO AI SECTION ===== */
        .hero-ai-section {
            background: linear-gradient(180deg, var(--slate-900) 0%, var(--primary-900) 40%, var(--primary-800) 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5rem 0 2rem;
            position: relative;
            overflow: hidden;
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        .hero-ai-arc {
            position: absolute;
            bottom: -100px;
            left: -20%;
            right: -20%;
            height: 280px;
            background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.06) 40%, transparent 70%);
            filter: blur(40px);
            pointer-events: none;
            z-index: 1;
        }

        .hero-ai-glow {
            position: absolute;
            top: -20%;
            right: -15%;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .hero-ai-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 60% 40% at 50% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse 40% 30% at 20% 30%, rgba(249, 115, 22, 0.06) 0%, transparent 50%);
        }

        .hero-ai-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 1.5rem;
            position: relative;
            z-index: 10;
            text-align: center;
            width: 100%;
        }

        /* 大屏幕适配：增大容器宽度 */
        @media (min-width: 1400px) {
            .hero-ai-container {
                max-width: 1100px;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-container {
                max-width: 1300px;
            }
        }

        .hero-ai-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1.125rem;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: var(--radius-full);
            font-size: 0.875rem;
            color: var(--primary-300);
            margin-bottom: 1.25rem;
        }

        .hero-ai-badge i { color: var(--accent-400); }

        .hero-ai-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 800;
            background: linear-gradient(135deg, #ffffff 0%, var(--primary-300) 35%, #f59e0b 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1.25rem;
            letter-spacing: 0.04em;
            line-height: 1.15;
        }

        /* 大屏幕适配：增大标题 */
        @media (min-width: 1400px) {
            .hero-ai-title {
                font-size: clamp(2.5rem, 5vw, 4rem);
                margin-bottom: 1.5rem;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-title {
                font-size: clamp(3rem, 5vw, 4.5rem);
                margin-bottom: 1.75rem;
            }
        }

        .hero-ai-subtitle {
            font-size: 1.0625rem;
            color: var(--slate-400);
            margin-bottom: 2rem;
            max-width: 520px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.7;
        }

        .hero-ai-input-box {
            background: rgba(255,255,255,0.06);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: var(--radius-xl);
            padding: 1rem 1.25rem;
            display: flex;
            gap: 0.75rem;
            align-items: flex-end;
            max-width: 800px;
            margin: 0 auto 1.25rem;
            transition: all var(--transition-base);
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            width: 100%;
        }

        /* 大屏幕适配：增大输入框 */
        @media (min-width: 1400px) {
            .hero-ai-input-box {
                max-width: 1000px;
                padding: 1.125rem 1.5rem;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-input-box {
                max-width: 1200px;
                padding: 1.25rem 1.75rem;
            }
        }

        .hero-ai-input-box:focus-within {
            border-color: rgba(14, 165, 233, 0.4);
            box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 4px rgba(14, 165, 233, 0.1);
            background: rgba(255,255,255,0.09);
        }

        .hero-ai-input {
            flex: 1;
            background: transparent;
            border: none;
            color: white;
            font-size: 1.0625rem;
            font-family: inherit;
            line-height: 1.6;
            resize: none;
            outline: none;
            min-height: 32px;
            max-height: 160px;
            padding: 0.5rem 0.75rem;
        }

        /* 大屏幕适配：增大字体和间距 */
        @media (min-width: 1400px) {
            .hero-ai-input {
                font-size: 1.125rem;
                min-height: 36px;
                max-height: 200px;
                padding: 0.625rem 0.875rem;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-input {
                font-size: 1.25rem;
                min-height: 40px;
                max-height: 240px;
                padding: 0.75rem 1rem;
            }
        }

        .hero-ai-input::placeholder { color: rgba(255,255,255,0.4); }

        .hero-ai-send-btn {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-lg);
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border: none;
            color: white;
            font-size: 1.125rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            flex-shrink: 0;
        }

        /* 大屏幕适配：增大发送按钮 */
        @media (min-width: 1400px) {
            .hero-ai-send-btn {
                width: 52px;
                height: 52px;
                font-size: 1.25rem;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-send-btn {
                width: 56px;
                height: 56px;
                font-size: 1.375rem;
            }
        }

        .hero-ai-send-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
        }

        .hero-ai-send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Hero 区域电商主题 */
        [data-chat-theme="ecommerce"] .hero-ai-send-btn {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        [data-chat-theme="ecommerce"] .hero-ai-send-btn:hover {
            box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
        }
        [data-chat-theme="ecommerce"] .hero-ai-mode.active {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }
        [data-chat-theme="ecommerce"] .hero-ai-chip {
            background: #fffbeb;
            border-color: #fcd34d;
            color: #92400e;
        }
        [data-chat-theme="ecommerce"] .hero-ai-chip:hover {
            background: #fef3c7;
            border-color: #f59e0b;
        }

        .hero-ai-modes {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .hero-ai-mode {
            padding: 0.5rem 1.25rem;
            border-radius: var(--radius-full);
            font-size: 0.9375rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            border: 1px solid rgba(255,255,255,0.15);
            background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* 大屏幕适配：增大模式按钮 */
        @media (min-width: 1400px) {
            .hero-ai-mode {
                padding: 0.625rem 1.5rem;
                font-size: 1rem;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-mode {
                padding: 0.75rem 1.75rem;
                font-size: 1.0625rem;
            }
        }

        .hero-ai-mode:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        .hero-ai-mode.active {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            border-color: transparent;
            box-shadow: 0 2px 12px rgba(14, 165, 233, 0.35);
        }

        .hero-ai-chips {
            display: grid;
            grid-template-columns: repeat(3, auto);
            gap: 0.625rem;
            justify-content: center;
            height: 120px;
            align-content: center;
        }

        .hero-ai-chip {
            padding: 0.625rem 1.25rem;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-full);
            font-size: 0.9375rem;
            color: rgba(255,255,255,0.65);
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        /* 大屏幕适配：增大快捷标签 */
        @media (min-width: 1400px) {
            .hero-ai-chip {
                padding: 0.75rem 1.5rem;
                font-size: 1rem;
            }
            .hero-ai-chips {
                height: 140px;
                gap: 0.75rem;
            }
        }

        @media (min-width: 1920px) {
            .hero-ai-chip {
                padding: 0.875rem 1.75rem;
                font-size: 1.0625rem;
            }
            .hero-ai-chips {
                height: 160px;
                gap: 0.875rem;
            }
        }

        .hero-ai-chip:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.2);
            color: white;
            transform: translateY(-1px);
        }

        .hero-ai-chip i {
            margin-right: 0.375rem;
            font-size: 0.75rem;
            color: var(--primary-400);
        }

        /* ===== AI CHAT MODAL ===== */
        /* ===== AI CHAT FULLSCREEN (DeepSeek Style) ===== */
        .ai-chat-modal {
            position: fixed;
            inset: 0;
            background: white;
            z-index: 10000;
            display: flex;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }

        .ai-chat-modal.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .ai-chat-layout {
            width: 100%;
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        /* --- Sidebar --- */
        .ai-chat-sidebar {
            width: 260px;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border-right: 1px solid var(--slate-200);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .ai-chat-sidebar-header {
            padding: 1rem;
            border-bottom: 1px solid var(--slate-200);
        }

        .ai-chat-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 700;
            color: var(--slate-800);
            font-size: 1rem;
            margin-bottom: 0.75rem;
        }

        .ai-chat-logo i {
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #0ea5e9, #f59e0b);
            color: white;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
        }

        .ai-sidebar-tools {
            display: none;
            flex-direction: column;
            gap: 0.5rem;
        }
        .ai-sidebar-tools.show {
            display: flex;
        }
        #aiSidebarTools.ai-sidebar-tools.show {
            display: flex !important;
        }
        .hero-ai-input::-webkit-scrollbar,
        .ai-chat-input::-webkit-scrollbar {
            display: none;
        }
        .ai-sidebar-tool-btn {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--slate-200);
            background: white;
            border-radius: var(--radius-md);
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--slate-700);
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all var(--transition-fast);
        }
        .ai-sidebar-tool-btn:hover {
            background: var(--primary-50);
            border-color: var(--primary-300);
            color: var(--primary-700);
        }
        .ai-sidebar-tool-btn.active {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border-color: var(--primary-600);
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
        }
        .ai-sidebar-tool-btn.active i {
            color: white;
        }
        .ai-sidebar-tool-btn i {
            width: 18px;
            text-align: center;
            font-size: 0.75rem;
            color: var(--primary-500);
        }

        .ai-chat-new-btn {
            width: 100%;
            padding: 0.625rem;
            border: 1px solid var(--slate-300);
            background: white;
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--slate-700);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            transition: all var(--transition-fast);
        }

        .ai-chat-new-btn:hover {
            background: var(--slate-100);
            border-color: var(--slate-400);
        }

        .ai-chat-history {
            flex: 1;
            overflow-y: auto;
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .ai-chat-history-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 0.75rem;
            border-radius: var(--radius-md);
            cursor: pointer;
            font-size: 0.875rem;
            color: var(--slate-600);
            transition: all var(--transition-fast);
            position: relative;
        }

        .ai-chat-history-item:hover {
            background: var(--slate-200);
        }

        .ai-chat-history-item.active {
            background: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            color: var(--slate-900);
            font-weight: 600;
        }

        .ai-chat-history-item i {
            font-size: 0.75rem;
            color: var(--slate-400);
            flex-shrink: 0;
        }

        .ai-chat-history-item span {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ai-chat-history-delete {
            width: 22px;
            height: 22px;
            border-radius: var(--radius-sm);
            border: none;
            background: transparent;
            color: var(--slate-400);
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
        }

        .ai-chat-history-item:hover .ai-chat-history-delete {
            display: flex;
        }

        .ai-chat-history-delete:hover {
            background: #fee2e2;
            color: #dc2626;
        }

        .ai-chat-history-empty {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--slate-400);
            font-size: 0.8125rem;
        }

        /* --- Main Area --- */
        .ai-chat-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: white;
            position: relative;
        }

        .ai-chat-header {
            padding: 0.875rem 1.25rem;
            background: white;
            border-bottom: 1px solid var(--slate-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }

        .ai-chat-header-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .ai-chat-menu-btn {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-md);
            border: none;
            background: var(--slate-100);
            color: var(--slate-600);
            font-size: 1rem;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }

        .ai-chat-menu-btn:hover { background: var(--slate-200); }

        @media (max-width: 768px) {
            .ai-chat-menu-btn { display: flex; }
        }

        .ai-chat-header-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #0ea5e9, #f59e0b);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.125rem;
            color: white;
            transition: background 0.3s ease;
        }
        .ai-chat-header-icon.amber {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        .ai-chat-header-icon.blue {
            background: linear-gradient(135deg, #0ea5e9, #0284c7);
        }

        .ai-chat-header-info h4 {
            font-size: 0.9375rem;
            font-weight: 700;
            margin: 0;
            color: var(--slate-800);
        }

        .ai-chat-header-info p {
            font-size: 0.75rem;
            color: var(--slate-500);
            margin: 0;
        }

        .ai-chat-close {
            width: 36px;
            height: 36px;
            background: var(--slate-100);
            border: none;
            border-radius: var(--radius-md);
            color: var(--slate-500);
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }

        .ai-chat-close:hover {
            background: var(--slate-200);
            color: var(--slate-800);
        }

        .ai-chat-modes {
            display: flex;
            gap: 0.5rem;
            padding: 0.625rem 1.25rem;
            background: white;
            border-bottom: 1px solid var(--slate-100);
            flex-shrink: 0;
        }

        .ai-chat-mode-btn {
            padding: 0.375rem 1rem;
            border: 1px solid var(--slate-200);
            background: white;
            border-radius: var(--radius-full);
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--slate-600);
            cursor: pointer;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            text-decoration: none;
        }

        .ai-chat-mode-btn:hover {
            border-color: var(--primary-300);
            color: var(--primary-600);
            text-decoration: none;
        }

        .ai-chat-mode-btn.active {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            border-color: transparent;
            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
        }
        .ai-chat-mode-btn.active.amber {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }
        .ai-chat-mode-btn.active.blue {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
        }

        .ai-chat-mode-btn .mode-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
            opacity: 0.5;
        }

        .ai-chat-mode-btn.active .mode-dot { opacity: 1; }

        .ai-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            scroll-behavior: smooth;
            max-width: 1080px;
            margin: 0 auto;
            width: 100%;
        }

        .ai-sales-handoff-bar {
            width: min(1080px, calc(100% - 4rem));
            margin: .75rem auto 0;
            padding: .65rem .8rem;
            border: 1px solid #bfdbfe;
            border-radius: 8px;
            background: #eff6ff;
            color: #1e3a8a;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            font-size: .9rem;
            font-weight: 700;
        }

        .ai-sales-handoff-bar span {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            min-width: 0;
        }

        .ai-sales-handoff-bar button {
            border: 0;
            border-radius: 8px;
            background: #2563eb;
            color: #fff;
            padding: .48rem .75rem;
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
        }

        .ai-sales-contact-panel {
            position: absolute;
            right: 1.25rem;
            top: 9.25rem;
            width: min(420px, calc(100vw - 2rem));
            max-height: calc(100vh - 12rem);
            overflow: auto;
            display: none;
            z-index: 30;
            padding: .9rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
            box-shadow: var(--shadow-xl);
        }

        .ai-sales-contact-panel.active {
            display: block;
        }

        .ai-sales-contact-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: .75rem;
            margin-bottom: .75rem;
        }

        .ai-sales-contact-head strong {
            display: block;
            color: var(--slate-900);
            font-size: .98rem;
        }

        .ai-sales-contact-head span {
            display: block;
            color: var(--slate-500);
            font-size: .78rem;
            margin-top: .15rem;
        }

        .ai-sales-contact-head button {
            width: 30px;
            height: 30px;
            border: 0;
            border-radius: 50%;
            background: var(--slate-100);
            color: var(--slate-500);
            cursor: pointer;
        }

        .ai-sales-contact-panel textarea {
            width: 100%;
            resize: vertical;
            min-height: 70px;
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            padding: .65rem;
            font: inherit;
            line-height: 1.5;
            margin-bottom: .75rem;
        }

        .ai-sales-contact-list {
            display: grid;
            gap: .55rem;
        }

        .ai-sales-contact-empty {
            padding: 1rem;
            text-align: center;
            color: var(--slate-500);
            background: var(--slate-50);
            border: 1px dashed var(--slate-300);
            border-radius: 8px;
            font-size: .88rem;
        }

        .ai-sales-contact-card {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) auto;
            align-items: center;
            gap: .65rem;
            padding: .7rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
        }

        .ai-sales-contact-card.active {
            border-color: #0f766e;
            background: #f0fdfa;
        }

        .ai-sales-contact-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            overflow: hidden;
            background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
        }

        .ai-sales-contact-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .ai-sales-contact-meta strong {
            display: flex;
            align-items: center;
            gap: .35rem;
            color: var(--slate-800);
            font-size: .92rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ai-sales-contact-meta strong em {
            flex: 0 0 auto;
            padding: .08rem .35rem;
            border-radius: 999px;
            background: #ccfbf1;
            color: #0f766e;
            font-style: normal;
            font-size: .66rem;
            font-weight: 800;
        }

        .ai-sales-contact-meta span {
            display: block;
            color: var(--slate-500);
            font-size: .78rem;
            margin-top: .1rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ai-sales-contact-card button {
            border: 0;
            border-radius: 8px;
            background: #0f766e;
            color: #fff;
            padding: .45rem .65rem;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
        }

        .ai-sales-contact-card button:disabled,
        .ai-sales-direct-actions button:disabled {
            opacity: .68;
            cursor: not-allowed;
        }

        .post-order-owner-panel {
            z-index: 5000;
        }

        .post-order-owner-container {
            max-width: 560px;
        }

        .post-order-owner-hint {
            padding: .65rem .75rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: var(--slate-50);
            color: var(--slate-600);
            font-size: .88rem;
            line-height: 1.45;
            margin-bottom: .8rem;
        }

        .post-order-owner-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: .65rem;
        }

        .post-order-owner-card {
            width: 100%;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
            padding: .75rem;
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            align-items: center;
            gap: .65rem;
            text-align: left;
            cursor: pointer;
        }

        .post-order-owner-card:hover,
        .post-order-owner-card.default {
            border-color: #0f766e;
            background: #f0fdfa;
        }

        .post-order-owner-card:disabled {
            opacity: .72;
            cursor: wait;
        }

        .post-order-owner-meta {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: .15rem;
        }

        .post-order-owner-meta strong {
            display: flex;
            align-items: center;
            gap: .35rem;
            min-width: 0;
            color: var(--slate-900);
            font-size: .94rem;
        }

        .post-order-owner-meta strong em {
            flex: 0 0 auto;
            padding: .08rem .35rem;
            border-radius: 999px;
            background: #ccfbf1;
            color: #0f766e;
            font-style: normal;
            font-size: .66rem;
            font-weight: 800;
        }

        .post-order-owner-meta small {
            color: var(--slate-500);
            font-size: .78rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ai-sales-direct-editor {
            margin-top: .75rem;
            padding-top: .75rem;
            border-top: 1px solid var(--slate-200);
        }

        .ai-sales-direct-head {
            display: flex;
            flex-direction: column;
            gap: .15rem;
            margin-bottom: .5rem;
        }

        .ai-sales-direct-head strong {
            color: var(--slate-900);
            font-size: .9rem;
        }

        .ai-sales-direct-head span {
            color: var(--slate-500);
            font-size: .76rem;
        }

        .ai-sales-direct-messages {
            max-height: 190px;
            overflow: auto;
            padding: .55rem;
            margin-bottom: .6rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #f8fafc;
        }

        .ai-sales-direct-empty {
            color: var(--slate-500);
            font-size: .8rem;
            text-align: center;
            padding: .8rem .4rem;
        }

        .ai-sales-direct-message {
            max-width: 86%;
            width: fit-content;
            margin-bottom: .45rem;
            padding: .45rem .58rem;
            border-radius: 8px;
            font-size: .82rem;
            line-height: 1.42;
            color: var(--slate-900);
            white-space: pre-wrap;
            word-break: break-word;
        }

        .ai-sales-direct-message.mine {
            margin-left: auto;
            background: #dcfce7;
        }

        .ai-sales-direct-message.theirs {
            margin-right: auto;
            background: #fff;
            border: 1px solid var(--slate-200);
        }

        .ai-sales-direct-message time {
            display: block;
            margin-top: .2rem;
            color: var(--slate-400);
            font-size: .68rem;
            text-align: right;
        }

        .ai-sales-direct-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: -.25rem;
        }

        .ai-sales-direct-actions button {
            border: 0;
            border-radius: 8px;
            background: #0f766e;
            color: #fff;
            padding: .46rem .8rem;
            font-weight: 800;
            cursor: pointer;
        }

        /* 大屏幕适配：增大消息区域 */
        @media (min-width: 1400px) {
            .ai-chat-messages {
                max-width: 1320px;
                padding: 2rem 2.5rem;
            }
            .ai-sales-handoff-bar {
                width: min(1320px, calc(100% - 5rem));
            }
        }

        @media (min-width: 1920px) {
            .ai-chat-messages {
                max-width: 1560px;
                padding: 2.5rem 3rem;
            }
            .ai-sales-handoff-bar {
                width: min(1560px, calc(100% - 6rem));
            }
        }

        .ai-chat-message {
            display: flex;
            gap: 0.75rem;
            max-width: 100%;
            animation: messageSlideIn 0.3s ease;
        }

        @keyframes messageSlideIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .ai-chat-message.user {
            align-self: flex-end;
            flex-direction: row-reverse;
            max-width: 80%;
        }

        .ai-chat-message.ai {
            align-self: flex-start;
            max-width: 100%;
        }

        .ai-chat-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            flex-shrink: 0;
        }

        .ai-chat-message.user .ai-chat-avatar {
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            color: white;
        }

        .ai-chat-message.ai .ai-chat-avatar {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
            color: white;
        }

        .ai-chat-bubble {
            padding: 0.875rem 1.125rem;
            border-radius: var(--radius-lg);
            font-size: 1rem;
            line-height: 1.7;
            word-wrap: break-word;
        }

        .ai-chat-message.user .ai-chat-bubble {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            color: white;
            border-bottom-right-radius: 4px;
        }

        .ai-chat-message.ai .ai-chat-bubble {
            background: var(--slate-100);
            color: var(--slate-800);
            border-bottom-left-radius: 4px;
        }

        .ai-chat-time {
            font-size: 0.6875rem;
            color: var(--slate-400);
            margin-top: 0.125rem;
            flex-shrink: 0;
            align-self: flex-end;
            min-width: 2.5rem;
            text-align: right;
        }

        .ai-chat-message.user .ai-chat-time {
            text-align: left;
            align-self: flex-end;
            order: -1;
        }

        .ai-chat-bubble .reasoning-block {
            background: rgba(14, 165, 233, 0.08);
            border-left: 3px solid var(--primary-400);
            padding: 0.625rem 0.875rem;
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            margin-bottom: 0.75rem;
            font-size: 0.875rem;
            color: var(--slate-600);
        }

        .ai-chat-bubble .reasoning-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary-600);
            margin-bottom: 0.375rem;
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .ai-chat-bubble .reasoning-label i {
            animation: spin 1.5s linear infinite;
        }

        .ai-chat-bubble .code-block {
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-md);
            margin: 0.5rem 0;
            overflow: hidden;
            position: relative;
        }
        .ai-chat-bubble .code-block pre {
            margin: 0;
            padding: 0.75rem 1rem;
            font-family: 'SF Mono', 'Consolas', monospace;
            font-size: 0.75rem;
            line-height: 1.6;
            color: var(--slate-700);
            overflow-x: auto;
            white-space: pre-wrap;
        }
        .ai-chat-bubble .code-block code {
            background: none;
            padding: 0;
            font-size: inherit;
        }
        .ai-chat-bubble .tsv-copy-btn {
            position: absolute;
            top: 0.375rem;
            right: 0.375rem;
            padding: 0.25rem 0.625rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--primary-300);
            background: var(--primary-50);
            color: var(--primary-600);
            font-size: 0.6875rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            transition: all var(--transition-fast);
            z-index: 1;
        }
        .ai-chat-bubble .tsv-copy-btn:hover {
            background: var(--primary-500);
            color: white;
            border-color: var(--primary-500);
        }
        .ai-chat-bubble .tsv-copy-btn.copied {
            background: #16a34a;
            color: white;
            border-color: #16a34a;
        }

        /* AI消息操作栏 */
        .ai-msg-actions {
            display: flex;
            margin-top: 0.5rem;
            margin-left: 40px;
            padding-left: 0.25rem;
        }
        .ai-msg-action-btn {
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            border: 1px solid var(--primary-200);
            background: white;
            color: var(--primary-600);
            font-size: 0.8125rem;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            transition: all var(--transition-fast);
            box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06);
        }
        .ai-msg-action-btn:hover {
            background: var(--primary-50);
            border-color: var(--primary-300);
            color: var(--primary-700);
            box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
        }
        .ai-msg-action-btn i {
            font-size: 0.75rem;
        }
        [data-theme="ecommerce"] .ai-msg-action-btn {
            border-color: #fde68a;
            color: #d97706;
            background: white;
            box-shadow: 0 1px 2px rgba(217, 119, 6, 0.06);
        }
        [data-theme="ecommerce"] .ai-msg-action-btn:hover {
            background: #fffbeb;
            border-color: #fcd34d;
            color: #b45309;
            box-shadow: 0 2px 6px rgba(217, 119, 6, 0.1);
        }

        /* 下单模态框 */
        .order-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 10003;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }
        .order-modal-overlay.active { display: flex; }
        .order-modal {
            background: white;
            border-radius: var(--radius-xl);
            width: 100%;
            max-width: 760px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-2xl);
            animation: fadeInUp 0.3s ease;
        }
        .order-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--slate-100);
        }
        .order-modal-header h3 {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--slate-800);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .order-modal-header h3 i { color: var(--primary-500); }
        .order-modal-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: none;
            background: var(--slate-100);
            color: var(--slate-500);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }
        .order-modal-close:hover {
            background: var(--slate-200);
            color: var(--slate-700);
        }
        .order-modal form { padding: 1.5rem; }
        .order-form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        @media (max-width: 480px) {
            .order-form-grid { grid-template-columns: 1fr; }
            .order-modal { max-height: 95vh; }
        }

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

        .ai-chat-bubble p { margin: 0 0 0.35rem; }
        .ai-chat-bubble p:last-child { margin-bottom: 0; }
        .ai-chat-bubble h4 { margin: 0.45rem 0 0.28rem; line-height: 1.28; }
        .ai-chat-bubble ul, .ai-chat-bubble ol { margin: 0.38rem 0; padding-left: 1.15rem; }
        .ai-chat-bubble li { margin: 0.16rem 0; }
        .ai-chat-bubble code {
            background: rgba(0,0,0,0.05);
            padding: 0.125rem 0.375rem;
            border-radius: 4px;
            font-family: 'SF Mono', monospace;
            font-size: 0.875em;
        }
        .ai-chat-bubble strong { color: var(--primary-700); }
        .ai-chat-bubble blockquote {
            border-left: 3px solid var(--primary-300);
            margin: 0.5rem 0;
            padding-left: 0.75rem;
            color: var(--slate-600);
        }
        .ai-chat-bubble .ai-table-wrap {
            margin: 0.42rem 0;
            overflow-x: auto;
            border: 1px solid var(--slate-200);
            border-radius: var(--radius-md);
            background: white;
        }
        .ai-chat-bubble .quote-table-wrap {
            margin: 0.32rem 0 0.45rem;
        }
        .ai-chat-bubble .rate-card-summary,
        .ai-chat-bubble .combined-quote-card {
            margin: 0.38rem 0;
            padding: 0.62rem 0.75rem;
            line-height: 1.34;
        }
        .ai-chat-bubble .rate-card-summary h4,
        .ai-chat-bubble .combined-quote-card h4 {
            margin: 0 0 0.28rem;
            font-size: 0.98rem;
        }
        .ai-chat-bubble .rate-card-summary p,
        .ai-chat-bubble .combined-quote-card p {
            margin: 0.08rem 0 !important;
            line-height: 1.32;
        }
        .ai-chat-bubble .rate-card-summary > * + *,
        .ai-chat-bubble .combined-quote-card > * + * {
            margin-top: 0.22rem !important;
        }
        .ai-chat-bubble .ai-chat-table {
            width: 100%;
            min-width: 560px;
            border-collapse: collapse;
            font-size: 0.875rem;
            line-height: 1.35;
            color: var(--slate-800);
        }
        .ai-chat-bubble .ai-chat-table thead th {
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            color: var(--slate-700);
            font-weight: 700;
            text-align: left;
            white-space: nowrap;
            padding: 0.45rem 0.58rem;
            border-bottom: 1px solid var(--slate-200);
        }
        .ai-chat-bubble .ai-chat-table tbody td {
            padding: 0.45rem 0.58rem;
            border-bottom: 1px solid var(--slate-100);
            vertical-align: top;
        }
        .ai-chat-bubble .quote-table-wrap .ai-chat-table thead th,
        .ai-chat-bubble .quote-table-wrap .ai-chat-table tbody td {
            padding-top: 0.36rem;
            padding-bottom: 0.36rem;
        }
        .ai-chat-message.ai .ai-chat-bubble {
            line-height: 1.38;
        }
        .ai-chat-message.ai .ai-stream-text,
        .ai-chat-message.ai .ai-final-text {
            margin-top: 0.18rem !important;
            color: var(--slate-700);
            font-size: 0.9rem;
            line-height: 1.16 !important;
        }
        .ai-chat-message.ai .ai-stream-text {
            white-space: pre-wrap;
        }
        .ai-chat-message.ai .ai-final-text h3,
        .ai-chat-message.ai .ai-final-text h4 {
            margin: 0.1rem 0 0.04rem !important;
            line-height: 1.08 !important;
        }
        .ai-chat-message.ai .ai-final-text br {
            line-height: 0.7 !important;
        }
        .ai-chat-message.ai .ai-final-text ul {
            margin: 0.08rem 0 0.08rem 0.85rem !important;
            padding-left: 0.65rem !important;
        }
        .ai-chat-message.ai .ai-final-text li {
            margin: 0.02rem 0 !important;
            line-height: 1.16 !important;
        }
        .ai-chat-message.ai .rate-card-summary,
        .ai-chat-message.ai .combined-quote-card {
            margin: 0.16rem 0 !important;
            padding: 0.38rem 0.52rem !important;
            line-height: 1.12 !important;
        }
        .ai-chat-message.ai .rate-card-summary p,
        .ai-chat-message.ai .combined-quote-card p,
        .ai-chat-message.ai .rate-card-summary div,
        .ai-chat-message.ai .combined-quote-card div {
            line-height: 1.12 !important;
        }
        .ai-chat-message.ai .rate-card-summary p,
        .ai-chat-message.ai .combined-quote-card p {
            margin: 0 !important;
        }
        .ai-chat-message.ai .rate-card-summary > * + *,
        .ai-chat-message.ai .combined-quote-card > * + * {
            margin-top: 0.08rem !important;
        }
        .ai-chat-message.ai .quote-table-wrap {
            margin: 0.22rem 0 0.32rem !important;
        }
        .ai-chat-message.ai .quote-table-wrap .ai-chat-table {
            line-height: 1.24 !important;
        }
        .ai-chat-message.ai .quote-table-wrap .ai-chat-table thead th,
        .ai-chat-message.ai .quote-table-wrap .ai-chat-table tbody td {
            padding: 0.25rem 0.45rem !important;
            line-height: 1.24 !important;
        }
        .ai-chat-message.ai .lcl-quote-card {
            margin: 0.2rem 0 !important;
            padding: 0.46rem 0.58rem !important;
            line-height: 1.18 !important;
        }
        .ai-chat-message.ai .lcl-quote-card h4 {
            margin: 0 0 0.18rem !important;
            line-height: 1.18 !important;
        }
        .ai-chat-message.ai .lcl-quote-card p {
            margin: 0.02rem 0 !important;
            line-height: 1.2 !important;
        }
        .ai-chat-message.ai .lcl-quote-card .lcl-card-metrics,
        .ai-chat-message.ai .lcl-quote-card .lcl-summary-grid {
            margin: 0.28rem 0 !important;
            gap: 0.38rem !important;
        }
        .ai-chat-message.ai .lcl-quote-card .lcl-summary-mini-card {
            padding: 0.44rem !important;
            border-radius: 6px !important;
            min-width: 170px !important;
            line-height: 1.2 !important;
        }
        .ai-chat-message.ai .lcl-quote-card .lcl-summary-mini-card div {
            margin-top: 0.08rem !important;
            line-height: 1.2 !important;
        }
        .ai-chat-message.ai .lcl-quote-card .lcl-unit-note,
        .ai-chat-message.ai .lcl-quote-card .lcl-hidden-note,
        .ai-chat-message.ai .lcl-quote-card .lcl-card-footer {
            margin-top: 0.28rem !important;
            margin-bottom: 0.18rem !important;
            line-height: 1.2 !important;
        }
        .ai-chat-bubble .ai-chat-table tbody tr:nth-child(even) {
            background: #f8fafc;
        }
        .ai-chat-bubble .ai-chat-table tbody tr:last-child td {
            border-bottom: none;
        }
        .ai-chat-bubble .ai-chat-table td strong {
            color: var(--slate-900);
        }

        .ai-chat-input-area {
            padding: 1.25rem 2rem 2rem;
            border-top: 1px solid var(--slate-200);
            background: white;
            flex-shrink: 0;
        }

        .ai-chat-input-box {
            max-width: 1080px;
            margin: 0 auto;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
            border: 2px solid var(--slate-200);
            border-radius: var(--radius-xl);
            padding: 0.75rem 1.125rem;
            transition: all var(--transition-fast);
        }

        .ai-chat-input-box:focus-within {
            border-color: var(--primary-400);
            background: white;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        .ai-chat-input {
            width: 100%;
            border: none;
            background: transparent;
            font-size: 0.98rem;
            font-family: inherit;
            line-height: 1.45;
            resize: none;
            max-height: 180px;
            min-height: 44px;
            outline: none;
            color: var(--slate-800);
        }

        .ai-chat-input::placeholder { color: var(--slate-400); }

        .ai-chat-input-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.625rem;
            padding-top: 0.625rem;
            border-top: 1px solid var(--slate-200);
        }

        .ai-chat-input-hint {
            font-size: 0.8125rem;
            color: var(--slate-400);
        }

        .ai-chat-send {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            border: none;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            flex-shrink: 0;
        }

        .ai-chat-send:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
        }

        .ai-chat-price-btn {
            min-width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            background: var(--slate-100);
            border: 1px solid var(--slate-300);
            color: var(--slate-600);
            font-size: 0.875rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0 0.75rem;
            transition: all var(--transition-fast);
            flex-shrink: 0;
            margin-right: 0.5rem;
            white-space: nowrap;
        }
        .ai-chat-price-btn.active {
            background: #dbeafe;
            border-color: #3b82f6;
            color: #2563eb;
            box-shadow: 0 0 0 2px rgba(59,130,246,.2);
        }

        /* 大屏幕适配：增大聊天输入框 */
        @media (min-width: 1400px) {
            .ai-chat-input-area {
                padding: 1.5rem 2.5rem 2.5rem;
            }
            .ai-chat-input-box {
                max-width: 1320px;
                padding: 0.875rem 1.25rem;
            }
            .ai-chat-input {
                font-size: 1rem;
                min-height: 48px;
                max-height: 220px;
            }
            .ai-chat-send, .ai-chat-price-btn {
                width: 44px;
                height: 44px;
                font-size: 1.125rem;
            }
        }

        @media (min-width: 1920px) {
            .ai-chat-input-area {
                padding: 1.75rem 3rem 3rem;
            }
            .ai-chat-input-box {
                max-width: 1560px;
                padding: 0.95rem 1.4rem;
            }
            .ai-chat-input {
                font-size: 1.06rem;
                min-height: 50px;
                max-height: 240px;
            }
            .ai-chat-send, .ai-chat-price-btn {
                width: 48px;
                height: 48px;
                font-size: 1.25rem;
            }
        }
        .ai-chat-price-btn:hover {
            background: var(--primary-50);
            border-color: var(--primary-400);
            color: var(--primary-700);
        }

        .ai-chat-footer-actions {
            display: flex;
            align-items: center;
            gap: 0;
            flex-shrink: 0;
        }

        .price-modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.4); z-index: 10002;
            display: flex; align-items: center; justify-content: center;
        }
        .price-modal {
            background: white; border-radius: 16px; padding: 1.5rem;
            width: min(92vw, 960px);
            max-width: 960px;
            max-height: 86vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        }
        .price-modal-tip {
            margin: 0 0 0.75rem;
            font-size: 0.8125rem;
            color: var(--slate-500);
        }
        .price-modal-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.875rem;
        }
        .price-modal h3 { margin: 0 0 1rem; font-size: 1.125rem; }
        .price-modal label { display: block; font-size: 0.8125rem; color: var(--slate-600); margin-bottom: 0.25rem; margin-top: 0.625rem; }
        .price-modal select, .price-modal input {
            width: 100%; padding: 0.625rem; border: 1px solid var(--slate-300); border-radius: 8px; font-size: 0.9375rem;
        }
        .price-modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
        .price-modal-actions button { flex: 1; padding: 0.625rem; border-radius: 8px; font-size: 0.9375rem; cursor: pointer; border: none; }
        .price-modal-actions .btn-query { background: var(--primary-600); color: white; }
        .price-modal-actions .btn-close { background: var(--slate-200); color: var(--slate-700); }
        .price-result { margin-top: 1rem; max-height: 420px; overflow-y: auto; border: 1px solid var(--slate-100); border-radius: 10px; padding: 0.5rem; }
        .price-result table { width: 100%; font-size: 0.8125rem; border-collapse: collapse; }
        .price-result th { background: var(--slate-100); padding: 0.5rem; text-align: left; font-weight: 600; }
        .price-result td { padding: 0.5rem; border-bottom: 1px solid var(--slate-100); }
        .price-result .best { color: #059669; font-weight: 600; }
        @media (max-width: 768px) {
            .price-modal-grid {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            .price-modal {
                width: 94vw;
            }
        }

        .ai-chat-bubble .ai-table-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.5rem 0.625rem 0;
        }
        .ai-chat-bubble .ai-table-toolbar-label {
            font-size: 0.75rem;
            color: var(--slate-500);
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }
        .ai-chat-bubble .ai-table-order-btn {
            padding: 0.2rem 0.6rem;
            font-size: 0.75rem;
        }
        .ai-chat-bubble .ai-inline-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            margin-top: 0.65rem;
        }
        .ai-chat-bubble .ai-sales-inline-btn {
            color: #fff;
            background: var(--primary-500);
            border-color: transparent;
        }
        .order-quote-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            max-height: 180px;
            overflow-y: auto;
        }
        .order-quote-item {
            display: flex;
            align-items: flex-start;
            gap: 0.625rem;
            border: 1px solid var(--slate-200);
            border-radius: 10px;
            padding: 0.625rem 0.75rem;
            cursor: pointer;
            background: white;
        }
        .order-quote-item:hover {
            border-color: var(--primary-300);
            background: #f8fcff;
        }
        .order-quote-item input {
            margin-top: 0.2rem;
        }
        .order-quote-item-body {
            flex: 1;
        }
        .order-quote-empty {
            font-size: 0.8125rem;
            color: var(--slate-500);
            border: 1px dashed var(--slate-300);
            border-radius: 10px;
            padding: 0.75rem;
            background: linear-gradient(160deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
        }

        .ai-chat-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .ai-chat-typing {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.75rem 1rem;
        }

        .ai-chat-typing span {
            width: 8px;
            height: 8px;
            background: var(--primary-400);
            border-radius: 50%;
            animation: typingBounce 1.4s ease-in-out infinite;
        }

        .ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
        .ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingBounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-6px); }
        }

        .ai-chat-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            padding: 0 2rem 0.75rem;
            max-width: 900px;
            margin: 0 auto;
            width: 100%;
        }

        .ai-chat-suggestion {
            padding: 0.5rem 1rem;
            background: var(--primary-50);
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-full);
            font-size: 0.875rem;
            color: var(--primary-700);
            cursor: pointer;
            transition: all var(--transition-fast);
            white-space: nowrap;
        }

        .ai-chat-suggestion:hover {
            background: var(--primary-100);
            border-color: var(--primary-400);
            transform: translateY(-1px);
        }

        /* ===== AI Chat 电商主题（琥珀色）=====*/
        [data-theme="ecommerce"] .ai-chat-mode-btn.active {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }
        [data-theme="ecommerce"] .ai-chat-message.ai .ai-chat-avatar {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        [data-theme="ecommerce"] .ai-chat-message.user .ai-chat-bubble {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        [data-theme="ecommerce"] .ai-chat-send {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        [data-theme="ecommerce"] .ai-chat-send:hover {
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
        }
        [data-theme="ecommerce"] .ai-chat-suggestion {
            background: #fffbeb;
            border-color: #fcd34d;
            color: #92400e;
        }
        [data-theme="ecommerce"] .ai-chat-suggestion:hover {
            background: #fef3c7;
            border-color: #f59e0b;
        }
        [data-theme="ecommerce"] .ai-chat-bubble strong { color: #92400e; }
        [data-theme="ecommerce"] .ai-chat-bubble .reasoning-block { background: rgba(245, 158, 11, 0.08); }
        [data-theme="ecommerce"] .ai-chat-bubble .reasoning-label i { color: #d97706; }

        .ai-chat-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--slate-400);
        }

        .ai-chat-empty i {
            font-size: 3.5rem;
            margin-bottom: 1.25rem;
            color: var(--primary-200);
        }

        .ai-chat-empty h5 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--slate-700);
            margin-bottom: 0.75rem;
        }

        .ai-chat-empty p {
            font-size: 0.9375rem;
            line-height: 1.7;
            max-width: 500px;
            margin: 0 auto;
        }

        .ai-chat-error {
            background: #fee2e2;
            color: #991b1b;
            padding: 0.625rem 1rem;
            border-radius: var(--radius-md);
            font-size: 0.875rem;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .ai-chat-sidebar {
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                z-index: 10;
                transform: translateX(-100%);
            }
            .ai-chat-sidebar.open {
                transform: translateX(0);
            }
            .ai-chat-messages { padding: 1rem; }
            .ai-chat-input-area { padding: 0.875rem 1rem 1rem; }
            .ai-chat-suggestions { padding: 0 1rem 0.75rem; }
        }

        /* AI chat density pass: keep the conversation area dominant. */
        .ai-chat-sidebar { width: 230px; }
        .ai-chat-sidebar-header { padding: 0.8rem; }
        .ai-chat-logo {
            font-size: 0.9rem;
            margin-bottom: 0.55rem;
        }
        .ai-chat-logo i {
            width: 26px;
            height: 26px;
            font-size: 0.8rem;
        }
        .ai-chat-new-btn {
            padding: 0.52rem 0.65rem;
            font-size: 0.82rem;
        }
        .ai-chat-history { padding: 0.45rem; }
        .ai-chat-history-item {
            padding: 0.48rem 0.62rem;
            font-size: 0.82rem;
        }
        .ai-chat-header {
            padding: 0.5rem 1rem;
        }
        .ai-chat-header-left { gap: 0.55rem; }
        .ai-chat-header-icon,
        .ai-chat-close,
        .ai-chat-menu-btn {
            width: 30px;
            height: 30px;
            font-size: 0.9rem;
        }
        .ai-chat-header-info h4 { font-size: 0.88rem; }
        .ai-chat-header-info p {
            font-size: 0.7rem;
            line-height: 1.25;
        }
        .ai-chat-modes {
            gap: 0.4rem;
            padding: 0.38rem 1rem;
        }
        .ai-chat-mode-btn {
            padding: 0.26rem 0.72rem;
            font-size: 0.78rem;
        }
        .ai-chat-mode-btn .mode-dot {
            width: 5px;
            height: 5px;
        }
        .ai-sales-handoff-bar {
            margin-top: 0.45rem;
            padding: 0.45rem 0.65rem;
            font-size: 0.82rem;
        }
        .ai-chat-messages {
            padding: 0.9rem 1.35rem;
            gap: 0.68rem;
        }
        .ai-chat-message { gap: 0.52rem; }
        .ai-chat-avatar {
            width: 28px;
            height: 28px;
            font-size: 0.78rem;
        }
        .ai-chat-bubble {
            padding: 0.55rem 0.75rem;
            border-radius: var(--radius-md);
            font-size: 0.9rem;
            line-height: 1.46;
        }
        .ai-chat-time { font-size: 0.64rem; }
        .ai-chat-bubble p { margin: 0 0 0.28rem; }
        .ai-chat-bubble p:last-child { margin-bottom: 0; }
        .ai-chat-bubble ul,
        .ai-chat-bubble ol {
            margin: 0.32rem 0;
            padding-left: 1.05rem;
        }
        .ai-chat-bubble li { margin: 0.12rem 0; }
        .ai-chat-bubble blockquote {
            margin: 0.32rem 0;
            padding-left: 0.55rem;
        }
        .ai-chat-bubble .reasoning-block {
            padding: 0.42rem 0.62rem;
            margin-bottom: 0.42rem;
            font-size: 0.8rem;
        }
        .ai-chat-bubble .ai-table-wrap { margin: 0.4rem 0; }
        .ai-chat-bubble .ai-chat-table {
            font-size: 0.8rem;
            line-height: 1.34;
        }
        .ai-chat-bubble .ai-chat-table thead th,
        .ai-chat-bubble .ai-chat-table tbody td {
            padding: 0.4rem 0.52rem;
        }
        .ai-chat-suggestions {
            gap: 0.38rem;
            padding: 0 1.35rem 0.42rem;
        }
        .ai-chat-suggestion {
            padding: 0.32rem 0.7rem;
            font-size: 0.78rem;
        }
        .ai-chat-empty {
            padding: 1.35rem 1rem;
        }
        .ai-chat-empty i {
            font-size: 2.35rem;
            margin-bottom: 0.65rem;
        }
        .ai-chat-empty h5 {
            font-size: 1rem;
            margin-bottom: 0.35rem;
        }
        .ai-chat-empty p {
            font-size: 0.82rem;
            line-height: 1.5;
            max-width: 430px;
        }
        .ai-chat-input-area {
            padding: 0.68rem 1.35rem 0.8rem;
        }
        .ai-chat-input-box {
            border-width: 1px;
            border-radius: var(--radius-lg);
            padding: 0.48rem 0.75rem;
        }
        .ai-chat-input-box:focus-within {
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
        }
        .ai-chat-input {
            min-height: 32px;
            max-height: 118px;
            font-size: 0.9rem;
            line-height: 1.35;
        }
        .ai-chat-input-footer {
            margin-top: 0.32rem;
            padding-top: 0.32rem;
        }
        .ai-chat-input-hint { font-size: 0.72rem; }
        .ai-chat-send,
        .ai-chat-price-btn {
            width: 34px;
            min-width: 34px;
            height: 34px;
            font-size: 0.88rem;
        }
        .ai-chat-price-btn {
            padding: 0 0.52rem;
            margin-right: 0.32rem;
        }
        @media (min-width: 1400px) {
            .ai-chat-messages {
                padding: 1rem 1.8rem;
            }
            .ai-chat-input-area {
                padding: 0.72rem 1.8rem 0.85rem;
            }
            .ai-chat-input-box {
                padding: 0.5rem 0.82rem;
            }
            .ai-chat-input {
                min-height: 33px;
                max-height: 125px;
                font-size: 0.92rem;
            }
            .ai-chat-send,
            .ai-chat-price-btn {
                width: 35px;
                min-width: 35px;
                height: 35px;
                font-size: 0.92rem;
            }
        }
        @media (min-width: 1920px) {
            .ai-chat-messages {
                padding: 1rem 2rem;
            }
            .ai-chat-input-area {
                padding: 0.75rem 2rem 0.9rem;
            }
            .ai-chat-input-box {
                padding: 0.52rem 0.9rem;
            }
            .ai-chat-input {
                min-height: 34px;
                max-height: 132px;
                font-size: 0.94rem;
            }
            .ai-chat-send,
            .ai-chat-price-btn {
                width: 36px;
                min-width: 36px;
                height: 36px;
                font-size: 0.95rem;
            }
        }
        @media (max-width: 768px) {
            .ai-chat-header { padding: 0.45rem 0.75rem; }
            .ai-chat-modes { padding: 0.35rem 0.75rem; }
            .ai-chat-messages {
                padding: 0.75rem;
                gap: 0.6rem;
            }
            .ai-chat-bubble {
                font-size: 0.88rem;
                line-height: 1.45;
                padding: 0.5rem 0.65rem;
            }
            .ai-chat-input-area {
                padding: 0.58rem 0.75rem 0.65rem;
            }
            .ai-chat-input-box {
                padding: 0.42rem 0.62rem;
            }
            .ai-chat-input {
                min-height: 30px;
                font-size: 0.88rem;
            }
            .ai-chat-suggestions {
                padding: 0 0.75rem 0.35rem;
            }
            .ai-chat-empty {
                padding: 1rem 0.75rem;
            }
            .ai-chat-empty i {
                font-size: 2rem;
            }
        }

        /* AI chat compact2: header modes share the title row; input stays single-row by default. */
        .ai-chat-header {
            padding: 0.44rem 0.9rem;
        }
        .ai-chat-header-left {
            min-width: 0;
        }
        .ai-chat-header-info {
            min-width: 0;
        }
        .ai-chat-header-info h4,
        .ai-chat-header-info p {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .ai-chat-header-actions {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-shrink: 0;
        }
        .ai-chat-header-actions .ai-chat-modes {
            padding: 0;
            border-bottom: 0;
            background: transparent;
            gap: 0.32rem;
        }
        .ai-chat-header-actions .ai-chat-mode-btn {
            padding: 0.22rem 0.56rem;
            font-size: 0.76rem;
            min-height: 30px;
        }
        .ai-chat-input-area {
            padding: 0.42rem 1.35rem 0.5rem;
        }
        .ai-chat-input-box {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.55rem;
            border-width: 1px;
            border-radius: 14px;
            padding: 0.28rem 0.38rem 0.28rem 0.72rem;
        }
        .ai-chat-input {
            flex: 1;
            min-height: 30px;
            max-height: 82px;
            font-size: 0.88rem;
            line-height: 1.32;
        }
        .ai-chat-input-footer {
            margin-top: 0;
            padding-top: 0;
            border-top: 0;
            justify-content: flex-end;
            flex-shrink: 0;
        }
        .ai-chat-input-hint {
            display: none;
        }
        .ai-chat-footer-actions {
            gap: 0.28rem;
        }
        .ai-chat-send,
        .ai-chat-price-btn {
            width: 34px;
            min-width: 34px;
            height: 34px;
            margin-right: 0;
            font-size: 0.88rem;
        }
        .ai-chat-price-btn {
            padding: 0;
        }
        #aiChatAttachmentPreview {
            flex-basis: 100%;
        }
        @media (min-width: 1400px) {
            .ai-chat-input-area {
                padding: 0.46rem 1.8rem 0.54rem;
            }
            .ai-chat-input-box {
                padding: 0.3rem 0.42rem 0.3rem 0.78rem;
            }
            .ai-chat-input {
                min-height: 31px;
                max-height: 88px;
                font-size: 0.9rem;
            }
        }
        @media (min-width: 1920px) {
            .ai-chat-input-area {
                padding: 0.48rem 2rem 0.58rem;
            }
            .ai-chat-input-box {
                padding: 0.32rem 0.44rem 0.32rem 0.82rem;
            }
            .ai-chat-input {
                min-height: 32px;
                max-height: 94px;
                font-size: 0.91rem;
            }
        }
        @media (max-width: 768px) {
            .ai-chat-header {
                padding: 0.42rem 0.65rem;
                gap: 0.4rem;
            }
            .ai-chat-header-info p {
                display: none;
            }
            .ai-chat-header-actions {
                gap: 0.32rem;
            }
            .ai-chat-header-actions .ai-chat-mode-btn {
                padding: 0.2rem 0.42rem;
                font-size: 0.7rem;
                min-height: 28px;
            }
            .ai-chat-input-area {
                padding: 0.36rem 0.75rem 0.42rem;
            }
            .ai-chat-input-box {
                gap: 0.35rem;
                padding: 0.26rem 0.32rem 0.26rem 0.56rem;
            }
            .ai-chat-input {
                min-height: 28px;
                max-height: 76px;
                font-size: 0.86rem;
            }
            .ai-chat-send,
            .ai-chat-price-btn {
                width: 32px;
                min-width: 32px;
                height: 32px;
            }
        }

        /* ===== RATE SEARCH SECTION ===== */
        .rate-search-section {
            background: linear-gradient(180deg, var(--slate-50) 0%, white 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 5rem 0;
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        .rate-search-box {
            max-width: 900px;
            margin: 0 auto 2.5rem;
            background: white;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
            border: 1px solid var(--slate-200);
            padding: 2rem;
        }

        .rate-search-form {
            display: flex;
            align-items: flex-end;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .rate-search-field {
            flex: 1;
            min-width: 160px;
        }

        .rate-search-field label {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--slate-600);
            margin-bottom: 0.5rem;
        }

        .rate-search-field label i {
            color: var(--primary-500);
        }

        .rate-search-field input,
        .rate-search-field select {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 1px solid var(--slate-300);
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-family: inherit;
            color: var(--slate-800);
            background: white;
            transition: all var(--transition-fast);
        }

        .rate-search-field input:focus,
        .rate-search-field select:focus {
            outline: none;
            border-color: var(--primary-400);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

        .rate-search-arrow {
            color: var(--slate-400);
            font-size: 1.25rem;
            padding-bottom: 1rem;
        }

        .rate-search-btn {
            padding: 0.875rem 2rem;
            background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all var(--transition-base);
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
            white-space: nowrap;
        }

        .rate-search-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
        }

        .rate-hot-routes {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--slate-100);
        }

        .rate-hot-label {
            font-size: 0.875rem;
            color: var(--slate-500);
            font-weight: 500;
        }

        .rate-hot-chip {
            padding: 0.375rem 0.875rem;
            background: var(--primary-50);
            border: 1px solid var(--primary-200);
            border-radius: var(--radius-full);
            font-size: 0.8125rem;
            color: var(--primary-700);
            cursor: pointer;
            transition: all var(--transition-fast);
        }

        .rate-hot-chip:hover {
            background: var(--primary-100);
            border-color: var(--primary-400);
            transform: translateY(-1px);
        }

        /* Rate Results */
        .rate-results {
            max-width: 900px;
            margin: 0 auto;
        }

        .rate-result-card {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--slate-200);
            box-shadow: var(--shadow-sm);
            padding: 1.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .rate-result-card:hover {
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-300);
            transform: translateY(-2px);
        }

        .rate-result-route {
            flex: 1;
            min-width: 200px;
        }

        .rate-result-ports {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--slate-800);
            margin-bottom: 0.5rem;
        }

        .rate-result-line {
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-400), var(--primary-500));
            border-radius: 2px;
            position: relative;
            min-width: 40px;
        }

        .rate-result-line::after {
            content: '\f21a';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: -2px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.75rem;
            color: var(--primary-500);
        }

        .rate-result-meta {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .rate-result-meta span {
            font-size: 0.875rem;
            color: var(--slate-600);
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .rate-result-meta i {
            color: var(--primary-500);
            font-size: 0.8125rem;
        }

        .rate-result-price {
            text-align: right;
            min-width: 140px;
        }

        .rate-result-price-value {
            font-size: 1.75rem;
            font-weight: 800;
            color: var(--primary-700);
            line-height: 1;
        }

        .rate-result-price-label {
            font-size: 0.8125rem;
            color: var(--slate-500);
            margin-top: 0.25rem;
        }

        .rate-result-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .rate-result-badge.best { background: #d1fae5; color: #065f46; }
        .rate-result-badge.good { background: #dbeafe; color: #1e40af; }
        .rate-result-badge.rec { background: #fef3c7; color: #92400e; }

        .rate-results-empty {
            text-align: center;
            padding: 3rem;
            color: var(--slate-500);
        }

        .rate-results-empty i {
            font-size: 3rem;
            color: var(--slate-300);
            margin-bottom: 1rem;
        }

        @media (max-width: 640px) {
            .ai-chat-layout {
                flex-direction: column;
            }
            .hero-ai-title { font-size: 1.5rem; }
            .hero-ai-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: center; height: auto; min-height: 80px; }
            .hero-ai-chip { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
            .rate-search-form { flex-direction: column; align-items: stretch; }
            .rate-search-arrow { display: none; }
            .rate-search-btn { width: 100%; justify-content: center; }
            .rate-result-card { flex-direction: column; align-items: flex-start; }
            .rate-result-price { text-align: left; width: 100%; border-top: 1px solid var(--slate-100); padding-top: 1rem; margin-top: 0.5rem; }
            .hero-ai-section, .rate-search-section, .hero { scroll-snap-stop: normal; }
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1200px) {
            .services-grid { grid-template-columns: repeat(2, 1fr); }
            .advantages-grid { grid-template-columns: repeat(2, 1fr); }
            .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
            .gallery-grid { grid-template-columns: repeat(2, 1fr); }
            .gallery-item-large { grid-column: span 2; grid-row: span 1; height: 260px; }
            .modal-list { grid-template-columns: 1fr; }
        }

        @media (max-width: 992px) {
            .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
            .hero-stats { justify-content: center; }
            .hero-buttons { justify-content: center; }
            .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
            .hero-subtitle { margin-left: auto; margin-right: auto; }

            .about-grid,
            .warehouse-grid,
            .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

            .footer-grid { grid-template-columns: repeat(2, 1fr); }
            .nav-links { display: none; }
            .mobile-menu-btn { display: block; }

            .about-gallery { grid-template-columns: 1fr; }
            .about-img-main { grid-row: span 1; min-height: 280px; }

            .warehouse-gallery { grid-template-columns: 1fr; }
            .warehouse-img-large { grid-column: span 1; }

            .warehouse-badge:nth-child(2) { right: 0; }
            .warehouse-badge:nth-child(3) { left: 0; }
            .warehouse-badge:nth-child(4) { right: -5%; }

            .cta-section h2 { font-size: 2rem; }
        }

        @media (max-width: 768px) {
            section { padding: 4rem 0; }

            .services-grid,
            .advantages-grid,
            .testimonials-grid,
            .gallery-grid { grid-template-columns: 1fr; }

            .gallery-item-large,
            .gallery-item-medium { grid-column: span 1; height: 220px; }

            .process-timeline {
                flex-direction: column;
                gap: 2.5rem;
            }

            .process-timeline::before { display: none; }
            .process-step { max-width: 280px; margin: 0 auto; }

            .footer-grid { grid-template-columns: 1fr; }
            .about-features { grid-template-columns: 1fr; }
            .warehouse-stats { flex-wrap: wrap; justify-content: center; }

            .hero-text h1 { font-size: 2.5rem; }
            .hero-stats { gap: 1.5rem; }
            .stat-number { font-size: 2.25rem; }

            .trust-container { gap: 1.5rem; }
            .partners-grid { gap: 1rem; }

            .contact-form { padding: 1.75rem; }
        }

        /* ===== MORE LINKS SECTION ===== */
        .more-links-section {
            padding: 5rem 0;
            background: linear-gradient(135deg, var(--slate-50) 0%, var(--primary-50) 100%);
        }
        .more-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }
        .more-link-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 2rem;
            text-decoration: none;
            color: var(--slate-700);
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            border: 1px solid var(--slate-100);
        }
        .more-link-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary-200);
        }
        .more-link-icon {
            width: 56px; height: 56px;
            border-radius: var(--radius-md);
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            display: flex; align-items: center; justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
        }
        .more-link-card h4 {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--slate-800);
            margin-bottom: 0.5rem;
        }
        .more-link-card p {
            font-size: 0.875rem;
            color: var(--slate-500);
            line-height: 1.6;
        }
        @media (max-width: 768px) {
            .more-links-section { padding: 3rem 0; }
            .more-links-grid { grid-template-columns: 1fr; gap: 1rem; }
            .more-link-card { padding: 1.5rem; }
        }

        /* AI Chat Sidebar Overlay */
        .ai-sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 9;
            pointer-events: none;
            transition: opacity 0.3s ease;
            opacity: 0;
        }
        .ai-sidebar-overlay.active {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }
        @media (min-width: 769px) {
            .ai-sidebar-overlay { display: none !important; }
        }

        /* ===== AI 首次使用同意弹窗 ===== */
        .ai-consent-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:10001;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s}
        .ai-consent-overlay.active{opacity:1;visibility:visible;pointer-events:auto}
        .ai-consent-dialog{background:#fff;border-radius:16px;max-width:560px;width:92%;max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3)}
        .ai-consent-header{padding:28px 28px 0;text-align:center}
        .ai-consent-header i{font-size:36px;color:#fa8c16;margin-bottom:8px}
        .ai-consent-header h3{font-size:20px;font-weight:700;color:#1a1a1a;margin:8px 0 4px}
        .ai-consent-header p{font-size:13px;color:#999}
        .ai-consent-body{padding:20px 28px}
        .ai-consent-section{background:#fafafa;border-radius:10px;padding:16px;margin-bottom:12px;font-size:13px;line-height:1.7;color:#555}
        .ai-consent-section.risk-high{background:#fff1f0;border-left:3px solid #f5222d}
        .ai-consent-section.risk-mid{background:#fff7e6;border-left:3px solid #fa8c16}
        .ai-consent-section h4{font-size:14px;font-weight:700;margin-bottom:6px;color:#333}
        .ai-consent-section.risk-high h4{color:#cf1322}
        .ai-consent-section.risk-mid h4{color:#d46b08}
        .ai-consent-check{display:flex;align-items:flex-start;gap:10px;padding:10px 0;cursor:pointer;font-size:13px;color:#444}
        .ai-consent-check input{margin-top:2px;width:18px;height:18px;accent-color:#1890ff;flex-shrink:0}
        .ai-consent-footer{padding:20px 28px;border-top:1px solid #f0f0f0;display:flex;gap:10px;justify-content:flex-end}
        .ai-consent-btn{padding:10px 24px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:all .2s}
        .ai-consent-btn-primary{background:linear-gradient(135deg,var(--primary-500),var(--primary-600));color:#fff;opacity:.5;pointer-events:none}
        .ai-consent-btn-primary.enabled{opacity:1;pointer-events:auto}

        .staff-order-detail-mask {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, .34);
            opacity: 0;
            visibility: hidden;
            transition: opacity .2s ease, visibility .2s ease;
            z-index: 10011;
        }
        .staff-order-detail-mask.active {
            opacity: 1;
            visibility: visible;
        }
        .staff-order-detail-drawer {
            position: fixed;
            top: 0;
            right: -1120px;
            width: min(1120px, 100vw);
            height: 100vh;
            background: #fff;
            border-left: 1px solid var(--slate-200);
            box-shadow: -18px 0 42px rgba(15, 23, 42, .18);
            z-index: 10012;
            display: flex;
            flex-direction: column;
            transition: right .24s ease;
        }
        .staff-order-detail-drawer.active { right: 0; }
        .staff-order-detail-head {
            padding: 1rem 1.1rem;
            border-bottom: 1px solid var(--slate-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        .staff-order-detail-kicker {
            font-size: .78rem;
            color: var(--slate-500);
            font-weight: 700;
        }
        .staff-order-detail-head h3 {
            margin: .15rem 0 0;
            font-size: 1.15rem;
            color: var(--slate-900);
        }
        .staff-order-detail-close {
            border: 0;
            background: var(--slate-100);
            color: var(--slate-600);
            width: 38px;
            height: 38px;
            border-radius: 8px;
            cursor: pointer;
        }
        .staff-order-detail-body {
            flex: 1;
            overflow: auto;
            padding: 1rem;
            background: #f8fafc;
        }
        .customer-dashboard-detail-mask {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, .32);
            opacity: 0;
            visibility: hidden;
            transition: opacity .2s ease, visibility .2s ease;
            z-index: 10011;
        }
        .customer-dashboard-detail-mask.active {
            opacity: 1;
            visibility: visible;
        }
        .customer-dashboard-detail-drawer {
            position: fixed;
            top: 0;
            right: -820px;
            width: min(820px, 100vw);
            height: 100vh;
            background: #fff;
            border-left: 1px solid var(--slate-200);
            box-shadow: -18px 0 42px rgba(15, 23, 42, .16);
            z-index: 10012;
            display: flex;
            flex-direction: column;
            transition: right .24s ease;
        }
        .customer-dashboard-detail-drawer.active { right: 0; }
        .customer-dashboard-detail-head {
            padding: 1rem 1.1rem;
            border-bottom: 1px solid var(--slate-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        }
        .customer-dashboard-detail-kicker {
            font-size: .78rem;
            color: var(--primary-700);
            font-weight: 800;
        }
        .customer-dashboard-detail-head h3 {
            margin: .15rem 0 0;
            font-size: 1.15rem;
            color: var(--slate-900);
        }
        .customer-dashboard-detail-close {
            border: 0;
            background: var(--slate-100);
            color: var(--slate-600);
            width: 38px;
            height: 38px;
            border-radius: 8px;
            cursor: pointer;
        }
        .customer-dashboard-detail-body {
            flex: 1;
            overflow: auto;
            padding: 1rem;
            background: #f8fafc;
        }
        .customer-dashboard-detail-section {
            background: #fff;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: .85rem;
        }
        .customer-dashboard-detail-section h4 {
            margin: 0 0 .75rem;
            font-size: .98rem;
            color: var(--slate-900);
        }
        .customer-dashboard-detail-actions {
            display: flex;
            justify-content: flex-end;
            gap: .5rem;
            margin-bottom: .85rem;
            flex-wrap: wrap;
        }
        .customer-dashboard-detail-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .65rem;
        }
        .customer-dashboard-detail-grid > div {
            border: 1px solid var(--slate-100);
            background: #f8fafc;
            border-radius: 8px;
            padding: .65rem .7rem;
            min-width: 0;
        }
        .customer-dashboard-detail-grid span {
            display: block;
            color: var(--slate-500);
            font-size: .75rem;
            margin-bottom: .2rem;
        }
        .customer-dashboard-detail-grid strong {
            color: var(--slate-900);
            font-size: .9rem;
            word-break: break-word;
        }
        .staff-order-detail-section {
            background: #fff;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: .85rem;
        }
        .staff-order-detail-section h4 {
            margin: 0 0 .75rem;
            font-size: .98rem;
            color: var(--slate-900);
        }
        .staff-order-detail-fold {
            padding: 0;
            overflow: hidden;
        }
        .staff-order-detail-fold summary {
            list-style: none;
            cursor: pointer;
            padding: .85rem 1rem;
            color: var(--slate-800);
            font-size: .95rem;
            font-weight: 800;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
        }
        .staff-order-detail-fold summary::after {
            content: '展开';
            color: var(--slate-500);
            font-size: .76rem;
            font-weight: 700;
        }
        .staff-order-detail-fold[open] summary::after {
            content: '收起';
        }
        .staff-order-detail-fold summary::-webkit-details-marker { display: none; }
        .staff-order-detail-fold-body {
            padding: 1rem;
            border-top: 1px solid var(--slate-100);
        }
        .staff-order-detail-actions {
            display: flex;
            gap: .5rem;
            flex-wrap: wrap;
            margin-bottom: .85rem;
        }
        .staff-order-basic-fold {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
            margin-bottom: .7rem;
        }
        .staff-order-basic-fold summary {
            list-style: none;
            cursor: pointer;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: .55rem;
            align-items: center;
            padding: .55rem .68rem;
            background: #f8fafc;
        }
        .staff-order-basic-fold summary::-webkit-details-marker { display: none; }
        .staff-order-basic-fold summary::after {
            content: '展开';
            color: var(--slate-500);
            font-size: .72rem;
            font-weight: 800;
        }
        .staff-order-basic-fold[open] summary::after { content: '收起'; }
        .staff-order-basic-fold summary strong {
            color: var(--slate-900);
            font-size: .88rem;
        }
        .staff-order-basic-fold summary span {
            color: var(--slate-500);
            font-size: .78rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .staff-order-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .45rem;
        }
        .staff-order-basic-fold .staff-order-detail-grid {
            padding: .6rem;
            border-top: 1px solid var(--slate-100);
        }
        .staff-order-detail-grid > div {
            border: 1px solid var(--slate-100);
            background: #f8fafc;
            border-radius: 8px;
            padding: .5rem .55rem;
            min-width: 0;
        }
        .staff-order-detail-grid span {
            display: block;
            color: var(--slate-500);
            font-size: .75rem;
            margin-bottom: .2rem;
        }
        .staff-order-detail-grid strong {
            color: var(--slate-900);
            font-size: .9rem;
            word-break: break-word;
        }
        .staff-order-detail-note {
            margin-top: .75rem;
            background: #ecfeff;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: .65rem .7rem;
            display: grid;
            gap: .25rem;
            color: var(--slate-700);
            font-size: .84rem;
        }
        .staff-current-task-card {
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            border-radius: 8px;
            padding: .75rem .85rem;
            margin-bottom: .85rem;
            display: grid;
            gap: .25rem;
            color: var(--slate-700);
        }
        .staff-current-task-card strong {
            color: var(--slate-950);
            font-size: .95rem;
            display: inline-flex;
            align-items: center;
            gap: .4rem;
        }
        .staff-current-task-card span {
            font-size: .86rem;
            line-height: 1.55;
        }
        .staff-force-advance-panel,
        .staff-force-advance-trail {
            border: 1px dashed #f59e0b;
            background: #fffbeb;
            border-radius: 8px;
            padding: .7rem;
            display: grid;
            gap: .55rem;
        }
        .staff-force-advance-panel {
            margin: .15rem 0;
        }
        .staff-force-advance-head {
            display: grid;
            gap: .2rem;
            cursor: pointer;
            list-style: none;
        }
        .staff-force-advance-head::-webkit-details-marker {
            display: none;
        }
        .staff-force-advance-head strong {
            color: #92400e;
            display: inline-flex;
            align-items: center;
            gap: .4rem;
        }
        .staff-force-advance-head span,
        .staff-force-advance-missing span,
        .staff-force-advance-trail p {
            color: var(--slate-600);
            font-size: .8rem;
            line-height: 1.45;
        }
        .staff-force-advance-missing {
            display: grid;
            gap: .25rem;
        }
        .staff-force-advance-form {
            display: grid;
            grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr);
            gap: .45rem;
        }
        .staff-force-advance-form select,
        .staff-force-advance-form input {
            width: 100%;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .55rem .65rem;
        }
        .staff-force-advance-trail {
            margin-bottom: .85rem;
        }
        .staff-force-advance-trail summary {
            cursor: pointer;
            color: #92400e;
            font-weight: 800;
            list-style: none;
        }
        .staff-force-advance-trail summary::-webkit-details-marker {
            display: none;
        }
        .staff-force-advance-trail div {
            display: grid;
            gap: .35rem;
        }
        .staff-force-advance-trail p {
            margin: 0;
            border-top: 1px solid #fde68a;
            padding-top: .35rem;
        }
        .staff-order-basic-fold .staff-order-detail-note {
            margin: 0 .6rem .6rem;
        }
        .staff-exception-panel {
            display: grid;
            gap: .75rem;
        }
        .staff-exception-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: .5rem;
        }
        .staff-exception-summary > div {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #f8fafc;
            padding: .6rem .65rem;
        }
        .staff-exception-summary span,
        .staff-exception-grid span,
        .staff-exception-form-grid span {
            display: block;
            color: var(--slate-500);
            font-size: .72rem;
            font-weight: 800;
            margin-bottom: .18rem;
        }
        .staff-exception-summary strong {
            color: var(--slate-950);
            font-size: 1rem;
        }
        .staff-exception-list {
            display: grid;
            gap: .55rem;
        }
        .staff-exception-card {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }
        .staff-exception-card summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            gap: .75rem;
            align-items: center;
            padding: .7rem .75rem;
            background: #fffbeb;
            border-bottom: 1px solid #fde68a;
        }
        .staff-exception-card summary::-webkit-details-marker { display: none; }
        .staff-exception-card summary strong,
        .staff-exception-card summary small,
        .staff-exception-card summary em {
            display: block;
            min-width: 0;
        }
        .staff-exception-card summary strong {
            color: var(--slate-950);
            font-size: .9rem;
            word-break: break-word;
        }
        .staff-exception-card summary small,
        .staff-exception-card summary em {
            color: var(--slate-600);
            font-size: .76rem;
            font-style: normal;
        }
        .staff-exception-card-body {
            display: grid;
            gap: .65rem;
            padding: .75rem;
        }
        .staff-exception-grid,
        .staff-exception-form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .5rem;
        }
        .staff-exception-grid > div,
        .staff-exception-create,
        .staff-exception-cost-entry,
        .staff-exception-note {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #f8fafc;
        }
        .staff-exception-grid > div,
        .staff-exception-note {
            padding: .55rem .6rem;
            min-width: 0;
        }
        .staff-exception-grid strong,
        .staff-exception-note span {
            color: var(--slate-900);
            font-size: .84rem;
            word-break: break-word;
        }
        .staff-exception-note {
            display: grid;
            gap: .25rem;
        }
        .staff-exception-note strong,
        .staff-exception-cost-entry strong,
        .staff-exception-create-head strong {
            color: var(--slate-900);
            font-size: .86rem;
        }
        .staff-exception-edit,
        .staff-exception-cost-entry {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: .5rem;
        }
        .staff-exception-edit textarea {
            grid-column: 1 / -1;
        }
        .staff-exception-edit button {
            justify-self: start;
        }
        .staff-exception-create {
            display: grid;
            gap: .65rem;
            padding: .75rem;
        }
        .staff-exception-create-head {
            display: grid;
            gap: .2rem;
        }
        .staff-exception-create-head span {
            color: var(--slate-500);
            font-size: .8rem;
            line-height: 1.45;
        }
        .staff-exception-form-grid label {
            display: grid;
            gap: .25rem;
        }
        .staff-exception-form-grid label.wide {
            grid-column: 1 / -1;
        }
        .staff-exception-form-grid input,
        .staff-exception-form-grid select,
        .staff-exception-form-grid textarea,
        .staff-exception-edit input,
        .staff-exception-edit select,
        .staff-exception-edit textarea,
        .staff-exception-cost-entry input,
        .staff-exception-cost-entry select,
        .staff-exception-create > textarea {
            width: 100%;
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            padding: .55rem .6rem;
            color: var(--slate-900);
            font-size: .84rem;
            outline: none;
            background: #fff;
        }
        .staff-exception-form-grid textarea,
        .staff-exception-edit textarea,
        .staff-exception-create > textarea {
            resize: vertical;
            min-height: 64px;
        }
        .staff-exception-form-grid input:focus,
        .staff-exception-form-grid select:focus,
        .staff-exception-form-grid textarea:focus,
        .staff-exception-edit input:focus,
        .staff-exception-edit select:focus,
        .staff-exception-edit textarea:focus,
        .staff-exception-cost-entry input:focus,
        .staff-exception-cost-entry select:focus,
        .staff-exception-create > textarea:focus {
            border-color: var(--primary-400);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
        }
        .staff-exception-cost-table {
            overflow-x: auto;
        }
        .staff-exception-cost-table table {
            width: 100%;
            border-collapse: collapse;
            font-size: .8rem;
        }
        .staff-exception-cost-table th,
        .staff-exception-cost-table td {
            border-bottom: 1px solid var(--slate-100);
            padding: .45rem .5rem;
            text-align: left;
            white-space: nowrap;
        }
        .staff-exception-cost-table th {
            color: var(--slate-500);
            background: #f8fafc;
            font-weight: 800;
        }
        .staff-exception-attachments {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
        }
        .staff-exception-attachment-link {
            display: inline-flex;
            align-items: center;
            gap: .32rem;
            max-width: 100%;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .35rem .45rem;
            background: #fff;
            color: var(--slate-700);
            font-size: .78rem;
            text-decoration: none;
        }
        .staff-exception-attachment-link span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 180px;
        }
        .staff-exception-attachment-link em {
            color: var(--slate-500);
            font-size: .72rem;
            font-style: normal;
        }
        .staff-exception-attachment-editor {
            display: grid;
            grid-column: 1 / -1;
            grid-template-columns: minmax(180px, 1fr) auto auto;
            gap: .5rem;
            align-items: center;
        }
        .staff-exception-template-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: .5rem;
            align-items: center;
        }
        .staff-exception-template-row select {
            min-height: 36px;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .45rem .6rem;
            font: inherit;
            font-size: .82rem;
            background: #fff;
        }
        .staff-order-timeline {
            position: relative;
            display: grid;
            gap: .8rem;
        }
        .staff-order-timeline-item {
            display: grid;
            grid-template-columns: 20px 1fr;
            gap: .55rem;
            position: relative;
        }
        .staff-order-timeline-dot {
            width: 12px;
            height: 12px;
            border-radius: 999px;
            background: #0ea5e9;
            margin-top: .25rem;
            box-shadow: 0 0 0 4px #e0f2fe;
        }
        .staff-order-timeline-content strong {
            display: block;
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-order-timeline-content span {
            color: var(--slate-500);
            font-size: .78rem;
        }
        .staff-order-timeline-content p {
            margin: .25rem 0 0;
            color: var(--slate-600);
            font-size: .82rem;
        }
        .staff-order-stage-timeline {
            border-left: 2px solid #cbd5e1;
            margin-left: 8px;
            padding-left: 18px;
            display: grid;
            gap: .85rem;
        }
        .staff-order-stage-item {
            position: relative;
            display: grid;
            gap: .18rem;
        }
        .staff-order-stage-dot {
            position: absolute;
            left: -27px;
            top: .08rem;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            border: 2px solid #94a3b8;
            background: #fff;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .62rem;
        }
        .staff-order-stage-item.done .staff-order-stage-dot {
            background: #16a34a;
            border-color: #16a34a;
        }
        .staff-order-stage-item.current .staff-order-stage-dot {
            background: #2563eb;
            border-color: #2563eb;
            box-shadow: 0 0 0 4px #dbeafe;
        }
        .staff-order-stage-item.exception .staff-order-stage-dot {
            background: #f59e0b;
            border-color: #f59e0b;
            box-shadow: 0 0 0 4px #fef3c7;
        }
        .staff-order-stage-item.pending {
            opacity: .58;
        }
        .staff-order-stage-item.pending .staff-order-stage-content strong,
        .staff-order-stage-item.pending .staff-order-stage-content span {
            color: #94a3b8;
        }
        .staff-order-stage-content strong {
            display: block;
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-order-stage-content span {
            color: var(--slate-500);
            font-size: .78rem;
        }
        .staff-order-stage-content p {
            margin: .25rem 0 0;
            color: var(--slate-600);
            font-size: .82rem;
        }
        .dashboard-order-search-form {
            display: grid;
            grid-template-columns: minmax(110px, 140px) minmax(240px, 1fr) auto;
            align-items: end;
            gap: .75rem;
        }
        .dashboard-order-search-form label {
            color: var(--slate-600);
            font-size: .82rem;
            font-weight: 800;
            padding-bottom: .62rem;
        }
        .dashboard-order-search-form input {
            width: 100%;
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            padding: .72rem .8rem;
            color: var(--slate-900);
            font-size: .9rem;
            outline: none;
        }
        .dashboard-order-search-form input:focus {
            border-color: var(--primary-400);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, .14);
        }
        .dashboard-order-track-empty {
            margin-top: 1rem;
            border: 1px dashed var(--slate-300);
            background: #f8fafc;
            border-radius: 8px;
            padding: 1rem;
            color: var(--slate-500);
            font-size: .88rem;
        }
        .dashboard-order-track-empty.error {
            color: var(--error);
            background: #fff1f2;
            border-color: #fecdd3;
        }
        .dashboard-order-track-result {
            margin-top: 1rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }
        .dashboard-order-track-summary {
            display: grid;
            grid-template-columns: 1.2fr 1.2fr 1fr auto;
            gap: .75rem;
            align-items: center;
            padding: .9rem 1rem;
            background: #f8fafc;
            border-bottom: 1px solid var(--slate-200);
        }
        .dashboard-order-track-summary span {
            display: block;
            color: var(--slate-500);
            font-size: .72rem;
            font-weight: 800;
            margin-bottom: .16rem;
        }
        .dashboard-order-track-summary strong {
            color: var(--slate-900);
            font-size: .9rem;
            word-break: break-word;
        }
        .dashboard-order-track-scroll {
            overflow-x: auto;
            padding: 1.15rem 1rem 1rem;
        }
        .dashboard-order-track-line {
            position: relative;
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(128px, 1fr);
            gap: .75rem;
            min-width: 720px;
            align-items: start;
        }
        .dashboard-order-track-line::before {
            content: '';
            position: absolute;
            left: 48px;
            right: 48px;
            top: 15px;
            height: 2px;
            background: var(--slate-300);
            z-index: 0;
        }
        .dashboard-order-track-node {
            position: relative;
            z-index: 1;
            display: grid;
            justify-items: center;
            gap: .34rem;
            text-align: center;
            color: var(--slate-500);
        }
        .dashboard-order-track-dot {
            width: 30px;
            height: 30px;
            border-radius: 999px;
            border: 2px solid var(--slate-300);
            background: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: .72rem;
            box-shadow: 0 0 0 5px #fff;
        }
        .dashboard-order-track-node.done .dashboard-order-track-dot {
            background: #16a34a;
            border-color: #16a34a;
        }
        .dashboard-order-track-node.current .dashboard-order-track-dot {
            background: var(--primary-600);
            border-color: var(--primary-600);
            box-shadow: 0 0 0 5px #dbeafe;
        }
        .dashboard-order-track-node.warning .dashboard-order-track-dot {
            background: #f59e0b;
            border-color: #f59e0b;
            box-shadow: 0 0 0 5px #fef3c7;
        }
        .dashboard-order-track-node strong {
            color: var(--slate-800);
            font-size: .82rem;
            line-height: 1.35;
            max-width: 136px;
        }
        .dashboard-order-track-node em {
            color: var(--slate-500);
            font-size: .72rem;
            font-style: normal;
            line-height: 1.35;
        }
        .staff-order-event-log {
            margin-top: 1rem;
            display: grid;
            gap: .55rem;
        }
        .staff-order-event-log-fold {
            margin-top: 1rem;
            border: 1px solid var(--slate-100);
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }
        .staff-order-event-log-fold summary {
            cursor: pointer;
            list-style: none;
            padding: .65rem .75rem;
            color: var(--slate-700);
            font-weight: 800;
            font-size: .86rem;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .staff-order-event-log-fold summary::after {
            content: '展开';
            color: var(--slate-500);
            font-size: .76rem;
        }
        .staff-order-event-log-fold[open] summary::after {
            content: '收起';
        }
        .staff-order-event-log-fold summary::-webkit-details-marker { display: none; }
        .staff-order-event-log-fold .staff-order-event-log {
            margin: 0;
            padding: .65rem;
        }
        .staff-order-event-log-title {
            color: var(--slate-700);
            font-weight: 800;
            font-size: .86rem;
        }
        .staff-order-event-log-item {
            border: 1px solid var(--slate-100);
            border-radius: 8px;
            background: #f8fafc;
            padding: .65rem .75rem;
        }
        .staff-order-event-log-item strong {
            display: block;
            color: var(--slate-900);
            font-size: .86rem;
        }
        .staff-order-event-log-item span,
        .staff-order-event-log-item p {
            display: block;
            margin: .2rem 0 0;
            color: var(--slate-500);
            font-size: .78rem;
            line-height: 1.45;
        }
        .staff-trucking-fee-editor {
            margin-top: .8rem;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            background: #f0f9ff;
            padding: .75rem;
            display: grid;
            gap: .65rem;
        }
        .staff-trucking-fee-editor strong {
            display: block;
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-trucking-fee-editor span {
            display: block;
            margin-top: .18rem;
            color: var(--slate-600);
            font-size: .8rem;
            line-height: 1.45;
        }
        .staff-trucking-fee-form {
            display: grid;
            grid-template-columns: minmax(110px, 150px) minmax(180px, 1fr) auto;
            gap: .5rem;
            align-items: center;
        }
        .staff-trucking-fee-form input {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 38px;
            padding: .5rem .65rem;
            font: inherit;
            font-size: .84rem;
            background: #fff;
        }
        .staff-truck-arap-form {
            display: grid;
            gap: .45rem;
        }
        .staff-truck-arap-row {
            display: grid;
            grid-template-columns: 48px 70px minmax(0, 1fr) 86px;
            gap: .45rem;
            align-items: center;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .45rem .5rem;
            background: #fff;
            min-width: 0;
        }
        .staff-truck-arap-row.is-receivable {
            border-color: #bfdbfe;
            background: #eff6ff;
        }
        .staff-truck-arap-row.is-payable {
            border-color: #fed7aa;
            background: #fff7ed;
        }
        .staff-truck-arap-row span {
            margin: 0;
            color: var(--slate-900);
            font-size: .8rem;
            font-weight: 900;
        }
        .staff-truck-arap-row small {
            color: var(--slate-500);
            font-size: .72rem;
            font-weight: 800;
        }
        .staff-truck-arap-row input,
        .staff-truck-arap-row select,
        .staff-truck-arap-note {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 36px;
            padding: .45rem .55rem;
            font: inherit;
            font-size: .82rem;
            background: #fff;
            min-width: 0;
        }
        .staff-truck-arap-row em {
            grid-column: 3 / -1;
            color: var(--slate-500);
            font-style: normal;
            font-size: .78rem;
            line-height: 1.35;
        }
        .staff-domestic-quote-editor {
            border-color: #fed7aa;
            background: #fff7ed;
        }
        .staff-domestic-quote-form {
            display: grid;
            grid-template-columns: repeat(4, minmax(120px, 1fr));
            gap: .5rem;
            align-items: center;
        }
        .staff-domestic-quote-form input {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 38px;
            padding: .5rem .65rem;
            font: inherit;
            font-size: .84rem;
            background: #fff;
        }
        .staff-domestic-quote-form .admin-btn {
            min-height: 38px;
            white-space: nowrap;
        }
        .staff-domestic-price-stack,
        .staff-domestic-quote-form .staff-truck-arap-note,
        .staff-domestic-quote-form .admin-btn {
            grid-column: 1 / -1;
        }
        .staff-foreign-truck-arap-form .admin-btn {
            justify-self: end;
        }
        .staff-operation-info-form {
            display: grid;
            grid-template-columns: repeat(2, minmax(170px, 1fr));
            gap: .5rem;
            margin-top: .55rem;
        }
        .staff-operation-info-form label {
            display: grid;
            gap: .22rem;
            min-width: 0;
        }
        .staff-operation-info-form label.wide {
            grid-column: 1 / -1;
        }
        .staff-operation-info-form span {
            color: var(--slate-500);
            font-size: .75rem;
            font-weight: 800;
        }
        .staff-operation-info-form input,
        .staff-operation-info-form select {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 38px;
            padding: .5rem .65rem;
            font: inherit;
            font-size: .84rem;
            background: #fff;
        }
        .staff-operation-flow {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: .5rem;
            margin: .75rem 0;
        }
        .staff-operation-step {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            padding: .55rem;
            background: #fff;
            display: grid;
            gap: .2rem;
            min-height: 86px;
        }
        .staff-operation-step span {
            color: var(--slate-500);
            font-size: .75rem;
            font-weight: 700;
        }
        .staff-operation-step strong {
            color: var(--slate-700);
            font-size: .88rem;
        }
        .staff-operation-step em,
        .staff-operation-step small {
            color: var(--slate-500);
            font-size: .73rem;
            font-style: normal;
            line-height: 1.35;
        }
        .staff-operation-step.done {
            border-color: rgba(16, 185, 129, .35);
            background: rgba(16, 185, 129, .08);
        }
        .staff-operation-step.active {
            border-color: rgba(59, 130, 246, .35);
            background: rgba(59, 130, 246, .08);
        }
        .staff-operation-step.attention {
            border-color: rgba(245, 158, 11, .4);
            background: rgba(245, 158, 11, .1);
        }
        .staff-operation-cost-drafts {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: var(--slate-50);
            padding: .65rem;
            margin-bottom: .75rem;
            overflow-x: auto;
        }
        .staff-operation-cost-drafts.muted {
            color: var(--slate-500);
            font-size: .82rem;
        }
        .staff-operation-cost-drafts strong {
            display: block;
            color: var(--slate-700);
            margin-bottom: .45rem;
        }
        .staff-operation-cost-drafts table {
            width: 100%;
            border-collapse: collapse;
            min-width: 520px;
            background: #fff;
        }
        .staff-operation-cost-drafts th,
        .staff-operation-cost-drafts td {
            border-bottom: 1px solid var(--slate-100);
            padding: .45rem .5rem;
            text-align: left;
            font-size: .78rem;
            vertical-align: top;
        }
        .staff-operation-cost-drafts th {
            color: var(--slate-500);
            font-weight: 800;
            background: var(--slate-50);
        }
        .staff-booking-lock-fields {
            border: 1px solid #bfdbfe;
            border-radius: 8px;
            background: #eff6ff;
            padding: .7rem;
            display: grid;
            gap: .5rem;
        }
        .staff-booking-lock-fields > strong {
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-booking-lock-fields > span {
            color: var(--slate-600);
            font-size: .78rem;
            line-height: 1.45;
        }
        .staff-booking-ai-tools {
            display: grid;
            grid-template-columns: minmax(180px, 1fr) auto;
            gap: .45rem;
            align-items: center;
            border: 1px dashed #93c5fd;
            border-radius: 8px;
            background: #fff;
            padding: .55rem;
        }
        .staff-booking-ai-tools input[type="file"] {
            min-width: 0;
            font-size: .8rem;
        }
        .staff-booking-ai-tools > span {
            grid-column: 1 / -1;
            color: var(--slate-500);
            font-size: .75rem;
            line-height: 1.4;
        }
        .staff-booking-ai-preview {
            grid-column: 1 / -1;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #f8fafc;
            padding: .65rem;
            display: grid;
            gap: .6rem;
        }
        .staff-booking-ai-preview[hidden] {
            display: none;
        }
        .staff-booking-ai-preview-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: .75rem;
            color: var(--slate-700);
            font-size: .82rem;
        }
        .staff-booking-ai-preview-head strong {
            color: var(--slate-900);
            font-size: .88rem;
        }
        .staff-booking-ai-preview-head span {
            color: var(--primary-700);
            font-weight: 800;
            white-space: nowrap;
        }
        .staff-booking-ai-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .45rem;
        }
        .staff-booking-ai-preview-grid > div {
            border: 1px solid var(--slate-100);
            border-radius: 8px;
            background: #fff;
            padding: .45rem .5rem;
            min-width: 0;
        }
        .staff-booking-ai-preview-grid span,
        .staff-booking-ai-preview-grid small {
            display: block;
            color: var(--slate-500);
            font-size: .72rem;
            line-height: 1.35;
        }
        .staff-booking-ai-preview-grid strong {
            display: block;
            color: var(--slate-900);
            font-size: .84rem;
            line-height: 1.35;
            margin-top: .16rem;
            word-break: break-word;
        }
        .staff-booking-ai-preview-grid small {
            margin-top: .18rem;
        }
        .staff-booking-ai-preview-warnings {
            border: 1px solid #fed7aa;
            border-radius: 8px;
            background: #fff7ed;
            color: #9a3412;
            padding: .48rem .55rem;
            font-size: .78rem;
            line-height: 1.45;
        }
        .staff-booking-ai-preview-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .6rem;
            flex-wrap: wrap;
        }
        .staff-booking-ai-preview-actions span {
            color: var(--slate-500);
            font-size: .74rem;
            line-height: 1.35;
        }
        .staff-hidden-file-input {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }
        .staff-booking-lock-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: .5rem;
        }
        .staff-booking-lock-field {
            display: grid;
            gap: .26rem;
            min-width: 0;
        }
        .staff-booking-lock-field span {
            font-size: .74rem;
            font-weight: 800;
            color: var(--slate-600);
        }
        .staff-booking-lock-grid input,
        .staff-booking-lock-grid select {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 36px;
            padding: .45rem .55rem;
            font: inherit;
            font-size: .82rem;
            background: #fff;
            min-width: 0;
        }
        .staff-order-file-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: .75rem;
            border: 1px solid var(--slate-100);
            border-radius: 8px;
            padding: .7rem;
            margin-bottom: .55rem;
            background: #fff;
        }
        .staff-order-file-row strong {
            display: block;
            color: var(--slate-900);
            font-size: .88rem;
            word-break: break-all;
        }
        .staff-order-file-row span,
        .staff-order-file-row p {
            display: block;
            margin: .2rem 0 0;
            color: var(--slate-500);
            font-size: .78rem;
        }
        .staff-action-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: .75rem;
            align-items: start;
        }
        .staff-action-panel,
        .staff-attachment-upload,
        .staff-attachment-review {
            border: 1px solid var(--slate-100);
            background: #f8fafc;
            border-radius: 8px;
            padding: .7rem;
            display: grid;
            gap: .5rem;
        }
        .staff-action-panel strong {
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-action-panel input,
        .staff-action-panel select,
        .staff-action-panel textarea,
        .staff-attachment-upload input,
        .staff-attachment-upload select,
        .staff-attachment-review input,
        .staff-attachment-review select,
        .staff-structured-grid input,
        .staff-cost-table input,
        .staff-cost-table select,
        .staff-cost-add-row input,
        .staff-cost-add-row select {
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            min-height: 36px;
            padding: .45rem .55rem;
            font: inherit;
            font-size: .82rem;
            background: #fff;
            min-width: 0;
        }
        .staff-inline-check {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            color: var(--slate-600);
            font-size: .82rem;
        }
        .staff-attachment-quick-actions {
            display: flex;
            gap: .45rem;
            flex-wrap: wrap;
        }
        .staff-row-actions {
            display: flex;
            gap: .45rem;
            flex-wrap: wrap;
        }
        .staff-action-hint {
            color: #b91c1c;
            font-size: .78rem;
        }
        .staff-structured-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .5rem;
            margin-bottom: .65rem;
        }
        .staff-cost-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: .6rem;
            margin-bottom: .75rem;
        }
        .staff-cost-summary-card {
            border: 1px solid #bae6fd;
            background: #f0f9ff;
            border-radius: 8px;
            padding: .65rem;
            display: grid;
            gap: .2rem;
        }
        .staff-cost-summary-card span {
            color: var(--slate-500);
            font-size: .75rem;
        }
        .staff-cost-summary-card strong,
        .staff-cost-summary-card em {
            color: var(--slate-900);
            font-size: .86rem;
            font-style: normal;
        }
        .staff-cost-module {
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            margin-top: .7rem;
            overflow: hidden;
            background: #fff;
        }
        .staff-cost-module summary {
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            gap: .75rem;
            padding: .72rem .85rem;
            font-weight: 800;
            color: var(--slate-800);
            background: #f8fafc;
        }
        .staff-cost-module summary::-webkit-details-marker { display: none; }
        .staff-cost-module small {
            color: var(--slate-500);
            font-weight: 700;
        }
        .staff-cost-module-body {
            padding: .75rem;
        }
        .staff-cost-hint {
            color: var(--slate-500);
            font-size: .8rem;
            margin-bottom: .55rem;
        }
        .staff-cost-table-wrap {
            overflow-x: auto;
        }
        .staff-cost-table {
            width: 100%;
            min-width: 760px;
            border-collapse: collapse;
            table-layout: fixed;
            font-size: .82rem;
        }
        .staff-cost-col-name { width: 18%; }
        .staff-cost-col-agent { width: 23%; }
        .staff-cost-col-flow { width: 8%; }
        .staff-cost-col-party { width: 24%; }
        .staff-cost-col-amount { width: 24%; }
        .staff-cost-col-currency { width: 10%; }
        .staff-cost-col-side { width: 30%; }
        .staff-cost-col-margin { width: 10%; }
        .staff-cost-col-actions { width: 10%; }
        .staff-cost-table th,
        .staff-cost-table td {
            border-bottom: 1px solid var(--slate-100);
            padding: .45rem;
            text-align: left;
            vertical-align: middle;
        }
        .staff-cost-table th {
            color: var(--slate-500);
            font-weight: 800;
            background: #f8fafc;
        }
        .staff-cost-table input,
        .staff-cost-table select {
            width: 100%;
            box-sizing: border-box;
        }
        .staff-cost-table td:last-child {
            white-space: nowrap;
        }
        .staff-cost-table td:last-child .admin-btn {
            width: 34px;
            min-width: 34px;
            height: 34px;
            padding: 0;
            justify-content: center;
        }
        .staff-cost-money-edit {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 74px;
            gap: .35rem;
            align-items: center;
        }
        .staff-cost-split-row.is-receivable td {
            background: #f8fbff;
        }
        .staff-cost-split-row.is-payable td {
            background: #fffaf4;
        }
        .staff-cost-split-row.is-payable td {
            border-top: 1px dashed #e2e8f0;
        }
        .staff-cost-flow-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            min-height: 26px;
            padding: .12rem .4rem;
            border-radius: 999px;
            font-size: .76rem;
            font-weight: 900;
            white-space: nowrap;
        }
        .staff-cost-flow-pill.receivable {
            color: #075985;
            background: #e0f2fe;
        }
        .staff-cost-flow-pill.payable {
            color: #b45309;
            background: #ffedd5;
        }
        .staff-cost-party-label {
            color: var(--slate-700);
            font-weight: 800;
            line-height: 1.25;
        }
        .staff-cost-side-stack {
            display: grid;
            gap: .35rem;
            min-width: 0;
        }
        .staff-cost-side-row {
            display: grid;
            grid-template-columns: 42px minmax(96px, 1fr) 76px;
            gap: .35rem;
            align-items: center;
            padding: .35rem;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            background: #f8fafc;
        }
        .staff-cost-side-row span,
        .staff-cost-add-stack span {
            color: var(--slate-600);
            font-size: .76rem;
            font-weight: 800;
            white-space: nowrap;
        }
        .staff-cost-side-row.is-receivable {
            border-color: #bae6fd;
            background: #f0f9ff;
        }
        .staff-cost-side-row.is-payable {
            border-color: #fed7aa;
            background: #fff7ed;
        }
        .staff-cost-add-row {
            display: grid;
            grid-template-columns: minmax(150px, 18%) minmax(520px, 1fr) minmax(104px, 12%);
            gap: 0;
            margin-top: .65rem;
            align-items: stretch;
            min-width: 760px;
            border: 1px solid var(--slate-200);
            border-radius: 8px;
            overflow: hidden;
        }
        .staff-cost-add-row > input,
        .staff-cost-add-row > select,
        .staff-cost-add-row > button {
            height: auto;
            min-height: 82px;
            border-radius: 0;
            border: 0;
            border-right: 1px solid var(--slate-200);
        }
        .staff-cost-add-stack {
            display: grid;
            border-right: 1px solid var(--slate-200);
            background: #f8fafc;
        }
        .staff-cost-add-stack label {
            display: grid;
            grid-template-columns: 42px minmax(150px, .9fr) minmax(90px, 1fr) 76px;
            gap: .35rem;
            align-items: center;
            padding: .35rem .45rem;
            min-width: 0;
        }
        .staff-cost-add-stack label:first-child {
            border-bottom: 1px solid var(--slate-200);
            background: #f0f9ff;
        }
        .staff-cost-add-stack label:last-child {
            background: #fff7ed;
        }
        .staff-cost-add-stack input,
        .staff-cost-add-stack select {
            height: 34px;
            min-height: 34px;
            border: 1px solid var(--slate-200);
            border-radius: 6px;
        }
        .staff-cost-add-row > button {
            border-right: 0;
            justify-content: center;
        }
        .staff-quote-bill-card {
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            border-radius: 8px;
            padding: .85rem;
            margin: .75rem 0;
            display: grid;
            gap: .65rem;
        }
        .staff-quote-bill-head {
            display: grid;
            gap: .18rem;
        }
        .staff-quote-bill-head strong {
            color: var(--slate-900);
            font-size: .94rem;
        }
        .staff-quote-bill-head span,
        .staff-quote-bill-line span {
            color: var(--slate-500);
            font-size: .78rem;
        }
        .staff-quote-bill-lines {
            display: grid;
            gap: .45rem;
        }
        .staff-quote-bill-line {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: .75rem;
            align-items: center;
            border: 1px solid rgba(147, 197, 253, .65);
            background: #fff;
            border-radius: 8px;
            padding: .58rem .65rem;
        }
        .staff-quote-bill-line div {
            min-width: 0;
            display: grid;
            gap: .16rem;
        }
        .staff-quote-bill-line strong,
        .staff-quote-bill-line b {
            color: var(--slate-900);
            font-size: .86rem;
        }
        .staff-quote-bill-line b {
            white-space: nowrap;
        }
        .staff-quote-bill-total {
            display: flex;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: .45rem;
        }
        .staff-quote-bill-total span {
            background: #fff;
            border: 1px solid rgba(147, 197, 253, .65);
            border-radius: 8px;
            padding: .4rem .55rem;
            color: var(--slate-600);
            font-size: .8rem;
        }
        .staff-quote-bill-total strong {
            color: var(--slate-900);
        }
        .staff-adminops-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: .75rem;
            margin-bottom: .85rem;
        }
        .staff-adminops-panel {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .75rem;
        }
        .staff-adminops-head {
            display: flex;
            justify-content: space-between;
            gap: .65rem;
            flex-wrap: wrap;
            margin-bottom: .65rem;
        }
        .staff-adminops-head strong {
            color: var(--slate-900);
        }
        .staff-adminops-head span,
        .staff-adminops-list {
            color: var(--slate-500);
            font-size: .82rem;
        }
        .staff-adminops-list {
            display: grid;
            gap: .45rem;
            line-height: 1.45;
        }
        .staff-adminops-toolbar {
            display: flex;
            justify-content: space-between;
            gap: .85rem;
            flex-wrap: wrap;
            margin-bottom: .9rem;
        }
        .staff-adminops-tabs {
            display: flex;
            gap: .5rem;
            flex-wrap: wrap;
        }
        .staff-adminops-tab {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            padding: .42rem .7rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            color: var(--slate-600);
            font-size: .82rem;
            font-weight: 800;
        }
        .staff-adminops-tab.active {
            background: var(--staff-active);
            border-color: var(--staff-active-border);
            color: var(--staff-accent);
        }
        .staff-adminops-toolbar-actions {
            display: flex;
            align-items: center;
            gap: .5rem;
        }
        .staff-adminops-content {
            display: grid;
            gap: 1rem;
        }
        .staff-adminops-form {
            display: grid;
            gap: .85rem;
            padding: .75rem;
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface-soft);
            margin-bottom: .75rem;
        }
        .staff-adminops-form-head {
            display: flex;
            justify-content: space-between;
            gap: .5rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .staff-adminops-form-head strong {
            color: var(--slate-900);
        }
        .staff-adminops-form-head span {
            color: var(--slate-500);
            font-size: .8rem;
        }
        .staff-adminops-form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: .7rem;
        }
        .staff-adminops-form-grid input,
        .staff-adminops-form-grid select,
        .staff-adminops-form-grid textarea {
            border-color: var(--staff-line-strong);
            border-radius: 8px;
            background: var(--staff-surface);
        }

        .staff-adminops-field {
            display: grid;
            gap: .24rem;
            min-width: 0;
            margin: 0;
        }

        .staff-adminops-field span {
            color: var(--slate-600);
            font-size: .75rem;
            font-weight: 800;
            line-height: 1.2;
        }

        .staff-adminops-field-wide {
            grid-column: span 2;
        }

        .staff-adminops-table-wrap {
            border: 1px solid var(--staff-line);
            border-radius: 8px;
            background: var(--staff-surface);
            overflow: auto;
        }

        .staff-adminops-contract-status-row span {
            border-radius: 6px;
            width: 100%;
            min-width: 0;
        }
        .staff-adminops-form-grid textarea {
            grid-column: 1 / -1;
            resize: vertical;
            min-height: 120px;
        }
        .staff-adminops-form-actions {
            display: flex;
            gap: .5rem;
            flex-wrap: wrap;
        }
        .staff-adminops-assignment-panel {
            margin: 0 .72rem .58rem;
            border: 1px solid var(--staff-line);
            background: #fff;
            border-radius: 8px;
            padding: .72rem;
            display: grid;
            gap: .6rem;
        }
        .staff-adminops-assignment-head {
            display: flex;
            justify-content: space-between;
            gap: .65rem;
            flex-wrap: wrap;
        }
        .staff-adminops-assignment-head strong {
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-adminops-assignment-head span,
        .staff-adminops-assignment-grid label span {
            color: var(--slate-500);
            font-size: .78rem;
        }
        .staff-adminops-assignment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: .55rem;
        }
        .staff-adminops-assignment-grid label {
            display: grid;
            gap: .25rem;
            min-width: 0;
        }
        .staff-adminops-assignment-grid select,
        .staff-adminops-assignment-grid input,
        .staff-adminops-assignment-panel textarea {
            width: 100%;
            border-color: var(--staff-line-strong);
            border-radius: 8px;
            background: var(--staff-surface);
            box-sizing: border-box;
        }
        .staff-adminops-assignment-actions {
            display: flex;
            gap: .5rem;
            flex-wrap: wrap;
        }
        .staff-adminops-current-assignees {
            margin: 0 .72rem .58rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .5rem;
        }
        .staff-adminops-current-assignees div {
            border: 1px solid var(--staff-line);
            background: var(--staff-surface-soft);
            border-radius: 8px;
            padding: .5rem .58rem;
            display: grid;
            gap: .18rem;
        }
        .staff-adminops-current-assignees span {
            color: var(--slate-500);
            font-size: .76rem;
        }
        .staff-adminops-current-assignees strong {
            color: var(--slate-900);
            font-size: .86rem;
            word-break: break-word;
        }
        .staff-adminops-alerts {
            border: 1px solid #dbeafe;
            background: #f8fbff;
            border-radius: 8px;
            padding: .55rem .7rem .7rem;
            margin-bottom: .85rem;
        }
        .staff-adminops-alerts > summary {
            display: flex;
            justify-content: space-between;
            gap: .6rem;
            align-items: center;
            cursor: pointer;
            list-style: none;
        }
        .staff-adminops-alerts > summary::-webkit-details-marker {
            display: none;
        }
        .staff-adminops-alerts > summary strong {
            color: var(--slate-900);
        }
        .staff-adminops-alerts > summary span {
            color: var(--slate-500);
            font-size: .82rem;
        }
        .staff-adminops-alerts .admin-stat-grid {
            margin-top: .7rem;
        }
        .staff-adminops-alert-card {
            appearance: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            font: inherit;
        }
        .staff-adminops-alert-card.active {
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
        }
        .staff-adminops-alert-card:hover {
            transform: translateY(-1px);
        }
        .staff-adminops-note-row {
            display: flex;
            gap: .45rem;
            align-items: center;
        }
        .staff-adminops-note-row input {
            width: 100%;
            min-width: 0;
            flex: 1 1 160px;
        }
        .staff-adminops-note-row select {
            width: auto;
            min-width: 96px;
            flex: 0 0 96px;
        }
        .staff-adminops-action-row {
            display: flex;
            gap: .35rem;
            flex-wrap: nowrap;
            align-items: center;
            overflow-x: auto;
        }
        .staff-adminops-action-row .admin-btn {
            white-space: nowrap;
            padding: .5rem .7rem;
            flex: 0 0 auto;
        }
        .staff-adminops-table-wrap {
            overflow-x: auto;
        }
        .staff-adminops-two-col {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .9rem;
        }
        .staff-adminops-notice-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
            gap: .9rem;
        }
        .staff-adminops-attendance-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
            gap: .9rem;
        }
        .staff-adminops-notice-feed,
        .staff-adminops-notice-history {
            display: grid;
            gap: .55rem;
        }
        .staff-adminops-notice-feed {
            max-height: 520px;
            overflow: auto;
            padding-right: .15rem;
        }
        .staff-adminops-notice-item,
        .staff-adminops-notice-history-item {
            border: 1px solid var(--staff-line);
            background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
            border-radius: 8px;
            padding: .75rem .8rem;
        }
        .staff-adminops-notice-item {
            width: 100%;
            text-align: left;
            cursor: pointer;
            font: inherit;
            transition: all .18s ease;
        }
        .staff-adminops-notice-item:hover {
            border-color: var(--staff-active-border);
            box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
            transform: translateY(-1px);
        }
        .staff-adminops-notice-item-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: .55rem;
        }
        .staff-adminops-notice-item-top strong {
            color: var(--slate-900);
            font-size: .9rem;
        }
        .staff-adminops-notice-badges {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .staff-adminops-notice-item-text {
            margin-top: .35rem;
            color: var(--slate-600);
            font-size: .82rem;
            line-height: 1.55;
        }
        .staff-adminops-notice-item-meta {
            margin-top: .35rem;
            display: flex;
            justify-content: space-between;
            gap: .5rem;
            flex-wrap: wrap;
            color: var(--slate-400);
            font-size: .74rem;
        }
        .staff-adminops-gate-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: .75rem;
        }
        .staff-adminops-gate-card {
            border: 1px solid var(--staff-line);
            background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
            border-radius: 8px;
            padding: .75rem;
            display: grid;
            gap: .35rem;
        }
        .staff-adminops-partner-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
            gap: .9rem;
        }
        .staff-adminops-task-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
            gap: .9rem;
        }
        .staff-adminops-partner-link {
            border: none;
            background: none;
            color: var(--primary-700);
            font: inherit;
            font-weight: 700;
            cursor: pointer;
            padding: 0;
            text-align: left;
        }
        .staff-adminops-partner-link:hover {
            text-decoration: underline;
        }
        .staff-adminops-contract-table .admin-btn {
            padding: .5rem .65rem;
            font-size: .8rem;
        }
        .staff-adminops-route-cell {
            max-width: 200px;
            white-space: normal;
            word-break: break-word;
        }
        .staff-adminops-contract-table th,
        .staff-adminops-contract-table td {
            vertical-align: middle;
        }
        .staff-adminops-contract-table td:nth-child(10) {
            min-width: 190px;
        }
        .staff-adminops-contract-table td:nth-child(11) {
            min-width: 320px;
        }
        .staff-adminops-contract-cell {
            display: flex;
            flex-direction: column;
            gap: .25rem;
            min-width: 0;
        }
        .staff-adminops-contract-status-row {
            display: flex;
            align-items: center;
            gap: .4rem;
            flex-wrap: nowrap;
            white-space: nowrap;
        }
        .staff-adminops-contract-status-row span {
            color: var(--slate-500);
            font-size: .78rem;
            font-weight: 700;
        }
        .staff-adminops-contract-meta {
            color: var(--slate-500);
            font-size: .78rem;
            line-height: 1.25;
        }
        .staff-order-detail-empty {
            padding: .9rem;
            border: 1px dashed var(--slate-200);
            border-radius: 8px;
            color: var(--slate-500);
            background: #f8fafc;
            font-size: .86rem;
        }
        @media (max-width: 760px) {
            .staff-order-detail-grid { grid-template-columns: 1fr; }
            .staff-operation-searchbar,
            .staff-operation-info-form { grid-template-columns: 1fr; }
            .customer-dashboard-detail-grid { grid-template-columns: 1fr; }
            .dashboard-order-search-form { grid-template-columns: 1fr; }
            .dashboard-order-search-form label { padding-bottom: 0; }
            .dashboard-order-search-form .admin-btn { width: 100%; justify-content: center; }
            .dashboard-order-track-summary { grid-template-columns: 1fr; }
            .staff-order-file-row { flex-direction: column; }
            .staff-order-detail-actions .admin-btn { width: 100%; justify-content: center; }
            .staff-booking-ai-tools { grid-template-columns: 1fr; }
            .staff-booking-ai-preview-head { align-items: flex-start; flex-direction: column; gap: .25rem; }
            .staff-booking-ai-preview-actions .admin-btn { width: 100%; justify-content: center; }
            .staff-trucking-fee-form,
            .staff-domestic-quote-form,
            .staff-order-finance-lens { grid-template-columns: 1fr; }
            .staff-truck-arap-row { grid-template-columns: 42px 1fr; }
            .staff-truck-arap-row input,
            .staff-truck-arap-row select,
            .staff-truck-arap-row em { grid-column: 1 / -1; }
            .staff-exception-summary,
            .staff-exception-form-grid,
            .staff-exception-edit,
            .staff-exception-cost-entry,
            .staff-exception-attachment-editor { grid-template-columns: 1fr; }
            .staff-exception-card summary {
                align-items: flex-start;
                flex-direction: column;
                gap: .25rem;
            }
            .staff-order-basic-fold summary { grid-template-columns: minmax(0, 1fr) auto; }
            .staff-order-basic-fold summary strong,
            .staff-order-basic-fold summary span { grid-column: 1; }
            .staff-order-basic-fold summary::after { grid-column: 2; grid-row: 1 / span 2; }
            .staff-cost-add-row {
                grid-template-columns: 1fr;
                min-width: 0;
            }
            .staff-cost-add-row > input,
            .staff-cost-add-row > select,
            .staff-cost-add-row > button,
            .staff-cost-add-stack {
                min-height: 0;
                border-right: 0;
                border-bottom: 1px solid var(--slate-200);
            }
            .staff-cost-add-row > button {
                min-height: 42px;
                border-bottom: 0;
            }
            .staff-cost-add-stack label {
                grid-template-columns: 42px minmax(110px, .9fr) minmax(0, 1fr) 76px;
            }
            .staff-finance-expense-grid { grid-template-columns: 1fr; }
            .staff-adminops-two-col,
            .staff-adminops-notice-grid,
            .staff-adminops-attendance-grid,
            .staff-adminops-partner-grid,
            .staff-adminops-task-grid { grid-template-columns: 1fr; }
        }
        .ai-consent-btn-primary.enabled:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(14,165,233,.35)}
        .ai-consent-btn-secondary{background:#f0f0f0;color:#666}
        .ai-consent-btn-secondary:hover{background:#e0e0e0}
        .ai-consent-link{font-size:12px;color:#1890ff;text-decoration:underline;cursor:pointer}

        /* ===== AUTH MODAL (登录/注册) ===== */
        .auth-overlay{position:fixed;inset:0;background:linear-gradient(165deg,var(--slate-900) 0%,var(--primary-900) 100%);z-index:10003;display:none;align-items:center;justify-content:center;padding:1.5rem}
        .auth-overlay.active{display:flex}
        .auth-container{background: linear-gradient(180deg, #ffffff 0%, #f3fbff 60%, #ecfeff 100%);border-radius:var(--radius-2xl);padding:2.5rem;width:100%;max-width:440px;box-shadow:var(--shadow-2xl);animation:fadeInUp .4s ease;position:relative}
        .auth-close{position:absolute;top:1.25rem;right:1.25rem;width:36px;height:36px;border-radius:50%;border:none;background:var(--slate-100);color:var(--slate-500);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}
        .auth-close:hover{background:var(--slate-200);color:var(--slate-800)}
        .auth-tabs{display:flex;gap:0;margin-bottom:2rem;border-bottom:2px solid var(--slate-100)}
        .auth-tab{flex:1;padding:.875rem;text-align:center;font-size:1rem;font-weight:600;cursor:pointer;border:none;background:none;color:var(--slate-400);border-bottom:2px solid transparent;margin-bottom:-2px;transition:all var(--transition-fast)}
        .auth-tab.active{color: var(--primary-700);border-bottom-color:var(--primary-500)}
        .auth-panel{display:none}
        .auth-panel.active{display:block}
        .auth-footer{text-align:center;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--slate-100);font-size:.875rem;color:var(--slate-500)}
        .auth-footer a{color: var(--primary-700);font-weight:600;cursor:pointer;text-decoration:none}
        .auth-footer a:hover{text-decoration:underline}
        .auth-error{color:var(--error);font-size:.8125rem;margin-top:-.5rem;margin-bottom:.75rem;display:none}
        .auth-error.show{display:block}
        .auth-remember-row{display:flex;justify-content:space-between;gap:.75rem;margin:-.25rem 0 .9rem;flex-wrap:wrap}
        .auth-remember-row label{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;color:var(--slate-500);cursor:pointer;user-select:none}
        .auth-remember-row input{width:14px;height:14px;accent-color:var(--primary-600)}
        .auth-header-title{font-size:1.25rem;font-weight:700;color:var(--slate-800);margin-bottom:1.5rem;text-align:center}
        .auth-role-hint{font-size:.8125rem;color:var(--slate-400);cursor:pointer;user-select:none;transition:color var(--transition-fast)}
        .auth-role-hint:hover{color:var(--slate-600)}
        .nav-user{position:relative;display:inline-flex}
        .nav-user-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border:1.5px solid rgba(255,255,255,.35);border-radius:var(--radius-md);font-weight:500;font-size:.9375rem;color:rgba(255,255,255,.95);cursor:pointer;background:none;transition:all var(--transition-fast)}
        .navbar.scrolled .nav-user-btn{border-color:var(--slate-300);color:var(--slate-600)}
        .nav-user-btn:hover{background:rgba(255,255,255,.12)}
        .navbar.scrolled .nav-user-btn:hover{background:var(--slate-100)}
        .nav-user-dropdown{position:absolute;top:100%;right:0;margin-top:.5rem;background: linear-gradient(180deg, #ffffff 0%, #f3fbff 60%, #ecfeff 100%);border-radius:var(--radius-md);box-shadow:var(--shadow-xl);min-width:180px;overflow:hidden;display:none;z-index:1001}
        .nav-user-dropdown.show{display:block}
        .nav-user-dropdown .dropdown-header{padding:1rem;border-bottom:1px solid var(--slate-100)}
        .nav-user-dropdown .dropdown-header .name{font-weight:700;color:var(--slate-800);font-size:.9375rem}
        .nav-user-dropdown .dropdown-header .role{font-size:.75rem;color:var(--slate-500);margin-top:.125rem}
        .nav-user-dropdown a,.nav-user-dropdown button{display:flex;align-items:center;gap:.625rem;width:100%;padding:.75rem 1rem;border:none;background:none;font-size:.875rem;color:var(--slate-600);cursor:pointer;text-decoration:none;text-align:left;transition:background var(--transition-fast)}
        .nav-user-dropdown a:hover,.nav-user-dropdown button:hover{background:var(--slate-50);color:var(--slate-800)}
        .nav-user-dropdown button.logout-item{color:var(--error)}
        .nav-user-dropdown button.logout-item:hover{background:#fef2f2}
.staff-document-card.is-returned {
    border-color: #fda4af;
    background: linear-gradient(180deg, #fff 0%, var(--staff-danger-bg) 100%);
}

.staff-document-return-list {
    display: grid;
    gap: .85rem;
}

.staff-document-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    margin: 0 0 .9rem;
    padding: .85rem .95rem;
    border: 1px solid #fda4af;
    border-radius: 8px;
    background: var(--staff-danger-bg);
    color: var(--staff-danger-text);
}

.staff-document-alert strong,
.staff-document-alert span {
    display: block;
}

.staff-document-alert strong {
    font-size: .95rem;
}

.staff-document-alert span {
    margin-top: .18rem;
    font-size: .82rem;
    color: var(--staff-danger-text);
}

.staff-document-alert .admin-btn:disabled {
    opacity: .7;
    cursor: default;
}

.staff-document-filters {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .85rem;
    padding: .7rem .75rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface);
}

.staff-document-search {
    position: relative;
    flex: 1 1 320px;
    min-width: 220px;
}

.staff-document-search i {
    position: absolute;
    left: .7rem;
    top: 50%;
    color: var(--slate-400);
    transform: translateY(-50%);
    pointer-events: none;
}

.staff-document-search input,
.staff-document-filters select {
    width: 100%;
    height: 38px;
    border: 1px solid var(--staff-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--slate-800);
    font: inherit;
    font-size: .86rem;
}

.staff-document-search input:focus,
.staff-document-filters select:focus,
.staff-document-review-grid input:focus,
.staff-document-review-row select:focus,
.staff-document-note textarea:focus {
    outline: none;
    border-color: var(--staff-active-border);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.staff-document-search input {
    padding: 0 .75rem 0 2rem;
}

.staff-document-filters select {
    flex: 0 0 150px;
    padding: 0 .65rem;
}

.staff-document-filters > span {
    margin-left: auto;
    color: var(--slate-500);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.staff-document-return {
    margin: .75rem 0;
    padding: .65rem .8rem;
    border: 1px solid #fda4af;
    border-radius: 8px;
    background: var(--staff-danger-bg);
    color: var(--staff-danger-text);
    font-size: .86rem;
    font-weight: 700;
}

.staff-document-waiting {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .75rem 0;
    padding: .65rem .8rem;
    border: 1px solid #facc15;
    border-radius: 8px;
    background: var(--staff-warn-bg);
    color: var(--staff-warn-text);
    font-size: .86rem;
    font-weight: 700;
}

.staff-document-flowline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: .7rem 0 .55rem;
}

.staff-document-flow-step {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 34px;
    padding: .4rem .45rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface-soft);
    color: var(--slate-500);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.staff-document-flow-step i {
    flex: 0 0 auto;
    font-size: .72rem;
}

.staff-document-flow-step span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-document-flow-step.active {
    border-color: #93c5fd;
    background: var(--staff-info-bg);
    color: var(--staff-accent);
}

.staff-document-flow-step.done {
    border-color: #86efac;
    background: var(--staff-ok-bg);
    color: var(--staff-ok-text);
}

.staff-document-next-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    margin: .75rem 0;
    padding: .65rem .75rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface-soft);
}

.staff-document-next-step > i {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--staff-info-bg);
    color: var(--staff-accent);
}

.staff-document-next-step strong,
.staff-document-next-step span {
    display: block;
}

.staff-document-next-step strong {
    color: var(--slate-900);
    font-size: .88rem;
}

.staff-document-next-step span {
    margin-top: .12rem;
    color: var(--slate-500);
    font-size: .8rem;
}

.staff-document-next-step.rose {
    border-color: #fda4af;
    background: var(--staff-danger-bg);
}

.staff-document-next-step.rose > i {
    background: #ffe4e6;
    color: var(--staff-danger-text);
}

.staff-document-next-step.amber {
    border-color: #facc15;
    background: var(--staff-warn-bg);
}

.staff-document-next-step.amber > i {
    background: #fef3c7;
    color: var(--staff-warn-text);
}

.staff-document-next-step.green {
    border-color: #86efac;
    background: var(--staff-ok-bg);
}

.staff-document-next-step.green > i {
    background: #dcfce7;
    color: var(--staff-ok-text);
}

.staff-document-queue-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 .85rem;
    padding: .75rem .85rem;
    border: 1px solid #facc15;
    border-radius: 8px;
    background: var(--staff-warn-bg);
    color: var(--staff-warn-text);
}

.staff-document-queue-note.green {
    border-color: #86efac;
    background: var(--staff-ok-bg);
    color: var(--staff-ok-text);
}

.staff-document-queue-note strong,
.staff-document-queue-note span {
    display: block;
}

.staff-document-queue-note span {
    color: var(--slate-600);
    font-size: .82rem;
    margin-top: .12rem;
}

.staff-document-card .staff-workbench-order-actions .admin-btn:disabled {
    opacity: .68;
    cursor: not-allowed;
}

.staff-document-stat-card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.staff-document-stat-card:hover,
.staff-document-stat-card:focus-visible {
    border-color: rgba(14, 165, 233, .38);
    box-shadow: 0 14px 34px rgba(14, 165, 233, .12);
    transform: translateY(-1px);
}

.staff-cs-stat-card.active {
    border-color: rgba(14, 165, 233, .58);
    background: linear-gradient(180deg, rgba(239, 246, 255, .96), #fff);
    box-shadow: 0 14px 34px rgba(14, 165, 233, .14);
}

.staff-document-compact-card {
    padding: 0;
    overflow: hidden;
}

.staff-document-compact-card::before {
    top: 0;
    bottom: 0;
}

.staff-document-compact-summary {
    list-style: none;
    cursor: pointer;
    min-height: 78px;
    padding: .78rem 1rem .78rem 1.1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.staff-document-compact-summary::-webkit-details-marker {
    display: none;
}

.staff-document-compact-summary::after {
    content: '展开';
    flex: 0 0 auto;
    color: var(--slate-500);
    font-size: .74rem;
    font-weight: 800;
}

.staff-document-compact-card[open] .staff-document-compact-summary::after {
    content: '收起';
}

.staff-document-compact-summary .staff-workbench-order-no {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.staff-document-summary-main {
    display: grid;
    min-width: 0;
    gap: .46rem;
    flex: 1 1 auto;
}

.staff-document-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    color: var(--slate-500);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
}

.staff-document-summary-meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    max-width: 100%;
}

.staff-document-summary-meta i {
    color: var(--staff-primary);
    opacity: .72;
}

.staff-document-compact-summary .staff-workbench-badges {
    margin-left: .25rem;
    flex-wrap: nowrap;
}

.staff-document-compact-body {
    padding: 0 1rem 1rem 1.1rem;
    border-top: 1px solid var(--staff-line);
}

.staff-document-compact-body .staff-workbench-meta {
    margin-top: .75rem;
}

.staff-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .42rem;
    margin-top: .58rem;
}

.staff-document-grid > div,
.staff-document-sales-card .staff-workbench-meta,
.staff-document-partners .staff-cs-tool-head {
    min-width: 0;
}

.staff-document-grid > div {
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface-soft);
    padding: .46rem .55rem;
}

.staff-document-grid span {
    display: block;
    color: var(--slate-500);
    font-size: .72rem;
    margin-bottom: .12rem;
}

.staff-document-grid strong {
    display: block;
    color: var(--slate-800);
    font-size: .82rem;
    overflow-wrap: anywhere;
    line-height: 1.28;
}

.staff-document-customer-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.staff-document-customer-list span {
    max-width: 100%;
    padding: .35rem .55rem;
    border: 1px solid var(--staff-line);
    border-radius: var(--radius-sm);
    background: var(--staff-surface-soft);
    color: var(--slate-700);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.staff-document-review-mask {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.staff-document-review-mask.active {
    opacity: 1;
    pointer-events: auto;
}

.staff-document-review-modal {
    position: fixed;
    inset: 6px;
    z-index: 10021;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    background: var(--staff-surface);
    border: 1px solid var(--staff-line);
    border-radius: 10px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    transform: scale(.985);
    transform-origin: center center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    overflow: hidden;
}

.staff-document-review-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.staff-document-review-head,
.staff-document-review-foot {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: .28rem .65rem;
    border-bottom: 1px solid var(--staff-line);
    overflow: hidden;
}

.staff-document-review-head {
    top: 0;
    background: #fff;
}

.staff-document-review-foot {
    bottom: 0;
    justify-content: flex-end;
    border-top: 1px solid var(--staff-line);
    border-bottom: none;
    background: var(--staff-surface-soft);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}

.staff-document-review-head strong {
    display: block;
    color: var(--slate-900);
    font-size: .84rem;
    line-height: 1.1;
}

.staff-document-review-head span {
    display: block;
    margin-top: .05rem;
    color: var(--slate-500);
    font-size: .68rem;
    line-height: 1.1;
}

.staff-document-review-head button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface);
    color: var(--slate-600);
    cursor: pointer;
}

.staff-document-review-body {
    position: absolute;
    top: 38px;
    right: 0;
    bottom: 38px;
    left: 0;
    min-height: 0;
    overflow: auto;
    padding: .25rem .42rem .34rem;
}

.staff-document-review-foot .admin-btn {
    min-height: 30px;
}

.staff-document-review-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .38rem;
    margin-bottom: .42rem;
}

.staff-document-stage-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    margin-bottom: .45rem;
    padding: .56rem .65rem;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: var(--staff-info-bg);
    color: var(--staff-accent);
}

.staff-document-stage-banner.green {
    border-color: #86efac;
    background: var(--staff-ok-bg);
    color: var(--staff-ok-text);
}

.staff-document-stage-banner > i {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .72);
}

.staff-document-stage-banner strong,
.staff-document-stage-banner span {
    display: block;
}

.staff-document-stage-banner strong {
    color: var(--slate-900);
    font-size: .86rem;
}

.staff-document-stage-banner span {
    margin-top: .12rem;
    color: var(--slate-600);
    font-size: .78rem;
    line-height: 1.45;
}

.staff-document-review-summary > div,
.staff-document-review-grid label,
.staff-document-review-row label {
    min-width: 0;
    padding: .42rem .48rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface-soft);
}

.staff-document-review-summary span,
.staff-document-review-grid label,
.staff-document-review-row label,
.staff-document-note {
    color: var(--slate-500);
    font-size: .68rem;
    font-weight: 700;
}

.staff-document-review-summary strong {
    display: block;
    margin-top: .08rem;
    color: var(--slate-900);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.staff-document-review-section {
    margin-top: .42rem;
    padding: .5rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface);
}

.staff-document-attachment-list {
    display: grid;
    gap: .7rem;
    margin-top: .7rem;
}

.staff-document-attachment-card {
    border-left: 3px solid #38bdf8;
}

.staff-document-attachment-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .6rem;
}

.staff-document-attachment-mini-list span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .3rem .45rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface-soft);
    color: var(--slate-700);
    font-size: .76rem;
}

.staff-document-attachment-mini-list em {
    color: var(--slate-500);
    font-style: normal;
}

.staff-document-attachment-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.staff-document-attachment-columns h5 {
    margin: 0 0 .35rem;
    color: var(--slate-700);
    font-size: .78rem;
}

.staff-document-attachment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
    padding: .5rem;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    background: var(--staff-surface-soft);
}

.staff-document-attachment-row + .staff-document-attachment-row {
    margin-top: .4rem;
}

.staff-document-attachment-main {
    min-width: 0;
}

.staff-document-attachment-main strong,
.staff-document-attachment-main span,
.staff-document-attachment-main em {
    display: block;
    overflow-wrap: anywhere;
}

.staff-document-attachment-main strong {
    color: var(--slate-900);
    font-size: .82rem;
}

.staff-document-attachment-main span,
.staff-document-attachment-main em {
    margin-top: .15rem;
    color: var(--slate-500);
    font-size: .72rem;
    font-style: normal;
}

.staff-document-attachment-actions,
.staff-document-upload-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.staff-document-upload-box {
    justify-content: flex-start;
    margin-top: .6rem;
    padding-top: .55rem;
    border-top: 1px dashed var(--staff-line);
}

.staff-document-upload-box label {
    display: grid;
    gap: .2rem;
    color: var(--slate-600);
    font-size: .72rem;
    font-weight: 700;
}

.staff-document-upload-box input,
.staff-document-upload-box select {
    min-height: 32px;
    border: 1px solid var(--staff-line);
    border-radius: 8px;
    padding: .35rem .5rem;
    background: #fff;
    color: var(--slate-800);
    font-size: .78rem;
}

.staff-document-precustoms-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .55rem;
}

.staff-document-precustoms-panel .staff-document-note {
    margin-top: .55rem;
}

.staff-document-review-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .38rem;
}

.staff-document-review-section-head strong {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--slate-900);
    font-size: .84rem;
}

.staff-document-review-section-head span {
    color: var(--slate-500);
    font-size: .7rem;
    font-weight: 700;
    text-align: right;
}

.staff-document-review-row,
.staff-document-review-grid {
    display: grid;
    gap: .38rem;
}

.staff-document-review-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: .38rem;
}

.staff-document-review-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-document-review-grid input,
.staff-document-review-row select,
.staff-document-note textarea {
    width: 100%;
    margin-top: .18rem;
    padding: .38rem .48rem;
    border: 1px solid var(--staff-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--slate-800);
    font: inherit;
    font-size: .78rem;
}

.staff-document-note {
    display: block;
    margin-top: .42rem;
}

.staff-document-note textarea {
    resize: vertical;
    min-height: 52px;
}

.staff-document-review-warning,
.staff-document-review-ok,
.staff-document-review-return {
    display: grid;
    gap: .25rem;
    margin-top: .42rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    font-size: .76rem;
}

.staff-document-review-warning {
    border: 1px solid #facc15;
    background: var(--staff-warn-bg);
    color: var(--staff-warn-text);
}

.staff-document-review-ok {
    border: 1px solid #86efac;
    background: var(--staff-ok-bg);
    color: var(--staff-ok-text);
}

.staff-document-review-return {
    border: 1px solid #fda4af;
    background: var(--staff-danger-bg);
    color: var(--staff-danger-text);
}

.staff-document-review-warning strong,
.staff-document-review-ok strong,
.staff-document-review-return strong {
    color: inherit;
}

.staff-document-warn-btn {
    border-color: #facc15;
    color: var(--staff-warn-text);
    background: var(--staff-warn-bg);
}

@media (max-width: 1100px) {
    .staff-document-review-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-document-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .staff-workbench-order-top {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .staff-workbench-badges,
    .staff-workbench-order-actions {
        justify-content: flex-start;
        max-width: none;
    }

    .staff-workbench-badges {
        grid-column: 1 / -1;
    }

    .staff-workbench-fold-card > summary::after {
        grid-column: 2;
        grid-row: 1;
    }

    .staff-force-advance-form {
        grid-template-columns: 1fr;
    }

    .staff-document-grid {
        grid-template-columns: 1fr;
    }

    .staff-document-attachment-columns,
    .staff-document-attachment-row {
        grid-template-columns: 1fr;
    }

    .staff-document-attachment-actions {
        justify-content: flex-start;
    }

    .staff-document-upload-box {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-document-precustoms-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-document-alert {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-document-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-document-search,
    .staff-document-filters select,
    .staff-document-filters .admin-btn {
        width: 100%;
        flex: none;
    }

    .staff-document-filters > span {
        margin-left: 0;
    }

    .staff-document-review-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .staff-document-review-section-head span {
        text-align: left;
    }

    .staff-document-review-summary,
    .staff-document-review-row,
    .staff-document-review-grid {
        grid-template-columns: 1fr;
    }

    .staff-document-review-modal {
        inset: 6px;
        width: auto;
        height: auto;
        max-height: none;
    }

    .staff-document-review-head,
    .staff-document-review-body,
    .staff-document-review-foot {
        padding-left: .55rem;
        padding-right: .55rem;
    }

    .staff-cs-template-layout,
    .staff-cs-flow-steps,
    .staff-cs-form-grid.two,
    .staff-cs-form-grid.three,
    .staff-cs-form-grid.four,
    .staff-cs-payee-form {
        grid-template-columns: 1fr;
    }

    .staff-cs-template-text {
        min-height: 280px;
    }
}
