﻿:root {
  --page-shell-width: 1320px;
  --page-surface: rgba(255, 250, 243, 0.84);
  --page-surface-strong: rgba(255, 252, 247, 0.96);
  --page-surface-muted: rgba(244, 237, 227, 0.9);
  --page-border: rgba(124, 101, 74, 0.16);
  --page-shadow: 0 22px 48px rgba(92, 70, 48, 0.12);
  --page-text: #2f261d;
  --page-muted: #786855;
  --page-accent: #b45d3f;
  --page-accent-strong: #8e472e;
  --page-accent-soft: rgba(180, 93, 63, 0.14);
  --page-secondary: #60755a;
  --page-secondary-soft: rgba(96, 117, 90, 0.14);
}

body.page-shell-body {
  margin: 0;
  min-height: 100vh;
  padding-top: 72px;
  color: var(--page-text);
  background:
    radial-gradient(circle at 16% 14%, rgba(189, 148, 107, 0.14), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(111, 139, 108, 0.12), transparent 24%),
    linear-gradient(180deg, #f5efe7 0%, #eee3d7 48%, #f2ebe2 100%);
  font-family: 'HarmonyOS Sans', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body.dark-mode.page-shell-body {
  --page-surface: rgba(32, 27, 23, 0.82);
  --page-surface-strong: rgba(39, 33, 28, 0.94);
  --page-surface-muted: rgba(54, 45, 39, 0.92);
  --page-border: rgba(255, 243, 225, 0.1);
  --page-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  --page-text: #f4ecdf;
  --page-muted: #c2b29e;
  --page-accent: #e49c75;
  --page-accent-strong: #f1b38d;
  --page-accent-soft: rgba(228, 156, 117, 0.18);
  --page-secondary: #a3c098;
  --page-secondary-soft: rgba(163, 192, 152, 0.14);
  background:
    radial-gradient(circle at 16% 14%, rgba(170, 106, 73, 0.22), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(104, 131, 97, 0.16), transparent 24%),
    linear-gradient(180deg, #15120f 0%, #1a1714 52%, #1c1815 100%);
}

.page-shell {
  max-width: var(--page-shell-width);
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(245, 237, 226, 0.92));
  border: 1px solid rgba(142, 114, 83, 0.18);
  box-shadow: var(--page-shadow);
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -48px;
  top: -58px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(180, 93, 63, 0.16), rgba(180, 93, 63, 0));
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: -70px;
  bottom: -90px;
  width: 260px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(96, 117, 90, 0.12), rgba(96, 117, 90, 0));
  pointer-events: none;
}

body.dark-mode .page-hero {
  background:
    linear-gradient(145deg, rgba(40, 34, 29, 0.96), rgba(29, 25, 22, 0.92));
  border-color: rgba(255, 255, 255, 0.09);
}

.page-eyebrow {
  margin: 0 0 10px;
  color: var(--page-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.page-subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.page-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

#page-meta:empty {
  display: none;
}

.page-header-metrics {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.page-header-metrics .page-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.page-header-metrics .page-meta-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(124, 101, 74, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  box-shadow: 0 8px 18px rgba(92, 70, 48, 0.08);
}

.page-header-metrics .page-meta-item::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: rgba(180, 93, 63, 0.42);
}

.page-header-metrics .page-meta-item.is-placeholder {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.page-header-metrics .page-meta-item.is-placeholder::before {
  display: none;
}

body.dark-mode .page-header-metrics .page-meta-item {
  border-color: rgba(255, 243, 225, 0.16);
  background:
    linear-gradient(180deg, rgba(53, 45, 39, 0.88), rgba(43, 37, 32, 0.78));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.page-header-metrics .page-meta-label {
  margin-bottom: 0;
  line-height: 1.25;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--page-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-header-metrics .page-meta-value {
  line-height: 1.12;
  font-size: clamp(1.25rem, 1.55vw, 1.62rem);
  font-weight: 800;
  color: var(--page-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-meta-item {
  border-radius: 18px;
  border: 1px solid var(--page-border);
  background: rgba(255, 250, 244, 0.72);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.dark-mode .page-meta-item {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.page-meta-label {
  display: block;
  color: var(--page-muted);
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.page-meta-value {
  font-size: 1rem;
  font-weight: 700;
}

.page-stack {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.page-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-panel {
  border-radius: 24px;
  border: 1px solid var(--page-border);
  background: var(--page-surface);
  box-shadow: var(--page-shadow);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.page-panel-head p {
  margin: 6px 0 0;
}

.page-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-panel h2,
.page-panel h3 {
  margin: 0;
}

.page-panel p {
  color: var(--page-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  border-radius: 20px;
  border: 1px solid var(--page-border);
  background: var(--page-surface-strong);
  padding: 18px;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--page-muted);
  margin-bottom: 10px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.stats-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
}

.stats-map-stage {
  display: grid;
  gap: 10px;
}

.stats-map-canvas {
  height: 420px;
  border-radius: 18px;
  border: 1px solid var(--page-border);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(246, 239, 229, 0.92));
  overflow: hidden;
}

body.dark-mode .stats-map-canvas {
  background: linear-gradient(180deg, rgba(46, 39, 34, 0.9), rgba(33, 28, 25, 0.92));
}

.stats-map-hint {
  margin: 0;
  color: var(--page-muted);
  font-size: 0.9rem;
}

.stats-province-list {
  border-radius: 16px;
  border: 1px solid var(--page-border);
  background: var(--page-surface-strong);
  padding: 10px;
  max-height: 420px;
  overflow: auto;
}

.stats-province-list-inner {
  display: grid;
  gap: 8px;
}

.stats-province-item {
  width: 100%;
  border: 1px solid var(--page-border);
  border-radius: 12px;
  background: var(--page-surface);
  color: var(--page-text);
  font: inherit;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.stats-province-item:hover,
.stats-province-item.is-active {
  border-color: rgba(180, 93, 63, 0.38);
  background: var(--page-accent-soft);
  transform: translateY(-1px);
}

.stats-province-rank {
  color: var(--page-muted);
  font-size: 0.9rem;
  text-align: left;
}

.stats-province-value {
  color: var(--page-accent);
  font-size: 1rem;
  font-weight: 800;
}

.archive-list,
.summary-list,
.link-grid,
.timeline-list,
.feed-list,
.mini-card-grid {
  display: grid;
  gap: 14px;
}

.archive-card,
.summary-card,
.link-card,
.timeline-card,
.feed-card,
.mini-card {
  border-radius: 18px;
  border: 1px solid var(--page-border);
  background: var(--page-surface-strong);
  padding: 16px 18px;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.archive-card-head,
.timeline-card-head,
.feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.archive-card-title,
.summary-card-title,
.link-card-title,
.timeline-card-title,
.feed-card-title,
.mini-card-title {
  margin: 0;
  font-size: 1.04rem;
}

.page-pill,
.page-chip,
.page-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--page-border);
  background: var(--page-accent-soft);
  color: var(--page-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.page-chip-group,
.tag-cloud,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-chip {
  cursor: pointer;
  background: rgba(255, 251, 246, 0.96);
  color: var(--page-text);
}

body.dark-mode .page-chip {
  background: rgba(255, 246, 235, 0.08);
}

.page-chip.is-active,
.page-chip:hover,
.page-link-chip:hover {
  background: var(--page-accent-soft);
  border-color: rgba(180, 93, 63, 0.28);
  color: var(--page-accent);
}

.page-link,
.link-card a,
.article-inline-link {
  color: inherit;
  text-decoration: none;
}

.page-link:hover,
.link-card a:hover,
.article-inline-link:hover {
  color: var(--page-accent);
}

.muted-text,
.archive-card-meta,
.summary-card-meta,
.timeline-meta,
.feed-meta,
.link-card-desc,
.empty-state {
  color: var(--page-muted);
}

.article-inline-list {
  display: grid;
  gap: 10px;
}

.article-inline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 251, 245, 0.72);
  border: 1px solid var(--page-border);
}

body.dark-mode .article-inline-item {
  background: rgba(255, 255, 255, 0.04);
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(122, 104, 83, 0.12);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b45d3f, #d9aa58);
}

.timeline-list,
.feed-list {
  position: relative;
}

.timeline-card,
.feed-card {
  position: relative;
  padding-left: 20px;
}

.timeline-card::before,
.feed-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--page-accent);
  box-shadow: 0 0 0 6px rgba(180, 93, 63, 0.12);
}

.callout {
  border-radius: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(180, 93, 63, 0.12), rgba(255, 252, 246, 0.86));
  border: 1px solid rgba(180, 93, 63, 0.18);
}

body.dark-mode .callout {
  background: linear-gradient(135deg, rgba(228, 156, 117, 0.16), rgba(255, 255, 255, 0.03));
  border-color: rgba(228, 156, 117, 0.22);
}

.empty-state {
  margin: 0;
  border-radius: 18px;
  border: 1px dashed var(--page-border);
  padding: 24px 18px;
  text-align: center;
}

.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.archive-pagination-link,
.archive-pagination-current {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--page-border);
  background: var(--page-surface-strong);
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.archive-pagination-link:hover {
  background: var(--page-accent-soft);
  color: var(--page-accent);
}

.archive-pagination-link {
  cursor: pointer;
}

.archive-pagination-link[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.archive-pagination-current {
  background: var(--page-accent-soft);
  color: var(--page-accent);
  font-weight: 700;
}

.security-breakdown-grid {
  margin-top: 10px;
}

.security-breakdown-grid > section:last-child {
  grid-column: 1 / -1;
}

.security-breakdown-list {
  margin-top: 12px;
}

.security-breakdown-row {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) 48px;
}

.security-events-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.security-event-item {
  border-radius: 14px;
  border: 1px solid var(--page-border);
  background: var(--page-surface-strong);
  padding: 12px 14px;
}

.security-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.security-event-time {
  font-size: 0.82rem;
  color: var(--page-muted);
}

.security-event-meta {
  margin: 5px 0 0;
  color: var(--page-muted);
  line-height: 1.6;
  word-break: break-word;
}

.security-events-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.security-events-pagination-meta {
  margin: 0;
  color: var(--page-muted);
  font-size: 0.85rem;
}

.security-inline-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 12px;
}

.security-inline-value {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--page-text);
}

.security-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#security-events-panel.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.archive-toolbox {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(247, 241, 232, 0.92));
}

body.dark-mode .archive-toolbox {
  background: linear-gradient(180deg, rgba(44, 37, 31, 0.95), rgba(33, 28, 24, 0.92));
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.archive-search {
  display: grid;
  gap: 10px;
}

.archive-search-label,
.archive-filter-caption,
.topic-sticker-type {
  color: var(--page-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-search-field {
  position: relative;
}

.archive-search-input {
  width: 100%;
  padding: 14px 68px 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--page-border);
  background: var(--page-surface-strong);
  color: var(--page-text);
  font: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.archive-search-input:focus {
  outline: none;
  border-color: rgba(180, 93, 63, 0.34);
  box-shadow: 0 0 0 4px rgba(180, 93, 63, 0.12);
}

.archive-search-reset {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--page-accent-soft);
  color: var(--page-accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.archive-filter-summary,
.topic-wall-summary {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.7;
}

.archive-filter-summary {
  text-align: right;
}

.archive-filter-group {
  display: grid;
  gap: 10px;
}

.archive-card-cover-link {
  display: block;
  min-height: 100%;
  background: var(--page-surface-muted);
}

.archive-card-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.archive-card-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.archive-card-heading {
  display: grid;
  gap: 6px;
}

.archive-card-kicker {
  margin: 0;
  color: var(--page-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card-excerpt {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.8;
}

.archive-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}

.archive-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-tag-button {
  border: 1px solid var(--page-border);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--page-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.dark-mode .archive-tag-button {
  background: rgba(255, 255, 255, 0.06);
}

.archive-tag-button:hover {
  border-color: rgba(180, 93, 63, 0.28);
  background: var(--page-accent-soft);
  color: var(--page-accent);
  transform: translateY(-1px);
}

.archive-card-link {
  white-space: nowrap;
}

.archive-empty-state {
  margin: 0;
}

.topic-wall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.topic-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 14px;
  align-items: start;
  padding: 8px 4px 16px;
}

.topic-sticker {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 126px;
  padding: 18px 16px 14px;
  border-radius: 16px 18px 20px 14px;
  border: 1px solid var(--sticker-border, rgba(132, 101, 70, 0.24));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 28%),
    var(--sticker-bg, #f4e2b6);
  color: #3a2b1f;
  text-align: left;
  box-shadow: 0 18px 26px rgba(75, 54, 35, 0.12);
  transform: translate(var(--sticker-shift-x, 0), var(--sticker-shift-y, 0)) rotate(var(--sticker-rotate, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.topic-sticker::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 56px;
  height: 16px;
  transform: translateX(-50%) rotate(-4deg);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 4px 10px rgba(66, 47, 32, 0.08);
}

.topic-sticker:hover,
.topic-sticker.is-active {
  border-color: rgba(180, 93, 63, 0.38);
  box-shadow: 0 22px 32px rgba(75, 54, 35, 0.16);
  transform: translate(var(--sticker-shift-x, 0), calc(var(--sticker-shift-y, 0) - 6px)) rotate(var(--sticker-rotate, 0deg));
}

.topic-sticker-name {
  font-size: 1rem;
  line-height: 1.45;
}

.topic-sticker-count {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(58, 43, 31, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.sticker-tone-1 {
  --sticker-bg: #f4e0a7;
  --sticker-border: rgba(159, 121, 57, 0.28);
}

.sticker-tone-2 {
  --sticker-bg: #efcfbf;
  --sticker-border: rgba(171, 103, 82, 0.26);
}

.sticker-tone-3 {
  --sticker-bg: #dbe6cf;
  --sticker-border: rgba(95, 122, 84, 0.24);
}

.sticker-tone-4 {
  --sticker-bg: #d7e4ec;
  --sticker-border: rgba(90, 126, 148, 0.24);
}

.sticker-tone-5 {
  --sticker-bg: #f1dfbe;
  --sticker-border: rgba(167, 127, 78, 0.24);
}

.sticker-tone-6 {
  --sticker-bg: #e8ddd0;
  --sticker-border: rgba(128, 102, 78, 0.24);
}

body.dark-mode .topic-sticker {
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.weekly-poster-card {
  border-radius: 22px;
  border: 1px solid var(--page-border);
  background:
    radial-gradient(circle at 88% 8%, rgba(180, 93, 63, 0.14), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(96, 117, 90, 0.14), transparent 34%),
    linear-gradient(155deg, rgba(255, 252, 247, 0.96), rgba(246, 238, 227, 0.92));
  padding: 20px;
  display: grid;
  gap: 16px;
}

body.dark-mode .weekly-poster-card {
  background:
    radial-gradient(circle at 88% 8%, rgba(228, 156, 117, 0.2), transparent 30%),
    radial-gradient(circle at 10% 92%, rgba(163, 192, 152, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(41, 35, 30, 0.96), rgba(31, 27, 24, 0.92));
}

.weekly-poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.weekly-poster-title {
  margin: 0;
  font-size: 1.1rem;
}

.weekly-poster-week {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--page-border);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--page-accent);
  background: var(--page-accent-soft);
}

.weekly-poster-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.weekly-poster-metric {
  border-radius: 14px;
  border: 1px solid var(--page-border);
  background: rgba(255, 252, 247, 0.72);
  padding: 12px;
  display: grid;
  gap: 8px;
}

body.dark-mode .weekly-poster-metric {
  background: rgba(255, 255, 255, 0.05);
}

.weekly-poster-metric span {
  color: var(--page-muted);
  font-size: 0.78rem;
}

.weekly-poster-metric strong {
  font-size: 1.04rem;
}

.weekly-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.weekly-highlight-card {
  border-radius: 16px;
  border: 1px solid var(--page-border);
  background: rgba(255, 252, 247, 0.8);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

body.dark-mode .weekly-highlight-card {
  background: rgba(255, 255, 255, 0.05);
}

.weekly-highlight-title {
  margin: 0;
  font-size: 0.86rem;
  color: var(--page-muted);
  letter-spacing: 0.03em;
}

.weekly-highlight-main {
  margin: 0;
  color: var(--page-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.weekly-highlight-link {
  text-decoration: none;
}

.weekly-highlight-link:hover {
  color: var(--page-accent);
}

.weekly-highlight-note {
  margin: 0;
  color: var(--page-muted);
  line-height: 1.55;
}

.weekly-poster-section h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.weekly-poster-section p {
  margin: 0;
}

.weekly-top-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.weekly-top-card {
  border-radius: 14px;
  border: 1px solid var(--page-border);
  background: rgba(255, 252, 247, 0.66);
  padding: 10px 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

body.dark-mode .weekly-top-card {
  background: rgba(255, 255, 255, 0.05);
}

.weekly-top-card h5 {
  margin: 0;
  font-size: 0.84rem;
  color: var(--page-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.weekly-top-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.weekly-top-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(40px, auto);
  align-items: start;
  gap: 10px;
}

.weekly-top-rank {
  font-size: 0.74rem;
  color: var(--page-muted);
  font-weight: 700;
  line-height: 1.45;
}

.weekly-top-name {
  min-width: 0;
  font-size: 0.84rem;
  color: var(--page-text);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-top-value {
  font-size: 0.84rem;
  color: var(--page-accent);
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.weekly-security-inline {
  margin-top: 10px;
  color: var(--page-muted);
  line-height: 1.6;
}

.weekly-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weekly-download-btn {
  border: 1px solid var(--page-border);
  cursor: pointer;
  font: inherit;
}


@media (max-width: 1080px) {
  .page-hero,
  .page-grid.two-col,
  .page-grid.three-col,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .stats-map-layout {
    grid-template-columns: 1fr;
  }

  .stats-province-list {
    max-height: none;
  }

  .page-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header-metrics .page-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .page-header-metrics .page-meta-item {
    min-height: 70px;
    padding: 10px 12px;
  }

  .page-header-metrics .page-meta-value {
    font-size: clamp(1.12rem, 2vw, 1.34rem);
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-card-cover-link {
    aspect-ratio: 16 / 9;
  }

  .weekly-poster-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-highlight-grid,
  .weekly-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 12px 40px;
  }

  .page-hero,
  .page-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .page-meta {
    grid-template-columns: 1fr;
  }

  .page-header-metrics .page-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .page-header-metrics .page-meta-item {
    padding: 9px 9px;
    border-radius: 12px;
    gap: 5px;
    min-height: 64px;
  }

  .page-header-metrics .page-meta-item::before {
    width: 18px;
  }

  .page-header-metrics .page-meta-label {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .page-header-metrics .page-meta-value {
    font-size: 1rem;
  }

  .archive-toolbar {
    grid-template-columns: 1fr;
  }

  .archive-filter-summary {
    text-align: left;
  }

  .archive-card-head,
  .timeline-card-head,
  .feed-card-head,
  .page-panel-head,
  .article-inline-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .security-breakdown-row {
    grid-template-columns: 1fr;
  }

  .security-inline-kpis {
    grid-template-columns: 1fr;
  }

  .security-inline-grid {
    grid-template-columns: 1fr;
  }

  .security-event-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-card-footer,
  .topic-wall-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-map-canvas {
    height: 340px;
  }

  .topic-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .topic-sticker {
    min-height: 112px;
  }

  .weekly-poster-metrics {
    grid-template-columns: 1fr;
  }

  .weekly-top-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(40px, auto);
    gap: 8px;
  }

  .weekly-top-value {
    justify-self: end;
    grid-column: auto;
  }

  .weekly-poster-head,
  .weekly-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
