:root {
    --bg-dark: #0a0a0c;
    --panel-bg: #16161a;
    --accent: #6a11cb;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border: #2d2d33;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.site-header nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: #fff;
}

/* Layout */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.main-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Settings Panel */
.settings-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.preset-btn {
    background: #252529;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.preset-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.theme-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.theme-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.theme-circle:hover {
    transform: scale(1.1);
}

.theme-circle.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.select-input {
    width: 100%;
    background: #252529;
    border: 1px solid var(--border);
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    outline: none;
}

.export-main-btn {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    transition: transform 0.2s, background 0.2s;
}

.export-main-btn:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

/* Preview Area */
.preview-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.canvas-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
}

/* Gradients */
.canvas-container.sunset {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.canvas-container.ocean {
    background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
}

.canvas-container.midnight {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.canvas-container.lush {
    background: linear-gradient(135deg, #34e89e 0%, #0f3443 100%);
}

.canvas-container.carbon {
    background: #1e1e1e;
}

/* Code Window */
.code-window {
    width: 100%;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-window.glass-effect {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(20px);
}

.window-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-right: 48px;
    /* Offset for dots */
}

.code-content {
    position: relative;
    padding: 1.5rem;
}

#code-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: transparent;
    caret-color: #fff;
    border: none;
    outline: none;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    resize: none;
    white-space: pre;
    z-index: 2;
}

#highlighted-block {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    pointer-events: none;
    z-index: 1;
}

#highlighted-block code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    background: transparent !important;
}

.watermark {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.65rem;
    opacity: 0.3;
    pointer-events: none;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

/* SEO Content */
.seo-content {
    margin-top: 8rem;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.seo-content h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-dim);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 4rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .settings-panel {
        position: static;
    }
}

/* Code-to-Image Mobile Optimizations */
@media (max-width: 768px) {
    .site-header nav {
        display: none;
    }
    
    .site-header nav.open {
        display: flex !important;
    }
    
    .page-wrapper {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .main-container {
        gap: 1.5rem;
    }
    
    .settings-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .preset-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .preset-btn {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .theme-grid {
        gap: 0.6rem;
    }
    
    .theme-circle {
        width: 36px;
        height: 36px;
    }
    
    .export-main-btn {
        font-size: 0.9rem;
        padding: 0.85rem;
    }
    
    .canvas-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .code-window {
        border-radius: 10px;
    }
    
    .window-header {
        padding: 0.75rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .window-title {
        font-size: 0.75rem;
    }
    
    .code-content {
        padding: 1rem;
    }
    
    #code-input,
    #highlighted-block code {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    .watermark {
        font-size: 0.6rem;
        bottom: 0.4rem;
        right: 0.75rem;
    }
    
    .seo-content {
        margin-top: 4rem;
        padding-top: 2rem;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .preset-grid {
        grid-template-columns: 1fr;
    }
    
    .canvas-container {
        padding: 20px 15px;
    }
    
    #code-input,
    #highlighted-block code {
        font-size: 0.8rem;
    }
}

/* ============================================
   Global Scrollbar Override — Modern & Dark
   ============================================ */



/* Chromium / Safari */






::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.65);
}




/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* === DEEP OVERFLOW MOBILE FIX === */
@media (max-width: 768px) {
    pre, .code-block pre, .code-wrapper pre {
        overflow-x: auto !important;
        max-width: 100% !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
        font-size: 0.75rem !important;
    }

    code {
        word-break: break-all !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* === FAQ + RELATED TOOLS CSS === */
.faq-section { padding: 0 0 1rem; }
.faq-heading, .related-heading {
    font-size: 1.3rem; font-weight: 800; margin-bottom: 1.25rem;
    text-align: center; letter-spacing: -0.5px;
}
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
    background: rgba(13,18,30,0.85); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(99,102,241,0.3); }
.faq-item summary {
    padding: 1rem 1.25rem; font-weight: 700; font-size: 0.92rem;
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.75rem;
    color: #f1f5f9;
}
.faq-item summary::before { content: '+'; font-size: 1.2rem; color: #6366f1; font-weight: 800; flex-shrink: 0; width: 20px; text-align: center; }
.faq-item[open] summary::before { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 1.25rem 1rem 2.5rem; color: #94a3b8; font-size: 0.88rem; line-height: 1.7; }

.related-section { padding: 0 0 1rem; }
.related-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }
.related-card {
    background: rgba(13,18,30,0.85); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 0.75rem 1.25rem; text-decoration: none;
    color: #a5b4fc; font-weight: 700; font-size: 0.82rem;
    transition: all 0.2s; white-space: nowrap;
}
.related-card:hover {
    background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.35);
    color: #c7d2fe; transform: translateY(-2px);
}

@media (max-width: 768px) {
    .faq-item summary { font-size: 0.85rem; padding: 0.85rem 1rem; }
    .faq-item p { padding: 0 1rem 0.85rem 2rem; font-size: 0.82rem; }
    .related-card { font-size: 0.78rem; padding: 0.6rem 1rem; }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ── MOBILE-LAYOUT-FIX ── */

/* ── Mobile fix: un-sticky panels ── */
@media (max-width: 768px) {
    .settings-panel {
        position: static !important;
    }
}

/* ── FAQ-ANIMATION-STYLES ── */

/* ── FAQ Section ── */
.faq-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 56px;
}

.faq-heading {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Accordion Items ── */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease;
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Summary (Question) ── */
details.faq-item summary {
    padding: 20px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: color 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.5;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { display: none; content: ''; }

/* Chevron arrow icon */
details.faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #6366f1;
    border-bottom: 2px solid #6366f1;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 4px;
}

details[open].faq-item summary::after {
    transform: rotate(-135deg);
}

details.faq-item summary:hover {
    color: #fff;
}

details[open].faq-item summary {
    color: #a5b4fc;
}

/* ── Answer ── */
details.faq-item p,
details.faq-item > div:not(:first-child) {
    padding: 0 8px 20px 8px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: #64748b;
    animation: faqFadeIn 0.35s ease-out;
    max-width: 95%;
}

/* ── Div-based FAQ ── */
.faq-q {
    padding: 20px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: color 0.2s ease;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-q:hover { color: #fff; }

.faq-a {
    padding: 0 8px 20px 8px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: #64748b;
    animation: faqFadeIn 0.35s ease-out;
}

/* ── Animation ── */
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .faq-section {
        padding: 32px 16px 40px;
    }
    .faq-heading {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    details.faq-item summary,
    .faq-q {
        padding: 16px 4px;
        font-size: 0.88rem;
    }
    details.faq-item p,
    details.faq-item > div:not(:first-child),
    .faq-a {
        padding: 0 4px 16px;
        font-size: 0.82rem;
    }
}

/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ============================================
   Global Scrollbar Override — Modern & Dark
   ============================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) rgba(255, 255, 255, 0.03);
}

/* Chromium / Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.65);
}

::-webkit-scrollbar-corner {
    background: transparent;
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* ============================================================
   === MOBILE-FIRST RESPONSIVE OVERRIDES ===
   Auto-injected by fix-mobile.cjs — global across all tools
   ============================================================ */

/* --- Universal Touch Targets --- */
@media (max-width: 768px) {
    button, .dt-btn-primary, .dt-btn-ghost, .dt-btn-success,
    .tx-btn, .fmt-btn, .hdr-btn, .tab-btn, .r-tab, .mode-btn,
    input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- Container padding --- */
@media (max-width: 768px) {
    .dt-container, .container, [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Site Header: collapse nav on mobile --- */
@media (max-width: 768px) {
    .site-header .dt-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.25rem !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    .dt-hero, section.hero, .hero-section {
        padding: 36px 0 20px !important;
        text-align: center;
    }

    .dt-title-xl, .hero-title, h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .dt-subtitle-lg, .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* --- All 2-col / 3-col / 4-col grids → single column --- */
@media (max-width: 768px) {
    .input-grid,
    .two-col, .two-column,
    .info-grid, .tool-layout,
    .buttons-col,
    .gap-layout,
    .score-card,
    .ctrl-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .verb-bank,
    .killer-grid,
    .stat-row,
    .score-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid-4,
    .grid-4, .grid-3,
    [class*="grid-col"],
    .verb-bank,
    .killer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Textareas → full width, shorter min-height on mobile --- */
@media (max-width: 768px) {
    .dt-textarea, textarea {
        min-height: 180px !important;
        font-size: 0.92rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
}

/* --- Action bars / analyze bars --- */
@media (max-width: 768px) {
    .analyze-bar, .action-row, .ctrl-actions,
    .action-bar, .tool-actions, .btn-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .analyze-bar button, .action-row button,
    .action-row .dt-btn-primary, .action-row .dt-btn-ghost,
    .action-row .dt-btn-success {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* --- Format/tab selectors --- */
@media (max-width: 640px) {
    .format-selector, .result-tabs, .tab-group, .mode-tabs {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .r-tab, .tab-btn, .mode-btn {
        font-size: 0.78rem !important;
        padding: 0.55rem 0.75rem !important;
    }
}

/* --- Score card (ATS) --- */
@media (max-width: 768px) {
    .score-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
    }

    .score-ring-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .score-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .score-num {
        font-size: 1.6rem !important;
    }

    .score-meta h2 {
        font-size: 1.25rem !important;
    }

    .score-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* --- Tables → horizontal scroll --- */
@media (max-width: 768px) {
    .table-wrap, .dt-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }
}

/* --- Cards grid → 2 col then 1 col --- */
@media (max-width: 768px) {
    .file-grid, .card-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* --- Form inputs, selects --- */
@media (max-width: 768px) {
    input[type="text"], input[type="number"],
    input[type="email"], input[type="url"],
    input[type="search"], select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 0.7rem 1rem !important;
        border-radius: 10px !important;
    }

    .dt-select, .form-select, .dt-input {
        font-size: 16px !important;
    }
}

/* --- Sliders --- */
@media (max-width: 768px) {
    .dt-slider, input[type="range"] {
        width: 100% !important;
    }
}

/* --- Glass panels --- */
@media (max-width: 768px) {
    .dt-glass-panel, .glass-card, .card-panel {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* --- Tool section padding --- */
@media (max-width: 768px) {
    .tool-section, section.tool-section {
        padding-bottom: 32px !important;
    }

    .features-section {
        padding: 1.5rem 0 1rem !important;
    }
}

/* --- Privacy badge / format badges --- */
@media (max-width: 480px) {
    .privacy-badge {
        font-size: 0.74rem !important;
        padding: 5px 12px !important;
    }

    .format-badges {
        gap: 0.35rem !important;
    }

    .fmt-in, .fmt-out {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Keyword tags wrap properly --- */
@media (max-width: 768px) {
    .kw-tags, .verb-suggestions, .format-badges {
        flex-wrap: wrap !important;
    }
}

/* --- Case converter sticky → not sticky on mobile --- */
@media (max-width: 1100px) {
    .input-col {
        position: static !important;
    }
}

/* --- Global control row on image converter --- */
@media (max-width: 768px) {
    .global-controls {
        padding: 1rem !important;
    }

    .format-selector {
        flex-wrap: wrap !important;
    }
}

/* --- Meeting planner / complex tool layouts --- */
@media (max-width: 768px) {
    .planner-layout, .tool-grid, .split-layout, .two-pane {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* --- Drop zone on mobile --- */
@media (max-width: 768px) {
    .drop-zone {
        padding: 36px 20px !important;
    }

    .drop-zone h3 {
        font-size: 1.1rem !important;
    }
}

/* --- Stats strip wraps neatly --- */
@media (max-width: 640px) {
    .stats-strip {
        gap: 0.5rem !important;
        padding: 0.65rem 1rem !important;
        flex-wrap: wrap !important;
    }

    .stat span {
        font-size: 0.95rem !important;
    }

    .copy-row {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* --- Footer --- */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 0 !important;
        font-size: 0.82rem !important;
    }
}

/* --- Prevent horizontal overflow --- */
body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    img, canvas, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}
