:root {
  --bg: #121416;
  --page-bg: #080a0b;
  --map-bg: #191d1d;
  --panel: #1a1f22;
  --panel-strong: #20272a;
  --panel-soft: rgba(26, 31, 34, 0.88);
  --control-bg: #111517;
  --text: #f2f5f2;
  --muted: #aeb8b1;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #e53935;
  --accent-strong: #bd2725;
  --teal: #21c7a8;
  --teal-strong: #13a78d;
  --amber: #f1b84a;
  --violet: #a78bfa;
  --green: #77d982;
  --red: #f36d6d;
  --blue: #69a7ff;
  --gray: #9ba3a0;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --warning-bg: rgba(44, 34, 12, 0.82);
  --warning-soft-bg: rgba(44, 34, 12, 0.65);
  --warning-line: rgba(241, 184, 74, 0.28);
  --warning-text: #ffe9b8;
  --success-bg: #f4fff9;
  --success-text: #0a2f28;
  --brand-bg: #fff1f1;
  --brand-text: #7a1110;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="light"] {
  --bg: #f3f5f7;
  --page-bg: #dfe4e8;
  --map-bg: #e6ecef;
  --panel: #ffffff;
  --panel-strong: #f6f8fa;
  --panel-soft: rgba(255, 255, 255, 0.92);
  --control-bg: #ffffff;
  --text: #172024;
  --muted: #657276;
  --line: rgba(14, 24, 30, 0.14);
  --accent: #d6262c;
  --accent-strong: #bc1f25;
  --teal: #0b8f79;
  --teal-strong: #087663;
  --amber: #b87912;
  --violet: #7c54d8;
  --green: #188a43;
  --red: #c73333;
  --blue: #256dcf;
  --gray: #7a8587;
  --shadow: 0 18px 38px rgba(26, 34, 39, 0.18);
  --warning-bg: rgba(255, 246, 218, 0.96);
  --warning-soft-bg: rgba(255, 246, 218, 0.9);
  --warning-line: rgba(184, 121, 18, 0.35);
  --warning-text: #62420e;
  --success-bg: #ffffff;
  --success-text: #172024;
  --brand-bg: #fff0f0;
  --brand-text: #8a1116;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow: hidden;
}

@media (min-width: 560px) {
  body {
    display: grid;
    place-items: center;
    padding: 18px;
    background:
      radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.12), transparent 34%),
      var(--page-bg);
  }
}

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

button {
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  :where(
      body,
      .app-shell,
      .app-header,
      .brand-mark,
      .cleanup-pill,
      .theme-toggle,
      .filter-chip,
      .action-dock,
      .dock-button,
      .sheet-content,
      .sheet-close,
      .owner-contacts-links a,
      .nearby-actions button,
      .nearby-actions a,
      .field input,
      .field textarea,
      .field select,
      .form-actions button,
      .status-badge,
      .detail-item,
      .proposal-note
    ) {
    transition:
      background-color 240ms ease,
      color 240ms ease,
      border-color 240ms ease,
      box-shadow 240ms ease;
  }
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 560px) {
  .app-shell {
    width: min(430px, calc(100vw - 36px));
    height: min(932px, calc(100dvh - 36px));
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow:
      0 34px 90px rgba(0, 0, 0, 0.58),
      0 0 0 8px rgba(255, 255, 255, 0.03);
  }
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--map-bg);
}

.leaflet-control-attribution {
  max-width: 72vw;
  background: color-mix(in srgb, var(--panel) 82%, transparent) !important;
  color: var(--muted) !important;
}

.leaflet-control-attribution a {
  color: var(--teal);
}

.app-header {
  position: absolute;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  position: relative;
}

.header-menu-button {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  place-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid rgba(20, 29, 36, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    0 4px 12px rgba(23, 32, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #23252d;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  align-self: center;
  justify-self: start;
  overflow: hidden;
}

.header-menu-button span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.header-menu-button span:nth-child(2) {
  width: 14px;
}

.header-menu-button:active {
  transform: scale(0.96);
}

.brand-mark {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-bg);
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 800;
}

.brand-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.brand-avatar-image {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.brand-copy-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 7;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}

.side-menu {
  position: absolute;
  inset: 0;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.side-menu.open,
.side-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.side-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(384px, calc(100% - 6px));
  height: 100%;
  background: #fff;
  padding: 12px 10px 12px 12px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 180ms ease;
}

.side-menu.open .side-menu-panel,
.side-menu.is-open .side-menu-panel {
  transform: translateX(0);
}

.side-menu-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 10px;
  flex: 0 0 auto;
}

.side-menu-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #23252d;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.side-menu-logo {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #23252d;
  font: 700 18px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

.side-menu-logo-sfa {
  color: #f44c42;
  font-style: italic;
}

.side-menu-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.side-menu-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.side-menu-card,
.side-menu-footer {
  background: #f3f5f8;
  border-radius: 14px;
}

.side-menu-card {
  margin-bottom: 12px;
  overflow: hidden;
}

.side-menu-nav-btn,
.side-menu-simple-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: #434955;
  text-align: left;
  cursor: pointer;
  font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

.side-menu-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}

.side-menu-arrow {
  color: #7f8794;
  font-size: 26px;
  line-height: 1;
}

.side-menu-simple-btn {
  display: block;
  padding: 18px 22px;
}

.side-menu-promo {
  padding: 14px 14px 16px;
}

.side-menu-promo-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.side-menu-promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 6px 14px rgba(24, 39, 60, 0.08);
}

.side-menu-promo-title {
  margin: 0 0 3px;
  color: #2f333c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.side-menu-promo-sub {
  margin: 0;
  color: #818793;
  font-size: 13px;
  line-height: 1.3;
}

.side-menu-promo-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #23252d;
  color: #fff;
  font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.side-menu-footer {
  padding: 16px 18px;
}

.side-menu-footer strong {
  display: block;
  margin-bottom: 4px;
  color: #2f333c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.side-menu-footer span {
  color: #7f8794;
  font-size: 13px;
  line-height: 1.3;
}

.side-menu-footer-btn {
  width: 100%;
  border: 0;
  text-align: center;
  cursor: pointer;
}

.avatar-menu__title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.avatar-menu__grid,
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.avatar-choice {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
}

.avatar-choice img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 11px;
  object-fit: cover;
}

.avatar-choice.is-selected {
  border-color: rgba(229, 57, 53, 0.62);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.12);
}

.avatar-choice-small {
  border-radius: 10px;
}

.header-controls {
  display: grid;
  min-width: 130px;
  grid-template-columns: minmax(74px, auto) 42px;
  gap: 8px;
  align-items: center;
}

.cleanup-pill {
  display: grid;
  min-height: 34px;
  min-width: 74px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  padding: 4px 8px;
}

.cleanup-pill span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.cleanup-pill strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.theme-toggle {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
  touch-action: manipulation;
}

.theme-toggle:active {
  transform: scale(0.96);
}

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

.theme-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  will-change: opacity, transform;
}

.theme-icon-sun {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f7c94b;
  box-shadow:
    0 -10px 0 -6px #f7c94b,
    0 10px 0 -6px #f7c94b,
    10px 0 0 -6px #f7c94b,
    -10px 0 0 -6px #f7c94b,
    7px 7px 0 -6px #f7c94b,
    -7px -7px 0 -6px #f7c94b,
    7px -7px 0 -6px #f7c94b,
    -7px 7px 0 -6px #f7c94b;
}

.theme-icon-moon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #172024;
}

.theme-icon-moon::after {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--control-bg);
  content: "";
}

:root:not([data-theme="light"]) .theme-icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

:root:not([data-theme="light"]) .theme-icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-35deg) scale(0.62);
}

:root[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(55deg) scale(0.62);
}

:root[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.stat-pill {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(229, 57, 53, 0.36);
  border-radius: var(--radius);
  background: rgba(88, 20, 20, 0.9);
  color: var(--text);
  padding: 8px 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-pill span {
  color: #ffe2e1;
  font-size: 12px;
}

.stat-pill.muted {
  min-width: 104px;
  flex-direction: column;
  gap: 0;
  border-color: var(--line);
  background: var(--panel-soft);
}

.stat-pill.muted strong {
  font-size: 15px;
}

.scroll-row {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row.is-dragging {
  cursor: grabbing;
}

.filter-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 8px 2px 0;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2px 12px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  touch-action: pan-x;
}

.filter-bar.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.filter-chip {
  min-height: 38px;
  min-width: 108px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
  padding: 0 15px;
  scroll-snap-align: start;
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: #111417;
  background: #111417;
  color: #ffffff;
}

.filters-dropdown {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 2px;
  position: relative;
  z-index: 6;
}

.filters-toggle {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--text);
  padding: 0 14px;
}

.filters-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  padding: 12px;
  overflow: visible;
}

.filters-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}

@media (max-width: 430px) {
  .filters-panel__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.filter-select {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-top: 0;
  position: relative;
}

.filter-select.is-select-open {
  z-index: 30;
}

.filter-select[hidden] {
  display: none;
}

.filter-select span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.filter-select select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--text);
  padding: 0 12px;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.filter-select__native {
  position: absolute;
  inset: auto auto 0 0;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.filter-select__button {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--text);
  padding: 0 11px;
  text-align: left;
  cursor: pointer;
}

.filter-select__button::after {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  opacity: 0.58;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.filter-select__button:focus-visible {
  border-color: #111417;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 20, 23, 0.1);
}

.filter-select.is-select-open .filter-select__button {
  border-color: #111417;
  border-bottom-color: color-mix(in srgb, var(--panel) 94%, transparent);
  border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--panel) 98%, transparent);
}

.filter-select.is-select-open .filter-select__button::after {
  transform: translateY(2px) rotate(225deg);
}

.filter-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.filter-select__menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  max-height: 222px;
  overflow-y: auto;
  border: 1px solid #111417;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: color-mix(in srgb, var(--panel) 98%, transparent);
  box-shadow: 0 14px 26px rgba(18, 25, 32, 0.14);
  overscroll-behavior: contain;
  padding: 4px;
}

.filter-select__menu[hidden] {
  display: none;
}

.filter-select__option {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 0 9px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.filter-select__option:hover,
.filter-select__option.is-active {
  background: color-mix(in srgb, var(--line) 68%, transparent);
}

.filter-select__option.is-selected {
  background: #111417;
  color: #ffffff;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choice-pill {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--muted);
  padding: 0 12px;
}

.choice-pill.is-active {
  border-color: #111417;
  background: #111417;
  color: #ffffff;
}

.owner-contacts-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.owner-contacts-links.in-sheet {
  margin-top: 16px;
  grid-template-columns: 1fr;
}

.owner-contacts-links a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dde2;
  border-radius: var(--radius);
  background: #ffffff;
  color: #14191d;
  font-size: 14px;
  text-decoration: none;
}

.action-dock {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-height: calc(64px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.dock-button {
  display: flex;
  min-width: 0;
  min-height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 4px 3px;
}

.dock-button.primary {
  background: transparent;
  color: var(--accent);
}

.dock-button.is-active {
  background: rgba(229, 57, 53, 0.1);
  color: var(--accent);
}

.dock-button.has-badge {
  position: relative;
}

.dock-badge {
  position: absolute;
  top: 4px;
  right: 18px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
}

.dock-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
}

.dock-icon-geo {
  position: relative;
  width: 24px;
  height: 24px;
}

.dock-icon-geo::before {
  position: absolute;
  left: 7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  content: "";
  transform: rotate(-45deg);
}

.dock-icon-geo::after {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.dock-button > span:not(.dock-icon):not(.dock-badge) {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  font-size: 11px;
  line-height: 1.05;
}

.map-controls {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-fab {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(20, 29, 36, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 8px 20px rgba(23, 32, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #171c21;
  backdrop-filter: blur(14px);
}

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

.map-fab__label {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  transform: translateY(-1px);
}

.map-fab-geo__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.map-fab-geo__icon::before {
  content: "➤";
  transform: rotate(-90deg);
  transform-origin: center;
}

.sheet {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(82dvh, 720px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -24px 56px rgba(0, 0, 0, 0.46);
  transform: translateY(110%);
  transition: transform 180ms ease;
}

.sheet.is-open {
  transform: translateY(0);
}

.sheet-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  font-size: 24px;
  line-height: 1;
}

.sheet-grip {
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.sheet-content {
  max-height: calc(min(82dvh, 720px) - 14px);
  overflow-y: auto;
  padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sheet-content::-webkit-scrollbar {
  display: none;
}

.sheet-title {
  margin: 0;
  padding-right: 44px;
  font-size: 20px;
  line-height: 1.18;
}

.sheet-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.sheet-title-sm {
  margin-top: 0;
  padding-right: 0;
  font-size: 16px;
}

.status-row,
.detail-grid,
.form-grid,
.button-grid,
.nearby-list {
  display: grid;
  gap: 10px;
}

.status-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.1;
}

.status-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.status-search {
  color: var(--amber);
}

.status-agreed {
  color: var(--violet);
}

.status-unavailable {
  color: var(--gray);
}

.status-own {
  color: var(--blue);
}

.detail-grid {
  margin-top: 16px;
}

.detail-grid-compact {
  margin-top: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.photo-grid-edit {
  margin-top: 0;
}

.photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  aspect-ratio: 1 / 1;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-editable {
  min-height: 132px;
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 10, 11, 0.76);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.photo-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--muted);
  padding: 16px;
  font-size: 13px;
  text-align: center;
  grid-column: 1 / -1;
}

.detail-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  padding: 10px;
}

.detail-item-button {
  display: block;
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.detail-item-button:focus-visible {
  border-color: #111417;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 20, 23, 0.1);
}

.detail-item-button:active {
  transform: scale(0.99);
}

.detail-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.detail-value {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.detail-item:has(.detail-value:empty) {
  display: none;
}

.detail-grid:not(:has(.detail-item:not(:has(.detail-value:empty)))) {
  display: none;
}

.button-grid {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.action-button,
.text-button {
  min-height: 44px;
  width: 100%;
  border: 1px solid #d8dde2;
  border-radius: var(--radius);
  background: #ffffff;
  color: #14191d;
  padding: 0 12px;
  text-align: center;
  text-decoration: none;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-button-inline {
  width: auto;
  min-width: 0;
  margin-top: 8px;
  padding-inline: 14px;
}

.action-button.primary {
  border-color: #d8dde2;
  background: #ffffff;
  color: #14191d;
}

.action-button.warn {
  border-color: #d8dde2;
  background: #ffffff;
  color: #14191d;
}

.action-button.danger {
  border-color: #d8dde2;
  background: #ffffff;
  color: #14191d;
}

.action-button.is-disabled,
.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.text-button {
  color: var(--muted);
}

.public-warning {
  margin-top: 14px;
  border: 1px solid var(--warning-line);
  border-radius: var(--radius);
  background: var(--warning-soft-bg);
  color: var(--warning-text);
  padding: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.form-grid {
  margin-top: 16px;
}

.profile-password-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--control-bg);
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input[type="file"] {
  min-height: auto;
  padding: 12px;
}

.field-readonly input {
  color: var(--muted);
  background: var(--panel-strong);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(33, 199, 168, 0.72);
  box-shadow: 0 0 0 3px rgba(33, 199, 168, 0.14);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: var(--red);
}

.field-error {
  display: none;
  color: #ffb4b4;
  font-size: 12px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field.is-invalid .field-error {
  display: block;
}

.address-list {
  display: grid;
  gap: 8px;
}

.address-item__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 148px) auto;
  gap: 8px;
  align-items: center;
}

.address-item__row--single {
  grid-template-columns: minmax(0, 1fr) minmax(128px, 148px);
}

.address-item__row select {
  min-width: 0;
  width: 100%;
  border-radius: 16px;
}

.delivery-drafts {
  display: grid;
  gap: 10px;
}

.delivery-draft {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  overflow: hidden;
}

.delivery-draft__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.delivery-draft__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
}

.delivery-draft__title,
.delivery-draft__summary {
  display: block;
  min-width: 0;
}

.delivery-draft__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.delivery-draft__summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  align-self: center;
}

.delivery-draft__remove {
  width: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}

.delivery-draft__content {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.delivery-draft__content[hidden] {
  display: none;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--text);
  padding: 0;
}

.address-remove {
  font-size: 22px;
  line-height: 1;
}

.avatar-field {
  gap: 10px;
}

.profile-lock-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  padding: 12px;
}

.profile-lock-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-lock-card__head img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.profile-lock-card__head strong,
.profile-lock-card__head span {
  display: block;
}

.profile-lock-card__head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  touch-action: auto;
  cursor: default;
}

.tabs.scroll-row {
  touch-action: pan-x;
  cursor: grab;
}

.tab-button {
  display: flex;
  min-height: 52px;
  min-width: 118px;
  flex-direction: column;
  flex: 0 0 118px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  scroll-snap-align: start;
}

.tab-button.is-active {
  border-color: rgba(229, 57, 53, 0.62);
  background: rgba(229, 57, 53, 0.14);
  color: var(--text);
}

.tab-button__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

.tab-button__count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.proposal-note {
  margin-top: 12px;
  border: 1px solid rgba(229, 57, 53, 0.28);
  border-radius: var(--radius);
  background: rgba(88, 20, 20, 0.54);
  color: #ffd1d1;
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.proposal-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}

.proposal-pending {
  color: var(--amber);
}

.proposal-accepted {
  color: var(--green);
}

.proposal-declined {
  color: var(--red);
}

.proposal-route {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.proposal-route span:first-child,
.proposal-route span:last-child {
  color: var(--text);
}

.nearby-list {
  margin-top: 14px;
}

.nearby-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  padding: 11px;
}

.nearby-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.nearby-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.nearby-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.nearby-actions button,
.nearby-actions a {
  display: inline-flex;
  min-height: 36px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #14191d;
  text-decoration: none;
}

.toast {
  position: absolute;
  z-index: 20;
  left: 12px;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--success-bg);
  color: var(--success-text);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.person-marker {
  position: relative;
  width: 34px;
  height: 40px;
  color: #ffffff;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.36));
  overflow: visible;
}

:root[data-theme="light"] .person-marker {
  color: #111417;
}

.person-marker__figure {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.person-marker__head,
.person-marker__body,
.person-marker__card,
.person-marker__docs {
  position: absolute;
  display: block;
}

.person-marker__head {
  top: 3px;
  left: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
}

.person-marker__body {
  top: 18px;
  left: 6px;
  width: 22px;
  height: 25px;
  border-radius: 12px 12px 7px 7px;
  background:
    linear-gradient(currentColor 0 0) 4px 18px / 5px 9px no-repeat,
    linear-gradient(currentColor 0 0) 13px 18px / 5px 9px no-repeat,
    currentColor;
  clip-path: polygon(18% 0, 82% 0, 100% 45%, 80% 45%, 76% 100%, 56% 100%, 50% 60%, 44% 100%, 24% 100%, 20% 45%, 0 45%);
}

.person-marker__card,
.person-marker__docs {
  top: 21px;
  width: 10px;
  height: 7px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(2px) scale(0.7);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.person-marker__card {
  left: -3px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0 22%, transparent 22% 100%),
    linear-gradient(#ffd35a 0 0) 2px 4px / 6px 1px no-repeat,
    #d6262c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.person-marker__docs {
  right: -4px;
  height: 9px;
  border: 1px solid rgba(17, 20, 23, 0.28);
  background:
    linear-gradient(#d6262c 0 0) 2px 2px / 5px 1px no-repeat,
    linear-gradient(#b8c0ca 0 0) 2px 5px / 6px 1px no-repeat,
    #ffffff;
  box-shadow:
    2px -2px 0 #eef1f4,
    0 1px 3px rgba(0, 0, 0, 0.24);
}

.person-marker.marker-intro .person-marker__figure {
  animation: marker-pop-in 720ms cubic-bezier(0.2, 1.45, 0.32, 1) both;
}

.person-marker.marker-intro::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -3px;
  width: 26px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0;
  animation: marker-landing-ring 720ms ease-out both;
}

.person-marker.marker-running {
  z-index: 900 !important;
}

.person-marker.marker-pending {
  z-index: 880 !important;
}

.person-marker.marker-pending .person-marker__figure::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0;
  animation: marker-pending-pulse 1.35s ease-out infinite;
}

.person-marker.marker-pending-incoming .person-marker__figure::after {
  animation-delay: 160ms;
}

.person-marker.marker-pending-both .person-marker__figure::after {
  border-style: dashed;
}

.person-marker.marker-running .person-marker__figure {
  animation: marker-run-body 260ms ease-in-out infinite alternate;
}

.person-marker.marker-running .person-marker__card,
.person-marker.marker-running .person-marker__docs {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.person-marker.marker-running .person-marker__card {
  animation: marker-run-left-hand 260ms ease-in-out infinite alternate;
}

.person-marker.marker-running .person-marker__docs {
  animation: marker-run-right-hand 260ms ease-in-out infinite alternate-reverse;
}

@keyframes marker-pop-in {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.45);
  }
  62% {
    opacity: 1;
    transform: translateY(2px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes marker-landing-ring {
  0% {
    opacity: 0.48;
    transform: scale(0.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes marker-run-body {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  100% {
    transform: translateY(-4px) rotate(6deg);
  }
}

@keyframes marker-run-left-hand {
  0% {
    transform: translate(-1px, 1px) rotate(-18deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(16deg);
  }
}

@keyframes marker-run-right-hand {
  0% {
    transform: translate(1px, 1px) rotate(18deg);
  }
  100% {
    transform: translate(-1px, -2px) rotate(-14deg);
  }
}

@keyframes marker-pending-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.5);
  }
  70% {
    opacity: 0.08;
    transform: scale(1.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.marker-search {
  color: inherit;
}

.marker-agreed {
  color: inherit;
}

.marker-unavailable {
  color: inherit;
}

.person-marker {
  color: #ffffff;
}

:root[data-theme="light"] .person-marker {
  color: #111417;
}

.person-marker.marker-own {
  color: #d6262c;
}

:root[data-theme="light"] .person-marker.marker-own {
  color: #d6262c;
}

.person-marker.marker-agreed {
  color: #808992;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.person-marker.marker-own.marker-agreed {
  color: #a8484d;
}

.person-marker.marker-agreed .person-marker__figure {
  opacity: 0.78;
  transform: scale(0.72);
}

:root[data-theme="light"] .person-marker.marker-agreed {
  color: #7c858e;
}

:root[data-theme="light"] .person-marker.marker-own.marker-agreed {
  color: #a8484d;
}

.delivery-marker {
  position: relative;
  width: 108px;
  height: 42px;
  display: block;
  overflow: visible;
}

.delivery-marker__pin {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50% 50% 50% 0;
  background: #d6262c;
  transform: rotate(-45deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
  transition:
    width 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    height 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    margin-left 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    border-radius 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    transform 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    box-shadow 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    background 220ms ease;
}

.delivery-marker__body {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  min-width: 104px;
  max-width: 104px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(17, 20, 23, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #111417;
  padding: 7px 9px;
  box-shadow: var(--shadow);
  text-align: center;
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(0) scale(1);
  will-change: opacity, transform;
  transition:
    min-width 220ms ease,
    max-width 220ms ease,
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    padding 220ms ease;
}

.delivery-marker__product,
.delivery-marker__separator,
.delivery-marker__interval {
  display: inline-flex;
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 700;
  transition:
    opacity 180ms ease,
    max-width 180ms ease,
    transform 260ms cubic-bezier(0.22, 0.84, 0.24, 1);
}

.delivery-marker__product {
  max-width: 54px;
}

.delivery-marker__separator,
.delivery-marker__interval {
  transform: translateX(2px);
}

.delivery-marker.marker-intro .delivery-marker__body {
  animation: marker-pop-in 720ms cubic-bezier(0.2, 1.45, 0.32, 1) both;
}

.delivery-marker.marker-intro::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 22px;
  height: 9px;
  margin-left: -11px;
  border: 2px solid #d6262c;
  border-radius: 999px;
  opacity: 0;
  animation: marker-landing-ring 720ms ease-out both;
}

.delivery-marker.delivery-marker-own .delivery-marker__body {
  border-color: rgba(214, 38, 44, 0.28);
}

.delivery-marker.delivery-marker-placement {
  cursor: grab;
}

.delivery-marker.delivery-marker-placement .delivery-marker__pin {
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.24),
    0 0 0 6px rgba(214, 38, 44, 0.18);
}

.delivery-marker.delivery-marker-placement .delivery-marker__body {
  border-color: rgba(214, 38, 44, 0.62);
  outline: 2px dashed rgba(214, 38, 44, 0.34);
  outline-offset: 3px;
}

.delivery-marker.delivery-marker-reserved .delivery-marker__pin {
  background: #8c97a3;
}

.delivery-marker.delivery-marker-reserved .delivery-marker__body {
  background: rgba(228, 232, 236, 0.96);
  color: #54606c;
}

.delivery-marker--mode-transition .delivery-marker__body,
.delivery-marker--mode-transition .delivery-marker__pin,
.delivery-marker--mode-transition .delivery-marker__product,
.delivery-marker--mode-transition .delivery-marker__separator,
.delivery-marker--mode-transition .delivery-marker__interval {
  transition:
    min-width 220ms ease,
    max-width 220ms ease,
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 0.84, 0.24, 1),
    padding 220ms ease,
    left 220ms ease,
    width 220ms ease,
    height 220ms ease,
    border-radius 220ms ease;
}

.delivery-marker--product {
  width: 108px;
  height: 42px;
}

.delivery-marker--product .delivery-marker__pin {
  width: 12px;
  height: 12px;
  margin-left: -6px;
}

.delivery-marker--product .delivery-marker__body {
  min-width: 72px;
  max-width: 72px;
  padding: 6px 8px;
  transform: translateX(-50%) translateY(0) scale(0.92);
}

.delivery-marker--product .delivery-marker__product {
  transform: translateX(0);
}

.delivery-marker--product .delivery-marker__separator,
.delivery-marker--product .delivery-marker__interval {
  max-width: 0;
  opacity: 0;
  transform: translateX(-12px) scale(0.72);
}

.delivery-marker--dot {
  width: 108px;
  height: 42px;
}

.delivery-marker--dot .delivery-marker__pin {
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.delivery-marker--dot .delivery-marker__body {
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.18);
  pointer-events: none;
}

.delivery-marker--dot .delivery-marker__product {
  transform: translateX(0) scale(0.84);
}

.delivery-marker--full .delivery-marker__product {
  transform: translateX(-2px);
}

.delivery-marker--full .delivery-marker__separator,
.delivery-marker--full .delivery-marker__interval {
  max-width: 46px;
  opacity: 1;
  transform: translateX(2px);
}

.delivery-marker--dot.marker-intro::after {
  bottom: -3px;
  margin-left: -11px;
}

@media (max-width: 520px) {
  .address-item__row {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 132px) auto;
  }

  .address-item__row--single {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 132px);
  }
}

.proposal-link-base {
  stroke: #f59e0b;
  stroke-width: 1px;
  stroke-linecap: round;
  opacity: 0.24;
}

.proposal-link-shot {
  stroke: #f59e0b;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  stroke-dashoffset: 0;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.32));
  animation: proposal-link-shot 1s linear infinite;
}

@keyframes proposal-link-shot {
  0% {
    opacity: 0;
    stroke-dasharray: 0 100;
    stroke-dashoffset: 0;
  }
  8% {
    opacity: 0.95;
    stroke-dasharray: 10 90;
    stroke-dashoffset: 0;
  }
  56% {
    opacity: 0.9;
    stroke-dasharray: 100 0;
    stroke-dashoffset: 0;
  }
  78% {
    opacity: 0.82;
    stroke-dasharray: 100 0;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dasharray: 0 100;
    stroke-dashoffset: -100;
  }
}

.cluster-marker {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(17, 20, 23, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111417;
  box-shadow: var(--shadow);
  font-weight: 900;
  overflow: hidden;
}

:root:not([data-theme="light"]) .cluster-marker {
  border-color: rgba(255, 255, 255, 0.2);
}

.cluster-marker__count {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  color: inherit;
}

.leaflet-marker-icon {
  background: transparent;
  border: 0;
}

.empty-state {
  margin-top: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 16px;
  text-align: center;
}

@media (min-width: 560px) {
  .sheet {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(82dvh, 720px);
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
  }

  .sheet.is-open {
    transform: translateY(0);
  }

  .sheet-grip {
    display: block;
  }

  .sheet-content {
    max-height: calc(min(82dvh, 720px) - 14px);
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .header-controls {
    min-width: 118px;
    grid-template-columns: minmax(68px, auto) 38px;
    gap: 6px;
  }

  .theme-toggle {
    width: 38px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 12px;
  }

  .header-menu-button {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    flex-basis: 34px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .dock-button {
    font-size: 12px;
    padding-inline: 2px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-icon {
    transition: none;
    animation: none;
  }
}
