:root { font-family: system-ui, sans-serif; color: #1a1a1a; background: #f6f4ef; }
body { max-width: 1100px; margin: 0 auto; padding: 24px; }
header { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
h1 { font-size: 1.6rem; margin: 0; }
.sub { color: #555; margin: 0 auto 0 0; }
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.state-field { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.search-status { display: inline-flex; align-items: center; gap: 8px; color: #666; font-size: 13px; }
.search-status[hidden] { display: none; }
.spinner { width: 14px; height: 14px; border: 2px solid #ccc; border-top-color: #1d4e89; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { opacity: 0.6; cursor: default; }
input, select, button { padding: 8px 10px; font-size: 14px; }
.btn, button { background: #1d4e89; color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
button.secondary { background: #fff; color: #1d4e89; border: 1px solid #1d4e89; }
.muted { color: #666; font-size: 13px; }
.banner { background: #fff3cd; padding: 8px 12px; border-radius: 4px; }
.charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 800px) { .charts { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 13px; }
th, td { border-bottom: 1px solid #ddd; padding: 6px 8px; text-align: left; }
#rows thead th { cursor: pointer; user-select: none; white-space: nowrap; }
#rows tr.filters th { cursor: default; white-space: normal; }
#rows th.sorted-asc::after { content: " ▲"; font-size: 10px; }
#rows th.sorted-desc::after { content: " ▼"; font-size: 10px; }
.filters input, .filters select { width: 100%; box-sizing: border-box; padding: 4px 6px; font-size: 12px; font-weight: normal; }
.auth { margin-top: 32px; padding-top: 16px; border-top: 1px solid #ccc; }
#profile-menu { position: relative; }
#profile-menu summary { cursor: pointer; font-weight: 600; }
.admin-menu { position: absolute; z-index: 2; top: calc(100% + 8px); right: 0; width: min(360px, calc(100vw - 48px)); padding: 16px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 12px #0002; }
.admin-menu h2, .admin-menu h3 { margin: 0 0 10px; }
.admin-menu h3 { margin-top: 18px; }
.admin-menu input { max-width: 100%; box-sizing: border-box; }
