:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --soft-2: #eeeeee;
  --text: #222222;
  --muted: #777777;
  --line: #e5e5e5;
  --line-strong: #d2d2d2;
  --accent: #ff6a00;
  --accent-2: #20b15a;
  --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: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.box,
.container {
  width: 1200px;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
}

.topper {
  height: 34px;
  line-height: 34px;
  background: #f0f0f0;
  border-bottom: 1px solid #dedede;
  color: #666;
  font-size: 12px;
}
.topper .box { display: flex; align-items: center; gap: 9px; }
.topper .fl { margin-right: auto; color: #555; }
.topper a { color: #666; }

.header {
  background: #fff;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px 20px;
  align-items: center;
  padding: 18px 0 14px;
}
.logo a {
  display: inline-flex;
  align-items: baseline;
  color: #333;
  font-size: 30px;
  font-weight: 800;
}
.logo b { color: var(--accent); font-size: 38px; }
.menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
}
.menu a {
  min-width: 118px;
  padding: 15px 16px;
  background: #ff7d19;
  border-right: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.menu a:nth-child(even) { background: #f36b08; }
.menu i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
}
.header-search {
  grid-column: 2;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.search { display: flex; height: 38px; }
.search input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--accent);
  border-right: 0;
  border-radius: 0;
  background: #fff;
  padding: 0 10px;
}
.search button {
  width: 54px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  position: relative;
}
.search button::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 17px;
  top: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.search button::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  left: 31px;
  top: 24px;
  background: #fff;
  transform: rotate(45deg);
}
.hot_word {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #777;
  font-size: 12px;
}
.hot_word a { color: #777; }

.public-main { padding: 14px 0 36px; }
.pos {
  margin: 0 0 12px;
  height: 36px;
  line-height: 36px;
  color: #777;
  font-size: 13px;
}
.pos a::after { content: " >"; color: #aaa; margin: 0 5px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 840px) 330px;
  gap: 20px;
  align-items: start;
}
.infoSub,
.subList,
.empty-state,
.topic-section,
.site-index-page section {
  background: #fff;
  border: 1px solid var(--line);
}
.infoSub { padding: 20px; }
.subAppicon {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0 22px;
  min-height: 190px;
  position: relative;
}
.subAppicon > img {
  grid-row: span 3;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #e8e8e8;
  background: var(--soft-2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.subAppicon h1 {
  margin: 0 0 10px;
  color: #222;
  font-size: 26px;
  line-height: 1.28;
  font-weight: 800;
}
.app-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0 0 16px;
  padding: 0;
  color: #666;
  list-style: none;
}
.app-meta-list span { color: #999; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-actions a {
  display: block;
  min-width: 160px;
  height: 46px;
  line-height: 46px;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}
.detail-actions .az a { background: var(--accent-2); }
.detail-actions .appstore a { background: var(--accent); }

.article-summary-card,
.home-intro {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fffaf4;
  border: 1px solid #ffe0c2;
  color: #666;
}
.article-summary-card h2 {
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
}
.article-summary-card p,
.home-intro p { margin: 0; }

.article-cover-frame { margin: 18px 0 0; }
.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft-2);
}
.article-cover-frame figcaption {
  padding: 8px 0 0;
  color: #888;
  font-size: 12px;
}
.soft-title,
.subList .tit {
  height: 42px;
  line-height: 42px;
  margin: 0 0 14px;
  border-bottom: 2px solid var(--accent);
  color: #333;
  font-size: 20px;
  font-weight: 800;
}
.article-body {
  margin-top: 22px;
  color: #333;
  font-size: 16px;
  line-height: 1.9;
}
.article-body h2,
.article-body h3 {
  margin: 24px 0 10px;
  color: #222;
  line-height: 1.35;
}
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 24px; }

.subList { padding: 0 14px 14px; }
.article-side-rail { position: sticky; top: 12px; }
.zolSub {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zolSub li { border-bottom: 1px solid var(--line); }
.zolSub a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
}
.zolSub img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft-2);
}
.zolSub h3 {
  margin: 0 0 5px;
  color: #333;
  font-size: 15px;
}
.zolSub p {
  margin: 4px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}
.star {
  display: block;
  width: 82px;
  height: 12px;
  background: linear-gradient(90deg, #ddd 50%, transparent 0) repeat-x;
  background-size: 16px 12px;
  overflow: hidden;
}
.star span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffba00 50%, transparent 0) repeat-x;
  background-size: 16px 12px;
}

.home-feature { margin-bottom: 18px; }
.home-recommend .zolSub {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
.home-recommend .zolSub li { border-bottom: 1px solid var(--line); }

.section-page-header {
  margin-bottom: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
}
.section-page-header h1 { margin: 0 0 8px; font-size: 26px; }
.section-page-header p { margin: 0; color: #777; }
.lead-story,
.secondary-story,
.compact-card,
.story-list-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.lead-story img,
.secondary-story img,
.compact-card img,
.story-list-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  background: var(--soft-2);
}
.lead-copy h2,
.story-list-item h3,
.compact-card h3,
.secondary-story h3 {
  margin: 4px 0 6px;
  color: #333;
  font-size: 18px;
  line-height: 1.35;
}
.lead-copy p,
.story-list-item p { margin: 0 0 6px; color: #777; }
.meta, .muted, time { color: #999; font-size: 12px; }
.story-list, .section-board-grid { border: 1px solid var(--line); background: #fff; }
.top-story-row, .section-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.topic-section { margin-top: 18px; padding: 16px; }
.topic-index { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-index a {
  padding: 7px 10px;
  background: #fff7ef;
  border: 1px solid #ffd8b8;
  color: #a65000;
  font-size: 13px;
}
.topic-keyword-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.link-list { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); }
.link-list a { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.empty-state { padding: 24px; color: #777; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
}
.pagination a, .pagination span {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-row a, .tag-row span {
  padding: 5px 8px;
  background: #fff;
  border: 1px solid #ffd8b8;
  color: #a65000;
  font-size: 12px;
}
.site-footer {
  padding: 22px 0;
  border-top: 1px solid #ddd;
  background: #ececec;
  color: #777;
  font-size: 13px;
}
.download-footer .footer-grid { display: grid; gap: 8px; }
.download-footer a { color: #666; }
.download-footer span { margin: 0 8px; color: #aaa; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; }
  .header-search { grid-column: auto; grid-template-columns: 1fr; }
  .menu a { min-width: 104px; padding: 12px; font-size: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .article-side-rail { position: static; }
  .subAppicon { grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; }
  .subAppicon > img { width: 96px; height: 96px; border-radius: 16px; }
  .subAppicon h1 { font-size: 22px; }
  .app-meta-list { grid-template-columns: 1fr; }
  .home-recommend .zolSub, .top-story-row, .section-board-grid, .topic-keyword-grid { grid-template-columns: 1fr; }
}

.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;
  }
}
