:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --soft-2: #eeeeee;
  --text: #111111;
  --muted: #666666;
  --line: #d9d9d9;
  --line-strong: #111111;
  --accent: #d71920;
  --admin-blue: #5e6ad2;
  --admin-blue-hover: #828fff;
  --admin-bg: #f7f8fb;
  --admin-surface: #ffffff;
  --admin-surface-2: #f3f4f8;
  --admin-line: #e4e6ef;
  --admin-line-strong: #d2d6e3;
  --admin-ink: #17181c;
  --admin-ink-muted: #4f566b;
  --admin-muted: #6f7588;
  --admin-tertiary: #9aa0ad;
  --admin-control-height: 40px;
  --radius: 0;
  font-family: Arial, "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.container {
  width: min(1680px, calc(100vw - 176px));
  margin: 0 auto;
}

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

.masthead {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.masthead.container,
.news-alert-bar .container {
  width: min(1840px, calc(100vw - 176px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  width: 27px;
  height: 27px;
  border: 3px dotted var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.masthead-actions,
.masthead-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.masthead-nav {
  flex: 1 1 auto;
  overflow-x: auto;
  color: #222;
  font-size: 16px;
  font-weight: 800;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.search-action {
  width: 42px;
  height: 42px;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100px;
  position: relative;
}

.search-action::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 3px solid #111;
  border-radius: 50%;
}

.search-action::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 3px;
  right: 5px;
  bottom: 8px;
  background: #111;
  transform: rotate(45deg);
}

.outline-action {
  border: 1px solid #999;
  padding: 12px 28px;
  font-size: 18px;
}

.news-alert-bar {
  border-top: 1px solid var(--line);
  background: #f5eadf;
}

.news-alert-bar .container {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3a3a3a;
}

.news-alert-bar span {
  color: #555;
}

.public-main { padding: 32px 0 60px; }

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

.section-heading h1,
.section-heading h2,
.section-page-header h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.lead-heading {
  max-width: 1254px;
  border-bottom: 0;
  padding-bottom: 0;
}

.section-heading.compact a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topic-pills {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.top-news-layout {
  display: block;
}

.lead-package {
  min-width: 0;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(300px, 388px) minmax(620px, 820px);
  gap: 46px;
  max-width: 1254px;
  padding: 24px 0 22px;
  border-bottom: 0;
}

.lead-media-frame,
.article-cover-frame {
  margin: 0;
}

.lead-media,
.card-media {
  display: block;
  overflow: hidden;
  background: var(--soft-2);
}

.lead-media {
  aspect-ratio: 16 / 11;
}

.lead-media img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-media-frame figcaption,
.article-cover-frame figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.lead-copy h2 {
  margin: 8px 0 10px;
  font-size: 38px;
  line-height: 1.09;
  font-weight: 800;
}

.lead-copy p {
  margin: 0 0 10px;
  color: #333;
  font-size: 17px;
  line-height: 1.48;
}

.meta,
.muted,
time {
  color: var(--muted);
  font-size: 12px;
}

.meta {
  font-weight: 800;
  text-transform: uppercase;
}

.secondary-stories {
  max-width: 1254px;
  border-bottom: 1px solid var(--line);
}

.secondary-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.secondary-story:last-child {
  padding-left: 0;
}

.secondary-story img,
.rail-card img,
.story-list-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--soft-2);
}

.secondary-story img {
  height: 124px;
}

.secondary-story h3,
.compact-card h3,
.story-list-item h3,
.rail-card strong {
  margin: 5px 0 6px;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
}

.article-side-rail h2 {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.rail-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rail-item strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.25;
}

.more-top-section,
.section-board,
.topic-section,
.story-list {
  margin-top: 28px;
}

.top-story-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.card-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}

.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--soft-2);
}

.section-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.story-list {
  border-top: 1px solid var(--line-strong);
}

.story-list-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.section-board-grid .story-list-item {
  padding-right: 18px;
}

.section-board-grid .story-list-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.section-board-grid .story-list-item:nth-child(even) {
  padding-left: 18px;
}

.story-list-item p {
  margin: 0 0 6px;
  color: #333;
  font-size: 14px;
}

.topic-section {
  border-top: 2px solid var(--line-strong);
  padding-top: 18px;
}

.topic-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-index a {
  min-width: 130px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.topic-keyword-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid var(--line-strong);
}

.topic-keyword-grid h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.section-page-header {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line-strong);
}

.section-page-header h1 {
  font-size: 38px;
}

.section-page-header p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-lead {
  margin-top: 18px;
}

.compact-lead .lead-copy h2 {
  font-size: 30px;
}

.empty-state {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.tag-row a {
  border-top: 2px solid var(--accent);
  padding-top: 3px;
  color: #333;
  font-size: 12px;
  font-weight: 700;
}

.article-page {
  padding-top: 28px;
}

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

.article-content-only {
  max-width: 860px;
}

.article-shell {
  max-width: none;
  margin: 0;
  padding: 0 0 72px;
}

.article-kicker {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-shell h1 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.07;
  font-weight: 800;
}

.article-summary {
  max-width: 700px;
  margin: 0 0 14px;
  color: #333;
  font-size: 18px;
}

.article-meta-line {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-tags {
  margin: 14px 0 18px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--soft-2);
}

.article-body {
  margin-top: 26px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  font-size: 18px;
  line-height: 1.78;
}

.article-body h2,
.article-body h3 {
  line-height: 1.25;
  margin: 34px 0 10px;
  font-size: 24px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-side-rail {
  position: sticky;
  top: 12px;
  border-top: 1px solid var(--line-strong);
}

.rail-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rail-card strong {
  display: block;
  font-size: 15px;
}

.rail-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 34px 0;
  background: var(--soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong { display: block; margin-bottom: 10px; }
.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-index-page .topic-section {
  padding-bottom: 32px;
}

.link-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.link-list a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.page-title {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 600;
}

.admin-shell {
  background: var(--admin-bg);
  color: var(--admin-ink);
}

.admin-shell .brand,
.admin-shell a {
  color: var(--admin-ink);
}

.admin-shell .muted,
.admin-shell time {
  color: var(--admin-muted);
}

.admin-shell .page-title {
  letter-spacing: -0.8px;
}

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

.admin-main {
  width: min(1320px, calc(100vw - 32px));
  margin: 20px auto 64px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}

.sidebar,
.panel,
.stat,
.login-box {
  background: var(--admin-surface);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 12px 36px rgba(20, 23, 40, 0.04);
}

.sidebar {
  padding: 8px;
  height: fit-content;
}

.sidebar a,
.sidebar button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--admin-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar a:hover,
.sidebar button:hover {
  border-left-color: var(--admin-blue);
  background: var(--admin-surface-2);
  color: var(--admin-ink);
}

.panel { padding: 20px; margin-bottom: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat { padding: 18px; }
.stat strong { display: block; font-size: 32px; font-weight: 400; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--admin-surface);
  border: 1px solid var(--admin-line);
}

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

th {
  background: var(--admin-surface-2);
  color: var(--admin-muted);
  font-weight: 500;
}

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

textarea { min-height: 150px; resize: vertical; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.inline-check input { width: auto; }

.button,
button {
  border: 0;
  border-radius: 8px;
  background: var(--admin-blue);
  color: #fff;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
}

.button:hover,
button:hover { background: var(--admin-blue-hover); color: #fff; }

.button[aria-busy="true"],
button[aria-busy="true"],
.button:disabled,
button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
  to { transform: rotate(360deg); }
}

.job-progress {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #edf5ff;
  border-left: 3px solid var(--admin-blue);
  color: #262626;
}

.job-progress[hidden] { display: none; }

.job-progress strong { font-variant-numeric: tabular-nums; }
.danger { color: #da1e28; }

.danger-button {
  background: #da1e28;
}

.danger-button:hover {
  background: #a2191f;
}

.record-edit-form {
  padding: 0;
  border-top: 0;
}

.meta-pair {
  align-items: end;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--admin-line);
}

.pagination a {
  border: 1px solid var(--admin-line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.pagination span {
  color: var(--admin-muted);
  font-size: 14px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--admin-bg);
}

.login-box { width: min(420px, 100%); padding: 28px; }

/* Admin UI: Linear-inspired, dense but readable enterprise surfaces. */
.admin-header .nav {
  width: min(1680px, calc(100vw - 32px));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-main {
  width: min(1680px, calc(100vw - 32px));
  align-items: start;
}

.admin-main > section {
  min-width: 0;
}

.panel {
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
}

.table-scroll table {
  border: 0;
  min-width: 960px;
}

.admin-table {
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.admin-table th {
  font-size: 12px;
  letter-spacing: 0.16px;
}

.keyword-admin-table {
  min-width: 1280px;
}

.keyword-admin-table th:nth-child(1),
.keyword-admin-table td:nth-child(1) { width: 160px; }
.keyword-admin-table th:nth-child(2),
.keyword-admin-table td:nth-child(2) { width: 360px; }
.keyword-admin-table th:nth-child(3),
.keyword-admin-table td:nth-child(3) { width: 150px; }
.keyword-admin-table th:nth-child(4),
.keyword-admin-table td:nth-child(4) { width: 120px; }
.keyword-admin-table th:nth-child(5),
.keyword-admin-table td:nth-child(5) { width: 180px; }
.keyword-admin-table th:nth-child(6),
.keyword-admin-table td:nth-child(6) { width: 260px; }
.keyword-admin-table th:nth-child(7),
.keyword-admin-table td:nth-child(7) { width: 96px; }
.keyword-admin-table th:nth-child(8),
.keyword-admin-table td:nth-child(8),
.keyword-admin-table th:nth-child(9),
.keyword-admin-table td:nth-child(9) {
  width: 72px;
  text-align: center;
}
.keyword-admin-table th:nth-child(10),
.keyword-admin-table td:nth-child(10) { width: 176px; }

.keyword-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.keyword-row-actions button {
  flex: 0 0 auto;
}

.record-log-table {
  min-width: 1120px;
}

.record-log-table th:nth-child(1),
.record-log-table td:nth-child(1) { width: 150px; }
.record-log-table th:nth-child(3),
.record-log-table td:nth-child(3),
.record-log-table th:nth-child(7),
.record-log-table td:nth-child(7) { width: 240px; }

.record-log-table .log-cell {
  display: block;
  max-height: 56px;
  overflow: hidden;
  color: var(--admin-ink);
}

.record-log-table .log-cell .muted {
  display: block;
}

.record-log-table .muted {
  color: var(--admin-muted);
}

.record-log-table code {
  max-height: 54px;
  overflow: hidden;
}

.crawler-summary-table {
  min-width: 520px;
}

.crawler-path-table {
  min-width: 760px;
}

.crawler-path-table th:nth-child(2),
.crawler-path-table td:nth-child(2) {
  width: 120px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.crawler-recent-table {
  min-width: 1120px;
}

.crawler-recent-table th:nth-child(1),
.crawler-recent-table td:nth-child(1) { width: 170px; }
.crawler-recent-table th:nth-child(2),
.crawler-recent-table td:nth-child(2) { width: 140px; }
.crawler-recent-table th:nth-child(3),
.crawler-recent-table td:nth-child(3) { width: 100px; }
.crawler-recent-table th:nth-child(4),
.crawler-recent-table td:nth-child(4) { width: 80px; }

.crawler-path-table .path-cell,
.crawler-recent-table .path-cell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card-grid {
  display: grid;
  gap: 14px;
}

.record-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface-2);
}

.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.record-card-head button {
  flex: 0 0 auto;
}

.admin-field-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.url-preview {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

input,
select,
textarea {
  min-height: var(--admin-control-height);
  min-width: 0;
  line-height: 1.35;
}

select {
  appearance: auto;
}

td input,
td select,
td textarea {
  min-width: 0;
}

td textarea {
  min-height: 88px;
}

td input[type="checkbox"],
.inline-check input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--admin-blue);
}

td button {
  min-height: var(--admin-control-height);
  min-width: 72px;
  white-space: nowrap;
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 4px;
  background: var(--admin-surface-2);
  color: var(--admin-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.admin-shell {
  min-height: 100vh;
  font-family: Inter, "SF Pro Display", system-ui, -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.05px;
}

.admin-shell .brand {
  gap: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.admin-shell .brand::before {
  display: none;
}

.admin-shell a:hover {
  color: var(--admin-blue-hover);
}

.admin-shell .nav-links {
  flex: 0 0 auto;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 500;
}

.admin-shell h1,
.admin-shell h2,
.admin-shell h3 {
  color: var(--admin-ink);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.admin-shell h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.admin-shell h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--admin-muted);
}

.admin-shell label {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.admin-shell {
  color-scheme: light;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: var(--admin-tertiary);
}

.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.26);
  outline: none;
}

.admin-shell .panel,
.admin-shell .stat,
.admin-shell .login-box {
  border-color: var(--admin-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    var(--admin-surface);
}

.admin-shell .panel {
  overflow-x: auto;
}

.admin-shell .sidebar {
  position: sticky;
  top: 76px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.admin-shell .sidebar a,
.admin-shell .sidebar button {
  border-left: 0;
  border-radius: 8px;
  font-size: 14px;
}

.admin-shell .sidebar a:hover,
.admin-shell .sidebar button:hover {
  border-left-color: transparent;
}

.admin-shell table {
  min-width: 860px;
  border-color: var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-shell th {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: none;
}

.admin-shell td {
  color: var(--admin-ink);
}

.admin-shell tr:hover td {
  background: rgba(94, 106, 210, 0.045);
}

.admin-shell .button,
.admin-shell button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}

.admin-shell .danger-button {
  background: transparent;
  color: #c52832;
  border: 1px solid rgba(197, 40, 50, 0.24);
}

.admin-shell .danger-button:hover {
  background: rgba(197, 40, 50, 0.08);
  color: #a2191f;
}

.admin-shell .job-progress {
  background: rgba(94, 106, 210, 0.12);
  border: 1px solid rgba(94, 106, 210, 0.4);
  border-left-width: 3px;
  border-radius: 10px;
  color: var(--admin-ink);
}

.admin-shell .login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(94, 106, 210, 0.16), transparent 28%),
    radial-gradient(circle at 80% 82%, rgba(130, 143, 255, 0.11), transparent 30%);
}

.admin-shell .login-box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 32px;
}

.admin-shell .login-box h1 {
  margin-top: 0;
  font-size: 28px;
}

@media (max-width: 980px) {
  .admin-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0;
  }

  .sidebar a,
  .sidebar button {
    width: auto;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .sidebar a:hover,
  .sidebar button:hover {
    border-left-color: transparent;
    border-bottom-color: var(--admin-blue);
  }

  .top-news-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side-rail {
    position: static;
  }

  .top-story-row,
  .section-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-board-grid .story-list-item {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .container,
  .masthead.container,
  .news-alert-bar .container {
    width: min(100% - 32px, 1680px);
  }
  .masthead {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }
  .brand { font-size: 22px; }
  .masthead-actions { gap: 10px; }
  .masthead-nav { order: 3; width: 100%; gap: 16px; }
  .lead-story,
  .top-story-row,
  .topic-keyword-grid,
  .section-board-grid,
  .story-list-item {
    grid-template-columns: 1fr;
  }
  .secondary-story,
  .secondary-story:last-child {
     grid-template-columns: 122px minmax(0, 1fr);
     padding: 14px 0;
     border-right: 0;
     border-bottom: 1px solid var(--line);
   }
  .secondary-story img {
    order: -1;
    height: 92px;
  }
  .lead-copy h2,
  .compact-lead .lead-copy h2 {
    font-size: 28px;
  }
  .section-page-header h1,
  .article-shell h1 {
    font-size: 34px;
  }
  .article-summary {
    font-size: 16px;
  }
  .footer-grid,
  .admin-main {
    grid-template-columns: 1fr;
  }
  th, td {
    font-size: 13px;
    padding: 9px;
  }
}
