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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #080d1a;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh
}

a {
    color: #60a5fa;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* ── Header ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #0d1424;
    border-bottom: 1px solid #1a2540;
    position: sticky;
    top: 0;
    z-index: 200
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc
}

.logo span {
    color: #3b82f6
}

.site-header nav {
    display: flex;
    gap: 16px
}

.site-header nav a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s
}

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

/* ── Page ── */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 20px
}

.page-title {
    font-size: clamp(26px, 4.5vw, 44px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px
}

.page-sub {
    text-align: center;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 12px;
    font-size: 15px
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(99, 102, 241, .1);
    border: 1px solid rgba(99, 102, 241, .25);
    color: #a5b4fc
}

/* ── Drop Zone ── */
.drop-zone {
    border: 2px dashed #1e3a5f;
    border-radius: 18px;
    padding: 52px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    background: linear-gradient(135deg, rgba(14, 22, 46, .7), rgba(10, 17, 36, .9));
    position: relative;
    margin-bottom: 28px;
    overflow: hidden
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0, rgba(56, 189, 248, .04) 0, transparent 70%);
    pointer-events: none
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(14, 30, 60, .9), rgba(10, 22, 50, .95));
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .08)
}

.drop-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, .3))
}

.drop-title {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px
}

.drop-sub {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 18px
}

.drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s
}

.drop-btn:hover {
    opacity: .88
}

.drop-formats {
    margin-top: 14px;
    font-size: 12px;
    color: #475569
}

#file-input {
    display: none
}

/* ── Controls Card ── */
.controls-card {
    background: #0d1424;
    border: 1px solid #1a2540;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 24px
}

.controls-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 18px
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px
}

@media(max-width:760px) {
    .controls-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:480px) {
    .controls-grid {
        grid-template-columns: 1fr
    }
}

.ctrl-group {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.ctrl-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    justify-content: space-between
}

.ctrl-val {
    font-weight: 400;
    color: #38bdf8
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #1e3a5f;
    outline: none;
    cursor: pointer
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .2)
}

.range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    cursor: pointer;
    border: none
}

.select-input {
    width: 100%;
    background: #080d1a;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 9px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color .2s
}

.select-input:focus {
    border-color: #38bdf8
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px
}

.toggle-label {
    font-size: 13px;
    color: #94a3b8
}

.toggle-switch {
    position: relative;
    width: 38px;
    height: 20px;
    flex-shrink: 0
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1e3a5f;
    border-radius: 999px;
    transition: .3s
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #64748b;
    border-radius: 50%;
    transition: .3s
}

input:checked+.toggle-slider {
    background: rgba(56, 189, 248, .3);
    border: 1px solid rgba(56, 189, 248, .4)
}

input:checked+.toggle-slider::before {
    transform: translateX(18px);
    background: #38bdf8
}

.target-kb-row {
    display: flex;
    align-items: center;
    gap: 8px
}

.target-kb-input {
    width: 90px;
    background: #080d1a;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 9px 12px;
    outline: none;
    transition: border-color .2s;
    -moz-appearance: textfield
}

.target-kb-input:focus {
    border-color: #38bdf8
}

.target-kb-input::-webkit-inner-spin-button,
.target-kb-input::-webkit-outer-spin-button {
    -webkit-appearance: none
}

.target-kb-label {
    font-size: 13px;
    color: #64748b
}

.mode-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 16px
}

.mode-pill {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #1e3a5f;
    background: transparent;
    color: #64748b;
    transition: all .2s
}

.mode-pill.active {
    background: rgba(56, 189, 248, .12);
    border-color: rgba(56, 189, 248, .4);
    color: #38bdf8
}

/* ── Action Bar ── */
.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #fff
}

.btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px)
}

.btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none
}

.btn-secondary {
    background: #0d1424;
    border: 1px solid #1e3a5f;
    color: #94a3b8
}

.btn-secondary:hover:not(:disabled) {
    border-color: #38bdf8;
    color: #38bdf8
}

.btn-secondary:disabled {
    opacity: .4;
    cursor: not-allowed
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff
}

.btn-success:hover {
    opacity: .88
}

/* ── File Queue ── */
.file-queue {
    margin-bottom: 24px
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.queue-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px
}

.queue-clear {
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
    transition: color .2s
}

.queue-clear:hover {
    color: #ef4444
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

/* ── File Row ── */
.file-row {
    background: #0d1424;
    border: 1px solid #1a2540;
    border-radius: 12px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 12px;
    align-items: center;
    transition: border-color .2s
}

.file-row.done {
    border-color: rgba(34, 197, 94, .2)
}

.file-row.error {
    border-color: rgba(239, 68, 68, .2)
}

.file-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden
}

.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.file-info {
    min-width: 0
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.file-sizes {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px
}

.file-sizes .saving {
    color: #22c55e;
    font-weight: 700
}

.file-sizes .error-msg {
    color: #ef4444
}

.file-progress {
    width: 100%;
    height: 3px;
    background: #1e3a5f;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden
}

.file-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transition: width .4s
}

.file-status {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 999px
}

.status-pending {
    color: #64748b;
    background: #13213a
}

.status-compressing {
    color: #38bdf8;
    background: rgba(56, 189, 248, .1);
    animation: pulse-status 1.2s infinite
}

.status-done {
    color: #22c55e;
    background: rgba(34, 197, 94, .1)
}

.status-error {
    color: #ef4444;
    background: rgba(239, 68, 68, .1)
}

.file-dl {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: color .2s;
    padding: 4px 8px;
    border-radius: 6px
}

.file-dl:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, .07)
}

.file-dl:disabled {
    opacity: .3;
    cursor: not-allowed
}

@keyframes pulse-status {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

/* ── Summary Bar ── */
.summary-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    background: #0d1424;
    border: 1px solid #1a2540;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px
}

.sum-item {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.sum-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px
}

.sum-value {
    font-size: 20px;
    font-weight: 900;
    color: #f8fafc
}

.sum-value.green {
    color: #22c55e
}

.dl-all-btn {
    margin-left: auto
}

/* ── Compare Slider ── */
.compare-section {
    margin-bottom: 28px
}

.compare-card {
    background: #0d1424;
    border: 1px solid #1a2540;
    border-radius: 16px;
    overflow: hidden
}

.compare-header {
    padding: 12px 18px;
    border-bottom: 1px solid #1a2540;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px
}

.compare-wrap {
    position: relative;
    user-select: none;
    overflow: hidden;
    max-height: 420px;
    cursor: col-resize
}

.compare-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    pointer-events: none
}

.compare-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.compare-after img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    pointer-events: none
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #38bdf8, #6366f1);
    cursor: col-resize;
    transform: translateX(-50%)
}

.compare-handle::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4)
}

.compare-label-before,
.compare-label-after {
    position: absolute;
    top: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none
}

.compare-label-before {
    left: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15)
}

.compare-label-after {
    right: 12px;
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .25)
}

.compare-placeholder {
    padding: 48px;
    text-align: center;
    color: #334155;
    font-size: 14px
}

/* ── SEO Section ── */
.seo-section {
    max-width: 860px;
    margin: 56px auto 0;
    padding: 0 20px
}

.seo-section h2 {
    font-size: 21px;
    font-weight: 800;
    color: #f8fafc;
    margin: 36px 0 12px
}

.seo-section p {
    color: #94a3b8;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7
}

.seo-section strong {
    color: #e2e8f0
}

.seo-section ul {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.9;
    padding-left: 20px;
    margin-bottom: 16px
}

.seo-section li::marker {
    color: #38bdf8
}

.seo-section code {
    font-family: monospace;
    font-size: 13px;
    color: #7dd3fc;
    background: #0d1e38;
    padding: 1px 6px;
    border-radius: 3px
}

.highlight-box {
    background: rgba(56, 189, 248, .05);
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0
}

.highlight-box p {
    margin: 0;
    font-size: 14px;
    color: #7dd3fc
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #0d1424;
    border-radius: 10px;
    overflow: hidden
}

.seo-table th,
.seo-table td {
    padding: 9px 14px;
    text-align: left;
    border-bottom: 1px solid #1a2540;
    font-size: 13px
}

.seo-table th {
    background: #080d1a;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700
}

.seo-table td {
    color: #e2e8f0
}

.seo-table tr:last-child td {
    border-bottom: none
}

/* ── FAQ ── */
.faq-section {
    margin-top: 36px
}

.faq-item {
    border-bottom: 1px solid #1a2540
}

.faq-q {
    padding: 14px 0;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
    position: relative;
    padding-right: 28px;
    font-size: 15px
}

.faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 20px;
    color: #38bdf8;
    transition: transform .2s
}

.faq-q.open::after {
    transform: rotate(45deg)
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.75;
    transition: max-height .3s, padding .3s
}

.faq-a.open {
    max-height: 500px;
    padding-bottom: 14px
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
    border-top: 1px solid #0d1424;
    color: #64748b;
    font-size: 13px
}

/* ── Responsive ── */
@media(max-width:700px) {
    .site-header {
        flex-wrap: wrap;
        gap: 8px
    }

    .page-wrapper {
        padding: 24px 14px
    }

    .action-bar {
        flex-direction: column
    }

    .summary-bar {
        gap: 12px
    }

    .dl-all-btn {
        margin-left: 0
    }
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.animate-in {
    animation: fadeUp .35s ease both
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.spin {
    animation: spin .7s linear infinite;
    display: inline-block
}

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

/* ── MOBILE-LAYOUT-FIX ── */

/* ── Mobile fix: collapse file-row grid ── */
@media (max-width: 768px) {
    .file-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        padding: 12px !important;
    }
    .file-row .file-thumb {
        display: none !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;
    }
}
