:root {
  --navy-950: #08182f;
  --navy-900: #0f2347;
  --navy-800: #18345f;
  --orange: #ff671f;
  --orange-soft: #fff1e9;
  --surface: #ffffff;
  --surface-muted: #f3f6fa;
  --line: #d7e0ea;
  --text: #17243a;
  --muted: #5f6f84;
  --green: #17824f;
  --yellow: #b96d00;
  --red: #c42b31;
  --blue: #2563a8;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #e8edf3; color: var(--text); font-family: "Segoe UI", Arial, sans-serif; }
body { padding: clamp(12px, 1.5vw, 24px); }
.board-shell { width: min(1920px, 100%); margin: 0 auto; display: grid; gap: clamp(12px, 1.3vw, 20px); }
.board-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-radius: 18px; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #fff; box-shadow: 0 14px 32px rgba(15,35,71,.18); }
.eyebrow { margin: 0 0 4px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.board-header h1 { margin: 0; font-size: clamp(26px, 2.3vw, 42px); line-height: 1; }
.header-tools { display: flex; align-items: center; gap: 22px; }
.region-control { display: grid; gap: 5px; color: #dce6f4; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.region-control select { min-width: 155px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.region-control option { color: #111827; }
.clock-block { min-width: 150px; text-align: right; }
.clock-block strong { display: block; font-size: clamp(28px, 3vw, 48px); line-height: .95; font-variant-numeric: tabular-nums; }
.clock-block span { display: block; margin-top: 6px; color: #dce6f4; font-size: 13px; }
.overview-grid { display: grid; grid-template-columns: .95fr 1.05fr 1.5fr; gap: clamp(12px, 1.3vw, 20px); }
.board-card, .assignments-panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 26px rgba(15,35,71,.08); }
.board-card { min-height: 210px; padding: 18px 20px; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-heading h2, .assignments-heading h2 { margin: 0; color: var(--navy-900); font-size: clamp(20px, 1.5vw, 28px); }
.card-heading span { color: var(--muted); font-size: 12px; font-weight: 700; }
.weather-content { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding-top: 18px; }
.weather-temp { font-size: clamp(52px, 5vw, 78px); font-weight: 900; color: var(--navy-900); line-height: 1; font-variant-numeric: tabular-nums; }
.weather-details { display: grid; gap: 5px; }
.weather-details strong { font-size: 18px; }
.weather-details span { color: var(--muted); font-size: 14px; }
.staff-list { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; }
.staff-list div { min-width: 0; padding: 7px 0; border-bottom: 1px solid #edf1f5; }
.staff-list dt { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.staff-list dd { margin: 3px 0 0; color: var(--navy-900); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.daily-information { min-height: 130px; display: grid; align-content: center; gap: 8px; padding-top: 14px; }
.daily-information h3 { margin: 0; color: var(--navy-900); font-size: clamp(21px, 1.8vw, 30px); }
.daily-information p { margin: 0; color: var(--text); font-size: clamp(16px, 1.25vw, 21px); line-height: 1.4; white-space: pre-wrap; }
.priority-urgent h3 { color: var(--red); }
.priority-important h3 { color: var(--yellow); }
.loading, .empty-copy { color: var(--muted); font-weight: 600; }
.assignments-panel { overflow: hidden; }
.assignments-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; background: var(--surface); }
.assignment-count { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.assignment-count strong { color: var(--orange); font-size: 32px; }
.assignment-count span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.assignment-table-wrap { overflow: auto; }
.assignment-table { width: 100%; border-collapse: collapse; background: #fff; }
.assignment-table th { padding: 12px 18px; background: var(--navy-900); color: #fff; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.assignment-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.25vw, 23px); vertical-align: middle; }
.assignment-table tbody tr:nth-child(even) { background: var(--surface-muted); }
.assignment-table tbody tr:last-child td { border-bottom: 0; }
.unit-id { color: var(--navy-900); font-size: clamp(26px, 2vw, 36px); font-weight: 950; white-space: nowrap; }
.unit-type { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.shift-id { color: var(--navy-900); font-weight: 900; }
.crew-copy { font-weight: 800; }
.hours { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 800; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #eaf4ee; color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-standby, .status-reserve { background: #fff4df; color: var(--yellow); }
.status-out-of-service { background: #feecef; color: var(--red); }
.empty-state { padding: 42px !important; color: var(--muted); text-align: center; font-weight: 700; }
.board-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.online-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,130,79,.12); }
@media (max-width: 1050px) { .overview-grid { grid-template-columns: 1fr 1fr; } .info-card { grid-column: 1 / -1; } }
@media (max-width: 720px) { body { padding: 8px; } .board-header { align-items: flex-start; flex-direction: column; } .header-tools { width: 100%; justify-content: space-between; } .overview-grid { grid-template-columns: 1fr; } .info-card { grid-column: auto; } .staff-list { grid-template-columns: 1fr; } .assignments-heading { align-items: flex-start; flex-direction: column; } .assignment-table th, .assignment-table td { padding: 11px 12px; } .assignment-table th:nth-child(6), .assignment-table td:nth-child(6) { display: none; } }

.care-level-chip { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#e8eef8; color:var(--navy-800); font-size:clamp(12px,.85vw,15px); font-weight:900; white-space:nowrap; }
