:root {
    --ink: #1d1b16;
    --muted: #716b60;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --line: #ded8cb;
    --accent: #b2332f;
    --accent-dark: #7d211f;
    --sage: #6a7f64;
    --steel: #34475c;
    --gold: #bf8a22;
    --danger: #b42318;
    --success: #20724d;
    --shadow: 0 18px 50px rgba(47, 40, 30, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(178, 51, 47, .06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(52, 71, 92, .045) 1px, transparent 1px),
        var(--paper);
    background-size: 48px 48px;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

img,
video {
    max-width: 100%;
}

code,
pre {
    font-family: "Courier New", monospace;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.brand span {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-header nav,
.admin-sidebar nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-header nav a,
.admin-sidebar nav a,
.filter-row a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    text-decoration: none;
}

.blog-shell,
.article-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
}

.journal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: end;
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 46px 0 32px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

.journal-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
}

.search-box {
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.primary,
button.primary {
    border-color: var(--accent);
    background: var(--accent);
}

.button.ghost {
    background: #fff;
    color: var(--ink);
}

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

.button.full {
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    margin-top: 28px;
}

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

.post-card,
.empty-state,
.blog-sidebar section,
.table-panel,
.stat-strip > div,
.editor-main-panel,
.editor-side-panel section,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}

.post-card {
    overflow: hidden;
}

.media-link {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--steel);
    overflow: hidden;
}

.media-link img,
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-fallback {
    display: grid;
    height: 100%;
    place-items: center;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 86px;
    background: linear-gradient(135deg, var(--steel), var(--sage));
}

.card-body {
    padding: 18px;
}

.meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.meta-row a,
.article-tags a,
.tag-cloud a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.post-card h2 {
    margin: 12px 0 8px;
    font-size: 28px;
}

.post-card h2 a {
    text-decoration: none;
}

.post-card p,
.muted {
    color: var(--muted);
}

.blog-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.blog-sidebar section {
    padding: 18px;
}

.blog-sidebar h2 {
    margin: 0 0 14px;
}

.pill,
.tag-cloud a {
    display: inline-flex;
    gap: 8px;
    margin: 0 6px 8px 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 44px;
    color: var(--muted);
}

.article-page article {
    max-width: 860px;
    margin: 0 auto;
}

.article-hero {
    padding: 42px 0 24px;
    border-top: 3px solid var(--ink);
}

.article-hero h1 {
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 78px);
}

.article-hero p {
    color: var(--muted);
    font-size: 20px;
}

.banner-image,
.featured-video {
    display: block;
    width: 100%;
    max-height: 520px;
    margin-top: 22px;
    border-radius: 8px;
    object-fit: cover;
}

.article-content {
    color: #2d2a24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.article-content h2 {
    margin-top: 42px;
    font-size: 36px;
}

.article-content h3 {
    margin-top: 32px;
    font-size: 28px;
}

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

.article-content blockquote {
    margin: 28px 0;
    border-left: 5px solid var(--gold);
    padding: 10px 0 10px 22px;
    color: var(--steel);
    font-size: 24px;
}

.article-content figure {
    margin: 28px 0;
}

.article-content img,
.article-content video {
    border-radius: 8px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.comments-section {
    margin-top: 42px;
    border-top: 3px solid var(--ink);
    padding-top: 28px;
}

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

.comments-header h2 {
    margin: 0;
    font-size: 34px;
}

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

.comment-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.comment-card,
.comment-form,
.moderation-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
}

.comment-card {
    padding: 16px;
}

.comment-card header,
.moderation-card header,
.moderation-card footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.comment-card p,
.moderation-card p {
    margin-bottom: 0;
    white-space: normal;
}

.comment-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

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

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.auth-card {
    width: min(480px, 100%);
    padding: 28px;
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: 42px;
}

.stack {
    display: grid;
    gap: 15px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.notice {
    margin: 16px 0;
    border-radius: 8px;
    padding: 12px 14px;
}

.notice.success {
    background: rgba(32, 114, 77, .12);
    color: var(--success);
}

.notice.danger {
    background: rgba(180, 35, 24, .12);
    color: var(--danger);
}

.login-screen {
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    color: #141c2f;
    background:
        linear-gradient(90deg, rgba(23, 78, 89, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 78, 89, .07) 1px, transparent 1px),
        radial-gradient(circle at 20% 15%, rgba(203, 241, 228, .72), transparent 34%),
        linear-gradient(115deg, #eaf6f2 0%, #f9fbf8 47%, #eef5f5 100%);
    background-size: 82px 82px, 82px 82px, auto, auto;
    font-family: "Trebuchet MS", Verdana, sans-serif;
}

.login-shell {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
}

.login-story,
.login-panel {
    position: relative;
    min-width: 0;
}

.login-story {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    padding: clamp(28px, 4.2vh, 50px) clamp(34px, 5vw, 58px);
    border-right: 1px solid rgba(35, 72, 82, .12);
}

.login-wordmark {
    width: max-content;
    color: #151d31;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.login-copy {
    max-width: 760px;
    align-self: center;
    margin: clamp(18px, 3.2vh, 42px) 0;
}

.login-kicker {
    margin: 0 0 12px;
    color: #177565;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #11182b;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: clamp(46px, min(5.3vw, 8vh), 72px);
    line-height: .98;
}

.login-copy p:not(.login-kicker) {
    max-width: 640px;
    margin: clamp(14px, 2.2vh, 22px) 0 0;
    color: #66717d;
    font-size: clamp(17px, min(1.7vw, 2.5vh), 21px);
    line-height: 1.45;
}

.blog-preview-card {
    width: min(760px, 100%);
    height: clamp(190px, 26vh, 248px);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: clamp(14px, 2vh, 22px);
    align-items: center;
    margin-bottom: 0;
    border: 1px solid rgba(35, 72, 82, .08);
    border-radius: 28px;
    padding: clamp(18px, 3vh, 28px);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 34px 80px rgba(34, 60, 66, .15);
    backdrop-filter: blur(10px);
}

.preview-window {
    display: flex;
    gap: 7px;
    grid-column: 1 / -1;
    align-self: start;
}

.preview-window span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7ddd8;
}

.preview-window span:first-child {
    background: #b9db62;
}

.preview-window span:last-child {
    background: #df8b5f;
}

.preview-nav {
    height: clamp(118px, 17vh, 146px);
    border-radius: 16px;
    background:
        linear-gradient(#c8dc67 0 0) 19px 20px / 18px 18px no-repeat,
        linear-gradient(#e3e9ef 0 0) 48px 24px / 32px 6px no-repeat,
        linear-gradient(#d4dce5 0 0) 20px 56px / 58px 7px no-repeat,
        linear-gradient(#d4dce5 0 0) 20px 82px / 46px 7px no-repeat,
        linear-gradient(#d4dce5 0 0) 20px 108px / 54px 7px no-repeat,
        #151d31;
}

.preview-content {
    display: grid;
    gap: 12px;
}

.preview-headline,
.preview-line,
.preview-tiles i {
    border-radius: 14px;
    background: #eef6f3;
}

.preview-headline {
    width: 68%;
    height: 34px;
    background: linear-gradient(90deg, #1b8779 46%, #d7e8e2 46%);
}

.preview-line {
    width: 55%;
    height: 12px;
    background: #d7e0e5;
}

.preview-line.wide {
    width: 82%;
}

.preview-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.preview-tiles i {
    height: clamp(48px, 7.5vh, 66px);
    border: 1px solid #dfe9eb;
    background:
        linear-gradient(135deg, transparent 45%, #1c897b 46% 52%, transparent 53%),
        linear-gradient(#151d31 0 0) 16px 16px / 32px 7px no-repeat,
        #f6fbfb;
}

.preview-tiles i:nth-child(2) {
    background:
        linear-gradient(135deg, transparent 45%, #df8b5f 46% 52%, transparent 53%),
        linear-gradient(#151d31 0 0) 16px 16px / 32px 7px no-repeat,
        #fff8f2;
}

.preview-tiles i:nth-child(3) {
    background:
        linear-gradient(135deg, transparent 45%, #bfd967 46% 52%, transparent 53%),
        linear-gradient(#151d31 0 0) 16px 16px / 32px 7px no-repeat,
        #f7fbef;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vh, 34px);
    background: rgba(255, 255, 255, .48);
}

.login-card {
    width: min(500px, 100%);
    border: 1px solid rgba(24, 49, 58, .08);
    border-radius: 30px;
    padding: clamp(28px, 4.2vh, 40px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 36px 90px rgba(35, 58, 70, .18);
}

.login-card-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(16px, 2.4vh, 22px);
}

.zyro-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #6937cf;
    background: linear-gradient(145deg, #f5f0ff, #fff);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset -10px -10px 0 rgba(105, 55, 207, .12);
}

.login-card-brand strong {
    display: block;
    color: #11182b;
    font-size: 22px;
    line-height: 1.1;
}

.login-card-brand span {
    display: block;
    color: #64707d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0 0 clamp(8px, 1.2vh, 10px);
    color: #11182b;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: clamp(30px, 4.2vh, 34px);
    line-height: 1.05;
}

.login-support {
    margin: 0 0 clamp(16px, 2.4vh, 22px);
    color: #687481;
    font-size: 16px;
}

.login-form {
    gap: clamp(13px, 2vh, 18px);
}

.login-form label {
    color: #2f3947;
    font-size: 14px;
}

.login-form input {
    min-height: clamp(52px, 6.8vh, 62px);
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    padding: 16px 18px;
    background: #eaf2ff;
    color: #11182b;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.login-form input:focus {
    border-color: #1b8779;
    background: #fff;
    outline: 3px solid rgba(27, 135, 121, .16);
}

.login-submit {
    width: 100%;
    min-height: clamp(52px, 6.4vh, 58px);
    margin-top: clamp(4px, 1vh, 8px);
    border: 0;
    border-radius: 16px;
    background: #141c2f;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 14px 26px rgba(20, 28, 47, .2);
}

.login-submit:hover,
.login-submit:focus-visible {
    background: #1d2a45;
}

.admin-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-right: 1px solid var(--line);
    padding: 22px;
    background: #f2eee5;
}

.admin-sidebar nav {
    flex-direction: column;
}

.admin-user {
    margin-top: auto;
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
}

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

.admin-main {
    width: min(1260px, 100%);
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 42px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-strip > div {
    padding: 18px;
}

.stat-strip span {
    display: block;
    color: var(--muted);
}

.stat-strip strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-row a.active {
    background: var(--ink);
    color: #fff;
}

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

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

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

td small {
    display: block;
    color: var(--muted);
}

.status {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status.published {
    background: rgba(32, 114, 77, .12);
    color: var(--success);
}

.status.draft {
    background: rgba(191, 138, 34, .14);
    color: #8a5f12;
}

.status.pending {
    background: rgba(191, 138, 34, .14);
    color: #8a5f12;
}

.status.approved {
    background: rgba(32, 114, 77, .12);
    color: var(--success);
}

.status.rejected,
.status.spam {
    background: rgba(180, 35, 24, .12);
    color: var(--danger);
}

.actions {
    white-space: nowrap;
}

.actions a {
    margin-right: 10px;
    color: var(--accent-dark);
    font-weight: 700;
}

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

.editor-workspace {
    display: grid;
    gap: 22px;
}

.editor-command-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin: -28px -28px 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 28px;
    background: rgba(251, 250, 246, .94);
    backdrop-filter: blur(12px);
}

.editor-command-bar > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-command-bar > div:last-child {
    justify-content: flex-end;
}

.editor-state,
.editor-command-bar strong,
.editor-live-stats span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.editor-command-bar strong {
    color: var(--accent-dark);
}

.editor-live-stats {
    justify-content: center;
}

.editor-live-stats span:last-child {
    color: var(--steel);
}

.editor-intro {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.editor-intro h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
}

.editor-intro p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
}

.editor-main-panel,
.editor-side-panel section {
    padding: 20px;
}

.editor-main-panel {
    display: grid;
    gap: 18px;
}

.editor-main-panel label span,
.editor-side-panel label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.title-field input {
    border: none;
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    padding-left: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}

.toolbar {
    position: sticky;
    top: 70px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #f7f3ea;
}

.toolbar > span {
    margin-right: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.toolbar button,
.upload-tool {
    width: auto;
    min-height: 34px;
    border-radius: 7px;
    padding: 7px 10px;
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    font-size: 13px;
}

.upload-tool {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.upload-tool input {
    display: none;
}

.rich-editor {
    position: relative;
    min-height: 560px;
    border: 0;
    border-radius: 0;
    padding: 34px;
    background: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    outline: none;
}

.rich-editor:focus {
    box-shadow: inset 0 0 0 3px rgba(178, 51, 47, .10);
}

.rich-editor.drag-ready {
    box-shadow: inset 0 0 0 3px rgba(32, 114, 77, .28);
    background: #fbfff9;
}

.editor-canvas {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(47, 40, 30, .12);
}

.drop-hint {
    position: absolute;
    inset: 16px;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 2px dashed var(--success);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    color: var(--success);
    font-weight: 700;
    pointer-events: none;
}

.drop-hint[hidden] {
    display: none;
}

.autosave-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(191, 138, 34, .45);
    border-radius: 8px;
    padding: 12px;
    background: rgba(191, 138, 34, .12);
}

.autosave-panel[hidden] {
    display: none;
}

.autosave-panel div {
    display: grid;
    gap: 2px;
}

.autosave-panel span {
    color: var(--muted);
    font-size: 13px;
}

.autosave-panel .button {
    min-height: 34px;
    padding: 7px 10px;
}

.rich-editor figure {
    margin: 24px 0;
}

.rich-editor img,
.rich-editor video {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.rich-editor figcaption {
    min-height: 28px;
    padding-top: 8px;
    color: var(--muted);
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 13px;
    text-align: center;
}

.rich-editor figcaption:empty::before {
    content: "Add caption";
    color: #a39a8c;
}

.rich-editor hr {
    margin: 42px 0 26px;
    border: 0;
    border-top: 2px solid var(--line);
}

.upload-marker {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.editor-side-panel {
    position: sticky;
    top: 74px;
    display: grid;
    align-content: start;
    gap: 16px;
}

.editor-side-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.editor-side-panel section {
    display: grid;
    gap: 12px;
}

.publish-card {
    border-top: 4px solid var(--accent);
}

.seo-card {
    border-top: 4px solid var(--steel);
}

.serp-preview {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    background: #fff;
}

.serp-preview span {
    color: #2d6d3f;
    font-size: 12px;
}

.serp-preview strong {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.25;
}

.serp-preview p {
    margin: 0;
    color: #4d5156;
    font-size: 13px;
}

.field-help {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.file-drop {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.media-preview img {
    width: 100%;
    border-radius: 8px;
}

.quality-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quality-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.quality-list li::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.quality-list li.passed {
    color: var(--success);
    font-weight: 700;
}

.quality-list li.passed::before {
    border-color: var(--success);
    background: var(--success);
    box-shadow: inset 0 0 0 3px #fff;
}

.comment-moderation-list {
    display: grid;
    gap: 16px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    margin-bottom: 18px;
}

.analytics-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
    padding: 18px;
}

.analytics-panel.wide {
    min-width: 0;
}

.analytics-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.bar-chart {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.bar-row div {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee7d9;
}

.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.bar-row strong {
    color: var(--ink);
    text-align: right;
}

.metric-row {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.metric-row:last-child {
    border-bottom: 0;
}

.metric-row span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.metric-row strong {
    color: var(--ink);
}

.metric-row small {
    color: var(--muted);
}

.filter-row.compact {
    margin-bottom: 0;
}

.moderation-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.moderation-card header div {
    display: grid;
    gap: 2px;
}

.moderation-card header a,
.moderation-card footer a {
    color: var(--accent-dark);
    font-weight: 700;
}

.moderation-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.moderation-actions .button {
    min-height: 36px;
    padding: 8px 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    background: #fff;
}

@media (max-width: 900px) {
    .journal-hero,
    .content-grid,
    .editor-layout,
    .editor-command-bar,
    .admin-body,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .editor-command-bar {
        position: static;
        margin: -18px -18px 0;
        padding: 12px 18px;
    }

    .editor-command-bar > div,
    .editor-command-bar > div:last-child,
    .editor-live-stats {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .editor-side-panel,
    .toolbar {
        position: static;
    }

    .post-grid,
    .stat-strip,
    .comment-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .site-header,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .login-story {
        min-height: auto;
        align-content: start;
        gap: 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(35, 72, 82, .12);
        padding: 28px;
    }

    .login-copy {
        margin: 24px 0 0;
    }

    .login-copy h1 {
        max-width: 620px;
        font-size: clamp(38px, 8vw, 54px);
    }

    .login-copy p:not(.login-kicker) {
        max-width: 600px;
        margin-top: 16px;
    }

    .blog-preview-card {
        min-height: 190px;
        margin-bottom: 0;
        border-radius: 24px;
    }

    .login-panel {
        align-items: start;
        padding: 24px 28px 28px;
    }
}

@media (max-width: 560px) {
    .journal-hero h1,
    .article-hero h1 {
        font-size: 42px;
    }

    .search-box {
        flex-direction: column;
    }

    .admin-main {
        padding: 18px;
    }

    .rich-editor {
        min-height: 420px;
        padding: 16px;
    }

    .editor-intro h1 {
        font-size: 38px;
    }

    .login-story {
        gap: 16px;
        padding: 22px 24px 18px;
    }

    .login-copy h1 {
        font-size: clamp(31px, 9vw, 38px);
        line-height: 1.02;
    }

    .login-copy p:not(.login-kicker) {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.38;
    }

    .blog-preview-card {
        display: none;
    }

    .login-panel {
        padding: 16px 24px 22px;
    }

    .login-card {
        border-radius: 24px;
        padding: 20px;
    }

    .login-card-brand {
        gap: 12px;
        margin-bottom: 18px;
    }

    .zyro-mark {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .login-card-brand strong {
        font-size: 21px;
    }

    .login-card h2 {
        font-size: 29px;
    }

    .login-support {
        margin-bottom: 16px;
        font-size: 15px;
        line-height: 1.35;
    }

    .login-form {
        gap: 13px;
    }

    .login-form input {
        min-height: 52px;
        border-radius: 14px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .login-submit {
        min-height: 54px;
        border-radius: 14px;
    }
}

@media (max-width: 380px), (max-width: 560px) and (max-height: 740px) {
    .login-story {
        padding: 18px 20px 14px;
    }

    .login-wordmark {
        font-size: 16px;
    }

    .login-kicker {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .login-copy {
        margin-top: 16px;
    }

    .login-copy h1 {
        font-size: 30px;
    }

    .login-copy p:not(.login-kicker) {
        font-size: 14px;
    }

    .login-panel {
        padding: 12px 20px 18px;
    }

    .login-card {
        padding: 18px;
    }

    .login-card-brand {
        margin-bottom: 14px;
    }

    .login-card h2 {
        font-size: 27px;
    }

    .login-support {
        margin-bottom: 12px;
    }

    .login-form {
        gap: 10px;
    }
}
