:root {
  --ink: #202124;
  --muted: #666b73;
  --line: #d9dee7;
  --panel: #ffffff;
  --panel-soft: #f6f7f9;
  --green: #18805b;
  --gold: #b86b00;
  --red: #c03221;
  --blue: #1f70b8;
  --violet: #6b4eb6;
  --shadow: 0 12px 32px rgba(22, 29, 42, 0.16);
}

* {
  box-sizing: border-box;
}

/* Critical Leaflet layout rules, kept local so map tiles never fall into document flow. */
.leaflet-container {
  overflow: hidden;
  background: #d8dde3;
  outline: 0;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
}

.leaflet-tile {
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  pointer-events: none;
}

.leaflet-control-zoom {
  margin: 10px;
  border: 1px solid rgba(17, 24, 39, 0.24);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.leaflet-control-zoom a {
  display: block;
  width: 32px;
  height: 32px;
  color: #111827;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  line-height: 30px;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.leaflet-control-attribution {
  margin: 0;
  padding: 3px 6px;
  color: #374151;
  background: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: center;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.35;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 12px;
  margin-left: -11px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 14px;
  height: 14px;
  margin: -8px auto 0;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  color: #4b5563;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 20px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf0f4;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  padding: 14px;
  overflow: auto;
  background: #f9fafb;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 2px;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.save-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #3d4b3f;
  background: #e7f3eb;
  border: 1px solid #c9e4d1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.panel {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(22, 29, 42, 0.03);
}

.compact {
  padding: 10px 12px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mini-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--muted);
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.office-card {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 10px;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.3;
}

.office-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.office-dot {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  background: #111827;
  border: 3px solid #ffcc33;
  border-radius: 50%;
}

.focus-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.focus-actions button,
.focus-toggle,
.site-status {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.site-status {
  width: 100%;
  padding: 0 10px;
}

.focus-actions button:first-child {
  grid-column: 1 / -1;
  color: #111827;
  background: #fff6d8;
  border-color: #e4c868;
}

.focus-actions button.active,
.focus-toggle.active {
  color: #111827;
  background: #ffe68a;
  border-color: #cda62c;
}

.focus-actions .quiet {
  color: var(--red);
}

#printFocusPacketBtn {
  grid-column: 1 / -1;
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.focus-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  margin-top: 10px;
  overflow: auto;
}

.empty-focus {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.focus-site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  padding: 8px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #f1c232;
  border-radius: 8px;
}

.focus-site-row strong,
.focus-site-row span,
.focus-site-row em {
  display: block;
  min-width: 0;
}

.focus-site-row strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-site-row span,
.focus-site-row em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.focus-site-row em {
  margin-top: 3px;
  font-style: normal;
}

.focus-row-meta {
  min-width: 68px;
  text-align: right;
}

.focus-row-meta b {
  display: block;
  color: #111827;
  font-size: 11px;
  line-height: 1.2;
}

.search-wrap input,
.current-site textarea,
.marker-editor textarea,
.marker-editor input,
.marker-editor select,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-wrap input,
.marker-editor input,
.marker-editor select,
.toolbar select {
  height: 38px;
  padding: 0 10px;
}

textarea {
  resize: vertical;
  min-height: 80px;
  padding: 9px 10px;
  line-height: 1.35;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 112, 184, 0.18);
}

.site-list {
  display: grid;
  gap: 6px;
  max-height: 34vh;
  min-height: 160px;
  margin-top: 10px;
  overflow: auto;
}

.site-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 9px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.site-button:hover {
  background: var(--panel-soft);
}

.site-button.active {
  background: #eef6ff;
  border-color: #b7d6f2;
}

.site-button.focused {
  border-color: #e0bd42;
  box-shadow: inset 4px 0 0 #f1c232;
}

.site-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.site-title {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-chip {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  vertical-align: 1px;
  color: #111827;
  background: #ffe68a;
  border: 1px solid #d5b13e;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-address {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.site-distance {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 3px 7px;
  color: #24384c;
  background: #eef5fb;
  border: 1px solid #caddea;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.status-pill {
  color: #31270a;
  background: #fff8d8;
  border-color: #e4c868;
}

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

.section-head h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.25;
}

.muted {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.distance-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.focus-toggle {
  width: 100%;
  margin: 0 0 8px;
}

.distance-card div {
  min-width: 0;
  padding: 9px 10px;
  background: #f2f6f8;
  border: 1px solid #d7e2e8;
  border-radius: 8px;
}

.distance-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.distance-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.field-label {
  display: block;
  margin: 10px 0 5px;
  color: #454b52;
  font-size: 12px;
  font-weight: 750;
}

.candidate-coverage-card {
  margin: 10px 0;
  padding: 10px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.candidate-coverage-card .section-head {
  margin-bottom: 6px;
}

.coverage-block {
  color: #202124;
}

.coverage-note,
.coverage-caveat,
.coverage-source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.coverage-note {
  color: var(--ink);
}

.coverage-group {
  margin-top: 8px;
}

.coverage-group h3 {
  margin: 0 0 4px;
  color: #374151;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.coverage-group ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-group li {
  font-size: 12px;
  line-height: 1.25;
}

.coverage-caveat,
.coverage-source {
  margin-top: 8px;
}

.icon-button {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--panel-soft);
}

.icon-button.danger {
  color: var(--red);
}

.marker-editor {
  display: none;
}

.marker-editor.visible {
  display: block;
}

.export-panel {
  display: none;
}

.export-panel.visible {
  display: block;
}

.export-panel textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.export-panel button:not(.icon-button) {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
}

.coords {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.actions button,
.toolbar-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.actions button:first-child {
  grid-column: 1 / -1;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.actions .quiet {
  color: var(--red);
}

.toolbar-button.active {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.map-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  overflow: hidden;
  background: #edf0f4;
}

.map-pane {
  position: relative;
  min-height: 0;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.detail-dock {
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-height: 38vh;
  padding: 12px;
  overflow: auto;
  background: #f7f8fa;
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: 220px minmax(240px, 0.9fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}

.detail-grid .candidate-coverage-card {
  margin: 0;
}

.detail-grid .distance-card {
  margin-top: 0;
}

.detail-grid textarea {
  min-height: 118px;
}

.marker-editor-grid {
  display: grid;
  grid-template-columns: 180px 260px minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.marker-editor-grid .coords {
  align-self: center;
  margin: 0;
}

.toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: auto;
}

.tool-button,
.toolbar select,
.toolbar-button {
  pointer-events: auto;
  box-shadow: var(--shadow);
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.tool-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tool-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tool-color);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.toolbar select {
  width: min(260px, 100%);
  background: #fff;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  max-width: min(520px, calc(100vw - 28px));
  padding: 10px 12px;
  color: #fff;
  background: rgba(32, 33, 36, 0.92);
  border-radius: 8px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.print-reminder {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  max-width: min(430px, calc(100vw - 36px));
  padding: 10px 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 24, 39, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.print-reminder.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-pin {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #1f5fae;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(17, 24, 39, 0.72),
    0 6px 16px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  font-weight: 900;
}

.site-pin.active {
  width: 44px;
  height: 44px;
  background: #111827;
  font-size: 14px;
}

.site-pin.focused {
  background: #111827;
  border-color: #ffe68a;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(241, 194, 50, 0.78),
    0 8px 20px rgba(0, 0, 0, 0.48);
}

.office-pin,
.logistics-pin {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
}

.office-pin {
  width: 40px;
  height: 40px;
  background: #111827;
  border: 4px solid #ffcc33;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #fff,
    0 7px 18px rgba(0, 0, 0, 0.48);
  font-size: 12px;
}

.logistics-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.42));
}

.logistics-pin {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--marker-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.76);
  font-size: 14px;
  font-weight: 950;
}

.logistics-pin span {
  line-height: 1;
}

.pin-label {
  display: block;
  max-width: 132px;
  padding: 5px 7px;
  overflow: hidden;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 24, 39, 0.32);
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.district-label {
  display: grid;
  width: 94px;
  height: 26px;
  place-items: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #111827;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.leaflet-popup-content {
  min-width: 210px;
}

.popup-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.popup-line {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
}

.print-packet {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 48vh 52vh;
  }

  .sidebar {
    order: 2;
    height: 52vh;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .map-stage {
    order: 1;
    min-height: 58vh;
  }

  .map-pane {
    min-height: 34vh;
  }

  .detail-dock {
    max-height: 24vh;
  }

  .detail-grid,
  .marker-editor-grid {
    grid-template-columns: 1fr;
  }

  .site-list {
    max-height: 190px;
  }

  .toolbar {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .tool-button {
    padding: 0 8px;
    font-size: 13px;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.35in;
  }

  html,
  body {
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .app-shell,
  .sidebar,
  .toolbar,
  .toast,
  .print-reminder,
  .map-stage,
  #map {
    display: none !important;
  }

  .print-packet {
    display: block;
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .packet-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 10.25in;
    break-after: page;
    page-break-after: always;
    background: #fff;
  }

  .packet-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .packet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25in;
    padding-bottom: 0.12in;
    border-bottom: 2px solid #111827;
  }

  .packet-eyebrow {
    margin: 0 0 0.04in;
    color: #4b5563;
    font-size: 9pt;
    font-weight: 800;
    text-transform: uppercase;
  }

  .packet-header h1 {
    margin: 0;
    font-size: 20pt;
    line-height: 1.05;
  }

  .packet-header p {
    margin: 0.05in 0 0;
    font-size: 10pt;
  }

  .packet-meta {
    min-width: 1.7in;
    text-align: right;
    font-size: 9pt;
    line-height: 1.3;
  }

  .packet-meta strong,
  .packet-meta span {
    display: block;
  }

  .overview-table {
    width: 100%;
    margin-top: 0.18in;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8.2pt;
  }

  .overview-table th,
  .overview-table td {
    padding: 0.055in;
    vertical-align: top;
    border: 1px solid #c7cbd1;
    text-align: left;
    line-height: 1.22;
  }

  .overview-table th {
    color: #111827;
    background: #eef1f5;
    font-weight: 900;
  }

  .overview-table th:nth-child(1),
  .overview-table td:nth-child(1) {
    width: 21%;
  }

  .overview-table th:nth-child(2),
  .overview-table td:nth-child(2) {
    width: 24%;
  }

  .overview-table th:nth-child(3),
  .overview-table td:nth-child(3),
  .overview-table th:nth-child(4),
  .overview-table td:nth-child(4),
  .overview-table th:nth-child(5),
  .overview-table td:nth-child(5) {
    width: 11%;
  }

  .overview-table th:nth-child(6),
  .overview-table td:nth-child(6) {
    width: 22%;
  }

  .site-plan-header {
    margin-bottom: 0.08in;
  }

  .packet-map-frame {
    position: relative;
    width: 100%;
    height: 2.72in;
    overflow: hidden;
    border: 2px solid #111827;
    background: #d8dde3;
  }

  .packet-map-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .packet-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
  }

  .packet-map-warning {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    color: #7f1d1d;
    background: #fff;
    border: 4px solid #b91c1c;
    font-size: 18pt;
    font-weight: 900;
  }

  .packet-map-frame.map-load-failed .packet-map-warning {
    display: flex;
  }

  .print-mark {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.045in;
    max-width: 1.65in;
    transform: translate(-0.14in, -0.14in);
    filter: drop-shadow(0 0.03in 0.07in rgba(0, 0, 0, 0.45));
  }

  .print-mark span {
    display: grid;
    flex: 0 0 0.3in;
    width: 0.3in;
    height: 0.3in;
    place-items: center;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #111827;
    font-size: 10pt;
    font-weight: 950;
  }

  .print-mark.sign-holder span,
  .legend-dot.sign-holder-dot {
    background: #087442;
  }

  .print-mark.no-stand span,
  .legend-dot.no-stand-dot {
    background: #bd2619;
  }

  .print-mark b {
    padding: 0.025in 0.05in;
    overflow: hidden;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #111827;
    border-radius: 0.04in;
    font-size: 8pt;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-legend {
    display: flex;
    gap: 0.18in;
    align-items: center;
    margin: 0.055in 0 0.08in;
    font-size: 9pt;
    font-weight: 800;
  }

  .legend-dot {
    display: inline-grid;
    width: 0.22in;
    height: 0.22in;
    place-items: center;
    margin-right: 0.04in;
    color: #fff;
    border-radius: 50%;
    font-size: 8pt;
  }

  .field-sheet-block {
    border: 1px solid #aeb6c2;
    border-radius: 0.06in;
    padding: 0.06in 0.075in;
  }

  .field-sheet-block + .field-sheet-block {
    margin-top: 0.075in;
  }

  .field-sheet-block h2 {
    margin: 0 0 0.035in;
    font-size: 10pt;
    line-height: 1.1;
  }

  .field-sheet-block p {
    margin: 0;
    font-size: 8pt;
    line-height: 1.18;
  }

  .coverage-print-box {
    min-height: 0;
  }

  .coverage-print-box .coverage-note,
  .coverage-print-box .coverage-caveat,
  .coverage-print-box .coverage-source,
  .coverage-print-box .coverage-group li {
    font-size: 7.8pt;
    line-height: 1.14;
  }

  .coverage-print-box .coverage-group {
    margin-top: 0.035in;
  }

  .coverage-print-box .coverage-group h3 {
    margin-bottom: 0.018in;
    color: #111827;
    font-size: 7.9pt;
    text-transform: none;
  }

  .coverage-print-box .coverage-group ul {
    grid-template-columns: 1fr;
    gap: 0.02in;
  }

  .coverage-print-box .coverage-caveat {
    margin-top: 0.035in;
    color: #4b5563;
    font-size: 7.4pt;
  }

  .print-candidate-focus .coverage-group:first-of-type {
    margin-top: 0;
  }

  .safety-reminder p {
    font-size: 7.6pt;
    line-height: 1.16;
  }

  .traffic-scale,
  .traffic-note {
    font-size: 7.4pt;
    line-height: 1.12;
  }

  .traffic-note {
    margin-top: 0.018in;
  }

  .traffic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.14in;
    margin-top: 0.055in;
  }

  .traffic-column {
    display: grid;
    gap: 0.038in;
  }

  .traffic-row {
    display: grid;
    grid-template-columns: 0.34in 0.53in 0.65in 0.6in minmax(0, 1fr);
    gap: 0.02in 0.03in;
    align-items: end;
    font-size: 7pt;
    line-height: 1.08;
    white-space: nowrap;
  }

  .traffic-time {
    font-weight: 900;
  }

  .traffic-count {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    gap: 0.045in;
    min-width: 0;
  }

  .traffic-count i {
    display: block;
    border-bottom: 1px solid #111827;
  }

  .interaction-notes {
    min-height: 1.02in;
  }

  .lined-writing-area {
    display: grid;
    gap: 0.045in;
    margin-top: 0.025in;
  }

  .lined-writing-area i {
    display: block;
    height: 0.095in;
    border-bottom: 1px solid #9aa3af;
  }

  .identity-strip {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.35fr;
    gap: 0.16in;
    align-items: end;
    margin-top: auto;
    padding-top: 0.07in;
    font-size: 8pt;
    font-weight: 800;
  }

  .identity-strip label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.055in;
    align-items: end;
  }

  .identity-strip i {
    display: block;
    height: 0.17in;
    border-bottom: 1px solid #111827;
    font-style: normal;
  }
}
