/* Food Truck Map — mobile-first, light UI */
.ftm {
	--ftm-brand: #ff5a36;
	--ftm-ink: #1d1f24;
	--ftm-ink-2: #555b66;
	--ftm-ink-3: #8a909b;
	--ftm-line: #e7e8eb;
	--ftm-bg: #ffffff;
	--ftm-bg-2: #f5f6f8;
	--ftm-open: #12a150;
	--ftm-warn: #c77700;
	--ftm-danger: #d93a2b;
	--ftm-radius: 16px;
	--ftm-shadow: 0 8px 28px rgba(20, 24, 33, .14), 0 1px 3px rgba(20, 24, 33, .08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ftm-ink);
	font-size: 16px;
	line-height: 1.4;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}
.ftm *, .ftm *::before, .ftm *::after { box-sizing: inherit; }
.ftm button { font: inherit; color: inherit; cursor: pointer; }
.ftm img { max-width: 100%; display: block; }
.ftm h2, .ftm h3, .ftm h4 { margin: 0; line-height: 1.2; color: var(--ftm-ink); font-family: inherit; letter-spacing: -.01em; }
.ftm a { color: var(--ftm-brand); }
.ftm-ico { flex: none; }
.ftm-muted { color: var(--ftm-ink-2); font-size: 14px; }
.ftm-loading { padding: 28px 20px; color: var(--ftm-ink-3); text-align: center; }
.ftm-hidden { display: none !important; }

/* ---------- Buttons & inputs ---------- */
.ftm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0;
	background: var(--ftm-brand); color: #fff !important; font-weight: 600; font-size: 16px;
	text-decoration: none !important; transition: transform .08s ease, filter .15s ease;
}
.ftm-btn:active { transform: scale(.97); }
.ftm-btn:hover { filter: brightness(1.05); }
.ftm-btn[disabled] { opacity: .5; pointer-events: none; }
.ftm-btn-ghost { background: var(--ftm-bg-2); color: var(--ftm-ink) !important; }
.ftm-btn-line { background: #fff; color: var(--ftm-ink) !important; border: 1.5px solid var(--ftm-line); }
.ftm-btn-danger { background: #fff; color: var(--ftm-danger) !important; border: 1.5px solid #f3c9c4; }
.ftm-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.ftm-btn-block { width: 100%; }
.ftm-btn-xl { min-height: 56px; font-size: 17px; border-radius: 14px; }

.ftm-field { display: block; margin: 0 0 14px; }
.ftm-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ftm-ink-2); margin: 0 0 6px; }
.ftm input[type=text], .ftm input[type=email], .ftm input[type=tel], .ftm input[type=password],
.ftm input[type=url], .ftm input[type=time], .ftm input[type=search], .ftm input[type=number], .ftm textarea, .ftm select {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--ftm-line); border-radius: 12px;
	background: #fff; color: var(--ftm-ink); font-size: 16px; /* 16px stops iOS zoom */ font-family: inherit;
	box-shadow: none; outline: none; margin: 0; -webkit-appearance: none; appearance: none;
}
.ftm textarea { min-height: 96px; resize: vertical; }
.ftm input:focus, .ftm textarea:focus, .ftm select:focus { border-color: var(--ftm-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ftm-brand) 18%, transparent); }
.ftm-row { display: flex; gap: 10px; }
.ftm-row > * { flex: 1; min-width: 0; }

.ftm-card { background: #fff; border: 1px solid var(--ftm-line); border-radius: var(--ftm-radius); padding: 20px; }
.ftm-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 14px; background: #fff4ec; color: #8a3b13; }
.ftm-alert.is-ok { background: #e9f8ef; color: #0d6b37; }
.ftm-alert.is-err { background: #fdecea; color: #a1281c; }

.ftm-chip {
	flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
	border-radius: 999px; border: 1.5px solid var(--ftm-line); background: #fff; font-size: 14px; font-weight: 600;
	color: var(--ftm-ink); white-space: nowrap;
}
.ftm-chip.is-on { background: var(--ftm-ink); border-color: var(--ftm-ink); color: #fff; }

/* ---------- Map app ---------- */
.ftm-mapapp {
	position: relative; width: 100%; height: var(--ftm-h, 75vh); min-height: 460px;
	border-radius: var(--ftm-radius); overflow: hidden; background: #eef0f2; isolation: isolate;
}
.ftm-map { position: absolute; inset: 0; z-index: 0; background: #eef0f2; }
/* Light mode for standard OpenStreetMap tiles: muted colors, brighter background. Pins/routes are unaffected. */
.ftm-soft-tiles .leaflet-tile-pane { filter: saturate(.35) brightness(1.08) contrast(.88); }
.ftm-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.7); }
.ftm-map .leaflet-control-zoom { display: none; }
@media (min-width: 900px) { .ftm-map .leaflet-control-zoom { display: block; border: 0; box-shadow: var(--ftm-shadow); } }

.ftm-topbar {
	position: absolute; z-index: 500; top: 0; left: 0; right: 0; display: flex; gap: 8px; align-items: center;
	padding: 12px; pointer-events: none;
}
.ftm-topbar > * { pointer-events: auto; }
.ftm-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.ftm-filters::-webkit-scrollbar { display: none; }
.ftm-filters .ftm-chip { box-shadow: 0 2px 8px rgba(20,24,33,.12); border-color: transparent; }
.ftm-filters .ftm-chip.is-on { border-color: var(--ftm-ink); }
.ftm-is-single .ftm-filters { visibility: hidden; }
.ftm-fab {
	flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center;
	box-shadow: 0 2px 10px rgba(20,24,33,.18); color: var(--ftm-ink);
}
.ftm-fab.is-on { color: #1a73e8; }

/* Bottom sheet (mobile) */
.ftm-sheet {
	position: absolute; z-index: 600; left: 0; right: 0; bottom: 0; background: #fff;
	border-radius: 20px 20px 0 0; box-shadow: 0 -6px 24px rgba(20,24,33,.14);
	height: 42%; max-height: calc(100% - 64px); display: flex; flex-direction: column;
	transition: height .28s cubic-bezier(.2,.8,.2,1);
	padding-bottom: env(safe-area-inset-bottom);
}
.ftm-sheet.is-full { height: calc(100% - 64px); }
.ftm-sheet.is-min { height: 96px; }
.ftm-sheet.is-dragging { transition: none; }
.ftm-grabber { flex: none; display: block; width: 100%; height: 26px; border: 0; background: transparent; padding: 0; touch-action: none; }
.ftm-grabber span { display: block; width: 40px; height: 5px; margin: 10px auto; border-radius: 3px; background: #d4d6db; }
.ftm-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px 20px; }

@media (min-width: 900px) {
	.ftm-sheet, .ftm-sheet.is-full, .ftm-sheet.is-min {
		top: 70px; bottom: 12px; left: 12px; right: auto; width: 380px; height: auto; max-height: none;
		border-radius: var(--ftm-radius); box-shadow: var(--ftm-shadow);
	}
	.ftm-grabber { display: none; }
	.ftm-sheet-body { padding-top: 16px; }
	.ftm-topbar { left: 0; }
}

.ftm-list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 0 10px; }
.ftm-list-head h3 { font-size: 18px; font-weight: 700; }
.ftm-list-head small { color: var(--ftm-ink-3); font-size: 13px; }
.ftm-note { font-size: 13px; color: var(--ftm-ink-2); background: var(--ftm-bg-2); padding: 8px 12px; border-radius: 10px; margin: 0 0 10px; }

.ftm-item {
	display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 4px;
	background: none; border: 0; border-bottom: 1px solid var(--ftm-line);
}
.ftm-item:last-child { border-bottom: 0; }
.ftm-item:active { background: var(--ftm-bg-2); }
.ftm-avatar {
	flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--ftm-bg-2) center/cover no-repeat;
	display: grid; place-items: center; font-weight: 800; color: var(--ftm-brand); font-size: 18px; overflow: hidden;
}
.ftm-item-main { flex: 1; min-width: 0; }
.ftm-item-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftm-item-sub { font-size: 13px; color: var(--ftm-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftm-item-dist { flex: none; font-size: 13px; color: var(--ftm-ink-3); font-weight: 600; }
.ftm-status { font-size: 13px; font-weight: 600; color: var(--ftm-ink-2); }
.ftm-status.is-open { color: var(--ftm-open); }
.ftm-status.is-soon { color: var(--ftm-warn); }
.ftm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }

.ftm-empty { text-align: center; padding: 24px 12px; color: var(--ftm-ink-2); }
.ftm-empty strong { display: block; color: var(--ftm-ink); font-size: 17px; margin-bottom: 4px; }

/* Markers */
.ftm-marker { background: none; border: 0; }
.ftm-pin {
	position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff center/cover no-repeat;
	border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.28); display: grid; place-items: center;
	font-weight: 800; font-size: 15px; color: var(--ftm-brand); transition: transform .15s ease;
	outline: 2.5px solid var(--ftm-brand); outline-offset: -1px;
}
.ftm-pin::after {
	content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
	border: 6px solid transparent; border-top: 7px solid var(--ftm-brand);
}
.ftm-pin.is-open i { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ftm-open); border: 2px solid #fff; }
.ftm-pin.is-later { filter: grayscale(.5); opacity: .85; }
.ftm-pin.is-active { transform: scale(1.22); z-index: 1000; }
.ftm-pin-num { width: 32px; height: 32px; font-size: 14px; color: #fff; background: var(--ftm-brand); }
.ftm-me { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.2); }

/* ---------- Truck detail ---------- */
.ftm-detail-top { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ftm-back { border: 0; background: var(--ftm-bg-2); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.ftm-gallery {
	display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 14px; padding: 0 16px;
	scrollbar-width: none;
}
.ftm-gallery::-webkit-scrollbar { display: none; }
.ftm-gallery button { flex: none; width: 78%; max-width: 320px; aspect-ratio: 4/3; border: 0; padding: 0; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: var(--ftm-bg-2); }
.ftm-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ftm-gallery.is-one button { width: 100%; max-width: none; }
.ftm-detail-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.ftm-detail-head h2 { font-size: 22px; font-weight: 800; }
.ftm-detail-cuisine { color: var(--ftm-ink-2); font-size: 14px; }
.ftm-desc { color: var(--ftm-ink-2); font-size: 15px; margin: 8px 0 0; }
.ftm-where { background: var(--ftm-bg-2); border-radius: 14px; padding: 12px 14px; margin: 14px 0; display: grid; gap: 4px; }
.ftm-where-line { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.ftm-where-line .ftm-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ftm-ink-3); }
.ftm-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 0 0 12px; }
.ftm-actions .ftm-btn-line { width: 48px; padding: 0; }

.ftm-route { border: 1.5px solid var(--ftm-line); border-radius: 14px; padding: 14px; margin: 0 0 14px; }
.ftm-route-big { font-size: 22px; font-weight: 800; }
.ftm-route-sub { font-size: 13px; color: var(--ftm-ink-2); margin-bottom: 10px; }
.ftm-route .ftm-row .ftm-btn { min-height: 44px; font-size: 15px; }

.ftm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ftm-line); margin: 6px -16px 14px; padding: 0 16px; position: sticky; top: -1px; background: #fff; z-index: 2; overflow-x: auto; scrollbar-width: none; }
.ftm-tabs button { flex: none; border: 0; background: none; padding: 12px 10px; font-weight: 600; font-size: 15px; color: var(--ftm-ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.ftm-tabs button.is-on { color: var(--ftm-ink); border-color: var(--ftm-brand); }

.ftm-menu-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ftm-ink-3); font-weight: 700; margin: 16px 0 4px; }
.ftm-menu-item { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--ftm-line); }
.ftm-menu-item b { font-weight: 600; }
.ftm-menu-item small { display: block; color: var(--ftm-ink-2); font-size: 13px; margin-top: 2px; }
.ftm-price { font-weight: 700; white-space: nowrap; }

.ftm-sched-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ftm-line); }
.ftm-sched-day { flex: none; width: 52px; text-align: center; background: var(--ftm-bg-2); border-radius: 12px; padding: 6px 0; }
.ftm-sched-day b { display: block; font-size: 20px; line-height: 1; }
.ftm-sched-day small { font-size: 11px; text-transform: uppercase; color: var(--ftm-ink-2); font-weight: 700; }
.ftm-sched-item.is-now .ftm-sched-day { background: var(--ftm-brand); color: #fff; }
.ftm-sched-item.is-now .ftm-sched-day small { color: #fff; }
.ftm-sched-main { flex: 1; min-width: 0; font-size: 14px; }
.ftm-sched-main b { font-size: 15px; }
.ftm-sched-main span { color: var(--ftm-ink-2); display: block; }

.ftm-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ftm-photos button { border: 0; padding: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ftm-bg-2); }
.ftm-photos img { width: 100%; height: 100%; object-fit: cover; }

.ftm-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ftm-social-links a { text-decoration: none !important; color: var(--ftm-ink) !important; }
.ftm-embed { width: 100%; border: 0; border-radius: 12px; background: var(--ftm-bg-2); margin: 0 0 12px; display: block; }

/* Lightbox */
.ftm-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(10,10,12,.94); display: flex; flex-direction: column; }
.ftm-lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; }
.ftm-lightbox-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ftm-lightbox-track::-webkit-scrollbar { display: none; }
.ftm-lightbox-track img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }

/* ---------- Next-stop card ---------- */
.ftm-next { border: 1px solid var(--ftm-line); border-radius: var(--ftm-radius); padding: 16px; background: #fff; }
.ftm-next-badge { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ftm-ink-2); margin-bottom: 6px; }
.ftm-next-badge.is-open { color: var(--ftm-open); }
.ftm-next-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--ftm-line); font-size: 14px; }
.ftm-next-row.is-first { border-top: 0; font-size: 16px; }
.ftm-next-row span { color: var(--ftm-ink-2); }
.ftm-next-more { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; }

/* ---------- Dashboard / signup / draft ---------- */
.ftm-app { max-width: 560px; margin: 0 auto; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.ftm-auth { max-width: 440px; margin: 0 auto; }
.ftm-auth .ftm-card h2 { font-size: 24px; margin-bottom: 12px; }
.ftm-auth form p { margin: 0 0 12px; }
.ftm-auth label { display: block; font-size: 13px; font-weight: 600; color: var(--ftm-ink-2); margin-bottom: 6px; }
.ftm-auth input[type=text], .ftm-auth input[type=password] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--ftm-line); border-radius: 12px; font-size: 16px; }
.ftm-auth input[type=submit] { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--ftm-brand); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.ftm-auth .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.ftm-hero { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.ftm-hero h2 { font-size: 22px; font-weight: 800; }
.ftm-hero .ftm-avatar { width: 48px; height: 48px; }
.ftm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ftm-bg-2); color: var(--ftm-ink-2); }
.ftm-pill.is-ok { background: #e9f8ef; color: #0d6b37; }
.ftm-pill.is-warn { background: #fff4e0; color: #8a5200; }
.ftm-pill.is-err { background: #fdecea; color: #a1281c; }

.ftm-section { margin: 0 0 22px; }
.ftm-section > h3 { font-size: 15px; font-weight: 700; color: var(--ftm-ink-2); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }

.ftm-stop { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--ftm-line); border-radius: 14px; margin: 0 0 8px; background: #fff; }
.ftm-stop-main { flex: 1; min-width: 0; font-size: 14px; }
.ftm-stop-main b { display: block; font-size: 15px; }
.ftm-stop-main span { color: var(--ftm-ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftm-icon-btn { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--ftm-bg-2); display: grid; place-items: center; font-size: 18px; color: var(--ftm-ink-2); }

.ftm-textbox { background: linear-gradient(135deg, #fff7f3, #fff); border: 1.5px dashed color-mix(in srgb, var(--ftm-brand) 40%, #fff); border-radius: 14px; padding: 14px; font-size: 14px; }
.ftm-textbox code { display: block; background: #fff; border: 1px solid var(--ftm-line); border-radius: 10px; padding: 10px; margin: 8px 0; font-family: inherit; font-size: 14px; color: var(--ftm-ink); }

/* Bottom nav */
.ftm-nav {
	position: fixed; z-index: 9999; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-top: 1px solid var(--ftm-line); display: flex; justify-content: center;
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.ftm-nav-inner { display: flex; width: 100%; max-width: 560px; }
.ftm-nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--ftm-ink-3); }
.ftm-nav button.is-on { color: var(--ftm-brand); }

/* Stop wizard */
.ftm-sheet-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(15,17,22,.45); display: flex; align-items: flex-end; justify-content: center; }
.ftm-modal {
	background: #fff; width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0;
	display: flex; flex-direction: column; animation: ftm-up .25s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 640px) { .ftm-sheet-modal { align-items: center; } .ftm-modal { border-radius: 22px; } }
@keyframes ftm-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ftm-modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ftm-line); }
.ftm-modal-head h3 { flex: 1; font-size: 18px; font-weight: 800; }
.ftm-steps { display: flex; gap: 6px; }
.ftm-steps i { width: 22px; height: 5px; border-radius: 3px; background: var(--ftm-line); }
.ftm-steps i.is-on { background: var(--ftm-brand); }
.ftm-modal-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.ftm-modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ftm-line); display: flex; gap: 10px; }
.ftm-modal-foot .ftm-btn { flex: 1; }
.ftm-modal-foot .ftm-btn-ghost { flex: 0 0 auto; }

.ftm-picker-map { height: 240px; border-radius: 14px; overflow: hidden; margin: 10px 0; position: relative; background: #eef0f2; z-index: 0; }
.ftm-picker-map .ftm-crosshair { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); pointer-events: none; color: var(--ftm-brand); filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.ftm-picker-map .ftm-crosshair svg { width: 40px; height: 40px; fill: var(--ftm-brand); stroke: #fff; }
.ftm-picked { font-size: 14px; background: var(--ftm-bg-2); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.ftm-search { position: relative; }
.ftm-suggest { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 12px; box-shadow: var(--ftm-shadow); overflow: hidden; }
.ftm-suggest button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 12px 14px; font-size: 15px; border-bottom: 1px solid var(--ftm-line); }
.ftm-suggest button:last-child { border-bottom: 0; }
.ftm-suggest button:active { background: var(--ftm-bg-2); }
.ftm-places { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.ftm-places::-webkit-scrollbar { display: none; }
.ftm-places .ftm-chip { height: auto; min-height: 44px; padding: 8px 14px; flex-direction: column; align-items: flex-start; gap: 0; border-radius: 14px; max-width: 220px; }
.ftm-places .ftm-chip small { font-weight: 500; color: var(--ftm-ink-3); font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }

.ftm-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 420px) { .ftm-days { grid-template-columns: repeat(5, 1fr); } }
.ftm-day { border: 1.5px solid var(--ftm-line); background: #fff; border-radius: 14px; padding: 8px 0; text-align: center; line-height: 1.15; }
.ftm-day small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ftm-ink-3); }
.ftm-day b { font-size: 20px; }
.ftm-day em { display: block; font-style: normal; font-size: 11px; color: var(--ftm-ink-3); }
.ftm-day.is-on { background: var(--ftm-brand); border-color: var(--ftm-brand); color: #fff; }
.ftm-day.is-on small, .ftm-day.is-on em { color: rgba(255,255,255,.85); }
.ftm-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.ftm-hours-row { display: grid; grid-template-columns: 74px 1fr 1fr; gap: 8px; align-items: center; margin: 0 0 8px; }
.ftm-hours-row > b { font-size: 14px; }
.ftm-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 4px 0 14px; }
.ftm-toggle input { width: 22px; height: 22px; accent-color: var(--ftm-brand); }

.ftm-menu-edit { display: grid; grid-template-columns: 1fr 96px 40px; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--ftm-line); }
.ftm-menu-edit .ftm-menu-desc { grid-column: 1 / 3; }
.ftm-menu-edit input { min-height: 44px; padding: 10px 12px; }
.ftm-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ftm-photo-grid > div, .ftm-photo-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ftm-bg-2); }
.ftm-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.ftm-photo-grid .ftm-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; display: grid; place-items: center; }
.ftm-photo-add { border: 2px dashed var(--ftm-line); display: grid; place-items: center; color: var(--ftm-ink-3); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.ftm-photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.ftm-toast { position: fixed; z-index: 100001; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ftm-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 600; box-shadow: var(--ftm-shadow); max-width: calc(100% - 32px); }
.ftm-toast.is-err { background: var(--ftm-danger); }

.ftm-pay { text-align: center; }
.ftm-pay .ftm-price-big { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.ftm-pay .ftm-price-big small { font-size: 16px; color: var(--ftm-ink-2); font-weight: 600; }
.ftm-venmo { background: #008cff !important; }
.ftm-raw { font-size: 14px; color: var(--ftm-ink-2); background: var(--ftm-bg-2); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-style: italic; }
