.cw-dropzone{position:relative;border:2px dashed #d1d5db;border-radius:20px;padding:3.5rem 2rem;text-align:center;cursor:pointer;transition:all 0.4s cubic-bezier(0.4,0,0.2,1);background:linear-gradient(135deg,#fafbff 0,#f0f1ff 100%);overflow:hidden}.dark .cw-dropzone{background:linear-gradient(135deg,#1a1a2e 0,#16162a 100%);border-color:#2d2d4a}.cw-dropzone::before{content:'';position:absolute;inset:0;border-radius:20px;background:radial-gradient(circle at 50% 0,rgba(109,40,217,0.08) 0,transparent 60%);pointer-events:none}.cw-dropzone:hover,.cw-dropzone.drag-active{border-color:#6d28d9;background:linear-gradient(135deg,#f5f0ff 0,#ede5ff 100%);box-shadow:0 0 0 4px rgba(109,40,217,0.1),0 20px 60px -15px rgba(109,40,217,0.15);transform:translateY(-2px)}.dark .cw-dropzone:hover,.dark .cw-dropzone.drag-active{background:linear-gradient(135deg,#1e1b4b 0,#1a1640 100%);border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,0.15),0 20px 60px -15px rgba(124,58,237,0.2)}.cw-dropzone-icon{width:72px;height:72px;margin:0 auto 1.25rem;background:linear-gradient(135deg,#6d28d9,#7c3aed);border-radius:20px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 32px rgba(109,40,217,0.25);transition:transform 0.3s ease}.cw-dropzone:hover .cw-dropzone-icon{transform:scale(1.05) rotate(-3deg)}.cw-dropzone-icon svg{width:32px;height:32px;color:#fff;stroke:#fff}.cw-dropzone h5{font-size:1.15rem;font-weight:700;color:#1e1b4b;margin-bottom:0.35rem}.dark .cw-dropzone h5{color:#e0e0ff}.cw-dropzone p{font-size:0.85rem;color:#6b7280;margin-bottom:0}.dark .cw-dropzone p{color:#9ca3af}.cw-btn-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 32px;font-size:0.95rem;font-weight:700;color:#fff;background:linear-gradient(135deg,#6d28d9 0,#4f46e5 100%);border:none;border-radius:14px;cursor:pointer;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);box-shadow:0 4px 20px rgba(109,40,217,0.3);width:100%;position:relative;overflow:hidden}.cw-btn-action::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,0.15) 0,transparent 50%);pointer-events:none}.cw-btn-action:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(109,40,217,0.4);background:linear-gradient(135deg,#5b21b6 0,#4338ca 100%)}.cw-btn-action:active{transform:translateY(0)}.cw-btn-action:disabled{opacity:0.6;cursor:not-allowed;transform:none;box-shadow:none}.cw-btn-download{background:linear-gradient(135deg,#059669 0,#10b981 100%);box-shadow:0 4px 20px rgba(5,150,105,0.3)}.cw-btn-download:hover{background:linear-gradient(135deg,#047857 0,#059669 100%);box-shadow:0 8px 30px rgba(5,150,105,0.4)}.cw-btn-outline{background:transparent;border:2px solid #e5e7eb;color:#4b5563;box-shadow:none;padding:12px 24px}.cw-btn-outline:hover{border-color:#6d28d9;color:#6d28d9;background:rgba(109,40,217,0.04);box-shadow:none;transform:translateY(-1px)}.dark .cw-btn-outline{border-color:#374151;color:#d1d5db}.dark .cw-btn-outline:hover{border-color:#7c3aed;color:#a78bfa}.cw-progress-wrap{background:#f3f4f6;border-radius:12px;padding:2rem;text-align:center}.dark .cw-progress-wrap{background:#1f2937}.cw-progress-bar-track{width:100%;height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:1rem 0}.dark .cw-progress-bar-track{background:#374151}.cw-progress-bar-fill{height:100%;background:linear-gradient(90deg,#6d28d9,#7c3aed,#a78bfa);border-radius:999px;transition:width 0.4s ease;background-size:200% 100%;animation:cw-shimmer 1.5s linear infinite}@keyframes cw-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}.cw-progress-text{font-size:0.85rem;font-weight:600;color:#6d28d9}.dark .cw-progress-text{color:#a78bfa}.cw-spinner{width:28px;height:28px;border:3px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:cw-spin 0.8s linear infinite;display:inline-block}.cw-spinner-purple{border-color:rgba(109,40,217,0.15);border-top-color:#6d28d9}@keyframes cw-spin{to{transform:rotate(360deg)}}.cw-result-box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:1.5rem;box-shadow:0 4px 20px rgba(0,0,0,0.04)}.dark .cw-result-box{background:#1a1a2e;border-color:#2d2d4a}.cw-result-content{background:#fafbff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;font-size:0.9rem;line-height:1.75;color:#374151;max-height:500px;overflow-y:auto}.dark .cw-result-content{background:#111827;border-color:#1f2937;color:#d1d5db}.cw-result-content h1,.cw-result-content h2,.cw-result-content h3{color:#1e1b4b;margin-top:1.5rem;margin-bottom:0.75rem}.dark .cw-result-content h1,.dark .cw-result-content h2,.dark .cw-result-content h3{color:#e0e7ff}.cw-success-card{background:linear-gradient(135deg,#ecfdf5 0,#d1fae5 100%);border:1px solid #a7f3d0;border-radius:20px;padding:2.5rem;text-align:center}.dark .cw-success-card{background:linear-gradient(135deg,#064e3b 0,#065f46 100%);border-color:#047857}.cw-success-icon{width:64px;height:64px;background:linear-gradient(135deg,#059669,#10b981);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;box-shadow:0 8px 32px rgba(5,150,105,0.3)}.cw-success-icon svg{width:28px;height:28px;color:#fff;stroke:#fff}.cw-input,.cw-select,.cw-textarea{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:12px;font-size:0.9rem;font-weight:500;color:#1f2937;background:#fff;transition:all 0.25s ease;outline:none}.dark .cw-input,.dark .cw-select,.dark .cw-textarea{background:#1f2937;border-color:#374151;color:#e5e7eb}.cw-input:focus,.cw-select:focus,.cw-textarea:focus{border-color:#6d28d9;box-shadow:0 0 0 4px rgba(109,40,217,0.1)}.cw-textarea{min-height:120px;resize:vertical}.cw-label{display:block;font-size:0.8rem;font-weight:700;color:#374151;margin-bottom:6px;text-transform:uppercase;letter-spacing:0.05em}.dark .cw-label{color:#d1d5db}.cw-canvas-wrap{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem;display:flex;justify-content:center;align-items:center;min-height:350px;overflow:auto;position:relative}.dark .cw-canvas-wrap{background:#0f172a;border-color:#1e293b}.cw-canvas-wrap canvas{max-width:100%;height:auto;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,0.08)}.cw-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;align-items:center;justify-content:center}.dark .cw-toolbar{background:#1e293b;border-color:#334155}.cw-toolbar .btn{font-size:0.85rem;font-weight:600;border-radius:10px}.cw-slider,input[type=range].cw-slider{-webkit-appearance:none !important;appearance:none !important;width:100% !important;height:8px !important;background:linear-gradient(90deg,#6d28d9 0,#a78bfa 100%) !important;border-radius:999px !important;outline:none !important;border:none !important;box-shadow:inset 0 1px 3px rgba(0,0,0,0.15) !important}.dark .cw-slider,.dark input[type=range].cw-slider{background:linear-gradient(90deg,#4c1d95 0,#7c3aed 100%) !important}.cw-slider::-webkit-slider-thumb,input[type=range].cw-slider::-webkit-slider-thumb{-webkit-appearance:none !important;appearance:none !important;width:22px !important;height:22px !important;background:#ffffff !important;border:3px solid #6d28d9 !important;border-radius:50% !important;cursor:pointer !important;box-shadow:0 4px 12px rgba(109,40,217,0.4) !important;transition:transform 0.2s ease,box-shadow 0.2s ease !important}.cw-slider::-webkit-slider-thumb:hover,input[type=range].cw-slider::-webkit-slider-thumb:hover{transform:scale(1.25) !important;box-shadow:0 6px 16px rgba(109,40,217,0.5) !important}.cw-badge{display:inline-block;padding:4px 12px;font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;border-radius:999px;background:rgba(109,40,217,0.1);color:#6d28d9;border:1px solid rgba(109,40,217,0.15)}.dark .cw-badge{background:rgba(124,58,237,0.15);color:#a78bfa;border-color:rgba(124,58,237,0.2)}.cw-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:#1e1b4b;color:#fff;padding:12px 28px;border-radius:12px;font-size:0.85rem;font-weight:600;z-index:9999;opacity:0;transition:all 0.4s cubic-bezier(0.4,0,0.2,1);box-shadow:0 12px 40px rgba(0,0,0,0.2)}.cw-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.cw-file-info{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;font-size:0.85rem;font-weight:600;color:#166534}.dark .cw-file-info{background:#052e16;border-color:#166534;color:#86efac}.cw-media-player{width:100%;border-radius:12px;background:#000;overflow:hidden}.cw-media-player audio,.cw-media-player video{width:100%;display:block;border-radius:12px}.cw-fade-in{animation:cwFadeIn 0.5s ease forwards}@keyframes cwFadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.cw-pulse{animation:cwPulse 2s ease-in-out infinite}@keyframes cwPulse{0%,100%{opacity:1}50%{opacity:0.6}}@media (max-width:768px){.cw-dropzone{padding:clamp(1.5rem,5vw,2.2rem) 1rem !important;border-radius:16px !important}.cw-dropzone-icon{width:52px !important;height:52px !important;border-radius:14px !important;margin-bottom:0.75rem !important}.cw-dropzone-icon svg{width:22px !important;height:22px !important}.cw-btn-action{padding:12px 18px !important;font-size:0.9rem !important;min-height:48px !important;border-radius:12px !important}.cw-toolbar{gap:6px !important;padding:8px 10px !important;flex-wrap:wrap !important}.fx-grand-header{padding:16px 14px !important;border-radius:16px !important;margin-bottom:16px !important;flex-direction:column !important;align-items:flex-start !important;gap:12px !important}.fx-grand-header>div:first-child{width:100% !important}.fx-grand-header h3{font-size:17px !important}.fx-grand-header span{font-size:12px !important}.fx-grand-grid{grid-template-columns:1fr !important;gap:16px !important}.fx-white-card{padding:16px 14px !important;border-radius:16px !important}.pair-pills-bar,.amount-pills-bar{gap:6px !important;margin-bottom:12px !important}.pill-pair-btn,.pill-amt{padding:6px 12px !important;font-size:11.5px !important}.conversion-hero-box{padding:16px 14px !important;border-radius:16px !important;margin-top:14px !important}.conversion-hero-box .display-6{font-size:clamp(22px,6vw,32px) !important}.matrix-tiles-grid{grid-template-columns:1fr !important;gap:10px !important;max-height:380px !important}.matrix-tile-card{padding:12px 14px !important;border-radius:12px !important}.tool-view-wrapper input,.tool-view-wrapper select,.tool-view-wrapper textarea{font-size:16px !important;max-width:100% !important}.table-responsive,.tool-table-wrapper{width:100% !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch !important}}


/* ==========================================================================
   ENTERPRISE MOBILE-FIRST RESPONSIVE SUITE FOR ALL TOOLS (ClickTheTools.com)
   Guarantees 100% professional presentation on iPhone, Android, and Tablets
   ========================================================================== */

@media (max-width: 640px) {
    /* Page & Viewport Guards */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .container, .container-fluid, .tool-view-wrapper, .main-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* All Studio Outer Wrappers (Light Theme Enforcement & Zero Wasted Margins) */
    [class*="-studio"],
    [class*="studio-wrap"],
    [class*="studio-master"],
    [class*="studio-root"],
    [class*="studio-large"],
    .ctt-dark-studio-wrapper,
    .dlr-dark-studio,
    .dlr-light-studio,
    .eqr-light-studio,
    .wmb-studio,
    .fx-studio-master-v11,
    .emi-studio-master-v12,
    .essay-studio-grand-v12,
    .math-studio-ultra-v10,
    .ultra-resume-studio-v10,
    .pdf-watermark-studio-pro,
    .psd-studio-root,
    .translator-studio-wrapper,
    .grammar-studio-wrapper,
    .email-studio-main-wrapper,
    .pc-studio-large-v3,
    .unlock-pdf-studio-wrap {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        color: #0f172a !important;
        padding: 12px 10px !important;
        border-radius: 16px !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
        margin-top: 5px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Studio Text Headings & Labels in Light Mode */
    [class*="-studio"] h1, [class*="-studio"] h2, [class*="-studio"] h3,
    [class*="-studio"] h4, [class*="-studio"] h5, [class*="-studio"] h6,
    [class*="-studio"] .dlr-label-title,
    [class*="-studio"] .studio-label,
    .ctt-dark-studio-wrapper h3, .ctt-dark-studio-wrapper span {
        color: #0f172a !important;
    }

    /* All Cards, Glass Panes & Editor Boxes */
    [class*="panel-card"],
    [class*="glass-card"],
    [class*="editor-pane"],
    [class*="studio-card"],
    [class*="fx-white-card"],
    .dlr-glass-card,
    .dlr-editor-pane,
    .eqr-panel-card,
    .eqr-editor-pane,
    .wmb-panel-card,
    .wmb-hero-card,
    .email-studio-card,
    .studio-dashboard {
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 14px 12px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        color: #0f172a !important;
    }

    /* All KPI & Telemetry Metric Grids -> Compact 2x2 Grid */
    [class*="metrics-row"],
    [class*="metrics-grid"],
    [class*="metrics-strip"],
    .dlr-metrics-row,
    .eqr-metrics-row,
    .wmb-metrics-grid,
    .ctt-metrics-grid,
    .stg-metrics-grid,
    .ts-metrics {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Metric Boxes within 2x2 Grid */
    [class*="metric-box"],
    [class*="metric-card"],
    .dlr-metric-box,
    .eqr-metric-box,
    .wmb-metric-box {
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 10px 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    [class*="metric-num"],
    .dlr-metric-num,
    .eqr-metric-num,
    .wmb-metric-num {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }

    [class*="metric-tag"],
    [class*="metric-label"],
    .dlr-metric-tag,
    .eqr-metric-tag,
    .wmb-metric-label {
        font-size: 11px !important;
        line-height: 1.25 !important;
        color: #64748b !important;
        font-weight: 700 !important;
    }

    /* All Dual Workspaces & Multi-column Layouts -> Single Fluid Column */
    [class*="grid-workspaces"],
    [class*="workspace-grid"],
    [class*="studio-grid"],
    [class*="hero-layout"],
    .dlr-grid-workspaces,
    .eqr-grid-workspaces,
    .wmb-hero-layout,
    .email-studio-grid,
    .grammar-studio-grid,
    .math-studio-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All Tab Switchers (50/50 Equal or Horizontal Touch Swipe) */
    [class*="tab-switcher"],
    [class*="tabs-wrapper"],
    .eqr-tab-switcher,
    .wmb-tab-switcher,
    .studio-tabs {
        width: 100% !important;
        display: flex !important;
        padding: 4px !important;
        border-radius: 12px !important;
        background: #f1f5f9 !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    [class*="tab-switcher"]::-webkit-scrollbar,
    .wmb-tab-switcher::-webkit-scrollbar {
        display: none !important;
    }

    [class*="tab-btn"],
    .eqr-tab-btn,
    .wmb-tab-btn,
    .studio-tab-btn {
        flex: 1 1 auto !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        text-align: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        white-space: nowrap !important;
    }

    /* Swipeable Pill Bars (Presets, Curated Palettes, Sample Chips) */
    [class*="sample-bench"],
    [class*="palette-container"],
    [class*="theme-chips"],
    [class*="pills-bar"],
    .eqr-sample-bench,
    .dlr-header-actions,
    .pair-pills-bar,
    .amount-pills-bar {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
        gap: 6px !important;
        width: 100% !important;
    }
    [class*="sample-bench"]::-webkit-scrollbar,
    .dlr-header-actions::-webkit-scrollbar {
        display: none !important;
    }
    [class*="sample-bench"] button,
    .dlr-header-actions button {
        flex-shrink: 0 !important;
    }

    /* All Studio Footers & Action Button Containers */
    [class*="footer-bar"],
    .dlr-footer-bar,
    .eqr-footer-bar,
    .wmb-footer-bar,
    .ctt-footer-bar,
    .msc-hero-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 12px !important;
        border-radius: 14px !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    [class*="footer-actions"],
    [class*="hero-actions"],
    .dlr-footer-actions,
    .eqr-footer-actions,
    .wmb-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    [class*="footer-bar"] button,
    [class*="footer-bar"] a,
    [class*="footer-actions"] button,
    [class*="footer-actions"] a,
    .dlr-footer-bar button,
    .eqr-footer-bar button,
    .wmb-footer-bar button {
        width: 100% !important;
        min-height: 44px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* All Interactive Input Fields (Prevent 16px iOS auto-zoom) */
    .tool-view-wrapper input,
    .tool-view-wrapper select,
    .tool-view-wrapper textarea,
    [class*="-studio"] input,
    [class*="-studio"] select,
    [class*="-studio"] textarea,
    .cw-input, .cw-select, .cw-textarea {
        font-size: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All Code Editors / Output Containers */
    pre, code, textarea[readonly],
    .eqr-code-output,
    .dlr-code-pre,
    .code-preview-box {
        max-height: 280px !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        word-break: break-all !important;
        white-space: pre-wrap !important;
    }

    /* Canvases & Camera Viewfinders */
    .eqr-camera-container,
    .dlr-viewport-surface,
    .cw-canvas-wrap {
        height: 270px !important;
        min-height: 200px !important;
        max-height: 280px !important;
        width: 100% !important;
        border-radius: 14px !important;
    }

    /* FX Currency Converter Mobile Styles */
    .fx-grand-header {
        padding: 16px 14px !important;
        border-radius: 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .fx-grand-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .fx-white-card {
        padding: 14px 12px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .matrix-tiles-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-height: 380px !important;
        padding-right: 0 !important;
    }
    .matrix-tile-card {
        padding: 10px 12px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* All Tables */
    table, .table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}