:root {
  --navy: #1e3a5f;
  --navy-dark: #152a46;
  --accent: #c45c26;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #5b6775;
  --line: #dce3ea;
  --ok: #2d8a5e;
  --warn: #c48912;
  --danger: #b33a32;
  --info: #2b6cb0;
  --sidebar-w: 240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-dark);
  color: #fff;
  flex-shrink: 0;
  padding: 1.1rem 0.8rem;
}
.brand {
  display: block;
  background: #d6e8f6;
  border-radius: 10px;
  padding: 0.55rem 0.6rem 0.5rem;
  margin: 0 0 1.15rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}
.sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar nav a {
  color: #d7e2ee;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92rem;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.sidebar .nav-section {
  margin: 1rem 0.7rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa0b5;
}
.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  margin-left: 0.25rem;
}
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-title { font-weight: 650; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 0.8rem; font-size: 0.9rem; }
.who .role { color: var(--muted); font-weight: 500; margin-left: 0.3rem; }
.content { padding: 1.2rem 1.2rem 5rem; max-width: 1200px; width: 100%; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.3rem; }
h1, h2, h3 { margin: 0 0 0.6rem; }
.muted { color: var(--muted); }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.stat { font-size: 1.6rem; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  background: #e8edf3;
}
.pill-ok { background: #d9f3e5; color: #176b43; }
.pill-warn { background: #fbe8c4; color: #8a5a08; }
.pill-danger { background: #f8d4d2; color: #8d241e; }
.pill-info { background: #d6e8f8; color: #1d4e80; }
.pill-muted { background: #e8edf3; color: #4d5966; }
.js-add-related-link {
  display: inline-block;
  margin-left: 0.75rem;
  font-weight: 650;
}
.job-location {
  margin: 1.25rem 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.job-location h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.job-address-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.job-address-field { flex: 1; margin-bottom: 0 !important; position: relative; }
.job-address-row .btn { white-space: nowrap; margin-bottom: 0.15rem; }
.job-address-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 0.15rem);
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(21, 42, 70, 0.12);
  max-height: 220px;
  overflow: auto;
}
.job-address-suggest[hidden] { display: none !important; }
.job-address-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
}
.job-address-suggest button:hover,
.job-address-suggest button.is-active { background: #eef3f8; }
.job-map-wrap {
  height: 340px;
  margin: 0 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8edf3;
}
.job-map {
  height: 100%;
  width: 100%;
}
.job-map .leaflet-tile,
.job-map .leaflet-marker-icon,
.job-map .leaflet-marker-shadow {
  max-width: none;
}
#job-map-status { margin: 0 0 0.75rem; }
.job-lock-address {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.65rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.job-lock-address input { width: auto; margin: 0; }
.ticket-weather { margin: 0 0 0.85rem; }
.ticket-weather-value {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.ticket-weather-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.ticket-weather-controls .job-lock-address { margin: 0; }
.btn, button.btn, input[type=submit], .actions button, .actions input {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;
}
.btn:hover, input[type=submit]:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: #5b6775; }
.btn.accent { background: var(--accent); }
.btn.danger { background: var(--danger); }
.btn.ok { background: var(--ok); }
.linkish { background: none; border: 0; color: var(--navy); cursor: pointer; font: inherit; }
.inline { display: inline; }
.form-grid { display: grid; gap: 0.75rem; max-width: 720px; }
.form-grid label, form p label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.2rem; }
input, select, textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
form p { margin: 0 0 0.75rem; }
.flash { list-style: none; padding: 0; }
.flash li {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  background: #d6e8f8;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}
.flash .success { background: #d9f3e5; }
.flash .error { background: #f8d4d2; }
.flash-dismiss {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 0.15rem;
  opacity: 0.7;
}
.flash-dismiss:hover { opacity: 1; }
.alert-row {
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.alert-row:last-child { border-bottom: 0; padding-bottom: 0; }
.alert-row:first-child { padding-top: 0; }
.alert-row.unread p:first-child { font-weight: 700; }
.alert-row p { margin: 0 0 0.25rem; }
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.split { display: grid; gap: 1rem; grid-template-columns: 1.2fr 0.8fr; }
.thread { display: flex; flex-direction: column; gap: 0.6rem; }
.bubble { background: #eef3f8; border-radius: 10px; padding: 0.6rem 0.8rem; max-width: 720px; }
.bubble.mine { background: #dce8f6; margin-left: auto; }
.clock-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.clock-actions form { margin: 0; }
.hero-clock { font-size: 1.1rem; }
.login-wrap { max-width: 420px; margin: 8vh auto; }
.login-brand {
  background: #d6e8f6;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.login-logo { display: block; width: 100%; height: auto; }
.construction-notice {
  background: #fbe8c4;
  color: #8a5a08;
  border: 1px solid #e0c07a;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.help { font-size: 0.85rem; color: var(--muted); }
.job-roster-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 1rem;
}
.job-roster-preview p { margin: 0.25rem 0; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }
.gps-place { margin: 0.85rem 0 0.4rem; max-width: 640px; }
.gps-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8edf3;
}
.gps-map.compact { height: 200px; }
.gps-map .leaflet-tile,
.gps-map .leaflet-marker-icon,
.gps-map .leaflet-marker-shadow {
  max-width: none;
}
.gps-coords { margin: 0.45rem 0 0; font-size: 0.9rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: baseline; }
.location-block { margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.location-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.onboard-hero {
  background: #2b333c;
  color: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.4rem 1.15rem;
  margin-bottom: 1.1rem;
}
.onboard-hero.compact { padding: 0.9rem 1.15rem; }
.onboard-kicker {
  margin: 0 0 0.25rem;
  color: #e67a35;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
.onboard-hero h1 { margin: 0; font-size: 1.65rem; }
.onboard-sub { margin: 0.35rem 0 0; color: #9ec4e6; }
.onboard-lead { font-weight: 650; margin: 0 0 0.6rem; }
.onboard-checklist td { padding: 0.7rem 0.45rem; }
.onboard-num { color: var(--muted); margin-right: 0.35rem; }
.onboard-status { width: 9rem; text-align: right; }
.onboard-important {
  border: 2px solid #c45c4a;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1.1rem 0;
  background: #fff8f6;
}
.onboard-important h3 { margin: 0 0 0.35rem; color: #c45c26; }
.onboard-important p { margin: 0; }
.admin-card { color: inherit; display: block; }
.admin-card:hover { text-decoration: none; border-color: var(--navy); }
input[type=checkbox], input[type=radio] { width: auto; }
.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 0.25rem 0 0; font-size: 0.85rem; }
.onboard-public-body { background: var(--bg); }
.onboard-public { max-width: 820px; margin: 2rem auto; padding: 0 1rem 2rem; }
.onboard-public-foot { margin-top: 1.2rem; }
.onboard-start-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-start;
}
.onboard-count {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
  color: #d6e8f6;
  font-size: 0.92rem;
}
.onboard-access-grid { max-width: none; }
.onboard-access-note { margin: 0 0 0.85rem; max-width: 46rem; }
.onboard-mailto { margin-bottom: 1rem; }
.onboard-checks { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.2rem; }
.onboard-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.92rem;
}
.onboard-check input { margin-top: 0.2rem; flex-shrink: 0; }
.onboard-privacy {
  background: #e7f1fa;
  border: 1px solid #b7d0e6;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
}
.onboard-privacy p { margin: 0; }
.onboard-start-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.4rem;
}
.onboard-back-slot { min-width: 2.5rem; }
.onboard-autosave { margin: 0; text-align: center; flex: 1; }
.onboard-begin {
  background: #1b7d8f;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 1.15rem;
  white-space: nowrap;
}
.onboard-begin:hover { text-decoration: none; }
.onboard-hub-actions { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; }
.onboard-hiring .card { margin-bottom: 1rem; }
.onboard-fields {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: 1fr 1fr;
}
.onboard-fields .full { grid-column: 1 / -1; }
.onboard-fields.three { grid-template-columns: 1fr 1fr 1fr; }
.onboard-checks { display: grid; gap: 0.55rem; margin-top: 1rem; }
.onboard-check-legal span { font-size: 0.9rem; line-height: 1.45; }
#id_e_signature.is-locked { background: #f3f6f8; cursor: not-allowed; }
.onboard-accepted-versions { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.onboard-doc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line, #e4e4e4);
}
.onboard-doc-row:last-of-type { border-bottom: 0; }
.onboard-doc-row h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.onboard-doc-row .help { margin: 0; max-width: 52ch; }
.onboard-ack-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line, #e4e4e4);
}
.onboard-ack-row:last-child { border-bottom: 0; }
.onboard-ack-row h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.onboard-open { background: #1b7d8f; white-space: nowrap; }
.onboard-how {
  background: #e8f4f7;
  border: 1px solid #b7d8df;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.onboard-how h3 { margin: 0 0 0.35rem; }
.onboard-how p { margin: 0; color: var(--muted); }
.onboard-course-head { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.onboard-course-head h2 { margin: 0; font-size: 1.15rem; }
.onboard-ssn-note {
  border: 2px solid #c45c4a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: #fff8f6;
}
.onboard-ssn-note h3 { margin: 0 0 0.3rem; color: #c45c26; font-size: 1rem; }
.onboard-ssn-note p { margin: 0; }
.onboard-upload { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.35rem; flex-wrap: wrap; }
.onboard-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.onboard-upload-btn { background: #1b7d8f; cursor: pointer; margin: 0; }
.onboard-file-name { color: var(--muted); font-size: 0.9rem; }
.onboard-part {
  margin: 1.25rem 0 0.6rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.onboard-client-table h2 { margin-top: 0; }
.onboard-client-table .table { margin: 0; }
.onboard-client-table .btn { font-size: 0.78rem; letter-spacing: 0.03em; }
.onboard-gap { color: var(--danger); font-weight: 700; }
.onboard-open-link {
  color: #1b7d8f;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
.onboard-driver-split {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.85fr);
  gap: 1.2rem;
  margin-top: 0.85rem;
}
.onboard-driver-uploads {
  background: #e8f4f7;
  border: 1px solid #b7d8df;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.onboard-driver-uploads p { margin: 0 0 0.85rem; }
.onboard-driver-uploads p:last-child { margin-bottom: 0; }
.onboard-work-status {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.onboard-work-status li { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.help-pop { position: relative; }
.help-icon {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.help-icon:hover { filter: brightness(1.12); text-decoration: none; color: #fff; }
.help-pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 40;
  width: min(22rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(21, 42, 70, 0.18);
  padding: 0.7rem 0.7rem 0.45rem;
}
.help-pop-panel input[type=search] {
  width: 100%;
  margin: 0 0 0.45rem;
}
.help-pop-results { max-height: 18rem; overflow: auto; }
.help-pop-results a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
}
.help-pop-results a:hover { background: #eef3f8; text-decoration: none; }
.help-pop-empty { margin: 0.4rem 0.2rem; color: var(--muted); font-size: 0.88rem; }
.help-pop-all {
  display: block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.4rem 0.2rem;
  border-top: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.88rem;
}
.help-menu-group { color: var(--muted); font-size: 0.72rem; font-weight: 650; }
.help-page-search {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  flex-wrap: wrap;
}
.help-page-search label { width: 100%; margin: 0; }
.help-page-search input[type=search] { flex: 1; min-width: 12rem; }
.help-toc p { margin: 0.25rem 0 0.7rem; }
.help-group { margin: 1.4rem 0 0.6rem; }
.help-topic { margin-bottom: 0.85rem; scroll-margin-top: 4.5rem; }
.help-topic h3 { margin-bottom: 0.35rem; }
.help-topic p { margin: 0.45rem 0 0; line-height: 1.55; }
.help-lead { font-weight: 550; }
.help-topic ol, .help-notes { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.help-notes { color: var(--muted); }
.site-report-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.site-report-kicker { margin: 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-report h1 { margin: 0.15rem 0 0; }
.site-report-status { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.site-card { margin-bottom: 0.85rem; }
.site-card h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.site-meta, .site-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}
.site-meta { margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.site-meta span, .site-fields label { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.03em; }
.site-meta strong { font-size: 1.05rem; }
.site-table-wrap { overflow-x: auto; }
.site-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.site-table th {
  background: #2d8a5e;
  color: #fff;
  font-weight: 650;
  padding: 0.45rem 0.4rem;
  text-align: left;
  white-space: nowrap;
}
.site-table td, .site-table tfoot th { padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.site-table tfoot th, .site-table tfoot td { background: #e8f6ee; }
.site-table input:not([type=checkbox]) {
  width: 100%;
  min-width: 4.2rem;
  padding: 0.28rem 0.35rem;
}
.site-table .site-num { min-width: 3.6rem; max-width: 5.5rem; }
.site-table input[type=checkbox] { width: auto; }
.site-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.site-check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; margin: 0 0 0.65rem; }
.site-check input { width: auto; margin-top: 0.2rem; }
.site-foot { color: var(--ok); font-weight: 650; font-size: 0.9rem; }
.site-add { margin-top: 1rem; }
.site-map { margin-top: 1rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); z-index: 20; }
  .sidebar.open { transform: none; }
  .nav-toggle { display: inline-block; }
  .content { padding: 1rem; }
  .onboard-start-hero { flex-direction: column; }
  .onboard-start-footer { flex-wrap: wrap; }
  .onboard-begin { width: 100%; text-align: center; }
  .onboard-fields, .onboard-fields.three, .onboard-doc-row, .onboard-ack-row, .onboard-driver-split { grid-template-columns: 1fr; }
  .job-address-row { flex-direction: column; align-items: stretch; }
  .site-split { grid-template-columns: 1fr; }
}
.training-people { min-height: 12rem; width: 100%; }
.training-option-block { margin: 1.1rem 0; }
.training-option-block ul {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.training-option-block li label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.help-fab-wrap {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
}
.help-fab {
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(21, 42, 70, 0.28);
}
.help-fab:hover { filter: brightness(1.08); }
.help-fab-wrap .help-pop-panel {
  right: 0;
  left: auto;
  top: auto;
  bottom: calc(100% + 0.55rem);
}
.staff-live-map { height: 420px; max-width: none; }
.staff-dot-wrap { background: transparent; border: 0; }
.staff-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(21, 42, 70, 0.35);
}
#staff-live-list tr[data-id] { cursor: pointer; }
#staff-live-list tr.is-live td:first-child { font-weight: 650; }
.track-banner {
  position: fixed;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 55;
  max-width: min(22rem, calc(100vw - 5.5rem));
  background: #1e3a5f;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(21, 42, 70, 0.28);
}
.track-banner.warn { background: #8a4b12; }
.help-links { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.help-links li { margin: 0.25rem 0; }
.help-manual { line-height: 1.55; }
.help-manual h1 { font-size: 1.4rem; }
.help-manual h2 { margin-top: 1.4rem; font-size: 1.15rem; }
.help-manual h3, .help-manual h4 { margin-top: 1rem; }
.help-manual table { width: 100%; border-collapse: collapse; margin: 0.7rem 0; }
.help-manual th, .help-manual td { border: 1px solid var(--line); padding: 0.4rem 0.55rem; text-align: left; vertical-align: top; }
.help-manual thead th { background: #eef3f8; }
.help-manual hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.help-manual code { font-size: 0.88em; }
@media (max-width: 860px) {
  .help-fab-wrap { right: 0.85rem; bottom: 0.85rem; }
  .content { padding-bottom: 5rem; }
  .staff-live-map { height: 280px; }
  .track-banner { left: 0.85rem; bottom: 4.6rem; }
}
html.theme-dark {
  --navy: #9ec4e6;
  --navy-dark: #0d1520;
  --accent: #e07a3a;
  --bg: #121820;
  --card: #1b232e;
  --text: #e6edf4;
  --muted: #9aabbc;
  --line: #2c3848;
  --ok: #3dba7a;
  --warn: #e0a83a;
  --danger: #e06a62;
  --info: #6aa8e0;
  color-scheme: dark;
}
html.theme-dark .brand { background: #243044; }
html.theme-dark .pill,
html.theme-dark .pill-muted { background: #2c3848; color: #c5d2de; }
html.theme-dark .pill-ok { background: #1a3d2c; color: #8ee0b0; }
html.theme-dark .pill-warn { background: #3d3014; color: #f0c56a; }
html.theme-dark .pill-danger { background: #3d1c1a; color: #f0a29c; }
html.theme-dark .pill-info { background: #1a3148; color: #9ec4e6; }
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea {
  background: #121820;
  color: var(--text);
}
html.theme-dark #id_e_signature.is-locked { background: #161d27; }
html.theme-dark .job-address-suggest,
html.theme-dark .help-pop-panel { background: #1b232e; }
html.theme-dark .job-address-suggest button:hover,
html.theme-dark .job-address-suggest button.is-active,
html.theme-dark .help-pop-results a:hover,
html.theme-dark .help-manual thead th { background: #243044; }
html.theme-dark .job-map-wrap,
html.theme-dark .gps-map { background: #161d27; }
html.theme-dark .flash li { background: #1a3148; }
html.theme-dark .flash .success { background: #1a3d2c; }
html.theme-dark .flash .error { background: #3d1c1a; }
html.theme-dark .bubble { background: #243044; }
html.theme-dark .bubble.mine { background: #1a3148; }
html.theme-dark .onboard-important { background: #2a1c18; }
html.theme-dark .onboard-privacy,
html.theme-dark .onboard-how,
html.theme-dark .onboard-client-note { background: #1a3148; border-color: #2c4a66; }
html.theme-dark .site-table tfoot th,
html.theme-dark .site-table tfoot td { background: #1a3d2c; }
html.theme-dark .nav-toggle { color: var(--text); }
