:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
}

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

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

/* Header */
.site-header {
    background: #fff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

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

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-left: 24px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Hero */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-badge {
    background: #dbeafe;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    margin: 16px 0;
    letter-spacing: -0.02em;
}

.page-sub {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Layout */
.app-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-panel,
.output-panel {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid var(--border);
    overflow: hidden;
}

.panel-header {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.drop-zone {
    position: relative;
    padding: 0;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 20px;
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.file-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    border: 2px dashed var(--primary);
    margin: 10px;
    border-radius: 8px;
}

.drop-zone.dragover .file-overlay {
    display: flex;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 600;
}

.input-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.action-btn-sm {
    background: transparent;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.action-btn-sm:hover {
    background: #f1f5f9;
}

.action-btn-primary {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Table Area */
.table-controls {
    padding: 12px 24px;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border);
}

#table-search {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
}

.table-wrapper {
    max-height: 500px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

thead th {
    background: #f8fafc;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    color: #334155;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody tr:nth-child(even) {
    background: #fdfdfd;
}

tbody tr:hover {
    background: #f1f5f9;
}

.row-badge {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* SEO Content */
.seo-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.reason-card {
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.reason-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
    margin-bottom: 16px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 20px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        display: none;
    }

    .page-title {
        font-size: 32px;
    }

    .input-footer {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    #table-search {
        width: 100%;
    }
}

/* ============================================
   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;
    }
}


/* ============================================================
   === 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;
    }
}

/* ── 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;
    }
}
