:root {
    --navy: #0f3952;
    --navy-dark: #0a1f2c;
    --orange: #e69140;
    --bg: #f4f7fa;
    --white: #fff;
    --border: #d9e2ea;
    --muted: #5f6f7d;
    --danger: #c0392b;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Questrial', sans-serif;
    --font-form-label: 'Lato', sans-serif;
    --font-form-input: 'Lato', sans-serif;
    --form-label-color: var(--navy-dark);
    --form-input-color: #3d4449;
    --form-input-size: calc(1rem + 2px);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--navy-dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 420px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(15, 57, 82, 0.08);
}

.login-card h1,
.topbar h1,
.card h2,
.card h3 {
    margin: 0 0 12px;
    color: var(--navy);
}

.btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

[hidden] {
    display: none !important;
}

.login-card p,
.muted {
    color: var(--muted);
    line-height: 1.5;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-form-label);
    font-size: 1rem;
    font-weight: 700;
    color: var(--form-label-color);
    margin-bottom: 16px;
}

input,
textarea,
select {
    font-family: var(--font-form-input);
    font-size: var(--form-input-size);
    font-weight: 400;
    color: var(--form-input-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #7a8694;
    font-weight: 400;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover {
    color: var(--navy);
    background: #eef3f7;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye-off { display: block !important; }
.password-toggle[aria-pressed="false"] .icon-eye-off { display: none; }

textarea { resize: vertical; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--orange);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary {
    background: var(--navy);
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.error,
.status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
}

.error {
    background: #fdecea;
    color: var(--danger);
}

.status {
    background: #eaf5ee;
    color: #1f6b3f;
}

.app {
    min-height: 100vh;
    background: linear-gradient(165deg, #f0f5f9 0%, var(--bg) 42%, #faf8f5 100%);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-topbar__logo img {
    height: 42px;
    width: auto;
    display: block;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar__link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.admin-topbar__logout {
    padding: 10px 18px;
}

.main {
    padding: 28px 24px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-hub {
    margin-bottom: 28px;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header--left {
    text-align: left;
    margin-bottom: 20px;
}

.display-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4px;
    min-height: 108px;
    padding: 18px 20px;
    border: none;
    border-radius: 18px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 57, 82, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.2) 0%, transparent 42%);
    pointer-events: none;
}

.admin-nav-card:hover,
.admin-nav-card.is-active {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 57, 82, 0.18);
}

.admin-nav-card.is-active {
    outline: 3px solid rgba(230, 145, 64, 0.55);
    outline-offset: 2px;
}

.admin-nav-card__tag {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.admin-nav-card__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-nav-card--dashboard { background: linear-gradient(135deg, #0f3952 0%, #1a5f7a 100%); }
.admin-nav-card--site { background: linear-gradient(135deg, #1a5f7a 0%, #3b77ac 100%); }
.admin-nav-card--cookie { background: linear-gradient(135deg, #5c4d7a 0%, #3d3560 100%); }
.admin-nav-card--accessibility { background: linear-gradient(135deg, #2f6b5c 0%, #1a4d42 100%); }
.admin-nav-card--chatbot-settings { background: linear-gradient(135deg, #1a5f7a 0%, #0f3952 100%); }
.admin-nav-card--smtp { background: linear-gradient(135deg, #2f5f9c 0%, #4a8fb8 100%); }
.admin-nav-card--recaptcha { background: linear-gradient(135deg, #0f3952 0%, #2f5f9c 100%); }
.admin-nav-card--security { background: linear-gradient(135deg, #2a2a2a 0%, #0a1f2c 100%); }
.admin-nav-card--custom-code { background: linear-gradient(135deg, #1a5f7a 0%, #0f3952 100%); }
.admin-nav-card--seo { background: linear-gradient(135deg, #e69140 0%, #c97428 100%); }
.admin-nav-card--reviews { background: linear-gradient(135deg, #3b77ac 0%, #1a5f7a 100%); }
.admin-nav-card--leads { background: linear-gradient(135deg, #0a1f2c 0%, #0f3952 100%); }
.admin-nav-card--chat { background: linear-gradient(135deg, #1a5f7a 0%, #0f3952 100%); }

.admin-panels {
    position: relative;
}

.admin-panel {
    display: none;
}

.admin-panel.is-visible {
    display: block;
}

.admin-subnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-subnav-card {
    min-height: 72px;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 57, 82, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-subnav-card:hover,
.admin-subnav-card.is-active {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 57, 82, 0.16);
}

.admin-subnav-card.is-active {
    outline: 3px solid rgba(230, 145, 64, 0.5);
    outline-offset: 2px;
}

.admin-subnav-card--global { background: linear-gradient(135deg, #0f3952 0%, #1a5f7a 100%); }
.admin-subnav-card--schema { background: linear-gradient(135deg, #3a3a3a 0%, #1f1f1f 100%); }
.admin-subnav-card--sitemap { background: linear-gradient(135deg, #2f5f9c 0%, #4a8fb8 100%); }
.admin-subnav-card--pages { background: linear-gradient(135deg, #e69140 0%, #c97428 100%); }
.admin-subnav-card--redirects { background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%); }
.admin-subnav-card--files { background: linear-gradient(135deg, #0a1f2c 0%, #0f3952 100%); }

.seo-panel {
    display: none;
}

.seo-panel.is-visible {
    display: block;
}

.redirect-add-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.redirects-table-wrap code {
    font-size: 0.85rem;
    word-break: break-all;
}

.redirects-table-wrap .btn-small {
    white-space: nowrap;
}

#custom-code-form textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
}

.featured-image-field .field-label {
    display: block;
    font-family: var(--font-form-label);
    font-size: 1rem;
    font-weight: 700;
    color: var(--form-label-color);
    margin-bottom: 6px;
}

.featured-image-preview {
    margin: 12px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 360px;
    background: #f8fafc;
}

.featured-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
}

.featured-image-preview--avatar {
    max-width: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.featured-image-preview--avatar img {
    max-height: 120px;
    aspect-ratio: 1;
    object-fit: cover;
}

.featured-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.feature-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
}

@media (max-width: 900px) {
    .feature-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .feature-toggle-grid {
        grid-template-columns: 1fr;
    }
}

.admin-section {
    margin-bottom: 0;
}

.section-title {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 1.5rem;
}

.topbar {
    display: none;
}

.card h2,
.card h3 {
    margin: 0 0 12px;
    color: var(--navy);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--navy);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.form-grid .full,
.form-grid h2,
.form-grid h3,
.form-grid .actions,
.form-grid .status,
.form-grid .notice {
    grid-column: 1 / -1;
}

.checkbox {
    flex-direction: row;
    align-items: center;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.notice {
    background: #f7fbff;
    border: 1px solid #d7e7f5;
    border-radius: 16px;
    padding: 16px 18px;
}

.notice ol {
    margin: 12px 0 0;
    padding-left: 20px;
    line-height: 1.6;
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #eef3f7;
    color: var(--navy);
}

.badge.ok {
    background: #eaf5ee;
    color: #1f6b3f;
}

.badge.warn {
    background: #fff4e8;
    color: #9a5b13;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.debug-log {
    background: #0f1720;
    color: #d7e2ec;
    border-radius: 14px;
    padding: 16px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 0.85rem;
}

.code-editor {
    font-family: Consolas, 'Courier New', monospace;
    font-size: calc(0.85rem + 2px);
    color: var(--form-input-color);
    line-height: 1.5;
    min-height: 180px;
    resize: vertical;
}

.seo-page-toolbar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 16px;
    margin: 16px 0 20px;
}

.seo-pages-table {
    max-height: 420px;
}

.seo-page-editor {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.seo-page-editor__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.seo-page-form {
    margin-top: 8px;
}

.seo-row {
    cursor: pointer;
}

.seo-row:hover,
.seo-row.is-selected {
    background: #f7fafc;
}

.seo-score-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-score {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 4px solid transparent;
}

.seo-score--good {
    background: #eaf5ee;
    color: #1f6b3f;
    border-color: #b8e0c8;
}

.seo-score--ok {
    background: #fff4e8;
    color: #9a5b13;
    border-color: #f5d9b8;
}

.seo-score--poor {
    background: #fdecea;
    color: #b42318;
    border-color: #f5c2c0;
}

.seo-grade-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.seo-grade-pill--good { background: #eaf5ee; color: #1f6b3f; }
.seo-grade-pill--ok { background: #fff4e8; color: #9a5b13; }
.seo-grade-pill--poor { background: #fdecea; color: #b42318; }

.seo-scan-results {
    margin-top: 20px;
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.seo-scan-results__header {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8edf2;
}

.seo-scan-check {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #e8edf2;
}

.seo-scan-check:last-child {
    border-bottom: none;
}

.seo-scan-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.seo-scan-dot--good { background: #2e9b5f; }
.seo-scan-dot--warn { background: #e69140; }
.seo-scan-dot--bad { background: #d64545; }

.type-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #eef3f7;
    color: var(--navy);
}

.type-pill--post {
    background: #eef5ff;
    color: #2f5f9c;
}

code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.88em;
    background: #eef3f7;
    padding: 2px 6px;
    border-radius: 6px;
}

.card--full {
    margin-bottom: 20px;
}

.show-archived-toggle {
    margin: 12px 0 16px;
    flex-direction: row;
    align-items: center;
}

.lead-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.lead-pill--hot {
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f5c2c0;
}

.lead-pill--high {
    background: #eaf5ee;
    color: #1f6b3f;
    border: 1px solid #b8e0c8;
}

.lead-pill--medium {
    background: #fff4e8;
    color: #9a5b13;
    border: 1px solid #f5d9b8;
}

.lead-pill--low {
    background: #eef3f7;
    color: var(--muted);
    border: 1px solid var(--border);
}

.topic-pill {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef3f7;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-row {
    cursor: pointer;
}

.chat-row:hover {
    background: #f7fafc;
}

.chat-row.is-archived {
    opacity: 0.65;
}

.chat-modal {
    border: none;
    border-radius: 20px;
    padding: 0;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    box-shadow: 0 24px 60px rgba(15, 57, 82, 0.2);
}

.chat-modal::backdrop {
    background: rgba(10, 31, 44, 0.55);
}

.chat-modal__inner {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
}

.chat-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.chat-modal__header h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

.chat-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-modal__close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.chat-modal__contact {
    margin: 0 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid #d7e7f5;
}

.chat-modal__contact strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
}

.chat-modal__transcript {
    padding: 20px 24px;
    overflow: auto;
    flex: 1;
    display: grid;
    gap: 12px;
    background: #f8fafc;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-bubble--user {
    justify-self: end;
    background: var(--navy);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble--assistant {
    justify-self: start;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}

.lead-row {
    cursor: pointer;
}

.lead-row:hover td {
    background: #f5f9fc;
}

.lead-row:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.lead-preview {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--accent);
}

.lead-modal__body {
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.6;
}

.traffic-report__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.traffic-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.traffic-stat {
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.traffic-stat strong {
    display: block;
    font-size: 1.35rem;
    margin-top: 4px;
}

.traffic-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.traffic-chart-wrap {
    min-height: 260px;
    position: relative;
}

.traffic-queries h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.analytics-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px 8px;
    margin: 0;
}

.seo-fieldset legend {
    font-weight: 600;
    padding: 0 8px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #fafcfd;
}

.faq-item__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.knowledge-import-actions {
    flex-wrap: wrap;
}

.knowledge-json-details {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    background: #fafcfd;
}

.knowledge-json-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
}

.code-textarea {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    resize: vertical;
    min-height: 200px;
}

.knowledge-schema-example {
    max-height: 320px;
    margin: 8px 0 16px;
}

.seo-preview-panel,
.seo-validation-results {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafb;
}

.code-preview {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    max-height: 420px;
    overflow: auto;
}

.validation-item {
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.validation-item--error { background: #fdecea; color: #a12622; }
.validation-item--warn { background: #fff8e6; color: #8a6100; }

.export-mode-banner {
    background: #fff8e6;
    color: #8a6100;
    padding: 12px 20px;
    border-bottom: 1px solid #f0e2b6;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.export-mode .app {
    padding-top: 0;
}

.export-mode-banner code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .traffic-charts {
        grid-template-columns: 1fr;
    }
}

.empty {
    color: var(--muted);
    font-style: italic;
}

@media (max-width: 1100px) {
    .stats-grid,
    .grid-2,
    .seo-page-toolbar,
    .admin-nav-grid,
    .admin-subnav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-nav-grid,
    .admin-subnav {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        flex-wrap: wrap;
    }
}
