* { box-sizing: border-box; }

:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.94);
  --panel-border: #172554;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}

html {
  scrollbar-color: rgba(56, 189, 248, 0.65) rgba(15, 23, 42, 0.92);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.92);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.72), rgba(2, 132, 199, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.92);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.85), rgba(14, 165, 233, 0.92));
}

*::-webkit-scrollbar-corner {
  background: rgba(15, 23, 42, 0.92);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 30%),
    linear-gradient(180deg, #020617, #0f172a 45%, #020617);
  color: var(--text);
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
}

.toast {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: var(--shadow);
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.32);
}

.toast-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.toast-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.owner-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(2, 6, 23, 0.62), rgba(15, 23, 42, 0.72)),
    url("/background.png") center/cover no-repeat;
  z-index: 10;
}

.login-card,
.card {
  background: var(--panel);
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  border-radius: 20px;
  text-align: center;
}

.login-submit {
  margin-top: 18px;
  margin-bottom: 12px;
}

.login-logo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-notice {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-card h1,
.card h3,
.section h2 {
  margin: 0 0 10px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-freshness {
  font-size: 12px;
  color: var(--muted);
}

.login-sub,
.muted {
  color: var(--muted);
}

.login-card label,
.card label {
  display: block;
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.login-card label {
  text-align: left;
}

.login-card .btn.secondary.full {
  margin-top: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.78);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.login-error,
.note {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.login-error {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.note {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  margin-bottom: 14px;
}

.login-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.hr-desk-chrome {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
}

.hr-desk-chrome-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hr-desk-chrome-logo {
  border-radius: 10px;
  flex: 0 0 auto;
}

.hr-desk-chrome-title {
  font-weight: 700;
  font-size: 15px;
}

.hr-desk-chrome-sub code {
  font-size: 11px;
}

.hr-desk-chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qcw-hr-desk .hr-desk-chrome {
  display: flex;
}

.qcw-hr-desk .sidebar {
  display: none !important;
}

body.qcw-hr-desk #mainContent.app-shell {
  flex-direction: column;
}

.qcw-hr-desk #mainContent .main {
  width: 100%;
  max-width: none;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 270px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96));
  border-right: 1px solid rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-title div {
  font-weight: 700;
}

.sidebar-title small,
.sidebar-user {
  color: var(--muted);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-user-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-copy strong {
  color: #f8fafc;
  line-height: 1.2;
}

.sidebar-user-photo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sidebar-user-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-viewing {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.sidebar-viewing .small {
  color: #fef3c7;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}


.tag-action {
  margin-left: 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.12);
  color: var(--text);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  flex: 0 0 auto;
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.status-dot.live-connected {
  background: var(--success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.status-dot.live-connecting {
  background: var(--warning);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.status-dot.live-disconnected {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar-nav .btn.full {
  margin-top: 8px;
}

.nav-item {
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(56, 189, 248, 0.14);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
}

.btn.danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.btn.full {
  width: 100%;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.main {
  flex: 1;
  padding: 24px;
}

.section {
  display: block;
}

.section > * + * {
  margin-top: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.public-pressure-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-pressure-metric-grid .public-weather-metric-value {
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .public-pressure-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(8, 20, 16, 0.98), rgba(10, 24, 20, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.public-weather-extras-grid {
  align-items: stretch;
}

.public-weather-extras-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .public-weather-extras-grid-3 {
    grid-template-columns: 1fr;
  }
}

.wind-gust-low { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.wind-gust-moderate { background: rgba(234, 179, 8, 0.18); color: #fde047; }
.wind-gust-high { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

.covered-wind-gust-table td,
.covered-wind-gust-table th {
  font-size: 0.88rem;
  padding: 8px 10px;
}

.public-pollen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.public-pollen-pill,
.public-outdoor-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pollen-low { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.pollen-moderate { background: rgba(234, 179, 8, 0.18); color: #fde047; }
.pollen-high { background: rgba(249, 115, 22, 0.18); color: #fdba74; }
.pollen-very-high { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

.public-pollen-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.public-pollen-type {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 10px;
}

.public-outdoor-grid {
  display: grid;
  gap: 10px;
}

.public-outdoor-card {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px;
}

.public-outdoor-card-compact {
  padding: 10px 11px;
  border-radius: 12px;
}

.public-outdoor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.public-outdoor-card-compact .public-outdoor-card-head {
  margin-bottom: 4px;
}

.public-outdoor-card-compact .public-outdoor-card-head strong {
  font-size: 0.92rem;
}

.public-outdoor-card-compact .public-outdoor-pill {
  padding: 2px 8px;
  font-size: 0.68rem;
}

.public-outdoor-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.public-outdoor-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.outdoor-activity-pill {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.14);
  color: #dbeafe;
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.public-local-weather-card .public-outdoor-activities,
.signup-body .public-outdoor-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.public-local-weather-card .outdoor-activity-pill,
.signup-body .outdoor-activity-pill {
  padding: 3px 9px;
  font-size: 0.72rem;
}

.public-outdoor-note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #94a3b8;
}

.outdoor-excellent { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.outdoor-good { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.outdoor-fair { background: rgba(234, 179, 8, 0.18); color: #fde047; }
.outdoor-poor { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

.member-weather-extras-grid {
  margin-bottom: 4px;
}

.card {
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.card-header.compact {
  margin-bottom: 8px;
}

.member-card-header {
  align-items: flex-start;
}

.member-count-badge {
  font-size: 20px;
  font-weight: 800;
  color: #7dd3fc;
  text-align: right;
  line-height: 1.2;
  max-width: 220px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #7dd3fc;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}

.alert-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert-filter-grid {
  margin: 12px 0 14px;
}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 430px;
}

.group-items,
.list,
#pastAlertsList,
#userDirectoryList,
#adminGroupList,
#memberRequestsList,
#nws-alert-feed,
.alerts-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#groupMeMembersList {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

#nws-alert-feed,
#county-alerts-feed {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.approval-note {
  color: #facc15;
}

.approval-panel {
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 14px;
  padding: 12px;
  background: rgba(120, 53, 15, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approval-row select {
  min-width: 140px;
}

.group-items {
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 8px 10px;
  background: rgba(2, 6, 23, 0.35);
}

.forecast-county-list {
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forecast-county-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.forecast-county-option.hidden {
  display: none;
}

.selection-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.alert-county-selected-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
  padding: 8px;
}

.alert-county-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
}

.alert-county-name {
  font-size: 13px;
  line-height: 1.2;
}

.manual-push-volunteer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.manual-push-volunteer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.manual-push-volunteer-coverage {
  grid-column: 2 / -1;
}

.btn.compact {
  padding: 4px 8px;
  font-size: 12px;
}

.alert-compose {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alert-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.alert-compose-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert-compose-actions .btn {
  flex: 1 1 220px;
}

.state-group {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.42);
}

.state-group-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.county-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.county-item {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.15;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  flex-direction: row;
}

.county-item.hidden {
  display: none;
}

.county-item input {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  box-shadow: none;
  accent-color: var(--accent);
}

.group-item,
.member-card,
.request-card,
.alert-card,
.admin-row {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.5);
}

.member-card,
.request-card,
.alert-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.alert-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.row-actions,
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.check-row input {
  width: auto;
}

.admin-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-identity-photo,
.user-photo-preview {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-identity-photo.large {
  width: 72px;
  height: 72px;
}

.user-identity-photo.placeholder,
.user-photo-preview-fallback {
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.user-identity-photo img,
.user-photo-preview img,
.user-photo-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.digital-id-canvas {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
}

.digital-id-stack {
  display: grid;
  gap: 16px;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hr-records-staff-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
}

.hr-application-highlight {
  outline: 2px solid var(--accent, #1d75a8);
  outline-offset: 2px;
  border-radius: 8px;
}

.hr-state-groups {
  display: grid;
  gap: 12px;
}

.hr-state-group {
  border: 1px solid var(--border, #d9e3ee);
  border-radius: 8px;
  background: var(--card, #fff);
  overflow: hidden;
}

.hr-state-group summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--heading, #5d6e83);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hr-state-group summary::-webkit-details-marker {
  display: none;
}

.hr-state-group[open] summary {
  background: var(--soft, #eef5fb);
  border-bottom: 1px solid var(--border, #d9e3ee);
}

.hr-state-meta {
  color: #68788a;
  font-size: 0.82rem;
  font-weight: 600;
}

.hr-state-body {
  padding: 14px 16px 16px;
}

.hr-opening-card + .hr-opening-card {
  margin-top: 10px;
}

.hr-directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.hr-directory-filter-btn.active {
  background: var(--accent, #1d75a8);
  color: #fff;
  border-color: var(--accent, #1d75a8);
}

.hr-directory-group {
  border: 1px solid var(--border, #d9e3ee);
  border-radius: 8px;
  background: var(--card, #fff);
  overflow: hidden;
}

.hr-directory-group summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--heading, #5d6e83);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.hr-directory-group summary::-webkit-details-marker {
  display: none;
}

.hr-directory-group[open] summary {
  background: var(--soft, #eef5fb);
  border-bottom: 1px solid var(--border, #d9e3ee);
}

.hr-directory-group-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hr-directory-applicant-card {
  border-left: 3px solid var(--accent, #1d75a8);
}

.hr-directory-applicant-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hr-vetting-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
  border-left: 4px solid var(--hr-vetting-color, #64748b);
}

.hr-vetting-hero--pending {
  --hr-vetting-color: #64748b;
}

.hr-vetting-hero-score {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 88px;
}

.hr-vetting-score-value {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--hr-vetting-color, #e2e8f0);
  font-variant-numeric: tabular-nums;
}

.hr-vetting-score-unit {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.72);
}

.hr-vetting-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hr-vetting-hero-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.62);
}

.hr-vetting-hero-label {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.hr-vetting-hero-flag {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f87171;
}

.hr-vetting-score-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.hr-vetting-score-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hr-vetting-color, #64748b);
}

.hr-vetting-score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  font-weight: 700;
  line-height: 1;
}

.hr-vetting-score-pill--pass {
  border-color: rgba(28, 124, 74, 0.45);
  background: rgba(28, 124, 74, 0.16);
  color: #86efac;
}

.hr-vetting-score-pill--review {
  border-color: rgba(154, 103, 0, 0.45);
  background: rgba(154, 103, 0, 0.16);
  color: #fcd34d;
}

.hr-vetting-score-pill--fail,
.hr-vetting-score-pill--decline {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(180, 35, 24, 0.16);
  color: #fca5a5;
}

.hr-vetting-score-pill--pending {
  color: #cbd5e1;
}

.hr-vetting-score-pill-value {
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.hr-vetting-score-pill-unit {
  font-size: 0.82rem;
  opacity: 0.82;
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.form-grid .full-span-field {
  grid-column: 1 / -1;
}

.issue-type-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.subtab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section > .section-heading + .subtab-row,
.section > .subtab-row.section-subtab-bar {
  margin-bottom: 14px;
}

.section-subtab-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 8px 0 10px;
  background: var(--bg);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hr-training-attendance-table-wrap {
  overflow: auto;
  max-height: min(62vh, 720px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
}

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

.hr-training-attendance-table th,
.hr-training-attendance-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: top;
}

.hr-training-attendance-table thead th {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.96);
  z-index: 1;
  text-align: left;
}

.hr-training-attendance-table .btn {
  min-width: auto;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.training-lesson-section + .training-lesson-section {
  margin-top: 0;
}

.training-key-points-list {
  margin: 0;
  padding-left: 18px;
}

.training-scenario-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(14, 116, 144, 0.12);
}

.training-resource-link {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.35);
}

.training-resource-link + .training-resource-link {
  margin-top: 8px;
}

.training-module-card + .training-module-card {
  margin-top: 0;
}

.subtab-row .nav-item {
  width: auto;
  min-width: 140px;
}

.admin-user-form {
  gap: 12px;
}

.compact-user-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.full-span-input {
  width: 100%;
}

.admin-form-section {
  gap: 8px;
}

.compact-check-grid {
  gap: 8px 12px;
}

.compact-check-grid .check-row {
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.compact-notes {
  min-height: 72px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.field-group-inline {
  min-width: 160px;
}

.coverage-list-scroll {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.ownership-user-group {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.58);
}

.ownership-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ownership-county-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ownership-count-badge {
  font-size: 12px;
  color: #cbd5e1;
}

.tag,
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.tag {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.source-chip.manual {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.source-chip.automatic {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.severity-moderate { border-left: 4px solid var(--warning); }
.severity-severe { border-left: 4px solid var(--danger); }
.severity-extreme { border-left: 4px solid #f97316; }
.severity-minor { border-left: 4px solid var(--accent); }

.radar-frame,
.map-frame {
  width: 100%;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.78);
}

.radar-frame.large {
  min-height: 700px;
}

.radar-frame iframe,
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#routingMap {
  min-height: 640px;
}

#userDirectoryList,
#adminGroupList {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.forecast-canvas {
  width: 100%;
  min-height: 320px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.14);
  margin-top: 10px;
}

#severeAlertCanvas,
.forecast-product-frame {
  min-height: 420px;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 190px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.file-input-control {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.forecast-tool-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.forecast-logo-upload-box {
  margin-left: auto;
  min-width: 280px;
  max-width: 420px;
  flex: 1 1 320px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.42);
  position: relative;
  z-index: 2;
}

.forecast-logo-upload-box .inline-actions {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .forecast-logo-upload-box {
    margin-left: 0;
    min-width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}

.scheduler-grid-wrap {
  width: 100%;
  overflow: auto;
}

.scheduler-grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.scheduler-grid-table th,
.scheduler-grid-table td {
  border: 1px solid rgba(56, 189, 248, 0.14);
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}

.scheduler-grid-table th {
  background: rgba(2, 132, 199, 0.16);
  position: sticky;
  top: 0;
  z-index: 1;
}

.scheduler-time-cell {
  min-width: 136px;
  background: rgba(2, 132, 199, 0.08);
  color: #bae6fd;
  font-weight: 600;
}

.scheduler-cap-input {
  width: 60px;
  border-radius: 8px;
  padding: 4px 6px;
  text-align: center;
}

.scheduler-slot-btn {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.2;
}

.scheduler-slot-btn.booked-by-me {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}

.scheduler-slot-btn.booked-by-other {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.38);
  color: #cbd5e1;
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5000;
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: var(--shadow);
  z-index: 5001;
}

.modal-card.admin-events-registrations-modal {
  width: min(960px, 100%);
}

.modal-card.hr-workspace-modal-card {
  width: min(1120px, 100%);
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 18px 14px;
}

.hr-workspace-modal-header {
  flex-shrink: 0;
  margin-bottom: 0;
}

.hr-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  flex-shrink: 0;
}

.hr-workspace-tab-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  cursor: pointer;
  line-height: 1.2;
}

.hr-workspace-tab-btn:hover {
  border-color: rgba(56, 189, 248, 0.42);
}

.hr-workspace-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}

.hr-workspace-tab-panels {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 12px;
  padding-right: 2px;
}

.hr-workspace-tab-panel {
  display: none;
}

.hr-workspace-tab-panel.active {
  display: block;
}

.hr-workspace-tab-panel .stack,
.hr-workspace-tab-panel .form-grid {
  max-width: 100%;
}

.hr-workspace-modal-shell {
  z-index: 5100;
}

.admin-events-registrations-modal .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-events-registrations-modal .form-grid > div {
  min-width: 0;
}

@media (max-width: 640px) {
  .admin-events-registrations-modal .form-grid {
    grid-template-columns: 1fr;
  }
}

#adminEventsRegistrationsBody {
  max-height: min(60vh, 520px);
  overflow: auto;
}

#routingMap,
#routingMap .leaflet-pane,
#routingMap .leaflet-top,
#routingMap .leaflet-bottom,
#routingMap .leaflet-control {
  z-index: 1;
}

.alert-placeholder {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  padding: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 14px;
}

.health-hero {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.55), rgba(15, 23, 42, 0.88));
}

.health-status-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.health-status-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.health-events-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.forecast-product-frame {
  width: 100%;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.78);
}

.staff-live-coverage-iframe-wrap {
  margin-top: 4px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.78);
  min-height: 420px;
}

.staff-live-coverage-iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #0b1220;
}

.forecast-product-image {
  width: 100%;
  min-height: 420px;
  object-fit: contain;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.78);
}

@media (max-width: 980px) {
  .toast-region {
    top: 12px;
    right: 12px;
    left: auto;
    width: min(360px, calc(100vw - 24px));
  }

  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

.signup-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.9)),
    url("/background.png") center/cover no-repeat fixed;
}

.signup-shell {
  width: min(1080px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 24px;
}

.signup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.signup-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

a.signup-brand {
  color: inherit;
  text-decoration: none;
}

.signup-brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: var(--shadow);
}

.signup-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.signup-eyebrow,
.signup-kicker,
.signup-stat-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #7dd3fc;
}

.signup-brand h1,
.signup-hero h2 {
  margin: 4px 0 0;
}

.signup-layout {
  display: block;
}

.signup-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(820px, 100%);
  margin: 0 auto 14px;
}

.signup-tab-button {
  flex: 1 1 180px;
}

.signup-tab-button.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fafc;
}

.signup-card {
  border-radius: 18px;
  padding: 16px;
  width: min(700px, 100%);
  margin: 0 auto;
}

.signup-card + .signup-card {
  margin-top: 18px;
}

.signup-card-wide {
  width: min(820px, 100%);
}

.public-tab-panel {
  width: min(820px, 100%);
}

.alert-signup-page .signup-shell {
  width: min(1040px, calc(100vw - 24px));
}

.alert-signup-topbar {
  margin-bottom: 28px;
}

.alert-signup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.alert-signup-hero {
  padding: 18px 0;
}

.alert-signup-hero h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 8.5em;
}

.alert-signup-hero .muted {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

.alert-signup-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.alert-signup-stats > div {
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(2, 6, 23, 0.58);
  border-radius: 8px;
  padding: 14px;
}

.alert-signup-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.alert-signup-card {
  width: 100%;
  margin: 0;
}

.marketing-slot-host {
  width: min(820px, 100%);
  margin: 0 auto 16px;
}

.marketing-slot-host:empty {
  display: none;
}

.marketing-slot-host-member {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
}

.marketing-slot-host-login {
  width: 100%;
  margin: 14px 0 0;
}

.marketing-slot-inner {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.marketing-slot-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
}

.marketing-slot-text {
  margin: 0;
  white-space: pre-wrap;
}

.marketing-slot-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.signup-aside-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-consent {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  line-height: 1.55;
}

.signup-consent input {
  width: auto;
  margin-top: 2px;
}

.signup-staff-link {
  white-space: nowrap;
}

.signup-inline-meta {
  margin-top: 8px;
}

.signup-county-scroll {
  min-height: 23rem;
  overflow-y: auto;
}

.compact-form-grid {
  align-items: end;
}

.picker-action {
  display: flex;
  flex-direction: column;
}

.selection-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selection-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.selection-list.empty {
  color: var(--muted);
  align-items: center;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #e0f2fe;
}

.selection-chip-remove {
  border: 0;
  background: transparent;
  color: #bae6fd;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
}

.selection-chip-remove:hover {
  color: #ffffff;
}

.account-stack {
  gap: 10px;
}

.account-grid {
  gap: 10px;
  align-items: start;
}

.account-card {
  padding: 16px;
}

.account-card-stack {
  gap: 10px;
}

.account-consent {
  padding: 10px 12px;
  line-height: 1.35;
  border-radius: 12px;
}

.account-card .card-header.compact {
  margin-bottom: 8px;
}

.account-card .card-header.compact h3 {
  margin-bottom: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.ok {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.3);
  color: #dcfce7;
}

.live-pulse {
  animation: livePulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.status-pill.alert,
.status-pill.danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.34);
  color: #fee2e2;
}

.danger-text {
  color: #fecaca;
}

.live-alert-pulse {
  animation: liveAlertPulse 1.65s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
}

@keyframes liveAlertPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  65% {
    transform: scale(1.03);
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.live-briefing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
}

.live-briefing-player {
  width: 100%;
}

.live-briefing-player-host {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.98), rgba(9, 24, 44, 0.94));
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.live-briefing-player .cstrEmbed {
  width: 100%;
  min-height: 120px;
}

.live-briefing-html5-audio {
  width: 100%;
  margin: 0;
}

.live-briefing-plugin {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.live-briefing-plugin-lead {
  margin: 0;
  line-height: 1.45;
}

.live-briefing-plugin-foot {
  margin: 0;
  line-height: 1.45;
}

.live-briefing-plugin-hint code {
  font-size: 0.85em;
  word-break: break-all;
}

@media (max-width: 980px) {
  .alert-signup-layout {
    grid-template-columns: 1fr;
  }

  .alert-signup-hero {
    padding: 6px 0 0;
  }

  .alert-signup-hero h2 {
    max-width: 11em;
  }

  .signup-topbar,
  .signup-brand {
    flex-direction: column;
    align-items: start;
  }

  .signup-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 20px;
  }

  .signup-card {
    padding: 20px;
  }
}

.activation-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-chip.inactive {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.status-chip.standby {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.status-chip.active {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.status-chip.all-clear {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.inline-actions.wrap {
  flex-wrap: wrap;
}

.schedule-entry {
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.schedule-entry + .schedule-entry {
  margin-top: 0.85rem;
}

.schedule-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.schedule-entry strong {
  color: #0f172a;
  font-size: 1rem;
}

.schedule-entry .small {
  color: #1e293b;
  line-height: 1.45;
}

.schedule-entry .small.muted {
  color: #475569;
}

.active-shift-card {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.96));
}

.active-coverage-tag {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.28);
  color: #b91c1c;
}

.schedule-calendar-header,
.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.schedule-calendar-header {
  margin-bottom: 0.75rem;
}

.schedule-calendar-weekday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-calendar-day {
  min-height: 210px;
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-calendar-day.today {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.schedule-calendar-day.outside-month {
  opacity: 0.52;
}

.schedule-calendar-date {
  font-weight: 800;
  color: #0f172a;
}

.schedule-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.btn.slim {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.schedule-entry-pill {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.schedule-entry-pill:hover {
  border-color: rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.schedule-entry-pill.active {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.94));
}

.schedule-entry-pill-name {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.1;
}

.schedule-entry-pill-time {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.2;
}

.schedule-entry-pill-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b91c1c;
}

.schedule-entry-summary {
  margin-top: -0.2rem;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #64748b;
}

@media (max-width: 1100px) {
  .schedule-calendar-header,
  .schedule-calendar-grid {
    gap: 0.5rem;
  }

  .schedule-calendar-day {
    min-height: 170px;
    padding: 0.65rem;
    gap: 0.55rem;
  }

  .schedule-entry-pill {
    padding: 0.48rem 0.55rem;
  }
}

.sidebar-activation {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  margin: 0.7rem 0 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.sidebar-activation .status-chip {
  flex-shrink: 0;
}

.sidebar-activation-copy {
  min-width: 0;
}

.sidebar-activation-copy strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #e2e8f0;
  font-size: 0.85rem;
}

.sidebar-activation-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.45;
  max-height: 4.6em;
}

.resource-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.resource-access-card {
  border: 1px solid rgba(30, 41, 59, 0.2);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.98), rgba(203, 213, 225, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.resource-access-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #0f172a;
}

.resource-access-card .check-row {
  color: #0f172a;
  font-weight: 600;
}

.resource-access-card .check-row + .check-row {
  margin-top: 0.4rem;
}

.access-tab-card {
  border: 1px solid rgba(30, 41, 59, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 0.45rem;
  min-height: 92px;
  cursor: pointer;
}

.access-tab-card.selected {
  border-color: rgba(12, 111, 74, 0.45);
  background: #f6fffb;
}

.access-tab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.access-tab-resource-card {
  display: grid;
  gap: 0.45rem;
}

.coverage-assignment-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.coverage-assignment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.member-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.member-support-card {
  margin-bottom: 16px;
}

#memberSupportResults .tag {
  max-width: 100%;
}

.member-app-shell .main {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.public-account-toggle-wrap {
  display: flex;
  align-items: end;
}

.public-weather-current-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.public-weather-temp {
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.9;
  font-weight: 800;
  color: #f8fafc;
}

.public-weather-condition {
  font-size: 1.05rem;
  color: #cbd5e1;
}

.public-weather-summary {
  color: #e2e8f0;
  line-height: 1.55;
}

.public-weather-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-weather-metric {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px;
}

.public-weather-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.public-weather-metric-value {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.public-weather-hero-card,
.public-weather-radar-card,
.public-weather-live-card {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.98), rgba(12, 21, 38, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.public-weather-alerts-card {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(25, 10, 16, 0.98), rgba(26, 18, 26, 0.95));
  border: 1px solid rgba(239, 68, 68, 0.14);
}

.public-weather-alerts-card.no-active-alerts {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(8, 28, 20, 0.98), rgba(10, 34, 24, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.public-weather-radar-host {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.14);
}

.public-weather-radar-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.public-hourly-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.public-hourly-card,
.public-forecast-card,
.public-weekly-card {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(10, 15, 26, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-hourly-time,
.public-weekly-day {
  font-weight: 800;
  color: #f8fafc;
}

.public-hourly-temp,
.public-forecast-temp {
  font-size: 1.4rem;
  font-weight: 800;
  color: #7dd3fc;
}

.public-weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.public-weekly-summary {
  color: #cbd5e1;
}

.public-weekly-meta {
  color: #94a3b8;
  font-size: 0.88rem;
}

.weather-stack-compact {
  gap: 8px;
}

.weather-news-stack {
  gap: 12px;
}

.weather-card-compact {
  padding: 12px;
}

.weather-news-card {
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.98), rgba(9, 15, 24, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.14);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.05);
}

.weather-card-compact .card-header.compact {
  margin-bottom: 6px;
}

.weather-card-compact .card-header.compact h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.weather-card-compact .card-header.compact .muted {
  font-size: 0.82rem;
  line-height: 1.3;
}

.weather-rail-compact.public-hourly-rail {
  grid-template-columns: repeat(12, minmax(84px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.weather-rail-compact.public-forecast-rail {
  display: grid;
  gap: 6px;
}

.weather-grid-compact.public-weekly-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.weather-rail-compact .public-hourly-card,
.weather-rail-compact .public-forecast-card,
.weather-grid-compact .public-weekly-card {
  border-radius: 10px;
  padding: 10px 11px;
  gap: 4px;
}

.weather-rail-compact .public-hourly-temp,
.weather-rail-compact .public-forecast-temp {
  font-size: 1rem;
}

.weather-grid-compact .public-weekly-meta,
.weather-rail-compact .small,
.weather-rail-compact .public-hourly-condition,
.weather-rail-compact .public-hourly-precip {
  font-size: 0.76rem;
  line-height: 1.2;
}

.weather-rail-compact .public-hourly-time {
  font-size: 0.8rem;
}

.weather-rail-compact .public-hourly-card {
  min-width: 84px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.weather-rail-compact.public-forecast-rail .public-forecast-card {
  display: grid;
  grid-template-columns: 96px auto 1fr;
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  padding: 10px 0;
}

.weather-rail-compact.public-forecast-rail .public-forecast-card h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #f8fafc;
}

.weather-rail-compact.public-forecast-rail .public-forecast-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.weather-rail-compact.public-forecast-rail .public-forecast-card .public-forecast-temp {
  justify-self: end;
  white-space: nowrap;
  color: #7dd3fc;
}

.weather-rail-compact.public-forecast-rail .public-forecast-card > :nth-child(3) {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.25;
}

.weather-rail-compact.public-forecast-rail .public-forecast-card > :nth-child(4) {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 0.76rem;
}

.weather-grid-compact .public-weekly-card {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  padding: 10px 0;
}

.weather-grid-compact .public-weekly-summary {
  font-size: 0.82rem;
  line-height: 1.25;
}

.weather-grid-compact .public-weekly-meta {
  text-align: right;
  white-space: nowrap;
}

.weather-grid-compact .public-weekly-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

#memberSection-weather .member-weather-shell {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(5, 10, 24, 0.98), rgba(8, 15, 30, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.2);
}

#memberSection-weather .member-weather-shell > .card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 14px;
  margin-bottom: 4px;
}

#memberSection-weather .member-weather-shell > .card-header h3 {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

#memberSection-weather .weather-news-stack {
  gap: 14px;
}

#memberSection-weather .weather-news-card {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(11, 28, 56, 0.88), rgba(8, 19, 38, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.12);
}

#memberSection-weather .weather-news-card .signup-eyebrow {
  color: #7dd3fc;
  letter-spacing: 0.09em;
}

#memberSection-weather .weather-news-card .card-header.compact h3 {
  font-size: 1.12rem;
}

#memberSection-weather .weather-rail-compact.public-hourly-rail {
  grid-template-columns: repeat(12, minmax(92px, 1fr));
  gap: 8px;
}

#memberSection-weather .weather-rail-compact .public-hourly-card {
  min-width: 92px;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(9, 24, 48, 0.9), rgba(8, 17, 32, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.18);
}

#memberSection-weather .weather-rail-compact.public-forecast-rail .public-forecast-card {
  grid-template-columns: 116px auto 1fr;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 12px 2px;
}

#memberSection-weather .weather-rail-compact.public-forecast-rail .public-forecast-card h4 {
  color: #e2e8f0;
}

#memberSection-weather #memberDailyForecast.weather-rail-compact.public-forecast-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

#memberSection-weather #memberDailyForecast .public-forecast-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(9, 24, 48, 0.9), rgba(8, 17, 32, 0.9));
}

#memberSection-weather #memberDailyForecast .public-forecast-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

#memberSection-weather #memberDailyForecast .member-daily-temp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#memberSection-weather #memberDailyForecast .member-daily-temp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

#memberSection-weather #memberDailyForecast .member-daily-temp.high {
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.34);
  color: #fdba74;
}

#memberSection-weather #memberDailyForecast .member-daily-temp.low {
  background: rgba(125, 211, 252, 0.15);
  border: 1px solid rgba(125, 211, 252, 0.32);
  color: #bae6fd;
}

#memberSection-weather #memberDailyForecast .member-daily-summary {
  color: #dbe7f5;
  font-size: 0.82rem;
  line-height: 1.35;
}

#memberSection-weather #memberDailyForecast .member-daily-wind {
  margin-top: auto;
}

#memberSection-weather .weather-grid-compact .public-weekly-card {
  grid-template-columns: 120px 1fr auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 12px 2px;
}

#memberSection-weather .weather-grid-compact .public-weekly-summary {
  color: #dbe7f5;
}

@media (max-width: 900px) {
  #memberSection-weather .weather-grid-compact .public-weekly-card {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #memberSection-weather .weather-grid-compact .public-weekly-meta {
    justify-self: start;
    text-align: left;
  }

  #memberSection-weather #memberDailyForecast.weather-rail-compact.public-forecast-rail {
    grid-auto-columns: minmax(160px, 78vw);
  }
}

.public-weekly-conversation {
  display: block;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
  padding: 14px;
}

.public-weekly-conversation .public-weekly-day {
  margin-bottom: 8px;
}

.public-weekly-conversation .public-weekly-summary {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #dbe7f5;
}

.public-weekly-conversation .public-weekly-meta {
  margin-top: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.public-alert-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(127, 29, 29, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-alert-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.public-alert-modal-card {
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(14, 10, 16, 0.99), rgba(12, 16, 28, 0.98));
  padding: 24px;
}

.public-alert-modal-body {
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Member / registration bulk county picker (checkbox list, touch-friendly) */
.member-bulk-county-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.member-bulk-county-hint {
  margin: 0 0 6px;
}

.member-bulk-county-list {
  width: 100%;
  max-height: min(50vh, 22rem);
  min-height: 8rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 6px 4px;
  background: rgba(2, 6, 23, 0.55);
}

.member-bulk-county-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  margin: 2px 4px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.member-bulk-county-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

.member-bulk-county-item:active {
  background: rgba(56, 189, 248, 0.14);
}

.member-bulk-county-item input.member-bulk-county-cb {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.member-bulk-county-item span {
  flex: 1;
  line-height: 1.35;
  font-size: 0.95rem;
}

.member-bulk-county-empty {
  margin: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .member-access-grid,
  .public-weather-current-grid {
    grid-template-columns: 1fr;
  }

  .member-app-shell {
    flex-direction: column;
  }

  .member-app-shell .main {
    padding: 18px;
  }

  .member-bulk-county-list {
    max-height: min(45vh, 18rem);
  }
}
