body.admin-sb-body,
body.admin-login-body {
    font-family: "Nunito", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.admin-login-body .brand-mark {
    font-size: 3rem;
    color: #4e73df;
}

.admin-login-body .login-card-side {
    min-height: 100%;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.95), rgba(28, 200, 138, 0.85));
    color: #fff;
}

.admin-login-body .login-card-side .lead {
    color: rgba(255, 255, 255, 0.9);
}

.admin-page-head {
    margin-bottom: 1.5rem;
}

.admin-page-head h1 {
    margin-bottom: 0.25rem;
}

.editor-shell {
    display: grid;
    gap: 1rem;
}

.editor-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.save-status {
    font-size: 0.95rem;
    color: #5a5c69;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.editor-main,
.editor-sidebar {
    min-width: 0;
}

.editor-card {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
}

.editor-card .card-header {
    background: #fff;
}

.editor-field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.editor-field:last-child {
    margin-bottom: 0;
}

.editor-field label,
.editor-field legend {
    font-weight: 700;
    margin-bottom: 0;
    color: #3a3b45;
}

.slug-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.choice-list {
    display: grid;
    gap: 0.5rem;
    max-height: 16rem;
    overflow: auto;
    padding: 0.25rem 0.1rem 0.25rem 0;
}

.choice-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.choice-list input[type="checkbox"] {
    width: auto;
}

.seo-panel {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    padding: 1rem;
}

.seo-panel summary {
    cursor: pointer;
    font-weight: 700;
    color: #3a3b45;
}

.seo-panel[open] summary {
    margin-bottom: 1rem;
}

.seo-preview {
    border: 1px dashed #d1d3e2;
    border-radius: 0.35rem;
    padding: 1rem;
    background: #f8f9fc;
}

.seo-preview-title {
    color: #1a0dab;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.seo-preview-url {
    color: #0f7b0f;
    font-size: 0.92rem;
    margin-top: 0.2rem;
    word-break: break-all;
}

.seo-preview-description {
    margin-top: 0.35rem;
    color: #5a5c69;
}

.media-preview {
    display: grid;
    gap: 0.5rem;
}

.media-preview img {
    width: 100%;
    height: auto;
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
}

.article-list-card h2,
.revision-card h2 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.article-actions form {
    margin: 0;
}

.article-actions .btn {
    min-width: 9rem;
}

.editor-sidebar .btn,
.editor-actions .btn {
    white-space: nowrap;
}

.table-meta td,
.table-meta th {
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .slug-row {
        grid-template-columns: 1fr;
    }

    .editor-actions,
    .article-actions {
        width: 100%;
    }

    .editor-actions .btn,
    .article-actions .btn,
    .article-actions form,
    .article-actions form .btn {
        width: 100%;
    }
}
