/* FoodLock: secure food delivery. The look of the guide app (food-lock):
   orange, white cards with soft shadows, large surfaces to press. On a phone the
   lock is one screen at a time, with nothing to scroll; on a wide screen, the
   numbers and every order. */
:root {
  --fl-orange: #ff5a1f; --fl-orange-dark: #e74a11; --fl-soft: #fff4ef; --fl-ink: #191919; --fl-muted: #707070;
  --fl-line: #e7e5e3; --fl-green: #1b8b5a; --fl-ok: #22c55e; --fl-bg: #f7f7f7; --fl-top: 62px;
  --fl-ease: cubic-bezier(.22,.68,0,1.2);
  /* every shade of the orange, by name: training mode turns them all green at once */
  --fl-orange-hi: #ff6e38; --fl-orange-deep: #ec4712; --fl-orange-edge: #f2b49b; --fl-tint: #fff1e9; --fl-tint-2: #fff0e7;
  --fl-orange-ink: #9a4a28; --fl-orange-rgb: 255,90,31; --fl-glow-rgb: 255,188,150;
  --fl-tint-soft: #fff0e9; --fl-tint-hover: #ffe3d6; --fl-stage: #fff7f3; --fl-tint-line: #ffd2bf; --fl-deep-ink: #6b3a22;
}
@media (min-width: 620px) { :root { --fl-top: 72px; } }
body { background: var(--fl-bg); }
body.fl-has-top { padding-top: var(--fl-top); }

/* ---- the top bar ---- */
.fl-top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--fl-top); padding: 0 max(14px, 4vw); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,.07); }
.fl-brand { display: flex; align-items: center; gap: 11px; color: var(--fl-ink); text-decoration: none; min-width: 0; }
.fl-mark { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--fl-orange); color: #fff; font-weight: 800; font-size: 19px; box-shadow: 0 8px 22px rgba(var(--fl-orange-rgb),.24); }
.fl-brand-text { display: grid; min-width: 0; }
.fl-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.fl-brand-sub { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #929292; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-top-right { display: flex; align-items: center; gap: 10px; }
.fl-who { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #555; background: #f1f1f0; border: 1px solid #e7e7e5; padding: 8px 12px; border-radius: 999px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-who i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #41b57a; box-shadow: 0 0 0 4px rgba(65,181,122,.12); }
@media (min-width: 620px) { .fl-who { display: inline-flex; } }
.fl-burger { position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.fl-burger:hover { background: #f2f1ef; }
.fl-burger span, .fl-burger span::before, .fl-burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--fl-ink); transition: transform .2s, background .2s; }
.fl-burger span { position: relative; }
.fl-burger span::before, .fl-burger span::after { content: ''; position: absolute; left: 0; }
.fl-burger span::before { top: -6px; } .fl-burger span::after { top: 6px; }
.fl-burger.open span { background: transparent; }
.fl-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.fl-burger.open span::after { transform: translateY(-6px) rotate(-45deg); }
/* the menu flows over the page, in the inverse colours: nothing below it moves */
.fl-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(14,13,13,.18); }
.fl-menu { position: fixed; z-index: 45; top: calc(var(--fl-top) + 8px); right: max(10px, 4vw); width: min(290px, calc(100vw - 20px)); padding: 8px; border-radius: 20px; background: #191919; color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: grid; gap: 2px; transform-origin: top right; animation: fl-drop .18s ease-out; }
@keyframes fl-drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.fl-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 13px; color: #fff; text-decoration: none; font-weight: 650; font-size: 16px; }
.fl-menu a:hover, .fl-menu a:focus-visible { background: #2b2a29; outline: none; }
.fl-menu .fl-menu-install { color: #ff8f5e; }
.fl-menu-who { display: grid; gap: 2px; margin-top: 6px; padding: 12px 14px 6px; border-top: 1px solid #343332; font-size: 12px; color: #9c9895; }
.fl-menu-who strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-menu .fl-menu-who { display: grid; min-height: 0; padding: 12px 14px 8px; border-radius: 0 0 13px 13px; font-size: 12px; font-weight: 500; color: #9c9895; text-decoration: none; cursor: pointer; }
.fl-menu-who strong b { color: var(--fl-orange); font-weight: 800; transition: margin .15s; }
.fl-menu-who:hover strong b { margin-left: 4px; }
a.fl-who { text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
a.fl-who:hover { border-color: var(--fl-orange); color: var(--fl-ink); }
.fl-menu .fl-menu-out { color: #ffb199; }

/* ---- shared pieces ---- */
.fl-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #8a8784; }
.fl-muted { color: var(--fl-muted); font-size: 13px; line-height: 1.5; }
.fl-ok { color: var(--fl-green); font-weight: 600; font-size: 13px; }
.fl-error { color: #b9402d; background: #fff0ee; border: 1px solid #f6d2cc; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 0; }
.fl-btn { position: relative; border: 0; border-radius: 14px; min-height: 48px; padding: 0 18px; font: inherit; font-weight: 750; font-size: 15px; background: var(--fl-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(var(--fl-orange-rgb),.2); transition: transform .15s, background .15s; }
.fl-btn:hover { background: var(--fl-orange-dark); }
.fl-btn:active { transform: scale(.98); }
.fl-btn:disabled { opacity: .55; cursor: default; }
.fl-btn-soft { background: var(--fl-tint-soft); color: var(--fl-orange-dark); box-shadow: none; }
.fl-btn-soft:hover { background: var(--fl-tint-hover); }
.fl-btn-ghost { background: #fff; color: #555; border: 1px solid var(--fl-line); box-shadow: none; }
.fl-btn-ghost:hover { background: #f4f3f1; }
.fl-btn-lg { min-height: 58px; width: 100%; font-size: 17px; }
.fl-btn input, .fl-alt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fl-link { border: 0; background: none; color: var(--fl-orange-dark); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0 6px; min-height: 44px; }
.fl-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 900; letter-spacing: .12em; padding: 7px 10px; color: var(--fl-orange-ink); background: var(--fl-tint-2); border-radius: 999px; white-space: nowrap; }
.fl-chip.ok { color: #135f3e; background: #e7f6ee; }
.fl-avatar { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--fl-orange); background: var(--fl-tint); font-weight: 900; font-size: 15px; }

/* ---- public: find a lock ---- */
.fl-card { background: #fff; border: 1px solid rgba(25,25,25,.08); border-radius: 26px; box-shadow: 0 18px 48px rgba(27,24,21,.06); padding: 24px; margin: 16px 0; min-width: 0; }
.fl-label { display: block; font-size: 12px; font-weight: 700; color: #5b5957; margin: 4px 0 8px; }
.fl-search-row { display: flex; gap: 10px; min-width: 0; }
.fl-search-row input { flex: 1; min-width: 0; border: 1px solid #dfdcd9; border-radius: 13px; padding: 13px 14px; font: inherit; font-size: 16px; }
.fl-demo-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.fl-demo-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: var(--fl-soft); min-width: 0; }
.fl-demo-list a { font-weight: 700; color: inherit; }
.fl-demo code, .fl-menu-demo code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .04em; }
.fl-menu-demo { display: grid; gap: 4px; padding: 12px 14px; margin-bottom: 6px; border-radius: 14px; background: #2a2928; color: #d9d5d1; font-size: 13px; }
.fl-menu-demo .fl-eyebrow { color: var(--fl-orange); }
.fl-menu-demo code { color: #fff; white-space: nowrap; }
.fl-forgot { justify-self: center; margin-top: 2px; }
.fl-signin > .fl-forgot { display: block; margin: 12px auto 0; }
.fl-sq { display: grid; gap: 10px; }
.fl-sq p { margin: 0; }
.fl-sq-on b { color: #157745; }
.fl-sq select { width: 100%; min-width: 0; border: 1px solid #dfdcd9; border-radius: 13px; padding: 12px 12px; font: inherit; font-size: 16px; background: #fff; }
.fl-sq-off { justify-self: start; }
.fl-receipt { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee9e3; }
.fl-receipt p { margin: 0; }
.fl-receipt input:not(:placeholder-shown) { text-transform: uppercase; letter-spacing: .08em; }
.fl-search-row input:focus, .fl-find:focus { outline: none; border-color: var(--fl-orange); box-shadow: 0 0 0 4px rgba(var(--fl-orange-rgb),.12); }
.fl-empty { display: grid; gap: 6px; margin-top: 16px; padding: 18px; border-radius: 16px; background: #f8f6f4; color: #555; }
.fl-result { margin-top: 18px; display: grid; gap: 16px; min-width: 0; }
.fl-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fl-result-head h2 { margin: 4px 0 0; font-size: 32px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.fl-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: .1em; padding: 8px 11px; color: var(--fl-orange-ink); background: var(--fl-tint-2); border-radius: 999px; white-space: nowrap; }
.fl-pill-ok { color: #135f3e; background: #e7f6ee; }
.fl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.fl-facts div { background: #faf9f8; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fl-facts dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #8a8784; text-transform: uppercase; }
.fl-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.fl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fl-photos figure, .fl-view-photos figure { margin: 0; background: #fff; border: 1px solid var(--fl-line); border-radius: 16px; overflow: hidden; }
.fl-photos img, .fl-view-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fl-photos figcaption, .fl-view-photos figcaption { font-size: 12px; color: var(--fl-muted); padding: 8px 10px; }
@media (max-width: 620px) { .fl-card { border-radius: 20px; padding: 16px; } .fl-result-head h2 { font-size: 26px; } }

/* ---- store: the queue (a phone: one screen, the list scrolls inside it) ---- */
/* the builder's heading is registered by app.js, out of reach of the block swap: the queue says it instead */
#obs-store-heading, #obs-handle-heading { display: none; }
.fl-locker { min-width: 0; }
.fl-queue { position: fixed; z-index: 10; top: var(--fl-top); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 0; background: var(--fl-bg); overflow: hidden; }
.fl-qhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.fl-qtitle { min-width: 0; }
.fl-qtitle .fl-eyebrow { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-qtitle h1 { margin: 4px 0 0; font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.fl-sync { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--fl-line); background: #fff; font: inherit; font-weight: 750; font-size: 14px; color: var(--fl-ink); cursor: pointer; box-shadow: 0 6px 16px rgba(27,24,21,.05); }
.fl-sync:disabled { opacity: .7; }
.fl-sync-icon { color: var(--fl-orange); font-size: 18px; display: inline-block; }
.fl-sync-icon.spin { animation: fl-spin .8s linear infinite; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.fl-syncline { display: flex; align-items: center; gap: 8px; min-height: 16px; font-size: 12px; font-weight: 700; color: #74716e; }
.fl-syncline i { width: 7px; height: 7px; border-radius: 50%; background: #41b57a; box-shadow: 0 0 0 4px rgba(65,181,122,.12); }
.fl-syncline.bad { color: #b9402d; } .fl-syncline.bad i { background: #e5533d; box-shadow: 0 0 0 4px rgba(229,83,61,.12); }
.fl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #ecebe9; }
.fl-tabs button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 750; font-size: 14px; color: #77736f; cursor: pointer; }
.fl-tabs button b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.07); font-size: 11px; }
.fl-tabs button.on { background: #fff; color: var(--fl-ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.fl-tabs button.on b { background: var(--fl-orange); color: #fff; }
.fl-find { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #dfdcd9; border-radius: 13px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; }
.fl-cols { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -14px; padding: 2px 14px calc(16px + env(safe-area-inset-bottom)); }
.fl-col { min-width: 0; }
.fl-col h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.fl-col h2 b { min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--fl-orange); color: #fff; font-size: 11px; }
.fl-col-done h2 b { background: #e7f6ee; color: #135f3e; }
.fl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fl-oc { width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; border: 1px solid rgba(25,25,25,.08); background: #fff; border-radius: 20px; box-shadow: 0 4px 14px rgba(27,24,21,.04); cursor: pointer; font: inherit; color: inherit; transition: transform .12s, box-shadow .12s; }
.fl-oc:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.fl-oc:active { transform: scale(.99); }
.fl-oc-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fl-oc-num { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--fl-orange); }
.fl-oc-main strong { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-oc-meta { font-size: 12px; color: var(--fl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-oc-side { flex: none; display: grid; justify-items: end; gap: 6px; }
.fl-oc-time { font-size: 11px; color: var(--fl-muted); white-space: nowrap; }
.fl-oc-go { font-size: 20px; font-weight: 700; color: var(--fl-orange); line-height: 1; }
.fl-oc-done { background: #fbfbfa; box-shadow: none; }
.fl-oc-done .fl-oc-num { color: #9a9794; }
.fl-none { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 28px 12px; color: var(--fl-muted); font-size: 13px; }
.fl-none strong { color: var(--fl-ink); font-size: 17px; }

/* ---- store: the lock, a step a screen ---- */
.fl-flow { position: fixed; z-index: 20; top: var(--fl-top); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: var(--fl-bg); overflow: hidden; }
.fl-flow-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fl-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fl-line); background: #fff; font-size: 15px; color: #555; cursor: pointer; }
.fl-ochip { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.fl-ochip strong { flex: none; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--fl-orange); }
.fl-ochip span { min-width: 0; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-dots { flex: none; display: flex; gap: 5px; }
.fl-dots i { width: 8px; height: 8px; border-radius: 50%; background: #dcd9d6; transition: background .2s, transform .2s; }
.fl-dots i.on { background: var(--fl-orange); }
.fl-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.fl-stage h1 { margin: 2px 0 4px; font-size: 32px; line-height: 1.02; font-weight: 800; letter-spacing: -.05em; }
.fl-names { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(92px, auto); align-content: start; gap: 10px; padding-bottom: 4px; }
.fl-name { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border-radius: 20px; border: 1.5px solid var(--fl-line); background: #fff; font: inherit; font-size: 15px; font-weight: 750; color: var(--fl-ink); cursor: pointer; text-align: center; box-shadow: 0 4px 14px rgba(27,24,21,.04); }
.fl-name:hover, .fl-code:hover { border-color: var(--fl-orange); background: var(--fl-soft); }
.fl-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.fl-code { min-height: 76px; border-radius: 20px; border: 1.5px solid var(--fl-line); background: #fff; font: inherit; font-size: 30px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--fl-ink); cursor: pointer; box-shadow: 0 4px 14px rgba(27,24,21,.04); }
.fl-codes.shake { animation: fl-shake .4s; }
@keyframes fl-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.fl-wrong { margin: 4px 0 0; color: #b9402d; font-weight: 700; text-align: center; }
.fl-stage-code .fl-btn-ghost { margin-top: auto; }

/* the camera: the order in the circle, as the guide app draws it */
.fl-stage-photo { gap: 12px; }
.fl-cam { position: relative; flex: 1; min-height: 0; border-radius: 24px; overflow: hidden; background: #272727; }
.fl-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-guide { position: absolute; left: 50%; top: 50%; width: min(68vw, 44vh, 340px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed rgba(255,255,255,.96); background: rgba(var(--fl-orange-rgb),.14); box-shadow: 0 0 0 100vmax rgba(0,0,0,.26); pointer-events: none; }
.fl-cam-tip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); max-width: calc(100% - 28px); padding: 9px 13px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-cam-live { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: rgba(0,0,0,.4); color: rgba(255,255,255,.85); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.fl-cam-live i { width: 7px; height: 7px; border-radius: 50%; background: #f04f32; }
.fl-cam-wait { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 13px; }
.fl-flash { position: absolute; inset: 0; background: #fff; pointer-events: none; animation: fl-flash .35s ease-out forwards; }
@keyframes fl-flash { from { opacity: .92; } to { opacity: 0; } }
.fl-cam-off { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; border-radius: 24px; border: 2px dashed var(--fl-orange-edge); background: var(--fl-soft); }
.fl-cam-off-icon { font-size: 44px; }
.fl-cam-off strong { font-size: 18px; }
.fl-cam-off .fl-btn-lg { margin-top: 8px; max-width: 360px; }
.fl-shutter-row { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.fl-alt { position: relative; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fl-line); background: #fff; font-weight: 700; font-size: 13px; color: #6d6965; cursor: pointer; }
.fl-shutter { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: var(--fl-orange); box-shadow: 0 0 0 2px var(--fl-orange), 0 12px 28px rgba(var(--fl-orange-rgb),.35); cursor: pointer; display: grid; place-items: center; transition: transform .12s; }
.fl-shutter:active { transform: scale(.92); }
.fl-shutter:disabled { opacity: .5; }
.fl-shutter-gap { width: 78px; }
.fl-step-tag { justify-self: end; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #9a9794; }

/* the lock: swipe up to lock, down to take the photo again */
.fl-stage-confirm { justify-content: center; }
.fl-swipe { position: relative; display: flex; flex-direction: column; gap: 10px; max-height: 100%; padding: 14px 18px; border-radius: 28px; background: #fff; border: 1px solid rgba(25,25,25,.08); box-shadow: 0 18px 48px rgba(27,24,21,.08); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; transition: transform .32s var(--fl-ease), box-shadow .2s, opacity .3s; }
.fl-swipe.dragging { transition: box-shadow .2s; cursor: grabbing; }
.fl-swipe.ok { box-shadow: 0 0 0 2px rgba(34,197,94,.55), 0 18px 48px rgba(27,24,21,.08); }
.fl-swipe.back { box-shadow: 0 0 0 2px rgba(var(--fl-orange-rgb),.45), 0 18px 48px rgba(27,24,21,.08); }
.fl-swipe-hint { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.fl-swipe-up { color: var(--fl-ok); }
.fl-swipe-down { color: var(--fl-orange); }
.fl-shot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fl-shot img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 3px solid var(--fl-orange); box-shadow: 0 6px 20px rgba(var(--fl-orange-rgb),.22); pointer-events: none; }
.fl-shot span { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--fl-orange); }
.fl-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fl-sheet-head h2 { margin: 2px 0 0; font-size: 32px; letter-spacing: -.045em; line-height: 1; overflow-wrap: anywhere; }
.fl-cust { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fl-cust div { min-width: 0; display: grid; }
.fl-cust strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-cust small { color: #999590; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-lines { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--fl-line); display: grid; gap: 6px; }
.fl-lines li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; min-width: 0; }
.fl-lines li span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-lines .fl-more { color: var(--fl-muted); font-size: 12px; padding-left: 44px; }
.fl-qty { flex: none; width: 32px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #f5f4f2; color: #77726f; font-size: 11px; }
.fl-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed #d9d5d1; font-size: 14px; }
.fl-total strong { font-size: 21px; }
.fl-note textarea { width: 100%; border: 1px solid #dfdcd9; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; resize: none; }
.fl-confirm-actions { display: flex; align-items: center; gap: 8px; }
.fl-confirm-actions .fl-btn:last-child { flex: 1; }
@media (max-height: 700px) {
  .fl-shot img { width: 80px; height: 80px; }
  .fl-sheet-head h2 { font-size: 26px; }
  .fl-stage h1 { font-size: 27px; }
  .fl-swipe { gap: 8px; padding: 12px 16px; }
}

.fl-stage-done { align-items: center; justify-content: center; text-align: center; }
.fl-done-mark { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--fl-ok); color: #fff; font-size: 58px; font-weight: 900; box-shadow: 0 18px 44px rgba(34,197,94,.35); animation: fl-pop .45s var(--fl-ease); }
@keyframes fl-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.fl-next { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9a9794; }
.fl-stage-view .fl-view-photos { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 10px; }
.fl-view-actions { display: flex; gap: 10px; }
.fl-view-actions .fl-btn { flex: 1; }

/* ---- a wide screen: the numbers and every order; the lock opens over them ---- */
.page:has(.fl-desk) { max-width: 1180px; }
.fl-desk .fl-queue { position: static; padding: 24px 0 48px; gap: 16px; background: transparent; overflow: visible; }
.fl-desk .fl-qtitle h1 { font-size: 48px; }
.fl-desk .fl-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; }
.fl-tile { display: grid; gap: 4px; align-content: end; min-height: 150px; padding: 20px 22px; border-radius: 24px; background: #fff; border: 1px solid rgba(25,25,25,.08); box-shadow: 0 12px 30px rgba(27,24,21,.05); color: #5b5957; font-weight: 650; }
.fl-tile-main { background: radial-gradient(circle at 82% 28%, rgba(var(--fl-glow-rgb),.55), transparent 30%), linear-gradient(135deg, var(--fl-orange-hi) 0%, var(--fl-orange) 55%, var(--fl-orange-deep) 100%); color: rgba(255,255,255,.85); border: 0; box-shadow: 0 18px 40px rgba(var(--fl-orange-rgb),.22); }
.fl-tile-main .fl-eyebrow { color: rgba(255,255,255,.7); }
.fl-num { font-size: 56px; line-height: .95; font-weight: 800; letter-spacing: -.06em; color: var(--fl-ink); }
.fl-tile-main .fl-num { color: #fff; font-size: 72px; }
.fl-desk .fl-find { max-width: 420px; }
.fl-desk .fl-cols { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.fl-desk .fl-col { padding: 18px; border-radius: 26px; background: #fff; border: 1px solid rgba(25,25,25,.08); box-shadow: 0 18px 48px rgba(27,24,21,.05); }
.fl-desk .fl-col .fl-oc { box-shadow: none; background: #fbfaf9; }
.fl-scrim-flow { position: fixed; inset: 0; z-index: 25; background: rgba(14,13,13,.45); backdrop-filter: blur(6px); }
.fl-desk .fl-flow { top: calc(50% + var(--fl-top) / 2); left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); z-index: 30; width: min(520px, 94vw); height: min(780px, calc(100vh - var(--fl-top) - 32px)); padding: 18px; border-radius: 30px; box-shadow: 0 40px 100px rgba(0,0,0,.3); }

/* ---- banners ---- */
.fl-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; background: #191919; color: #fff; padding: 12px 14px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.fl-banner p { margin: 0; flex: 1 1 200px; font-size: 14px; }
.fl-banner .fl-btn { min-height: 42px; }
.fl-banner .fl-btn-ghost { background: transparent; color: #ddd; border-color: #444; }
.fl-modal { border: 0; border-radius: 22px; padding: 24px; max-width: 420px; }
.fl-modal::backdrop { background: rgba(14,13,13,.55); backdrop-filter: blur(6px); }

/* ---- public: the landing (production's hero, and its queue card made "how it works") ---- */
.page:has(.fl-landing) { max-width: 1180px; }
.fl-landing { display: grid; grid-template-columns: 1.45fr .75fr; gap: 22px; align-items: stretch; padding: 28px 0 40px; }
.fl-hero { position: relative; overflow: hidden; min-height: 510px; border-radius: 32px; padding: 52px; color: #fff; background: radial-gradient(circle at 82% 28%, rgba(var(--fl-glow-rgb),.55), transparent 24%), linear-gradient(135deg, var(--fl-orange-hi) 0%, var(--fl-orange) 55%, var(--fl-orange-deep) 100%); box-shadow: 0 24px 58px rgba(var(--fl-orange-rgb),.22); }
.fl-hero-copy { position: relative; z-index: 2; width: 64%; }
.fl-eyebrow.fl-light { color: rgba(255,255,255,.7); }
.fl-hero-copy h1 { margin: 15px 0 18px; font-size: clamp(50px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.fl-hero-copy p { margin: 0; max-width: 510px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.55; }
.fl-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 35px; }
.fl-hero-btn { border: 0; background: #fff; color: var(--fl-ink); padding: 17px 20px; border-radius: 16px; display: inline-flex; align-items: center; gap: 28px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 12px 30px rgba(42,20,10,.14); transition: transform .18s; }
.fl-hero-btn:hover { transform: translateY(-2px); }
.fl-hero-btn .fl-arrow { font-size: 22px; color: var(--fl-orange); line-height: 1; }
.fl-hero-find { border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); color: #fff; padding: 15px 18px; border-radius: 16px; font: inherit; font-weight: 750; font-size: 15px; cursor: pointer; transition: background .18s; }
.fl-hero-find:hover { background: rgba(255,255,255,.22); }
.fl-hero-glow { position: absolute; right: -18%; bottom: -34%; width: 68%; height: 90%; border-radius: 50%; background: rgba(255,255,255,.1); filter: blur(1px); }
.fl-hero-stack { position: absolute; right: 38px; bottom: 50px; z-index: 2; width: 220px; }
.fl-float { background: rgba(255,255,255,.93); color: var(--fl-ink); border-radius: 16px; box-shadow: 0 18px 36px rgba(41,20,10,.14); backdrop-filter: blur(10px); }
.fl-float-small { margin-bottom: 10px; padding: 13px 15px; font-size: 12px; font-weight: 800; transform: rotate(3deg); }
.fl-float-order { padding: 15px; display: flex; align-items: center; gap: 11px; transform: rotate(-3deg); }
.fl-float-order strong, .fl-float-order small { display: block; }
.fl-float-order strong { font-size: 13px; }
.fl-float-order small { color: #8c8985; font-size: 11px; margin-top: 2px; }
.fl-badge { flex: none; width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; color: var(--fl-orange); background: var(--fl-tint); }
.fl-tiny-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fl-green); margin-right: 7px; }

.fl-how { min-height: 510px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid rgba(25,25,25,.08); border-radius: 26px; box-shadow: 0 18px 48px rgba(27,24,21,.06); min-width: 0; }
.fl-how-top { display: flex; align-items: center; justify-content: space-between; }
.fl-how-count { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--fl-orange); font-variant-numeric: tabular-nums; }
.fl-how-stage { flex: 1; min-height: 200px; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle at 50% 40%, var(--fl-stage) 0, #faf8f6 70%); overflow: hidden; }
.fl-how-stage svg { width: 100%; max-width: 340px; height: auto; display: block; }
.fl-how-text { min-height: 76px; }
.fl-how-text strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.fl-how-text p { margin: 4px 0 0; color: var(--fl-muted); font-size: 14px; line-height: 1.5; }
.fl-how-bar { height: 8px; background: #f0eeec; border-radius: 999px; overflow: hidden; }
.fl-how-bar span { display: block; height: 100%; background: var(--fl-orange); border-radius: inherit; transition: width .4s ease; }
.fl-how-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fl-how-step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fl-line); background: #fff; color: var(--fl-ink); font-size: 18px; cursor: pointer; }
.fl-how-step:hover { border-color: var(--fl-orange); color: var(--fl-orange); }
.fl-how-dots { display: flex; gap: 2px; }
.fl-how-dots button { width: 24px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.fl-how-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #dcd9d6; transition: width .2s, background .2s; }
.fl-how-dots button.on::after { width: 20px; border-radius: 4px; background: var(--fl-orange); }
/* the scenes move: a new one slides in, and each shows its one gesture */
.fl-scene-enter-active, .fl-scene-leave-active { transition: opacity .3s ease, transform .3s ease; }
.fl-scene-enter-from { opacity: 0; transform: translateX(18px); }
.fl-scene-leave-to { opacity: 0; transform: translateX(-18px); }
.fl-how-stage .fl-s-spin { animation: fl-spin 1.6s linear infinite; }
.fl-how-stage .fl-s-dash { animation: fl-dash 1s linear infinite; }
@keyframes fl-dash { to { stroke-dashoffset: -16; } }
.fl-how-stage .fl-s-rows rect { animation: fl-rise .5s ease-out both; }
@keyframes fl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fl-how-stage .fl-s-tap { transform-box: fill-box; transform-origin: center; animation: fl-tap 1.2s ease-out infinite; }
@keyframes fl-tap { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.fl-how-stage .fl-s-pop { animation: fl-pop-in .5s .5s var(--fl-ease) both; }
@keyframes fl-pop-in { from { opacity: 0; } to { opacity: 1; } }
.fl-how-stage .fl-s-guide { animation: fl-dash 2s linear infinite; }
.fl-how-stage .fl-s-flash { opacity: 0; animation: fl-shot 3.4s ease-out infinite; }
@keyframes fl-shot { 0%, 55% { opacity: 0; } 58% { opacity: .9; } 75%, 100% { opacity: 0; } }
.fl-how-stage .fl-s-up { animation: fl-up 1.4s .3s var(--fl-ease) both; }
@keyframes fl-up { from { transform: translateY(14px); } to { transform: translateY(-6px); } }
.fl-how-stage .fl-s-arrow { animation: fl-nudge 1s ease-in-out infinite alternate; }
@keyframes fl-nudge { from { transform: translateY(3px); } to { transform: translateY(-3px); } }
.fl-how-stage.still * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .fl-how-stage *, .fl-scene-enter-active, .fl-scene-leave-active { animation: none !important; transition: none !important; } }

/* the sign-in modal: the builder's own form, in FoodLock's card */
.fl-signin-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.fl-signin-scrim { position: absolute; inset: 0; background: rgba(14,13,13,.45); backdrop-filter: blur(8px); animation: fl-fade .2s ease-out; }
@keyframes fl-fade { from { opacity: 0; } }
.fl-signin { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px; border-radius: 26px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.3); animation: fl-drop .22s ease-out; }
.fl-signin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fl-signin-head h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -.04em; line-height: 1.05; }
.fl-signin > .fl-muted { margin: 10px 0 4px; }
.fl-signin .auth-form { max-width: none; margin: 8px 0 0; padding: 0; border: 0; background: none; gap: 12px; }
.fl-signin .auth-form h2 { display: none; }
.fl-signin .auth-form label { font-size: 12px; font-weight: 700; color: #5b5957; }
.fl-signin .auth-form input { border: 1px solid #dfdcd9; border-radius: 13px; padding: 13px 14px; font: inherit; font-size: 16px; }
.fl-signin .auth-form input:focus { outline: none; border-color: var(--fl-orange); box-shadow: 0 0 0 4px rgba(var(--fl-orange-rgb),.12); }
.fl-signin .auth-form .btn { min-height: 54px; margin-top: 6px; border: 0; border-radius: 14px; background: var(--fl-orange); color: #fff; font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 10px 24px rgba(var(--fl-orange-rgb),.2); cursor: pointer; }
.fl-signin .auth-form .btn:hover { background: var(--fl-orange-dark); }

/* ---- the customer: confirm, download, claim (the sign-in modal's card, again) ---- */
.fl-lock-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fl-lock-actions .fl-btn { flex: 1 1 200px; }
.fl-signin .auth-form textarea { border: 1px solid #dfdcd9; border-radius: 13px; padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; }
.fl-signin .auth-form textarea:focus { outline: none; border-color: var(--fl-orange); box-shadow: 0 0 0 4px rgba(var(--fl-orange-rgb),.12); }
.fl-claim-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fl-claim-shots figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.fl-claim-shots img { width: 100%; height: 100%; object-fit: cover; }
.fl-claim-shots .fl-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; font-size: 12px; }
.fl-claim-add { position: relative; grid-column: span 2; display: grid !important; place-items: center; min-height: 64px; border-radius: 12px; border: 2px dashed var(--fl-orange-edge); background: var(--fl-soft); color: var(--fl-orange-dark) !important; font-weight: 800 !important; font-size: 13px !important; cursor: pointer; }
.fl-claim-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fl-choose { display: grid; gap: 8px; }
.fl-setup { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--fl-soft); border: 1px solid var(--fl-tint-line); color: var(--fl-deep-ink); font-size: 13px; line-height: 1.45; }
.fl-setup strong { color: var(--fl-orange-dark); }

/* ---- the manager's pages ---- */
.fl-menu .fl-menu-on { background: #2b2a29; }
.fl-gate-inline { display: grid; place-items: center; padding: 28px 0; }
.fl-gate-inline .fl-signin { animation: none; box-shadow: 0 18px 48px rgba(27,24,21,.08); border: 1px solid rgba(25,25,25,.08); }
.fl-manager { display: grid; gap: 14px; padding: 18px 0 40px; min-width: 0; }
.page:has(.fl-manager) { max-width: 1180px; }
@media (min-width: 900px) { .fl-manager .fl-qtitle h1 { font-size: 44px; } }
.fl-tabs-3 { grid-template-columns: repeat(3, 1fr); }
.fl-mgr-body { display: grid; gap: 12px; min-width: 0; }
.fl-mgr-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.fl-mgr-tools .fl-find { flex: 1 1 240px; }
.fl-mgr-row { display: flex; align-items: center; gap: 8px; }
.fl-mgr-row .fl-oc { flex: 1; }
.fl-mgr-export { flex: none; }
.fl-mgr-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.fl-mgr-h b { min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: #f0eeec; color: #5b5957; font-size: 11px; }
.fl-mgr-sub { margin-top: 18px; }
.fl-mgr-settings { grid-template-columns: minmax(0, 1fr); }
/* the width decides, as the browser lays it out (not a flag the page set when it opened) */
@media (min-width: 900px) { .fl-manager .fl-mgr-settings { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.fl-mgr-settings .fl-card { margin: 0; display: grid; gap: 10px; }
.fl-mgr-form { display: grid; grid-template-columns: 1fr 1fr 110px auto; gap: 8px; align-items: end; }
.fl-mgr-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #5b5957; min-width: 0; }
.fl-mgr-form input { min-height: 46px; border: 1px solid #dfdcd9; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; min-width: 0; }
.fl-mgr-form input:focus { outline: none; border-color: var(--fl-orange); box-shadow: 0 0 0 4px rgba(var(--fl-orange-rgb),.12); }
.fl-mgr-form .fl-btn { min-height: 46px; }
.fl-mgr-edit { padding: 12px; border-radius: 18px; background: var(--fl-soft); grid-template-columns: 1fr 1fr 110px; }
.fl-mgr-edit .fl-mgr-acts { grid-column: 1 / -1; justify-content: flex-end; }
.fl-mgr-link { grid-template-columns: 1fr auto auto; }
.fl-off { opacity: .55; }
.fl-off input:disabled, .fl-off .fl-btn:disabled { cursor: not-allowed; }
.fl-mgr-emp { cursor: default; }
.fl-mgr-emp:hover { transform: none; box-shadow: 0 4px 14px rgba(27,24,21,.04); }
.fl-mgr-acts { flex: none; display: flex; gap: 4px; }
.fl-mgr-archived { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fl-mgr-archived li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #faf9f8; font-size: 14px; }
.fl-arch-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; flex: 1; min-width: 0; }
.fl-arch-acts { flex: none; display: flex; align-items: center; gap: 12px; }
.fl-arch-acts .fl-link { min-height: 32px; font-size: 13px; }
.fl-super-tools { margin: 4px 0 2px; }
.fl-super .fl-fold { margin-top: 14px; }
.fl-super .fl-fold + .fl-mgr-archived { margin-top: 8px; }
.fl-mgr-detail { overflow-y: auto; overscroll-behavior: contain; gap: 8px; padding-bottom: 8px; }
.fl-mgr-detail .fl-view-photos { flex: none; overflow: visible; }
.fl-claim { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(25,25,25,.08); }
.fl-claim header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.fl-claim header strong { color: var(--fl-orange-dark); }
.fl-claim p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .fl-mgr-form { grid-template-columns: 1fr 1fr; }
  .fl-mgr-form .fl-btn { grid-column: 1 / -1; }
  .fl-mgr-edit { grid-template-columns: 1fr 1fr; }
  .fl-mgr-link { grid-template-columns: 1fr 1fr; }
  .fl-mgr-link label { grid-column: 1 / -1; }
  .fl-mgr-link .fl-btn { grid-column: auto; }
  .fl-manager .fl-qhead .fl-btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .fl-tabs-3 button { font-size: 13px; }
}

/* ---- the landing's foot: fixed, quiet, and "Contact us" the one thing that calls ---- */
body.fl-has-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.fl-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px max(14px, 4vw) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(0,0,0,.07); }
.fl-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.fl-foot-links button { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 12.5px; font-weight: 600; color: #77736f; cursor: pointer; white-space: nowrap; }
.fl-foot-links button:hover, .fl-foot-links button:focus-visible { color: var(--fl-ink); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.fl-foot-dot { color: #c9c5c1; font-size: 12px; }
.fl-foot-contact { flex: none; display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; background: radial-gradient(circle at 82% 28%, rgba(var(--fl-glow-rgb),.55), transparent 40%), linear-gradient(135deg, var(--fl-orange-hi) 0%, var(--fl-orange) 55%, var(--fl-orange-deep) 100%); box-shadow: 0 10px 24px rgba(var(--fl-orange-rgb),.28); transition: transform .18s; }
.fl-foot-contact:hover { transform: translateY(-2px); }
.fl-foot-contact .fl-arrow { font-size: 18px; }
.fl-stub-part { margin: 12px 0 0; }
.fl-stub-part h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.fl-stub-part p { margin: 0; color: var(--fl-muted); font-size: 14px; line-height: 1.5; }
.fl-stub .fl-btn-lg { margin-top: 18px; }
.fl-contact-form > .fl-muted { margin: 0; }
.fl-contact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-contact-two label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* wide screens: a wider card with fields in pairs, so the form fits without a scrollbar */
@media (min-width: 621px) { .fl-contact .fl-signin { width: min(580px, 100%); } }
@media (min-width: 621px) and (max-height: 700px) {
  .fl-contact .fl-signin { padding: 16px 24px; }
  .fl-contact .fl-signin-head h2 { font-size: 28px; }
  .fl-contact .auth-form { gap: 9px; }
  .fl-contact .auth-form input { padding: 10px 14px; }
  .fl-contact .auth-form .btn { min-height: 48px; }
}
@media (max-width: 620px) {
  body.fl-has-foot { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .fl-foot { flex-direction: column-reverse; align-items: stretch; gap: 6px; padding-top: 10px; }
  .fl-foot-links { justify-content: center; }
  .fl-foot-links button { font-size: 11.5px; padding: 4px 1px; }
  .fl-foot-contact { justify-content: center; min-height: 44px; }
  .fl-contact-two { grid-template-columns: 1fr; }
}

/* ---- admin: the super admin ---- */
.fl-tabs-2 { grid-template-columns: 1fr 1fr; }
.fl-super-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fl-super-tiles .fl-tile { min-height: 120px; }
.fl-super-tiles .fl-num { font-size: 44px; }
.fl-super-tiles .fl-tile-main .fl-num { font-size: 52px; }
.fl-super-list .fl-oc { align-items: flex-start; }
.fl-super-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 2px; font-size: 12px; color: #5b5957; }
.fl-super-stats b { color: var(--fl-ink); font-size: 14px; }
.fl-note { padding: 10px 12px; border-radius: 12px; background: #e7f6ee; overflow-wrap: anywhere; }
.fl-pw { display: flex; gap: 6px; align-items: center; }
.fl-pw input { flex: 1; min-width: 0; }
.fl-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.fl-super-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fl-line); }
.fl-danger { color: #b9402d; }
.fl-promote { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--fl-soft); }
.fl-signin .fl-mgr-h { margin: 4px 0 0; }
.fl-signin .auth-form .fl-btn-ghost-form { background: #fff; color: #555; border: 1px solid var(--fl-line); box-shadow: none; }
/* tabs at the head of a card: Connections, Store password */
.fl-card-tabs { margin-bottom: 4px; }
/* on a phone the Connections card comes first, above the employees */
@media (max-width: 899px) { .fl-mgr-settings .fl-mgr-links-card { order: -1; } }
/* a list that folds away: its header is a button */
.fl-fold { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--fl-line); border-radius: 14px; background: #faf9f8; font: inherit; font-size: 15px; font-weight: 800; color: var(--fl-ink); cursor: pointer; text-align: left; }
.fl-fold:hover { background: #f4f3f1; }
.fl-fold b { min-width: 24px; height: 22px; margin-left: 6px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: #f0eeec; color: #5b5957; font-size: 11px; }
.fl-fold-mark { width: 10px; height: 10px; border-right: 2px solid #8a8784; border-bottom: 2px solid #8a8784; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.fl-fold[aria-expanded="true"] .fl-fold-mark { transform: rotate(225deg) translate(-2px, -2px); }
/* a password form in a card, as in the sign-in's modal */
.fl-card .fl-password { max-width: none; margin: 0; padding: 0; border: 0; background: none; display: flex; flex-direction: column; gap: 12px; }
.fl-card .fl-password label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: #5b5957; }
.fl-card .fl-password input { border: 1px solid #dfdcd9; border-radius: 13px; padding: 13px 14px; font: inherit; font-size: 16px; }
.fl-card .fl-password input:focus { outline: none; border-color: var(--fl-orange); box-shadow: 0 0 0 4px rgba(var(--fl-orange-rgb),.12); }
.fl-card .fl-password .btn { min-height: 50px; border: 0; border-radius: 14px; background: var(--fl-orange); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.fl-card .fl-password .btn:hover { background: var(--fl-orange-dark); }
.fl-password .fl-ok { margin: 0; }
@media (max-width: 900px) { .fl-super-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fl-super-tiles .fl-tile { min-height: 96px; padding: 14px 16px; } .fl-super-tiles .fl-num, .fl-super-tiles .fl-tile-main .fl-num { font-size: 34px; } .fl-super-tiles .fl-tile-main { grid-column: auto; } }

@media (max-width: 900px) {
  .fl-landing { grid-template-columns: 1fr; }
  .fl-hero, .fl-how { min-height: 390px; }
  .fl-hero { min-height: 0; padding: 40px; }
  .fl-hero-copy { width: 100%; }
  /* the cards follow the buttons, rather than float over them */
  .fl-hero-stack { position: relative; right: auto; bottom: auto; width: auto; margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .fl-float-small { margin-bottom: 0; }
}
@media (max-width: 620px) {
  .fl-landing { gap: 14px; padding: 14px 0 28px; }
  .fl-hero { padding: 26px 20px; min-height: auto; border-radius: 26px; }
  .fl-hero-copy { width: 100%; }
  .fl-hero-copy h1 { font-size: 40px; margin: 8px 0 10px; }
  .fl-hero-copy p { font-size: 14px; line-height: 1.45; }
  .fl-hero-actions { margin-top: 20px; gap: 10px; }
  .fl-hero-btn, .fl-hero-find { flex: 1 1 0; justify-content: center; padding: 15px 14px; font-size: 15px; gap: 14px; }
  .fl-hero-stack { display: none; }
  .fl-how { min-height: auto; padding: 20px 18px 16px; border-radius: 22px; }
  .fl-how-stage { min-height: 0; aspect-ratio: 320 / 220; }
  .fl-how-text { min-height: 84px; }
  .fl-how-text strong { font-size: 18px; }
  .fl-signin { padding: 20px; border-radius: 22px; }
  .fl-signin-head h2 { font-size: 27px; }
}

/* ---- the landing fits between the top bar and the footer: nothing to scroll ----
   Its height is the window's, less the top bar and the footer (measured, --fl-foot-h); the hero's words,
   its spacing and the scene in "How it works" grow and shrink with the height. Below a floor (a very
   short window) the page scrolls rather than squeeze further. */
body.fl-has-foot { padding-bottom: calc(var(--fl-foot-h, 76px)); }
.page:has(.fl-landing) { padding-top: 0; padding-bottom: 0; }
.fl-landing { box-sizing: border-box; height: calc(100vh - var(--fl-top) - var(--fl-foot-h, 76px)); height: calc(100dvh - var(--fl-top) - var(--fl-foot-h, 76px)); min-height: 440px; padding: clamp(10px, 2.6vh, 28px) 0; grid-template-rows: minmax(0, 1fr); }
.fl-hero, .fl-how { min-height: 0; }
.fl-hero { padding: clamp(24px, 6vh, 52px); display: flex; flex-direction: column; justify-content: center; }
.fl-hero-copy h1 { font-size: clamp(40px, min(6vw, 9.5vh), 78px); margin: clamp(8px, 1.6vh, 15px) 0 clamp(10px, 2vh, 18px); }
.fl-hero-actions { margin-top: clamp(16px, 4vh, 35px); }
.fl-how { padding: clamp(14px, 3vh, 26px) clamp(16px, 2vw, 26px) clamp(12px, 2.4vh, 22px); gap: clamp(6px, 1.3vh, 12px); }
.fl-how-stage { flex: 1 1 0; min-height: 0; }
.fl-how-stage svg { width: 100%; height: 100%; max-width: 100%; }
.fl-how-text { min-height: 0; }
.fl-how-text p { min-height: 3em; }
@media (max-width: 900px) {
  /* stacked: the hero as tall as its words, "How it works" takes what is left */
  .fl-landing { display: flex; flex-direction: column; min-height: 520px; }
  .fl-hero { flex: none; padding: clamp(20px, 3.4vh, 40px); }
  .fl-how { flex: 1 1 0; min-height: 0; }
  .fl-hero-stack { display: none; }
}
@media (max-width: 900px) and (min-height: 1200px) { .fl-hero-stack { display: flex; } }
@media (max-width: 620px) {
  /* phones: fill the screen when it is tall enough, and scroll when it is not,
     so the slide's words never sit on the picture */
  .fl-landing { gap: 10px; padding: 10px 0; height: auto; min-height: calc(100vh - var(--fl-top) - var(--fl-foot-h, 76px)); min-height: calc(100dvh - var(--fl-top) - var(--fl-foot-h, 76px)); }
  .fl-how { flex: 1 0 auto; }
  .fl-how > * { flex-shrink: 0; }
  .fl-hero { padding: clamp(16px, 2.6vh, 24px) 18px; }
  .fl-hero-copy h1 { font-size: clamp(30px, 4.6vh, 40px); margin: 6px 0 8px; }
  .fl-hero-copy p { font-size: 13.5px; line-height: 1.4; }
  .fl-hero-actions { margin-top: clamp(12px, 2vh, 20px); }
  .fl-hero-btn, .fl-hero-find { padding: 13px 12px; }
  .fl-how { padding: 12px 14px 10px; gap: 6px; border-radius: 22px; }
  .fl-how-stage { flex: 1 0 auto; aspect-ratio: auto; height: 150px; min-height: 150px; }
  .fl-how-text strong { font-size: 16px; }
  .fl-how-text p { margin-top: 2px; font-size: 13px; line-height: 1.4; min-height: 2.8em; }
  .fl-how-step { width: 38px; height: 38px; }
  .fl-how-dots button { height: 38px; }
  /* the footer: Contact us, and the four policies on one short line */
  .fl-foot { gap: 4px; padding-top: 8px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .fl-foot-contact { min-height: 42px; }
  .fl-foot-links { gap: 0 4px; }
  .fl-foot-links button { font-size: 11px; padding: 3px 0; }
}
@media (max-width: 400px) {
  .fl-foot { padding-left: 10px; padding-right: 10px; }
  .fl-foot-links { flex-wrap: nowrap; gap: 0 3px; }
  .fl-foot-links button { font-size: 10.5px; letter-spacing: -.01em; }
  .fl-foot-dot { font-size: 10px; }
}

/* ---- training mode: the same screens, the orange turned green: OKLCH hue 155, tints at the orange's
   lightness and chroma, solid steps 0.08 darker so white on them reads as well as on the orange ---- */
body.fl-training {
  --fl-orange: #019a58; --fl-orange-dark: #02864c; --fl-orange-hi: #00a35d; --fl-orange-deep: #03884d; --fl-orange-edge: #9bd4ae; --fl-soft: #f0f9f3; --fl-tint: #ebf8ef; --fl-tint-2: #e9f8ed; --fl-orange-ink: #157745; --fl-tint-soft: #eaf7ee; --fl-tint-hover: #d8f1df; --fl-stage: #f4fbf6; --fl-tint-line: #c0e9cd; --fl-deep-ink: #1f5536;
  --fl-orange-rgb: 1,154,88; --fl-glow-rgb: 156,224,179;
}
.fl-menu .fl-menu-train { color: #5fe0a5; }
.fl-menu .fl-menu-train-out { color: #ff8f5e; }
.fl-train-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--fl-tint); border: 1px solid var(--fl-orange-edge); color: var(--fl-orange-ink); font-size: 13px; font-weight: 650; line-height: 1.35; }
.fl-train-tag, .fl-flow-train { flex: none; padding: 5px 9px; border-radius: 999px; background: var(--fl-orange); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.fl-train-words { flex: 1; min-width: 0; }
.fl-train-bar button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--fl-orange-edge); background: #fff; color: var(--fl-orange-ink); font: inherit; font-weight: 800; cursor: pointer; }
.fl-train-bar button:hover { border-color: var(--fl-orange); }
.fl-name-demo { padding: 3px 7px; border-radius: 999px; background: var(--fl-tint); color: var(--fl-orange-ink); font-size: 9.5px; font-weight: 900; letter-spacing: .12em; }
.fl-code.fl-code-hint { border: 2.5px solid #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.14); }
.fl-train-tip { margin: 0; text-align: center; color: var(--fl-orange-ink); font-size: 13px; font-weight: 650; }
/* the way into training, on the manager's pages: in training's own green, whatever the brand */
.fl-mgr-heads { flex: none; display: flex; gap: 8px; }
.fl-btn.fl-btn-train { background: #019a58; box-shadow: 0 10px 24px rgba(1,154,88,.2); }
.fl-btn.fl-btn-train:hover { background: #02864c; }
@media (max-width: 619px) { .fl-manager .fl-qhead:has(.fl-mgr-heads) { flex-wrap: wrap; } .fl-mgr-heads { width: 100%; } .fl-mgr-heads .fl-btn { flex: 1; padding: 0 12px; } }
/* one update notice: FoodLock's (foodlock.js refresh); the export's quiet one says the same, so it is hidden */
.cs-update:not(.cs-update-blocking) { display: none !important; }

/* ---- analytics: the super admin's tab, and a store's Analysis tab ---- */
.fl-tabs-4 { grid-template-columns: repeat(4, 1fr); }
.fl-tabs-4 button { line-height: 1.15; padding: 4px 6px; }
@media (max-width: 620px) { .fl-tabs-4 button { font-size: 12px; padding: 4px 2px; } }
.fl-analytics { display: grid; gap: 14px; }
.fl-an-note { margin: 0; font-size: 13px; }
.fl-tiles.fl-an-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 1200px) { .fl-tiles.fl-an-tiles { grid-template-columns: 1.3fr repeat(5, 1fr); } }
.fl-an-tiles .fl-tile { min-height: 112px; }
.fl-an-tiles .fl-num { font-size: 40px; }
.fl-an-tiles .fl-num small { font-size: 15px; font-weight: 750; letter-spacing: 0; margin-left: 2px; }
.fl-an-tiles .fl-tile-main .fl-num { font-size: 48px; }
@media (max-width: 620px) { .fl-tiles.fl-an-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .fl-an-tiles .fl-tile { min-height: 92px; padding: 14px 16px; } .fl-an-tiles .fl-num, .fl-an-tiles .fl-tile-main .fl-num { font-size: 32px; } }
.fl-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.fl-chart { min-width: 0; padding: 16px 18px 14px; border-radius: 22px; background: #fff; border: 1px solid rgba(25,25,25,.08); box-shadow: 0 12px 30px rgba(27,24,21,.05); }
.fl-chart header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fl-chart h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.02em; }
.fl-chart-sum { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--fl-orange); line-height: 1; }
.fl-chart-stub { background: #faf9f8; box-shadow: none; }
.fl-bars { position: relative; }
.fl-bars-max { position: absolute; top: -2px; left: 0; font-size: 11px; font-weight: 700; color: #8a8784; }
.fl-bars-plot { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 16px; border-bottom: 1px solid var(--fl-line); }
.fl-bar { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.fl-bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: rgba(var(--fl-orange-rgb), .38); transition: height .4s var(--fl-ease); }
.fl-bar.now i { background: var(--fl-orange); }
.fl-bar:hover i { background: var(--fl-orange-dark); }
.fl-bars-labels { display: flex; gap: 4px; margin-top: 5px; }
.fl-bars-labels span { flex: 1; min-width: 0; text-align: center; font-size: 10px; font-weight: 650; color: #9a9794; overflow: hidden; white-space: nowrap; }
.fl-bars-empty .fl-bar i { background: #ecebe9; }
.fl-bars-empty .fl-bars-plot { opacity: .9; }
.fl-bars-word { margin: 10px 0 0; font-size: 13px; color: var(--fl-muted); }
.fl-bars-empty .fl-bars-word { position: absolute; left: 0; right: 0; top: 46px; margin: 0; text-align: center; font-weight: 650; color: #5b5957; padding: 0 12px; }
.fl-rank { display: grid; gap: 9px; }
.fl-rank-row { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.fl-rank-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-rank-track { height: 10px; border-radius: 999px; background: #f0eeec; overflow: hidden; }
.fl-rank-track i { display: block; height: 100%; border-radius: inherit; background: var(--fl-orange); }
.fl-rank-row b { font-variant-numeric: tabular-nums; }
/* a switch: a checkbox drawn as a track and a knob */
.fl-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 750; color: #5b5957; }
.fl-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fl-switch i { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: #dcd9d6; transition: background .2s; }
.fl-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--fl-ease); }
.fl-switch input:checked + i { background: var(--fl-orange); }
.fl-switch input:checked + i::after { transform: translateX(16px); }
.fl-switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(var(--fl-orange-rgb), .2); }
.fl-store-li { position: relative; }
.fl-super-list .fl-store-li .fl-oc { padding-bottom: 46px; }
.fl-li-switch { position: absolute; right: 16px; bottom: 13px; flex-direction: row-reverse; }
.fl-switch-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #faf9f8; border: 1px solid var(--fl-line); }
.fl-switch-words { display: grid; gap: 2px; }
.fl-switch-words b { font-size: 14px; color: var(--fl-ink); }
.fl-switch-words small { font-size: 12px; font-weight: 500; color: var(--fl-muted); }
.fl-signin .auth-form .fl-switch-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; }
@media (min-width: 621px) { .fl-store-modal { width: min(580px, 100%); } }

/* ---- a search: on a wide screen it says what it finds, beside it; a magnifying glass inside, right ---- */
.fl-field-find { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fl-find-label { display: none; flex: none; font-size: 14px; font-weight: 750; color: #5b5957; white-space: nowrap; }
.fl-find-box { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.fl-find-box .fl-find { display: block; max-width: none; padding-right: 42px; }
.fl-find::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.fl-find-icon { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #8a8784; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; transition: stroke .15s; }
.fl-find-box:focus-within .fl-find-icon { stroke: var(--fl-orange); }
.fl-mgr-tools .fl-field-find { flex: 1 1 240px; }
@media (min-width: 900px) {
  .fl-find-label { display: inline; }
  .fl-find-box { max-width: 440px; }
  .fl-mgr-tools .fl-field-find { flex: 0 1 auto; }
  .fl-mgr-tools .fl-find-box { width: 440px; }
}
/* the store buttons: in the heading on a wide screen, in the Stores tab on a phone */
.fl-store-acts { display: none; }
@media (max-width: 619px) {
  .fl-store-heads { display: none; }
  .fl-store-acts { display: flex; }
}
