:root {
  --bg: #070707;
  --text: #151515;
  --hint: #6d6a64;
  --surface: #ffffff;
  --button: #ffbd17;
  --button-hover: #ffad0a;
  --button-text: #111111;
  --soft-yellow: #fff7d9;
  --line: #e7e5df;
  --focus: #f28a00;
  --danger: #d9342b;
  --keyboard-height: 0px;
  --keyboard-space: 300px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.map-picker-open {
  overscroll-behavior: none;
}

body.map-picker-open .panel {
  padding-bottom: calc(220px + env(safe-area-inset-bottom));
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: 100%;
  max-width: 620px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 14px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.topbar {
  min-height: 58px;
  padding: 2px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar > div,
.panel > *,
.stack {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--focus);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.topbar h1 {
  margin: 3px 0 0;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2,
p {
  margin: 0;
}

h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.user-pill {
  max-width: 42%;
  min-height: 34px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 23, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.user-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 189, 23, 0.18);
  font-size: 10px;
  line-height: 1;
}

#userName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-pill-arrow {
  flex: 0 0 auto;
  color: #ffbd17;
  font-size: 17px;
  line-height: 1;
}

.panel {
  min-height: calc(100vh - 86px - env(safe-area-inset-top));
  align-self: stretch;
  padding: 20px 18px calc(96px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  animation: panel-in 180ms ease-out;
}

body.keyboard-open .panel::after {
  width: 1px;
  min-height: var(--keyboard-space);
  flex: 0 0 var(--keyboard-space);
  content: "";
}

body.keyboard-open .panel {
  min-height: calc(100vh + var(--keyboard-space));
}

body.keyboard-open .action-bar {
  bottom: var(--keyboard-height);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-loading {
  min-height: min(62vh, 520px);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.step-loading-visual {
  position: relative;
  width: 116px;
  height: 80px;
  overflow: hidden;
}

.step-loading-car {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 17px;
  font-size: 45px;
  line-height: 1;
  transform: translateX(-50%);
  animation: loading-car 650ms ease-in-out infinite alternate;
}

.step-loading-road {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: #151515;
}

.step-loading-road::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 13px;
  width: 34px;
  height: 2px;
  background: var(--button);
  box-shadow: 56px 0 0 var(--button);
  animation: loading-road 500ms linear infinite;
}

.step-loading .stack {
  max-width: 360px;
}

.loading-dots {
  height: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--button);
  animation: loading-dot 700ms ease-in-out infinite alternate;
}

.loading-dots span:nth-child(2) { animation-delay: 140ms; }
.loading-dots span:nth-child(3) { animation-delay: 280ms; }

@keyframes loading-car {
  from { transform: translate(-50%, 1px); }
  to { transform: translate(-50%, -3px); }
}

@keyframes loading-road {
  from { transform: translateX(-38px); }
  to { transform: translateX(38px); }
}

@keyframes loading-dot {
  from { opacity: 0.35; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .step-loading-car,
  .step-loading-road::after,
  .loading-dots span {
    animation: none;
  }
}

.stack,
.actions,
.list,
.summary {
  display: grid;
  gap: 12px;
}

.welcome-copy {
  text-align: center;
}

.start-icon {
  width: 72px;
  height: 72px;
  margin: 32px auto 2px;
  display: grid;
  place-items: center;
  border: 1px solid #e7a500;
  border-radius: 8px;
  background: var(--button);
  font-size: 36px;
}

.muted {
  color: var(--hint);
  font-size: 15px;
  line-height: 1.5;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #9a9790;
  text-align: center;
}

.progress-step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 30px);
  height: 2px;
  background: #e5e3dd;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step span {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #dedbd4;
  border-radius: 50%;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.progress-step small {
  font-size: 11px;
  font-weight: 750;
}

.progress-step.active,
.progress-step.done {
  color: var(--text);
}

.progress-step.active span,
.progress-step.done span {
  border-color: var(--button);
  background: var(--button);
}

.progress-step.done::after {
  background: var(--button);
}

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

.button {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e7a500;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(242, 138, 0, 0.18);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

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

.button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(242, 138, 0, 0.16);
}

.button:disabled {
  border-color: #d3d0ca;
  background: #dedcd7;
  color: #8a8781;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.button:disabled:hover,
.button:disabled:active {
  background: #dedcd7;
  transform: none;
  box-shadow: none;
}

.action-bar {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 20px), 592px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.admin-editor-actions {
  position: static;
  width: 100%;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
  flex-shrink: 0;
}

body.keyboard-open .admin-editor-actions {
  bottom: auto;
}

.auxiliary-actions {
  gap: 9px;
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:active {
  border-color: #d8a30a;
  background: var(--soft-yellow);
}

.button.secondary.selected {
  border-color: #e7a500;
  background: var(--button);
  color: var(--button-text);
  box-shadow: 0 5px 14px rgba(242, 138, 0, 0.18);
}

.flex-toggle {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.flex-toggle:active {
  border-color: #d8a30a;
  background: var(--soft-yellow);
}

.flex-toggle-check {
  width: 22px;
  height: 22px;
  border: 2px solid #d8a30a;
  border-radius: 6px;
  color: var(--button-text);
  background: #fff8df;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.flex-toggle.is-selected {
  border-color: #e7a500;
  background: #fff8df;
}

.flex-toggle.is-selected .flex-toggle-check {
  background: var(--button);
}

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-option {
  width: 100%;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.payment-option:active {
  border-color: #d8a30a;
  background: var(--soft-yellow);
}

.payment-option.is-selected {
  border-color: #e7a500;
  background: #fff8df;
}

.payment-option-mark {
  width: 22px;
  height: 22px;
  border: 2px solid #d8a30a;
  border-radius: 6px;
  background: #fff8df;
  color: var(--button-text);
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.payment-option.is-selected .payment-option-mark {
  background: var(--button);
}

.payment-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

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

.payment-option-copy small {
  color: var(--hint);
  font-size: 12px;
  line-height: 1.35;
}

.admin-statistics {
  gap: 14px;
}

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

.stats-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  gap: 2px;
}

.stats-card small,
.stats-card span,
.stats-subtitle small,
.stats-day-row small,
.stats-footer {
  color: var(--hint);
  font-size: 12px;
  line-height: 1.3;
}

.stats-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.stats-subsection {
  display: grid;
  gap: 10px;
}

.stats-subtitle {
  display: grid;
  gap: 2px;
}

.stats-hour-chart {
  min-width: 0;
  height: 112px;
  padding: 10px 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  align-items: end;
  gap: 3px;
}

.stats-hour-bar {
  min-width: 0;
  height: 96px;
  display: grid;
  grid-template-rows: 1fr 14px;
  align-items: end;
  justify-items: center;
  gap: 3px;
}

.stats-hour-bar span {
  width: 100%;
  max-width: 10px;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--button), #f28a00);
}

.stats-hour-bar small {
  color: var(--hint);
  font-size: 9px;
  line-height: 1;
}

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

.stats-day-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px 38px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.stats-day-row > span,
.stats-day-row strong,
.stats-day-row small {
  white-space: nowrap;
}

.stats-day-meter {
  height: 8px;
  border-radius: 999px;
  background: #eeeae1;
  overflow: hidden;
}

.stats-day-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--button);
}

.stats-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.button.secondary:disabled,
.button.secondary:disabled:hover,
.button.secondary:disabled:active {
  border-color: #d3d0ca;
  background: #f0efec;
  color: #9a9790;
  cursor: not-allowed;
  transform: none;
}

.button.ghost {
  border-color: #ebc34b;
  background: var(--soft-yellow);
  color: #5e4300;
  box-shadow: none;
}

.select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  outline: none;
}

.select:focus {
  border-color: var(--button);
  box-shadow: 0 0 0 3px rgba(255, 189, 23, 0.22);
}

.button.danger-button,
.danger-button {
  border-color: #e0b8b8;
  background: #fff7f7;
  color: #8f1d1d;
  box-shadow: none;
}

.button.danger-button:active,
.danger-button:active {
  border-color: #c74b4b;
  background: #ffe8e8;
}

.address-option {
  padding: 14px;
  border: 1px solid #dedbd4;
  border-radius: 6px;
  background: #ffffff;
}

.promo-card {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 189, 23, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 189, 23, 0.18), rgba(255, 255, 255, 0.98));
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.promo-kicker {
  margin: 0 0 6px;
  color: #7a5600;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.promo-text {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.promo-condition {
  margin: 7px 0 0;
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
}

.saved-addresses {
  display: grid;
  gap: 10px;
}

.saved-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.saved-heading strong {
  font-size: 14px;
}

.saved-heading small {
  color: var(--hint);
  font-size: 11px;
}

.saved-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid #d9d6cf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: border-color 150ms ease, background 150ms ease, transform 100ms ease;
}

.saved-toggle:active {
  border-color: #d6a000;
  background: var(--soft-yellow);
  transform: scale(0.96);
}

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

.saved-chevron {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.saved-toggle[aria-expanded="true"] .saved-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.location-action {
  border-width: 2px;
  border-color: #d9a400;
}

.option-icon {
  font-size: 29px;
  line-height: 1;
}

.back-button {
  width: max-content;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #6b4a00;
  font-weight: 800;
  cursor: pointer;
}

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

.input-with-action {
  position: relative;
  display: block;
}

.input-with-action .input:not(.saved-point-input) {
  padding-right: 58px;
}

.input-save-button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #d9d6cf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
  transition: border-color 150ms ease, background 150ms ease, transform 100ms ease;
}

.input-save-button:active {
  border-color: #d6a000;
  background: var(--soft-yellow);
  transform: translateY(-50%) scale(0.96);
}

.input-save-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.input-save-button:disabled {
  border-color: #dedbd4;
  background: #f0efec;
  color: #aaa69e;
  cursor: not-allowed;
  filter: grayscale(1);
}

.address-primary {
  display: grid;
  gap: 10px;
}

.address-option-primary {
  border-color: #e6b127;
  background: #fffdf7;
  box-shadow: 0 3px 10px rgba(80, 59, 0, 0.06);
}

.option-heading strong {
  color: #3f3d39;
  font-size: 14px;
}

.field span {
  color: #4f4c47;
  font-size: 13px;
  font-weight: 750;
}

.input,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #d8d5ce;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  caret-color: #000000;
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #9a9790;
}

.input:focus,
.textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 189, 23, 0.25);
}

.address-suggestions {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.address-suggestions-label {
  flex: 0 0 auto;
  color: var(--hint);
  font-size: 11px;
  font-weight: 800;
}

.address-suggestions-row {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.address-suggestions-row::-webkit-scrollbar {
  display: none;
}

.address-suggestion {
  min-height: 30px;
  padding: 6px 9px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #e3e0da;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  cursor: pointer;
}

.address-suggestion:active {
  border-color: #d6a000;
  background: var(--soft-yellow);
}

.input.saved-point-input {
  border-color: #d8d5ce;
  background: #f2f1ee;
  color: #4f4c47;
  cursor: default;
  box-shadow: none;
}

.saved-point-lock {
  min-height: 44px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  border-left: 3px solid #a9a69f;
  border-radius: 4px;
  background: #f2f1ee;
  color: var(--hint);
  font-size: 12px;
  line-height: 1.4;
}

.map-alternative {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-alternative .option-heading {
  min-width: 0;
}

.address-option-secondary {
  padding: 12px 14px;
  border-color: #e3e0da;
  background: #f8f7f4;
}

.option-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b8881;
  font-size: 10px;
  font-weight: 850;
}

.option-divider::before,
.option-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.map-link-button {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d9d6cf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, transform 100ms ease;
}

.map-link-button:active {
  border-color: #d6a000;
  background: var(--soft-yellow);
  transform: scale(0.96);
}

.map-link-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.map-button-icon {
  font-size: 17px;
  line-height: 1;
}

.map-link-button:disabled {
  background: #efeeeb;
  color: var(--hint);
  cursor: wait;
}

.saved-empty {
  min-height: 76px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px dashed #d8d5ce;
  border-radius: 6px;
  background: #f8f7f4;
  color: var(--text);
}

.saved-empty strong {
  font-size: 13px;
}

.saved-empty small {
  color: var(--hint);
  font-size: 12px;
  line-height: 1.4;
}

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

.choice {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.choice:hover,
.choice:active {
  border-color: var(--button);
  background: #fffdf5;
}

.choice-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.choice strong {
  display: block;
}

.choice small {
  color: var(--hint);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.choice-arrow {
  color: #8a6710;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.choice-arrow-leading {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-yellow);
  font-size: 17px;
}

.profile-section {
  display: grid;
  gap: 10px;
}

.profile-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-title {
  margin: 0;
}

.loyal-badge {
  width: fit-content;
  margin-top: 5px;
  display: flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 189, 23, 0.48);
  border-radius: 999px;
  background: var(--soft-yellow);
  color: #5e4300;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.profile-header-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 189, 23, 0.35);
  border-radius: 50%;
  background: var(--soft-yellow);
  font-size: 24px;
}

.profile-subtitle {
  margin-top: 4px;
  color: var(--hint);
  font-size: 12px;
  font-weight: 800;
}

.profile-address-item {
  display: block;
  cursor: default;
}

.saved-item .profile-address-item {
  grid-template-columns: minmax(0, 1fr);
  padding-right: 58px;
}

.profile-address-item:active {
  border-color: var(--line);
  background: #ffffff;
}

.admin-promo-section {
  gap: 14px;
}

.admin-promo-toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 189, 23, 0.38);
  border-radius: 8px;
  background: var(--soft-yellow);
  color: #513900;
  font-weight: 850;
}

.admin-promo-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--button);
}

.field-hint {
  color: var(--hint);
  font-size: 12px;
  font-weight: 750;
}

.promo-preview {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 189, 23, 0.35);
  border-radius: 8px;
  background: #fffaf0;
}

.promo-preview small,
.promo-preview span {
  color: var(--hint);
  font-size: 12px;
  font-weight: 750;
}

.promo-preview strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.promo-preview.is-empty {
  border-color: var(--line);
  background: #f5f4f1;
}

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

.admin-list-group + .admin-list-group {
  margin-top: 6px;
}

.admin-list-group h3 {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--button);
  border-radius: 4px;
  background: #f3f2ef;
  color: #4f3a00;
  font-size: 13px;
  font-weight: 850;
}

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

.category-option {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.category-option.is-selected {
  border-color: #d6a000;
  background: var(--soft-yellow);
  color: #5e4300;
}

.saved-item {
  position: relative;
  display: block;
}

.saved-item .choice {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 54px;
  padding-right: 58px;
}

.delete-address {
  position: absolute;
  top: 50%;
  right: 7px;
  z-index: 2;
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
}

.delete-address:hover,
.delete-address:active {
  border-color: var(--danger);
  background: #fff2f1;
  transform: translateY(-50%) scale(0.97);
}

.summary {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary.compact {
  padding: 0;
}

.summary-row {
  min-width: 0;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  border-bottom: 1px solid #f0eee9;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--hint);
  font-size: 12px;
}

.summary-row strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.map-picker {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.map-frame {
  position: relative;
  min-width: 0;
  touch-action: none;
  overscroll-behavior: contain;
}

.pickup-map {
  width: 100%;
  height: min(46vh, 390px);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #cfcac0;
  border-radius: 8px;
  background: #e9e7e1;
  touch-action: none !important;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
}

.map-center-pin {
  position: absolute;
  z-index: 600;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  pointer-events: none;
  border: 3px solid #111111;
  border-radius: 50% 50% 50% 0;
  background: var(--button);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -100%) rotate(-45deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-center-pin span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #111111;
  transform: translate(-50%, -50%);
}

.map-center-shadow {
  position: absolute;
  z-index: 599;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 7px;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  filter: blur(2px);
  transform: translate(-50%, 3px);
  transition: width 160ms ease, height 160ms ease, background 160ms ease, filter 160ms ease, transform 160ms ease;
}

.map-frame.is-map-moving .map-center-pin {
  box-shadow: 0 9px 16px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, calc(-100% - 16px)) rotate(-45deg);
}

.map-frame.is-map-moving .map-center-shadow {
  width: 9px;
  height: 9px;
  background: rgba(17, 17, 17, 0.7);
  filter: none;
  transform: translate(-50%, -50%);
}

.client-map-marker {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.client-map-control {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f5;
}

.client-map-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.client-map-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--button);
}

.client-map-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.client-map-icon-option {
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.client-map-icon-option.is-selected {
  border-color: #d6a000;
  background: var(--soft-yellow);
  color: #5e4300;
}

.map-recenter-button {
  position: absolute;
  z-index: 700;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d4d0c7;
  border-radius: 50%;
  background: #ffffff;
  color: #1f1f1f;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.map-recenter-button:active {
  background: #fff7d9;
  transform: translateY(1px);
}

.map-recenter-button:focus-visible {
  outline: 3px solid rgba(255, 189, 23, 0.55);
  outline-offset: 2px;
}

.location-arrow {
  display: block;
  font-size: 22px;
  line-height: 1;
  transform: rotate(-45deg);
}

.map-recenter-button.is-loading .location-arrow {
  display: none;
}

.map-recenter-button.is-loading::after {
  width: 18px;
  height: 18px;
  border: 2px solid #d8d5ce;
  border-top-color: var(--focus);
  border-radius: 50%;
  content: "";
  animation: map-location-spin 700ms linear infinite;
}

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

.map-coordinates {
  min-height: 20px;
  color: var(--hint);
  font-size: 12px;
  text-align: center;
}

.route-map-status {
  min-height: 24px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6d6a64;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 150ms ease, opacity 150ms ease;
}

.route-map-status.is-found {
  color: #2f2a1f;
}

.route-map-status.is-neutral {
  color: #6d6a64;
}

.route-map-status.is-moving {
  color: #a09b91;
}

.map-location-note {
  margin: -2px 4px 0;
  color: #8d877b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.admin-map-preview .map-frame {
  min-height: 220px;
  touch-action: pan-y;
}

.admin-map-preview .pickup-map {
  height: min(34vh, 260px);
  min-height: 180px;
  pointer-events: none;
  touch-action: pan-y !important;
}

.admin-map-preview {
  padding-bottom: 0;
}

.location-selected {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-left: 3px solid var(--button);
  border-radius: 4px;
  background: #f3f2ef;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.map-save-note {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  border-left: 3px solid #b8b5ae;
  border-radius: 4px;
  background: #f3f2ef;
  color: #4f4c47;
  cursor: default;
}

.map-save-note-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.3;
}

.map-save-note-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.map-save-note strong {
  font-size: 14px;
}

.map-save-note small {
  color: var(--hint);
  font-size: 12px;
  line-height: 1.4;
}

.location-selected div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.location-selected strong,
.location-selected small {
  display: block;
}

.location-selected small {
  color: var(--hint);
  font-size: 11px;
  line-height: 1.35;
}

.clear-location {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #d7b64f;
  border-radius: 50%;
  background: #ffffff;
  color: #5e4300;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.leaflet-control-attribution {
  font-size: 10px;
}

@media (max-width: 420px) {
  .app {
    padding-right: 10px;
    padding-left: 10px;
  }

  .panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .user-pill {
    max-width: 38%;
  }
}

@media (min-width: 720px) {
  .app {
    padding-bottom: 18px;
  }

  .panel {
    min-height: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
  }
}
