:root, [data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-surface: #1a1a2e;
  --bg-elevated: #252540;
  --bg-input: #1e1e35;
  --bg-overlay: rgba(0, 0, 0, .6);
  --text-primary: #e0e0e8;
  --text-secondary: #a0a0b8;
  --text-muted: #606080;
  --text-inverse: #0f0f1a;
  --border-subtle: #2a2a45;
  --border-default: #3a3a55;
  --border-strong: #5a5a75;
  --accent-primary: #4a9eff;
  --accent-hover: #3a8eef;
  --accent-muted: rgba(74, 158, 255, .15);
  --status-success: #4caf50;
  --status-warning: #ff9800;
  --status-error: #f44336;
  --status-info: #2196f3;
  --shadow-elevation-1: 0 2px 4px rgba(0, 0, 0, .3);
  --shadow-elevation-2: 0 4px 8px rgba(0, 0, 0, .4);
  --shadow-elevation-3: 0 8px 16px rgba(0, 0, 0, .5);
  --map-placeholder: #1a1a2e;
  --map-shimmer-from: #1a1a2e;
  --map-shimmer-to: #252540;
  --pin-size: 48px;
  --touch-target: 48px;
  --sheet-bg: var(--bg-surface);
  --sheet-handle: var(--text-muted);
  --toast-bg: var(--bg-surface);
  --toast-border: var(--border-subtle);
}

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-surface: #fff;
  --bg-elevated: #f0f0f5;
  --bg-input: #e8e8f0;
  --bg-overlay: rgba(0, 0, 0, .3);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a65;
  --text-muted: #8a8aa5;
  --text-inverse: #e0e0e8;
  --border-subtle: #e0e0ea;
  --border-default: #c8c8d8;
  --border-strong: #a0a0b8;
  --accent-primary: #2979ff;
  --accent-hover: #1565c0;
  --accent-muted: rgba(41, 121, 255, .1);
  --status-success: #43a047;
  --status-warning: #ef6c00;
  --status-error: #e53935;
  --status-info: #1e88e5;
  --shadow-elevation-1: 0 2px 4px rgba(0, 0, 0, .08);
  --shadow-elevation-2: 0 4px 8px rgba(0, 0, 0, .12);
  --shadow-elevation-3: 0 8px 16px rgba(0, 0, 0, .16);
  --map-placeholder: #e0e0ea;
  --map-shimmer-from: #e0e0ea;
  --map-shimmer-to: #f0f0f5;
  --sheet-bg: var(--bg-surface);
  --sheet-handle: var(--text-muted);
  --toast-bg: var(--bg-surface);
  --toast-border: var(--border-subtle);
}

body {
  transition: background-color .2s, color .2s;
}

.map-container {
  background-color: var(--map-placeholder);
  width: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.map-loading-shimmer {
  background: linear-gradient(90deg, var(--map-shimmer-from) 0%, var(--map-shimmer-to) 50%, var(--map-shimmer-from) 100%);
  z-index: 1;
  pointer-events: none;
  background-size: 200% 100%;
  animation: 1.8s ease-in-out infinite shimmer;
  position: absolute;
  inset: 0;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.map-controls {
  z-index: 10;
  pointer-events: auto;
  position: absolute;
}

.map-control-btn {
  background: var(--bg-surface);
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation-1);
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  transition: background-color .15s, transform .1s;
  display: flex;
}

.map-control-btn:hover {
  background: var(--bg-elevated);
}

.map-control-btn:active {
  transform: scale(.95);
}

.map-control-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.map-control-btn--active {
  background: var(--accent-muted);
  color: var(--accent-primary);
}

.map-zoom-controls {
  z-index: 10;
  flex-direction: column;
  gap: 4px;
  display: flex;
  position: fixed;
  bottom: 96px;
  right: 16px;
}

.map-recenter {
  z-index: 10;
  position: fixed;
  bottom: 24px;
  left: 16px;
}

.map-fab {
  background: var(--accent-primary);
  color: #fff;
  width: 56px;
  height: 56px;
  box-shadow: var(--shadow-elevation-2);
  cursor: pointer;
  touch-action: manipulation;
  z-index: 20;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  transition: background-color .15s, transform .1s, opacity .2s;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 16px;
}

.map-fab:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.map-fab:active {
  transform: scale(.95);
}

.map-fab:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.map-fab-disabled {
  opacity: .5;
  pointer-events: none;
}

.map-fab-pulse {
  animation: 2s ease-in-out infinite fab-pulse;
}

@keyframes fab-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.map-fab-tooltip {
  white-space: nowrap;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-elevation-2);
  border: 1px solid var(--border-subtle);
  pointer-events: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
}

.map-fab-tooltip:after {
  content: "";
  border: 6px solid rgba(0, 0, 0, 0);
  border-top-color: var(--bg-surface);
  position: absolute;
  top: 100%;
  right: 20px;
}

.map-progress-bar {
  z-index: 100;
  pointer-events: none;
  width: 100%;
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

.map-progress-bar-inner {
  background: var(--accent-primary);
  width: 40%;
  height: 100%;
  animation: 1.5s ease-in-out infinite progress-sweep;
}

@keyframes progress-sweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

.map-gps-prompt {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 400px;
  box-shadow: var(--shadow-elevation-3);
  z-index: 30;
  border-radius: 12px;
  margin: 0 auto;
  padding: 16px;
  position: fixed;
  bottom: 90px;
  left: 16px;
  right: 16px;
}

.map-gps-prompt-text {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.map-gps-prompt-actions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.map-gps-prompt-btn {
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
}

.map-gps-prompt-btn--primary {
  background: var(--accent-primary);
  color: #fff;
}

.map-gps-prompt-btn--secondary {
  color: var(--text-secondary);
  background: none;
}

.maplibregl-ctrl-attrib {
  background: var(--bg-surface) !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
}

.maplibregl-ctrl-attrib a {
  color: var(--text-secondary) !important;
}

.maplibregl-ctrl-group {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: var(--shadow-elevation-1) !important;
}

.maplibregl-ctrl-group button {
  width: 36px !important;
  height: 36px !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--border-subtle) !important;
}

.maplibregl-ctrl button .maplibregl-ctrl-icon {
  filter: invert() brightness(.85);
}

.maplibregl-ctrl-logo {
  display: none !important;
}

.map-container:has(.maplibregl-canvas) .map-loading-shimmer {
  display: none;
}

.app-shell:has(.maplibregl-canvas) .map-progress-bar {
  display: none;
}

#map {
  z-index: 2;
}

.dock-pin-popup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 280px;
  box-shadow: var(--shadow-elevation-2);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}

.dock-pin-popup .business-name {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.dock-pin-popup .tag-count {
  color: var(--text-secondary);
  font-size: 12px;
}

.dock-pin-popup .multi-claim {
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  display: flex;
}

.dock-pin-popup .claim-badge {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}

.dock-pin-multi {
  background: var(--status-warning);
  min-width: 16px;
  height: 16px;
  color: var(--text-inverse);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  position: absolute;
  top: -4px;
  right: -4px;
}

.dock-pin-notes {
  background: #ffd93d;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: absolute;
  bottom: -2px;
  left: -2px;
}

.dock-pin-own {
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  font-size: 8px;
  line-height: 1;
  display: flex;
  position: absolute;
  top: -4px;
  left: -4px;
}

.bottom-sheet-overlay {
  z-index: 25;
  pointer-events: none;
  background: none;
  position: fixed;
  inset: 0;
}

.bottom-sheet {
  background: var(--bg-surface);
  box-shadow: var(--shadow-elevation-2);
  z-index: 30;
  border-radius: 16px 16px 0 0;
  flex-direction: column;
  max-height: 90vh;
  transition: height .3s;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
}

.bottom-sheet-handle {
  cursor: grab;
  touch-action: none;
  justify-content: center;
  padding: 12px 0 8px;
  display: flex;
}

.bottom-sheet-handle-bar {
  background: var(--text-muted);
  border-radius: 2px;
  width: 40px;
  height: 4px;
}

.bottom-sheet-compact {
  align-items: flex-start;
  gap: 12px;
  padding: 0 16px 12px;
  display: flex;
}

.bottom-sheet-field {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  display: flex;
}

.bottom-sheet-input {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  width: 100%;
  height: 48px;
  color: var(--text-primary);
  touch-action: manipulation;
  border-radius: 8px;
  outline: none;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
}

.bottom-sheet-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.bottom-sheet-input--error {
  border-color: var(--status-error);
}

.bottom-sheet-error {
  color: var(--status-error);
  padding-left: 4px;
  font-size: 12px;
}

.bottom-sheet-save {
  background: var(--accent-primary);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
}

.bottom-sheet-save:hover {
  background: var(--accent-hover);
}

.bottom-sheet-save:active {
  transform: scale(.97);
}

.bottom-sheet-extended {
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 12px;
  display: flex;
}

.bottom-sheet-full {
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 12px;
  display: flex;
}

.bottom-sheet-info {
  color: var(--text-secondary);
  font-size: 13px;
}

.bottom-sheet-info--hint {
  color: var(--text-muted);
  font-style: italic;
}

.bottom-sheet-coords {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 12px;
}

.bottom-sheet-coords-bar {
  align-items: center;
  gap: 8px;
  padding: 4px 16px 8px;
  font-family: monospace;
  font-size: 12px;
  display: flex;
}

.bottom-sheet-coords-label {
  color: var(--text-secondary);
}

.bottom-sheet-coords-accuracy {
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}

.bottom-sheet-coords-manual {
  color: var(--status-warning);
  background: rgba(255, 152, 0, .1);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 11px;
}

.bottom-sheet-collapse {
  justify-content: center;
  padding: 8px 16px 16px;
  display: flex;
}

.bottom-sheet-collapse-btn {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 14px;
}

.notes-field {
  position: relative;
}

.notes-input {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  width: 100%;
  min-height: 72px;
  color: var(--text-primary);
  resize: vertical;
  touch-action: manipulation;
  border-radius: 8px;
  outline: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
}

.notes-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.notes-counter {
  color: var(--text-muted);
  font-size: 12px;
  position: absolute;
  bottom: 8px;
  right: 12px;
}

.notes-counter--warning {
  color: var(--status-warning);
}

.quick-tags {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding: 4px 0;
  display: flex;
  overflow-x: auto;
}

.quick-tags::-webkit-scrollbar {
  display: none;
}

.quick-tag-pill {
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  background: none;
  border-radius: 20px;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  transition: background-color .15s, border-color .15s, color .15s;
}

.quick-tag-pill--active {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.quick-tag-pill:hover {
  background: var(--bg-elevated);
}

.dedup-prompt {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 400px;
  box-shadow: var(--shadow-elevation-3);
  z-index: 35;
  border-radius: 12px;
  margin: 0 auto;
  padding: 16px;
  position: fixed;
  bottom: 100px;
  left: 16px;
  right: 16px;
}

.dedup-prompt-text {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.dedup-prompt-actions {
  gap: 8px;
  display: flex;
}

.dedup-prompt-btn {
  cursor: pointer;
  touch-action: manipulation;
  text-align: center;
  border: none;
  border-radius: 8px;
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

.dedup-prompt-btn--merge {
  background: var(--accent-primary);
  color: #fff;
}

.dedup-prompt-btn--new {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

@media (orientation: landscape) and (width >= 640px) {
  .bottom-sheet {
    border-radius: 0;
    width: 400px;
    max-height: 100vh;
    inset: 0 0 0 auto;
    height: 100% !important;
  }

  .bottom-sheet-overlay {
    display: none;
  }
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation-2);
  z-index: 40;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  animation: .25s ease-out toast-slide-up;
  display: flex;
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
}

.toast-message {
  color: var(--text-primary);
  white-space: nowrap;
  flex: 1;
  font-size: 14px;
}

.toast-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  display: flex;
}

.toast-action {
  color: var(--accent-primary);
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.toast-action:hover {
  background: var(--accent-muted);
}

.toast-dismiss {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 4px;
  display: flex;
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dock-detail-sheet {
  overflow-y: auto;
}

.dock-detail-loading {
  text-align: center;
  padding: 24px 16px;
}

.dock-detail-loading-text {
  color: var(--text-muted);
  font-size: 14px;
}

.dock-detail-content {
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
  display: flex;
}

.dock-detail-businesses {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.dock-detail-biz {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.dock-detail-biz-name {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.dock-detail-biz-count {
  color: var(--text-secondary);
  font-size: 12px;
}

.dock-detail-facility {
  color: var(--text-secondary);
  font-size: 13px;
}

.dock-detail-tags {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.dock-detail-notes {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.dock-detail-note {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 8px 12px;
}

.dock-detail-note-text {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
}

.dock-detail-note-time {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 11px;
  display: block;
}

.dock-detail-actions {
  gap: 8px;
  padding-top: 4px;
  display: flex;
}

.dock-detail-confirm {
  background: var(--accent-primary);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  border-radius: 8px;
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s, transform .1s;
}

.dock-detail-confirm:hover {
  background: var(--accent-hover);
}

.dock-detail-confirm:active {
  transform: scale(.97);
}

.dock-detail-confirm:disabled {
  opacity: .7;
  cursor: wait;
}

.dock-detail-confirm--done {
  background: var(--status-success);
}

.dock-detail-confirm--done:hover {
  background: #388e3c;
}

.dock-detail-close {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 rgba(74, 158, 255, .4), 0 2px 8px rgba(0, 0, 0, .4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(74, 158, 255, 0), 0 2px 8px rgba(0, 0, 0, .4);
  }
}

@keyframes pin-drop {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translateY(-40px);
  }

  60% {
    opacity: 1;
    transform: rotate(-45deg) translateY(4px);
  }

  80% {
    transform: rotate(-45deg) translateY(-2px);
  }

  100% {
    transform: rotate(-45deg) translateY(0);
  }
}

.map-fab-waiting {
  opacity: .7;
  cursor: wait;
}

.fab-spinner {
  border: 3px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: .8s linear infinite fab-spin;
}

@keyframes fab-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

.touch-target {
  min-width: 48px;
  min-height: 48px;
}

.search-bar {
  top: env(safe-area-inset-top, 0);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  height: 48px;
  box-shadow: var(--shadow-elevation-1);
  z-index: 15;
  touch-action: manipulation;
  border-radius: 28px;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 0 8px 0 12px;
  display: flex;
  position: fixed;
  left: 16px;
  right: 16px;
}

.search-bar-hamburger {
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: -12px 0 -12px -8px;
  padding: 12px;
  display: flex;
}

.search-bar-hamburger:before {
  content: "";
  background: var(--text-secondary);
  width: 20px;
  height: 2px;
  box-shadow: 0 -6px 0 var(--text-secondary), 0 6px 0 var(--text-secondary);
  border-radius: 1px;
}

.search-bar-input {
  height: 100%;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
}

.search-bar-input::placeholder {
  color: var(--text-muted);
}

.search-bar-spinner {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 0 -8px;
  display: flex;
  position: absolute;
  top: 0;
  right: 8px;
}

.search-bar-icon-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.search-bar-icon-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.search-bar-icon-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.search-bar-hamburger:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.search-result-row:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.search-bar-icon-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.search-bar-icon-btn--recording {
  background: var(--accent-muted);
  color: var(--accent-primary);
}

@media (prefers-reduced-motion: no-preference) {
  .search-bar-icon-btn--recording {
    animation: 1.2s ease-in-out infinite voice-pulse;
  }
}

@keyframes voice-pulse {
  0%, 100% {
    box-shadow: 0 0 rgba(74, 158, 255, .35);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(74, 158, 255, 0);
  }
}

.search-bar-icon-btn:before, .search-bar-icon-btn:after {
  content: "";
  box-sizing: border-box;
  display: block;
  position: absolute;
}

.search-bar-icon-btn {
  position: relative;
}

.search-bar-icon-btn--search:before {
  border: 2px solid;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-2px, -2px);
}

.search-bar-icon-btn--search:after {
  background: currentColor;
  border-radius: 1px;
  width: 9px;
  height: 2px;
  transform: translate(8px, 8px) rotate(45deg);
}

.search-bar-icon-btn--nearby:before {
  border: 2px solid;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.search-bar-icon-btn--nearby:after {
  border-top: 2px solid;
  border-bottom: 2px solid;
  width: 24px;
  height: 24px;
  transform: scaleX(.24);
  box-shadow: 0 0;
}

.search-bar-icon-btn--scan:before {
  border: 2px solid;
  border-radius: 2px;
  width: 18px;
  height: 22px;
}

.search-bar-icon-btn--scan:after {
  background: currentColor;
  border-radius: 1px;
  width: 10px;
  height: 2px;
  transform: translateY(2px);
  box-shadow: 0 5px;
}

.search-bar-icon-btn--voice:before {
  border: 2px solid;
  border-radius: 8px;
  width: 12px;
  height: 18px;
  transform: translateY(-3px);
}

.search-bar-icon-btn--voice:after {
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-right: 2px solid;
  border-radius: 0 0 10px 10px;
  width: 18px;
  height: 12px;
  transform: translateY(3px);
}

.search-bar-voice-slot {
  display: inline-flex;
}

.search-bar-spinner-icon {
  border: 2px solid var(--text-muted);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: .8s linear infinite fab-spin;
}

.search-bar-offline {
  color: var(--text-muted);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.search-results {
  top: calc(env(safe-area-inset-top, 0px) + 16px + 52px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 720px;
  box-shadow: var(--shadow-elevation-2);
  z-index: 16;
  border-radius: 8px;
  max-height: 50vh;
  position: fixed;
  left: 16px;
  right: 16px;
  overflow-y: auto;
}

.search-results-list {
  margin: 0;
  padding: 4px;
  list-style: none;
}

.search-results-status {
  color: var(--text-secondary);
  margin: 0;
  padding: 10px 12px 6px;
  font-size: 13px;
  line-height: 1.3;
}

.search-results-status--expanded {
  color: var(--accent-primary);
}

.search-results-item {
  margin: 0;
}

.search-result-row {
  width: 100%;
  min-height: 56px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  transition: background-color .1s;
  display: flex;
}

.search-result-row:hover, .search-result-row--active {
  background: var(--bg-elevated);
}

.search-result-row__main {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.search-result-row__label {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
}

.search-result-row__kind, .search-result-row__meta, .search-results-attribution {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
}

.search-result-row__meta {
  flex-shrink: 0;
}

.search-results-attribution {
  border-top: 1px solid var(--border-subtle);
  margin: 0;
  padding: 4px 12px 10px;
}

@media (width <= 640px) {
  .search-bar {
    border-radius: 8px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 4px;
    left: 8px;
    right: 8px;
  }

  .search-bar-input {
    flex-basis: calc(100% - 56px);
    min-height: 48px;
  }

  .search-results {
    z-index: 24;
    border-radius: 8px 8px 0 0;
    max-width: none;
    max-height: 58vh;
    inset: auto 0 0;
  }
}

.bol-scan {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  max-width: 520px;
  color: var(--text-primary);
  box-shadow: var(--shadow-elevation-3);
  z-index: 35;
  border-radius: 8px;
  margin: 0 auto;
  padding: 16px;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
}

.bol-scan__header {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  display: flex;
}

.bol-scan__header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.bol-scan__icon-btn {
  width: 48px;
  height: 48px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.bol-scan__icon-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  width: 20px;
  height: 20px;
}

.bol-scan__message {
  color: var(--text-secondary);
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.35;
}

.bol-scan__fields {
  gap: 12px;
  display: grid;
}

.bol-scan__fields label {
  color: var(--text-secondary);
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
}

.bol-scan__actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  display: flex;
}

.bol-scan__primary, .bol-scan__secondary {
  border: 1px solid var(--border-default);
  min-height: 48px;
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 0 16px;
}

.bol-scan__primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.bol-scan__secondary {
  color: var(--text-primary);
  background: none;
}

.sync-banner {
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  z-index: 800;
  text-align: center;
  pointer-events: none;
  padding: 8px 16px;
  font-size: 13px;
  transition: transform .3s, background-color .3s;
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}

.sync-banner--visible {
  pointer-events: auto;
  transform: translateY(0);
}

.sync-banner--pending {
  color: #1a1a2e;
  background-color: rgba(245, 158, 11, .9);
}

.sync-banner--syncing {
  color: #fff;
  background-color: rgba(59, 130, 246, .9);
}

.sync-banner--complete {
  color: #1a1a2e;
  background-color: rgba(34, 197, 94, .9);
}

.search-offline-indicator {
  opacity: .6;
  align-items: center;
  padding: 0 8px;
  display: inline-flex;
}

.search-offline-indicator svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.business-autocomplete {
  flex: 1;
  position: relative;
}

.autocomplete-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation-2);
  z-index: 50;
  border-radius: 12px;
  max-height: 240px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow-y: auto;
}

.autocomplete-option {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  transition: background-color .1s;
  display: flex;
}

.autocomplete-option:hover, .autocomplete-option--active {
  background: var(--bg-elevated);
}

.autocomplete-option-name {
  color: var(--text-primary);
  font-size: 14px;
}

.autocomplete-option-count {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 12px;
}

.autocomplete-option-source {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 11px;
  font-style: italic;
}

.nav-drawer-backdrop {
  background: var(--bg-overlay);
  z-index: 50;
  animation: .25s nav-backdrop-fade;
  position: fixed;
  inset: 0;
}

@keyframes nav-backdrop-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.nav-drawer {
  background: var(--bg-surface);
  z-index: 51;
  width: 300px;
  max-width: 80vw;
  box-shadow: var(--shadow-elevation-3);
  flex-direction: column;
  animation: .25s nav-drawer-slide;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

@keyframes nav-drawer-slide {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.nav-drawer-header {
  border-bottom: 1px solid var(--border-subtle);
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  display: flex;
}

.nav-drawer-title {
  color: var(--accent-primary);
  font-size: 20px;
  font-weight: 700;
}

.nav-drawer-close {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 12px;
  display: flex;
}

.nav-drawer-close:hover {
  background: var(--bg-elevated);
}

.nav-drawer-content {
  flex: 1;
  padding: 8px 0;
}

.nav-drawer-section {
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
}

.nav-drawer-section:last-child {
  border-bottom: none;
}

.nav-drawer-section-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.nav-drawer-lang-toggle, .nav-drawer-theme-toggle {
  gap: 4px;
  display: flex;
}

.nav-drawer-lang-btn, .nav-drawer-theme-btn {
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all .15s;
}

.nav-drawer-lang-btn:hover, .nav-drawer-theme-btn:hover {
  background: var(--bg-elevated);
}

.nav-drawer-lang-btn--active, .nav-drawer-theme-btn--active {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.nav-drawer-empty {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

.nav-drawer-about-text {
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.nav-drawer-about-version {
  color: var(--text-muted);
  font-size: 12px;
}

.nav-drawer-tags-list {
  max-height: 300px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.nav-drawer-tag-item {
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  display: flex;
}

.nav-drawer-tag-item:last-child {
  border-bottom: none;
}

.nav-drawer-tag-item:hover {
  background: var(--bg-elevated);
  margin: 0 -16px;
  padding: 10px 16px;
}

.nav-drawer-tag-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.nav-drawer-tag-meta {
  align-items: center;
  gap: 8px;
  display: flex;
}

.nav-drawer-tag-time {
  color: var(--text-muted);
  font-size: 11px;
}

.nav-drawer-tag-status {
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
}

.nav-drawer-tag-status--synced {
  color: var(--status-success);
  background: rgba(76, 175, 80, .15);
}

.nav-drawer-tag-status--pending {
  color: var(--status-warning);
  background: rgba(255, 152, 0, .15);
}

.empty-state-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 400px;
  box-shadow: var(--shadow-elevation-2);
  z-index: 12;
  text-align: center;
  border-radius: 12px;
  margin: 0 auto;
  padding: 16px;
  animation: .3s empty-state-fade;
  position: fixed;
  bottom: 96px;
  left: 16px;
  right: 16px;
}

.empty-state-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

@keyframes empty-state-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state-card ~ .map-fab {
  animation: 1.5s ease-in-out infinite fab-pulse;
}

.auth-sheet-overlay {
  background: var(--bg-overlay);
  z-index: 25;
  position: fixed;
  inset: 0;
}

.auth-sheet {
  z-index: 30;
}

.auth-sheet-content {
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
}

.auth-sheet-title {
  color: var(--text-primary);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.auth-sheet-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.phone-input-group {
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  border-radius: 8px;
  align-items: stretch;
  display: flex;
  position: relative;
  overflow: hidden;
}

.phone-input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.phone-input-group--error {
  border-color: var(--status-error);
}

.phone-input-group--error:focus-within {
  box-shadow: 0 0 0 2px rgba(244, 67, 54, .15);
}

.country-picker {
  background: var(--bg-elevated);
  border: none;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 12px;
  font-size: 14px;
  display: flex;
}

.country-picker:hover {
  background: var(--bg-surface);
}

.country-picker-flag {
  font-size: 18px;
  line-height: 1;
}

.country-picker-code {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.country-picker-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.country-picker-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation-2);
  z-index: 60;
  border-radius: 8px;
  margin-top: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
}

.country-picker-option {
  width: 100%;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
}

.country-picker-option:hover {
  background: var(--bg-elevated);
}

.country-picker-option-flag {
  font-size: 18px;
}

.country-picker-option-name {
  flex: 1;
}

.country-picker-option-code {
  color: var(--text-muted);
  font-size: 13px;
}

.phone-input {
  height: 48px;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
}

.phone-input::placeholder {
  color: var(--text-muted);
}

.phone-input-error {
  color: var(--status-error);
  margin: 0;
  padding-left: 4px;
  font-size: 12px;
}

.auth-send-code-btn {
  background: var(--accent-primary);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color .15s, transform .1s;
  display: flex;
}

.auth-send-code-btn:hover {
  background: var(--accent-hover);
}

.auth-send-code-btn:active {
  transform: scale(.97);
}

.auth-send-code-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.auth-spinner {
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: .8s linear infinite fab-spin;
}

.turnstile-container {
  height: 0;
  overflow: hidden;
}

.auth-tos {
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.auth-tos a {
  color: var(--accent-primary);
  text-decoration: none;
}

.auth-trouble {
  text-align: center;
  margin: 0;
}

.auth-trouble-link {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.auth-trouble-link:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.otp-boxes {
  justify-content: center;
  gap: 8px;
  display: flex;
}

.otp-box {
  text-align: center;
  width: 48px;
  height: 56px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  caret-color: var(--accent-primary);
  border-radius: 8px;
  outline: none;
  font-size: 24px;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}

.otp-box:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-muted);
}

.otp-box-filled {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.otp-box-error {
  animation: .4s otp-shake;
  border-color: var(--status-error) !important;
}

@keyframes otp-shake {
  0%, 100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.otp-box:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.otp-error {
  color: var(--status-error);
  text-align: center;
  margin: 0;
  font-size: 13px;
}

.otp-attempts {
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  font-size: 12px;
}

.auth-lockout {
  color: var(--status-error);
  text-align: center;
  margin: 0;
  padding: 8px 0;
  font-size: 13px;
}

.resend-timer {
  text-align: center;
  margin-top: 4px;
}

.resend-countdown {
  color: var(--text-muted);
  font-size: 13px;
}

.resend-link {
  color: var(--accent-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 13px;
  text-decoration: none;
}

.resend-link:hover {
  text-decoration: underline;
}

.resend-link:disabled {
  color: var(--text-muted);
  cursor: wait;
}

.auth-morph-out .auth-sheet-content {
  opacity: 0;
  transition: opacity .15s ease-out;
}

.dock-detail-flag {
  color: var(--status-error);
  border: 1px solid var(--status-error);
  cursor: pointer;
  touch-action: manipulation;
  opacity: .7;
  background: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: opacity .15s, background-color .15s;
}

.dock-detail-flag:hover {
  opacity: 1;
  background: rgba(244, 67, 54, .08);
}

.dock-detail-flag--done {
  opacity: 1;
  background: rgba(244, 67, 54, .1);
}

.flag-reason-picker {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation-2);
  z-index: 35;
  border-radius: 12px;
  min-width: 200px;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  overflow: hidden;
}

.flag-reason-option {
  width: 100%;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  display: block;
}

.flag-reason-option:hover {
  background: var(--bg-elevated);
}

.nav-drawer-account {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.nav-drawer-phone {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.nav-drawer-account-link {
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13px;
}

.nav-drawer-account-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.nav-drawer-account-link--danger {
  color: var(--status-error);
  opacity: .7;
  margin-top: 4px;
  font-size: 12px;
}

.nav-drawer-account-link--danger:hover {
  opacity: 1;
  color: var(--status-error);
}

.delete-confirm-overlay {
  background: var(--bg-overlay);
  z-index: 60;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.delete-confirm-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: calc(100% - 32px);
  max-width: 340px;
  box-shadow: var(--shadow-elevation-3);
  border-radius: 12px;
  padding: 24px;
}

.delete-confirm-dialog h3 {
  color: var(--text-primary);
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.delete-confirm-dialog p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.delete-confirm-input {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  width: 100%;
  height: 40px;
  color: var(--text-primary);
  border-radius: 8px;
  outline: none;
  margin-bottom: 16px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
}

.delete-confirm-input:focus {
  border-color: var(--status-error);
}

.delete-confirm-actions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.delete-confirm-btn {
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
}

.delete-confirm-btn--cancel {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.delete-confirm-btn--danger {
  background: var(--status-error);
  color: #fff;
}

.delete-confirm-btn--danger:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.photo-capture {
  padding: 4px 0;
}

.photo-thumbnails {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding: 8px 0;
  display: flex;
  overflow-x: auto;
}

.photo-thumbnail {
  object-fit: cover;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--bg-elevated);
  border-radius: 8px;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  position: relative;
}

.photo-thumbnail-add {
  border: 2px dashed var(--border-default);
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  transition: border-color .15s, background-color .15s;
  display: flex;
}

.photo-thumbnail-add:hover {
  border-color: var(--accent-primary);
  background: var(--accent-muted);
}

.photo-progress-ring {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.photo-retry {
  cursor: pointer;
  background: rgba(0, 0, 0, .6);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.photo-preparing {
  background: var(--bg-elevated);
  justify-content: center;
  align-items: center;
  display: flex;
}

.photo-preparing-text {
  color: var(--text-muted);
  font-size: 12px;
}

.photo-fullscreen {
  z-index: 1000;
  background: rgba(0, 0, 0, .9);
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.photo-fullscreen img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.photo-delete-btn {
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  background: rgba(0, 0, 0, .5);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
}

.photo-delete-btn:hover {
  background: rgba(244, 67, 54, .6);
}

.compass-wheel-container {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  display: flex;
}

.compass-wheel {
  touch-action: none;
  cursor: pointer;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  position: relative;
}

.compass-wheel svg {
  width: 100%;
  height: 100%;
}

.compass-wheel-label {
  text-align: center;
  color: var(--text-primary);
  font-size: 14px;
}

.compass-auto-badge {
  background: var(--accent-muted);
  color: var(--accent-primary);
  border-radius: 4px;
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 10px;
}

.compass-clear {
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  padding: 4px 8px;
  font-size: 12px;
}

.compass-clear:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.bottom-sheet-approach {
  padding: 4px 0;
}

.bottom-sheet-approach-toggle {
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  background: none;
  border-radius: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
}

.bottom-sheet-approach-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.bottom-sheet-section-title {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.dock-detail-approach {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.approach-direction {
  color: var(--text-primary);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: flex;
}

.approach-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .3s;
}

.freshness-bar-track {
  background: var(--bg-elevated, #252540);
  border-radius: 2px;
  height: 4px;
  margin: 4px 0;
  overflow: hidden;
}

.freshness-bar-fill {
  border-radius: 2px;
  height: 100%;
  transition: width .3s;
}

.freshness-bar-fill.green {
  background: #22c55e;
}

.freshness-bar-fill.amber {
  background: #f59e0b;
}

.freshness-bar-fill.red {
  background: #ef4444;
}

.freshness-label {
  color: var(--text-muted);
  font-size: 12px;
}

[data-theme="light"] .freshness-bar-track {
  background: #e5e5e5;
}

.install-prompt {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  z-index: 900;
  max-width: 400px;
  box-shadow: var(--shadow-elevation-3);
  border-radius: 12px;
  margin: 0 auto;
  padding: 16px;
  animation: .3s install-slide-up;
  position: fixed;
  left: 16px;
  right: 16px;
}

.install-prompt__title {
  color: var(--text-primary);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.install-prompt__body {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.install-prompt__actions {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  display: flex;
}

.install-prompt__btn {
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.install-prompt__btn--dismiss {
  color: var(--text-secondary);
  background: none;
}

.install-prompt__btn--dismiss:hover {
  color: var(--text-primary);
}

.install-prompt__btn--install {
  background: var(--accent-primary);
  color: #fff;
}

.install-prompt__btn--install:hover {
  background: var(--accent-hover);
}

.install-prompt__ios-guide {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
}

.install-prompt__ios-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

@keyframes install-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
