/* Administration workspace: generous typography and clear management controls. */
.admin { max-width: 1560px; }
.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.admin-head { padding: 20px 0 12px; }
.admin-head h1 { letter-spacing: -.045em; }
.admin-stats article { border-top: 3px solid #b9ceb0; }
.admin-stats article:first-child { background: var(--dark); border-color: var(--dark); }
.admin-stats article:first-child > span { color: #d9e5d2; }
.admin-stats article:first-child > b { color: #fff; }
.admin-panel { margin-bottom: 24px; }
.admin-panel > header { align-items: center; }
.admin table th { color: #41533c; font-size: 14px; padding: 16px; white-space: nowrap; }
.admin table td { font-size: 16px; padding: 18px 16px; }
.admin table td small { font-size: 14px; margin-top: 5px; }
.admin [hidden] { display: none !important; }
.admin .row-actions { min-width: 140px; gap: 12px; }
.admin-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; padding: 20px; background: #f3f5ee; border-radius: 9px; margin: 20px 0; }
.admin-filter label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.admin-filter label:first-child { flex: 1; min-width: min(240px,100%); }
.admin-filter input, .admin-filter select { width: 100%; border: 1px solid #b8c6af; border-radius: 6px; padding: 11px 12px; background: #fff; color: var(--ink); font-size: 16px; }
.admin-filter p { font-size: 14px; margin: 0 0 12px; color: var(--muted); }
.admin-guidance { background: #eaf0e2; border: 1px solid #cad8bd; border-left: 4px solid var(--indigo); border-radius: 8px; padding: 22px 24px; margin-bottom: 26px; }
.admin-guidance b { font-size: 18px; }
.admin-guidance p { font-size: 16px; margin: 8px 0 14px; color: var(--ink-soft); }
.admin-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admin .danger-zone { display: flex; flex-direction: column; align-items: start; gap: 16px; padding: 26px; }
.admin .danger-zone p { margin: 0; max-width: 750px; }
.admin .danger-zone label { width: min(100%,480px); }
.admin .danger-zone input { background: #fff; }
.member-controls { margin-top: 26px; }
.member-controls p { margin-top: 12px; }
.password-panel { margin-top: 26px; }
.admin-columns { grid-template-columns: minmax(0,1fr); }
.admin .security-card { background: #edf3e7; }
.admin .editor-form input, .admin .editor-form textarea, .admin .editor-form select { font-weight: 400; }
@media(min-width: 1250px) { .admin-columns { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); align-items: start; } }
@media(max-width: 700px) {
  .admin-nav { padding: 15px; }
  .admin-filter { padding: 15px; }
  .admin-filter label, .admin-filter label:first-child { flex: 1 1 100%; min-width: 0; }
  .admin-filter p { margin: 0; }
  .admin .admin-panel > header { flex-wrap: wrap; }
  .admin-guidance { padding: 18px; }
  .admin .security-card { flex-direction: column; align-items: start; gap: 20px; }
}
@media(max-width: 700px) {
  .admin-responsive-table, .admin-responsive-table tbody { display: block; width: 100%; }
  .admin-responsive-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .admin-responsive-table tr[data-filter-row] { display: block; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 16px; padding: 8px 16px; background: #fff; }
  .admin .admin-responsive-table td { display: block; padding: 10px 0; border: 0; width: auto; }
  .admin-responsive-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
  .admin .admin-responsive-table td.row-actions { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 8px; }
  .admin-responsive-table .row-actions::before { flex-basis: 100%; }
}
.admin .admin-head p:not(.eyebrow), .admin .security-card p:not(.eyebrow),
.admin .member-controls p { font-size: 16px; line-height: 1.7; }

/* Three dataset totals, with compact rows on small screens. */
.admin-dataset-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .admin-dataset-stats { grid-template-columns: minmax(0, 1fr); }
  .admin-dataset-stats article { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .admin-dataset-stats article > b { margin-top: 0; }
}

/* Distinct, text-labelled publication and homepage states. */
.admin .dataset-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.admin .dataset-status::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.admin .dataset-status--published { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.admin .dataset-status--draft { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.admin .dataset-status--shown { color: #1e40af; background: #dbeafe; border-color: #bfdbfe; }
.admin .dataset-status--hidden { color: #4b5563; background: #f3f4f6; border-color: #d1d5db; }
