:root {
  --paper: #f7f4ee;
  --paper-2: #fffdf8;
  --ink: #1d2925;
  --muted: #68726e;
  --line: rgba(29, 41, 37, 0.12);
  --orange: #f05a2a;
  --orange-dark: #c63f17;
  --green: #2f6b57;
  --green-soft: #dbe9df;
  --yellow: #f5c95a;
  --red: #d94b3d;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(29, 41, 37, 0.08);
  --shadow-md: 0 18px 50px rgba(29, 41, 37, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: #e8e4dc;
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 90, 42, 0.08), transparent 34%),
    #e8e4dc;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(240, 90, 42, 0.34);
  outline-offset: 2px;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
  box-shadow: 0 0 70px rgba(29, 41, 37, 0.18);
}

.app-loading {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
}

.loading-logo,
.brand-mark {
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.06em;
  transform: rotate(-3deg);
}

.loading-logo {
  width: 84px;
  height: 84px;
  border-radius: 28px 12px 28px 12px;
  background: var(--orange);
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.loading-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  z-index: 900;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(70px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 18px 10px;
  border-bottom: 1px solid rgba(29, 41, 37, 0.07);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 14px 7px 14px 7px;
  background: var(--orange);
  color: white;
  font-size: 14px;
}

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

.brand-name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-tagline,
.eyebrow,
.kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 4px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.avatar-button,
.map-control {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 5px 12px rgba(29, 41, 37, 0.05);
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 14px;
}

.avatar-button {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.role-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.page {
  min-height: calc(100dvh - 70px);
  padding-bottom: calc(96px + var(--safe-bottom));
}

.page-section {
  padding: 22px 18px 0;
}

.page-section.compact {
  padding-top: 14px;
}

.hero-copy {
  margin-bottom: 18px;
}

.hero-copy h1,
.page-title {
  margin-bottom: 8px;
  font-size: clamp(29px, 8vw, 40px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy p,
.page-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 10px;
}

.location-label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.location-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 9px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-box input,
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(29, 41, 37, 0.04);
}

.search-box input {
  height: 48px;
  padding: 0 14px 0 43px;
  border-radius: 16px;
  font-size: 14px;
}

.filter-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.filter-row {
  display: flex;
  overflow-x: auto;
  margin: 13px -18px 2px;
  padding: 0 18px 8px;
  gap: 8px;
  scrollbar-width: none;
}

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

.filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.map-card {
  position: relative;
  height: 292px;
  overflow: hidden;
  border: 1px solid rgba(29, 41, 37, 0.08);
  border-radius: var(--radius-lg);
  background: #d8dfd5;
  box-shadow: var(--shadow-sm);
}

.map-card.tall {
  height: calc(100dvh - 214px);
  min-height: 460px;
  border-radius: 0;
  border-right: 0;
  border-left: 0;
  box-shadow: none;
}

.map-surface,
.leaflet-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #dfe5dd;
  font-family: inherit;
}

.map-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(25deg, transparent 0 47%, rgba(255, 255, 255, 0.82) 47% 52%, transparent 52% 100%),
    linear-gradient(116deg, transparent 0 42%, rgba(255, 255, 255, 0.68) 42% 47%, transparent 47% 100%),
    repeating-linear-gradient(0deg, rgba(47, 107, 87, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(47, 107, 87, 0.08) 0 1px, transparent 1px 42px),
    #dfe5dd;
}

.map-fallback::before,
.map-fallback::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(47, 107, 87, 0.16);
}

.map-fallback::before {
  top: -32px;
  right: -28px;
  width: 170px;
  height: 140px;
}

.map-fallback::after {
  bottom: 18px;
  left: -32px;
  width: 132px;
  height: 86px;
}

.fallback-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid white;
  border-radius: 16px 16px 16px 4px;
  background: var(--pin, var(--orange));
  color: white;
  box-shadow: 0 8px 18px rgba(29, 41, 37, 0.22);
  font-size: 10px;
  font-weight: 950;
  transform: rotate(-45deg);
}

.fallback-pin span {
  transform: rotate(45deg);
}

.map-top-overlay {
  position: absolute;
  z-index: 500;
  top: 13px;
  left: 13px;
  display: flex;
  max-width: calc(100% - 76px);
  align-items: center;
  gap: 7px;
}

.demo-badge,
.live-badge,
.status-badge,
.distance-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 850;
}

.demo-badge {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(29, 41, 37, 0.12);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(29, 41, 37, 0.11);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #32a36f;
  box-shadow: 0 0 0 4px rgba(50, 163, 111, 0.14);
}

.map-control-stack {
  position: absolute;
  z-index: 500;
  top: 13px;
  right: 13px;
  display: grid;
  gap: 8px;
}

.map-control {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 15px;
}

.map-summary {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.91);
  box-shadow: 0 10px 30px rgba(29, 41, 37, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.map-summary strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.map-summary span {
  color: var(--muted);
  font-size: 11px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 16px;
}

.section-heading h2 {
  margin-bottom: 3px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.truck-list,
.event-list,
.schedule-list,
.menu-editor-list,
.metric-grid {
  display: grid;
  gap: 11px;
}

.truck-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 118px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper-2);
  box-shadow: 0 6px 20px rgba(29, 41, 37, 0.05);
  cursor: pointer;
}

.truck-card:active,
.event-card:active,
.quick-action:active,
.role-option:active {
  transform: scale(0.985);
}

.truck-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 55%),
    var(--accent, var(--orange));
  color: white;
}

.truck-art::before,
.truck-art::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.truck-art::before {
  right: -18px;
  bottom: -10px;
  width: 60px;
  height: 60px;
}

.truck-art::after {
  top: -24px;
  left: -24px;
  width: 66px;
  height: 66px;
}

.truck-art-mark {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.05em;
  transform: rotate(-6deg);
}

.truck-card-copy {
  min-width: 0;
  padding: 3px 3px 2px 12px;
}

.truck-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.truck-card h3 {
  overflow: hidden;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-button {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f9692;
  cursor: pointer;
}

.favorite-button.active {
  color: var(--orange);
}

.truck-meta {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 9px;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(29, 41, 37, 0.3);
}

.truck-status-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-badge {
  min-height: 24px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
}

.status-badge.closed {
  background: #ede7df;
  color: #7f6e61;
}

.status-badge.soon {
  background: #fff0c6;
  color: #7c5f11;
}

.special-copy {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 19px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.event-card.light {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}

.event-card::after {
  position: absolute;
  right: -35px;
  bottom: -42px;
  width: 148px;
  height: 148px;
  border: 24px solid rgba(240, 90, 42, 0.72);
  border-radius: 50%;
  content: "";
}

.event-date {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card.light .event-date {
  background: #eeeae2;
}

.event-card h3 {
  position: relative;
  z-index: 1;
  max-width: 74%;
  margin-bottom: 7px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.event-card p {
  position: relative;
  z-index: 1;
  max-width: 74%;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.4;
}

.event-card.light p {
  color: var(--muted);
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  margin-right: -18px;
  margin-left: -18px;
  padding: 0 18px 8px;
  gap: 10px;
  scrollbar-width: none;
}

.mini-event {
  flex: 0 0 252px;
}

.bottom-nav {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  width: 100%;
  max-width: 520px;
  min-height: calc(74px + var(--safe-bottom));
  padding: 8px 10px calc(8px + var(--safe-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(29, 41, 37, 0.08);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 -10px 30px rgba(29, 41, 37, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  grid-template-columns: repeat(5, 1fr);
}

.nav-button {
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  align-content: center;
  padding: 5px 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #7d8581;
  gap: 4px;
  cursor: pointer;
}

.nav-button svg {
  width: 20px;
  height: 20px;
}

.nav-button span {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button.active {
  background: rgba(240, 90, 42, 0.09);
  color: var(--orange-dark);
}

.full-map-header {
  position: absolute;
  z-index: 700;
  top: 12px;
  right: 13px;
  left: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}

.full-map-header .search-box input {
  box-shadow: 0 8px 24px rgba(29, 41, 37, 0.16);
}

.map-sheet {
  position: absolute;
  z-index: 700;
  right: 12px;
  bottom: calc(12px + 74px + var(--safe-bottom));
  left: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 23px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sheet-handle {
  width: 34px;
  height: 4px;
  margin: 0 auto 11px;
  border-radius: 999px;
  background: rgba(29, 41, 37, 0.18);
}

.map-sheet-truck {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.mini-art {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--accent, var(--orange));
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.map-sheet-copy {
  min-width: 0;
}

.map-sheet-copy h3 {
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-sheet-copy p {
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  cursor: pointer;
}

.empty-state {
  padding: 30px 18px;
  border: 1px dashed rgba(29, 41, 37, 0.18);
  border-radius: 22px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 18px;
  background: #eeeae2;
  color: var(--muted);
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
}

.empty-state p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 20px rgba(240, 90, 42, 0.22);
}

.primary-button.dark {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(29, 41, 37, 0.17);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}

.danger-button {
  border: 1px solid rgba(217, 75, 61, 0.22);
  background: rgba(217, 75, 61, 0.08);
  color: var(--red);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button-row > * {
  flex: 1 1 auto;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}

.profile-cover {
  position: relative;
  min-height: 138px;
  padding: 19px;
  background:
    radial-gradient(circle at 82% 22%, rgba(245, 201, 90, 0.8), transparent 18%),
    linear-gradient(135deg, var(--orange), #bd3d21);
  color: white;
}

.profile-cover::after {
  position: absolute;
  right: -45px;
  bottom: -78px;
  width: 185px;
  height: 185px;
  border: 28px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.profile-cover .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.profile-cover h2 {
  position: relative;
  z-index: 1;
  max-width: 74%;
  margin: 16px 0 8px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.profile-cover p {
  position: relative;
  z-index: 1;
  max-width: 72%;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.profile-body {
  padding: 15px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

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

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

.info-value {
  max-width: 65%;
  text-align: right;
  font-size: 12px;
  font-weight: 850;
}

.account-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper-2);
  gap: 12px;
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 19px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 950;
}

.account-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 950;
}

.account-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.owner-hero {
  padding: 19px;
  border-radius: 25px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-md);
}

.owner-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 14px;
}

.owner-hero h1 {
  margin: 6px 0 7px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.owner-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.live-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 9px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 10px;
  font-weight: 900;
  gap: 7px;
  cursor: pointer;
}

.switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: 180ms ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: 180ms ease;
}

.live-toggle.active .switch-track {
  background: #38a971;
}

.live-toggle.active .switch-thumb {
  transform: translateX(14px);
}

.owner-location-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.09);
  gap: 10px;
}

.owner-location-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--orange);
}

.owner-location-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.owner-location-card span {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.metric-card {
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}

.metric-card svg {
  width: 20px;
  height: 20px;
  margin-bottom: 14px;
  color: var(--orange-dark);
}

.metric-value {
  display: block;
  margin-bottom: 3px;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.metric-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-action {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper-2);
  text-align: left;
  cursor: pointer;
}

.quick-action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
}

.quick-action:nth-child(2) .quick-action-icon {
  background: #fff0c6;
  color: #7c5f11;
}

.quick-action:nth-child(3) .quick-action-icon {
  background: rgba(240, 90, 42, 0.11);
  color: var(--orange-dark);
}

.quick-action:nth-child(4) .quick-action-icon {
  background: #e7e2f2;
  color: #5e4d81;
}

.quick-action strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 950;
}

.quick-action span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.publish-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
  gap: 10px;
}

.publish-status {
  min-width: 0;
}

.publish-status strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.publish-status span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: 0 6px 20px rgba(29, 41, 37, 0.04);
}

.form-grid {
  display: grid;
  gap: 13px;
}

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

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.form-control,
.form-select,
.form-textarea {
  border-radius: 14px;
  font-size: 13px;
}

.form-control,
.form-select {
  height: 45px;
  padding: 0 12px;
}

.form-textarea {
  min-height: 94px;
  padding: 12px;
  resize: vertical;
}

.color-options {
  display: flex;
  gap: 9px;
}

.color-option {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.color-option.active {
  border-color: var(--paper-2);
  box-shadow: 0 0 0 2px var(--ink);
}

.menu-editor-item,
.schedule-item {
  display: grid;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  gap: 10px;
}

.menu-editor-item {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.menu-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: rgba(240, 90, 42, 0.1);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
}

.menu-editor-copy {
  min-width: 0;
}

.menu-editor-copy strong,
.schedule-copy strong {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-editor-copy span,
.schedule-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-price {
  font-size: 12px;
  font-weight: 950;
}

.item-actions {
  display: flex;
  gap: 5px;
}

.mini-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--muted);
  cursor: pointer;
}

.schedule-item {
  grid-template-columns: 50px minmax(0, 1fr) auto;
}

.schedule-date-box {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  align-content: center;
  border-radius: 15px;
  background: var(--ink);
  color: white;
}

.schedule-date-box strong {
  font-size: 15px;
  line-height: 1;
}

.schedule-date-box span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}

.schedule-state.future {
  background: #eeeae2;
  color: var(--muted);
}

.route-map {
  height: 258px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #dfe5dd;
}

.notice-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: flex-start;
  padding: 13px;
  border: 1px solid rgba(47, 107, 87, 0.18);
  border-radius: 18px;
  background: rgba(219, 233, 223, 0.62);
  gap: 10px;
}

.notice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--green);
  color: white;
}

.notice-card strong {
  display: block;
  margin: 2px 0 3px;
  font-size: 11px;
}

.notice-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.modal-backdrop,
.role-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  background: rgba(15, 24, 21, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop {
  align-items: flex-end;
}

.role-modal {
  align-items: center;
  padding: 20px;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 91dvh;
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.28);
  animation: sheet-in 240ms ease-out;
}

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

.modal-grabber {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  height: 30px;
  place-items: center;
  background: linear-gradient(var(--paper) 70%, transparent);
}

.modal-grabber span {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: rgba(29, 41, 37, 0.18);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin: 0 13px;
  padding: 20px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 78% 25%, rgba(245, 201, 90, 0.72), transparent 18%),
    linear-gradient(140deg, var(--accent, var(--orange)), #8f2e20);
  color: white;
}

.detail-hero::after {
  position: absolute;
  right: -54px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border: 30px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.detail-top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-back,
.detail-favorite {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.detail-heading {
  position: relative;
  z-index: 2;
  margin-top: 43px;
}

.detail-heading h2 {
  max-width: 78%;
  margin-bottom: 7px;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.detail-heading p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-badges span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 9px;
  font-weight: 850;
}

.detail-live-card {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr) auto;
  align-items: center;
  margin: 12px 13px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  gap: 10px;
}

.detail-live-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}

.detail-live-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.detail-live-copy span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-tabs {
  position: sticky;
  z-index: 3;
  top: 30px;
  display: grid;
  margin-top: 13px;
  padding: 7px 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.94);
  grid-template-columns: repeat(3, 1fr);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.detail-tab {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.detail-tab.active {
  background: var(--ink);
  color: white;
}

.detail-content {
  padding: 16px 13px calc(28px + var(--safe-bottom));
}

.menu-section + .menu-section {
  margin-top: 22px;
}

.menu-section h3 {
  margin-bottom: 11px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item h4 {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 900;
}

.menu-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.menu-item-price {
  font-size: 12px;
  font-weight: 950;
}

.detail-schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  padding-bottom: 20px;
  gap: 11px;
}

.detail-schedule-item:not(:last-child)::after {
  position: absolute;
  top: 37px;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: var(--line);
  content: "";
}

.stop-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 950;
}

.detail-schedule-copy {
  padding-top: 3px;
}

.detail-schedule-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.detail-schedule-copy span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.about-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.role-dialog {
  width: 100%;
  max-width: 460px;
  padding: 20px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  animation: dialog-in 220ms ease-out;
}

@keyframes dialog-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.role-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.role-dialog h2 {
  margin-bottom: 6px;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.role-dialog p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.close-button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
  cursor: pointer;
}

.role-options {
  display: grid;
  gap: 10px;
}

.role-option {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper-2);
  text-align: left;
  gap: 12px;
  cursor: pointer;
}

.role-option-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: rgba(240, 90, 42, 0.11);
  color: var(--orange-dark);
}

.role-option:nth-child(2) .role-option-icon {
  background: var(--green-soft);
  color: var(--green);
}

.role-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 950;
}

.role-option span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.toast-region {
  position: fixed;
  z-index: 5000;
  right: 0;
  bottom: calc(88px + var(--safe-bottom));
  left: 0;
  display: grid;
  justify-items: center;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  max-width: 420px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(29, 41, 37, 0.94);
  color: white;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(12px);
  animation: toast-in 170ms ease-out;
}

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

.truck-div-icon,
.stop-div-icon,
.user-div-icon {
  background: transparent;
  border: 0;
}

.truck-pin {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid white;
  border-radius: 16px 16px 16px 4px;
  background: var(--pin-color, var(--orange));
  color: white;
  box-shadow: 0 8px 18px rgba(29, 41, 37, 0.26);
  font-size: 10px;
  font-weight: 950;
  transform: rotate(-45deg);
}

.truck-pin span {
  transform: rotate(45deg);
}

.truck-pin.is-selected {
  width: 50px;
  height: 50px;
  border-width: 4px;
  box-shadow: 0 10px 24px rgba(29, 41, 37, 0.34);
}

.stop-pin {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 12px rgba(29, 41, 37, 0.22);
  font-size: 9px;
  font-weight: 950;
}

.user-pin {
  width: 20px;
  height: 20px;
  border: 4px solid white;
  border-radius: 50%;
  background: #3077d6;
  box-shadow: 0 0 0 8px rgba(48, 119, 214, 0.18), 0 5px 12px rgba(29, 41, 37, 0.22);
}

.leaflet-control-attribution {
  font-size: 8px !important;
}

.leaflet-control-zoom {
  display: none;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(29, 41, 37, 0.2);
}

.leaflet-popup-content {
  margin: 11px 13px;
  font-family: inherit;
  font-size: 11px;
}

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

.hidden {
  display: none !important;
}

@media (min-width: 521px) {
  .app-shell {
    min-height: 940px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 32px;
  }

  .topbar {
    border-radius: 32px 32px 0 0;
  }

  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 32px 32px;
  }

  .modal-sheet {
    margin-bottom: 20px;
    border-radius: 30px;
  }
}

@media (max-width: 360px) {
  .brand-tagline,
  .role-pill span:last-child {
    display: none;
  }

  .hero-copy h1,
  .page-title {
    font-size: 29px;
  }

  .truck-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .metric-grid,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Quick Look-safe static clickthrough. The hosted app replaces this markup when JavaScript runs. */
.ql-root { min-height: 100dvh; background: var(--paper); }
.ql-screen { display: none; min-height: 100dvh; padding-bottom: calc(86px + var(--safe-bottom)); background: var(--paper); color: var(--ink); }
.ql-screen:target { display: block; position: fixed; z-index: 5000; top: 0; left: 50%; width: min(100%, 520px); height: 100dvh; overflow-y: auto; transform: translateX(-50%); box-shadow: 0 0 70px rgba(29,41,37,.22); }
.ql-role { display: grid; min-height: 100dvh; padding: calc(28px + var(--safe-top)) 20px calc(28px + var(--safe-bottom)); place-items: center; background: linear-gradient(155deg, #1d2925 0 42%, #2f6b57 100%); color: white; }
.ql-role-card { width: 100%; max-width: 410px; padding: 26px 20px 20px; border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,.32); }
.ql-logo-row, .ql-topbar, .ql-section-head, .ql-card-row, .ql-nav { display: flex; align-items: center; }
.ql-logo-row { gap: 12px; margin-bottom: 24px; }
.ql-logo { display:grid; place-items:center; width:52px; height:52px; border-radius:18px 9px 18px 9px; background:var(--orange); color:#fff; font-weight:900; transform:rotate(-3deg); }
.ql-brand { font-weight: 900; font-size: 24px; letter-spacing: -.05em; line-height: 1; }
.ql-brand small { display:block; margin-top:6px; color:var(--muted); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.ql-eyebrow { margin:0 0 8px; color:var(--muted); font-size:11px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.ql-role h1 { margin: 0 0 8px; font-size: 31px; line-height: .98; letter-spacing: -.055em; }
.ql-role p { color: var(--muted); line-height: 1.45; }
.ql-choice { display:flex; align-items:center; gap:14px; margin-top:12px; padding:15px; border:1px solid var(--line); border-radius:20px; background:#fffdf8; color:var(--ink); text-decoration:none; box-shadow:0 6px 18px rgba(29,41,37,.05); }
.ql-choice-icon { display:grid; place-items:center; flex:0 0 auto; width:48px; height:48px; border-radius:16px; background:#fce9df; color:var(--orange-dark); font-size:23px; }
.ql-choice.owner .ql-choice-icon { background:var(--green-soft); color:var(--green); }
.ql-choice strong { display:block; margin-bottom:4px; font-size:15px; }
.ql-choice span { display:block; color:var(--muted); font-size:12px; line-height:1.35; }
.ql-choice b { margin-left:auto; font-size:22px; }
.ql-preview-note { margin:16px 2px 0; padding:11px 12px; border-radius:14px; background:#f0ede6; color:var(--muted); font-size:11px; line-height:1.4; }

.ql-topbar { position: sticky; z-index: 20; top:0; justify-content:space-between; min-height:calc(70px + var(--safe-top)); padding:calc(12px + var(--safe-top)) 18px 10px; border-bottom:1px solid var(--line); background:rgba(247,244,238,.94); backdrop-filter:blur(20px); }
.ql-topbar .ql-logo { width:39px; height:39px; border-radius:14px 7px 14px 7px; font-size:13px; }
.ql-topbar .ql-brand { font-size:20px; }
.ql-pill { padding:9px 12px; border:1px solid var(--line); border-radius:999px; background:#fffdf8; font-size:12px; font-weight:800; }
.ql-main { padding: 20px 18px 26px; }
.ql-location { display:flex; justify-content:space-between; gap:14px; margin-bottom:16px; font-size:12px; font-weight:800; }
.ql-location a { color:var(--orange-dark); text-decoration:none; }
.ql-hero h1 { max-width:390px; margin:0 0 9px; font-size:32px; line-height:1.02; letter-spacing:-.055em; }
.ql-hero p { color:var(--muted); line-height:1.5; }
.ql-search { margin:18px 0 12px; padding:15px 16px; border:1px solid var(--line); border-radius:18px; background:#fffdf8; color:#7b817e; box-shadow:var(--shadow-sm); }
.ql-filters { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
.ql-filter { flex:0 0 auto; padding:9px 13px; border:1px solid var(--line); border-radius:999px; background:#fffdf8; color:var(--muted); font-size:11px; font-weight:900; }
.ql-filter.active { border-color:var(--ink); background:var(--ink); color:white; }
.ql-map-card { position:relative; height:292px; margin:20px 0 22px; overflow:hidden; border:1px solid rgba(47,107,87,.16); border-radius:26px; background-color:#dce8df; background-image:linear-gradient(rgba(29,41,37,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(29,41,37,.07) 1px,transparent 1px),radial-gradient(circle at 87% 5%,#bfd2c5 0 25%,transparent 26%),radial-gradient(circle at 5% 94%,#c5d8cb 0 22%,transparent 23%); background-size:44px 44px,44px 44px,100% 100%,100% 100%; box-shadow:var(--shadow-sm); }
.ql-map-card:before, .ql-map-card:after { content:""; position:absolute; background:rgba(255,255,255,.88); transform-origin:center; }
.ql-map-card:before { width:430px; height:22px; left:-40px; top:132px; transform:rotate(25deg); }
.ql-map-card:after { width:360px; height:20px; left:72px; top:64px; transform:rotate(-64deg); }
.ql-live-tag { position:absolute; z-index:3; top:14px; left:14px; padding:9px 12px; border-radius:999px; background:rgba(255,255,255,.92); font-size:10px; font-weight:900; letter-spacing:.05em; box-shadow:0 6px 14px rgba(29,41,37,.1); }
.ql-live-tag i { display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; background:#42b883; }
.ql-pin { position:absolute; z-index:4; display:grid; place-items:center; width:47px; height:47px; border:3px solid white; border-radius:50% 50% 50% 4px; color:white; font-size:11px; font-weight:900; transform:rotate(-45deg); box-shadow:0 9px 20px rgba(29,41,37,.24); }
.ql-pin span { transform:rotate(45deg); }
.ql-pin.p1{left:18%;top:32%;background:var(--orange)} .ql-pin.p2{left:60%;top:18%;background:var(--green)} .ql-pin.p3{left:72%;top:52%;background:#5e4d81} .ql-pin.p4{left:35%;top:72%;background:#4f7f52}
.ql-map-cta { position:absolute; z-index:5; left:12px; right:12px; bottom:12px; display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-radius:18px; background:rgba(255,253,248,.96); color:var(--ink); text-decoration:none; box-shadow:0 10px 28px rgba(29,41,37,.14); }
.ql-map-cta strong { display:block; font-size:13px; } .ql-map-cta span { color:var(--muted); font-size:11px; }
.ql-section-head { justify-content:space-between; margin:20px 0 10px; }
.ql-section-head h2 { margin:0; font-size:22px; letter-spacing:-.04em; }
.ql-section-head span, .ql-section-head a { color:var(--orange-dark); font-size:11px; font-weight:900; text-decoration:none; }
.ql-truck-card, .ql-event-card, .ql-stat, .ql-panel { display:block; padding:14px; border:1px solid var(--line); border-radius:22px; background:#fffdf8; color:var(--ink); text-decoration:none; box-shadow:0 7px 20px rgba(29,41,37,.05); }
.ql-truck-card { margin-bottom:12px; }
.ql-card-row { gap:13px; }
.ql-thumb { display:grid; place-items:center; flex:0 0 auto; width:70px; height:70px; border-radius:20px; background:linear-gradient(145deg,#84b28f,#316b59); color:white; font-weight:900; }
.ql-card-copy { min-width:0; flex:1; }
.ql-card-copy strong { display:block; font-size:17px; letter-spacing:-.03em; }
.ql-card-copy p { margin:4px 0 7px; color:var(--muted); font-size:12px; }
.ql-meta { display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:10px; font-weight:800; }
.ql-open { color:#20885f; }
.ql-nav { position:fixed; z-index:5100; left:50%; bottom:0; width:min(100%,520px); justify-content:space-around; padding:8px 7px calc(8px + var(--safe-bottom)); transform:translateX(-50%); border-top:1px solid var(--line); background:rgba(255,253,248,.96); backdrop-filter:blur(20px); }
.ql-nav a { min-width:58px; padding:9px 5px; border-radius:16px; color:var(--muted); font-size:10px; font-weight:800; text-align:center; text-decoration:none; }
.ql-nav a.active { background:#fce9df; color:var(--orange-dark); }
.ql-nav b { display:block; margin-bottom:4px; font-size:19px; line-height:1; }
.ql-back { display:inline-flex; align-items:center; gap:7px; margin-bottom:14px; color:var(--muted); font-size:12px; font-weight:900; text-decoration:none; }
.ql-detail-hero { padding:20px; border-radius:26px; background:var(--ink); color:white; }
.ql-detail-hero .ql-eyebrow { color:rgba(255,255,255,.6); }
.ql-detail-hero h1 { margin:0 0 8px; font-size:31px; letter-spacing:-.05em; }
.ql-detail-hero p { color:rgba(255,255,255,.72); }
.ql-special { margin-top:14px; padding:13px 14px; border-radius:16px; background:rgba(240,90,42,.18); border:1px solid rgba(240,90,42,.3); font-size:13px; }
.ql-tabs { display:flex; gap:8px; margin:16px 0; overflow-x:auto; }
.ql-tabs a { flex:0 0 auto; padding:10px 14px; border-radius:999px; background:#ebe7df; color:var(--muted); font-size:11px; font-weight:900; text-decoration:none; }
.ql-tabs a.active { background:var(--ink); color:white; }
.ql-menu-item { display:flex; justify-content:space-between; gap:18px; padding:15px 0; border-bottom:1px solid var(--line); }
.ql-menu-item strong { display:block; margin-bottom:5px; } .ql-menu-item p { margin:0; color:var(--muted); font-size:12px; line-height:1.4; } .ql-price { font-weight:900; white-space:nowrap; }
.ql-event-card { margin-bottom:12px; }
.ql-date { display:inline-block; margin-bottom:9px; padding:7px 9px; border-radius:10px; background:#fce9df; color:var(--orange-dark); font-size:10px; font-weight:900; }
.ql-event-card h3 { margin:0 0 6px; font-size:18px; } .ql-event-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }
.ql-owner-hero { padding:20px; border-radius:26px; background:var(--ink); color:white; }
.ql-owner-hero h1 { margin:5px 0 5px; font-size:31px; letter-spacing:-.05em; }
.ql-owner-hero p { color:rgba(255,255,255,.7); }
.ql-live-switch { float:right; padding:9px 12px; border-radius:999px; background:rgba(255,255,255,.12); font-size:11px; font-weight:900; }
.ql-current-stop { margin-top:18px; padding:14px; border-radius:18px; background:rgba(255,255,255,.1); }
.ql-current-stop strong { display:block; margin-bottom:4px; }
.ql-publish { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:14px 0 22px; }
.ql-publish strong { display:block; font-size:13px; } .ql-publish span { color:var(--muted); font-size:11px; }
.ql-button { display:inline-flex; align-items:center; justify-content:center; padding:12px 15px; border-radius:14px; background:var(--orange); color:white; font-size:12px; font-weight:900; text-decoration:none; box-shadow:0 8px 18px rgba(240,90,42,.22); }
.ql-stats { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.ql-stat { min-height:112px; }
.ql-stat b { display:block; margin-top:18px; font-size:25px; letter-spacing:-.05em; } .ql-stat span { color:var(--muted); font-size:10px; font-weight:900; text-transform:uppercase; }
.ql-route-stop { position:relative; margin:0 0 12px 16px; padding:14px 14px 14px 18px; border:1px solid var(--line); border-radius:18px; background:#fffdf8; }
.ql-route-stop:before { content:""; position:absolute; left:-18px; top:20px; width:11px; height:11px; border:4px solid var(--paper); border-radius:50%; background:var(--orange); box-shadow:0 0 0 1px var(--line); }
.ql-route-stop strong { display:block; margin-bottom:4px; } .ql-route-stop p { margin:0; color:var(--muted); font-size:12px; line-height:1.4; }
.ql-route-stop.current { border-color:rgba(47,107,87,.3); background:#eef5f0; }
.ql-sold { color:var(--red); font-size:10px; font-weight:900; text-transform:uppercase; }
