/* Local full-stack runtime helpers */

.hidden {
  display: none !important;
}

.public-loading {
  min-height: 56vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
}

.public-loading button {
  margin-left: 10px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.brief-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.brief-list a:hover strong {
  color: var(--forest);
}

.article-card {
  text-align: left;
}

.reader-page {
  background: var(--warm-white);
}

.reader-site-header,
.reader-footer {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.reader-site-header > span {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.reader-brand {
  font-size: 27px;
}

.standalone-reader {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.standalone-reader .reader-header {
  padding-inline: 0;
}

.standalone-reader .reader-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 2px;
}

.standalone-reader .reader-body {
  width: min(720px, 100%);
  margin: 54px auto 0;
  padding: 0;
}

.source-context {
  margin: 44px 0 24px;
  padding: 24px;
  border-left: 3px solid var(--acid);
  background: var(--paper);
}

.source-context p {
  margin-bottom: 0 !important;
  font-size: 16px !important;
}

.reader-footer {
  min-height: 86px;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.reader-footer a {
  color: var(--forest);
  font-weight: 700;
}

.login-page {
  min-height: 100vh;
  background: var(--paper);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) 1.14fr;
}

.login-brand-panel {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(circle at 85% 18%, rgba(205, 233, 94, 0.25), transparent 24%),
    var(--forest-dark);
}

.login-brand-panel .brand {
  color: white;
  font-size: 34px;
}

.login-brand-panel .brand span:last-child {
  color: var(--acid);
}

.login-brand-panel h1 {
  max-width: 540px;
  margin: 18px 0;
  font-size: clamp(48px, 5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.login-brand-panel p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1.55;
}

.login-brand-panel small {
  color: rgba(255, 255, 255, 0.48);
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  box-shadow: 0 24px 80px rgba(21, 32, 27, 0.08);
}

.login-card h2 {
  margin: 10px 0 7px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.login-card > div > p {
  margin: 0 0 34px;
  color: var(--muted);
}

.login-card label,
.source-drawer label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-card input {
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: 15px;
}

.login-card input:focus {
  border-color: var(--forest);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  justify-content: center;
  border: 0;
}

.login-back {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.form-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #8a271d;
  background: #fde9e5;
  font-size: 13px;
}

.admin-nav-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
}

.admin-signout {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.danger-link {
  color: #9b3228 !important;
}

.source-drawer {
  width: min(520px, 100%);
}

.source-drawer input,
.source-drawer select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: white;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--forest-dark);
}

.not-found-card {
  max-width: 640px;
  padding: 50px;
  text-align: center;
}

.not-found-page .not-found-card {
  color: white;
}

.not-found-card > span {
  color: var(--acid);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.not-found-card h1 {
  margin: 15px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.not-found-card p {
  color: var(--muted);
}

.not-found-card a {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

@media (max-width: 900px) {
  .reader-site-header,
  .reader-footer {
    width: min(100% - 32px, 1200px);
  }

  .reader-site-header {
    grid-template-columns: 1fr auto;
  }

  .reader-site-header > span {
    display: none;
  }

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

  .login-brand-panel {
    min-height: 300px;
    padding: 30px 24px;
  }

  .login-brand-panel h1 {
    max-width: 440px;
    font-size: 48px;
  }

  .login-brand-panel small {
    display: none;
  }
}

@media (max-width: 640px) {
  .reader-site-header {
    min-height: 72px;
  }

  .reader-brand {
    font-size: 21px;
  }

  .reader-back {
    font-size: 12px;
  }

  .standalone-reader {
    width: calc(100% - 28px);
    padding: 42px 0 80px;
  }

  .standalone-reader .reader-body {
    margin-top: 30px;
  }

  .login-brand-panel {
    min-height: 250px;
  }

  .login-brand-panel h1 {
    margin-bottom: 8px;
    font-size: 39px;
  }

  .login-brand-panel p {
    font-size: 14px;
  }

  .login-form-panel {
    padding: 20px 14px 40px;
  }

  .login-card {
    padding: 28px 20px;
  }

  .admin-app {
    display: block;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 18px;
  }

  .admin-nav {
    display: flex;
    margin: 18px 0 0;
    overflow-x: auto;
  }

  .admin-nav button {
    flex: 0 0 auto;
  }

  .admin-sidebar-bottom {
    display: none;
  }

  .admin-workspace {
    margin-left: 0;
    padding: 18px 14px 50px;
  }

  .admin-topbar {
    align-items: flex-start;
    gap: 18px;
  }

  .admin-top-actions {
    flex-wrap: wrap;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .materials-head,
  .material-row {
    min-width: 780px;
  }

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

  .sources-intro {
    align-items: flex-start;
    gap: 20px;
  }

  .editor-drawer {
    width: 100%;
    max-height: 94vh;
    padding: 24px 18px;
  }
}

:root {
  --ink: #15201b;
  --forest: #173f2d;
  --forest-dark: #0d2a1d;
  --acid: #cde95e;
  --paper: #f3f0e8;
  --warm-white: #faf8f2;
  --line: #d8d5cb;
  --muted: #6d746f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--warm-white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.page-shell {
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--warm-white);
}

.utility-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.utility-bar p {
  margin: 0;
}

.utility-actions,
.brand-row,
.category-nav-inner,
.search-panel-inner {
  display: flex;
  align-items: center;
}

.utility-actions {
  gap: 9px;
}

.utility-actions button {
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
}

.editor-link {
  color: var(--forest);
  font-weight: 800;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e94832;
  box-shadow: 0 0 0 4px rgba(233, 72, 50, 0.12);
}

.utility-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin-inline: 4px;
}

.search-toggle svg {
  width: 17px;
}

.brand-row {
  min-height: 116px;
  border-top: 1px solid var(--line);
  position: relative;
}

.brand {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.brand span:last-child {
  color: var(--forest);
}

.brand-descriptor {
  margin: 8px 0 0 34px;
  max-width: 120px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.telegram-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px 11px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: 160ms ease;
}

.telegram-button:hover {
  background: var(--ink);
  color: white;
}

.telegram-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  background: var(--forest);
}

.telegram-mark svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.mobile-menu {
  display: none;
  border: 0;
  background: none;
  padding: 0;
}

.category-nav {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.category-nav-inner {
  height: 53px;
  gap: 35px;
}

.category-nav button {
  height: 100%;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #5f655f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.category-nav button:hover,
.category-nav button.active {
  color: var(--ink);
  border-bottom-color: var(--acid);
}

.search-panel {
  position: absolute;
  top: 100%;
  width: 100%;
  background: var(--forest-dark);
  color: white;
  box-shadow: 0 16px 30px rgba(13, 42, 29, 0.2);
}

.search-panel-inner {
  gap: 20px;
  height: 86px;
}

.search-panel-inner svg {
  width: 22px;
}

.search-panel input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 600;
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.search-panel button {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  padding: 32px 0 36px;
}

.lead-story {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: white;
  text-align: left;
  cursor: pointer;
}

.lead-story > img,
.lead-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lead-story > img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.lead-story:hover > img {
  transform: scale(1.025);
}

.lead-shade {
  background:
    linear-gradient(180deg, rgba(8, 21, 14, 0.05) 20%, rgba(8, 21, 14, 0.92) 100%),
    linear-gradient(90deg, rgba(9, 31, 20, 0.18), transparent 65%);
}

.lead-content {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(30px, 5vw, 64px);
}

.lead-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-kicker span:first-child {
  padding: 7px 9px;
  background: var(--acid);
  color: var(--ink);
}

.lead-content h1 {
  max-width: 930px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

.lead-content p {
  max-width: 670px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.55;
}

.lead-read,
.read-link,
.all-news,
.source-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lead-read {
  margin-top: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brief-feed {
  display: flex;
  flex-direction: column;
  border-top: 7px solid var(--forest);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.compact-heading {
  align-items: center;
  min-height: 75px;
  padding: 0;
}

.compact-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.pulse-ring {
  width: 12px;
  height: 12px;
  border: 3px solid var(--acid);
  border-radius: 50%;
}

.brief-list button {
  display: grid;
  grid-template-columns: 54px 1fr;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 21px 0;
  text-align: left;
  cursor: pointer;
}

.brief-list button:hover strong {
  color: var(--forest);
}

.brief-time {
  color: var(--forest);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 700;
}

.brief-copy {
  display: grid;
  gap: 7px;
}

.brief-copy > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brief-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  transition: 160ms ease;
}

.all-news {
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  border: 0;
  background: var(--forest);
  color: white;
  padding: 18px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.all-news:hover {
  background: var(--forest-dark);
}

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 4px 0 72px;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) 1.15fr;
  gap: 25px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.card-image-wrap {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background: #d9ddd7;
}

.card-image {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  transition: transform 350ms ease;
}

.article-card:hover .card-image {
  transform: scale(1.035);
}

.content-type {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  background: rgba(250, 248, 242, 0.92);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.content-type.original {
  background: var(--acid);
}

.card-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-top: 3px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-meta span + span::before {
  content: "•";
  margin-right: 10px;
  color: #a5aaa5;
}

.card-copy h3 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.2vw, 35px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.card-copy p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.read-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-strip {
  display: grid;
  grid-template-columns: 80px 1.25fr 0.75fr;
  align-items: end;
  gap: 20px;
  margin-bottom: 90px;
  padding: 48px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.mission-strip > span,
.mission-note > span,
.eyebrow {
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mission-strip > p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.mission-strip > p strong {
  color: var(--forest);
  font-weight: 500;
  font-style: italic;
}

.mission-note {
  justify-self: end;
  max-width: 255px;
}

.mission-note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.latest-section {
  padding-bottom: 110px;
}

.latest-section > .section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.latest-section .section-heading h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 6vw, 80px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.latest-section .section-heading > p {
  justify-self: end;
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
}

.article-grid .article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-grid .card-image-wrap,
.article-grid .card-image {
  min-height: 265px;
  height: 265px;
}

.article-grid .card-copy {
  min-height: 280px;
  padding-top: 19px;
}

.article-grid .card-copy h3 {
  font-size: 29px;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 48px;
}

.load-more {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 230px;
  justify-content: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 16px 22px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.load-more span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
}

.load-more:hover {
  background: var(--ink);
  color: var(--paper);
}

.load-more-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 35px;
  background: var(--paper);
  color: var(--muted);
}

.empty-state button {
  border: 1px solid var(--ink);
  background: none;
  padding: 12px 16px;
  cursor: pointer;
}

.empty-page {
  min-height: 420px;
}

.newsletter {
  padding: 70px 0;
  background: var(--acid);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  align-items: end;
}

.newsletter h2 {
  margin: 13px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 59px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.newsletter p {
  margin: 0;
  color: rgba(21, 32, 27, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.newsletter form {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.newsletter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  padding: 15px 0;
  font-size: 15px;
}

.newsletter form button {
  display: grid;
  place-items: center;
  width: 46px;
  border: 0;
  background: none;
  cursor: pointer;
}

.success-message {
  width: 100%;
  padding: 15px 0;
  font-weight: 700;
}

footer {
  background: var(--forest-dark);
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  padding: 70px 0 80px;
}

.footer-brand {
  width: fit-content;
  font-size: 42px;
}

.footer-brand span:last-child {
  color: var(--acid);
}

.footer-main > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--acid);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(9, 22, 14, 0.78);
  backdrop-filter: blur(10px);
}

.article-modal {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(1050px, 100%);
  max-height: min(730px, calc(100vh - 60px));
  overflow: auto;
  background: var(--warm-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.article-modal > img {
  width: 100%;
  height: 100%;
  min-height: 630px;
  object-fit: cover;
}

.modal-copy {
  padding: clamp(35px, 5vw, 70px);
}

.modal-copy h2 {
  margin: 25px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.modal-copy > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 23px;
  cursor: pointer;
}

.source-button {
  margin-top: 24px;
  border: 0;
  background: var(--forest);
  color: white;
  padding: 15px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.article-reader {
  width: min(980px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--warm-white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(14px);
}

.reader-toolbar > span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.reader-back,
.reader-close {
  border: 0;
  background: none;
  cursor: pointer;
}

.reader-back {
  justify-self: start;
  padding: 10px 0;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reader-close {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 22px;
}

.reader-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 76px 42px 54px;
}

.reader-header h1 {
  margin: 24px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.reader-header > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.45;
}

.reader-image {
  display: block;
  width: 100%;
  height: min(58vw, 560px);
  object-fit: cover;
}

.reader-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 42px 88px;
}

.reader-body > p {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
}

.reader-body > p:first-child::first-letter {
  float: left;
  margin: 7px 9px 0 0;
  color: var(--forest);
  font-size: 68px;
  font-weight: 500;
  line-height: 0.75;
}

.reader-end {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.reader-end span {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.reader-end p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .lead-layout {
    grid-template-columns: 1fr;
  }

  .lead-story {
    min-height: 560px;
  }

  .brief-feed {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brief-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .brief-list button:nth-child(odd) {
    padding-right: 24px;
    border-right: 1px solid var(--line);
  }

  .brief-list button:nth-child(even) {
    padding-left: 24px;
  }

  .all-news {
    margin-top: 12px;
  }

  .secondary-grid,
  .article-grid {
    gap: 22px;
  }

  .secondary-grid .article-card {
    display: flex;
    flex-direction: column;
  }

  .newsletter-inner {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 620px);
  }

  .utility-bar {
    height: 32px;
  }

  .utility-bar > p,
  .utility-actions > span:not(.live-dot) {
    display: none;
  }

  .utility-actions {
    margin-left: auto;
  }

  .brand-row {
    min-height: 82px;
    justify-content: space-between;
  }

  .mobile-menu {
    display: block;
  }

  .brand-row > .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
  }

  .brand-descriptor {
    display: none;
  }

  .telegram-button {
    margin: 0;
    box-sizing: border-box;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--forest);
    color: white;
    font-size: 0;
  }

  .telegram-mark {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent;
  }

  .category-nav {
    display: none;
    position: absolute;
    top: 114px;
    width: 100%;
    background: var(--warm-white);
    box-shadow: 0 18px 30px rgba(15, 32, 23, 0.12);
  }

  .category-nav.open {
    display: block;
  }

  .category-nav-inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }

  .category-nav button {
    height: 46px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .search-panel-inner {
    height: 70px;
  }

  .search-panel button {
    font-size: 0;
  }

  .lead-layout {
    padding-top: 16px;
  }

  .lead-story {
    min-height: 540px;
  }

  .lead-content {
    padding: 27px;
  }

  .lead-content h1 {
    font-size: clamp(38px, 11vw, 55px);
  }

  .lead-content p {
    font-size: 14px;
  }

  .lead-kicker {
    flex-wrap: wrap;
    gap: 9px;
  }

  .brief-list {
    grid-template-columns: 1fr;
  }

  .brief-list button:nth-child(odd),
  .brief-list button:nth-child(even) {
    padding: 19px 0;
    border-right: 0;
  }

  .secondary-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .secondary-grid {
    padding-bottom: 50px;
  }

  .article-card,
  .secondary-grid .article-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .card-image-wrap,
  .card-image,
  .article-grid .card-image-wrap,
  .article-grid .card-image {
    min-height: 150px;
    height: 150px;
  }

  .content-type {
    left: 7px;
    top: 7px;
    max-width: calc(100% - 14px);
    font-size: 7px;
  }

  .article-grid .card-copy,
  .card-copy {
    min-height: 150px;
    padding: 0;
  }

  .card-copy h3,
  .article-grid .card-copy h3 {
    margin-top: 10px;
    font-size: 22px;
  }

  .card-copy p {
    display: none;
  }

  .read-link {
    display: none;
  }

  .mission-strip {
    grid-template-columns: 38px 1fr;
    margin-bottom: 65px;
  }

  .mission-note {
    display: none;
  }

  .latest-section > .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .latest-section .section-heading > p {
    justify-self: start;
  }

  .latest-section {
    padding-bottom: 70px;
  }

  .newsletter-inner,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding: 55px 0;
  }

  .newsletter-inner {
    gap: 27px;
  }

  .newsletter form {
    grid-column: auto;
  }

  .footer-main {
    position: static;
    padding: 55px 0;
  }

  .footer-brand {
    position: static;
    transform: none;
    font-size: 36px;
  }

  .footer-links {
    margin-top: 20px;
  }

  .footer-bottom {
    gap: 8px;
    flex-direction: column;
  }

  .article-modal {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 24px);
  }

  .article-modal > img {
    min-height: 220px;
    height: 220px;
  }

  .modal-copy {
    padding: 30px 24px 38px;
  }

  .modal-copy h2 {
    font-size: 38px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .article-reader {
    max-height: calc(100dvh - 24px);
  }

  .reader-toolbar {
    min-height: 56px;
    padding: 0 16px;
  }

  .reader-toolbar > span {
    font-size: 11px;
  }

  .reader-header {
    padding: 48px 24px 38px;
  }

  .reader-header h1 {
    font-size: 42px;
  }

  .reader-header > p {
    font-size: 18px;
  }

  .reader-image {
    height: 280px;
  }

  .reader-body {
    padding: 42px 24px 64px;
  }

  .reader-body > p {
    font-size: 18px;
    line-height: 1.68;
  }
}

@media (max-width: 430px) {
  .reader-back {
    font-size: 0;
  }

  .reader-back::after {
    content: "←";
    font-size: 18px;
  }

  .reader-header h1 {
    font-size: 36px;
  }

  .reader-image {
    height: 230px;
  }

  .lead-story {
    min-height: 500px;
  }

  .lead-content h1 {
    font-size: 37px;
  }

  .lead-content p {
    display: none;
  }

  .article-card,
  .secondary-grid .article-card {
    grid-template-columns: 110px 1fr;
  }

  .card-image-wrap,
  .card-image,
  .article-grid .card-image-wrap,
  .article-grid .card-image {
    min-height: 128px;
    height: 128px;
  }

  .article-grid .card-copy,
  .card-copy {
    min-height: 128px;
  }

  .card-copy h3,
  .article-grid .card-copy h3 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Editorial workspace */

.admin-app {
  --admin-bg: #eeece5;
  --admin-panel: #f9f7f1;
  --admin-line: #d8d4ca;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  background: var(--admin-bg);
  color: var(--ink);
}

.admin-app button,
.admin-app input,
.admin-app textarea,
.admin-app select {
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 22px;
  background: var(--forest-dark);
  color: white;
}

.admin-logo {
  display: flex;
  gap: 5px;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.admin-logo span:last-child {
  color: var(--acid);
}

.admin-edition {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 7px;
  margin-top: 52px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.admin-nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav button.active {
  color: var(--forest-dark);
  background: var(--acid);
}

.admin-nav svg {
  width: 17px;
}

.admin-nav button > span:not(.admin-nav-icon) {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 10px;
}

.admin-nav button.active > span:not(.admin-nav-icon) {
  background: var(--forest-dark);
  color: white;
}

.admin-nav-icon {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  font-size: 15px;
  line-height: 1;
}

.admin-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.admin-sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--forest-dark);
  font-weight: 900;
}

.admin-sidebar-bottom > div:last-child {
  display: grid;
  gap: 3px;
}

.admin-sidebar-bottom strong {
  font-size: 11px;
}

.admin-sidebar-bottom span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

.admin-workspace {
  width: min(100% - 64px, 1360px);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 31px;
}

.admin-kicker {
  color: var(--forest);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-top-actions > a,
.admin-primary,
.admin-secondary {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: 0 16px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.admin-signout {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.admin-top-actions > a svg {
  width: 15px;
}

.admin-primary {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.admin-primary:hover {
  border-color: var(--forest-dark);
  background: var(--forest-dark);
}

.admin-secondary {
  border-color: var(--admin-line);
  background: var(--admin-panel);
}

.admin-primary svg,
.admin-secondary svg {
  width: 15px;
}

.admin-notice {
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: -10px 0 20px;
  border: 1px solid #b9c9a3;
  border-radius: 5px;
  background: #edf3dd;
  color: #284127;
  padding: 11px 14px;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.admin-notice svg {
  width: 17px;
}

.admin-notice span {
  font-size: 18px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-stat {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  background: var(--admin-panel);
  padding: 21px;
}

.admin-stat-featured {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.admin-stat > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-stat-featured > span {
  color: rgba(255, 255, 255, 0.6);
}

.admin-stat strong {
  margin-top: 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 0.9;
}

.admin-stat small {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
}

.admin-stat-featured small {
  color: rgba(255, 255, 255, 0.55);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 12px;
  margin-top: 12px;
}

.admin-panel {
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  background: var(--admin-panel);
}

.admin-queue {
  min-height: 410px;
  padding: 24px;
}

.admin-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-panel-heading > div > span {
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-panel-heading h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.admin-panel-heading button {
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.queue-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--admin-line);
}

.queue-item img {
  width: 76px;
  height: 55px;
  object-fit: cover;
  border-radius: 3px;
}

.queue-item > div {
  display: grid;
  gap: 6px;
}

.queue-item span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-item strong {
  overflow: hidden;
  display: -webkit-box;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publish-quick {
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.publish-quick:hover {
  background: var(--forest);
  color: white;
}

.sync-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  padding: 26px;
  background: var(--acid);
}

.sync-card h2 {
  max-width: 360px;
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.5vw, 39px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sync-card p {
  max-width: 360px;
  margin: 17px 0 0;
  color: rgba(21, 32, 27, 0.68);
  font-size: 11px;
  line-height: 1.55;
}

.sync-card > button {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  border: 0;
  border-radius: 4px;
  background: var(--forest-dark);
  color: white;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.sync-card > button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.sync-visual {
  position: absolute;
  right: -30px;
  top: -35px;
  width: 165px;
  height: 165px;
  display: grid;
  place-items: center;
}

.sync-visual > i {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(13, 42, 29, 0.16);
  border-radius: 50%;
}

.sync-visual > i:nth-of-type(2) {
  width: 72%;
  height: 72%;
}

.sync-visual > i:nth-of-type(3) {
  width: 44%;
  height: 44%;
}

.sync-core {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
}

.sync-core svg {
  width: 20px;
}

.spinning svg {
  animation: admin-spin 1s linear infinite;
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-loading,
.admin-empty {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.admin-empty strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.editorial-flow {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  background: var(--admin-panel);
  padding: 22px 28px;
}

.editorial-flow > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
}

.editorial-flow > div > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4ebca;
  color: var(--forest);
  font-size: 9px;
  font-weight: 850;
}

.editorial-flow strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.editorial-flow small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.editorial-flow > b {
  height: 1px;
  background: var(--admin-line);
}

.materials-panel {
  overflow: hidden;
}

.materials-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 23px;
  border-bottom: 1px solid var(--admin-line);
}

.materials-toolbar > span {
  color: var(--muted);
  font-size: 10px;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tabs button.active {
  background: var(--forest);
  color: white;
}

.materials-head,
.material-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.7fr) minmax(130px, 0.65fr) 115px 145px;
  gap: 18px;
  align-items: center;
}

.materials-head {
  min-height: 42px;
  padding: 0 20px;
  background: #eeece5;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.material-row {
  min-height: 93px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--admin-line);
}

.material-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.material-title img {
  width: 92px;
  height: 61px;
  border-radius: 3px;
  object-fit: cover;
}

.material-title > div,
.material-source {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.material-title span,
.material-source span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.material-title strong {
  overflow: hidden;
  display: -webkit-box;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.material-source strong {
  font-size: 10px;
}

.status-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 9px;
  background: #e9e6dd;
  color: #6f716d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill.review {
  background: #f7e5b9;
  color: #755917;
}

.status-pill.published {
  background: #dfeac9;
  color: #31552b;
}

.status-pill.archived {
  background: #e1e1df;
  color: #777;
}

.material-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.material-actions button,
.material-actions a {
  border: 0;
  background: none;
  color: var(--forest);
  padding: 0;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.material-actions a {
  color: var(--muted);
}

.table-empty {
  min-height: 340px;
}

.sources-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.sources-intro h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.sources-intro p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.sources-intro > div:last-child {
  display: flex;
  gap: 9px;
}

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

.source-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  background: var(--admin-panel);
  padding: 22px;
  transition: opacity 160ms ease;
}

.source-card.disabled {
  opacity: 0.55;
}

.source-card-top {
  display: flex;
  justify-content: space-between;
}

.source-monogram {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-transform: uppercase;
}

.source-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: #c8c6bf;
  cursor: pointer;
}

.source-switch i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: 160ms ease;
}

.source-switch.on {
  background: var(--forest);
}

.source-switch.on i {
  transform: translateX(14px);
}

.source-category {
  margin-top: 25px;
  color: var(--forest);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-card h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.source-card > p {
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-status {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--admin-line);
}

.source-status > span {
  position: relative;
  padding-left: 12px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 750;
}

.source-status > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #68a34e;
}

.source-status > span.error {
  color: #94392b;
}

.source-status > span.error::before {
  background: #cf503a;
}

.source-status small {
  color: var(--muted);
  font-size: 8px;
}

.editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 24, 16, 0.6);
  backdrop-filter: blur(6px);
}

.editor-drawer {
  width: min(660px, 100%);
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--warm-white);
  padding: 38px 42px;
  box-shadow: -25px 0 70px rgba(0, 0, 0, 0.18);
}

.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 7px;
}

.editor-heading h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.editor-heading > button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.editor-heading > button svg {
  width: 17px;
}

.editor-drawer label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.editor-drawer input[type="file"] {
  padding: 10px;
  background: var(--admin-panel);
}

.editor-drawer input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 4px;
  background: var(--forest);
  color: white;
  padding: 9px 12px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.editor-drawer input,
.editor-drawer textarea,
.editor-drawer select {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.editor-drawer textarea[name="title"] {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.08;
}

.editor-drawer input:focus,
.editor-drawer textarea:focus,
.editor-drawer select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 63, 45, 0.08);
}

.editor-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.editor-actions {
  position: sticky;
  bottom: -38px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 5px -42px -38px;
  padding: 17px 42px;
  border-top: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.95);
  backdrop-filter: blur(8px);
}

.editor-actions button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.editor-actions .admin-primary {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.editor-error {
  color: #a63d2e;
  font-size: 11px;
}

.editor-lead {
  margin: -3px 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.source-drawer {
  width: min(530px, 100%);
}

.access-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(205, 233, 94, 0.18), transparent 34%),
    var(--forest-dark);
}

.access-card {
  width: min(560px, 100%);
  border-radius: 10px;
  background: var(--warm-white);
  padding: clamp(34px, 7vw, 68px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.access-logo {
  width: fit-content;
  margin-bottom: 56px;
  color: var(--forest-dark);
}

.access-logo span:last-child {
  color: var(--forest);
}

.access-card h1 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 66px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.access-card p {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.access-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

@media (max-width: 1150px) {
  .admin-app {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .admin-workspace {
    width: min(100% - 40px, 1200px);
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .materials-head,
  .material-row {
    grid-template-columns: minmax(290px, 1.5fr) 120px 100px 100px;
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .admin-app {
    display: block;
  }

  .admin-sidebar {
    position: static;
    z-index: 20;
    width: 100%;
    min-height: 64px;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 13px 18px;
  }

  .admin-edition,
  .admin-sidebar-bottom {
    display: none;
  }

  .admin-nav {
    display: flex;
    gap: 4px;
    margin: 0 0 0 auto;
  }

  .admin-nav button {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .admin-nav-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .admin-nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .admin-nav button > span:not(.admin-nav-icon) {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    font-size: 8px;
  }

  .admin-workspace {
    width: min(100% - 28px, 760px);
    padding-top: 25px;
  }

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

  .admin-top-actions > a {
    display: none;
  }

  .editorial-flow {
    grid-template-columns: 1fr 30px 1fr 30px 1fr;
    padding-inline: 18px;
  }

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

  .materials-head,
  .material-row {
    width: 850px;
  }
}

@media (max-width: 600px) {
  .admin-sidebar {
    padding-inline: 14px;
  }

  .admin-logo {
    flex: 0 0 auto;
    font-size: 21px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .admin-topbar h1 {
    font-size: 34px;
  }

  .admin-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-top-actions .admin-primary {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-stat {
    min-height: 118px;
    padding: 16px;
  }

  .admin-stat strong {
    margin-top: 12px;
    font-size: 38px;
  }

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

  .admin-grid,
  .editorial-flow {
    display: block;
  }

  .sync-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 12px;
    padding: 22px;
  }

  .sync-visual {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    width: 72px;
    height: 72px;
    margin: 0 0 14px;
  }

  .sync-core {
    width: 42px;
    height: 42px;
  }

  .sync-card h2 {
    max-width: 100%;
    font-size: 32px;
  }

  .sync-card > button {
    position: static;
    width: 100%;
    min-height: 46px;
    margin-top: 28px;
  }

  .editorial-flow > div {
    margin: 8px 0;
  }

  .editorial-flow > b {
    display: block;
    width: 1px;
    height: 15px;
    margin-left: 16px;
  }

  .sources-intro {
    display: block;
  }

  .sources-intro > div:last-child {
    margin-top: 20px;
  }

  .sources-intro .admin-secondary,
  .sources-intro .admin-primary {
    flex: 1;
  }

  .materials-toolbar {
    display: block;
    overflow-x: auto;
    padding-block: 14px;
  }

  .materials-toolbar > span {
    display: block;
    margin: 10px 0 0 5px;
  }

  .materials-table {
    overflow: visible;
  }

  .materials-head {
    display: none;
  }

  .material-row {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px;
  }

  .material-title {
    grid-column: 1 / -1;
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .material-title img {
    width: 84px;
    height: 62px;
  }

  .material-source {
    align-self: center;
  }

  .status-pill {
    align-self: center;
    justify-self: end;
  }

  .material-actions {
    grid-column: 1 / -1;
    min-height: 38px;
    border-top: 1px solid var(--admin-line);
    padding-top: 12px;
  }

  .admin-tabs {
    width: max-content;
  }

  .editor-drawer {
    padding: 28px 20px;
  }

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

  .editor-actions {
    bottom: -28px;
    margin: 4px -20px -28px;
    padding: 14px 20px;
  }

  .access-card > div {
    display: grid;
  }
}
