:root {
  color-scheme: light;
  --ink-950: #111827;
  --ink-900: #15213a;
  --ink-800: #26344f;
  --ink-700: #3b4963;
  --ink-600: #5f6b80;
  --ink-500: #7d8799;
  --ink-300: #cfd5df;
  --ink-200: #e1e5eb;
  --ink-100: #eef1f5;
  --ink-050: #f7f8fa;
  --paper: #ffffff;
  --map-paper: #edf1eb;
  --blue: #335cff;
  --blue-dark: #2345cf;
  --blue-soft: #eef1ff;
  --orange: #f28b2f;
  --orange-soft: #fff1e5;
  --green: #15846d;
  --red: #ce4156;
  --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 14px 36px rgba(17, 24, 39, 0.16);
  --radius-sm: 7px;
  --radius-md: 11px;
  --header-height: 68px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink-100);
  color: var(--ink-900);
}

body {
  min-width: 320px;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid rgba(51, 92, 255, 0.34);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.app-shell {
  height: 100%;
  display: grid;
  grid-template-rows: var(--header-height) auto minmax(0, 1fr);
}

.app-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink-900);
  color: white;
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.18);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #5272ff, #2b4dda);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.brand-block h1 {
  margin: -1px 0 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
}

.app-header .eyebrow {
  color: #9aa7c2;
}

.header-context {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  flex: 1;
}

.context-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.context-item span {
  color: #9aa7c2;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.context-item strong {
  max-width: 190px;
  overflow: hidden;
  color: #f7f9ff;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce2f0;
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6bf5d;
  box-shadow: 0 0 0 3px rgba(246, 191, 93, 0.13);
}

.sync-status.connected .status-dot {
  background: #5fd2aa;
  box-shadow: 0 0 0 3px rgba(95, 210, 170, 0.13);
}

.sync-status.demo {
  border-color: rgba(249, 177, 83, 0.25);
  background: rgba(218, 127, 29, 0.14);
  color: #ffd9a6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-identity[hidden] {
  display: none;
}

.session-identity strong {
  max-width: 150px;
}

.routing-job {
  position: relative;
  z-index: 35;
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(230px, 1.2fr)
    minmax(260px, 1.7fr)
    minmax(330px, 1.3fr)
    auto;
  align-items: center;
  gap: 12px 18px;
  min-height: 70px;
  padding: 9px 18px;
  border-bottom: 1px solid #cbd3e1;
  background: #f7f9fc;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.09);
}

.routing-job[hidden] {
  display: none;
}

.routing-job[data-status="completed"] {
  border-bottom-color: rgba(21, 132, 109, 0.35);
  background: #f2faf7;
}

.routing-job[data-status="failed"],
.routing-job[data-status="cancelled"] {
  border-bottom-color: rgba(206, 65, 86, 0.3);
  background: #fff7f8;
}

.routing-job-state {
  min-width: 0;
}

.routing-job-state .eyebrow {
  overflow: hidden;
  margin-bottom: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-job-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.routing-job-title strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-job-title span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.routing-job-state > p:last-child {
  max-width: 460px;
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-job-progress {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.routing-job-progress progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #dfe4ec;
  color: var(--blue);
  accent-color: var(--blue);
}

.routing-job-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dfe4ec;
}

.routing-job-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #335cff, #627dff);
}

.routing-job-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #335cff, #627dff);
}

.routing-job[data-status="completed"] progress {
  color: var(--green);
  accent-color: var(--green);
}

.routing-job[data-status="completed"] progress::-webkit-progress-value,
.routing-job[data-status="completed"] progress::-moz-progress-bar {
  background: var(--green);
}

.routing-job-phase-detail {
  overflow: hidden;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-job-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.7fr;
  gap: 12px;
  margin: 0;
}

.routing-job-metrics > div {
  min-width: 0;
  padding-left: 11px;
  border-left: 1px solid var(--ink-200);
}

.routing-job-metrics dt {
  margin-bottom: 2px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.routing-job-metrics dd {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

.routing-job-metrics strong {
  color: var(--ink-900);
  font-size: 12px;
}

.routing-job-metrics span {
  overflow: hidden;
  color: var(--ink-600);
  font-size: 9.5px;
  text-overflow: ellipsis;
}

.routing-job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.routing-job-actions .button {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 10.5px;
}

.routing-job-actions .icon-button {
  width: 30px;
  height: 30px;
}

.routing-job-execution {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid var(--ink-200);
}

.routing-job-execution[hidden] {
  display: none;
}

.routing-job-execution-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.routing-job-execution-item[hidden] {
  display: none;
}

.routing-job-execution-label {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.routing-job-execution-item strong {
  max-width: 320px;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-job-stopped-reason {
  max-width: 100%;
  overflow: hidden;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-job-stopped-reason[hidden] {
  display: none;
}

.button,
.icon-button,
.map-button,
.text-button {
  border: 0;
  color: inherit;
}

.button {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.button:active {
  transform: translateY(1px);
}

/*
 * An author-declared display always beats the user-agent's [hidden] rule, so a
 * button that sets display: inline-flex or inline-grid stays on screen when the
 * markup or the script hides it. Every control the workspace shows and hides -
 * Cancel, Load plan, Dismiss, Sign out, Stop upload - is one of these, so the
 * attribute is honoured here once for the whole button system.
 */
.button[hidden],
.icon-button[hidden],
.text-button[hidden] {
  display: none;
}

.button.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 12px rgba(51, 92, 255, 0.25);
}

.button.primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button.ghost {
  border: 1px solid var(--ink-200);
  background: white;
  color: var(--ink-800);
}

.app-header .button.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #edf1fa;
}

.button.ghost:hover {
  background: var(--ink-050);
}

.app-header .button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary {
  border: 1px solid var(--ink-200);
  background: var(--paper);
  color: var(--ink-800);
}

.button.secondary:hover {
  border-color: #b4bdca;
  background: var(--ink-050);
}

.full-width {
  width: 100%;
}

.workspace {
  --setup-panel-width: 660px;
  --route-panel-width: 312px;
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--setup-panel-width)) minmax(468px, 1fr) minmax(0, var(--route-panel-width));
  overflow: hidden;
  transition: grid-template-columns 180ms ease;
}

.panel {
  position: relative;
  z-index: 20;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 3px 0 14px rgba(17, 24, 39, 0.07);
}

.route-panel {
  box-shadow: -3px 0 14px rgba(17, 24, 39, 0.07);
}

.setup-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.panel-edge-toggle {
  position: absolute;
  z-index: 46;
  top: 50%;
  width: 30px;
  height: 132px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #b7c0ce;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-800);
  box-shadow: 0 5px 16px rgba(17, 24, 39, 0.18);
  font-size: 25px;
  font-weight: 760;
  line-height: 1;
  transition: left 180ms ease, right 180ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.panel-edge-toggle:hover {
  border-color: #8fa2e6;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.panel-edge-toggle:focus-visible {
  outline-offset: -4px;
}

.setup-edge-toggle {
  left: calc(var(--setup-panel-width) - 1px);
  border-radius: 0 10px 10px 0;
}

.route-edge-toggle {
  right: calc(var(--route-panel-width) - 1px);
  border-radius: 10px 0 0 10px;
}

@media (min-width: 1280px) {
  .setup-panel {
    grid-column: 1;
  }

  .map-workspace {
    grid-column: 2;
  }

  .route-panel {
    grid-column: 3;
  }

  .workspace.setup-panel-collapsed {
    --setup-panel-width: 0px;
  }

  .workspace.route-panel-collapsed {
    --route-panel-width: 0px;
  }

  .workspace.setup-panel-collapsed .setup-panel,
  .workspace.route-panel-collapsed .route-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .setup-panel,
  .route-panel {
    transition: visibility 0s linear 0s, opacity 120ms ease;
  }

  .workspace.setup-panel-collapsed .setup-panel,
  .workspace.route-panel-collapsed .route-panel {
    transition: visibility 0s linear 120ms, opacity 120ms ease;
  }
}

.setup-tabs {
  grid-row: 2;
  position: relative;
  z-index: 3;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-050);
}

.setup-tab-button {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-600);
  font-size: 10.5px;
  font-weight: 780;
}

.setup-tab-button:hover {
  border-color: var(--ink-200);
  background: white;
  color: var(--ink-900);
}

.setup-tab-button[aria-selected="true"] {
  border-color: #aebbe8;
  background: white;
  color: var(--blue-dark);
  box-shadow: 0 2px 7px rgba(38, 52, 79, 0.09), inset 0 -3px 0 var(--blue);
}

.setup-tab-button:focus-visible {
  outline: 3px solid rgba(51, 92, 255, 0.28);
  outline-offset: 1px;
}

.setup-tab-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-tab-button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-tab-tooltip {
  position: fixed;
  z-index: 120;
  max-width: 280px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #18233c;
  color: white;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.setup-tab-tooltip[hidden],
.setup-tab-panel[hidden] {
  display: none;
}

.setup-tab-viewport {
  grid-row: 4;
  min-width: 0;
  min-height: 0;
  display: grid;
  overflow: hidden;
}

.setup-panel > .panel-heading {
  grid-row: 1;
}

.routing-wizard-bar {
  grid-row: 3;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #b9c6f3;
  background: linear-gradient(135deg, #f5f7ff 0%, #edf1ff 100%);
}

.routing-wizard-bar[hidden],
.routing-wizard-footer[hidden] {
  display: none;
}

.routing-wizard-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 14px;
  box-shadow: 0 3px 9px rgba(51, 92, 255, 0.24);
}

.routing-wizard-bar .eyebrow {
  color: var(--blue-dark);
}

.routing-wizard-bar strong {
  display: block;
  margin-top: 1px;
  font-size: 12px;
}

#routingWizardStepHelp {
  margin: 2px 0 0;
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.35;
}

#routingWizardStepProgress {
  width: min(240px, 100%);
  height: 5px;
  display: block;
  margin-top: 7px;
  border: 0;
  accent-color: var(--blue);
}

.routing-wizard-footer {
  grid-row: 5;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--ink-200);
  background: white;
  box-shadow: 0 -5px 14px rgba(17, 24, 39, 0.06);
}

.routing-wizard-footer > div {
  min-width: 0;
  text-align: center;
}

#routingWizardStatus {
  display: block;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 700;
}

.routing-wizard-error {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--red);
  font-size: 9.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding-inline: 7px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
}

.setup-guide-button:hover {
  border-color: #aebbe8;
  background: var(--blue-soft);
  text-decoration: none;
}

.setup-tab-panel {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.panel-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ink-200);
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.panel-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #9ba6b6 #eef1f5;
}

.panel-scroll::-webkit-scrollbar {
  width: 11px;
}

.panel-scroll::-webkit-scrollbar-track {
  background: var(--ink-100);
}

.panel-scroll::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid var(--ink-100);
  border-radius: 999px;
  background: #9ba6b6;
}

.panel-scroll::-webkit-scrollbar-thumb:hover {
  background: #778396;
}

.control-section,
.legend-section,
.selected-section,
.warning-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink-200);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.info-trigger {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  padding: 0;
  border: 1px solid #bdc6d3;
  border-radius: 50%;
  background: white;
  color: var(--blue-dark);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.info-trigger:hover {
  border-color: #8fa2e6;
  background: var(--blue-soft);
}

.setup-guidance-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #c5cff3;
  background: #f7f8ff;
}

.setup-guidance-heading strong {
  font-size: 11.5px;
}

.setup-guidance-heading p {
  margin: 2px 0 0;
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.4;
}

.section-heading label,
.field-title,
.section-heading h3,
.control-section > label:not(.check-row),
.selected-section > label {
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 780;
}

.section-heading h3 {
  margin: 0;
}

.field-help,
.editor-help {
  margin: 3px 0 0;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.4;
}

.text-button {
  min-height: 24px;
  padding: 2px 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.text-button:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.field-label {
  display: block;
  margin: 10px 0 5px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

select,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"] {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--ink-300);
  border-radius: 7px;
  background: white;
  color: var(--ink-900);
  font-size: 12px;
}

select:hover,
input[type="text"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
input[type="date"]:hover {
  border-color: #acb5c4;
}

.segmented {
  display: grid;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-100);
}

.segmented.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.segmented.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.segmented label {
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.segmented input:checked + span {
  background: white;
  color: var(--ink-900);
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.11);
}

.segmented input:focus-visible + span {
  outline: 3px solid rgba(51, 92, 255, 0.3);
}

.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 7px;
  background: #f0f4f8;
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.4;
}

.note-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce5ef;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 800;
}

.inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.capacity-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.capacity-primary-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--ink-700);
  font-size: 10.5px;
  font-weight: 700;
}

.capacity-primary-grid .wide-field {
  grid-column: 1 / -1;
}

.capacity-time-help {
  margin-bottom: 10px;
}

.inline-fields label,
.capacity-grid label,
.details-content label,
#roadFields label,
dialog label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--ink-700);
  font-size: 10.5px;
  font-weight: 700;
}

.is-disabled > span {
  opacity: 0.5;
}

.capacity-overall {
  margin-top: 10px;
}

.capacity-overall label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-700);
  font-size: 10.5px;
  font-weight: 700;
}

.capacity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.capacity-grid label > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.category-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.category-dot.improved {
  background: #5471ca;
}

.category-dot.vacant {
  background: #6b9978;
}

.category-dot.construction {
  background: #e58b2b;
}

.category-dot.commercial {
  background: #a25cbe;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  color: var(--ink-800);
}

.check-row.compact {
  margin-top: 0;
  padding: 9px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-050);
}

.check-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.check-row span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.check-row strong {
  font-size: 11px;
}

.check-row small {
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.count-pill {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 750;
}

.count-pill.warning {
  background: var(--orange-soft);
  color: #ad5819;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.team-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 3px;
}

.team-row input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.person-color {
  width: 9px;
  height: 25px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 4px;
  vertical-align: middle;
}

.team-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.team-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-copy small {
  color: var(--ink-500);
  font-size: 9.5px;
}

.team-copy .team-summary {
  overflow: hidden;
  color: var(--ink-700);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-edit-button {
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid var(--ink-300);
  border-radius: 7px;
  background: white;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 750;
}

.team-edit-button:hover {
  border-color: #aebbe8;
  background: var(--blue-soft);
}

.team-status {
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-200);
}

.apply-location-defaults {
  margin-top: 10px;
}

.location-workflow-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #bdc8f4;
  border-radius: 9px;
  background: #f4f6ff;
  color: var(--ink-800);
}

.location-workflow-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: var(--blue-dark);
  font-size: 17px;
  box-shadow: var(--shadow-sm);
}

.location-workflow-callout strong {
  font-size: 11px;
}

.location-workflow-callout p {
  margin: 3px 0 0;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.45;
}

.appraiser-endpoint-summary {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.appraiser-endpoint-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: var(--ink-050);
}

.appraiser-endpoint-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appraiser-endpoint-row strong {
  color: var(--ink-900);
  font-size: 10px;
}

.appraiser-endpoint-row.is-missing {
  border-color: #efc58c;
  background: #fff9ef;
}

.appraiser-endpoint-row button {
  min-height: 27px;
  padding: 4px 7px;
  border: 1px solid var(--ink-300);
  border-radius: 6px;
  background: white;
  color: var(--blue-dark);
  font-size: 9.5px;
  font-weight: 750;
}

.grid-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 8px 0 9px;
}

.chip-label {
  display: block;
  margin: 10px 0 6px;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 750;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.grid-chip {
  min-height: 30px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  background: white;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 780;
}

.grid-chip[aria-pressed="true"] {
  border-color: #879eff;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.category-chip {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: white;
  color: var(--ink-600);
  font-size: 9.5px;
  font-weight: 730;
}

.category-chip[aria-pressed="true"] {
  border-color: #9eacf2;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.methods-section {
  padding-top: 0;
}

details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

details summary small {
  color: var(--ink-500);
  font-size: 10px;
}

details summary::after {
  content: "⌄";
  color: var(--ink-500);
  font-size: 16px;
}

details:not([open]) summary::after {
  transform: rotate(-90deg);
}

.details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 9px;
  padding: 2px 0 12px;
}

.optimizer-callout {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #d6dcff;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f6ff, #eef1ff);
}

.optimizer-callout strong {
  color: #3047b4;
  font-size: 10px;
}

.optimizer-callout span {
  color: var(--ink-600);
  font-size: 9.5px;
  line-height: 1.4;
}

.details-content label:first-child,
.details-content label:nth-child(2) {
  grid-column: span 2;
}

.methods-section .details-content label {
  grid-column: auto;
}

.methods-section .details-content label:nth-of-type(1),
.methods-section .details-content label:nth-of-type(2) {
  grid-column: span 2;
}

.service-time-content label:first-child {
  grid-column: span 2;
}

.service-time-content label:nth-child(2) {
  grid-column: auto;
}

.method-note {
  grid-column: span 2;
  margin: 0;
  padding: 8px 9px;
  border-left: 3px solid #97a8fb;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--ink-600);
  font-size: 9.5px;
  line-height: 1.45;
}

.icon-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-close,
.mobile-panel-toggle {
  display: none;
}

.map-workspace {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--map-paper);
}

#mapCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#routePlaybackCanvas {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#mapCanvas.is-dragging {
  cursor: grabbing;
}

#mapCanvas.editing-road {
  cursor: crosshair;
}

#mapCanvas.editing-grid {
  cursor: crosshair;
}

#mapCanvas.picking-location {
  cursor: crosshair;
}

.map-context-menu {
  position: absolute;
  z-index: 40;
  width: min(265px, calc(100% - 20px));
  overflow: hidden;
  border: 1px solid var(--ink-300);
  border-radius: 9px;
  background: white;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
}

.map-context-menu[hidden] {
  display: none;
}

.map-context-menu > p {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-050);
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 700;
}

.map-context-menu > button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid var(--ink-200);
  background: white;
  color: var(--ink-800);
  text-align: left;
}

.map-context-menu > button[hidden] {
  display: none;
}

.map-context-menu > button:last-child {
  border-bottom: 0;
}

.map-context-menu > button:hover,
.map-context-menu > button:focus-visible {
  background: var(--blue-soft);
  color: var(--blue-dark);
  outline: 0;
}

.map-context-menu > button > span:first-child {
  color: var(--blue-dark);
  font-size: 17px;
  text-align: center;
}

.map-context-menu > button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.map-context-menu strong {
  font-size: 10.5px;
}

.map-context-menu small {
  color: var(--ink-600);
  font-size: 9px;
}

.map-toolbar,
.map-summary,
.map-scale,
.map-instructions,
.map-mode-banner,
.map-attribution,
.layer-menu {
  position: absolute;
  z-index: 10;
}

.map-toolbar {
  top: 14px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(38, 52, 79, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.map-toolbar.top-left {
  left: 14px;
}

.map-toolbar.top-center {
  left: 50%;
  transform: translateX(-50%);
}

.map-toolbar.top-right {
  right: 14px;
}

.map-button {
  min-width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--ink-200);
  background: transparent;
  color: var(--ink-800);
  font-size: 18px;
  font-weight: 650;
}

.map-button:last-child {
  border-right: 0;
}

.map-button.text {
  font-size: 10.5px;
  font-weight: 760;
}

.map-button:hover,
.map-button.is-active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.filter-bar {
  padding: 3px;
}

.filter-bar label {
  display: flex;
}

.filter-bar select {
  width: auto;
  min-width: 100px;
  min-height: 30px;
  padding: 4px 25px 4px 8px;
  border: 0;
  background-color: transparent;
  font-size: 10.5px;
  font-weight: 710;
}

.toolbar-divider {
  width: 1px;
  margin: 4px 2px;
  background: var(--ink-200);
}

.layer-menu {
  top: 58px;
  right: 91px;
  min-width: 175px;
  padding: 11px;
  border: 1px solid var(--ink-200);
  border-radius: 9px;
  background: white;
  box-shadow: var(--shadow-md);
}

.layer-menu p {
  margin: 0 0 7px;
  color: var(--ink-600);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.layer-menu label {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 650;
}

.layer-menu input {
  accent-color: var(--blue);
}

.layer-menu .aerial-layer-option {
  min-height: 39px;
  align-items: flex-start;
  padding-block: 4px;
}

.layer-menu .parcel-layer-option {
  min-height: 43px;
  align-items: flex-start;
  padding-block: 4px;
}

.aerial-layer-option > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.parcel-layer-option > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aerial-layer-option small {
  max-width: 150px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 8.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aerial-layer-option.is-unavailable {
  color: var(--ink-500);
}

.parcel-status-key {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  color: var(--ink-500);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.2;
}

.parcel-status-key > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.parcel-status-swatch {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.parcel-status-swatch.visited {
  color: #159447;
  background: rgba(21, 148, 71, 0.2);
}

.parcel-status-swatch.unvisited {
  color: #d9364f;
  background: rgba(217, 54, 79, 0.2);
}

.map-attribution {
  right: 12px;
  bottom: 10px;
  max-width: min(55%, 360px);
  padding: 4px 7px;
  border: 1px solid rgba(38, 52, 79, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-600);
  font-size: 8.5px;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.map-summary {
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(38, 52, 79, 0.14);
  border-radius: 10px;
  background: rgba(21, 33, 58, 0.94);
  color: white;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.map-summary > div {
  min-width: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.map-summary > div:last-child {
  border: 0;
}

.map-summary span {
  color: #9eabc1;
  font-size: 8.5px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-summary strong {
  font-size: 13px;
}

.map-scale {
  right: 18px;
  bottom: 20px;
  width: 74px;
  min-width: 32px;
  max-width: 96px;
  color: var(--ink-700);
  text-align: center;
  text-shadow: 0 1px 0 white;
}

.map-scale span {
  height: 5px;
  display: block;
  border: solid var(--ink-700);
  border-width: 0 1px 1px;
}

.map-scale small {
  font-size: 9px;
  font-weight: 750;
}

.map-instructions {
  left: 16px;
  bottom: 17px;
  color: var(--ink-700);
  font-size: 9px;
  font-weight: 650;
  text-shadow: 0 1px 1px white;
}

.map-mode-banner {
  top: 62px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  transform: translateX(-50%);
  border: 1px solid #9eacf2;
  border-radius: 8px;
  background: #f6f7ff;
  color: #283d9d;
  box-shadow: var(--shadow-sm);
  font-size: 10.5px;
  font-weight: 700;
}

.map-mode-banner[hidden] {
  display: none;
}

.map-mode-banner button {
  min-height: 25px;
  border: 1px solid #bec8ff;
  border-radius: 6px;
  background: white;
  color: #3047b4;
  font-size: 10px;
  font-weight: 760;
}

.plan-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 18px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-050);
}

.route-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.plan-summary-strip > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-summary-strip strong {
  font-size: 14px;
}

.plan-summary-strip span {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 650;
}

.sticky-section-heading {
  position: sticky;
  z-index: 3;
  top: -16px;
  margin: -16px -18px 8px;
  padding: 15px 18px 8px;
  background: white;
}

.route-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-900);
  text-align: left;
}

.route-card:hover {
  background: var(--ink-050);
}

.route-card.is-selected {
  border-color: #ccd4ff;
  background: var(--blue-soft);
}

.route-card.is-hidden {
  opacity: 0.48;
}

.legend-line {
  width: 27px;
  height: 7px;
  border-radius: 4px;
  background-color: var(--route-color);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(255, 255, 255, 0.45) 4px, rgba(255, 255, 255, 0.45) 6px);
}

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

.route-card-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-card-copy span {
  color: var(--ink-500);
  font-size: 9.5px;
}

.visibility-button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-500);
  font-size: 14px;
}

.visibility-button:hover {
  background: white;
  color: var(--ink-900);
}

.selection-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px;
  border-radius: 8px;
  background: var(--ink-050);
}

.route-swatch {
  width: 9px;
  height: 37px;
  flex: 0 0 9px;
  border-radius: 5px;
  background: #1e88e5;
}

.selection-badge > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.selection-badge strong {
  font-size: 11px;
}

.selection-badge span {
  color: var(--ink-500);
  font-size: 9.5px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
}

.metric-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-right: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.metric-grid > div:nth-child(2n) {
  border-right: 0;
}

.metric-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-grid span {
  color: var(--ink-500);
  font-size: 9px;
}

.metric-grid strong {
  font-size: 10px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.action-grid.three {
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0;
}

.action-grid.three .button {
  padding-inline: 5px;
  font-size: 10px;
}

.route-playback {
  margin-top: 9px;
  padding: 9px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-050);
}

.route-playback-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--ink-700);
  font-size: 10px;
}

.route-playback-heading output {
  color: var(--ink-500);
  font-size: 9.5px;
  font-weight: 650;
  text-align: right;
}

.route-playback-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-200);
}

.route-playback-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--route-playback-color, var(--blue));
  transition: width 100ms linear;
}

.route-playback-actions {
  margin-top: 8px;
}

.route-playback-actions .button {
  min-width: 0;
  white-space: nowrap;
}

.stop-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-050);
}

.stop-number {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-800);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.stop-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.stop-card strong {
  font-size: 10.5px;
}

.stop-card span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-card .prediction-copy {
  margin-top: 2px;
  color: #4e63ad;
  font-weight: 700;
}

.stop-card .road-access-copy {
  color: #a15c08;
  font-weight: 700;
}

.selected-section > label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-600);
  font-size: 9.5px;
}

.compound-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.road-editor {
  background: #fbfbff;
}

#roadFields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.warning-row {
  width: 100%;
  min-height: 47px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid var(--ink-200);
  background: transparent;
  color: var(--ink-900);
  text-align: left;
}

.warning-row:is(button) {
  cursor: pointer;
}

.warning-row:is(button):hover {
  color: var(--blue-dark);
}

.warning-row:is(button):focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.warning-row.is-advisory {
  cursor: default;
}

.warning-row.is-error .warning-symbol {
  background: #fee2e2;
  color: #b42318;
}

.warning-symbol {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--orange-soft);
  color: #b25e1c;
  font-size: 11px;
  font-weight: 850;
}

.warning-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.warning-row strong {
  font-size: 10.5px;
}

.warning-row small {
  color: var(--ink-500);
  font-size: 9.5px;
  line-height: 1.35;
}

.review-warning-list {
  display: grid;
}

.review-warning-label {
  margin: 9px 0 3px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-warning-label:first-child {
  margin-top: 0;
}

.review-warning-empty {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--ink-200);
  color: var(--ink-500);
  font-size: 9.5px;
  line-height: 1.4;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 326px;
  bottom: 82px;
  width: min(350px, calc(100vw - 30px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(21, 33, 58, 0.96);
  color: white;
  box-shadow: var(--shadow-md);
  animation: toast-in 180ms ease both;
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

.toast span {
  color: #c8d0df;
  font-size: 10px;
  line-height: 1.4;
}

.toast-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4f68db;
  font-size: 12px;
}

.toast[data-kind="error"] .toast-icon {
  background: #c93c4b;
}

.client-error-panel {
  position: fixed;
  z-index: 101;
  right: 326px;
  bottom: 156px;
  width: min(470px, calc(100vw - 30px));
  max-height: min(460px, calc(100vh - 170px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(170, 38, 54, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-900);
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.28);
}

.client-error-panel[hidden] {
  display: none;
}

.client-error-heading,
.client-error-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-error-heading h2 {
  margin: 1px 0 0;
  color: #9f2434;
  font-size: 15px;
  line-height: 1.3;
}

.client-error-summary {
  margin: 12px 0 0;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.client-error-help {
  margin: 7px 0 10px;
  color: var(--ink-500);
  font-size: 10.5px;
  line-height: 1.45;
}

.client-error-detail {
  min-height: 88px;
  max-height: 220px;
  margin: 0;
  overflow: auto;
  padding: 11px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: #f7f8fb;
  color: #27344d;
  font: 500 10.5px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  tab-size: 2;
  user-select: text;
  white-space: pre-wrap;
}

.client-error-detail:focus {
  border-color: #5e72d8;
  outline: 3px solid rgba(74, 96, 205, 0.18);
}

.client-error-actions {
  align-items: center;
  margin-top: 11px;
}

.client-error-actions > span {
  min-height: 16px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.4;
}

.client-error-actions .button {
  flex: 0 0 auto;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

dialog {
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: white;
  color: var(--ink-900);
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
}

dialog form {
  display: flex;
  max-height: calc(100dvh - 28px);
  flex-direction: column;
  gap: 13px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  scrollbar-gutter: stable;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.dialog-copy {
  margin: -3px 0 2px;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.5;
}

dialog .field-help {
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.dialog-actions {
  position: sticky;
  z-index: 2;
  bottom: -20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -20px -20px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--ink-200);
  background: white;
}

dialog fieldset {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
}

dialog legend {
  padding: 0 5px;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 750;
}

.override-fieldset .check-row {
  margin-top: 0;
}

.appraiser-location-explanation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #bdc8f4;
  border-radius: 8px;
  background: #f4f6ff;
}

.appraiser-location-explanation strong {
  color: var(--ink-900);
  font-size: 10.5px;
}

.appraiser-location-explanation .button {
  min-height: 32px;
}

.location-manager-dialog {
  width: min(760px, calc(100vw - 28px));
}

.routing-wizard-review-dialog {
  width: min(680px, calc(100vw - 28px));
}

.session-expired-dialog {
  width: min(440px, calc(100vw - 28px));
}

.upload-dialog {
  width: min(620px, calc(100vw - 28px));
}

.upload-dialog input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px dashed var(--ink-300);
  border-radius: 8px;
  background: var(--ink-050);
  color: var(--ink-800);
  font-size: 11px;
}

.upload-file-list {
  display: grid;
  gap: 4px;
  max-height: 148px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upload-file-list:empty {
  display: none;
}

.upload-file-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: white;
}

.upload-file-list strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-list span {
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.upload-validation {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(206, 65, 86, 0.3);
  border-radius: 8px;
  background: #fff7f8;
  color: #8f2135;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

.upload-validation[data-kind="warning"] {
  border-color: rgba(218, 127, 29, 0.3);
  background: #fff9f0;
  color: #8a5312;
}

.upload-validation[hidden] {
  display: none;
}

.upload-job {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-050);
}

.upload-job[hidden] {
  display: none;
}

.upload-job-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-job-label {
  display: block;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-job-heading strong {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink-200);
  color: var(--ink-800);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upload-status[data-status="completed"] {
  background: rgba(21, 132, 109, 0.15);
  color: var(--green);
}

.upload-status[data-status="failed"],
.upload-status[data-status="cancelled"] {
  background: rgba(206, 65, 86, 0.15);
  color: var(--red);
}

.upload-job progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #dfe4ec;
  color: var(--blue);
  accent-color: var(--blue);
}

.upload-progress-detail,
.upload-job-execution,
.upload-job > p {
  margin: 0;
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.45;
}

.upload-job-execution {
  color: var(--ink-500);
  font-weight: 650;
}

.upload-job-execution[hidden] {
  display: none;
}

.routing-wizard-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.routing-wizard-review > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: var(--ink-050);
}

.routing-wizard-review dt {
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.routing-wizard-review dd {
  margin: 3px 0 0;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.routing-wizard-warnings {
  padding: 10px 12px;
  border: 1px solid #e6c98b;
  border-radius: 8px;
  background: #fffaf0;
}

.routing-wizard-warnings > strong {
  font-size: 10.5px;
}

.routing-wizard-warnings ul,
.help-dialog-points {
  margin: 7px 0 0;
  padding-left: 18px;
}

.routing-wizard-warnings li,
.help-dialog-points li {
  margin: 5px 0;
  color: var(--ink-700);
  font-size: 10.5px;
  line-height: 1.45;
}

.routing-wizard-review-actions {
  flex-wrap: wrap;
}

.help-dialog {
  width: min(540px, calc(100vw - 28px));
}

.help-dialog-manual-note {
  margin: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--ink-700);
  font-size: 10px;
  line-height: 1.45;
}

.location-source-fieldset {
  padding: 8px;
}

.location-source-control {
  width: 100%;
}

.saved-location-section {
  padding: 10px;
  border: 1px solid var(--ink-200);
  border-radius: 9px;
  background: var(--ink-050);
}

.location-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.location-section-heading strong {
  font-size: 11px;
}

.saved-location-list {
  display: flex;
  max-height: 154px;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.saved-location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: white;
}

.saved-location-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.saved-location-copy strong,
.saved-location-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-location-copy strong {
  font-size: 10.5px;
}

.saved-location-copy small {
  color: var(--ink-600);
  font-size: 9.5px;
}

.saved-location-actions {
  display: flex;
  gap: 5px;
}

.saved-location-actions button {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--ink-300);
  border-radius: 6px;
  background: white;
  color: var(--blue-dark);
  font-size: 9.5px;
  font-weight: 750;
}

.parcel-location-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.parcel-location-search[hidden] {
  display: none;
}

.parcel-location-search > label {
  color: var(--ink-700);
  font-size: 10.5px;
  font-weight: 700;
}

.parcel-search-controls {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(250px, 1.4fr);
  gap: 9px;
}

.parcel-search-controls label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--ink-700);
  font-size: 10.5px;
  font-weight: 700;
}

.map-location-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid #bdc8f4;
  border-radius: 8px;
  background: #f4f6ff;
}

.map-location-source[hidden] {
  display: none;
}

.map-location-source strong {
  color: var(--ink-900);
  font-size: 10.5px;
}

.map-location-source p {
  margin: 3px 0 0;
  color: var(--ink-600);
  font-size: 9.5px;
  line-height: 1.4;
}

.map-location-source .button {
  min-height: 33px;
}

.location-coordinate-fields[hidden],
#locationCoordinateHelp[hidden] {
  display: none;
}

.parcel-search-results {
  max-height: 196px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ink-300);
  border-radius: 7px;
  background: white;
  box-shadow: var(--shadow-md);
  scrollbar-gutter: stable;
}

.parcel-search-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid var(--ink-200);
  border-radius: 0;
  background: white;
  color: var(--ink-900);
  text-align: left;
}

.parcel-search-option:last-child {
  border-bottom: 0;
}

.parcel-search-option:hover,
.parcel-search-option[aria-selected="true"] {
  background: var(--blue-soft);
}

.parcel-search-option strong {
  font-size: 10.5px;
}

.parcel-search-option small {
  color: var(--ink-600);
  font-size: 9.5px;
}

.parcel-selection-status {
  min-height: 15px;
}

.location-appraiser-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.location-appraiser-option {
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: white;
}

.location-appraiser-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: var(--blue);
}

.location-appraiser-option span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#compareDialog {
  width: min(560px, calc(100vw - 28px));
}

#compareDialog form {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
}

.comparison-list-actions,
.comparison-job-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comparison-list-actions {
  min-height: 22px;
  color: var(--ink-600);
  font-size: 10px;
}

.comparison-list-actions > span:last-child {
  display: flex;
  gap: 9px;
}

.comparison-config-list {
  display: flex;
  max-height: 214px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.comparison-config-list[aria-busy="true"] {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--ink-050) 30%, var(--ink-100) 50%, var(--ink-050) 70%);
  background-size: 240% 100%;
  animation: comparison-loading 1.4s ease infinite;
}

.comparison-empty {
  margin: 2px 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--ink-050);
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.45;
}

.comparison-job {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--ink-200);
  border-radius: 9px;
  background: var(--ink-050);
}

.comparison-job[hidden] {
  display: none;
}

.comparison-job-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.comparison-job-label {
  color: var(--ink-600);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#comparisonJobId {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}

.comparison-status[data-status="completed"],
.comparison-status[data-status="succeeded"] {
  background: #e4f4ef;
  color: var(--green);
}

.comparison-status[data-status="completed_with_errors"] {
  background: var(--orange-soft);
  color: #ad5819;
}

.comparison-status[data-status="failed"],
.comparison-status[data-status="cancelled"] {
  background: #fae8eb;
  color: var(--red);
}

#comparisonProgress {
  width: 100%;
  height: 7px;
  accent-color: var(--blue);
}

.comparison-progress-detail {
  margin: 0;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

#comparisonJobMessage {
  margin: 0;
  color: var(--ink-600);
  font-size: 10.5px;
  line-height: 1.45;
}

.comparison-result {
  padding: 8px 9px;
  border-radius: 7px;
  background: white;
  color: var(--ink-700);
  font-size: 10px;
  line-height: 1.45;
}

.comparison-artifacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comparison-artifacts > strong {
  font-size: 10.5px;
}

.comparison-artifacts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-artifacts a {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: white;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-artifacts a:hover {
  border-color: #aebbe8;
  background: var(--blue-soft);
}

@keyframes comparison-loading {
  to {
    background-position-x: -240%;
  }
}

@media (max-width: 520px) {
  .comparison-artifacts ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) {
  .workspace {
    --setup-panel-width: 600px;
    --route-panel-width: 292px;
    grid-template-columns: minmax(0, var(--setup-panel-width)) minmax(388px, 1fr) minmax(0, var(--route-panel-width));
  }

  .header-context .context-item:nth-child(2) {
    display: none;
  }

  .header-actions .button {
    padding-inline: 10px;
  }

  .map-toolbar.top-center {
    top: 58px;
  }
}

@media (max-width: 1279px) {
  .routing-job {
    grid-template-columns: minmax(210px, 1fr) minmax(250px, 1.4fr) auto;
  }

  .routing-job-metrics {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .routing-job-actions {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .panel-edge-toggle {
    display: none;
  }

  .panel {
    position: absolute;
    z-index: 50;
    top: 0;
    bottom: 0;
    width: min(350px, calc(100vw - 34px));
    transition: transform 180ms ease;
    box-shadow: var(--shadow-md);
  }

  .setup-panel {
    left: 0;
    width: min(660px, calc(100vw - 34px));
    transform: translateX(-105%);
  }

  .route-panel {
    right: 0;
    transform: translateX(105%);
  }

  .panel.mobile-open {
    transform: translateX(0);
  }

  .mobile-close,
  .mobile-panel-toggle {
    display: inline-grid;
  }

  .mobile-panel-toggle {
    display: inline-flex;
  }

  .header-context {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions #saveConfigButton,
  .header-actions #compareButton {
    display: none;
  }

  .toast-region {
    right: 16px;
  }

  .client-error-panel {
    right: 16px;
  }

  .map-toolbar.top-center {
    top: 14px;
  }
}

@media (max-width: 650px) {
  :root {
    --header-height: 60px;
  }

  .app-header {
    gap: 8px;
    padding: 0 10px;
  }

  .routing-job {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 8px 10px;
  }

  .routing-job-state {
    grid-column: 1;
  }

  .routing-job-state > p:last-child {
    white-space: normal;
  }

  .routing-job-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .routing-job-metrics {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 6px;
  }

  .routing-job-metrics > div {
    padding-left: 7px;
  }

  .routing-job-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .routing-job-actions .button {
    min-width: 58px;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-block .eyebrow,
  .brand-mark {
    display: none;
  }

  .brand-block h1 {
    font-size: 16px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .button {
    min-height: 35px;
    padding: 7px 9px;
  }

  #generateButton {
    font-size: 0;
  }

  #generateButton span,
  .guided-setup-button span {
    font-size: 15px;
  }

  .guided-setup-button {
    font-size: 0;
  }

  .map-toolbar.top-center {
    top: 58px;
  }

  .map-toolbar.top-right {
    top: 14px;
  }

  .map-toolbar.top-right #layerButton {
    display: none;
  }

  .setup-panel {
    width: calc(100vw - 16px);
  }

  .setup-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78px, 1fr);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .setup-tab-button {
    min-height: 50px;
    flex-direction: column;
    gap: 3px;
    padding: 5px 6px;
    font-size: 8.5px;
  }

  .setup-tab-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .routing-wizard-review {
    grid-template-columns: 1fr;
  }

  .routing-wizard-bar {
    padding-inline: 10px;
  }

  .routing-wizard-footer {
    gap: 6px;
    padding-inline: 10px;
  }

  .client-error-panel {
    right: 10px;
    bottom: 154px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 174px);
  }

  .layer-menu {
    top: 55px;
    right: 14px;
  }

  .map-summary {
    bottom: 16px;
    grid-template-columns: 1fr 1fr;
  }

  .map-summary > div {
    min-width: 95px;
    padding: 7px 10px;
  }

  .map-summary > div:nth-child(2) {
    border-right: 0;
  }

  .map-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .map-scale,
  .map-instructions {
    display: none;
  }

  dialog .inline-fields,
  .location-appraiser-list,
  .parcel-search-controls,
  .appraiser-location-explanation,
  .map-location-source {
    grid-template-columns: 1fr;
  }

  .saved-location-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .saved-location-actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------------
   Sign-in page (login.html)

   Served to anonymous visitors, so it shares this stylesheet - and therefore
   the same tokens, radii and button styles as the application - without
   pulling in index.html or app.js. The served CSP is `style-src 'self'`, so
   login.html carries no inline style and every rule it needs lives here.
   --------------------------------------------------------------------------- */

.login-body {
  overflow: auto;
  background: linear-gradient(160deg, var(--ink-100) 0%, var(--blue-soft) 100%);
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 372px;
  padding: 28px 28px 22px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.login-brand {
  margin-bottom: 22px;
}

.login-mark {
  display: inline-block;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.login-title {
  margin: 11px 0 4px;
  color: var(--ink-950);
  font-size: 21px;
  font-weight: 780;
  line-height: 1.2;
}

.login-subtitle {
  margin: 0;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.45;
}

.login-input {
  width: 100%;
  min-height: 37px;
  padding: 8px 11px;
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-900);
  font-size: 13px;
}

.login-input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.login-password-row {
  display: flex;
  gap: 7px;
  align-items: stretch;
}

.login-reveal {
  flex: 0 0 auto;
  min-width: 62px;
}

.login-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(206, 65, 86, 0.32);
  border-radius: 8px;
  background: rgba(206, 65, 86, 0.07);
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

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

.login-note {
  margin-top: 14px;
  text-align: center;
}
