/* ==========================================================================
   BeeOrder — restaurant joining experience
   Visual idea: "from your restaurant to your city". One turquoise delivery
   route runs from the scene, through the hexagon stations of the form, and
   ends in the dark closing band. Orange marks the action and the scene's
   warm base; turquoise marks the route, progress, and supporting details.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --color-primary: #ff7a32;
  --color-primary-hover: #ff8b4d;
  --color-primary-text: #dc5918;
  --color-primary-soft: #ffd6bf;
  --color-primary-wash: #fff3ea;
  --color-accent: #0e9da5;
  --color-accent-700: #0a6f75;
  --color-accent-soft: #e6f4f4;
  --color-accent-on-dark: #5fd0d6;
  --color-ink: #263640;
  --color-ink-deep: #1b262d;
  --color-text-muted: #5d636b;
  --color-text-subtle: #78808a;
  --color-text-on-dark: #bcc1c4;
  --color-white: #ffffff;
  --color-surface: #f6f8f9;
  --color-border: #e4e8ec;
  --color-border-strong: #d7dde3;
  --color-card-border: #eaedf0;
  --color-success: #137a52;
  --color-success-soft: #eaf7f1;
  --color-error: #b9382d;
  --color-error-soft: #fff1ef;
  --color-warning: #87520a;
  --color-warning-soft: #fff7e8;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-card: 0 30px 60px -32px rgba(27, 38, 45, 0.28), 0 2px 6px rgba(27, 38, 45, 0.04);
  --shadow-float: 0 26px 44px -22px rgba(115, 74, 55, 0.4), 0 2px 4px rgba(38, 54, 64, 0.05);
  --shadow-dialog: 0 28px 80px rgba(27, 38, 45, 0.26);
  --focus-ring: 0 0 0 4px rgba(14, 157, 165, 0.2);
  --motion-fast: 180ms;
  --motion-ui: 260ms;
  --motion-slow: 350ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --icon-arrow-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6'/%3E%3C/svg%3E");
  --icon-arrow-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235d636b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --hex-idle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 1.5 37.5 11.5v21L20 42.5 2.5 32.5v-21Z' fill='%23ffffff' stroke='%23d7dde3' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hex-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 1.5 37.5 11.5v21L20 42.5 2.5 32.5v-21Z' fill='%23ff7a32' stroke='%23ff7a32' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hex-done: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 1.5 37.5 11.5v21L20 42.5 2.5 32.5v-21Z' fill='%230a6f75' stroke='%230a6f75' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hex-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 1.5 37.5 11.5v21L20 42.5 2.5 32.5v-21Z' fill='none' stroke='%23ff7a32' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: "Rubik", system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
select,
summary,
label[for],
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
summary,
label[for] {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-accent-700);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--motion-fast) ease;
}

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

.shell {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* 3. Backdrop: glow, drifting washes, faint routes with a slow traveller, honeycomb corners */
.backdrop {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 1180px;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-layer {
  position: absolute;
  inset: 0;
}

.backdrop-glow {
  position: absolute;
  left: -340px;
  top: -160px;
  width: 1120px;
  height: 1120px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 214, 191, 0.92) 0, rgba(255, 214, 191, 0.5) 30%, rgba(255, 214, 191, 0) 66%);
}

.backdrop-drift {
  position: absolute;
  border-radius: 50%;
  animation: drift 30s ease-in-out infinite;
}

.backdrop-drift-teal {
  right: -140px;
  top: 500px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(14, 157, 165, 0.15) 0, rgba(14, 157, 165, 0) 62%);
}

.backdrop-drift-orange {
  right: -220px;
  top: 800px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 214, 191, 0.85) 0, rgba(255, 214, 191, 0) 64%);
  animation-duration: 36s;
  animation-delay: -12s;
}

.backdrop-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop-pin {
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-pulse 3.4s ease-in-out infinite;
}

.backdrop-pin-late {
  animation-delay: -1.7s;
}

.backdrop-traveler,
.backdrop-traveler-halo {
  offset-path: path("M-60 700C160 560 330 790 560 660S920 470 1160 600 1420 640 1520 520");
  offset-rotate: 0deg;
  animation: route-travel 44s linear infinite;
}

.backdrop-hive {
  position: absolute;
  left: -70px;
  top: 30px;
  width: 400px;
  height: 400px;
  opacity: 0.27;
}

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 3;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink-deep);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 36px;
  object-fit: contain;
  transition: transform var(--motion-ui) var(--ease-out);
}

.brand:hover .brand-logo {
  transform: translateY(-2px) rotate(-6deg);
}

.brand-word {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a {
  position: relative;
  padding: 12px 2px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--motion-fast) ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--motion-ui) var(--ease-out);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--color-ink-deep);
  outline: none;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* 5. Hero layout ----------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  grid-template-areas:
    "copy scene"
    "card scene";
  align-items: start;
  column-gap: clamp(32px, 4.5vw, 72px);
  padding-block: clamp(12px, 2vw, 28px) 88px;
}

.hero-copy {
  grid-area: copy;
  padding-block-start: 22px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 14px 8px 16px;
  border: 1px solid rgba(10, 111, 117, 0.18);
  border-radius: 999px;
  color: var(--color-accent-700);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  animation: rise 420ms var(--ease-out) both;
}

.hero-eyebrow svg {
  width: 36px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero-eyebrow svg circle:first-child {
  fill: var(--color-primary);
  stroke: none;
}

.hero-title {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 1.15;
  animation: rise 420ms 80ms var(--ease-out) both;
}

.hero-highlight {
  position: relative;
  display: block;
  width: fit-content;
  padding-block-end: 0.12em;
  color: var(--color-primary-text);
}

.hero-underline {
  position: absolute;
  inset-inline: -0.04em;
  bottom: -0.02em;
  width: calc(100% + 0.08em);
  height: 0.3em;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 6;
  stroke-linecap: round;
  overflow: visible;
}

.hero-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 620ms 460ms var(--ease-out) forwards;
}

.hero-description {
  max-width: 44ch;
  margin: 22px 0 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.8;
  animation: rise 420ms 160ms var(--ease-out) both;
}

/* 6. Journey card ---------------------------------------------------------- */
.journey-card {
  --card-pad: clamp(22px, 2.6vw, 34px);
  grid-area: card;
  min-width: 0;
  margin-block-start: 34px;
  padding: var(--card-pad);
  border: 1px solid rgba(38, 54, 64, 0.08);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  animation: rise 420ms 240ms var(--ease-out) both;
}

.step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-end: 18px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: 11px;
}

.save-state.saved {
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.save-state.saved::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.journey-progress {
  position: relative;
  margin-block-end: 26px;
  padding-block-end: 22px;
  border-block-end: 1px solid var(--color-border);
}

.hero[data-complete="true"] .journey-progress {
  display: none;
}

.stepper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.stepper li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.stepper li > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  color: var(--color-text-muted);
  background: var(--hex-idle) center / 100% 100% no-repeat;
  font-size: 13px;
  font-weight: 700;
  transition: color var(--motion-ui), transform var(--motion-ui) var(--ease-out);
}

.stepper li > span::before {
  content: "";
  position: absolute;
  inset: -7px;
  background: var(--hex-ring) center / 100% 100% no-repeat;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--motion-ui), transform var(--motion-ui) var(--ease-out);
}

.stepper li > span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  mask: var(--icon-check) center / contain no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--motion-ui), transform var(--motion-ui) var(--ease-out);
}

.stepper li b {
  font-weight: 500;
  line-height: 1.4;
}

.stepper li.active {
  color: var(--color-ink-deep);
}

.stepper li.active > span {
  color: var(--color-ink-deep);
  background-image: var(--hex-active);
  transform: translateY(-2px);
}

.stepper li.active > span::before {
  opacity: 1;
  transform: scale(1);
  animation: station-pulse 2.4s ease-out infinite;
}

.stepper li.active b {
  font-weight: 700;
}

.stepper li.done {
  color: var(--color-accent-700);
}

.stepper li.done > span {
  color: transparent;
  background-image: var(--hex-done);
}

.stepper li.done > span::after {
  opacity: 1;
  transform: scale(1);
}

.stepper li.has-warning {
  color: var(--color-warning-700, #b45309);
}

.stepper li.has-warning > span {
  color: var(--color-white);
  background-image: none;
  background-color: #f59e0b;
  clip-path: var(--hex);
}

.stepper li.has-warning > span::after {
  opacity: 0;
}

.progress-track {
  position: absolute;
  inset-inline: 10%;
  top: 21px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-border);
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 320ms var(--ease-out);
}

/* 7. Step content ---------------------------------------------------------- */
#stepViewport {
  position: relative;
}

.form-step {
  display: none;
}

.sub-step {
  display: none;
}

.sub-step.active {
  display: block;
}

.sub-title {
  margin: 0 0 14px;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 700;
}

.sub-title:focus {
  outline: none;
}

.form-step.active {
  display: block;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 24px;
}

.step-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 50px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.step-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-heading h2 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}

.step-heading h2:focus,
.success-screen h2:focus {
  outline: none;
}

.step-heading p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-heading > div {
  min-width: 0;
  flex: 1 1 auto;
}

/* Chip showing the chosen business type; sends the applicant back to step 1 */
.type-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--color-primary-soft);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-ink-deep);
  background: var(--color-primary-wash);
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.type-chip small {
  color: var(--color-accent-700);
  font-size: 11px;
  font-weight: 600;
}

.type-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}

.type-chip:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

/* Step 1: restaurant or store */
.type-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.type-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 16px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 20px;
  cursor: pointer;
  background: var(--color-white);
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}

.type-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -22px rgba(27, 38, 45, 0.35);
}

.type-card:has(input:focus-visible) {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 3px;
}

.type-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-wash);
  box-shadow: 0 0 0 4px rgba(255, 122, 50, 0.16);
}

.type-art {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 57px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.type-card:has(input:checked) .type-art {
  color: var(--color-ink-deep);
  background: var(--color-primary);
}

.type-art svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.type-copy strong {
  display: block;
  color: var(--color-ink-deep);
  font-size: 17px;
  font-weight: 800;
}

.type-copy small {
  display: block;
  margin-block-start: 3px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.type-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 26px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-border-strong);
  transition: background-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}

.type-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity var(--motion-fast) ease;
}

.type-card:has(input:checked) .type-check {
  background: var(--color-accent-700);
  transform: scale(1.08);
}

.type-card:has(input:checked) .type-check svg {
  opacity: 1;
}

/* Artwork that differs between a restaurant and a store */
.art-store {
  display: none;
}

body[data-type="store"] .art-store {
  display: block;
}

body[data-type="store"] .art-restaurant {
  display: none;
}

body[data-type="store"] .art-awning {
  fill: var(--color-accent);
}

.field-grid {
  display: grid;
  gap: 18px 16px;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-block-end: 8px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
}

.required {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: 10px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--color-ink-deep);
  background-color: var(--color-white);
  font-size: 15px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-subtle);
  opacity: 1;
}

select {
  padding-inline-end: 40px;
  appearance: none;
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: left 14px center;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: #b9c2ca;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

.field.is-filled input,
.field.is-filled select,
.field.is-filled textarea {
  border-color: #b3d7d8;
  background-color: #fcfdfd;
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: var(--color-text-muted);
  background-color: #f0f3f5;
  opacity: 1;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  background-color: var(--color-error-soft);
  box-shadow: 0 0 0 4px rgba(185, 56, 45, 0.1);
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  z-index: 1;
  inset-inline-start: 14px;
  inset-block-start: 50%;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--color-text-subtle);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-wrap input {
  padding-inline-start: 42px;
}

.hint,
.error {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

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

.error {
  color: var(--color-error);
  font-weight: 600;
}

.error:empty {
  display: none;
}

.submission-error {
  margin: var(--space-6) 0 0;
  padding: 14px 16px;
  border: 1px solid #e6b8b3;
  border-inline-start: 4px solid var(--color-error);
  border-radius: var(--radius-md);
  color: var(--color-error);
  background: var(--color-error-soft);
  font-size: 14px;
  font-weight: 600;
}

/* 8. Buttons --------------------------------------------------------------- */
.button {
  position: relative;
  display: inline-flex;
  min-width: 132px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible,
.text-button:focus-visible,
.copy-button:focus-visible,
.review-head button:focus-visible,
.remove-file:focus-visible,
.replace-file:focus-visible,
.dialog-close:focus-visible,
.upload-retry:focus-visible,
summary:focus-visible,
.brand:focus-visible,
.check-row:has(input:focus-visible) {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 3px;
}

.button.primary {
  color: var(--color-ink-deep);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 12px 26px -14px rgba(255, 122, 50, 0.8);
}

.button.primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 16px 30px -14px rgba(255, 122, 50, 0.9);
}

.button.primary::after,
#backButton::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  transition: transform var(--motion-fast) var(--ease-out);
}

.button.primary::after {
  mask: var(--icon-arrow-forward) center / contain no-repeat;
}

.button.primary:hover:not(:disabled)::after {
  transform: translateX(-4px);
}

#backButton::before {
  mask: var(--icon-arrow-back) center / contain no-repeat;
}

#backButton:hover:not(:disabled)::before {
  transform: translateX(4px);
}

.button.secondary {
  color: var(--color-white);
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
  box-shadow: 0 12px 26px -16px rgba(10, 111, 117, 0.9);
}

.button.secondary:hover:not(:disabled) {
  background: #085f64;
  border-color: #085f64;
}

.button.ghost {
  color: var(--color-ink);
  background: var(--color-white);
  border-color: var(--color-border-strong);
}

.button.ghost:hover:not(:disabled) {
  border-color: var(--color-ink);
  background: var(--color-surface);
}

.button.compact {
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.button:disabled {
  cursor: not-allowed;
  color: #8c9398;
  border-color: var(--color-border);
  background: #e9edf0;
  box-shadow: none;
  transform: none;
}

.button.is-loading::after {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  background: transparent;
  mask: none;
  animation: spin 700ms linear infinite;
  transform: none;
}

.area-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
}

.area-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--color-accent-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-note span {
  color: var(--color-text-subtle);
}

.text-button,
.copy-button,
.review-head button,
.remove-file,
.replace-file {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-accent-700);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.text-button:hover,
.copy-button:hover,
.review-head button:hover,
.replace-file:hover {
  background: rgba(14, 157, 165, 0.1);
}

.remove-file {
  color: var(--color-error);
}

.remove-file:hover {
  background: rgba(185, 56, 45, 0.08);
}

.text-button:disabled,
.review-head button:disabled {
  cursor: not-allowed;
  color: var(--color-text-subtle);
  background: transparent;
}

/* 9. Coverage result -------------------------------------------------------- */
.coverage-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: 18px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  animation: rise var(--motion-ui) var(--ease-out) both;
}

.coverage-result.covered {
  border-color: #b9dddd;
  background: var(--color-accent-soft);
}

.coverage-result.uncovered {
  display: block;
  border-color: var(--color-primary-soft);
  background: var(--color-primary-wash);
}

.coverage-result.failure {
  border-color: #ead7b5;
  background: var(--color-warning-soft);
}

/* Outside the served zones but in Syria: the application goes on. */
.coverage-result.outside {
  border-color: #ecd6a8;
  background: var(--color-warning-soft);
}

.coverage-result.outside .result-icon {
  color: var(--color-white);
  background: var(--color-warning);
}

/* Checking is neutral: nothing has gone wrong yet. */
.coverage-result.checking {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.result-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.result-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 42px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
}

.result-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.coverage-result.uncovered .result-icon {
  color: var(--color-ink-deep);
  background: var(--color-primary-soft);
}

.coverage-result.failure .result-icon {
  color: var(--color-warning);
  background: #f7dfb7;
}

.coverage-result.checking .result-icon {
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.result-head strong {
  display: block;
  margin-block-end: 2px;
  color: var(--color-ink-deep);
  font-size: 15px;
}

.result-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 10. Optional fields ------------------------------------------------------ */
.more-fields {
  margin-block-start: 22px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.more-fields summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 13px 16px;
  cursor: pointer;
  color: var(--color-ink);
  font-weight: 600;
  list-style: none;
}

.more-fields summary::-webkit-details-marker {
  display: none;
}

.more-fields summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 20px;
  font-weight: 400;
  transition: transform var(--motion-ui) var(--ease-out);
}

.more-fields[open] summary::after {
  content: "−";
}

.details-grid {
  padding: 18px 16px 20px;
  border-block-start: 1px solid var(--color-border);
}

/* The "complete your profile" panel: one card that invites the applicant to add,
   up front, everything an active restaurant can edit in the Partners dashboard. */
.profile-panel {
  position: relative;
  margin-block-start: 26px;
  padding: 20px 20px 18px;
  overflow: hidden;
  border: 1.5px solid #cfe3e2;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-accent-soft), #fbfdfd 72%);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset-inline-end: -50px;
  inset-block-start: -60px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 122, 50, 0.18), transparent 70%);
  pointer-events: none;
}

.profile-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.profile-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 50px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
}

.profile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.profile-copy h3 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.profile-copy p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.profile-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.profile-topics li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #cfe3e2;
  border-radius: 999px;
  color: var(--color-accent-700);
  background: var(--color-white);
  font-size: 11.5px;
  font-weight: 600;
}

.profile-topics li::before {
  content: "";
  width: 7px;
  height: 8px;
  clip-path: var(--hex);
  background: var(--color-primary);
}

.profile-panel .more-fields {
  position: relative;
  margin-block-start: 16px;
  border: 0;
  background: transparent;
}

.profile-panel .more-fields summary {
  min-height: 54px;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1.5px solid var(--color-accent-700);
  border-radius: var(--radius-md);
  color: var(--color-white);
  background: var(--color-accent-700);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 26px -16px rgba(10, 111, 117, 0.8);
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) ease;
}

.profile-panel .more-fields summary:hover {
  border-color: #0b7f86;
  background: #0b7f86;
  transform: translateY(-2px);
}

.profile-panel .more-fields summary::after {
  order: -1;
  width: 26px;
  height: 26px;
  color: var(--color-accent-700);
  background: var(--color-white);
  font-size: 19px;
}

.profile-panel .more-fields[open] summary {
  color: var(--color-accent-700);
  background: var(--color-white);
  box-shadow: none;
}

.profile-panel .more-fields[open] summary:hover {
  background: var(--color-accent-soft);
}

.profile-panel .more-fields[open] summary::after {
  color: var(--color-white);
  background: var(--color-accent-700);
}

.profile-count {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--color-ink-deep);
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.profile-panel .profile-body {
  margin-block-start: 14px;
  padding: 2px 18px 20px;
  border: 1.5px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.profile-group {
  min-width: 0;
  padding-block-start: 18px;
}

.profile-group + .profile-group {
  margin-block-start: 20px;
  border-block-start: 1px solid var(--color-border);
}

.profile-group > * + * {
  margin-block-start: 18px;
}

.profile-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-ink-deep);
  font-size: 14px;
  font-weight: 800;
}

.profile-group-title::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 11px;
  clip-path: var(--hex);
  background: var(--color-primary);
}

.profile-group-title + * {
  margin-block-start: 14px;
}

.profile-check {
  min-height: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
}

.profile-note {
  margin-block-start: 16px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

/* Chip groups: several choices at once (cuisines, closed days, services, perks). */
.choice-field {
  min-width: 0;
}

.choice-label {
  display: block;
  margin-block-end: 10px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip span::before {
  content: "";
  width: 0;
  height: 14px;
  background: currentColor;
  mask: var(--icon-check) center / contain no-repeat;
  transition: width var(--motion-fast) var(--ease-out);
}

.chip:hover {
  border-color: var(--color-accent);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.chip:has(input:checked) {
  border-color: var(--color-primary);
  color: var(--color-ink-deep);
  background: var(--color-primary-wash);
}

.chip:has(input:checked) span::before {
  width: 14px;
}

/* The files step in two parts: the list on its own, then the documents and images on a
   tinted panel of their own, so the two never read as neighbouring uploads. */
.files-part {
  margin-block-start: 18px;
}

.files-part-menu .menu-card {
  border-color: #b9dddd;
  border-block-start: 4px solid var(--color-accent);
}

.files-part-docs {
  margin-block-start: 32px;
  padding: 20px;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: 24px;
  background: var(--color-surface);
}

.files-part-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.files-part-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 42px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-ink);
}

.files-part-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.files-part-head h3 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.files-part-head p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.files-part-docs .upload-grid {
  margin-block-start: 16px;
}

@media (min-width: 640px) {
  .upload-grid-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-grid-docs > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .files-part-docs {
    padding: 14px;
    border-radius: 20px;
  }
}

.upload-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.upload-optional {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: 10px;
  font-weight: 500;
}

.upload-card[data-optional] .upload-number {
  color: var(--color-text-muted);
  background: var(--color-surface);
}

/* 11. Files ---------------------------------------------------------------- */
.template-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
}

.template-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
}

.template-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-panel h3,
.upload-heading h3,
.review-head h2 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.template-panel p,
.upload-heading p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.upload-grid {
  display: grid;
  gap: 16px;
  margin-block-start: 18px;
}

.upload-card {
  min-width: 0;
  padding: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-white);
  transition: border-color var(--motion-ui) ease, background-color var(--motion-ui) ease, box-shadow var(--motion-ui) ease;
}

.upload-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

.upload-card.is-dragover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.upload-card.is-error {
  border-color: var(--color-error);
  background: var(--color-error-soft);
}

.upload-card.is-success {
  border-color: #9dcfcb;
  background: #fbfdfd;
}

.upload-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.upload-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 33px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  font-size: 13px;
  font-weight: 800;
}

.upload-drop {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 16px;
  margin-block-start: 16px;
  padding: 16px 18px;
  border: 1.5px dashed #b9cccf;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--color-text-muted);
  background: #fbfdfd;
  transition: border-color var(--motion-ui) ease, background-color var(--motion-ui) ease, transform var(--motion-ui) var(--ease-out);
}

.upload-drop:hover,
.upload-card.is-dragover .upload-drop {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.upload-drop:hover .upload-icon {
  transform: translateY(-3px);
}

.upload-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 57px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  transition: transform var(--motion-ui) var(--ease-out);
}

.upload-card.is-dragover .upload-icon {
  background: var(--color-white);
}

.upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-drop > span:last-child {
  display: grid;
  gap: 3px;
}

.upload-drop strong {
  color: var(--color-ink-deep);
  font-size: 15px;
}

.upload-drop small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.file-preview {
  margin-block-start: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  animation: rise var(--motion-ui) var(--ease-out) both;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.file-meta {
  min-width: 0;
}

.file-meta strong,
.file-meta small {
  display: block;
}

.file-meta strong {
  overflow: hidden;
  color: var(--color-ink-deep);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta small {
  margin-block-start: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.file-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
}

.upload-progress {
  height: 5px;
  margin-block-start: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #cfe3e2;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 320ms var(--ease-out);
}

.upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 12px;
  color: var(--color-accent-700);
  font-size: 12px;
  font-weight: 600;
}

.upload-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-accent-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-check circle {
  fill: var(--color-white);
  stroke: var(--color-accent);
  animation: pop var(--motion-slow) var(--ease-out) both;
}

.upload-check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 320ms 120ms var(--ease-out) forwards;
}

.upload-retry {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding-inline: 8px;
  font-size: 12px;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-inline-start: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: var(--color-accent-soft);
  font-size: 12px;
  line-height: 1.7;
}

.privacy-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-accent-700);
  stroke-width: 1.8;
}

/* 11b. Menu list: an Excel file with its column guide, or items typed on the site */
.menu-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-block-start: 16px;
  padding: 5px;
  border-radius: 16px;
  background: var(--color-surface);
}

.menu-mode {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--color-text-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.menu-mode svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-mode:hover {
  color: var(--color-ink-deep);
}

.menu-mode[aria-selected="true"] {
  color: var(--color-accent-700);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(27, 38, 45, 0.08);
}

.menu-mode:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.menu-mode-badge {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-mode[aria-selected="true"] .menu-mode-badge {
  color: var(--color-primary-text);
  background: var(--color-primary-wash);
}

.menu-panel {
  margin-block-start: 16px;
}

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

.column-guide {
  padding: 14px 16px;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
}

.column-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.column-guide-head p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.column-guide-head strong {
  color: var(--color-ink-deep);
  font-size: 14px;
}

.column-guide-head .button {
  flex: 0 0 auto;
}

.guide-table {
  width: 100%;
  margin-block-start: 12px;
  overflow: hidden;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  font-size: 13px;
}

.guide-table th,
.guide-table td {
  padding: 8px 12px;
  border-block-end: 1px solid var(--color-border);
  text-align: start;
}

.guide-table th {
  color: var(--color-accent-700);
  background: #f3fafa;
  font-weight: 700;
}

.guide-table th b {
  display: inline-grid;
  width: 20px;
  height: 22px;
  margin-inline-end: 6px;
  place-items: center;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
  font-size: 11px;
  vertical-align: middle;
}

.guide-table tbody tr:last-child td {
  border-block-end: 0;
}

.guide-table td:last-child {
  font-variant-numeric: tabular-nums;
}

.guide-optional {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.guide-optional b {
  padding: 2px 9px;
  border: 1px solid #cfe3e2;
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-white);
  font-weight: 600;
}

.menu-card .upload-drop {
  margin-block-start: 14px;
}

/* Prices are in the new Syrian pound: said once, above everything else in the list card. */
.currency-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #ecd6a8;
  border-radius: var(--radius-md);
  color: var(--color-warning);
  background: var(--color-warning-soft);
  font-size: 13px;
  line-height: 1.7;
}

.currency-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-block-start: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.currency-note strong {
  color: var(--color-ink-deep);
}

/* The rough item count, asked before the list */
.menu-estimate {
  margin-block-start: 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fbfdfd;
}

.menu-estimate > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
  color: var(--color-ink-deep);
  font-size: 14px;
  font-weight: 700;
}

.estimate-box {
  position: relative;
  max-width: 220px;
}

.estimate-box input {
  min-height: 48px;
  padding-inline-start: 60px;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.estimate-box input::placeholder {
  color: var(--color-text-subtle);
  font-weight: 500;
}

.estimate-unit {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 50%;
  color: var(--color-text-subtle);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(-50%);
}

.menu-estimate .hint {
  margin: 8px 0 0;
}

.menu-estimate .error:empty {
  display: none;
}

.estimate-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-block-start: 10px;
  color: var(--color-primary-text);
  font-size: 13px;
  font-weight: 700;
}

.estimate-status[hidden] {
  display: none;
}

.estimate-status.is-done {
  color: var(--color-success);
}

.estimate-meter {
  flex: 0 0 140px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-primary-soft);
}

.estimate-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 320ms var(--ease-out);
}

.estimate-status.is-done .estimate-meter {
  background: var(--color-success-soft);
}

.estimate-status.is-done .estimate-meter span {
  background: var(--color-success);
}

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

/* Sections of a successful menu of the same cuisine, offered as chips */
.menu-suggest {
  margin-block-start: 4px;
  padding: 14px 16px;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
}

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

.menu-suggest-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.menu-suggest-head svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-accent-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-suggest-head span {
  display: grid;
  gap: 2px;
}

.menu-suggest-head strong {
  color: var(--color-ink-deep);
  font-size: 14px;
}

.menu-suggest-head small {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.menu-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 12px;
}

.suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #b9dddd;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-accent-700);
  background: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.suggest-chip svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.suggest-chip small {
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--color-text-subtle);
  background: var(--color-surface);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.suggest-chip:hover {
  border-color: var(--color-accent);
  background: #f3fafa;
}

.suggest-chip:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.suggest-more {
  border-style: dashed;
  color: var(--color-text-muted);
  background: transparent;
}

/* What the page read from the chosen file */
.import-summary {
  margin-block-start: 12px;
  padding: 14px 16px;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  animation: rise var(--motion-ui) var(--ease-out) both;
}

.import-summary[hidden] {
  display: none;
}

.import-summary.is-warning {
  border-color: #ecd6a8;
  background: var(--color-warning-soft);
}

.import-summary.is-muted {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.import-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.import-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 33px;
  place-items: center;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
}

.import-summary.is-warning .import-icon {
  background: var(--color-warning);
}

.import-summary.is-muted .import-icon {
  background: var(--color-text-subtle);
}

.import-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.import-icon .status-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-block-start-color: var(--color-white);
}

.import-head strong {
  display: block;
  color: var(--color-ink-deep);
  font-size: 14px;
}

.import-head p {
  margin: 2px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.import-table {
  width: 100%;
  margin-block-start: 10px;
  border-collapse: collapse;
  font-size: 13px;
}

.import-table td {
  padding: 6px 8px;
  border-block-start: 1px solid var(--color-border);
  vertical-align: top;
}

.import-table td:first-child {
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.import-table td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-block-start: 12px;
}

.import-more {
  color: var(--color-text-subtle);
  font-size: 12px;
}

/* Items added on the site: the summary line, the section navigation, sections with
   their rows, the one editor, and the empty state. */
.menu-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-block-start: 16px;
  padding-block-end: 8px;
  border-block-end: 1px solid var(--color-border);
  color: var(--color-ink-deep);
  font-size: 13px;
}

.menu-list-head[hidden] {
  display: none;
}

.menu-list-head strong {
  font-weight: 700;
}

.menu-issues {
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--color-error);
  background: var(--color-error-soft);
  font-size: 11px;
  font-weight: 700;
}

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

.menu-clear {
  margin-inline-start: auto;
  color: var(--color-error);
}

.menu-clear:hover {
  background: rgba(185, 56, 45, 0.08);
}

.menu-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-block-start: 12px;
}

.menu-list-column {
  min-width: 0;
}

.menu-list {
  display: grid;
  gap: 16px;
}

/* Section navigation: a scrolling strip above the sections, a sticky list beside them on wide screens */
.menu-nav {
  display: flex;
  gap: 6px;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-nav::-webkit-scrollbar {
  display: none;
}

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

.menu-nav-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-muted);
  background: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.menu-nav-item small {
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--color-text-subtle);
  background: var(--color-surface);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.menu-nav-item.is-flagged::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-error);
}

.menu-nav-item:hover {
  border-color: var(--color-accent);
  color: var(--color-ink-deep);
}

.menu-nav-item[aria-current="true"] {
  border-color: var(--color-accent-700);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.menu-nav-item[aria-current="true"] small {
  color: var(--color-accent-700);
  background: var(--color-white);
}

.menu-nav-item:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .menu-workspace.has-nav {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 20px;
  }

  .menu-workspace.has-nav .menu-nav {
    position: sticky;
    top: 24px;
    display: grid;
    align-content: start;
    gap: 4px;
    max-height: calc(100vh - 48px);
    padding: 4px 0;
    overflow: auto;
  }

  .menu-workspace.has-nav .menu-nav-item {
    width: 100%;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 12px;
    border-color: transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: start;
  }

  .menu-workspace.has-nav .menu-nav-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-workspace.has-nav .menu-nav-item:hover {
    background: var(--color-surface);
  }

  .menu-workspace.has-nav .menu-nav-item[aria-current="true"] {
    background: var(--color-accent-soft);
  }
}

/* A section: its name (editable in place), count, delete, rows, and "add" */
.menu-group {
  scroll-margin-block-start: 96px;
}

.menu-group:focus {
  outline: none;
}

.menu-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-block-end: 6px;
  border-block-end: 1px solid var(--color-border);
}

.menu-group-name {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  border-color: transparent;
  color: var(--color-accent-700);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.menu-group-name:hover:not(:disabled) {
  border-color: var(--color-border-strong);
  background: var(--color-white);
}

.menu-group-name:focus {
  background: var(--color-white);
}

.menu-group-count {
  flex: 0 0 auto;
  color: var(--color-text-subtle);
  font-size: 12px;
}

.menu-group-remove {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--color-text-subtle);
  font-size: 12px;
}

.menu-group-remove:hover,
.menu-group-remove:focus-visible {
  color: var(--color-error);
  background: rgba(185, 56, 45, 0.08);
}

.menu-rows {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.menu-group-foot {
  margin-block-start: 8px;
}

.menu-group-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-accent-700);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background-color var(--motion-fast) ease;
}

.menu-group-add:hover {
  background: var(--color-accent-soft);
}

.menu-group-add:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.menu-group-add svg,
.menu-new-section svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* A row: name (with size and English name), price, edit and delete */
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 6px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-white);
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.menu-row:hover {
  border-color: var(--color-border-strong);
  background: #fbfdfd;
}

.menu-row.is-new:not(.has-issue) {
  animation: row-settle 1.8s var(--ease-out) both;
}

.menu-row.has-issue {
  border-color: #e6b8b3;
  background: var(--color-error-soft);
}

.menu-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.menu-row-name {
  color: var(--color-ink-deep);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.menu-row-name.is-placeholder,
.menu-row-price .is-placeholder {
  color: var(--color-text-subtle);
  font-weight: 500;
}

.menu-row-size,
.menu-row-english {
  padding-inline-start: 8px;
  border-inline-start: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
}

.menu-row-description {
  flex: 1 1 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--color-text-subtle);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row-flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.menu-flag {
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--color-error);
  background: var(--color-error-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-row.has-issue .menu-flag {
  background: var(--color-white);
}

.menu-row-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-ink-deep);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-row-price small {
  color: var(--color-text-subtle);
  font-size: 11px;
  font-weight: 600;
}

.menu-row-actions {
  display: inline-flex;
  gap: 2px;
}

.menu-row-edit,
.menu-row-remove {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-text-subtle);
  background: transparent;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.menu-row-edit:hover,
.menu-row-edit:focus-visible {
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.menu-row-remove:hover,
.menu-row-remove:focus-visible {
  color: var(--color-error);
  background: rgba(185, 56, 45, 0.08);
}

.menu-row-edit:focus-visible,
.menu-row-remove:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.menu-row-edit svg,
.menu-row-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes row-settle {
  0% { border-color: var(--color-accent); background-color: var(--color-accent-soft); }
  60% { border-color: var(--color-accent); background-color: var(--color-accent-soft); }
  100% { border-color: var(--color-border); background-color: var(--color-white); }
}

/* The editor: name and price first, the optional details under a disclosure */
.menu-item-editor {
  margin: 8px 0 4px;
  padding: 14px 16px 12px;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-lg);
  background: #fbfdfd;
  box-shadow: var(--focus-ring);
  animation: rise var(--motion-ui) var(--ease-out) both;
}

.menu-item-editor[hidden] {
  display: none;
}

.menu-editor-title {
  margin: 0 0 10px;
  color: var(--color-accent-700);
  font-size: 13px;
  font-weight: 700;
}

.menu-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 10px;
}

.menu-editor-grid > * {
  min-width: 0;
}

.menu-editor-grid:has(> .menu-editor-category:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
}

.menu-editor-grid-more {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: 10px;
}

.menu-editor-grid-more:has(> .menu-editor-category:not([hidden])) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-editor-description {
  grid-column: 1 / -1;
}

.menu-item-editor label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-block-end: 6px;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
}

.menu-item-editor label small,
.menu-editor-more summary small {
  color: var(--color-text-subtle);
  font-size: 11px;
  font-weight: 500;
}

.menu-item-editor input,
.menu-item-editor textarea {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 15px;
}

.menu-item-editor textarea {
  min-height: 64px;
  resize: vertical;
}

.menu-editor-more {
  margin-block-start: 10px;
}

.menu-editor-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-accent-700);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  transition: background-color var(--motion-fast) ease;
}

.menu-editor-more summary::-webkit-details-marker {
  display: none;
}

.menu-editor-more summary::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: var(--icon-chevron) center / contain no-repeat;
  transition: transform var(--motion-fast) var(--ease-out);
}

.menu-editor-more[open] summary::after {
  transform: rotate(180deg);
}

.menu-editor-more summary:hover {
  background: var(--color-accent-soft);
}

.menu-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-block-start: 12px;
}

.menu-editor-actions .hint {
  flex: 1 1 220px;
  margin: 0;
}

.suggest-wrap,
.price-wrap,
.price-box {
  position: relative;
  min-width: 0;
}

.price-box input {
  padding-inline-start: 44px;
  text-align: right;
}

.price-unit {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-start: 50%;
  color: var(--color-text-subtle);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(-50%);
}

/* What the new-pound price was in the old currency, under the price field. */
.price-old {
  display: block;
  min-height: 18px;
  margin-block-start: 4px;
  color: var(--color-text-subtle);
  font-size: 11px;
  line-height: 1.5;
}

.menu-editor-grid {
  align-items: start;
}

.suggest-list {
  position: absolute;
  z-index: 6;
  inset-inline: 0;
  inset-block-start: calc(100% + 6px);
  max-height: 232px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 18px 40px -18px rgba(27, 38, 45, 0.35);
}

.suggest-list[hidden] {
  display: none;
}

.suggest-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-ink-deep);
  font-size: 14px;
}

.suggest-item:hover,
.suggest-item.is-active {
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.suggest-item mark {
  color: inherit;
  background: transparent;
  font-weight: 800;
}

.suggest-item small {
  flex: 0 0 auto;
  color: var(--color-text-subtle);
  font-size: 11px;
}

/* Starting another section, and the empty state with the first item */
.menu-new-section {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-block-start: 14px;
  padding: 10px 16px;
  border: 1.5px dashed #b9cccf;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--color-accent-700);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.menu-new-section:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.menu-new-section:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.menu-new-section[hidden] {
  display: none;
}

.menu-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  margin-block-start: 16px;
  padding: 16px;
  border: 1.5px dashed #b9cccf;
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.menu-empty-copy {
  display: grid;
  gap: 2px;
}

.menu-empty strong {
  color: var(--color-ink-deep);
  font-size: 14px;
}

@media (max-width: 720px) {
  .column-guide-head {
    flex-wrap: wrap;
  }

  .column-guide-head .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .guide-table th,
  .guide-table td {
    padding: 7px 8px;
    font-size: 12px;
  }

  /* One field per row: the price carries its currency label and the old-currency hint. */
  .menu-editor-grid,
  .menu-editor-grid:has(> .menu-editor-category:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-editor-category {
    grid-column: 1 / -1;
  }

  .menu-editor-grid-more,
  .menu-editor-grid-more:has(> .menu-editor-category:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-editor-actions .button {
    flex: 1 1 120px;
  }

  .menu-editor-actions .hint {
    flex-basis: 100%;
  }

  .menu-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 4px 8px 12px;
  }

  .menu-row-main {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-row-price {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    font-size: 14px;
  }

  .menu-row-actions {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .menu-group-name {
    flex-basis: 120px;
    font-size: 15px;
  }

  .menu-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .menu-empty .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .menu-mode {
    padding: 8px 6px;
    font-size: 13px;
  }

  .menu-mode svg {
    display: none;
  }
}

/* 12. Review & consents ---------------------------------------------------- */
.review-summary {
  display: grid;
  gap: 14px;
}

.review-group {
  padding: 18px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block-end: 12px;
  border-block-end: 1px solid var(--color-border);
}

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

.review-grid > div {
  min-width: 0;
}

.review-grid dt {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.review-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--color-ink-deep);
  font-size: 14px;
  font-weight: 600;
}

.consents {
  margin: 18px 0 0;
  padding: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.consents legend {
  padding-inline: var(--space-2);
  color: var(--color-ink-deep);
  font-weight: 700;
}

.check-row {
  display: flex;
  min-height: 56px;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--motion-fast) ease;
}

.check-row:hover {
  background: var(--color-white);
}

.check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--color-accent-700);
}

.check-row input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid var(--color-error);
  outline-offset: 3px;
}

.check-row span {
  min-width: 0;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  color: var(--color-ink-deep);
  font-size: 14px;
}

.check-row small {
  margin-block-start: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.review-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block-end: var(--space-4, 16px);
  padding: 14px 16px;
  border: 1px solid #f5d27a;
  border-inline-start: 4px solid #f59e0b;
  border-radius: 12px;
  background: #fff8e6;
}

.review-missing strong {
  color: #92400e;
  font-size: 14px;
}

.review-missing.is-complete {
  border-color: #9fd8d2;
  border-inline-start-color: var(--color-accent-700);
  background: #eef9f7;
}

.review-missing.is-complete strong {
  color: var(--color-accent-700);
}

.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.missing-list:empty {
  display: none;
}

.missing-chip {
  padding: 6px 12px;
  border: 1px solid #f5d27a;
  border-radius: 999px;
  color: #92400e;
  background: var(--color-white);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.missing-chip:hover,
.missing-chip:focus-visible {
  border-color: #f59e0b;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.success-message:empty,
#successStatusText:empty {
  display: none;
}

/* 13. Form actions --------------------------------------------------------- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-start: 28px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--color-border);
}

.action-stack {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 14. Delivery scene ------------------------------------------------------- */
.delivery-scene {
  grid-area: scene;
  position: relative;
  align-self: stretch;
  min-width: 0;
  animation: rise 520ms 200ms var(--ease-out) both;
}

.scene-sticky {
  position: sticky;
  top: 24px;
  padding-block-start: 8px;
}

.scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 620;
}

.scene-map,
.scene-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.scene-map-compact,
.scene-route-compact {
  display: none;
}

.route-base {
  stroke: var(--color-accent);
  stroke-opacity: 0.32;
  stroke-width: 2.5;
  stroke-dasharray: 6 9;
  stroke-linecap: round;
}

.route-progress {
  stroke: var(--color-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 84;
  transition: stroke-dashoffset 600ms var(--ease-out);
  animation: route-draw 1.4s var(--ease-out) both;
}

.delivery-scene[data-stage="1"] .route-progress { stroke-dashoffset: 92; }
.delivery-scene[data-stage="3"] .route-progress { stroke-dashoffset: 58; }
.delivery-scene[data-stage="4"] .route-progress { stroke-dashoffset: 30; }
.delivery-scene[data-stage="5"] .route-progress { stroke-dashoffset: 8; }
.delivery-scene[data-complete="true"] .route-progress { stroke-dashoffset: 0; }

.route-origin {
  fill: var(--color-white);
  stroke: var(--color-accent);
  stroke-width: 3;
}

.origin-pulse {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: origin-pulse 2.6s ease-out infinite;
}

.origin-pulse-late {
  animation-delay: 1.3s;
}

.delivery-scene:not([data-stage="1"]):not([data-stage="2"]) .origin-pulse {
  display: none;
}

.route-traveler,
.route-traveler-halo {
  offset-path: path("M455 278C452 350 410 335 365 372C330 400 315 455 360 500C412 545 482 566 518 552");
  offset-rotate: 0deg;
  animation: route-travel 9s linear infinite;
}

.route-traveler {
  fill: var(--color-accent-700);
  stroke: var(--color-white);
  stroke-width: 2.5;
}

.route-traveler-halo {
  fill: var(--color-accent);
  fill-opacity: 0.16;
}

.delivery-scene[data-complete="true"] .route-traveler,
.delivery-scene[data-complete="true"] .route-traveler-halo {
  animation: none;
  offset-distance: 100%;
  transition: offset-distance 900ms ease-in-out;
}

.scene-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--color-white);
  box-shadow: var(--shadow-float);
  transition: border-color var(--motion-slow) ease, box-shadow var(--motion-slow) ease;
}

.scene-restaurant {
  right: 5%;
  top: 5%;
  width: 44%;
  padding: 10px;
  border-radius: 22px;
  --tilt: 3deg;
  transform: rotate(var(--tilt));
}

.restaurant-art {
  overflow: hidden;
  border-radius: 15px 15px 6px 6px;
  background: var(--color-primary-wash);
}

.restaurant-art svg {
  width: 100%;
  height: auto;
}

.scene-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 6px 4px;
}

.scene-card-copy strong {
  display: block;
  color: var(--color-ink-deep);
  font-size: 18px;
  font-weight: 700;
}

.scene-card-copy small {
  display: block;
  margin-block-start: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.scene-card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 37px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.scene-card-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.scene-menu {
  left: 3%;
  top: 43%;
  width: 44%;
  padding: 16px;
  border-radius: 20px;
  --tilt: -4deg;
  transform: rotate(var(--tilt));
}

.menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--color-border);
}

.menu-heading strong {
  color: var(--color-ink-deep);
  font-size: 13px;
  font-weight: 700;
}

.menu-symbol {
  display: grid;
  place-items: center;
  width: 24px;
  height: 26px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.menu-symbol svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-dots {
  margin-inline-start: auto;
  color: #b3bcc1;
  font-size: 9px;
  letter-spacing: 2px;
}

.dish-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 11px;
}

.dish-art {
  flex: 0 0 48px;
  width: 48px;
  height: 52px;
  clip-path: var(--hex);
  background: var(--color-primary-wash);
}

.dish-art svg {
  width: 100%;
  height: 100%;
}

.dish-row strong {
  display: block;
  color: var(--color-ink-deep);
  font-size: 12px;
  font-weight: 600;
}

.dish-row small {
  display: block;
  margin-block-start: 3px;
  color: var(--color-text-muted);
  font-size: 10px;
}

.menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 12px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--color-border);
  color: var(--color-accent-700);
  font-size: 10px;
  font-weight: 600;
}

.menu-footer svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-accent-700);
  box-shadow: 0 12px 24px -12px rgba(10, 111, 117, 0.8);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
  transition: opacity var(--motion-ui) var(--ease-out), transform var(--motion-ui) var(--ease-out);
}

.scene-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.restaurant-badge {
  right: 14px;
  bottom: -16px;
}

.menu-badge {
  left: 14px;
  bottom: -16px;
}

.delivery-scene[data-stage="3"] .restaurant-badge,
.delivery-scene[data-stage="4"] .restaurant-badge,
.delivery-scene[data-stage="5"] .restaurant-badge,
.delivery-scene[data-stage="4"] .menu-badge,
.delivery-scene[data-stage="5"] .menu-badge {
  opacity: 1;
  transform: none;
}

.delivery-scene[data-stage="3"] .scene-restaurant,
.delivery-scene[data-stage="4"] .scene-restaurant,
.delivery-scene[data-stage="5"] .scene-restaurant,
.delivery-scene[data-stage="4"] .scene-menu,
.delivery-scene[data-stage="5"] .scene-menu {
  border-color: #a8d4cf;
  box-shadow: var(--shadow-float), 0 0 0 4px rgba(14, 157, 165, 0.12);
}

.scene-destination {
  position: absolute;
  left: 76.1%;
  top: 78.1%;
  width: 9.7%;
}

.destination-pin {
  animation: pin-bob 4s ease-in-out infinite;
  transform-origin: 50% 90%;
}

.destination-pin svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 8px rgba(10, 111, 117, 0.16));
}

.destination-label {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--color-accent-700);
  background: var(--color-white);
  box-shadow: 0 6px 16px -8px rgba(38, 54, 64, 0.3);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity var(--motion-ui) ease;
}

.delivered-badge {
  top: calc(100% + 2px);
  left: 50%;
  transform: translate(-50%, 8px) scale(0.92);
}

.delivery-scene[data-complete="true"] .destination-label {
  opacity: 0;
}

.delivery-scene[data-complete="true"] .delivered-badge {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 950ms;
}

.delivery-scene[data-complete="true"] .destination-pin {
  animation: pin-land 700ms 850ms var(--ease-out) both;
}

.scene-float {
  animation: scene-float 7s ease-in-out infinite;
}

.scene-menu.scene-float {
  animation-delay: -3.5s;
}

/* 15. Page sections ------------------------------------------------------- */
.section-heading {
  max-width: 640px;
}

.section-eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.3;
}

.section-heading > p:last-child {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* How do you join: four stations on one path */
.how-section {
  position: relative;
  z-index: 1;
  padding-block: 84px 72px;
  background: var(--color-white);
}

.how-track {
  position: relative;
  margin-block-start: 48px;
}

.how-path {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.how-path-wide {
  top: 0;
  left: 0;
  width: 100%;
  height: 62px;
}

.how-path-tall {
  display: none;
}

.how-path-base {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  vector-effect: non-scaling-stroke;
}

.how-path-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 140ms linear;
}

html.js .how-path-line {
  stroke-dashoffset: calc(100 - var(--how-progress, 0));
}

.how-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.how-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 62px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
  transition: background-color 320ms ease, color 320ms ease, transform 320ms var(--ease-out);
}

.how-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-stage h3 {
  margin: 18px 0 6px;
  color: var(--color-ink-deep);
  font-size: 17px;
  font-weight: 700;
  transition: color 320ms ease;
}

.how-stage p {
  max-width: 26ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

html.js .how-stage:not(.is-lit) .how-icon {
  color: var(--color-text-muted);
  background: var(--color-border);
}

html.js .how-stage:not(.is-lit) h3 {
  color: var(--color-text-muted);
}

html.js .how-stage.is-lit .how-icon {
  transform: translateY(-3px);
}

.how-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 44px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  font-size: 14px;
  font-weight: 600;
}

.how-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* Prepare your application: text on one side, the kit on the other */
.prepare-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 84px;
  background: linear-gradient(180deg, #fff3ea 0%, #fff8f3 55%, var(--color-surface) 100%);
}

.prepare-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.prepare-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.prepare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(38, 54, 64, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  transition: border-color var(--motion-ui) ease, box-shadow var(--motion-ui) ease;
}

.prepare-list li:hover {
  border-color: rgba(10, 111, 117, 0.28);
  box-shadow: 0 18px 32px -24px rgba(27, 38, 45, 0.3);
}

.prepare-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 50px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  transition: transform var(--motion-ui) var(--ease-out);
}

.prepare-list li:hover .prepare-icon {
  transform: translateY(-3px);
}

.prepare-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prepare-list h3 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: 16px;
  font-weight: 700;
}

.prepare-list p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.prepare-kit {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 520 / 440;
}

.kit-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.kit-traveler {
  offset-path: path("M392 120C380 190 330 220 330 270S230 330 150 352");
  offset-rotate: 0deg;
  animation: route-travel 8s linear infinite;
}

.kit-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: var(--shadow-float);
}

.kit-card strong {
  display: block;
  color: var(--color-ink-deep);
  font-size: 14px;
  font-weight: 700;
}

.kit-card small {
  display: block;
  margin-block-start: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.kit-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 44px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.kit-icon-doc {
  color: var(--color-white);
  background: var(--color-accent-700);
}

.kit-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kit-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 26px;
  margin-inline-start: auto;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
}

.kit-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kit-card-contact {
  right: 4%;
  top: 8%;
  width: 58%;
  --tilt: 3deg;
  transform: rotate(var(--tilt));
}

.kit-card-menu {
  left: 2%;
  top: 38%;
  width: 60%;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  --tilt: -3deg;
  transform: rotate(var(--tilt));
  animation-delay: -3s;
}

.kit-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 8px;
  border-block-end: 1px solid var(--color-border);
}

.kit-menu-head small {
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
  font-weight: 700;
}

.kit-menu-rows {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 8px 10px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 10px;
}

.kit-menu-rows b {
  height: 8px;
  border-radius: 4px;
  background: var(--color-primary-soft);
}

.kit-menu-rows b:nth-child(3n + 1) {
  background: var(--color-border);
}

.kit-card-doc {
  right: 10%;
  bottom: 6%;
  width: 54%;
  --tilt: -2deg;
  transform: rotate(var(--tilt));
  animation-delay: -5s;
}

.kit-pin {
  position: absolute;
  left: 24.7%;
  top: 68.4%;
  width: 8.5%;
  filter: drop-shadow(0 8px 8px rgba(10, 111, 117, 0.16));
  animation: pin-bob 4s ease-in-out infinite;
}

.kit-pin svg {
  width: 100%;
  height: auto;
}

/* FAQ */
.faq-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 84px;
  background: #f1f7f7;
}

.faq-decor {
  position: absolute;
  left: -40px;
  top: 36px;
  width: 360px;
  height: 220px;
  pointer-events: none;
}

.faq-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 48px;
}

.faq-intro {
  position: sticky;
  top: 32px;
}

.faq-list {
  border-block-start: 1px solid var(--color-border-strong);
}

.faq-item {
  border-block-end: 1px solid var(--color-border-strong);
}

.faq-heading {
  margin: 0;
  font-size: inherit;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: var(--color-ink-deep);
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: start;
  transition: color var(--motion-fast) ease;
}

.faq-question:hover {
  color: var(--color-accent-700);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 37px;
  clip-path: var(--hex);
  background: var(--color-accent-soft);
  transition: background-color var(--motion-ui) ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent-700);
  transform: translate(-50%, -50%);
  transition: transform var(--motion-ui) var(--ease-out), background-color var(--motion-ui) ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--color-accent-700);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--color-white);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 280ms var(--ease-out);
}

html.js .faq-item:not(.is-open) .faq-panel {
  grid-template-rows: 0fr;
}

.faq-panel-inner {
  min-height: 0;
  overflow: hidden;
  visibility: visible;
  transition: visibility 0s;
}

html.js .faq-item:not(.is-open) .faq-panel-inner {
  visibility: hidden;
  transition: visibility 0s 280ms;
}

.faq-panel p {
  margin: 0 0 20px;
  padding-inline-end: 50px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* Final call to action: the dark closing band */
.cta-band {
  position: relative;
  z-index: 1;
  margin-block-start: auto;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-ink-deep);
}

.band-hive {
  position: absolute;
  left: -90px;
  top: -70px;
  width: 460px;
  height: 460px;
  opacity: 0.09;
  pointer-events: none;
}

.band-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding-block: 72px 68px;
}

.band-eyebrow {
  margin: 0 0 12px;
  color: #ffb48a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-copy h2 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
}

.cta-copy p {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--color-text-on-dark);
  font-size: 15px;
  line-height: 1.8;
}

.cta-button {
  min-width: 250px;
  min-height: 60px;
  font-size: 16px;
}

/* Reveal-on-scroll and off-screen pausing (page.js) */
html.js [data-reveal],
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible,
html.js [data-reveal-group].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-paused],
[data-paused] * {
  animation-play-state: paused !important;
}

/* 16. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  color: var(--color-text-on-dark);
  background: var(--color-ink-deep);
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-route {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  max-height: 160px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 26px 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 800;
}

.footer-brand span {
  display: block;
  font-size: 12px;
}

/* 17. Success -------------------------------------------------------------- */
.success-screen {
  max-width: 560px;
  margin-inline: auto;
  padding-block: 12px 8px;
  text-align: center;
  animation: rise var(--motion-slow) var(--ease-out) both;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 100px;
  margin: 0 auto 22px;
  clip-path: var(--hex);
  color: var(--color-white);
  background: var(--color-accent-700);
  animation: pop 420ms var(--ease-out) both;
}

.success-mark svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 380ms 220ms var(--ease-out) forwards;
}

.kicker {
  margin: 0 0 6px;
  color: var(--color-accent-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.success-screen h2 {
  margin: 0;
  color: var(--color-ink-deep);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.25;
}

.success-message {
  margin: 10px 0 24px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.request-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  padding: 16px 20px;
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-primary-wash);
  text-align: start;
}

.request-number span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.request-number strong {
  direction: ltr;
  color: var(--color-ink-deep);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: start;
}

.request-number .copy-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--color-white);
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block: 14px 24px;
  padding: 18px;
  border: 1px solid #cfe3e2;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  text-align: start;
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-block-start: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(14, 157, 165, 0.16);
  animation: status-pulse 2.2s ease-out infinite;
}

.status-card small,
.status-card strong {
  display: block;
}

.status-card small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.status-card strong {
  color: var(--color-ink-deep);
  font-size: 16px;
}

.status-card p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 18. Dialogs -------------------------------------------------------------- */
dialog {
  width: min(92vw, 540px);
  max-height: min(84vh, 720px);
  overflow: auto;
  padding: clamp(24px, 4vw, 36px);
  border: 0;
  border-radius: 26px;
  color: var(--color-ink);
  background: var(--color-white);
  box-shadow: var(--shadow-dialog);
}

dialog[open] {
  animation: rise 240ms var(--ease-out);
}

dialog::backdrop {
  background: rgba(27, 38, 45, 0.6);
  backdrop-filter: blur(4px);
}

/* The corner close button only; the footer buttons of a dialog share the class for the close wiring. */
dialog > .dialog-close {
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline-end: var(--space-4);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: 25px;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

dialog > .dialog-close:hover {
  color: var(--color-ink-deep);
  background: var(--color-border);
}

.dialog-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 57px;
  margin-block-end: 16px;
  clip-path: var(--hex);
  color: var(--color-ink-deep);
  background: var(--color-primary);
}

.dialog-icon-accent {
  color: var(--color-white);
  background: var(--color-accent-700);
}

.dialog-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

dialog h2 {
  margin: 0;
  padding-inline-end: 44px;
  color: var(--color-ink-deep);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

dialog > p {
  margin: 10px 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.draft-code {
  padding: 14px 16px;
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary-wash);
}

.draft-code span,
.draft-code strong {
  display: block;
}

.draft-code span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.draft-code strong {
  margin-block-start: 2px;
  color: var(--color-ink-deep);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.dialog-confirm {
  width: 100%;
  margin-block-start: 20px;
}

.status-timeline {
  display: grid;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.status-timeline li {
  position: relative;
  display: flex;
  gap: 14px;
  min-height: 76px;
}

.status-timeline li > span {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 20px;
  height: 22px;
  margin-block-start: 2px;
  clip-path: var(--hex);
  background: var(--color-border-strong);
}

.status-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 26px 2px;
  inset-inline-start: 9px;
  width: 2px;
  background: var(--color-border);
}

.status-timeline li.done::after {
  background: var(--color-accent);
}

.status-timeline li.done > span,
.status-timeline li.active > span {
  background: var(--color-accent-700);
}

.status-timeline li.active > span::after {
  content: "";
  position: absolute;
  inset: 5px;
  clip-path: var(--hex);
  background: var(--color-white);
}

.status-timeline strong,
.status-timeline small {
  display: block;
}

.status-timeline strong {
  color: var(--color-ink-deep);
  font-size: 15px;
}

.status-timeline small {
  margin-block-start: 3px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Help inside the focused mode: the FAQ answers in a dialog */
.help-dialog {
  width: min(92vw, 640px);
}

.help-dialog > p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.help-list {
  display: grid;
  gap: 6px;
  margin-block-start: 16px;
}

.help-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.help-item[open] {
  border-color: #cfe3e2;
  background: #fbfdfd;
}

.help-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--color-ink-deep);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--color-accent-700);
  mask: var(--icon-chevron) center / contain no-repeat;
  transition: transform var(--motion-fast) var(--ease-out);
}

.help-item[open] summary::after {
  transform: rotate(180deg);
}

.help-item summary:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.help-item p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* 19. Toast ---------------------------------------------------------------- */
.toast {
  position: fixed;
  z-index: 1200;
  inset-inline: 0;
  inset-block-end: 24px;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin-inline: auto;
  padding: 12px 18px;
  border-inline-start: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-white);
  background: var(--color-ink-deep);
  box-shadow: 0 16px 40px rgba(27, 38, 45, 0.28);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* The form's action bar stays reachable under a warning. */
html[data-mode="focus"] .toast {
  inset-block-end: 96px;
}

/* A toast with an action ("تراجع") can be used and stays a little longer */
.toast.has-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  text-align: start;
}

.toast-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-accent-on-dark);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  transition: background-color var(--motion-fast) ease;
}

.toast-action:hover,
.toast-action:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.toast-action:focus-visible {
  outline: 2px solid var(--color-accent-on-dark);
  outline-offset: 2px;
}

/* 20. Motion --------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes station-pulse {
  0% { opacity: 0.9; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes route-draw {
  from { stroke-dashoffset: 100; }
}

@keyframes route-travel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@keyframes origin-pulse {
  0% { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(3.4); }
}

@keyframes scene-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-9px) rotate(var(--tilt)); }
}

@keyframes pin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pin-land {
  0% { transform: translateY(-14px) scale(1.08); }
  60% { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 4px rgba(14, 157, 165, 0.18); }
  70% { box-shadow: 0 0 0 10px rgba(14, 157, 165, 0); }
  100% { box-shadow: 0 0 0 10px rgba(14, 157, 165, 0); }
}

/* 21. Responsive ----------------------------------------------------------- */
@media (max-width: 1240px) {
  .hero {
    column-gap: 36px;
  }

  .hero-title {
    font-size: clamp(42px, 5vw, 66px);
  }

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

  .dish-art {
    flex-basis: 40px;
    width: 40px;
    height: 44px;
  }
}

@media (max-width: 1024px) {
  .backdrop {
    height: 900px;
  }

  .backdrop-glow {
    left: -420px;
    top: 120px;
    width: 900px;
    height: 900px;
  }

  .backdrop-hive {
    left: -110px;
    top: 90px;
    width: 280px;
    height: 280px;
    opacity: 0.22;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "card"
      "scene";
    padding-block-end: 64px;
  }

  .hero-copy {
    padding-block-start: 8px;
  }

  .hero-title {
    font-size: clamp(44px, 7.2vw, 64px);
  }

  .journey-card {
    margin-block-start: 28px;
  }

  .delivery-scene {
    width: 100%;
    max-width: 600px;
    margin: 36px auto 0;
  }

  .hero:not([data-stage="1"]) .delivery-scene {
    max-width: 460px;
    margin-block-start: 28px;
  }

  .scene-sticky {
    position: static;
    padding-block-start: 0;
  }

  .scene-stage {
    aspect-ratio: 640 / 360;
  }

  .scene-map-wide,
  .scene-route-wide {
    display: none;
  }

  .scene-map-compact,
  .scene-route-compact {
    display: block;
  }

  .route-traveler,
  .route-traveler-halo {
    offset-path: path("M470 212C466 262 420 250 380 280C350 302 360 322 402 330");
    animation-duration: 7s;
  }

  .scene-restaurant {
    right: 4%;
    top: 6%;
    width: 36%;
    padding: 8px;
    border-radius: 16px;
  }

  .restaurant-art {
    border-radius: 10px 10px 4px 4px;
  }

  .scene-card-copy {
    padding: 8px 4px 2px;
  }

  .scene-card-copy strong {
    font-size: 14px;
  }

  .scene-card-copy small {
    display: none;
  }

  .scene-card-icon {
    width: 26px;
    height: 28px;
  }

  .scene-card-icon svg {
    width: 13px;
    height: 13px;
  }

  .scene-menu {
    left: 3%;
    top: 12%;
    width: 40%;
    padding: 12px;
    border-radius: 16px;
  }

  .menu-heading {
    padding-block-end: 8px;
  }

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

  .menu-dots,
  .menu-footer,
  .dish-row small {
    display: none;
  }

  .dish-row {
    margin-block-start: 8px;
    gap: 8px;
  }

  .dish-row strong {
    font-size: 10px;
  }

  .dish-art {
    flex-basis: 32px;
    width: 32px;
    height: 35px;
  }

  .scene-destination {
    left: 58%;
    top: 71.6%;
  }

  .scene-badge {
    padding: 5px 9px;
    font-size: 9px;
  }

  .scene-badge svg {
    width: 11px;
    height: 11px;
  }

  .restaurant-badge {
    right: 8px;
    bottom: -12px;
  }

  .menu-badge {
    left: 8px;
    bottom: -12px;
  }

  .destination-label {
    padding: 4px 8px;
    font-size: 9px;
  }

}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }

  .prepare-list li {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .backdrop-hive {
    display: none;
  }

  .footer-route {
    opacity: 0.6;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 36px;
    height: 30px;
  }

  .brand-word {
    font-size: 22px;
  }

  .hero {
    padding-block: 8px 48px;
  }

  .hero-eyebrow {
    margin-block-end: 16px;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(42px, 11.5vw, 56px);
  }

  .hero-description {
    margin-block-start: 16px;
    font-size: 16px;
  }

  .journey-card {
    --card-pad: 20px;
    margin-block-start: 22px;
    padding: var(--card-pad);
    border-radius: 24px;
  }

  .step-topline {
    margin-block-end: 14px;
    font-size: 11px;
  }

  .journey-progress {
    margin-block-end: 22px;
    padding-block-end: 18px;
  }

  .stepper li {
    gap: 8px;
    font-size: 11px;
  }

  .stepper li > span {
    width: 34px;
    height: 38px;
    font-size: 12px;
  }

  .stepper li > span::after {
    width: 14px;
    height: 14px;
  }

  .progress-track {
    top: 18px;
  }

  .step-heading {
    gap: 12px;
    margin-block-end: 20px;
  }

  .step-icon {
    width: 40px;
    height: 44px;
  }

  .step-icon svg {
    width: 19px;
    height: 19px;
  }

  .step-heading h2 {
    font-size: 21px;
  }

  .step-heading p {
    font-size: 13px;
  }

  .field-grid {
    gap: 16px;
  }

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

  .type-choice {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .type-card {
    min-height: 84px;
    padding: 14px;
  }

  /* The icon keeps the title company on the first row however long the title is, and the
     type chip takes the row below, lined up under the title. */
  .step-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "chip chip";
    align-items: start;
  }

  .step-heading > .step-icon {
    grid-area: icon;
  }

  .step-heading > div {
    grid-area: title;
  }

  .type-chip {
    grid-area: chip;
    justify-self: start;
    margin-inline-start: 54px;
  }

  .field.full {
    grid-column: auto;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .coverage-result {
    display: block;
  }

  .coverage-result > .button {
    width: 100%;
    margin-block-start: 14px;
  }

  .template-panel {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }

  .template-panel .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .upload-card,
  .review-group,
  .consents {
    padding: 16px;
  }

  .profile-panel {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .profile-head {
    gap: 12px;
  }

  .profile-copy h3 {
    font-size: 16px;
  }

  .profile-panel .more-fields summary {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .profile-panel .profile-body {
    padding-inline: 14px;
  }

  .chip {
    min-height: 40px;
  }

  .upload-drop {
    min-height: 92px;
    padding: 14px;
  }

  .file-row {
    flex-wrap: wrap;
  }

  .form-actions {
    flex-wrap: wrap;
    margin-block-start: 24px;
    padding-block-start: 18px;
  }

  .action-stack {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .action-stack > .button {
    flex: 1 1 140px;
  }

  .form-actions:has(.text-button:not([hidden])) .action-stack > .text-button {
    order: 2;
    flex-basis: 100%;
    text-align: end;
  }

  .delivery-scene {
    margin-block-start: 28px;
  }

  .success-screen {
    padding-block: 8px 4px;
  }

  .request-number strong {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-block: 24px;
  }

  dialog {
    width: calc(100vw - 24px);
    padding: 24px 20px;
    border-radius: 22px;
  }

  dialog h2 {
    font-size: 21px;
  }
}

@media (max-width: 400px) {
  .shell {
    padding-inline: 16px;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .hero-title {
    font-size: 42px;
  }

  .journey-card {
    --card-pad: 16px;
    padding: 18px var(--card-pad);
    border-radius: 22px;
  }

  .stepper li {
    font-size: 10px;
  }

  .step-heading h2 {
    font-size: 20px;
  }

  .upload-drop {
    gap: 12px;
  }

  .upload-icon {
    width: 44px;
    height: 48px;
  }

  .how-section,
  .prepare-section,
  .faq-section {
    padding-block: 44px;
  }
}

/* 22. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .route-traveler,
  .route-traveler-halo {
    offset-distance: 40%;
  }

  .delivery-scene[data-complete="true"] .route-traveler,
  .delivery-scene[data-complete="true"] .route-traveler-halo {
    offset-distance: 100%;
  }

  .hero-underline path,
  .upload-check path,
  .success-mark path {
    stroke-dashoffset: 0;
  }

  .stepper li > span::before {
    display: none;
  }
}

/* 23. Sections: motion, responsive, reduced motion ------------------------- */
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-40px, 34px, 0); }
}

@keyframes pin-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.45; }
}

@media (min-width: 1024px) {
  .backdrop-layer[data-parallax] {
    will-change: transform;
  }
}

@media (max-width: 1024px) {
  .how-section,
  .prepare-section,
  .faq-section {
    padding-block: 64px;
  }

  .how-track {
    margin-block-start: 36px;
  }

  .how-path-wide {
    display: none;
  }

  .how-path-tall {
    display: block;
    inset-inline-start: 0;
    top: var(--how-path-top, 31px);
    width: 56px;
    height: var(--how-path-height, calc(100% - 62px));
  }

  .how-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .how-stage {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    text-align: start;
  }

  .how-stage h3 {
    margin: 10px 0 4px;
  }

  .how-stage p {
    max-width: 44ch;
  }

  .how-note {
    margin-block-start: 32px;
  }

  .prepare-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .prepare-kit {
    max-width: 480px;
  }

  .faq-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .faq-intro {
    position: static;
  }

  .cta-inner {
    padding-block: 60px;
  }
}

@media (max-width: 720px) {
  .backdrop-drift,
  .backdrop-traveler,
  .backdrop-traveler-halo {
    display: none;
  }

  .how-section,
  .prepare-section,
  .faq-section {
    padding-block: 52px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .section-heading > p:last-child {
    font-size: 15px;
  }

  .how-icon {
    width: 48px;
    height: 53px;
  }

  .how-icon svg {
    width: 21px;
    height: 21px;
  }

  .how-path-tall {
    top: var(--how-path-top, 26px);
    width: 48px;
    height: var(--how-path-height, calc(100% - 52px));
  }

  .how-stage {
    gap: 14px;
  }

  .how-stage h3 {
    margin-block-start: 6px;
    font-size: 16px;
  }

  .how-note {
    justify-content: flex-start;
    text-align: start;
    border-radius: 18px;
    line-height: 1.6;
  }

  .prepare-list li {
    padding: 16px;
  }

  .prepare-kit {
    max-width: 400px;
  }

  .kit-card {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .kit-card strong {
    font-size: 12px;
  }

  .kit-card small {
    font-size: 10px;
  }

  .kit-icon {
    width: 32px;
    height: 35px;
  }

  .kit-icon svg {
    width: 15px;
    height: 15px;
  }

  .kit-menu-rows {
    font-size: 9px;
  }

  .faq-question {
    min-height: 60px;
    padding: 16px 2px;
    font-size: 16px;
  }

  .faq-panel p {
    padding-inline-end: 0;
    font-size: 14px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-block: 52px 48px;
  }

  .cta-action,
  .cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal-group] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js .how-path-line {
    stroke-dashoffset: 0 !important;
  }

  html.js .how-stage:not(.is-lit) .how-icon {
    color: var(--color-white);
    background: var(--color-accent-700);
  }

  html.js .how-stage:not(.is-lit) h3 {
    color: var(--color-ink-deep);
  }

  .backdrop-traveler,
  .backdrop-traveler-halo,
  .kit-traveler {
    offset-distance: 35%;
  }

  .backdrop-layer[data-parallax] {
    transform: none !important;
  }
}

/* 24. Location step: current position and the confirmed location ------------------ */
.locate-options {
  display: grid;
  gap: 14px;
}

.locate-button {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px 18px;
  border: 1.5px solid var(--color-primary);
  border-radius: 20px;
  cursor: pointer;
  color: var(--color-ink-deep);
  background: var(--color-primary);
  text-align: start;
  box-shadow: 0 14px 28px -16px rgba(255, 122, 50, 0.8);
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.locate-button:hover:not(:disabled) {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.locate-button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.locate-button:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 3px;
}

.locate-button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

.locate-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 53px;
  clip-path: var(--hex);
  color: var(--color-ink-deep);
  background: rgba(255, 255, 255, 0.55);
}

.locate-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.locate-button.is-loading .locate-icon svg {
  animation: spin 1.4s linear infinite;
}

.locate-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.locate-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.locate-copy small {
  display: block;
  margin-block-start: 3px;
  color: rgba(27, 38, 45, 0.78);
  font-size: 12px;
  line-height: 1.6;
}

.locate-arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: var(--icon-arrow-forward) center / contain no-repeat;
  transition: transform var(--motion-fast) var(--ease-out);
}

.locate-button:hover:not(:disabled) .locate-arrow {
  transform: translateX(-4px);
}

.locate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-subtle);
  font-size: 12px;
  font-weight: 600;
}

.locate-divider::before,
.locate-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-border);
}

.location-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-block-start: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 54, 64, 0.1);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.location-pin {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 40px;
  clip-path: var(--hex);
  color: var(--color-accent-700);
  background: var(--color-accent-soft);
}

.location-pin svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.location-meta {
  min-width: 0;
  flex: 1 1 160px;
}

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

.location-meta strong {
  color: var(--color-ink-deep);
  font-size: 15px;
}

.location-meta small {
  margin-block-start: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  /* The pair is LTR for bidi isolation but sits under a right-aligned Arabic name. */
  text-align: right;
}

.location-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.location-actions .text-button {
  min-height: 44px;
  text-decoration: none;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 20px;
}

.dialog-actions .button {
  flex: 1 1 160px;
}

@media (max-width: 720px) {
  .locate-button {
    min-height: 76px;
    padding: 14px;
    gap: 12px;
  }

  .locate-icon {
    width: 42px;
    height: 46px;
  }

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

  .location-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.location-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-warning);
  background: var(--color-warning-soft);
  font-size: 12px;
  line-height: 1.7;
}

/* 25. Focused registration mode ------------------------------------------- */
/* From step 2 (html[data-mode="focus"], set by public/js/app.js and, for a saved
   application, by the head script before the first paint) the page keeps a compact
   header with the brand, the stations, the save state and two links, and the current
   step's card, sized for its content. The intro, the backdrop, the scene and the
   sections below the form are not rendered at all, so nothing is left behind. */
.focus-bar {
  display: none;
}

html[data-mode="focus"] .backdrop,
html[data-mode="focus"] .hero-copy,
html[data-mode="focus"] .delivery-scene,
html[data-mode="focus"] .header-nav,
html[data-mode="focus"] .how-section,
html[data-mode="focus"] .prepare-section,
html[data-mode="focus"] .faq-section,
html[data-mode="focus"] .cta-band,
html[data-mode="focus"] .site-footer {
  display: none;
}

html[data-mode="focus"] {
  scroll-padding-block: 100px 112px;
}

html[data-mode="focus"] .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-block-end: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

html[data-mode="focus"] .header-inner {
  min-height: 72px;
  gap: 20px;
}

html[data-mode="focus"] .brand-logo {
  width: 38px;
  height: 31px;
}

html[data-mode="focus"] .brand-word {
  font-size: 22px;
}

html[data-mode="focus"] .focus-bar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.focus-progress {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  margin-inline: auto;
}

.focus-progress .journey-progress {
  margin: 0;
  padding: 0;
  border: 0;
}

.focus-progress .stepper li {
  gap: 6px;
  font-size: 11px;
}

.focus-progress .stepper li > span {
  width: 32px;
  height: 36px;
  font-size: 12px;
}

.focus-progress .stepper li > span::before {
  inset: -6px;
}

.focus-progress .stepper li > span::after {
  width: 13px;
  height: 13px;
}

.focus-progress .progress-track {
  top: 17px;
}

.focus-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.focus-state .step-topline {
  margin: 0;
  gap: 10px;
}

.focus-state .step-topline .text-button {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

.focus-state #stepCounter {
  display: none;
}

.focus-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.focus-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.focus-link:hover {
  color: var(--color-ink-deep);
  background: var(--color-surface);
}

.focus-link:focus-visible {
  color: var(--color-ink-deep);
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

#focusExit::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-inline-end: 6px;
  background: currentColor;
  mask: var(--icon-arrow-back) center / contain no-repeat;
}

/* The card takes the width its step needs: a calm column for the type and the
   location, a wider one for the details and the review, most of the page for the list. */
html[data-mode="focus"] .hero {
  display: block;
  max-width: var(--focus-width, 760px);
  margin-inline: auto;
  padding-block: clamp(20px, 3vw, 36px) 96px;
}

html[data-mode="focus"] .hero[data-stage="3"] {
  --focus-width: 1040px;
}

html[data-mode="focus"] .hero[data-stage="4"] {
  --focus-width: 1320px;
}

html[data-mode="focus"] .hero[data-stage="5"] {
  --focus-width: 1060px;
}

html[data-mode="focus"] .journey-card {
  margin-block-start: 0;
  animation: none;
}

html[data-mode="focus"] .step-heading {
  margin-block-end: 20px;
}

html[data-mode="focus"] .step-heading p {
  max-width: 72ch;
}

@media (min-width: 1024px) {
  html[data-mode="focus"] .upload-grid-docs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-mode="focus"] .upload-grid-docs > :first-child {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  html[data-mode="focus"] .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-mode="focus"] .menu-workspace.has-nav .menu-nav {
    top: 88px;
    max-height: calc(100vh - 112px);
  }
}

/* Tablets and phones: the header stops being sticky and lays out in rows (brand and
   links, then the step counter with the save state, then the stations); the Back and
   Continue buttons stick to the bottom instead, and step aside while the keyboard is up. */
@media (max-width: 1023px) {
  html[data-mode="focus"] {
    scroll-padding-block: 16px 112px;
  }

  html[data-mode="focus"] .site-header {
    position: static;
    background: var(--color-white);
    backdrop-filter: none;
  }

  html[data-mode="focus"] .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 6px 12px;
    row-gap: 0;
  }

  html[data-mode="focus"] .focus-bar,
  html[data-mode="focus"] .focus-tools {
    display: contents;
  }

  html[data-mode="focus"] .focus-links {
    order: 2;
    margin-inline-start: auto;
    min-height: 56px;
  }

  html[data-mode="focus"] .focus-state {
    order: 3;
    flex-basis: 100%;
  }

  html[data-mode="focus"] .focus-state .step-topline {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 10px;
    margin-block-end: 10px;
  }

  html[data-mode="focus"] .focus-state .step-topline .save-state {
    margin-inline-start: auto;
  }

  /* One row: Back and Continue only ("start over" lives in the header rows above). */
  html[data-mode="focus"] .form-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  html[data-mode="focus"] #backButton {
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 16px;
  }

  html[data-mode="focus"] .action-stack {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  html[data-mode="focus"] .action-stack > .button {
    flex: 1 1 auto;
    min-width: 0;
  }

  html[data-mode="focus"] .focus-state #stepCounter {
    display: inline;
    color: var(--color-ink-deep);
    font-weight: 700;
  }

  html[data-mode="focus"] .focus-progress {
    order: 4;
    flex-basis: 100%;
    max-width: none;
  }

  html[data-mode="focus"] .hero {
    padding-block: 16px 40px;
  }

  html[data-mode="focus"] .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-block-start: 20px;
    margin-inline: calc(var(--card-pad) * -1);
    padding: 12px var(--card-pad) calc(12px + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
  }

  html[data-mode="focus"][data-keyboard] .form-actions {
    position: static;
  }
}

@media (max-width: 400px) {
  html[data-mode="focus"] .brand-word {
    font-size: 20px;
  }

  html[data-mode="focus"] .focus-link {
    padding-inline: 8px;
    font-size: 12px;
  }

  /* The step counter, the save state and "start over" keep one row on the narrowest phones. */
  html[data-mode="focus"] .focus-state .step-topline {
    gap: 4px 8px;
  }

  html[data-mode="focus"] .save-state {
    font-size: 10px;
  }
}

/* 26. Phones: fitting the steps -------------------------------------------- */
/* On a 375 px screen four nested boxes (page, card, upload card, panel) each spent 16 px a
   side, leaving a 244 px column for the text inside the list card. In the focused mode the
   card is the whole screen, so it runs edge to edge and the boxes inside it keep a smaller,
   even rhythm; what cannot read in two columns this narrow takes a row of its own. */
@media (max-width: 520px) {
  html[data-mode="focus"] .hero {
    padding-block: 12px 32px;
    padding-inline: 0;
  }

  html[data-mode="focus"] .journey-card {
    --card-pad: 16px;
    border-inline-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .upload-card,
  .review-group,
  .consents,
  .profile-panel,
  .column-guide,
  .menu-empty,
  .menu-item-editor {
    padding: 14px;
  }

  /* Two tabs of four words each cannot share a row this narrow; one per row keeps them
     on a single line, and they stay easy to hit. */
  .menu-modes {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-row-edit,
  .menu-row-remove {
    width: 40px;
    height: 40px;
  }

  /* The brand and the two links fit one row, so every step starts higher up the screen. */
  html[data-mode="focus"] .header-inner {
    column-gap: 10px;
  }

  html[data-mode="focus"] .brand-word {
    font-size: 19px;
  }

  html[data-mode="focus"] .focus-links {
    min-height: 48px;
  }

  html[data-mode="focus"] .focus-link {
    padding-inline: 6px;
    font-size: 12px;
  }
}

/* 27. Location step: the map with its fixed pin, and the governorate -------------- */
.pin-map {
  display: grid;
  gap: 10px;
}

.pin-map-head strong {
  display: block;
  color: var(--color-ink-deep);
  font-size: 15px;
  font-weight: 800;
}

.pin-map-head small {
  display: block;
  margin-block-start: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Leaflet's panes carry their own z-indexes; the frame keeps them under the sticky header. */
.pin-map-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.pin-map-canvas {
  position: absolute;
  inset: 0;
}

.pin-map .leaflet-container {
  font-family: inherit;
  background: var(--color-surface);
}

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

.pin-map-canvas:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: -2px;
}

/* The pin's tip marks the centre of the map, the point that is sent. */
.pin-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 500;
  width: 34px;
  height: 46px;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(27, 38, 45, 0.3));
  transform: translate(-50%, -100%);
  transition: transform var(--motion-fast) var(--ease-out);
}

.pin-map-pin svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pin-map-pin path {
  fill: var(--color-primary);
  stroke: var(--color-white);
  stroke-width: 2;
}

.pin-map-pin circle {
  fill: var(--color-white);
}

.pin-map-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 499;
  width: 10px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(27, 38, 45, 0.35);
  transform: translate(-50%, -50%);
}

.pin-map-frame.is-moving .pin-map-pin {
  transform: translate(-50%, calc(-100% - 8px));
}

.pin-map-layer {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 600;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-ink-deep);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px -6px rgba(27, 38, 45, 0.4);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.pin-map-layer:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 2px;
}

.pin-map-accuracy {
  position: absolute;
  inset-block-end: 24px;
  inset-inline: 10px;
  z-index: 600;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--color-white);
  background: rgba(10, 111, 117, 0.92);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.pin-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.pin-map-accuracy[hidden],
.pin-map-fallback[hidden],
.branch-phones[hidden],
.governorate-field[hidden] {
  display: none;
}

.pin-map-confirm {
  width: 100%;
}

.pin-map-confirm.is-attention {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 122, 50, 0.22);
}

.governorate-field {
  margin-block-start: 14px;
}

@media (max-width: 640px) {
  .pin-map-frame {
    height: 260px;
  }
}

/* 28. Branch managers in the profile panel -------------------------------------- */
.branch-phones {
  display: grid;
  gap: 8px;
  margin-block-start: 14px;
}

/* 29. Following a request: the hero link and the status dialog ------------------- */
.hero-track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-block-start: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-decoration: none;
}

.hero-track strong {
  color: var(--color-accent-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-track:focus-visible {
  outline: 2px solid var(--color-accent-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.track-form {
  display: grid;
  gap: 12px;
  margin-block-start: 16px;
  text-align: start;
}

.track-form .error:empty {
  display: none;
}

.track-form .button {
  width: 100%;
}

.track-result {
  margin-block-start: 18px;
  text-align: start;
}

.track-result:focus {
  outline: none;
}

.track-summary {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
}

.track-summary small {
  display: block;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: start;
}

.track-summary strong {
  display: block;
  margin-block-start: 2px;
  color: var(--color-ink-deep);
  font-size: 17px;
  font-weight: 800;
}

.track-summary p {
  margin: 4px 0 0;
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1.7;
}

.track-summary .track-wait {
  margin-block-start: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-warning);
  background: var(--color-warning-soft);
  font-weight: 700;
}

.track-result.complete .track-summary {
  background: var(--color-success-soft);
}

.track-result.closed .track-summary {
  background: var(--color-surface);
}

.track-result .status-timeline {
  margin-block-start: 16px;
}
