:root {
    --bg: #f7f7f4;
    --surface: #ffffff;
    --surface-muted: #f0f3ef;
    --ink: #20231f;
    --muted: #687066;
    --line: #d9ddd5;
    --accent: #2f6b4f;
    --accent-dark: #214d39;
    --accent-soft: #e5f2e9;
    --gold: #b7791f;
    --danger: #b42318;
    --danger-soft: #fde7e4;
    --warn: #a15c07;
    --warn-soft: #fff4d8;
    --good: #1f7a4d;
    --radius: 8px;
    --shadow: 0 12px 30px rgba(32, 35, 31, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: 0.75rem 0.85rem;
}

textarea {
    resize: vertical;
}

label {
    display: block;
    margin: 1rem 0 0.35rem;
    font-weight: 700;
    color: #33372f;
}

.site-container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-160%);
    border-radius: 4px;
    background: var(--accent-dark);
    color: #ffffff;
    padding: 0.65rem 0.85rem;
    font-weight: 800;
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: none;
}

.site-header__inner,
.site-footer__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    margin-top: 4rem;
}

.site-logo,
.backend-logo {
    font-weight: 850;
    font-size: 1.25rem;
}

.site-nav,
.backend-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a,
.backend-nav a,
.site-footer a {
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover,
.backend-nav a:hover,
.site-footer a:hover {
    color: var(--accent);
}

.blog-hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.blog-hero__inner {
    padding: 2.6rem 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--accent-dark);
    font-weight: 700;
}

.blog-hero__copy {
    max-width: 760px;
}

.blog-hero h1,
.article-header h1,
.backend-heading h1 {
    margin: 0;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: 0;
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.blog-hero p,
.article-header p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.blog-search,
.filter-bar {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto;
    gap: 0.75rem;
    align-items: center;
}

.bulk-toolbar {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.bulk-toolbar .filter-field {
    width: min(240px, 100%);
}

.bulk-toolbar__count {
    min-width: 92px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.65rem 0;
}

.data-table input[type="checkbox"] {
    width: auto;
    min-width: 1.1rem;
    min-height: 1.1rem;
    accent-color: var(--accent-dark);
}

.calendar-heading {
    align-items: center;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.calendar-navigation strong {
    min-width: 145px;
    text-align: center;
}

.calendar-shell {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
}

.calendar-weekdays span {
    padding: 0.8rem 0.65rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-align: right;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 150px;
    padding: 0.65rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
    border-bottom: 0;
}

.calendar-day time {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    margin: 0 0 0.55rem auto;
    border-radius: 50%;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.8rem;
    text-align: center;
}

.calendar-day.is-outside {
    background: color-mix(in srgb, var(--surface) 94%, var(--muted) 6%);
}

.calendar-day.is-outside time,
.calendar-day.is-outside .calendar-empty {
    opacity: 0.52;
}

.calendar-day.is-today time {
    background: var(--accent-dark);
    color: #ffffff;
}

.calendar-entries {
    display: grid;
    gap: 0.35rem;
}

.calendar-entry {
    display: grid;
    gap: 0.12rem;
    padding: 0.45rem 0.5rem;
    border-left: 3px solid var(--line);
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
    color: inherit;
    text-decoration: none;
}

.calendar-entry:hover {
    background: color-mix(in srgb, var(--surface) 75%, var(--accent) 25%);
}

.calendar-entry span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.calendar-entry strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.calendar-entry.status-scheduled {
    border-left-color: #b7791f;
}

.calendar-entry.status-published {
    border-left-color: #23885c;
}

.calendar-entry.status-review {
    border-left-color: #6a60b8;
}

.calendar-empty {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: 0.62rem 0.95rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button--dark {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.button--dark:hover {
    background: var(--accent);
    color: #fff;
}

.button--ghost {
    background: var(--surface-muted);
}

.button--danger {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #f5b7b1;
}

.revision-list {
    max-width: 920px;
}

.revision-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.revision-item p {
    margin: 0.2rem 0 0;
}

.activity-item,
.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--line);
}

.activity-item p,
.notification-item p {
    margin: 0.2rem 0;
}

.activity-event,
.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3rem;
    min-height: 1.3rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    text-transform: capitalize;
}

.notification-item.is-unread {
    background: var(--accent-soft);
}

.media-unused-toggle {
    margin: 0;
    white-space: nowrap;
}

.media-unused-toggle input {
    width: auto;
}

@media (max-width: 620px) {
    .revision-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-item,
    .notification-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.button--small {
    min-height: 34px;
    padding: 0.42rem 0.7rem;
    font-size: 0.9rem;
}

.button--full {
    width: 100%;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    padding-top: 2rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.featured-article__media {
    background: var(--surface-muted);
    min-height: 320px;
}

.featured-article__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article__content {
    padding: 1.8rem 1.5rem;
    align-self: center;
}

.featured-article h2,
.blog-card h2 {
    line-height: 1.22;
    letter-spacing: 0;
}

.featured-article h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin: 0.6rem 0;
}

.section-label {
    margin: 0;
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 850;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
}

.blog-card__media {
    aspect-ratio: 16 / 9;
    background: var(--surface-muted);
    display: grid;
    place-items: center;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 2rem;
    font-weight: 900;
}

.blog-card__body {
    padding: 1rem;
}

.blog-card h2 {
    font-size: 1.15rem;
    margin: 0.75rem 0 0.5rem;
}

.blog-card p {
    color: var(--muted);
    margin: 0;
}

.blog-card__meta,
.eyebrow-row,
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.blog-card__meta {
    margin-top: 1rem;
    justify-content: space-between;
}

.pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 850;
}

.blog-sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

.sidebar-panel,
.form-section,
.table-wrap,
.notice,
.login-panel,
.preview-box,
.social-preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar-panel {
    padding: 1rem;
}

.sidebar-panel h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 2rem;
}

.pager {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pager__item {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.45rem 0.7rem;
    font-weight: 800;
}

.pager__item.is-current {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}

.pager__item.is-disabled {
    color: #a4aaa1;
    background: var(--surface-muted);
}

.preview-bar {
    background: var(--warn-soft);
    color: var(--warn);
    text-align: center;
    padding: 0.8rem;
    font-weight: 800;
}

.article-shell {
    background: #fff;
}

.article-header {
    padding: 2.5rem 0 1.5rem;
}

.article-header h1 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    max-width: 920px;
    margin-top: 0.75rem;
}

.article-image {
    margin-bottom: 2rem;
}

.article-image img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    gap: 2.5rem;
    align-items: start;
}

.toc {
    position: sticky;
    top: 1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.toc h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gold);
}

.toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 0.45rem 0;
}

.toc-level-3 {
    padding-left: 1rem;
}

.article-content {
    color: #2d332c;
    font-size: 1.08rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    line-height: 1.22;
    letter-spacing: 0;
    margin: 2rem 0 0.75rem;
}

.article-content h2 {
    font-size: 1.85rem;
}

.article-content h3 {
    font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table {
    margin: 1rem 0;
}

.article-content a {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
    color: #4f564d;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.article-content th,
.article-content td {
    border: 1px solid var(--line);
    padding: 0.75rem;
}

.article-content img {
    border-radius: var(--radius);
    height: auto;
}

.tag-row,
.share-row,
.prev-next,
.action-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.tag-row,
.share-row,
.prev-next {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.share-row a {
    color: var(--accent-dark);
    font-weight: 800;
}

.prev-next {
    justify-content: space-between;
}

.prev-next a {
    flex: 1 1 240px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    font-weight: 850;
}

.prev-next span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.related-section {
    padding-top: 2.5rem;
}

.backend-shell {
    background: #f4f5f1;
}

.backend-topbar {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.backend-main {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.backend-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.backend-heading h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.notice {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.notice--success {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.notice--error {
    background: var(--danger-soft);
    color: var(--danger);
}

.filter-bar {
    grid-template-columns: repeat(6, minmax(120px, 1fr)) auto auto;
    margin: 0 0 1rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: var(--surface-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #52584f;
}

.muted,
.help-text {
    color: var(--muted);
    font-size: 0.88rem;
}

.thumb {
    width: 88px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface-muted);
}

.thumb--empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.75rem;
}

.status-select {
    min-width: 130px;
    padding: 0.42rem 0.55rem;
}

.score,
.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 30px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
}

.score--good,
.is-good {
    background: var(--accent-soft);
    color: var(--good);
}

.score--warn,
.is-warn {
    background: var(--warn-soft);
    color: var(--warn);
}

.is-neutral {
    background: var(--surface-muted);
    color: var(--muted);
}

.score--bad {
    background: var(--danger-soft);
    color: var(--danger);
}

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

.editor-main,
.editor-sidebar {
    display: grid;
    gap: 1rem;
}

.editor-sidebar {
    position: sticky;
    top: 1rem;
}

.form-section {
    padding: 1rem;
}

.form-section h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

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

.check-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.8rem 0;
    font-weight: 700;
}

.check-row input {
    width: auto;
}

.image-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.preview-box {
    margin-top: 1rem;
    padding: 1rem;
}

.preview-box h3 {
    color: #1a0dab;
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0.35rem 0 0.2rem;
}

.preview-box span {
    color: #006621;
    word-break: break-word;
}

.preview-box p {
    color: #545454;
    margin: 0.35rem 0 0;
}

.social-preview {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem;
}

.social-preview__image {
    aspect-ratio: 1.91 / 1;
    background: var(--surface-muted);
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--muted);
    overflow: hidden;
}

.social-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.score-large {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-dark);
}

.check-list {
    padding: 0;
    margin: 0.75rem 0 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.check-list li {
    border-radius: var(--radius);
    padding: 0.65rem;
}

.check-list strong,
.check-list span {
    display: block;
}

.check-list span {
    font-size: 0.82rem;
}

.sticky-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ck-editor__editable_inline {
    min-height: 440px;
}

.inline-form,
.table-edit-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
    gap: 0.75rem;
    align-items: start;
}

.url-input {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.url-input span {
    flex: 0 0 auto;
    padding-left: 0.75rem;
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.url-input input {
    min-width: 0;
    border: 0;
    box-shadow: none;
}

.url-input:focus-within {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.editorial-note-form {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.editorial-note-form .button {
    justify-self: start;
}

.editorial-note-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.editorial-note {
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
}

.editorial-note__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.editorial-note__meta strong {
    color: var(--ink);
}

.editorial-note p {
    margin: 0.7rem 0;
    white-space: pre-wrap;
}

.editorial-note form {
    margin: 0;
}

.content-starter {
    margin: 0.4rem 0 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 93%, var(--accent) 7%);
}

.content-starter label {
    margin-top: 0;
}

.content-starter__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
}

.content-starter .help-text {
    margin: 0.55rem 0 0;
}

@media (max-width: 560px) {
    .content-starter__controls {
        grid-template-columns: 1fr;
    }
}

.table-edit-form {
    grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) minmax(180px, 1fr) auto auto;
}

.delete-inline {
    margin-top: 0.75rem;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
    padding: 1rem;
}

.login-panel {
    width: min(420px, 100%);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.login-panel h1 {
    margin: 1rem 0;
    line-height: 1.15;
}

.field-error {
    color: var(--danger);
    margin: 0.25rem 0 0;
}

@media (max-width: 1080px) {
    .blog-layout,
    .article-layout,
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .toc,
    .editor-sidebar {
        position: static;
    }

    .blog-grid,
    .blog-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header__inner,
    .site-footer__inner,
    .backend-heading,
    .backend-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .backend-topbar {
        display: flex;
        padding: 1rem;
    }

    .blog-search,
    .featured-article,
    .two-col,
    .social-preview,
    .inline-form,
    .table-edit-form,
    .sticky-actions {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .blog-grid--compact {
        grid-template-columns: 1fr;
    }

    .featured-article__media {
        min-height: 220px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .article-header h1,
    .blog-hero h1 {
        font-size: 2.2rem;
    }
}

/* Reusable blog theme */
:root {
    --bg: #0e0e0e;
    --surface: #141414;
    --surface-muted: #1f1f25;
    --ink: #fafaff;
    --muted: #9a9da1;
    --line: #292929;
    --accent: #3dc9a7;
    --accent-dark: #ffffff;
    --accent-soft: rgba(61, 201, 167, 0.12);
    --gold: #3dc9a7;
    --danger: #ff4d4f;
    --danger-soft: rgba(255, 77, 79, 0.12);
    --warn: #ffb366;
    --warn-soft: rgba(255, 179, 102, 0.14);
    --good: #3eb75e;
    --radius: 6px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input,
select,
textarea {
    background: #101010;
    border-color: #2b2b2b;
    color: #fafaff;
}

input::placeholder,
textarea::placeholder {
    color: #777b80;
}

label {
    color: #e8eaed;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(14, 14, 14, 0.84);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.site-footer {
    background: #0a0a0a;
    border-color: #202020;
}

.site-header__inner {
    min-height: 86px;
}

.site-logo--brand,
.backend-logo--brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo--brand img,
.backend-logo--brand img {
    width: 150px;
    height: auto;
}

.brand-wordmark {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.2;
}

.site-logo--brand span,
.backend-logo--brand span {
    color: #e8eaed;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-left: 1px solid #3a3a3a;
    padding-left: 0.75rem;
}

.site-nav a,
.backend-nav a {
    color: #fafaff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-nav a:hover,
.backend-nav a:hover {
    color: var(--accent);
}

.nav-action,
.button--dark {
    background: #fafaff;
    border-color: #fafaff;
    color: #141414 !important;
}

.nav-action {
    border-radius: 4px;
    padding: 0.72rem 1rem;
}

.button {
    border-color: #323232;
    background: #171717;
    color: #f6f6f6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
}

.button--dark {
    border-color: #3dc9a7;
    background: #3dc9a7;
    color: #10201b !important;
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button--dark:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #141414 !important;
}

.button--ghost {
    background: #202020;
    color: #f5f5f5;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: end;
    background: #171a1d;
    border-color: #202020;
}

.blog-hero__image,
.blog-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.blog-hero__image {
    object-fit: cover;
}

.blog-hero::after {
    content: "";
    background: linear-gradient(90deg, rgba(14, 16, 18, 0.95) 0%, rgba(14, 16, 18, 0.86) 38%, rgba(14, 16, 18, 0.28) 100%);
    pointer-events: none;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    padding: 8rem 0 4rem;
}

.breadcrumbs {
    color: #a5a8ad;
}

.breadcrumbs a {
    color: #fafaff;
}

.blog-hero h1,
.article-header h1,
.backend-heading h1 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.02;
}

.blog-hero h1 {
    max-width: 860px;
    font-size: clamp(3rem, 8vw, 6.8rem);
}

.blog-hero p {
    max-width: 690px;
    color: #d0d2d4;
    font-size: 1.15rem;
    line-height: 1.75;
}

.blog-search,
.filter-bar {
    padding: 0.75rem;
    background: rgba(20, 20, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.blog-layout {
    padding-top: 4rem;
}

.featured-article,
.blog-card,
.sidebar-panel,
.form-section,
.table-wrap,
.notice,
.login-panel,
.preview-box,
.social-preview {
    background: #141414;
    border-color: #292929;
    box-shadow: none;
}

.featured-article {
    grid-template-columns: 0.95fr 1.05fr;
    border-radius: 6px;
    margin-bottom: 1.6rem;
}

.featured-article__media,
.blog-card__media,
.social-preview__image,
.thumb,
.thumb--empty {
    background: #1f1f25;
}

.featured-article__content {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.featured-article h2,
.blog-card h2,
.related-section h2,
.sidebar-panel h2 {
    color: #ffffff;
}

.featured-article h2 a:hover,
.blog-card h2 a:hover,
.article-content a:hover {
    color: var(--accent);
}

.section-label {
    color: var(--accent);
    letter-spacing: 0.08em;
}

.blog-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #484848;
}

.blog-card__body {
    padding: 1.25rem;
}

.blog-card h2 {
    font-size: 1.28rem;
}

.blog-card p,
.featured-article p,
.muted,
.help-text,
.blog-card__meta,
.eyebrow-row,
.article-meta {
    color: #9a9da1;
}

.pill,
.tag-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #303030;
    border-radius: 4px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card__placeholder {
    background: #101010;
    color: #ffffff;
    border: 1px solid #343434;
}

.sidebar-list a {
    border-color: #292929;
    color: #d4d6d8;
}

.pager__item {
    background: #171717;
    border-color: #303030;
    color: #fafaff;
}

.pager__item.is-current {
    background: #fafaff;
    border-color: #fafaff;
    color: #141414;
}

.article-shell {
    background: #0e0e0e;
}

.article-header {
    position: relative;
    padding: 6.5rem 0 3rem;
}

.article-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    z-index: -1;
    background: #0e0e0e;
}

.article-header h1 {
    font-size: clamp(2.8rem, 7vw, 6rem);
}

.article-image img {
    border-radius: 6px;
    border: 1px solid #292929;
}

.article-content {
    color: #d8dadc;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #ffffff;
}

.article-content blockquote {
    border-color: var(--accent);
    color: #f3f3f3;
    background: #151515;
    padding: 1rem 1.25rem;
}

.article-content th,
.article-content td {
    border-color: #2c2c2c;
}

.toc {
    border-left-color: var(--accent);
}

.toc h2,
.toc a {
    color: #f5f5f5;
}

.tag-row,
.share-row,
.prev-next {
    border-color: #292929;
}

.prev-next a {
    background: #141414;
    border-color: #292929;
    color: #ffffff;
}

.backend-shell,
.auth-shell {
    background: #0e0e0e;
}

.backend-topbar {
    background: #101010;
    border-color: #292929;
}

.backend-main {
    padding-top: 2rem;
}

.data-table th {
    background: #1f1f25;
    color: #f4f4f4;
}

.data-table td {
    border-color: #292929;
    color: #d5d7d9;
}

.score--good,
.is-good {
    background: rgba(62, 183, 94, 0.13);
}

.score--warn,
.is-warn {
    background: rgba(61, 201, 167, 0.13);
}

.score--bad {
    background: rgba(255, 77, 79, 0.13);
}

.preview-box h3 {
    color: #8ab4f8;
}

.preview-box span {
    color: #7ee787;
}

.preview-box p {
    color: #c9d1d9;
}

.login-panel {
    background: #141414;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.login-panel h1 {
    color: #ffffff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .site-logo--brand img,
    .backend-logo--brand img {
        width: 124px;
    }

    .site-header__inner {
        min-height: auto;
        padding: 1rem 0;
    }

    .blog-hero {
        min-height: 500px;
    }

    .blog-hero h1 {
        font-size: 2.75rem;
    }
}

/* Professional polish pass */
.site-container {
    width: min(1240px, calc(100% - 40px));
}

.site-header__inner,
.site-footer__inner {
    border-inline: 1px solid rgba(255, 255, 255, 0.06);
    padding-inline: 24px;
}

.blog-hero__copy {
    max-width: 900px;
}

.blog-hero p {
    margin-bottom: 0;
}

.blog-search {
    max-width: 920px;
    margin-top: 2.2rem;
}

.featured-article,
.blog-card,
.sidebar-panel,
.form-section,
.table-wrap,
.login-panel,
.preview-box,
.social-preview,
.backend-kpi {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        #141414;
}

.featured-article {
    gap: 0;
    min-height: 380px;
}

.featured-article__media {
    position: relative;
    min-height: 380px;
}

.featured-article__media::after,
.blog-card__media::after,
.article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.28));
}

.blog-card__media,
.article-image {
    position: relative;
    overflow: hidden;
}

.featured-article__media img,
.blog-card__media img,
.article-image img {
    filter: saturate(1.04) contrast(1.02);
    transition: transform 0.45s ease;
}

.featured-article:hover .featured-article__media img,
.blog-card:hover .blog-card__media img {
    transform: scale(1.04);
}

.blog-card {
    min-height: 100%;
}

.blog-card__body {
    display: flex;
    min-height: 248px;
    flex-direction: column;
}

.blog-card__body > p {
    flex: 1;
}

.blog-sidebar {
    top: 108px;
}

.sidebar-panel {
    padding: 1.25rem;
}

.sidebar-panel h2 {
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.sidebar-list a {
    padding: 0.9rem 0;
}

.sidebar-list a:hover {
    color: #fff;
}

.backend-topbar {
    min-height: 82px;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(14, 14, 14, 0.9);
}

.backend-main {
    width: min(1440px, calc(100% - 40px));
    padding: 2.4rem 0 4rem;
}

.backend-heading {
    padding: 1.5rem;
    border: 1px solid #292929;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(61, 201, 167, 0.13), transparent 42%),
        #141414;
}

.backend-heading h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.backend-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.backend-kpi {
    border: 1px solid #292929;
    border-radius: 6px;
    padding: 1rem;
}

.backend-kpi span {
    display: block;
    color: #9a9da1;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.backend-kpi strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.command-panel {
    border: 1px solid #292929;
    border-radius: 6px;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        #141414;
}

.command-panel h2 {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1rem;
}

.mini-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-list li {
    display: grid;
    gap: 0.15rem;
}

.mini-list a {
    color: #f7f7f7;
    font-weight: 850;
}

.mini-list a:hover {
    color: var(--accent);
}

.mini-list span {
    color: #9a9da1;
    font-size: 0.84rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0 0.7rem;
    color: #f7f7f7;
    background: #191919;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.backend-nav .nav-action,
.button--create {
    border: 1px solid #3dc9a7;
    background: #3dc9a7;
    color: #141414 !important;
    box-shadow: 0 10px 28px rgba(61, 201, 167, 0.18);
}

.backend-nav .nav-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.9rem;
}

.backend-nav .nav-action:hover,
.button--create:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #141414 !important;
}

.empty-state {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #f6f6f6;
}

.filter-bar {
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.9fr) repeat(4, minmax(130px, 0.8fr)) auto auto;
    padding: 1rem;
}

.table-wrap {
    border-radius: 6px;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: #101010;
    border-bottom: 1px solid #303030;
    letter-spacing: 0.08em;
}

.data-table td {
    padding: 1rem;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.article-cell strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.thumb {
    width: 112px;
    height: 72px;
    border: 1px solid #303030;
}

.status-select {
    background: #101010;
    color: #f7f7f7;
    border-color: #363636;
}

.score {
    border-radius: 4px;
}

.editor-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 1.25rem;
}

.form-section {
    padding: 1.25rem;
}

.form-section h2 {
    color: #fff;
    font-size: 1.18rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2a2a2a;
}

.editor-sidebar {
    top: 104px;
}

.image-preview {
    border: 1px solid #303030;
}

.field-status {
    min-height: 1.25rem;
    margin: 0.35rem 0 0;
    color: #9a9da1;
    font-size: 0.86rem;
    font-weight: 800;
}

.field-status.is-good,
.autosave-status[data-state="success"],
.media-modal__status[data-state="success"] {
    color: #71d88b;
}

.field-status.is-warn,
.media-modal__status[data-state="error"] {
    color: #ffb366;
}

.live-seo-panel .score-large {
    margin-bottom: 0.85rem;
}

.tox.tox-tinymce {
    margin-top: 0.65rem;
    overflow: hidden;
    border: 1px solid #323943;
    border-radius: 6px;
    background: #111315;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.tox .tox-editor-header {
    border-bottom: 1px solid #303640 !important;
    background:
        linear-gradient(90deg, rgba(61, 201, 167, 0.08), transparent 48%),
        #171a1f !important;
    box-shadow: none !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary,
.tox .tox-menubar {
    background:
        linear-gradient(90deg, rgba(61, 201, 167, 0.08), transparent 48%),
        #171a1f !important;
}

.tox .tox-toolbar__group {
    border-color: #303640 !important;
}

.tox .tox-tbtn,
.tox .tox-mbtn,
.tox .tox-split-button {
    min-height: 34px !important;
    color: #f1f3f5 !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    background: #222a34 !important;
}

.tox .tox-mbtn {
    padding-inline: 0.78rem !important;
    background: #20262f !important;
}

.tox .tox-tbtn:hover,
.tox .tox-tbtn--enabled,
.tox .tox-mbtn:hover,
.tox .tox-split-button:hover {
    border-color: rgba(61, 201, 167, 0.5) !important;
    background: #2d251f !important;
    color: #fff !important;
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
    border-color: rgba(61, 201, 167, 0.72) !important;
    background: #3dc9a7 !important;
    color: #101010 !important;
}

.tox .tox-tbtn svg {
    fill: #f1f3f5 !important;
}

.tox .tox-tbtn:hover svg,
.tox .tox-tbtn--enabled svg {
    fill: currentColor !important;
}

.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-toolbar-textfield,
.tox .tox-combobox__input {
    border-color: #323943 !important;
    background: #20262f !important;
    color: #fff !important;
}

.tox .tox-collection--list .tox-collection__item--active,
.tox .tox-collection--list .tox-collection__item--enabled {
    background: rgba(61, 201, 167, 0.18) !important;
}

.tox .tox-statusbar {
    color: #a7adb5 !important;
    border-top: 1px solid #303640 !important;
    background: #15181d !important;
}

.tox .tox-edit-area__iframe {
    background: #111315 !important;
}

.media-modal[hidden] {
    display: none;
}

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
}

.media-modal__dialog {
    width: min(1120px, 100%);
    max-height: min(860px, calc(100vh - 40px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #343434;
    border-radius: 6px;
    background: #141414;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
}

.media-modal__header,
.media-modal__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #2a2a2a;
}

.media-modal__header h2 {
    margin: 0;
    color: #fff;
}

.media-modal__tools {
    align-items: stretch;
}

.media-modal__body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
}

.media-grid {
    min-height: 320px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.media-card {
    display: grid;
    gap: 0.55rem;
    border: 1px solid #303030;
    border-radius: 6px;
    padding: 0.55rem;
    background: #101010;
    color: #f7f7f7;
    text-align: left;
    cursor: pointer;
}

.media-card.is-active,
.media-card:hover {
    border-color: var(--accent);
    background: #191510;
}

.media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #080808;
}

.media-card span {
    min-width: 0;
    overflow: hidden;
    color: #d9dbde;
    font-size: 0.84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-detail {
    min-height: 0;
    overflow: auto;
    border: 1px solid #303030;
    border-radius: 6px;
    padding: 1rem;
    background: #101010;
}

.media-detail__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border: 1px solid #292929;
    border-radius: 4px;
    background: #060606;
}

.media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.media-modal__status {
    min-height: 1.4rem;
    margin: 0;
    padding: 0 1rem 1rem;
    color: #9a9da1;
    font-weight: 800;
}

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

.user-row-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.2fr) 130px minmax(170px, 1fr) 110px auto;
    gap: 0.65rem;
    align-items: center;
}

.inline-delete {
    margin-top: 0.65rem;
}

.rich-editor {
    margin-top: 0.65rem;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 6px;
    background: #0f0f0f;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.rich-editor__source {
    display: none;
}

.rich-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem;
    border-bottom: 1px solid #2b2b2b;
    background:
        linear-gradient(90deg, rgba(61, 201, 167, 0.12), transparent 38%),
        #151515;
}

.rich-editor__group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-right: 0.45rem;
    border-right: 1px solid #2d2d2d;
}

.rich-editor__group:last-child {
    border-right: 0;
}

.rich-editor__button,
.rich-editor__select {
    min-height: 36px;
    border: 1px solid #343434;
    border-radius: 4px;
    background: #101010;
    color: #f6f6f6;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.rich-editor__button {
    min-width: 36px;
    padding: 0 0.72rem;
    cursor: pointer;
}

.rich-editor__select {
    width: 142px;
    padding: 0 0.65rem;
}

.rich-editor__button:hover,
.rich-editor__select:hover {
    border-color: var(--accent);
    color: #fff;
}

.rich-editor__button.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #101010;
}

.rich-editor__surface {
    min-height: 520px;
    padding: clamp(1rem, 2vw, 1.65rem);
    background: #fff;
    color: #161616;
    font-size: 1rem;
    line-height: 1.75;
    outline: none;
    overflow-wrap: anywhere;
}

.rich-editor__surface:empty::before {
    content: attr(data-placeholder);
    color: #8a8f98;
}

.rich-editor__surface h2,
.rich-editor__surface h3,
.rich-editor__surface h4 {
    color: #111;
    line-height: 1.18;
}

.rich-editor__surface h2 {
    margin-top: 1.8rem;
    font-size: 1.85rem;
}

.rich-editor__surface h3 {
    margin-top: 1.45rem;
    font-size: 1.45rem;
}

.rich-editor__surface h4 {
    margin-top: 1.25rem;
    font-size: 1.16rem;
}

.rich-editor__surface p,
.rich-editor__surface ul,
.rich-editor__surface ol,
.rich-editor__surface blockquote,
.rich-editor__surface table,
.rich-editor__surface figure {
    margin: 0 0 1rem;
}

.rich-editor__surface a {
    color: #08745c;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-editor__surface blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1rem;
    background: #f7f7f7;
    color: #333;
    font-size: 1.06rem;
}

.rich-editor__surface table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid #dadde3;
    border-radius: 4px;
}

.rich-editor__surface th,
.rich-editor__surface td {
    border: 1px solid #dadde3;
    padding: 0.72rem;
    vertical-align: top;
}

.rich-editor__surface th {
    background: #f3f5f8;
    color: #171717;
}

.rich-editor__surface img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.rich-editor__surface figure {
    display: grid;
    gap: 0.45rem;
}

.rich-editor__surface figcaption {
    min-height: 1.4rem;
    color: #69707a;
    font-size: 0.88rem;
    font-style: italic;
}

.rich-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    border-top: 1px solid #2b2b2b;
    color: #9a9da1;
    font-size: 0.82rem;
    font-weight: 800;
}

.rich-editor__status[data-state="success"] {
    color: #71d88b;
}

.rich-editor__status[data-state="error"] {
    color: #ff9b7a;
}

.ck.ck-editor__main > .ck-editor__editable {
    background: #101010;
    color: #e8eaed;
    border-color: #303030;
}

.ck.ck-toolbar {
    background: #171717;
    border-color: #303030;
}

.sticky-actions {
    position: sticky;
    bottom: 1rem;
    z-index: 5;
    padding: 0.75rem;
    border: 1px solid #303030;
    border-radius: 6px;
    background: rgba(14, 14, 14, 0.9);
    backdrop-filter: blur(14px);
}

.login-panel {
    width: min(480px, 100%);
    padding: 2rem;
    border-color: #303030;
}

.login-submit,
.login-submit:disabled {
    min-height: 54px;
    border-color: #3a3a3a !important;
    background: #202020 !important;
    color: #f4f4f4 !important;
    opacity: 1;
}

.login-submit:not(.is-ready) {
    color: #d6d6d6 !important;
    cursor: not-allowed;
}

.login-submit.is-ready {
    border-color: #fafaff !important;
    background: #fafaff !important;
    color: #141414 !important;
    cursor: pointer;
}

.login-submit.is-ready:hover {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: #141414 !important;
}

.auth-shell {
    background:
        linear-gradient(90deg, rgba(14, 14, 14, 0.9), rgba(14, 14, 14, 0.72)),
        url("../images/editorial-workspace.jpg") center / cover no-repeat;
}

@media (max-width: 1180px) {
    .backend-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-sidebar {
        position: static;
    }

    .sticky-actions {
        position: sticky;
        bottom: 0.75rem;
    }

    .media-modal__body {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .media-grid {
        max-height: 380px;
    }

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

@media (max-width: 760px) {
    .site-container {
        width: min(100% - 28px, 1240px);
    }

    .site-header__inner,
    .site-footer__inner,
    .backend-heading {
        padding-inline: 0;
        border-inline: 0;
    }

    .backend-kpis {
        grid-template-columns: 1fr;
    }

    .media-modal {
        padding: 0.5rem;
    }

    .media-modal__header,
    .media-modal__tools {
        align-items: stretch;
        flex-direction: column;
    }

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

    .blog-card__body {
        min-height: auto;
    }

    .rich-editor__toolbar {
        align-items: stretch;
    }

    .rich-editor__group {
        width: 100%;
        flex-wrap: wrap;
        padding-right: 0;
        padding-bottom: 0.45rem;
        border-right: 0;
        border-bottom: 1px solid #2d2d2d;
    }

    .rich-editor__group:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .rich-editor__button {
        flex: 1 1 auto;
    }

    .rich-editor__select {
        width: 100%;
    }

    .rich-editor__surface {
        min-height: 420px;
    }
}

/* Public light theme */
body.site-shell {
    --bg: #f6f8f5;
    --surface: #ffffff;
    --surface-muted: #edf2ee;
    --ink: #17211b;
    --muted: #657169;
    --line: #dce4de;
    --accent: #16745a;
    --accent-dark: #0f5d49;
    --accent-soft: #e1f2eb;
    --gold: #8a651f;
    --shadow: 0 20px 55px rgba(26, 52, 38, 0.1);
    background: var(--bg);
    color: var(--ink);
}

.site-shell input,
.site-shell select,
.site-shell textarea {
    border-color: #d3ddd6;
    background: #ffffff;
    color: var(--ink);
}

.site-shell input::placeholder,
.site-shell textarea::placeholder {
    color: #88938c;
}

.site-shell .site-header {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(23, 33, 27, 0.1);
    box-shadow: 0 1px 0 rgba(23, 33, 27, 0.04);
}

.site-shell .site-header__inner,
.site-shell .site-footer__inner {
    border-inline-color: rgba(23, 33, 27, 0.08);
}

.site-shell .brand-wordmark {
    color: var(--ink);
}

.site-shell .site-logo--brand span {
    border-left-color: #ced8d1;
    color: #58655d;
}

.site-shell .site-nav a {
    color: #4f5d54;
}

.site-shell .site-nav a:hover {
    color: var(--accent);
}

.site-shell .nav-action {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #ffffff !important;
}

.site-shell .nav-action:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff !important;
}

.site-shell .blog-hero {
    min-height: 430px;
    background: #f1f5f2;
    border-color: #dce4de;
}

.site-shell .blog-hero::after {
    display: none;
}

.site-shell .breadcrumbs {
    color: #6f7a73;
}

.site-shell .breadcrumbs a {
    color: var(--accent-dark);
}

.site-shell .blog-hero h1,
.site-shell .article-header h1 {
    color: var(--ink);
}

.site-shell .blog-hero p {
    color: #536159;
}

.site-shell .blog-search {
    border-color: rgba(23, 33, 27, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(29, 55, 40, 0.12);
    backdrop-filter: blur(14px);
}

.site-shell .button {
    border-color: #d3ddd6;
    background: #ffffff;
    color: var(--ink);
}

.site-shell .button:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.site-shell .button--dark {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #ffffff !important;
}

.site-shell .button--dark:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff !important;
}

.site-shell .blog-layout {
    padding-top: 4.5rem;
}

.site-shell .featured-article,
.site-shell .blog-card,
.site-shell .sidebar-panel {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(30, 54, 40, 0.07);
}

.site-shell .featured-article {
    border-radius: 8px;
}

.site-shell .featured-article__media,
.site-shell .blog-card__media {
    background: var(--surface-muted);
}

.site-shell .featured-article__media::after,
.site-shell .blog-card__media::after,
.site-shell .article-image::after {
    background: linear-gradient(180deg, transparent 60%, rgba(15, 36, 25, 0.12));
}

.site-shell .featured-article h2,
.site-shell .blog-card h2,
.site-shell .related-section h2,
.site-shell .sidebar-panel h2 {
    color: var(--ink);
}

.site-shell .featured-article h2 a:hover,
.site-shell .blog-card h2 a:hover,
.site-shell .article-content a:hover {
    color: var(--accent);
}

.site-shell .section-label {
    color: var(--accent);
}

.site-shell .blog-card {
    border-radius: 8px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-shell .blog-card:hover {
    border-color: #b8c9be;
    box-shadow: 0 22px 50px rgba(30, 54, 40, 0.12);
}

.site-shell .blog-card p,
.site-shell .featured-article p,
.site-shell .blog-card__meta,
.site-shell .eyebrow-row,
.site-shell .article-meta {
    color: var(--muted);
}

.site-shell .pill,
.site-shell .tag-pill {
    border-color: #cce2d7;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.site-shell .sidebar-panel h2 {
    color: var(--ink);
}

.site-shell .sidebar-list a {
    border-color: var(--line);
    color: #536159;
}

.site-shell .sidebar-list a:hover {
    color: var(--accent-dark);
}

.site-shell .pager__item {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
}

.site-shell .pager__item.is-current {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #ffffff;
}

.site-shell .empty-state {
    border-color: #cdd8d0;
    background: #ffffff;
    color: var(--ink);
}

.site-shell .article-shell,
.site-shell .article-header::before {
    background: #ffffff;
}

.site-shell .blog-hero h1 {
    font-size: 3.5rem;
}

.site-shell .featured-article h2 {
    font-size: 2.25rem;
}

.site-shell .article-header h1 {
    font-size: 4.25rem;
}

.site-shell .article-shell {
    color: var(--ink);
}

.site-shell .article-image img {
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(26, 52, 38, 0.1);
}

.site-shell .article-content {
    color: #344139;
}

.site-shell .article-content h2,
.site-shell .article-content h3,
.site-shell .article-content h4,
.site-shell .toc h2,
.site-shell .toc a {
    color: var(--ink);
}

.site-shell .article-content a {
    color: var(--accent-dark);
}

.site-shell .article-content blockquote {
    border-color: var(--accent);
    background: #f1f6f2;
    color: #2d3b32;
}

.site-shell .article-content th,
.site-shell .article-content td,
.site-shell .tag-row,
.site-shell .share-row,
.site-shell .prev-next {
    border-color: var(--line);
}

.site-shell .prev-next a {
    border-color: var(--line);
    background: #f7f9f7;
    color: var(--ink);
}

.site-shell .prev-next a:hover {
    border-color: #b8c9be;
    background: #eef4ef;
}

.site-shell .site-footer {
    border-color: var(--line);
    background: #ffffff;
    color: #637068;
}

.site-shell .site-footer a {
    color: #536159;
}

.site-shell .site-footer a:hover {
    color: var(--accent);
}

@media (max-width: 760px) {
    .site-shell .blog-hero h1 {
        font-size: 2.35rem;
    }

    .site-shell .featured-article h2 {
        font-size: 1.65rem;
    }

    .site-shell .article-header h1 {
        font-size: 2.5rem;
    }

    .site-shell .blog-hero {
        min-height: 440px;
    }

    .site-shell .blog-layout {
        padding-top: 2.5rem;
    }
}

/* Backend and authentication light theme */
body.backend-shell,
body.auth-shell {
    --bg: #f4f6f4;
    --surface: #ffffff;
    --surface-muted: #edf1ee;
    --ink: #18221c;
    --muted: #68756d;
    --line: #d9e1dc;
    --accent: #1b8062;
    --accent-dark: #12664e;
    --accent-soft: #e3f2eb;
    --gold: #946d1f;
    --danger: #b42318;
    --danger-soft: #fdebea;
    --warn: #9b5d08;
    --warn-soft: #fff3d9;
    --good: #19734b;
    --shadow: 0 18px 50px rgba(31, 51, 40, 0.09);
    background: var(--bg);
    color: var(--ink);
}

.backend-shell input,
.backend-shell select,
.backend-shell textarea,
.auth-shell input,
.auth-shell select,
.auth-shell textarea {
    border-color: #cfd9d2;
    background: #ffffff;
    color: var(--ink);
}

.backend-shell input::placeholder,
.backend-shell textarea::placeholder,
.auth-shell input::placeholder,
.auth-shell textarea::placeholder {
    color: #8a958e;
}

.backend-shell label,
.auth-shell label {
    color: #344139;
}

.backend-shell .brand-wordmark,
.auth-shell .brand-wordmark {
    color: var(--ink);
}

.backend-shell .backend-logo--brand span,
.auth-shell .site-logo--brand span {
    border-left-color: #ccd6cf;
    color: #58655d;
}

.backend-shell .backend-topbar {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(23, 33, 27, 0.04);
}

.backend-shell .backend-nav a {
    color: #526057;
}

.backend-shell .backend-nav a:hover {
    color: var(--accent-dark);
}

.backend-shell .backend-nav .nav-action,
.backend-shell .button--create,
.backend-shell .button--dark,
.auth-shell .button--dark {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #ffffff !important;
    box-shadow: none;
}

.backend-shell .backend-nav .nav-action:hover,
.backend-shell .button--create:hover,
.backend-shell .button--dark:hover,
.auth-shell .button--dark:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff !important;
}

.backend-shell .button,
.auth-shell .button {
    border-color: #cfd9d2;
    background: #ffffff;
    color: var(--ink);
}

.backend-shell .button:hover,
.auth-shell .button:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.backend-shell .button--ghost {
    background: #eef2ef;
    color: #344139;
}

.backend-shell .button.button--dark,
.backend-shell .button.button--create,
.auth-shell .button.button--dark {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #ffffff !important;
}

.backend-shell .button.button--dark:hover,
.backend-shell .button.button--create:hover,
.auth-shell .button.button--dark:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff !important;
}

.backend-shell .button--danger {
    border-color: #f0c4c0;
    background: var(--danger-soft);
    color: var(--danger);
}

.backend-shell .backend-main {
    background: transparent;
}

.backend-shell .backend-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.backend-shell .backend-heading {
    border-color: #d3ded7;
    background: #eaf2ed;
}

.backend-shell .backend-heading h1 {
    color: var(--ink);
}

.backend-shell .form-section,
.backend-shell .table-wrap,
.backend-shell .preview-box,
.backend-shell .social-preview,
.backend-shell .backend-kpi,
.backend-shell .command-panel,
.backend-shell .notice {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(31, 51, 40, 0.05);
}

.backend-shell .backend-kpi span {
    color: var(--muted);
}

.backend-shell .backend-kpi strong,
.backend-shell .command-panel h2,
.backend-shell .form-section h2,
.backend-shell .article-cell strong,
.backend-shell .mini-list a {
    color: var(--ink);
}

.backend-shell .command-panel,
.backend-shell .form-section {
    border-radius: 8px;
}

.backend-shell .mini-list a:hover {
    color: var(--accent-dark);
}

.backend-shell .mini-list span,
.backend-shell .muted,
.backend-shell .help-text,
.backend-shell .field-status {
    color: var(--muted);
}

.backend-shell .role-badge {
    border-color: #cbd7cf;
    background: #eef3ef;
    color: #344139;
}

.backend-shell .filter-bar {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(31, 51, 40, 0.05);
}

.backend-shell .bulk-toolbar {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(31, 51, 40, 0.05);
}

.backend-shell .calendar-shell {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(31, 51, 40, 0.05);
}

.backend-shell .calendar-weekdays {
    background: #edf2ee;
    border-color: var(--line);
}

.backend-shell .calendar-day {
    border-color: var(--line);
}

.backend-shell .calendar-day.is-outside {
    background: #f7f9f7;
}

.backend-shell .calendar-entry {
    background: #f2f7f3;
    color: #1b2920;
}

.backend-shell .calendar-entry:hover {
    background: #e4f0e7;
    color: #0b6e51;
}

@media (max-width: 760px) {
    .bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-toolbar .filter-field {
        width: 100%;
    }

    .calendar-heading {
        align-items: stretch;
    }

    .calendar-navigation {
        justify-content: space-between;
    }

    .calendar-navigation .button {
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }

    .calendar-navigation strong {
        min-width: 0;
        font-size: 0.88rem;
    }

    .calendar-shell {
        overflow-x: auto;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 700px;
    }

    .calendar-day {
        min-height: 125px;
    }
}

.backend-shell .filter-field {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.backend-shell .filter-field > span {
    color: #526057;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.backend-shell .data-table th {
    border-color: var(--line);
    background: #edf2ee;
    color: #4c5a51;
}

.backend-shell .data-table td {
    border-color: var(--line);
    color: #344139;
}

.backend-shell .data-table tbody tr:hover {
    background: #f7f9f7;
}

.backend-shell .thumb,
.backend-shell .thumb--empty,
.backend-shell .social-preview__image {
    border-color: #d4ddd7;
    background: #edf2ee;
}

.backend-shell .status-select {
    border-color: #cfd9d2;
    background: #ffffff;
    color: var(--ink);
}

.backend-shell .form-section h2 {
    border-bottom-color: var(--line);
}

.backend-shell .image-preview {
    border-color: var(--line);
}

.backend-shell .preview-box h3 {
    color: #1a0dab;
}

.backend-shell .preview-box span {
    color: #08723a;
}

.backend-shell .preview-box p {
    color: #515b55;
}

.backend-shell .sticky-actions {
    border-color: #ccd7d0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 35px rgba(31, 51, 40, 0.1);
}

.backend-shell .tox.tox-tinymce {
    border-color: #ccd7d0;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(31, 51, 40, 0.09);
}

.backend-shell .tox .tox-editor-header,
.backend-shell .tox .tox-toolbar,
.backend-shell .tox .tox-toolbar__overflow,
.backend-shell .tox .tox-toolbar__primary,
.backend-shell .tox .tox-menubar {
    background: #f4f7f5 !important;
}

.backend-shell .tox .tox-editor-header,
.backend-shell .tox .tox-toolbar__group,
.backend-shell .tox .tox-statusbar {
    border-color: #d5ded8 !important;
}

.backend-shell .tox .tox-tbtn,
.backend-shell .tox .tox-mbtn,
.backend-shell .tox .tox-split-button {
    border-color: transparent !important;
    background: #ffffff !important;
    color: #26332b !important;
}

.backend-shell .tox .tox-tbtn:hover,
.backend-shell .tox .tox-mbtn:hover,
.backend-shell .tox .tox-split-button:hover {
    border-color: #bfd3c7 !important;
    background: #e8f1eb !important;
    color: #12664e !important;
}

.backend-shell .tox .tox-tbtn--enabled,
.backend-shell .tox .tox-tbtn--enabled:hover {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: #ffffff !important;
}

.backend-shell .tox .tox-tbtn svg {
    fill: currentColor !important;
}

.backend-shell .tox .tox-listboxfield .tox-listbox--select,
.backend-shell .tox .tox-toolbar-textfield,
.backend-shell .tox .tox-combobox__input {
    border-color: #ccd7d0 !important;
    background: #ffffff !important;
    color: var(--ink) !important;
}

.backend-shell .tox .tox-collection--list .tox-collection__item--active,
.backend-shell .tox .tox-collection--list .tox-collection__item--enabled {
    background: #e4f1e9 !important;
}

.backend-shell .tox .tox-statusbar {
    background: #f4f7f5 !important;
    color: #657169 !important;
}

.backend-shell .tox .tox-edit-area__iframe {
    background: #ffffff !important;
}

.backend-shell .media-modal {
    background: rgba(30, 42, 34, 0.38);
}

.backend-shell .media-modal__dialog {
    border-color: #cfd9d2;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(31, 51, 40, 0.2);
}

.backend-shell .media-modal__header,
.backend-shell .media-modal__tools {
    border-color: var(--line);
}

.backend-shell .media-modal__header h2 {
    color: var(--ink);
}

.backend-shell .media-card,
.backend-shell .media-detail {
    border-color: #d5ded8;
    background: #f8faf8;
    color: var(--ink);
}

.backend-shell .media-card.is-active,
.backend-shell .media-card:hover {
    border-color: var(--accent);
    background: #edf6f1;
}

.backend-shell .media-card img,
.backend-shell .media-detail__image {
    border-color: #d8e0db;
    background: #eef2ef;
}

.backend-shell .media-card span,
.backend-shell .media-modal__status {
    color: #59665e;
}

.backend-shell .rich-editor {
    border-color: #ccd7d0;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(31, 51, 40, 0.09);
}

.backend-shell .rich-editor__toolbar {
    border-color: #d6dfd9;
    background: #f3f6f4;
}

.backend-shell .rich-editor__group {
    border-color: #d6dfd9;
}

.backend-shell .rich-editor__button,
.backend-shell .rich-editor__select {
    border-color: #ccd7d0;
    background: #ffffff;
    color: #26332b;
}

.backend-shell .rich-editor__button:hover,
.backend-shell .rich-editor__select:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.backend-shell .rich-editor__button.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.backend-shell .rich-editor__footer {
    border-color: #d6dfd9;
    background: #f7f9f7;
    color: var(--muted);
}

.auth-shell {
    background: #eef3ef;
}

.auth-shell .login-panel {
    border-color: #d2ddd5;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 51, 40, 0.14);
}

.auth-shell .login-panel h1 {
    color: var(--ink);
}

.auth-shell .login-submit,
.auth-shell .login-submit:disabled {
    border-color: #d0dad3 !important;
    background: #edf1ee !important;
    color: #607068 !important;
}

.auth-shell .login-submit.is-ready {
    border-color: var(--accent-dark) !important;
    background: var(--accent-dark) !important;
    color: #ffffff !important;
}

.auth-shell .login-submit.is-ready:hover {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: #ffffff !important;
}
