.admin-page {
  background: #f6f8fb;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-header nav {
  display: flex;
  gap: 1rem;
  font-weight: 750;
}

.admin-header nav a {
  color: var(--muted);
}

.admin-header nav a.active {
  color: var(--blue);
}

.admin-main {
  max-width: 1220px;
}

.admin-intro {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.admin-intro h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.admin-intro p {
  color: var(--muted);
}

.notice,
.import-card,
.edition-summary,
.area-preview,
.sticky-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice {
  margin-bottom: 1rem;
  padding: 1rem;
}

.notice ul {
  margin: 0.5rem 0 0;
}

.notice.error {
  border-color: #f2b8b8;
  background: #fff4f4;
  color: #8a1d1d;
}

.notice.success {
  border-color: #a9ddb6;
  background: #f1fff4;
  color: #145f29;
  font-weight: 750;
}

.notice.success a {
  margin-left: 0.75rem;
  color: var(--blue);
  font-weight: 850;
}

.import-card {
  padding: 1.1rem;
}

.import-card label,
.preview-grid label,
.publish-controls label {
  display: grid;
  gap: 0.4rem;
  color: #25324a;
  font-size: 0.86rem;
  font-weight: 800;
}

.import-card textarea,
.preview-grid textarea,
.preview-grid input,
.preview-grid select {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.import-card textarea,
.preview-grid textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.file-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.admin-button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

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

.admin-button.primary-dark {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.edition-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 1.3rem 0;
  padding: 1rem;
}

.edition-summary h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.edition-summary p {
  margin: 0;
  color: var(--muted);
}

.publish-controls {
  min-width: 260px;
}

.area-preview-list {
  display: grid;
  gap: 1rem;
}

.area-preview {
  overflow: hidden;
}

.area-preview > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--soft-line);
}

.area-preview h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.area-preview header span {
  color: var(--muted);
  font-weight: 800;
}

.preview-news-list {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.preview-news-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.preview-news-card.is-removed {
  display: none;
}

.duplicate-flag {
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2b249;
  border-radius: 8px;
  background: #fff8df;
  color: #7a5200;
  font-size: 0.84rem;
  font-weight: 850;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.preview-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 850;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 0.85rem;
}

.preview-grid .wide {
  grid-column: 1 / -1;
}

.category-chip {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.5rem;
  align-items: center;
}

.category-chip svg {
  color: var(--blue);
}

.source-preview-link {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 850;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1.3rem;
  padding: 1rem;
  box-shadow: 0 -10px 30px rgba(8, 20, 48, 0.08);
}

.sticky-city-select {
  display: grid;
  gap: 0.25rem;
  min-width: 220px;
  margin-right: auto;
  color: #25324a;
  font-size: 0.82rem;
  font-weight: 850;
}

.sticky-city-select select {
  min-height: 44px;
}

.status-table-card {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.status-table-card h2 {
  margin: 0 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.status-table th,
.status-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  white-space: nowrap;
}

.status-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-table a {
  color: var(--blue);
  font-weight: 850;
}

@media (max-width: 760px) {
  .admin-header,
  .edition-summary,
  .file-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-header {
    padding: 1rem;
  }

  .admin-main {
    padding: 1rem;
  }

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

  .publish-controls {
    min-width: 0;
  }

  .sticky-actions {
    position: static;
  }

  .sticky-actions .admin-button {
    width: 100%;
  }

  .sticky-city-select {
    width: 100%;
    margin-right: 0;
  }
}
