/* AI_lid Dashboard — Mobile-first styles */
:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #242836;
    --border: #2e3345;
    --text: #e4e6eb;
    --text2: #9ca3af;
    --accent: #6366f1;
    --accent2: #818cf8;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --blue: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Nav */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand a {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent2);
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}
.nav-links a {
    color: var(--text2);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    transition: all .15s;
}
.nav-links a:hover { background: var(--surface2); color: var(--text); }
.nav-links a.active { background: var(--accent); color: white; }
.nav-links a.logout { color: var(--red); }

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.card-title {
    font-size: 14px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Grid */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr 1fr; }
    .health-summary,
    .health-groups,
    .health-details {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .health-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .health-stat strong {
        font-size: 24px;
    }
}

/* Stat cards */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}
.stat-label {
    font-size: 12px;
    color: var(--text2);
    margin-top: 4px;
}
.stat-value.green { color: var(--green); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.red { color: var(--red); }
.stat-value.blue { color: var(--blue); }
.stat-value.accent { color: var(--accent2); }

.account-kpi-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.account-kpi-row .stat-card {
    min-width: 140px;
    margin-bottom: 0;
}

/* Funnel */
.funnel-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.funnel-step:last-child { border-bottom: none; }
.funnel-bar {
    height: 24px;
    border-radius: 4px;
    background: var(--accent2);
    transition: width .5s ease;
    min-width: 4px;
}
.funnel-bar.is-zero { min-width: 0; }
.funnel-track {
    flex: 1;
    min-width: 100px;
    height: 24px;
    background: var(--surface2);
    border-radius: 4px;
    overflow: hidden;
}
.funnel-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 28px;
    margin-top: 12px;
}
.loss-list {
    padding-left: 18px;
    border-left: 1px solid var(--border);
}
.loss-list h3 {
    font-size: 13px;
    margin-bottom: 10px;
}
.funnel-label {
    font-size: 13px;
    min-width: 140px;
    color: var(--text2);
}
.funnel-count {
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Table */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
th {
    color: var(--text2);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}
tr:hover td { background: var(--surface2); }
.wrap-text {
    white-space: normal;
    line-height: 1.45;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.badge-green { background: rgba(34,197,94,.15); color: var(--green); }
.badge-yellow { background: rgba(234,179,8,.15); color: var(--yellow); }
.badge-red { background: rgba(239,68,68,.15); color: var(--red); }
.badge-blue { background: rgba(59,130,246,.15); color: var(--blue); }
.badge-gray { background: rgba(156,163,175,.15); color: var(--text2); }

.page-status-stack {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.bot-runtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.bot-runtime-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: currentColor;
    box-shadow: 0 0 0 3px currentColor;
    opacity: .9;
}
.bot-runtime-green {
    color: var(--green);
    background: rgba(34,197,94,.14);
    border-color: rgba(34,197,94,.28);
}
.bot-runtime-blue {
    color: var(--blue);
    background: rgba(59,130,246,.14);
    border-color: rgba(59,130,246,.28);
}
.bot-runtime-red {
    color: var(--red);
    background: rgba(239,68,68,.14);
    border-color: rgba(239,68,68,.28);
}

/* Forms */
input, textarea, select {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    width: 100%;
    transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}
textarea {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
    min-height: 300px;
    resize: vertical;
}
label {
    display: block;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 4px;
    margin-top: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .15s;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent2); }
.btn-danger {
    background: var(--red);
    color: white;
}
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.lead-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 16px;
}
.lead-attempts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--text2);
    font-size: 12px;
}
.lead-attempts span {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.manual-actions {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.manual-actions form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.manual-actions input {
    min-width: 0;
}
.lead-timeline {
    margin-top: 12px;
}
.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 18px;
}
.timeline-event::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 15px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.timeline-event:last-child::before {
    display: none;
}
.timeline-marker {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--blue);
}
.timeline-dialog .timeline-marker { background: var(--green); }
.timeline-validation .timeline-marker { background: var(--yellow); }
.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.timeline-head span, .timeline-status {
    color: var(--text2);
    font-size: 12px;
}
.timeline-body p {
    margin: 6px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.lead-posts article {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.lead-posts article:last-child { border-bottom: 0; }
.lead-posts p {
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Links */
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Progress bar */
.progress {
    height: 8px;
    background: var(--surface2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s ease;
}
.progress-fill.green { background: var(--green); }
.progress-fill.blue { background: var(--blue); }
.progress-fill.yellow { background: var(--yellow); }

/* Funnel health */
.funnel-health .card-title {
    margin-bottom: 4px;
}
.health-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.health-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.health-stat {
    min-width: 0;
}
.health-stat span,
.health-row span,
.health-list-row span {
    color: var(--text2);
    font-size: 13px;
}
.health-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.1;
}
.health-stat small {
    display: block;
    margin-top: 6px;
    color: var(--text2);
    font-size: 12px;
}
.health-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.health-section {
    min-width: 0;
    padding-left: 14px;
    border-left: 2px solid var(--border);
}
.health-section h3,
.health-details h3 {
    font-size: 13px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 10px;
}
.health-row,
.health-list-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    min-height: 28px;
}
.health-row + .health-row,
.health-list-row + .health-list-row {
    border-top: 1px solid rgba(46, 51, 69, .65);
}
.health-row strong,
.health-list-row strong {
    white-space: nowrap;
    font-size: 15px;
}
.health-row strong.value-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 12px;
}
.health-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.health-list-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    .health-summary,
    .health-groups,
    .health-details,
    .funnel-map-layout {
        grid-template-columns: 1fr;
    }
    .loss-list {
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}
@media (max-width: 480px) {
    .health-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .health-stat strong {
        font-size: 24px;
    }
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.alert-error { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.alert-warning { background: rgba(234,179,8,.15); color: var(--yellow); border: 1px solid rgba(234,179,8,.3); }

.notification-center {
    margin-bottom: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.notification-head h2 {
    margin: 0 0 3px;
    font-size: 16px;
}
.notification-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.notification-item {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--yellow);
    background: rgba(234,179,8,.07);
    font-size: 13px;
}
.notification-item span {
    color: var(--text2);
    overflow-wrap: anywhere;
}
.notification-error {
    border-left-color: var(--red);
    background: rgba(239,68,68,.07);
}

.muted {
    color: var(--text2);
    font-size: 13px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 18px;
}

.page-head h1 {
    margin-bottom: 6px;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

/* Warmup indicator */
.warmup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}
.warmup-passive { background: rgba(239,68,68,.15); color: var(--red); }
.warmup-minimal { background: rgba(234,179,8,.15); color: var(--yellow); }
.warmup-full { background: rgba(34,197,94,.15); color: var(--green); }

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.pagination a { background: var(--surface2); color: var(--text2); text-decoration: none; }
.pagination a:hover { background: var(--accent); color: white; }
.pagination span { background: var(--accent); color: white; }

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
}
.tabs a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text2);
    background: var(--surface);
    border: 1px solid var(--border);
}
.tabs a.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Comment link */
.comment-link {
    color: var(--accent2);
    font-size: 13px;
}

/* Content publishing */
.content-page-head { margin-bottom: 14px; }
.content-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.content-kpi-row .stat-card {
    min-width: 0;
    margin-bottom: 0;
}
.content-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(280px, .85fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}
.content-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.content-card-head .card-title { margin-bottom: 4px; }
.content-composer textarea {
    min-height: 190px;
    resize: vertical;
}
.content-file-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.content-settings-form {
    display: grid;
    gap: 12px;
}
.content-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.content-mode-switch label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    background: rgba(255,255,255,.02);
    cursor: pointer;
}
.content-mode-switch label.active {
    color: var(--text);
    border-color: rgba(59,130,246,.45);
    background: rgba(59,130,246,.12);
}
.content-mode-switch input {
    width: auto;
    margin: 0;
}
.content-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
}
.form-hint {
    margin: 6px 0 0;
    font-size: 12px;
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.content-readiness-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.content-readiness-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255,255,255,.02);
}
.content-readiness-item span {
    display: block;
    color: var(--text2);
    font-size: 12px;
    margin-bottom: 3px;
}
.content-readiness-item strong {
    color: var(--text);
    font-size: 15px;
}
.content-readiness-item.ok {
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.08);
}
.content-readiness-item.warn {
    border-color: rgba(234,179,8,.35);
    background: rgba(234,179,8,.08);
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 12px;
}
.section-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
}
.publication-list {
    display: grid;
    gap: 12px;
}
.publication-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    padding: 14px;
}
.publication-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.publication-titleline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.publication-date {
    color: var(--text2);
    font-size: 12px;
    white-space: nowrap;
}
.publication-preview {
    white-space: pre-wrap;
    line-height: 1.45;
    max-height: 220px;
    overflow: auto;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.05);
}
.publication-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    gap: 10px;
    margin-top: 10px;
}
.publication-media {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,.02);
}
.publication-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: rgba(0,0,0,.16);
}
.publication-media figcaption {
    padding: 7px 9px;
    color: var(--text2);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.publication-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.publication-meta span {
    max-width: 100%;
    overflow-wrap: anywhere;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--text2);
    font-size: 12px;
    background: rgba(255,255,255,.02);
}
.publication-result {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.publication-result a { color: var(--accent2); }
.publication-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.publication-published { border-color: rgba(34,197,94,.24); }
.publication-failed,
.publication-skipped { border-color: rgba(239,68,68,.25); }
.post-stats-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}
.post-stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.post-stats-table th,
.post-stats-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}
.post-stats-table th {
    color: var(--text2);
    font-weight: 600;
    background: rgba(255,255,255,.025);
}
.post-stats-table tr:last-child td {
    border-bottom: 0;
}
.post-stats-table a {
    color: var(--accent2);
}
.empty-state {
    display: grid;
    gap: 4px;
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text2);
}
.empty-state strong { color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Mobile responsive fixes ─── */
@media (max-width: 768px) {
    nav {
        padding: 0 8px;
        height: auto;
        min-height: 48px;
        flex-wrap: wrap;
    }
    .nav-links {
        gap: 2px;
        padding-bottom: 4px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a {
        padding: 6px 8px;
        font-size: 12px;
    }
    main { padding: 8px; }
    .card { padding: 12px; }
    h1 { font-size: 20px; margin-bottom: 12px; }
    /* Schedule table: stack on mobile */
    .schedule-table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        gap: 6px;
        align-items: center;
    }
    .schedule-table th {
        display: none;
    }
    .schedule-table td {
        border-bottom: none;
        padding: 2px 0;
    }
    .schedule-table td:first-child {
        width: 100%;
        font-weight: 600;
    }
    .schedule-table td:nth-child(2),
    .schedule-table td:nth-child(3) {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    /* Status row: stack vertically */
    .status-row {
        flex-direction: column;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    .page-head {
        flex-direction: column;
        gap: 8px;
    }
    .lead-detail-grid {
        grid-template-columns: 1fr;
    }
    .manual-actions form {
        grid-template-columns: 1fr;
    }
    .timeline-head {
        flex-direction: column;
        gap: 3px;
    }
    .notification-head {
        align-items: flex-start;
    }
    .notification-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .content-kpi-row {
        grid-template-columns: 1fr 1fr;
    }
    .content-workspace {
        grid-template-columns: 1fr;
    }
    .content-readiness-grid {
        grid-template-columns: 1fr;
    }
    .content-file-grid {
        grid-template-columns: 1fr;
    }
    .content-settings-grid,
    .content-mode-switch {
        grid-template-columns: 1fr;
    }
    .publication-head,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .publication-actions {
        justify-content: flex-start;
    }
    /* Control buttons: full width */
    .status-row form,
    .status-row .btn {
        width: 100%;
        text-align: center;
    }
    /* Warmup form: stack */
    .warmup-form {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .warmup-form select,
    .warmup-form .btn {
        width: 100%;
    }
    /* Quick action form: stack */
    .quick-action {
        flex-direction: column;
        align-items: stretch !important;
    }
    .quick-action select {
        width: 100% !important;
        min-width: unset !important;
    }
    /* Leads table: smaller font */
    .table-wrap table { font-size: 11px; }
    .table-wrap th, .table-wrap td { padding: 6px 8px; }
}
