:root {
  --brand: #5bc7d9;
  --brand-dark: #158da7;
  --brand-soft: #edfafd;
  --brand-pale: #f6fdff;
  --navy: #284052;
  --bg: #f6f9fb;
  --card: #ffffff;
  --text: #172738;
  --muted: #6f8193;
  --line: #e6eef3;
  --danger: #d84a3a;
  --shadow: 0 18px 44px rgba(27, 74, 101, 0.1);
  --shadow-soft: 0 10px 28px rgba(27, 74, 101, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-page {
  background:
    radial-gradient(circle at 18% -4%, rgba(91, 199, 217, 0.28), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(167, 225, 235, 0.28), transparent 26%),
    linear-gradient(180deg, #f4fcff 0%, #fbfdfe 48%, #f5f9fb 100%);
}

.admin-bg {
  background:
    radial-gradient(circle at 92% 4%, rgba(18, 168, 198, 0.14), transparent 30%),
    radial-gradient(circle at 12% 12%, rgba(118, 207, 224, 0.16), transparent 24%),
    linear-gradient(135deg, #f8fbfd 0%, #eef6fa 100%);
}

.mobile-shell {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 14px 82px;
}

.auth-shell {
  padding-top: 34px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.logo-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f97b7, #55cde5);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(20, 169, 200, 0.28);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: contain;
  background: linear-gradient(135deg, #e2f8fc, #ffffff);
  padding: 5px;
  box-shadow: 0 12px 26px rgba(88, 200, 220, 0.18);
}

.brand-header h1 {
  margin: 0;
  font-size: 19px;
}

.brand-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(225, 239, 245, 0.95);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 16px 36px rgba(28, 84, 111, 0.08);
  backdrop-filter: blur(10px);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  min-height: 42px;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  object-fit: contain;
  background: #e4f8fc;
  padding: 3px;
  box-shadow: 0 8px 18px rgba(88, 200, 220, 0.18);
}

.topbar h1 {
  font-size: 19px;
  margin: 0;
}

.icon-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  color: #253746;
  text-decoration: none;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
}

.logout-btn {
  min-width: 56px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-switch {
  background: #edf6fa;
  border-radius: 10px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.tab-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 6px;
  background: transparent;
  color: var(--muted);
}

.tab-btn.active {
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
}

input,
select {
  width: 100%;
  border: 1px solid #d8e6ee;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: rgba(20, 169, 200, 0.62);
  box-shadow: 0 0 0 4px rgba(20, 169, 200, 0.12);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #8bddeb, #51c7da);
  color: #fff;
  box-shadow: 0 10px 22px rgba(88, 200, 220, 0.22);
}

.btn-primary:hover {
  background: #35b9cf;
}

.btn-secondary {
  background: #f7fdff;
  border-color: #bbe7ef;
  color: var(--brand-dark);
}

.btn-danger {
  background: #fff1f0;
  color: var(--danger);
  border-color: #f5b4af;
}

.btn-ghost {
  border-color: #d6e3eb;
  color: #486070;
  background: #fff;
}

.full {
  width: 100%;
  margin-top: 12px;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  padding: 0;
}

.quick-links {
  display: grid;
  gap: 8px;
}

.quick-links a {
  text-decoration: none;
  color: var(--brand-dark);
  background: #eef8fc;
  border: 1px solid #d4edf5;
  border-radius: 8px;
  padding: 8px 10px;
}

.mobile-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 24px;
  color: #133042;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 248, 253, 0.86)),
    radial-gradient(circle at 88% 12%, rgba(91, 199, 217, 0.24), transparent 34%);
  border: 1px solid rgba(215, 238, 246, 0.96);
  box-shadow: 0 18px 40px rgba(28, 84, 111, 0.1);
}

.mobile-hero::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(91, 199, 217, 0.12);
}

.mobile-hero span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.mobile-hero h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.mobile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mobile-hero img {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px;
}

.profile-card {
  border-top: 4px solid rgba(91, 199, 217, 0.36);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.info-grid > div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfeff, #f5fbfd);
  border: 1px solid #edf4f7;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.info-grid strong {
  font-size: 13.5px;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.45;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-head select {
  max-width: 132px;
}

.sub-text {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.password-tip {
  margin-top: 8px;
  color: #c44b3d;
  font-weight: 600;
}

.mobile-search {
  margin: 10px 0 12px;
}

.mobile-search input {
  background: #f8fdff;
  border-color: #d6ebf2;
  border-radius: 16px;
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.report-item {
  border: 1px solid #e1eff4;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fdff);
  box-shadow: 0 8px 18px rgba(28, 84, 111, 0.05);
}

.report-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.report-item-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.compact .report-item strong {
  font-size: 13px;
}

.stat-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-inline div {
  background: linear-gradient(135deg, #f8fdff, #eefafd);
  border: 1px solid #d9edf4;
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
}

.stat-inline span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  max-width: 420px;
  width: calc(100% - 28px);
  bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(21, 63, 88, 0.13);
  backdrop-filter: blur(10px);
}

.bottom-nav a {
  text-align: center;
  padding: 12px 6px;
  color: #5f7184;
  text-decoration: none;
  font-size: 13px;
}

.bottom-nav a.active {
  color: var(--brand-dark);
  background: #f0f9fc;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 25, 42, 0.38);
  backdrop-filter: blur(4px);
  padding: 18px;
  z-index: 20;
}

.modal.show {
  display: flex;
}

.modal-panel {
  width: min(92vw, 420px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.modal-panel-wide {
  width: min(920px, 96vw);
}

.modal-panel-preview {
  width: min(1200px, 96vw);
  min-height: 66vh;
  height: min(92vh, calc(100vh - 24px));
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-panel-preview .modal-title {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

#report-preview-frame {
  flex: 1;
  width: 100%;
  min-height: 66vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f8fa;
}

.preview-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 66vh;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(245, 248, 250, 0.9);
  color: #4d6576;
  font-size: 14px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.preview-loading::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid #c7d4dd;
  border-top-color: #38c5dd;
  border-radius: 50%;
  animation: preview-spin 0.85s linear infinite;
}

.preview-loading[hidden] {
  display: none !important;
}

@keyframes preview-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.modal-panel h3 {
  margin: 0;
}

.modal-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.person-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.person-form label {
  display: grid;
  gap: 7px;
  color: #4b6476;
  font-size: 13px;
  font-weight: 600;
}

.person-form .span-2,
.person-form .form-section-title {
  grid-column: 1 / -1;
}

.account-suggest-wrap {
  position: relative;
}

.auth-card .account-suggest-list,
.modal-panel .account-suggest-list {
  z-index: 40;
}

.account-suggest-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d6edf3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 55, 72, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.account-suggest-list li {
  padding: 8px 12px;
  cursor: pointer;
  color: #27465a;
  font-size: 13px;
  font-weight: 500;
}

.account-suggest-list li:hover,
.account-suggest-list li.active {
  background: #edfafd;
}

.form-hint {
  margin: 0;
  font-size: 12px;
  color: #6b8594;
  font-weight: 500;
  line-height: 1.5;
}

.form-section-title {
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #edfafd, #f7fdff);
  border: 1px solid #d6edf3;
  font-weight: 700;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 20px;
  padding: 18px;
}

.sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 253, 255, 0.94) 100%);
  color: var(--text);
  padding: 16px 12px;
  border: 1px solid rgba(217, 234, 242, 0.9);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(28, 84, 111, 0.08);
  backdrop-filter: blur(10px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 10px 16px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand strong {
  color: #153246;
  font-size: 16px;
}

.sidebar-brand small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  text-decoration: none;
  color: #4e6577;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: linear-gradient(135deg, #eaf9fc, #ffffff);
  border-color: #d1edf4;
  color: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(88, 200, 220, 0.12);
}

.admin-main {
  padding: 0;
}

.admin-topbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 251, 254, 0.92));
  border: 1px solid rgba(218, 236, 244, 0.95);
  border-radius: 28px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 18px 42px rgba(28, 84, 111, 0.09);
  backdrop-filter: blur(10px);
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-title-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: contain;
  background: linear-gradient(135deg, #e1f8fc, #fff);
  padding: 7px;
  box-shadow: 0 12px 26px rgba(88, 200, 220, 0.18);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.admin-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 600;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(222, 237, 244, 0.95);
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 14px 34px rgba(28, 84, 111, 0.06);
  backdrop-filter: blur(8px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.source-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #d7ebf3;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fdff, #edfafd);
}

.source-upload strong {
  display: block;
  margin-bottom: 5px;
  color: #153246;
}

.source-upload p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.file-btn {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-progress {
  padding: 12px 14px;
  margin: -4px 0 14px;
  border: 1px solid #d7ebf3;
  border-radius: 18px;
  background: #f8fdff;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #456478;
  font-size: 13px;
}

.upload-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f3f7;
}

.upload-progress-track div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #8bddeb, #51c7da);
  transition: width 0.2s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6edf3;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 250, 253, 0.9));
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stats-grid article::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(18, 168, 198, 0.11);
}

.stats-grid h3 {
  margin: 0;
  font-size: 14px;
  color: #456478;
}

.stats-grid p {
  margin: 6px 0 0;
  font-size: 30px;
  color: #0b6785;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 140px auto;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #d7ebf3;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbfeff, #eefafd);
}

.table-shell {
  overflow: auto;
  border: 1px solid #dfeef4;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.pagination > div {
  display: flex;
  gap: 8px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: 13px;
  color: #4f6476;
  background: #f4fbfd;
}

td {
  font-size: 13px;
  background: #fff;
}

tbody tr:hover td {
  background: #f7fcfe;
}

.tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 600;
}

.tag.ok {
  background: #e6f8ef;
  color: #1f8b53;
}

.tag.warn {
  background: #fff7e7;
  color: #b07e14;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  white-space: normal;
}

#admin-people-body td:last-child {
  white-space: normal;
}

.upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.upload-form label {
  font-size: 13px;
  color: #4d6576;
}

.upload-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.download-grid article {
  border: 1px solid #d9e8f1;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f4fcff);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.download-grid h3 {
  margin: 0;
}

.download-grid p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .sidebar {
    position: static;
    height: auto;
    padding-bottom: 10px;
  }

  .sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .source-upload {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mobile-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bottom-nav {
    width: calc(100% - 20px);
  }

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

  .admin-main {
    padding: 10px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .person-form {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .table-actions {
    min-width: 0;
  }
}
