@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap");

:root {
  --ink: #171410;
  --ink-soft: #2b261f;
  --paper: #f2eee5;
  --paper-2: #faf7f0;
  --white: #fffdf9;
  --red: #b5121b;
  --red-dark: #8f0d15;
  --gold: #c99a2e;
  --green: #1f6b45;
  --line: #dcd4c5;
  --line-strong: #c4b9a6;
  --muted: #756d5f;
  --muted-2: #9a9183;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --radius: 2px;
  --sidebar: 252px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 13px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.admin-shell { min-height: 100vh; }

/* ---------- sidebar ---------- */
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  display: flex; flex-direction: column; background: var(--ink); color: #ede6d8;
  border-right: 1px solid #302a23; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 23px 20px 22px; border-bottom: 1px solid #2e2821; }
.admin-brand__year { display: grid; place-items: center; width: 44px; height: 44px; background: var(--red); color: #fff; font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.admin-brand__name { display: flex; flex-direction: column; font-family: var(--serif); font-size: 19px; line-height: 1; letter-spacing: -.035em; }
.admin-brand__name em { font-style: normal; color: var(--gold); }
.admin-brand__name small { margin-top: 6px; font-family: var(--sans); font-size: 7px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #9a9183; }
.admin-nav { padding: 17px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav__label { margin: 17px 10px 6px; font-size: 7px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #786f61; }
.admin-nav__label:first-child { margin-top: 0; }
.admin-nav a { display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 0 11px; color: #cfc7b9; font-size: 11px; font-weight: 500; border-radius: 2px; transition: background .16s, color .16s; }
.admin-nav a svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.admin-nav a:hover { background: #241f19; color: #fff; }
.admin-nav a.is-active { background: #2c251d; color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.admin-nav a.is-active svg { opacity: 1; color: var(--gold); }
.admin-nav__count { margin-left: auto; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; background: var(--red); color: #fff; font-size: 8px; font-weight: 800; border-radius: 20px; }
.admin-sidebar__foot { padding: 16px 20px 20px; border-top: 1px solid #2e2821; }
.admin-sidebar__site { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #cfc7b9; }
.admin-sidebar__site svg { width: 14px; height: 14px; }
.admin-sidebar__site span { margin-left: auto; color: var(--gold); }
.admin-sidebar__site:hover { color: #fff; }
.admin-sidebar__note { margin-top: 13px; color: #6f675b; font-size: 8px; letter-spacing: .05em; line-height: 1.7; text-transform: uppercase; }
.admin-scrim { display: none; }

/* ---------- main / topbar ---------- */
.admin-main { margin-left: var(--sidebar); min-height: 100vh; }
.admin-topbar { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; background: rgba(250,247,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.admin-topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-menu-btn { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); background: var(--white); }
.admin-menu-btn svg { width: 18px; height: 18px; }
.admin-breadcrumb { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-breadcrumb span { margin: 0 6px; color: var(--line-strong); }
.admin-breadcrumb strong { color: var(--ink); font-weight: 700; }
.admin-topbar__right { display: flex; align-items: center; gap: 20px; }
.admin-topbar__view { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-topbar__view:hover { color: var(--red); }
.admin-user { display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.admin-user__avatar { display: grid; place-items: center; width: 31px; height: 31px; background: var(--ink); color: var(--gold); font-family: var(--serif); font-size: 12px; font-weight: 600; }
.admin-user__meta { display: flex; flex-direction: column; line-height: 1.25; }
.admin-user__meta strong { font-size: 10px; font-weight: 600; }
.admin-user__meta small { font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.admin-user form { display: flex; }
.admin-user__logout { display: grid; place-items: center; width: 27px; height: 27px; border: 0; background: transparent; color: var(--muted); }
.admin-user__logout:hover { color: var(--red); }
.admin-user__logout svg { width: 15px; height: 15px; }
.admin-content { max-width: 1420px; padding: 30px 32px 60px; }

/* ---------- headers / buttons / flash ---------- */
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.admin-page-head h1 { margin: 3px 0 0; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.admin-page-head p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.admin-eyebrow { font-size: 8px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; transition: background .16s, border-color .16s, color .16s; }
.admin-btn:hover { border-color: var(--ink); background: #f5f1e8; }
.admin-btn svg { width: 13px; height: 13px; }
.admin-btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.admin-btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.admin-btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-btn--dark:hover { background: #2d2620; border-color: #2d2620; }
.admin-btn--danger { color: var(--red); border-color: #e0c6c2; background: transparent; }
.admin-btn--danger:hover { background: #f6e5e2; border-color: var(--red); }
.admin-btn--sm { min-height: 29px; padding: 0 9px; font-size: 8px; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.admin-btn--icon { width: 31px; height: 31px; min-height: 0; padding: 0; }
.flash { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 14px; background: #e4ede1; border: 1px solid #c5d8bd; border-left: 3px solid var(--green); color: #234b32; font-size: 11px; }
.flash svg { width: 16px; height: 16px; flex: none; }
.flash--error { background: #f5e3e0; border-color: #e3c4bf; border-left-color: var(--red); color: #7c1a1e; }
.flash--warning { background: #f7eeda; border-color: #e8d6ac; border-left-color: #b7791f; color: #6b4a12; }

/* ---------- dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.stat-card { position: relative; padding: 17px 17px 15px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--stat-color, var(--red)); }
.stat-card__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.stat-card__label svg { width: 14px; height: 14px; color: var(--stat-color, var(--red)); }
.stat-card__value { margin: 11px 0 3px; font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.stat-card__meta { color: var(--muted-2); font-size: 8px; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 16px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 16px; min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel__head h2 { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: -.02em; }
.panel__head a { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.panel__body { padding: 16px; }
.rhythm-chart { display: flex; align-items: flex-end; gap: 10px; height: 148px; padding: 6px 2px 0; }
.rhythm-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.rhythm-bar__track { width: 100%; max-width: 40px; flex: 1; display: flex; align-items: flex-end; background: #f0ece3; }
.rhythm-bar__fill { width: 100%; min-height: 2px; background: var(--red); }
.rhythm-bar:nth-child(even) .rhythm-bar__fill { background: var(--ink); }
.rhythm-bar__count { font-family: var(--serif); font-size: 12px; font-weight: 600; }
.rhythm-bar__label { font-size: 7px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.review-list { display: flex; flex-direction: column; }
.review-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eee8dc; }
.review-item:last-child { border-bottom: 0; }
.review-item img { width: 46px; height: 35px; object-fit: cover; flex: none; }
.review-item__body { min-width: 0; flex: 1; }
.review-item__body strong { display: block; font-family: var(--serif); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-item__body span { display: block; margin-top: 3px; font-size: 8px; color: var(--muted); }
.review-item__edit { font-size: 8px; font-weight: 700; color: var(--red); white-space: nowrap; }
.attention { display: grid; gap: 8px; }
.attention-item { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); background: var(--paper-2); }
.attention-item__icon { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--gold); flex: none; }
.attention-item__icon svg { width: 14px; height: 14px; }
.attention-item strong { display: block; font-family: var(--serif); font-size: 17px; line-height: 1; }
.attention-item span { font-size: 8px; color: var(--muted); }
.attention-item a { margin-left: auto; font-size: 8px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.attention-item--quiet .attention-item__icon { background: #e8e1d4; color: var(--ink); }
.top-list { display: grid; gap: 0; counter-reset: top; }
.top-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee8dc; }
.top-item:last-child { border-bottom: 0; }
.top-item__num { font-family: var(--serif); font-size: 16px; color: var(--line-strong); width: 20px; flex: none; }
.top-item h3 { margin: 0; font-family: var(--serif); font-size: 12px; line-height: 1.3; font-weight: 600; }
.top-item span { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); }
.dash-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-quick a { display: flex; align-items: center; gap: 7px; padding: 10px; background: var(--paper-2); border: 1px solid var(--line); font-size: 9px; font-weight: 600; }
.dash-quick a:hover { border-color: var(--ink); }
.dash-quick svg { width: 14px; height: 14px; color: var(--red); }

/* ---------- tables ---------- */
.table-wrap { background: var(--white); border: 1px solid var(--line); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th { padding: 9px 12px; background: #efe9de; border-bottom: 1px solid var(--line); text-align: left; font-size: 7px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #eee8dc; vertical-align: middle; font-size: 10px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfaf5; }
.data-table .is-right { text-align: right; }
.story-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.story-cell img { width: 54px; height: 40px; object-fit: cover; flex: none; background: #e6dfd2; }
.story-cell strong { display: block; font-family: var(--serif); font-size: 12px; line-height: 1.25; font-weight: 600; }
.story-cell span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.cell-muted { color: var(--muted); font-size: 8px; }
.cell-strong { font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-pill.is-live { color: #245b3b; background: #e3eee4; border-color: #c6dcc7; }
.status-pill.is-draft { color: #7b6b50; background: #f1eade; border-color: #e0d4be; }
.status-pill.is-pending { color: #8d5c13; background: #f6ecd6; border-color: #e8d4a9; }
.status-pill.is-approved { color: #245b3b; background: #e3eee4; border-color: #c6dcc7; }
.status-pill.is-unread { color: #8c1a20; background: #f5e2df; border-color: #e6c5c0; }
.status-pill.is-read { color: #6f675b; background: #eee9df; border-color: #ddd5c6; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-actions form { display: flex; }
.empty-row { padding: 40px 16px !important; text-align: center; color: var(--muted); font-size: 11px; }

/* ---------- filters / pagination ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px; margin-bottom: 13px; background: var(--white); border: 1px solid var(--line); }
.filter-bar input, .filter-bar select { height: 34px; padding: 0 9px; border: 1px solid var(--line); background: var(--paper-2); font-size: 10px; }
.filter-bar input { flex: 1; min-width: 180px; }
.filter-bar select { min-width: 135px; }
.filter-bar button { height: 34px; padding: 0 13px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.filter-bar a { display: inline-flex; align-items: center; padding: 0 7px; font-size: 8px; color: var(--muted); text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid var(--line); background: var(--white); font-size: 9px; }
.pager a:hover { border-color: var(--ink); }
.pager .is-current span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .is-disabled, .pager .is-disabled span { color: var(--line-strong); background: transparent; }

/* ---------- editor ---------- */
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 16px; align-items: start; }
.editor-main, .editor-side { display: grid; gap: 14px; min-width: 0; }
.editor-side { position: sticky; top: 84px; }
.form-panel { background: var(--white); border: 1px solid var(--line); padding: 18px; }
.form-panel h2 { margin: 0 0 13px; font-family: var(--serif); font-size: 17px; letter-spacing: -.02em; }
.form-panel__hint { margin: -7px 0 13px; color: var(--muted); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper-2); padding: 9px 10px; font-size: 11px; }
.field input, .field select { height: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 2px rgba(23,20,16,.06); }
.field textarea { min-height: 105px; resize: vertical; line-height: 1.6; }
.field--title input { height: 54px; font-family: var(--serif); font-size: 24px; letter-spacing: -.025em; }
.field--body textarea { min-height: 460px; font-family: var(--serif); font-size: 14px; line-height: 1.7; }
.field__hint { font-size: 8px; color: var(--muted-2); }
.body-upload-status { display: block; margin-top: 5px; font-size: 9px; color: var(--muted); }
.body-upload-status.is-error { color: var(--red); }
.check-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eee8dc; }
.check-row:last-of-type { border-bottom: 0; }
.check-row input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.check-row label { font-size: 10px; font-weight: 600; }
.check-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 400; }
.image-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e6dfd2; margin-bottom: 9px; border: 1px solid var(--line); }
.file-input { font-size: 9px !important; padding: 7px !important; background: #fff !important; }
.form-actions { display: flex; align-items: center; gap: 8px; padding-top: 3px; }
.danger-zone { margin-top: 6px; padding-top: 13px; border-top: 1px solid #eee8dc; }

/* ---------- categories ---------- */
.category-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 16px; align-items: start; }
.color-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,.12); }
.category-form { position: sticky; top: 84px; }
.color-field { display: flex; gap: 7px; }
.color-field input[type="color"] { width: 42px; height: 38px; padding: 3px; }
.color-field input[type="text"] { flex: 1; }

/* ---------- comments / messages ---------- */
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab-bar a { padding: 9px 15px; border-bottom: 2px solid transparent; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tab-bar a.is-active { color: var(--ink); border-bottom-color: var(--red); }
.comment-review { display: grid; gap: 11px; }
.comment-card { background: var(--white); border: 1px solid var(--line); padding: 15px; }
.comment-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-card__head strong { font-size: 11px; }
.comment-card__head span, .comment-card__head time { font-size: 8px; color: var(--muted); }
.comment-card__head .status-pill { margin-left: auto; }
.comment-card p { margin: 0 0 10px; font-size: 11px; line-height: 1.65; color: #3c352c; }
.comment-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #eee8dc; }
.comment-card__foot a { font-family: var(--serif); font-size: 11px; font-weight: 600; }
.comment-card__foot a:hover { color: var(--red); }
.comment-card__actions { display: flex; gap: 5px; }
.message-list { display: grid; gap: 8px; }
.message-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; background: var(--white); border: 1px solid var(--line); }
.message-row.is-unread { border-left: 3px solid var(--red); }
.message-row__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.message-row.is-unread .message-row__dot { background: var(--red); }
.message-row__main { flex: 1; min-width: 0; }
.message-row__main strong { display: block; font-family: var(--serif); font-size: 14px; line-height: 1.25; }
.message-row__main span { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); }
.message-row__date { font-size: 8px; color: var(--muted); white-space: nowrap; }
.message-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 16px; align-items: start; }
.message-body { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.message-body h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 25px; letter-spacing: -.03em; }
.message-body__meta { margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.message-body__text { font-family: var(--serif); font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.message-side { display: grid; gap: 12px; }
.meta-list { display: grid; gap: 9px; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- empty / login ---------- */
.admin-empty { padding: 52px 20px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.admin-empty h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; }
.admin-empty p { margin: 0 auto 16px; max-width: 340px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.login-page { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); min-height: 100vh; background: var(--paper); }
.login-editorial { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 46px 52px; background: var(--ink); color: #f2eee5; overflow: hidden; }
.login-editorial::before { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: repeating-linear-gradient(90deg, var(--red) 0 72px, var(--gold) 72px 118px, var(--green) 118px 176px, #efe8da 176px 180px); }
.login-editorial__brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.login-editorial__brand .year { display: grid; place-items: center; width: 54px; height: 54px; background: var(--red); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.login-editorial__brand strong { font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.login-editorial__brand small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 7px; letter-spacing: .2em; text-transform: uppercase; color: #9a9183; }
.login-editorial__mid { position: relative; z-index: 1; }
.login-editorial__mid span { font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.login-editorial__mid h1 { margin: 14px 0 0; max-width: 540px; font-family: var(--serif); font-size: clamp(44px, 5.3vw, 76px); line-height: .93; letter-spacing: -.055em; font-weight: 600; }
.login-editorial__mid h1 em { font-style: italic; color: var(--gold); }
.login-editorial__mid p { max-width: 390px; margin: 22px 0 0; color: #b9b0a1; font-size: 11px; line-height: 1.7; }
.login-editorial__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; color: #756c5f; }
.login-panel { display: grid; place-items: center; padding: 38px 28px; }
.login-card { width: 100%; max-width: 384px; }
.login-card__head { margin-bottom: 26px; }
.login-card__head h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 36px; letter-spacing: -.045em; }
.login-card__head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.login-form { display: grid; gap: 13px; }
.login-form .field input { height: 43px; background: var(--white); }
.login-remember { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); }
.login-remember input { accent-color: var(--red); }
.login-submit { height: 44px; border: 0; background: var(--red); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-submit:hover { background: var(--red-dark); }
.login-back { display: block; margin-top: 22px; text-align: center; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.login-back:hover { color: var(--red); }
.login-alert { margin-bottom: 15px; padding: 10px 12px; background: #f5e3e0; border-left: 2px solid var(--red); color: #7c1a1e; font-size: 10px; }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .editor-grid, .category-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .message-layout { grid-template-columns: minmax(0,1fr) 240px; }
}
@media (max-width: 980px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .admin-nav-open .admin-sidebar { transform: none; }
  .admin-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15,12,9,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .admin-nav-open .admin-scrim { opacity: 1; pointer-events: auto; }
  .admin-main { margin-left: 0; }
  .admin-menu-btn { display: grid; }
  .editor-grid, .category-layout, .message-layout { grid-template-columns: 1fr; }
  .editor-side, .category-form { position: static; }
  .admin-content { padding: 24px 20px 50px; }
}
@media (max-width: 700px) {
  .admin-topbar { padding: 0 15px; height: 60px; }
  .admin-topbar__view { display: none; }
  .admin-user__meta { display: none; }
  .admin-user { padding-left: 12px; }
  .admin-content { padding: 20px 14px 44px; }
  .admin-page-head { flex-direction: column; align-items: flex-start; }
  .admin-page-head h1 { font-size: 36px; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-card__value { font-size: 29px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--body textarea { min-height: 340px; }
  .message-row { align-items: flex-start; }
  .message-row__date { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-editorial { min-height: 220px; padding: 28px 24px; }
  .login-editorial__mid, .login-editorial__foot { display: none; }
  .login-panel { padding: 30px 20px 45px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .filter-bar input, .filter-bar select, .filter-bar button { width: 100%; }
  .pager a, .pager span { min-width: 27px; height: 27px; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- reader geography ---------- */
.places-list { display: grid; gap: 13px; }
.place-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; }
.place-row__flag { font-size: 16px; line-height: 1; }
.place-row__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.place-row__line strong { font-family: var(--serif); font-size: 13px; font-weight: 600; }
.place-row__line span { color: var(--muted-2); font-size: 8px; letter-spacing: .04em; white-space: nowrap; }
.place-row__track { height: 4px; background: var(--paper-2); overflow: hidden; }
.place-row__fill { height: 100%; background: var(--gold); }
.places-note { margin: 14px 0 0; padding-top: 11px; border-top: 1px solid #eee8dc; color: var(--muted-2); font-size: 8px; line-height: 1.5; }

/* ---------- social distribution ---------- */
.social-list { display: grid; gap: 0; margin-top: 2px; }
.social-list__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #eee8dc; }
.social-list__item:first-child { border-top: 0; }
.social-list__body { min-width: 0; }
.social-list__name { font-size: 10px; font-weight: 700; }
.social-list__meta { margin: 3px 0 0; color: var(--muted-2); font-size: 8px; }
.social-list__error { margin: 3px 0 0; color: var(--red); font-size: 8px; line-height: 1.45; }


/* Social share card */
.social-card { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.social-card__image { width: 100%; aspect-ratio: 1200 / 1400; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); }
.social-card__body .social-list__name { display: block; margin-bottom: 4px; }
.social-card__body .admin-btn { margin-top: 12px; }
@media (max-width: 560px) { .social-card { grid-template-columns: 1fr; } .social-card__image { max-width: 200px; } }
