.seo-admin-page {
    color: var(--nb-text, #283046);
}

.seo-admin-nav,
.seo-page-header,
.seo-panel-header,
.seo-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.seo-admin-nav {
    justify-content: flex-start;
}

.seo-panel,
.seo-metric {
    background: #ffffff;
    border: 1px solid var(--nb-border, #e6eaf5);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
}

.seo-panel {
    padding: 1rem;
}

.seo-metric {
    min-height: 7rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.seo-metric span {
    color: var(--nb-muted, #6b7280);
    font-size: 0.95rem;
}

.seo-metric strong {
    font-size: 2rem;
    line-height: 1;
}

.seo-form .form-control,
.seo-form .form-select {
    min-height: 2.75rem;
}

.seo-form textarea.form-control {
    min-height: auto;
}

.seo-topic-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.75rem;
}

.seo-topic-option {
    min-height: 3.25rem;
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    border: 1px solid var(--nb-border, #e6eaf5);
    border-radius: 8px;
    background: #f8fafc;
}

.seo-topic-actions .btn {
    white-space: nowrap;
}

.seo-code-area {
    min-height: 18rem;
}

.seo-json-editor {
    min-height: 34rem;
}

.seo-json-preview {
    max-height: 42rem;
    overflow: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    white-space: pre-wrap;
}

.seo-preview-frame {
    width: 100%;
    min-height: 48rem;
    border: 1px solid var(--nb-border, #e6eaf5);
    border-radius: 8px;
    background: #ffffff;
}

.seo-media-thumb {
    display: block;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    object-fit: cover;
    border: 1px solid var(--nb-border, #e6eaf5);
    border-radius: 6px;
    background: #f8fafc;
}

.seo-copy-group {
    min-width: 18rem;
}

.seo-tab-content {
    padding-top: 1rem;
}

.seo-pagination {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .seo-page-header,
    .seo-panel-header,
    .seo-form-actions {
        align-items: stretch;
    }

    .seo-page-header > *,
    .seo-form-actions > * {
        width: 100%;
    }
}
