/* hood.css - Hood field-intelligence surface
 *
 * Extracted verbatim from style.css. Rules keep their original
 * relative order, and @media rules travel with the surface so its
 * responsive overrides still land after the rules they override.
 */
.hood-switch--sm { width: 36px; height: 21px; }
.hood-switch--sm .hood-switch-thumb { width: 17px; height: 17px; }
.hood-switch--sm.is-on .hood-switch-thumb { transform: translateX(15px); }
body:not(.sidebar-collapsed) .hood-page {
  height: 100vh;
}
.hood-map-wrap {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.hood-map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.hood-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(33,150,243,0.25);
  border-top-color: var(--brand-blue-pure);
  border-radius: 50%;
  animation: hood-spin 0.6s linear infinite;
}
.hood-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid #2E3030;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px var(--shadow-alpha-45);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.hood-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--shadow-alpha-35);
  z-index: 99;
}

@media (min-width: 769px) {
  .hood-sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 380px;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid #2E3030;
    box-shadow: -4px 0 24px var(--shadow-alpha-45);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: none;
  }
}
.hood-sheet-inner { padding: 0 0 24px; }
.hood-sheet.hood-dragging { transition: none; }
.hood-sheet-addr {
  font-size: 16px;
  font-weight: 700;
  color: #F0F0F0;
  line-height: 1.25;
}
.hood-sheet-addr-sub {
  font-size: 12px;
  color: #6B6B6B;
  margin-top: 2px;
}
.hood-sheet-close { position: absolute; top: 12px; right: 12px; }
.hood-sheet-knock-count {
  font-size: 12px;
  color: #6B6B6B;
}
.hood-sheet-section {
  padding: 10px 16px 4px;
  border-top: 1px solid #242626;
}
.hood-sheet-kv-key { font-size: 11px; color: #A0A09E; width: 56px; flex-shrink: 0; font-weight: 600; }
.hood-sheet-kv-val { font-size: 13px; color: #ECEBE9; }
.hood-sheet-empty {
  font-size: 12px;
  color: #6B6B6B;
  padding: 4px 0 2px;
}
.hood-sk-line {
  height: 11px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--overlay-w-05) 0%, var(--overlay-w-12) 50%, var(--overlay-w-05) 100%);
  background-size: 200% 100%;
  animation: sk 1.3s infinite;
}
.hood-sheet-header .hood-sk-line:first-child { height: 15px; }
.hood-sub-name { font-size: 13px; font-weight: 600; color: #ECEBE9; }
.hood-sub-cycle { font-size: 11px; color: #8A8988; }
.hood-sub-sold { font-size: 11px; color: #6B6B6B; }
.hood-sub-value { font-size: 13px; font-weight: 600; color: var(--accent-primary-light); }
.hood-sub-badge--active { background: var(--accent-primary-soft-18); color: var(--accent-primary-light); }
.hood-sub-badge--hold { background: var(--border-soft); color: var(--fg-muted-warm); }
.hood-sub-badge--cancelled { background: var(--overlay-w-05); color: #797876; font-weight: 600; }
.hood-appt-row--next {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(33,150,243,0.06);
  border: 1px solid var(--accent-primary-soft-14);
}
.hood-appt-date { color: #ECEBE9; font-weight: 600; width: 78px; flex-shrink: 0; }
.hood-appt-tech { color: var(--accent-primary-light); font-weight: 600; }
.hood-appt-notes {
  color: #6B6B6B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.hood-sheet-retry {
  background: var(--accent-primary-soft-15); border: 1px solid rgba(33,150,243,0.3);
  color: var(--brand-blue-pure); border-radius: 8px; padding: 8px 16px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.hood-sheet-actions {
  padding: 12px 16px 0;
  border-top: 1px solid #242626;
  margin-top: 8px;
}
.hood-outcome-select {
  width: 100%;
  height: 36px;
  background: var(--accent-primary-soft-08);
  border: 1px solid rgba(33,150,243,0.25);
  border-radius: 8px;
  color: var(--brand-blue-pure);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 10px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.hood-action-btn:hover { background: var(--fg-primary-light); border-color: #484848; color: var(--fg-inverse); }
.hood-pin-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #F0F0F0;
  margin: 0;
}
.hood-pin-modal-select,
.hood-pin-modal-input {
  background: #161818;
  border: 1px solid var(--surface-charcoal);
  border-radius: 8px;
  color: var(--border-card-light);
  font-size: 13px;
  padding: 8px 10px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.hood-pin-modal-select {
  height: 40px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%23E5E5E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  font-weight: 500;
}
.hood-pin-modal-textarea {
  background: #161818;
  border: 1px solid var(--surface-charcoal);
  border-radius: 8px;
  color: var(--border-card-light);
  font-size: 13px;
  padding: 8px 10px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 64px;
}
.hood-pin-modal-cancel {
  background: transparent;
  border: 1px solid var(--surface-charcoal);
  border-radius: 8px;
  color: #6B6B6B;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  font-family: inherit;
}
.hood-pin-modal-save {
  background: var(--brand-blue-pure);
  border: none;
  border-radius: 8px;
  color: var(--fg-inverse);
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
  height: 36px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
body.route-hood .hood-page {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--surface-charcoal-deep);
}
body.route-hood .hood-map {
  width: 100%;
  height: 100%;
}
.hood-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(33,150,243,0.25);
  border-top-color: var(--brand-blue-pure);
  border-radius: 50%;
  animation: hood-spin 0.6s linear infinite;
  flex-shrink: 0;
}
body.route-hood .hood-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;

  background: #1C1B19;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid var(--border-strong-warmer);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px var(--shadow-alpha-55);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.34, 1.1, 0.64, 1),
              max-height 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 50svh;
  overflow-y: auto;
}
body.route-hood .hood-sheet.is-open {
  transform: translateY(0);
}
body.route-hood .hood-sheet.hood-dragging { transition: none; }
body.route-hood .hood-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: var(--shadow-alpha-45);
}
.hood-sheet-inner { padding: 0 0 max(32px, env(safe-area-inset-bottom)); }
.hood-sheet-expand-btn svg { transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1); }
.hood-sheet.is-expanded .hood-sheet-expand-btn svg { transform: rotate(180deg); }
.hood-sheet-addr {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--border-card-light);
  line-height: 1.3;
}
.hood-sheet-addr-sub {
  font-size: 12px;
  color: #5A5A5A;
  margin-top: 2px;
}
.hood-sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
}
.hood-customer-active {
  background: rgba(16,185,129,0.15);
  color: #10B981;
}
.hood-sheet-knock-count {
  font-size: 12px;
  color: #5A5A5A;
}
.hood-sheet-section {
  padding: 12px 16px 4px;
  border-top: 1px solid #2C2B29;
}
.hood-sheet-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hood-sheet-history-status { font-size: 13px; color: #D0D0D0; font-weight: 600; flex: 1; }
.hood-sheet-date,
.hood-sheet-history-date {
    font-size: 11px;
    color: #5a5a5a;
}
.hood-sheet-history-notes  { font-size: 11px; color: #5A5A5A; padding-left: 16px; margin-top: -2px; }
.hood-sheet-customer-name   { font-size: 14px; font-weight: 600; color: var(--border-card-light); }
.hood-sheet-customer-phone  { font-size: 12px; color: #6B6B6B; }
.hood-sheet-customer-status { font-size: 11px; color: #10B981; font-weight: 600; }
.hood-sheet-kv-key { font-size: 10px; font-weight: 700; color: #A0A09E; width: 88px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.hood-sheet-kv-val { font-size: 13px; color: #ECEBE9; flex: 1; }
.hood-sheet-body-text { font-size: 13px; color: #B0B0B0; line-height: 1.5; white-space: pre-wrap; }
.hood-sheet-error { padding: 24px 16px; text-align: center; }
.hood-sheet-error-msg { font-size: 13px; color: #6B6B6B; margin-bottom: 12px; }
.hood-sheet-retry {
  background: #1565C0; border: none; border-radius: 8px;
  color: var(--fg-inverse); font-size: 13px; font-weight: 600;
  padding: 8px 16px; cursor: pointer;
}
.hood-sheet-actions {
  padding: 12px 16px 0;
  border-top: 1px solid #222;
  margin-top: 4px;
}
.hood-outcome-wrap { position: relative; flex: 1 1 auto; min-width: 130px; }
.hood-outcome-select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: #222;
  border: 1px solid var(--fg-primary-light);
  border-radius: 8px;
  color: var(--fg-muted-warm);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  font-family: inherit;
}
.hood-outcome-select:focus { outline: none; border-color: var(--brand-blue-pure); }
.hood-outcome-select option { background: var(--bg-card); color: var(--border-card-light); }
.hood-action-btn--pin { border-color: rgba(33,150,243,0.4); color: var(--brand-blue-pure); background: var(--accent-primary-soft-10); }
.hood-action-btn--pin:hover { background: rgba(33,150,243,0.20); border-color: var(--brand-blue-pure); }
.hood-action-btn--danger { border-color: rgba(239,68,68,0.35); color: #EF4444; background: rgba(239,68,68,0.08); }
.hood-action-btn--danger:hover { background: rgba(239,68,68,0.15); border-color: #EF4444; }
.hood-badge--info,
.hood-badge--warning {
    background: var(--accent-primary-soft-15);
    color: var(--brand-blue-pure);
}
.hood-badge--neutral { background: rgba(107,114,128,0.15); color: #9CA3AF; }
.hood-chip.solid { background: var(--brand-blue-pure); border-color: var(--brand-blue-pure); color: var(--fg-inverse); }
.hood-parcel-explain-btn:hover { background: var(--accent-primary-soft-15); }
.hood-parcel-explain-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hood-parcel-explain-result {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--overlay-w-03);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}
.hood-explain-confidence { font-size: 11px; color: #5A5A5A; align-self: center; }
.hood-explain-reasoning { font-size: 12px; color: #B0B0B0; line-height: 1.5; width: 100%; }
.hood-pin-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--surface-charcoal);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
}
.hood-pin-modal-title { font-size: 16px; font-weight: 700; color: var(--border-card-light); margin: 0 0 16px; }
.hood-pin-modal-select,
.hood-pin-modal-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: #252525;
  border: 1px solid var(--fg-primary-light);
  border-radius: 8px;
  color: var(--border-card-light);
  font-size: 13px;
  font-family: inherit;
  appearance: none;
}
.hood-pin-modal-select:focus,
.hood-pin-modal-input:focus { outline: none; border-color: var(--brand-blue-pure); }
.hood-pin-modal-textarea {
  width: 100%;
  padding: 8px 12px;
  background: #252525;
  border: 1px solid var(--fg-primary-light);
  border-radius: 8px;
  color: var(--border-card-light);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
}
.hood-pin-modal-textarea:focus { outline: none; border-color: var(--brand-blue-pure); }
.hood-pin-modal-cancel {
  flex: 1;
  height: 38px;
  background: #252525;
  border: 1px solid var(--fg-primary-light);
  border-radius: 8px;
  color: var(--fg-muted-warm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.hood-pin-modal-cancel:hover { border-color: var(--border-strong-warm); color: var(--border-card-light); }
.hood-pin-modal-save {
  flex: 2;
  height: 38px;
  background: var(--brand-blue-pure);
  border: none;
  border-radius: 8px;
  color: var(--fg-inverse);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.hood-pin-modal-save:hover { background: var(--brand-blue-hover-pure); }
.hood-pin-modal-save:disabled { opacity: 0.6; cursor: not-allowed; }
.hood-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hood-empty-title { font-size: 14px; font-weight: 600; color: var(--border-card-light); margin-bottom: 4px; }
.hood-empty-body  { font-size: 12px; color: #6B6B6B; line-height: 1.4; }
body.hood-scroll-lock { overflow: hidden; }
.hood-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--shadow-alpha-50);
}
.hood-set-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: #F0F0F0;
  letter-spacing: -0.01em;
}
.hood-set-close { flex-shrink: 0; }
.hood-set-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 8px;
}
.hood-set-section { padding: 10px 0 4px; }
.hood-set-section + .hood-set-section { border-top: 1px solid var(--border-soft); }
.hood-set-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #797876;
  margin-bottom: 8px;
}
.hood-toggle-row:hover { background: var(--overlay-w-04); }
.hood-toggle-row--sub {
  min-height: 40px;
  margin: 0 -10px 0 12px;
  padding: 8px 10px 8px 14px;
  border-left: 1px solid var(--border-strong-warmer);
  border-radius: 0 10px 10px 0;
}
.hood-toggle-row:has(.hood-switch.is-on) .hood-toggle-icon { color: var(--accent-primary-light); }
.hood-toggle-row--sub .hood-toggle-icon { display: none; }
.hood-toggle-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: #CDCCCA;
  line-height: 1.3;
}
.hood-toggle-row--sub .hood-toggle-label { font-size: 14px; }
.hood-switch {
  position: relative;
  width: 44px;
  height: 26px;
  min-height: 26px;
  flex-shrink: 0;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: #3A3A3C;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.hood-switch.is-on { background: var(--brand-blue-pure); }
.hood-switch:focus-visible { outline: 2px solid var(--accent-primary-light); outline-offset: 2px; }
.hood-switch-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fg-inverse);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 1px rgba(0,0,0,0.16);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hood-switch.is-on .hood-switch-thumb { transform: translateX(16px); }
.hood-set-field { padding: 6px 0 2px; }
.hood-set-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #797876;
  margin-bottom: 6px;
}
.hood-set-hint-sub {
  font-weight: 400;
  font-size: 11px;
  color: #5A5957;
  margin-left: 6px;
  letter-spacing: 0.01em;
}
.hood-filter-chip:focus,
.hood-filter-chip:focus-visible { outline: none; box-shadow: none; }
[data-app-theme="light"] .hood-set-section-label { color: #7A7974; }
[data-app-theme="light"] .hood-toggle-row:hover { background: rgba(0,0,0,0.03); }
[data-app-theme="light"] .hood-toggle-row--sub { border-left-color: #D4D1CA; }
[data-app-theme="light"] .hood-toggle-icon { color: #7A7974; }
[data-app-theme="light"] .hood-toggle-row:has(.hood-switch.is-on) .hood-toggle-icon { color: #1976D2; }
[data-app-theme="light"] .hood-toggle-label { color: #28251D; }
[data-app-theme="light"] .hood-toggle-hint { color: #7A7974; }
[data-app-theme="light"] .hood-switch { background: #E5E5E5; }
[data-app-theme="light"] .hood-switch.is-on { background: #1976D2; }
[data-app-theme="light"] .hood-switch:focus-visible { outline-color: #1976D2; }
[data-app-theme="light"] .hood-set-field-label { color: #7A7974; }
[data-app-theme="light"] .hood-filter-chip { border-color: #D4D1CA; color: #28251D; }
[data-app-theme="light"] .hood-settings {
  background: #F9F8F5;
  border-top-color: #D4D1CA;
  border-left-color: #D4D1CA;
}
[data-app-theme="light"] .hood-set-header { border-bottom-color: #D4D1CA; }
[data-app-theme="light"] .hood-set-title { color: #28251D; }
[data-app-theme="light"] .hood-set-section + .hood-set-section { border-top-color: #D4D1CA; }
[data-app-theme="light"] .hood-set-footer { border-top-color: #D4D1CA; }
[data-app-theme="light"] .hood-set-reset { color: #7A7974; }
[data-app-theme="light"] .hood-set-reset:hover { color: #28251D; }
[data-app-theme="light"] .hood-set-done { background: #1976D2; }
[data-app-theme="light"] .hood-set-done:hover { background: #0D47A1; }
[data-app-theme="light"] .hood-set-refresh {
  border-color: rgba(25,118,210,0.35);
  background: rgba(25,118,210,0.10);
  color: #1976D2;
}
[data-app-theme="light"] .hood-set-refresh:hover {
  border-color: rgba(25,118,210,0.55);
  background: rgba(25,118,210,0.18);
}
[data-app-theme="light"] .hood-settings .hood-close-btn {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.05);
}
[data-app-theme="light"] .hood-settings .hood-close-btn svg { stroke: #28251D; }
[data-app-theme="light"] .hood-settings .hood-close-btn:hover { background: rgba(0,0,0,0.09); }
.hood-set-reset {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--fg-faint);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 4px;
  font-family: inherit;
  transition: color 0.12s;
}
.hood-set-reset:hover { color: var(--border-card-light); }
.hood-set-done {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--brand-blue-pure);
  color: var(--fg-inverse);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.hood-set-done:hover { background: var(--accent-primary-light); }
.hood-set-refresh:hover { background: rgba(33,150,243,0.2); border-color: var(--accent-primary-alpha-55); }
.hood-set-refresh:disabled { opacity: 0.6; cursor: not-allowed; }
.hood-set-refresh.is-loading svg { animation: hood-spin 0.8s linear infinite; }
.hood-set-refresh.is-pulse { animation: hood-pulse 1.5s ease-in-out infinite; }
.hood-locate-fab:hover { background: var(--brand-blue-pure); box-shadow: 0 4px 16px rgba(33,150,243,0.5); }
.hood-settings-fab:hover {
  background: rgba(33, 150, 243, 0.18);
  border-color: var(--brand-blue-pure);
  color: #FFFFFF;
}

@media (min-width: 900px) {
  .hood-page .hood-map-wrap .hood-settings-fab {
    display: flex;
  }
}
.hood-pill-refresh.hood-pill-refresh--mobile {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0;
  margin-right: 4px;
  color: currentColor;
}
.hood-pill-refresh .hood-pill-refresh-idle,
.hood-pill-refresh .hood-pill-refresh-sync {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}
.hood-pill-refresh .hood-pill-refresh-sync,
.hood-pill-refresh.is-refreshing .hood-pill-refresh-idle {
    opacity: 0;
    transform: scale(0.85);
}
.hood-pill-refresh.is-refreshing .hood-pill-refresh-sync {
  opacity: 1;
  transform: scale(1);
}
.hood-pill-refresh.is-refreshing .hood-pill-refresh-idle svg {
  animation: hood-pill-refresh-spin 0.6s linear;
}
.hood-pill-refresh .hpr-up,
.hood-pill-refresh .hpr-up-h {
  transform-origin: 8px 12px;
  animation: hpr-cloud-up 1.2s ease-in-out infinite;
}
.hood-pill-refresh .hpr-dn,
.hood-pill-refresh .hpr-dn-h {
  transform-origin: 16px 12px;
  animation: hpr-cloud-dn 1.2s ease-in-out infinite;
  animation-delay: 0.6s;
}
.hood-pill-refresh:not(.is-refreshing) .hpr-up,
.hood-pill-refresh:not(.is-refreshing) .hpr-up-h,
.hood-pill-refresh:not(.is-refreshing) .hpr-dn,
.hood-pill-refresh:not(.is-refreshing) .hpr-dn-h {
  animation: none;
}
.hood-pill-refresh.is-cooldown { opacity: 0.4; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .hood-pill-refresh .hood-pill-refresh-idle,
  .hood-pill-refresh .hood-pill-refresh-sync,
  .hood-pill-refresh .hpr-up,
  .hood-pill-refresh .hpr-up-h,
  .hood-pill-refresh .hpr-dn,
  .hood-pill-refresh .hpr-dn-h,
  .hood-pill-refresh.is-refreshing .hood-pill-refresh-idle svg {
    animation: none !important;
    transition: none !important;
  }
}
.hood-loc-core {
  position: absolute; left: -8px; top: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-blue-pure); border: 2px solid var(--fg-inverse); box-sizing: border-box;
  box-shadow: 0 0 4px var(--shadow-alpha-45);
}
.hood-loc-pulse {
  position: absolute; left: -10px; top: -10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-primary-soft-35);
  animation: hood-loc-pulse 2s ease-out infinite;
}
.hood-compass-banner-text { font-size: 13px; color: var(--fg-inverse); line-height: 1.3; }
.hood-compass-banner-skip {
  background: transparent; color: rgba(255, 255, 255, 0.7);
  border: none; font-size: 13px; padding: 8px 6px; cursor: pointer;
}
.hood-compass-banner-enable {
  background: var(--brand-blue-pure); color: var(--fg-inverse); border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hood-compass-banner-enable:hover { background: var(--brand-blue-hover-pure); }
.hood-sheet-ltv { font-size: 12px; font-weight: 600; color: var(--brand-blue-pure); }
.hood-sheet-cname {
  font-size: 20px;
  font-weight: 600;
  color: #F0F0F0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.hood-sheet-caddr {
  font-size: 13px;
  color: #9A9A9A;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.hood-sheet-cacct {
  font-size: 12px;
  color: #6B6B6B;
}
.hood-sheet-cstatus .hood-sheet-ltv { font-size: 13px; }
.hood-sheet-pastdue-val { color: #EF4444; font-weight: 700; }
.hood-customer-pastdue { background: rgba(239,68,68,0.15); color: #EF4444; }
.hood-customer-cancelled { background: var(--border-soft); color: var(--fg-faint); }
.hood-customer-neutral { background: var(--border-soft); color: var(--fg-muted-warm); }
.hood-sheet-contact-actions { margin-bottom: 8px; }
.hood-action-btn--call,
.hood-action-btn--text {
  border-color: rgba(33,150,243,0.4);
  color: var(--brand-blue-pure);
  background: var(--accent-primary-soft-10);
  text-decoration: none;
}
.hood-action-btn--call:hover,
.hood-action-btn--text:hover {
  background: rgba(33,150,243,0.20);
  border-color: var(--brand-blue-pure);
  color: var(--brand-blue-pure);
}
.hood-action-btn--fr { text-decoration: none; }
.hood-parcel-label {
  color: var(--fg-inverse) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.8);
}
.hood-msg.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hood-termites,
.hood-diagram {
  /* overrides the base .hood-sheet-section look: a distinct hologram card */
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(33, 150, 243, 0.4);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 16px;
  box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.4),
              inset 0 0 18px var(--accent-primary-soft-12);
}
.hood-termites-title,
.hood-diagram-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}
.hood-termites-badge--loading { background: rgba(138, 138, 138, 0.15); border-color: rgba(138, 138, 138, 0.4); color: var(--fg-faint); }
.hood-termites-badge--none    { background: transparent;               border-color: var(--brand-blue-pure); color: var(--brand-blue-pure); }
.hood-termites-badge--active  { background: rgba(33, 150, 243, 0.25);  border-color: rgba(33, 150, 243, 0.5); color: var(--brand-blue-pure); }
.hood-termites-chevron,
.hood-diagram-chevron {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--fg-faint);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.hood-termites.is-open .hood-termites-chevron,
.hood-diagram.is-open .hood-diagram-chevron { transform: rotate(90deg); }
.hood-termites-body,
.hood-diagram-body {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border-soft);
}
.hood-termites-caption {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin: 8px 0 4px;
}
.hood-termites-records::-webkit-scrollbar { height: 0; }
.hood-termite-rec {
  flex: 0 0 auto;
  min-width: 108px;
  background: rgba(10, 15, 20, 0.55);
  border: 1px solid var(--accent-primary-soft-18);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  padding: 8px 10px;
}
.hood-termite-rec-species { font-size: 13px; font-weight: 700; color: #D0D0D0; }
.hood-termite-rec-meta    { font-size: 11px; color: var(--fg-faint); margin-top: 2px; }
.hood-termite-rec-date    { font-size: 11px; color: #6A6A6A; margin-top: 2px; }
.hood-termites-report-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--brand-blue-pure);
  color: var(--fg-inverse);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hood-termites-report-btn:hover { background: var(--brand-blue-hover-pure); }
.hood-termites-report-btn:active { background: var(--accent-primary-hover); }
.hood-holo-icon:hover {
  background: var(--accent-primary-soft-15);
}
.hood-holo-icon-sep {
  width: 1px;
  height: 16px;
  background: var(--accent-primary-soft-15);
  flex: 0 0 auto;
}
.hood-holo-chip-num { letter-spacing: normal; font-variant-numeric: tabular-nums; }
.hood-termites-canvas-wrap.is-loading .hood-termites-reset,
.hood-termites-canvas-wrap.is-loading .hood-holo-rzone-hint { display: none; }
.hood-diagram-body .holo-hud { display: none; }
.hood-sketch-modal.is-visible { display: flex; }
.hood-sketch-close { position: absolute; top: 8px; right: 8px; }
.hood-close-btn:hover { background: var(--border-strong-alpha); }
.hood-close-btn:active { background: rgba(255, 255, 255, 0.22); transform: scale(0.96); }
.hood-sketch-title {
  padding: 0 40px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue-pure);
  text-align: center;
  word-break: break-all;
}
.hood-sketch-img.is-zoomed { cursor: grab; }
.hood-sketch-loading {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hood-sketch-caption {
  margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
.hood-sketch-zoom-reset {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(33, 150, 243, 0.7);
  background: var(--shadow-alpha-55);
  color: var(--brand-blue-pure);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  cursor: pointer;
}
.hood-sketch-analyze-btn {
  align-self: center;
  margin-top: 12px;
  height: 30px;
  padding: 0 18px;
  font-size: 12px;
}
.hood-sketch-analysis {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(33, 150, 243, 0.06);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.hood-lf-row:last-child { border-bottom: none; }
.hood-lf-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hood-lf-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-inverse);
  white-space: nowrap;
}
.hood-lf-pt .hood-lf-val { color: var(--brand-blue-pure); }
.hood-lf-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}
.hood-lf-err {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 120, 120, 0.9);
}
.hood-sketch-fullscreen.is-visible { display: flex; }
.hood-sketch-fs-img.is-zoomed { cursor: grab; }
.hood-sketch-fs-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.hood-sketch-fs-reset {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(33, 150, 243, 0.7);
  background: var(--shadow-alpha-55);
  color: var(--brand-blue-pure);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  cursor: pointer;
}
.hood-termites-reset {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(33, 150, 243, 0.7);
  background: rgba(0, 0, 0, 0.4);
  color: var(--brand-blue-pure);
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  z-index: 4;
  text-shadow: 0 0 6px rgba(33, 150, 243, 0.6);
}
.hood-termites-reset::before { content: '\21BB'; }
.hood-termites-reset:hover { background: rgba(33, 150, 243, 0.25); }
.hood-termites-loading.is-hidden { opacity: 0; pointer-events: none; }
.hood-termites-canvas { opacity: 0; transition: opacity 0.4s ease; }
.hood-termites-canvas.is-ready { opacity: 1; }
.hood-holo-fs .hood-termites-canvas-wrap {
  width: 100vw;
  height: 100svh;
  max-width: none;
  margin: 0;
}
.hood-holo-fs .hood-termites-canvas {
  width: 100vw;
  height: 100svh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
}
.hood-holo-fs .hood-termites-reset { display: none; }
.hood-holo-fs-close:hover { opacity: 1; }
.hood-holo-fs .hood-holo-rzone-hint { display: none; }
.hood-page .hood-map-wrap .hood-addr-search {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 68px);
  left: 16px;
  right: 16px;
  z-index: 5;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--accent-primary-soft-28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hood-page .hood-map-wrap .hood-addr-search:focus-within {
  border-color: var(--brand-blue-pure);
  box-shadow: 0 0 0 3px var(--accent-primary-soft-28), 0 6px 20px rgba(0, 0, 0, 0.28);
}
.hood-addr-search-icon {
  flex-shrink: 0;
  color: var(--brand-blue-pure);
}
.hood-addr-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #16181A;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}
.hood-addr-search-input::placeholder {
  color: rgba(22, 24, 26, 0.45);
  font-weight: 400;
}
.hood-addr-search-input.is-searching {
  opacity: 0.6;
}
.hood-addr-search-clear:hover {
  background: rgba(33, 150, 243, 0.22);
}

@media (min-width: 900px) {
  .hood-page .hood-map-wrap .hood-addr-search {
    top: 16px;
    left: 16px;
    right: auto;
    width: 340px;
    max-width: calc(100% - 32px);
    height: 42px;
  }
  .hood-addr-search-input {
    font-size: 13px;
  }
}
body.route-hood .hood-page,
body.route-hood .hood-map-wrap,
body.route-hood .hood-map {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  opacity: 1 !important;
  filter: none !important;
}
body.route-hood .hood-page::before,
body.route-hood .hood-page::after,
body.route-hood .hood-map-wrap::before,
body.route-hood .hood-map-wrap::after,
body.route-hood .hood-map::before,
body.route-hood .hood-map::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}
body.route-hood .hood-map-wrap > *:not(.hood-map):not(.hood-addr-search):not(.hood-loading):not(.hood-empty):not(.hood-locate-fab):not(.hood-settings-fab):not(.hood-pin-legend) {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-image: none !important;
  opacity: 1 !important;
}
html body .hood-sheet-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  min-height: 200px;
}
html body .hood-sheet-error-msg {
  color: #A6ADB4;
  font-size: 14px;
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}
html body .hood-sheet-error-retry {
  appearance: none;
  border: 1px solid rgba(33, 150, 243, 0.40);
  background: rgba(33, 150, 243, 0.12);
  color: #2196F3;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease;
}
html body .hood-sheet-error-retry:hover {
  background: rgba(33, 150, 243, 0.20);
}
.pinwrap:not(.hood-loc-dot) > img,
.pinwrap:not(.hood-loc-dot) > div {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: block; cursor: pointer;
}
.pinwrap.hood-fr-door > img,
.pinwrap.hood-pin > img { transform: translate(-50%, -100%); }
.pinwrap .hood-parcel-label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, 10px);
  font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); pointer-events: none;
}
.pinwrap .hood-knock-n {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 700; color: #fff; pointer-events: none;
}
.pinwrap.hood-search-marker > div { cursor: default; }
.hood-map-error {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 24px; text-align: center;
  background: #0b0e0d; color: var(--fg-secondary, #9aa3a0);
}
.hood-map-error-title { font-size: 15px; font-weight: 600; }
.hood-map-wrap .mapboxgl-ctrl-attrib,
.hood-map-wrap .mapboxgl-ctrl-scale { opacity: 0.55; font-size: 10px; }
.hood-map-wrap .mapboxgl-canvas { outline: none; cursor: grab; }
.hood-map-wrap .mapboxgl-canvas:active { cursor: grabbing; }

/* PestRoutes-style disposition dots. The hit target is 28px; the colored
   core stays small so several knocks can sit on one roof. */
.pinwrap.hood-fr-door > .hood-fr-dot {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hood-fr-dot-core {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dc, #9CA3AF);
  box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, 0.55);
  display: block;
  flex: 0 0 auto;
}
.hood-fr-dot-more {
  min-width: 22px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(12, 14, 13, 0.92);
  color: #fff;
  border: 1.5px solid #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.hood-pin-legend {
  position: absolute;
  left: 10px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 6;
  max-width: min(210px, 56vw);
  padding: 8px 10px 6px;
  border-radius: 12px;
  background: rgba(12, 14, 13, 0.88);
  color: #F4F4F5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hood-pin-legend[hidden] { display: none; }
.hood-pin-legend-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #F4F4F5;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 0 4px;
  cursor: pointer;
}
.hood-pin-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.hood-pin-legend.is-collapsed .hood-pin-legend-list { display: none; }
.hood-pin-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}
.hood-sheet-history-row.is-current {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin: 0 -6px;
  padding: 2px 6px;
}
.hood-sheet-history-dot[data-status="never_knock"] {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* The pin sheet header is a flex row. Street + subtitle must stack in
   .hood-sheet-chead or the address shrinks to a sliver beside the count. */
.hood-sheet-header > .hood-sheet-chead {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.hood-sheet-chead .hood-sheet-addr,
.hood-sheet-chead .hood-sheet-addr-sub {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hood-sheet-history-row {
  min-width: 0;
  flex-wrap: wrap;
}
.hood-sheet-history-status {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hood-sheet-history-date {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

/* Address pill and GPS controls keep their size next to the new legend.
   The legend is absolute, but a collapsed height or a shared flex shrink
   was crushing the search line and the locate control. */
.hood-page .hood-map-wrap .hood-addr-search {
  box-sizing: border-box;
  min-height: 44px;
  height: 44px;
  z-index: 8;
}
.hood-addr-search-input {
  line-height: 1.25;
  font-size: 16px;
}
.hood-locate-fab {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  z-index: 7;
}
.pinwrap.hood-loc-dot > .hood-loc-core {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex: none;
  transform: none;
}
.pinwrap.hood-loc-dot > .hood-loc-pulse {
  width: 20px;
  height: 20px;
  flex: none;
}
.hood-pin-legend {
  width: max-content;
  flex: none;
  pointer-events: auto;
}
