
        /* ═══════════════════════════════════════════════════════════
           DESIGN TOKENS — Swiss Modernism 2.0 + Inter
           ═══════════════════════════════════════════════════════════
           字体异步加载，避免阻塞渲染 */
        :root {
            --it-primary: #1E3A8A;
            --it-primary-hover: #1E40AF;
            --it-primary-light: #EFF6FF;
            --it-secondary: #3B82F6;
            --it-accent: #7C3AED;
            --it-surface: #FFFFFF;
            --it-surface-hover: #F8FAFC;
            --it-background: #F8FAFC;
            --it-border: #E2E8F0;
            --it-border-light: #F1F5F9;
            --it-border-focus: #1E3A8A;
            --it-text: #0F172A;
            --it-text-secondary: #334155;
            --it-text-muted: #64748B;
            --it-text-subtle: #94A3B8;
            --it-radius: 8px;
            --it-radius-lg: 12px;
            --it-radius-xl: 16px;
            --it-shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
            --it-shadow-md: 0 4px 16px rgba(15,23,42,0.08);
            --it-shadow-lg: 0 8px 32px rgba(15,23,42,0.12);
            --it-shadow-xl: 0 16px 48px rgba(15,23,42,0.16);
            --it-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
            --it-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
            --it-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        #image-tools-root, #image-tools-root * {
            font-family: var(--it-font);
        }

        #image-tools-root .glass-card,
        #image-tools-root .upload-area {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        /* ═══════════════════════════════════════════════════════════
             TWO-COLUMN LAYOUT — Left: Tools | Right: Upload + Settings
             ═══════════════════════════════════════════════════════════ */
        .it-main-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 20px;
            align-items: start;
        }
        .it-left-col {
            position: sticky;
            top: 16px;
            max-height: calc(100vh - 32px);
            overflow-y: auto;
        }
        .it-left-col::-webkit-scrollbar {
            width: 4px;
        }
        .it-left-col::-webkit-scrollbar-track {
            background: transparent;
        }
        .it-left-col::-webkit-scrollbar-thumb {
            background: #CBD5E1;
            border-radius: 2px;
        }
        .it-left-col::-webkit-scrollbar-thumb:hover {
            background: #94A3B8;
        }
        .it-right-col {
            min-width: 0;
        }

        /* ═══════════════════════════════════════════════════════════
             TOOL NAVIGATION — Vertical List (Left Sidebar)
             ═══════════════════════════════════════════════════════════ */
        .it-tool-grid {
            display: flex;
            flex-direction: column;
            gap: 4px;
            contain: layout style;
        }
        .it-tool-card {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border: 1px solid var(--it-border);
            border-radius: var(--it-radius);
            background: var(--it-surface);
            cursor: pointer;
            transition: all var(--it-transition);
            position: relative;
            overflow: hidden;
            user-select: none;
        }
        .it-tool-card:hover {
            border-color: var(--it-primary);
            box-shadow: var(--it-shadow-md);
            transform: translateY(-2px);
        }
        .it-tool-card:active {
            transform: translateY(0) scale(0.98);
        }
        .it-tool-card:focus-visible {
            outline: 2px solid var(--it-primary);
            outline-offset: 2px;
        }
        .it-tool-card.active {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
        }
        .it-tool-icon {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--it-surface-hover);
            color: var(--it-text-muted);
            transition: all var(--it-transition);
            position: relative;
            z-index: 1;
        }
        .it-tool-card.active .it-tool-icon {
            background: var(--it-primary);
            color: #FFFFFF;
        }
        .it-tool-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--it-text-secondary);
            text-align: left;
            line-height: 1.3;
            position: relative;
            z-index: 1;
            transition: color var(--it-transition);
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .it-tool-card:hover .it-tool-label {
            color: var(--it-primary);
        }
        .it-tool-card.active .it-tool-label {
            color: var(--it-primary);
            font-weight: 600;
        }

        /* ═══════════════════════════════════════════════════════════
            UPLOAD AREA — Enhanced with Gradient & Animation
            ═══════════════════════════════════════════════════════════ */
        .it-upload-zone {
            border: 2px dashed #CBD5E1;
            border-radius: var(--it-radius-lg);
            padding: 48px 24px;
            text-align: center;
            cursor: pointer;
            transition: all var(--it-transition);
            background: linear-gradient(135deg, #FAFBFC 0%, #F8FAFC 100%);
            position: relative;
            overflow: hidden;
        }
        .it-upload-zone::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 50%, rgba(30,58,138,0.04) 0%, transparent 70%);
            opacity: 0;
            transition: opacity var(--it-transition);
        }
        .it-upload-zone:hover {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            box-shadow: var(--it-shadow-md);
        }
        .it-upload-zone:hover::before { opacity: 1; }
        .it-upload-zone:hover .it-upload-icon {
            transform: scale(1.05) translateY(-2px);
            background: var(--it-primary);
            color: #FFFFFF;
        }
        .it-upload-zone:hover .it-upload-title {
            color: var(--it-primary);
        }
        .it-upload-zone.dragover {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            border-style: solid;
            box-shadow: inset 0 0 0 3px rgba(30,58,138,0.1), var(--it-shadow-lg);
            animation: pulse-border 1.2s ease-in-out infinite;
        }
        .it-upload-zone.dragover .it-upload-icon {
            transform: scale(1.1);
            background: var(--it-primary);
            color: #FFFFFF;
        }
        .it-upload-zone.dragover .it-upload-title {
            color: var(--it-primary);
        }
        @keyframes pulse-border {
            0%, 100% { box-shadow: inset 0 0 0 3px rgba(30,58,138,0.1), var(--it-shadow-lg); }
            50% { box-shadow: inset 0 0 0 6px rgba(30,58,138,0.2), var(--it-shadow-lg); }
        }
        .it-upload-icon {
            width: 64px;
            height: 64px;
            border-radius: var(--it-radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--it-surface-hover);
            margin: 0 auto 16px;
            transition: all var(--it-transition-slow);
            color: var(--it-text-muted);
            border: 1px solid var(--it-border);
        }
        .it-upload-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--it-text);
            margin-bottom: 4px;
            transition: color var(--it-transition);
            letter-spacing: -0.01em;
        }
        .it-upload-hint {
            font-size: 13px;
            color: var(--it-text-muted);
            line-height: 1.5;
        }

        /* ═══════════════════════════════════════════════════════════
            PANEL TRANSITIONS — Smooth Fade + Slide
            ═══════════════════════════════════════════════════════════ */
        .it-panel {
            display: none;
            opacity: 0;
            transform: translateY(12px) scale(0.99);
            transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        .it-panel.active {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* ═══════════════════════════════════════════════════════════
           FORM CONTROLS — Refined Inputs & Sliders
           ═══════════════════════════════════════════════════════════ */
        .it-input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--it-border);
            border-radius: var(--it-radius);
            font-size: 14px;
            color: var(--it-text);
            background: var(--it-surface);
            transition: all var(--it-transition);
            outline: none;
            font-family: var(--it-font);
        }
        .it-input:focus {
            border-color: var(--it-border-focus);
            box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
        }
        .it-input::placeholder { color: var(--it-text-subtle); }

        .it-slider {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: #E2E8F0;
            border-radius: 3px;
            outline: none;
            cursor: pointer;
        }
        .it-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--it-primary);
            cursor: pointer;
            border: 2px solid #FFFFFF;
            box-shadow: var(--it-shadow-sm);
            transition: transform var(--it-transition), box-shadow var(--it-transition);
        }
        .it-slider::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: var(--it-shadow-md);
        }
        .it-slider::-webkit-slider-thumb:active {
            transform: scale(1.25);
        }

        /* ═══════════════════════════════════════════════════════════
           OPTION CARDS — Radio/Checkbox Card Selection
           ═══════════════════════════════════════════════════════════ */
        .it-option-card {
            display: block;
            cursor: pointer;
        }
        .it-option-card input { position: absolute; opacity: 0; pointer-events: none; }
        .it-option-inner {
            padding: 14px 12px;
            border: 2px solid var(--it-border);
            border-radius: var(--it-radius);
            text-align: center;
            transition: all var(--it-transition);
            background: var(--it-surface);
        }
        .it-option-card:hover .it-option-inner {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            transform: translateY(-1px);
            box-shadow: var(--it-shadow-sm);
        }
        .it-option-card:active .it-option-inner {
            transform: scale(0.98);
        }
        .it-option-card input:checked + .it-option-inner {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
        }
        .it-option-card input:checked + .it-option-inner .it-option-title {
            color: var(--it-primary);
            font-weight: 600;
        }
        .it-option-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--it-text);
            margin-bottom: 2px;
        }
        .it-option-desc {
            font-size: 11px;
            color: var(--it-text-subtle);
        }

        /* ═══════════════════════════════════════════════════════════
           BUTTONS — Tactile Press Feedback
           ═══════════════════════════════════════════════════════════ */
        .it-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: var(--it-radius);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--it-transition);
            border: none;
            position: relative;
            overflow: hidden;
        }
        .it-btn:active { transform: scale(0.97); }
        .it-btn:focus-visible {
            outline: 2px solid var(--it-primary);
            outline-offset: 2px;
        }
        .it-btn-primary {
            background: var(--it-primary);
            color: #FFFFFF;
            box-shadow: 0 2px 8px rgba(30,58,138,0.2);
        }
        .it-btn-primary:hover {
            box-shadow: 0 4px 16px rgba(30,58,138,0.3);
            transform: translateY(-1px);
            background: var(--it-primary-hover);
        }
        .it-btn-primary:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 1px 4px rgba(30,58,138,0.15);
        }
        .it-btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none;
            background: var(--it-text-subtle);
        }
        .it-btn-success {
            background: #059669;
            color: #FFFFFF;
            box-shadow: 0 2px 8px rgba(5,150,105,0.2);
        }
        .it-btn-success:hover {
            box-shadow: 0 4px 16px rgba(5,150,105,0.3);
            transform: translateY(-1px);
            background: #047857;
        }
        .it-btn-outline {
            background: var(--it-surface);
            color: var(--it-text-secondary);
            border: 1px solid var(--it-border);
        }
        .it-btn-outline:hover {
            border-color: var(--it-primary);
            color: var(--it-primary);
            background: var(--it-primary-light);
        }

        /* ═══════════════════════════════════════════════════════════
           IMAGE COMPARISON — Polished Preview
           ═══════════════════════════════════════════════════════════ */
        .it-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .it-comparison.single { grid-template-columns: 1fr; }
        .it-preview-box {
            border: 1px solid var(--it-border);
            border-radius: var(--it-radius);
            padding: 12px;
            background: #FAFBFC;
            transition: box-shadow var(--it-transition);
        }
        .it-preview-box:hover { box-shadow: var(--it-shadow-sm); }
        .it-preview-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--it-text-muted);
            margin-bottom: 8px;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .it-preview-img {
            max-width: 100%;
            max-height: 280px;
            border-radius: 6px;
            display: block;
            margin: 0 auto;
        }

        /* ═══════════════════════════════════════════════════════════
           TOAST NOTIFICATIONS
           ═══════════════════════════════════════════════════════════ */
        .it-toast-container {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }
        .it-toast {
            padding: 12px 20px;
            border-radius: var(--it-radius);
            font-size: 14px;
            font-weight: 500;
            color: #FFFFFF;
            box-shadow: var(--it-shadow-lg);
            transform: translateX(120%);
            opacity: 0;
            transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: auto;
            display: flex;
            align-items: center;
            gap: 8px;
            max-width: 360px;
        }
        .it-toast.show {
            transform: translateX(0);
            opacity: 1;
        }
        .it-toast-success { background: linear-gradient(135deg, #059669, #10B981); }
        .it-toast-error { background: linear-gradient(135deg, #DC2626, #EF4444); }
        .it-toast-info { background: linear-gradient(135deg, #0D9488, #14B8A6); }

        /* ═══════════════════════════════════════════════════════════
           PROGRESS BAR — Smooth Animated
           ═══════════════════════════════════════════════════════════ */
        .it-progress {
            height: 6px;
            background: #E2E8F0;
            border-radius: 3px;
            overflow: hidden;
            display: none;
        }
        .it-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #0D9488, #14B8A6, #0D9488);
            background-size: 200% 100%;
            border-radius: 3px;
            transition: width 300ms ease;
            animation: shimmer 2s linear infinite;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Tool card entrance animation */
        .it-tool-card {
            animation: card-entrance 400ms cubic-bezier(0.4, 0, 0.2, 1) both;
        }
        .it-tool-card:nth-child(1) { animation-delay: 0ms; }
        .it-tool-card:nth-child(2) { animation-delay: 20ms; }
        .it-tool-card:nth-child(3) { animation-delay: 40ms; }
        .it-tool-card:nth-child(4) { animation-delay: 60ms; }
        .it-tool-card:nth-child(5) { animation-delay: 80ms; }
        .it-tool-card:nth-child(6) { animation-delay: 100ms; }
        .it-tool-card:nth-child(7) { animation-delay: 120ms; }
        .it-tool-card:nth-child(8) { animation-delay: 140ms; }
        .it-tool-card:nth-child(9) { animation-delay: 160ms; }
        .it-tool-card:nth-child(10) { animation-delay: 180ms; }
        .it-tool-card:nth-child(11) { animation-delay: 200ms; }
        .it-tool-card:nth-child(12) { animation-delay: 220ms; }
        .it-tool-card:nth-child(13) { animation-delay: 240ms; }
        .it-tool-card:nth-child(14) { animation-delay: 260ms; }
        .it-tool-card:nth-child(15) { animation-delay: 280ms; }
        .it-tool-card:nth-child(16) { animation-delay: 300ms; }
        @keyframes card-entrance {
            from { opacity: 0; transform: translateX(-8px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* ═══════════════════════════════════════════════════════════
           MISCELLANEOUS
           ═══════════════════════════════════════════════════════════ */
        .it-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
        }
        .it-badge-info {
            background: #DBEAFE;
            color: #1E40AF;
        }
        .it-badge-warn {
            background: #FEF3C7;
            color: #92400E;
        }

        .it-section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--it-text);
            margin-bottom: 6px;
            letter-spacing: -0.02em;
        }
        .it-section-desc {
            font-size: 14px;
            color: var(--it-text-muted);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .it-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .it-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .it-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
        .it-grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }

        .it-slider-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .it-slider-value {
            min-width: 44px;
            text-align: right;
            font-weight: 500;
            color: var(--it-text-secondary);
            font-size: 13px;
            font-variant-numeric: tabular-nums;
        }

        .it-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 13px;
            color: var(--it-text-muted);
            user-select: none;
        }
        .it-checkbox input {
            width: 16px;
            height: 16px;
            accent-color: var(--it-primary);
            cursor: pointer;
        }

        .it-crop-cell {
            aspect-ratio: 1;
            border: 2px dashed #CBD5E1;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            color: var(--it-text-subtle);
            cursor: pointer;
            transition: all var(--it-transition);
        }
        .it-crop-cell:hover {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            color: var(--it-primary);
        }
        .it-crop-cell.selected {
            border-color: var(--it-primary);
            background: var(--it-primary);
            color: #FFFFFF;
            border-style: solid;
        }
        .it-crop-cell.dragging {
            border-color: var(--it-primary);
            background: rgba(13,148,136,0.3);
            color: #FFFFFF;
        }

        .it-canvas-wrap { position: relative; display: inline-block; line-height: 0; min-width: 120px; overflow: hidden; border-radius: 6px; }
        .it-crop-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            cursor: crosshair; z-index: 5;
        }
        .it-crop-overlay.grid-mode { cursor: pointer; }
        .it-crop-mask {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            pointer-events: none; z-index: 6;
        }
        .it-crop-mask-rect {
            position: absolute; background: rgba(0,0,0,0.5);
        }
        .it-crop-selection {
            position: absolute;
            border: 2px solid var(--it-primary);
            background: transparent;
            pointer-events: none;
            z-index: 7;
        }
        .it-crop-selection .it-crop-handle {
            position: absolute; width: 10px; height: 10px;
            background: var(--it-primary); border: 2px solid #fff;
            border-radius: 50%; pointer-events: auto;
        }
        .it-crop-grid-h, .it-crop-grid-v {
            position: absolute; background: rgba(255,255,255,0.7); z-index: 4;
            pointer-events: none;
        }
        .it-crop-grid-h { height: 1px; left: 0; right: 0; }
        .it-crop-grid-v { width: 1px; top: 0; bottom: 0; }
        .it-crop-cell-hover {
            position: absolute; background: rgba(13,148,136,0.3);
            border: 2px solid var(--it-primary); pointer-events: none; z-index: 4;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; font-weight: 700; color: #fff;
            transition: opacity 0.1s;
        }

        .crop-batch-thumb {
            width: 64px; height: 64px; border-radius: 6px;
            border: 2px solid var(--it-border); overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            background: #F8FAFC; position: relative; cursor: pointer;
            transition: all 0.2s;
        }
        .crop-batch-thumb:hover { border-color: var(--it-primary); transform: scale(1.05); }
        .crop-batch-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .crop-batch-thumb .thumb-num {
            position: absolute; top: 2px; left: 2px;
            background: var(--it-primary); color: #fff;
            font-size: 10px; width: 16px; height: 16px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-weight: 600;
        }

        .it-pos-cell {
            aspect-ratio: 1;
            border: 2px solid var(--it-border);
            border-radius: 8px;
            cursor: pointer;
            transition: all var(--it-transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 500;
            color: var(--it-text-subtle);
        }
        .it-pos-cell:hover {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
        }
        .it-pos-cell.selected {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            color: var(--it-primary);
            font-weight: 600;
        }

        .watermark-drag-hint {
            position: absolute; z-index: 10;
            pointer-events: none;
            background: rgba(13,148,136,0.9); color: #fff;
            font-size: 11px; padding: 2px 8px;
            border-radius: 4px; white-space: nowrap;
            transform: translate(-50%, -120%);
            display: none;
        }

        .enhance-preset-card {
            border: 2px solid var(--it-border);
            border-radius: 12px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: #FAFAFA;
        }
        .enhance-preset-card:hover {
            border-color: var(--it-primary);
            background: var(--it-primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13,148,136,0.15);
        }
        .enhance-preset-card.active {
            border-color: var(--it-primary);
            background: linear-gradient(135deg, #CCFBF1, #99F6E4);
            box-shadow: 0 2px 8px rgba(13,148,136,0.25);
        }
        .enhance-preset-icon { font-size: 24px; margin-bottom: 4px; }
        .enhance-preset-name { font-size: 12px; font-weight: 600; color: #1E293B; }
        .enhance-preset-desc { font-size: 10px; color: #64748B; margin-top: 2px; }
        .enhance-preset-card.active .enhance-preset-name { color: #0D9488; }

        .it-ocr-result {
            background: #F8FAFC;
            border: 1px solid var(--it-border);
            border-radius: var(--it-radius);
            padding: 16px;
            min-height: 120px;
            max-height: 300px;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.8;
            color: var(--it-text);
            white-space: pre-wrap;
        }

        .it-file-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: var(--it-primary-light);
            border-radius: var(--it-radius);
            border: 1px solid #99F6E4;
        }
        .it-file-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: #CCFBF1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--it-primary);
            flex-shrink: 0;
        }
        .it-file-info { flex: 1; min-width: 0; }
        .it-file-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--it-text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .it-file-size {
            font-size: 11px;
            color: var(--it-text-muted);
        }
        .it-file-remove {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: none;
            background: #FEE2E2;
            color: #DC2626;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all var(--it-transition);
        }
        .it-file-remove:hover {
            background: #DC2626;
            color: #FFFFFF;
        }

        /* ═══════════════════════════════════════════════════════════
             RESPONSIVE — Mobile-first with 4/8dp rhythm
             ═══════════════════════════════════════════════════════════ */
         @media (max-width: 1024px) {
             .it-main-layout { grid-template-columns: 220px 1fr; gap: 16px; }
         }
         @media (max-width: 768px) {
             .it-main-layout { grid-template-columns: 1fr; }
             .it-left-col { position: static; max-height: none; }
             .it-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
             .it-tool-card { flex-direction: column; padding: 16px 8px; }
             .it-tool-label { text-align: center; font-size: 12px; }
             .it-tool-icon { width: 56px; height: 56px; border-radius: 12px; }
             .glass-card { padding: 16px !important; }
             .it-comparison { grid-template-columns: 1fr; }
             .it-grid-2 { grid-template-columns: 1fr; }
             .it-grid-3 { grid-template-columns: 1fr 1fr; }
             .it-grid-4 { grid-template-columns: repeat(2, 1fr); }
             .it-upload-zone { padding: 32px 16px; }
         }
         @media (max-width: 480px) {
             .it-tool-grid { grid-template-columns: repeat(3, 1fr); }
             .it-tool-icon { width: 48px; height: 48px; border-radius: 10px; }
             .it-tool-label { font-size: 11px; }
         }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ═══ QUOTA LIMIT MODAL ═══ */
        .limit-modal-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,.6);
            z-index: 2000; display: flex; align-items: center; justify-content: center;
            padding: 24px; opacity: 0; transition: opacity .25s ease;
        }
        .limit-modal-overlay.active { opacity: 1; }
        .limit-modal {
            background: #fff; border-radius: 16px; padding: 32px; max-width: 380px;
            width: 100%; text-align: center; box-shadow: 0 16px 48px rgba(15,23,42,.16);
            position: relative; transform: scale(.9); transition: transform .25s ease;
        }
        .limit-modal-overlay.active .limit-modal { transform: scale(1); }
        .limit-close {
            position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
            border: none; background: transparent; cursor: pointer; border-radius: 6px;
            display: flex; align-items: center; justify-content: center; color: #94A3B8;
            transition: all 200ms ease;
        }
        .limit-close:hover { background: #F1F5F9; color: #0F172A; }
        .limit-icon { color: #F59E0B; margin-bottom: 16px; }
        .limit-title { font-size: 18px; font-weight: 600; color: #0F172A; margin-bottom: 8px; }
        .limit-desc { font-size: 14px; color: #64748B; margin-bottom: 24px; }
        .limit-actions { display: flex; gap: 12px; justify-content: center; }
        .limit-btn {
            padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
            cursor: pointer; transition: all 200ms ease; text-decoration: none;
            display: inline-block; border: none;
        }
        .limit-btn-primary { background: #1E3A8A; color: #fff; }
        .limit-btn-primary:hover { background: #1E40AF; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,58,138,.2); }
        .limit-btn-default { background: #F8FAFC; color: #0F172A; border: 1px solid #E2E8F0; }
        .limit-btn-default:hover { background: #EFF6FF; }
    