/* ==========================================================================
   Popluck v3 — “Hearth” design system, second edition.
   Editorial minimalism: warm paper, near-black ink, one ember accent,
   hairlines over shadows, confident type. Light / dark / system.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper:   #FAF9F6;
  --paper-2: #F1EFE9;
  --card:    #FFFFFF;
  --ink:     #16150F;
  --ink-2:   #6E685D;
  --ink-3:   #A59E8F;
  --line:    #E6E2D8;
  --line-2:  #D8D3C6;

  --accent:      #E8501F;   /* ember — matches the marketing site (was spruce #0E6B52) */
  --accent-deep: #C8400F;
  --accent-soft: #FBEAE2;
  --accent-ink:  #FAF9F6;

  --ok:   #1E7A46;  --ok-soft:   #E4F0E8;
  --warn: #A8730F;  --warn-soft: #F5ECD8;
  --bad:  #B3341F;  --bad-soft:  #F7E7E2;
  --info: #2A628F;  --info-soft: #E4EDF5;

  --font: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --ease: 160ms cubic-bezier(.4, 0, .2, 1);
  --float: 0 24px 70px rgba(22, 21, 15, .22);

  --rail-w: 216px;
  color-scheme: light;
}

.theme-dark {
  --paper:   #151410;
  --paper-2: #1E1C17;
  --card:    #1B1A15;
  --ink:     #EFECE4;
  --ink-2:   #9B9486;
  --ink-3:   #6B655A;
  --line:    #2B2922;
  --line-2:  #3A372E;
  --accent:      #F1794C;
  --accent-deep: #F5936F;
  --accent-soft: #33211A;
  --accent-ink:  #1C120C;
  --ok:   #55A878;  --ok-soft:   #1D2B22;
  --warn: #CE9A3F;  --warn-soft: #2C2516;
  --bad:  #D96B5C;  --bad-soft:  #321E19;
  --info: #6BA3CE;  --info-soft: #1B2733;
  --float: 0 24px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------------------------------------------------------- base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 15px/1.6 var(--font);
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------------------------------------------------- type */
h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: .95rem; font-weight: 750; letter-spacing: -.01em; }
h4 { font-size: .88rem; font-weight: 700; }
p { margin-bottom: .7em; }
.display { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.micro {
  font-size: .66rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
}
.muted { color: var(--ink-2); }
.small { font-size: .82rem; }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .85em; }
a.plain { text-decoration: none; }
a.plain:hover { text-decoration: underline; }
kbd {
  font: 650 .7rem var(--font); color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px; padding: 0 5px;
}
.hairline { border: 0; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- utilities */
.flex { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.right { margin-left: auto; }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: .88rem; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: transform var(--ease), opacity var(--ease), border-color var(--ease), background var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { opacity: .86; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .35; cursor: default; transform: none; pointer-events: none; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* primary = ink pill; accent reserved for the one action that matters */
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); opacity: 1; }

/* quiet variants */
.btn:not(.btn-primary):not(.btn-accent):not(.btn-danger),
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn:not(.btn-primary):not(.btn-accent):not(.btn-danger):hover { border-color: var(--ink); opacity: 1; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); border-color: transparent; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--line-2); }
.btn-danger:hover { border-color: var(--bad); opacity: 1; }
.btn-sm { min-height: 32px; padding: 0 13px; font-size: .8rem; }
.btn-icon { min-height: 36px; width: 36px; padding: 0; border-radius: 50%; }
.btn-icon svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------- forms */
label.fld { display: block; margin-bottom: 14px; }
label.fld > span {
  display: block; font-size: .72rem; font-weight: 750; letter-spacing: .04em;
  color: var(--ink-2); margin-bottom: 6px;
}
.input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: 9px 14px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color var(--ease);
}
.input:focus { outline: none; border-color: var(--ink); }
textarea.input { min-height: 72px; resize: vertical; }
.input::placeholder { color: var(--ink-3); }
.fld .hint { font-size: .76rem; color: var(--ink-2); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: auto; min-height: 0; }

/* ---------------------------------------------------------- cards & lists */
.card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
}
.card-pad { padding: 20px 22px; }
.card h3 { margin-bottom: 12px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-bottom: 1px solid var(--line);
}
.card-head h3 { margin: 0; }
.card-head .small a, .card-head a.small { color: var(--ink-2); }

/* ---------------------------------------------------------- badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; padding: 2px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-2);
}
.badge-ok     { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn   { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge-info   { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 650; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  text-decoration: none; cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------- avatar */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--ink-2);
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  user-select: none;
}
.avatar-lg { width: 46px; height: 46px; font-size: 1rem; }

/* ---------------------------------------------------------- tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: .64rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--ease); }
.tbl tbody tr:hover { background: var(--paper-2); }
.tbl tbody tr.rowlink { cursor: pointer; }
.tbl-wrap { overflow-x: auto; }

/* ---------------------------------------------------------- empty state */
.empty { text-align: center; padding: 48px 24px; color: var(--ink-2); }
.empty svg { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--ink-3); }
.empty h4 { color: var(--ink); font-size: 1rem; font-weight: 750; margin-bottom: 4px; }
.empty p { max-width: 400px; margin: 0 auto 16px; font-size: .85rem; }

/* ---------------------------------------------------------- app shell */
.shell { display: flex; min-height: 100dvh; }

.sidebar {
  width: var(--rail-w); flex: none;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh;
  padding: 20px 12px 12px;
  background: var(--paper);
}
.brandmark {
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  padding: 0 10px; text-decoration: none; display: block;
}
.brandmark .spark { color: var(--accent); }
.side-org {
  display: flex; align-items: center; gap: 6px; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: .78rem; color: var(--ink-2); padding: 2px 10px 16px;
}
.side-org b { font-weight: 700; color: var(--ink-2); }
.side-org svg { width: 12px; height: 12px; flex: none; }
.side-org:hover b { color: var(--ink); }

.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
/* Hairline scrollbar: invisible at rest, a soft thumb while hovering the rail. */
.side-nav {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.sidebar:hover .side-nav {
  scrollbar-color: color-mix(in srgb, var(--ink-3) 38%, transparent) transparent;
}
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
.sidebar:hover .side-nav::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink-3) 38%, transparent);
}
.side-group {
  font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); padding: 16px 10px 6px;
}
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 10px;
  color: var(--ink-2); font-weight: 650; font-size: .9rem;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.side-link svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.side-link:hover { color: var(--ink); background: var(--paper-2); }
.side-link.active { color: var(--ink); background: var(--paper-2); }
.side-link.active svg { color: var(--accent); }
.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px 0;
}
.searchbtn {
  display: flex; align-items: center; gap: 9px;
  min-width: 230px; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink-3); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: border-color var(--ease);
}
.searchbtn:hover { border-color: var(--ink-2); }
.searchbtn svg { width: 14px; height: 14px; }
.searchbtn kbd { margin-left: auto; }

.content { padding: 22px 28px 90px; max-width: 1160px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-2); font-size: .82rem; margin-top: 3px; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: .64rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; line-height: 1.2; }
.stat .d { font-size: .76rem; color: var(--ink-2); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-grid { display: grid; grid-template-columns: 336px 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .grid-2, .grid-3, .detail-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- dropdown menu */
.menu-wrap { position: relative; }
.menu {
  position: absolute; min-width: 220px; z-index: 90;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--float);
  padding: 8px; margin-top: 8px; right: 0;
}
.menu.left { right: auto; left: 0; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: 0; background: none; border-radius: 10px;
  color: var(--ink); font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer;
  text-decoration: none;
}
.menu a:hover, .menu button:hover { background: var(--paper-2); }
.menu svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 7px 6px; }
.menu .danger { color: var(--bad); }
.menu .danger svg { color: var(--bad); }
.menu .menu-head {
  padding: 8px 11px 3px;
  font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------------------------------------------------------- dialog (sheet) */
dialog.dlg {
  border: 0; padding: 26px 24px;
  background: var(--paper); color: var(--ink);
  width: min(480px, 100vw);
  border-radius: 22px; margin: auto;
  box-shadow: var(--float);
}
dialog.dlg::backdrop { background: rgba(22, 21, 15, .42); }
dialog.dlg.wide { width: min(660px, 100vw); }
@media (max-width: 719px) {
  dialog.dlg, dialog.dlg.wide {
    margin: auto 0 0; width: 100vw; max-width: 100vw;
    border-radius: 22px 22px 0 0;
    animation: sheetUp .22s cubic-bezier(.3, 0, .2, 1);
    max-height: 92dvh; overflow-y: auto;
  }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.dlg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dlg-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.dlg-body { }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------------------------------------------------------- toast */
#pl3-toasts {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column-reverse; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 11px 20px;
  font-weight: 650; font-size: .88rem; white-space: nowrap;
  animation: toast-in .2s ease-out;
}
.toast.err { background: var(--bad); color: #fff; }
.toast.ok  { background: var(--accent); color: var(--accent-ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------- command palette */
#pl3-palette {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(22, 21, 15, .42); display: none;
  padding: 12vh 16px 0;
}
#pl3-palette.open { display: block; }
.palette {
  max-width: 560px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--float);
  overflow: hidden;
}
.palette input {
  width: 100%; border: 0; outline: none; background: transparent;
  padding: 17px 22px; font-size: 1rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.palette input::placeholder { color: var(--ink-3); }
.palette-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.palette-group {
  font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 14px 4px;
}
.palette-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 12px; cursor: pointer;
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.palette-item svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.palette-item .sub { margin-left: auto; color: var(--ink-3); font-size: .76rem; font-weight: 500; }
.palette-item.sel, .palette-item:hover { background: var(--paper-2); }
.palette-empty { padding: 24px; text-align: center; color: var(--ink-2); font-size: .85rem; }

/* ---------------------------------------------------------- notifications */
.notif-panel { width: 340px; max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; align-items: flex-start; }
.notif:hover { background: var(--paper-2); }
.notif .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.notif.read .dot { background: transparent; }
.notif b { font-size: .85rem; font-weight: 700; display: block; }
.notif .small { display: block; font-weight: 500; }

/* ---------------------------------------------------------- auth & public */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card .card-pad { padding: 30px; }
.wordmark {
  display: inline-flex; align-items: baseline;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  text-decoration: none;
}
.wordmark .spark { color: var(--accent); }

/* ---------------------------------------------------------- marketing site */
.mk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.mk-nav {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mk-nav-inner { display: flex; align-items: center; gap: 26px; padding: 15px 28px; max-width: 1120px; margin: 0 auto; }
.mk-nav-links { display: flex; gap: 22px; }
.mk-nav-links a { font-size: .88rem; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.mk-nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .mk-nav-links { display: none; } }

.mk-hero { padding: 84px 0 30px; display: grid; grid-template-columns: 1fr; gap: 40px; }
.mk-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.033em; line-height: 1.05; max-width: 820px; margin-bottom: 20px; }
.mk-hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; margin-bottom: 30px; line-height: 1.65; }
.mk-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.mk-hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.mk-hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* browser-framed product shot */
.mk-browser {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(22, 21, 15, .14), 0 4px 16px rgba(22, 21, 15, .06);
}
.mk-browser .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.mk-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mk-browser .bar .url {
  margin: 0 auto; font-size: .7rem; font-weight: 650; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px;
}
.mk-browser img { width: 100%; display: block; }

/* trusted-by strip */
.mk-trust { padding: 34px 0 8px; }
.mk-trust .names { display: flex; gap: 34px; flex-wrap: wrap; align-items: baseline; margin-top: 14px; }
.mk-trust .names span { font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem; color: var(--ink-3); white-space: nowrap; }

.mk-section { padding: 76px 0 0; }
.mk-kicker { margin-bottom: 12px; }
.mk-section h2.big { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; max-width: 640px; margin-bottom: 10px; }
.mk-section .sub { color: var(--ink-2); max-width: 560px; font-size: 1rem; margin-bottom: 34px; }

/* alternating feature rows */
.mk-feature { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 38px 0; }
.mk-feature.flip { grid-template-columns: 7fr 5fr; }
.mk-feature.flip .mk-copy { order: 2; }
@media (max-width: 900px) {
  .mk-feature, .mk-feature.flip { grid-template-columns: 1fr; gap: 22px; }
  .mk-feature.flip .mk-copy { order: 0; }
}
.mk-copy h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.mk-copy p { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.mk-copy ul { list-style: none; margin-top: 14px; }
.mk-copy li { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; font-size: .9rem; color: var(--ink-2); }
.mk-copy li svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }

/* module / industry grids */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mk-tile { padding: 20px; }
.mk-tile svg { width: 19px; height: 19px; color: var(--accent); margin-bottom: 11px; }
.mk-tile b { display: block; font-weight: 750; margin-bottom: 4px; font-size: .92rem; }
.mk-tile span { color: var(--ink-2); font-size: .82rem; line-height: 1.55; }
.mk-ind { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.mk-ind svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.mk-ind b { font-size: .89rem; font-weight: 700; display: block; }
.mk-ind span { font-size: .76rem; color: var(--ink-2); }

/* steps */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 860px) { .mk-steps { grid-template-columns: 1fr; } }
.mk-step { padding: 22px; counter-increment: step; }
.mk-step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--accent);
  margin-bottom: 10px;
}
.mk-step b { display: block; font-weight: 750; margin-bottom: 5px; }
.mk-step span { color: var(--ink-2); font-size: .85rem; line-height: 1.55; }

/* pricing */
.mk-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.mk-price { padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.mk-price.hot { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mk-price .flag {
  position: absolute; top: -11px; left: 22px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 12px;
}
.mk-price .amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.mk-price .amount small { font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.mk-price ul { list-style: none; margin: 16px 0 22px; flex: 1; }
.mk-price li { display: flex; gap: 9px; align-items: flex-start; padding: 4px 0; font-size: .85rem; color: var(--ink-2); }
.mk-price li svg { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 3px; }

/* quotes */
.mk-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mk-quote { padding: 24px; }
.mk-quote p { font-size: .95rem; line-height: 1.65; margin-bottom: 16px; }
.mk-quote .who { display: flex; align-items: center; gap: 10px; }
.mk-quote .who b { display: block; font-size: .85rem; }
.mk-quote .who span { font-size: .76rem; color: var(--ink-2); }

/* faq */
.mk-faq { max-width: 720px; }
.mk-faq details { border-bottom: 1px solid var(--line); }
.mk-faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; font-size: .95rem;
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: '+'; margin-left: auto; font-weight: 600; color: var(--ink-3); font-size: 1.2rem; }
.mk-faq details[open] summary::after { content: '–'; }
.mk-faq .a { padding: 0 0 18px; color: var(--ink-2); font-size: .9rem; line-height: 1.65; max-width: 640px; }

/* cta band */
.mk-cta {
  margin: 90px 0 0; padding: 64px 28px; text-align: center;
  background: var(--ink); color: var(--paper); border-radius: 24px;
}
.theme-dark .mk-cta { background: var(--paper-2); }
.mk-cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.mk-cta p { opacity: .75; margin-bottom: 26px; }
.mk-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.theme-dark .mk-cta .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* footer */
.mk-footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 54px 0 40px; }
.mk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .mk-footer-grid { grid-template-columns: 1fr 1fr; } }
.mk-footer .micro { margin-bottom: 14px; }
.mk-footer ul { list-style: none; }
.mk-footer li { padding: 4px 0; }
.mk-footer li a { font-size: .85rem; color: var(--ink-2); text-decoration: none; }
.mk-footer li a:hover { color: var(--ink); }
.mk-footer .legal {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  font-size: .76rem; color: var(--ink-3);
}

/* split auth */
.auth-split { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-brandside { display: none; } }
.auth-brandside {
  background: var(--ink); color: var(--paper);
  padding: 48px 54px; display: flex; flex-direction: column;
}
.theme-dark .auth-brandside { background: var(--paper-2); }
.auth-brandside .wordmark { color: var(--paper); }
.theme-dark .auth-brandside .wordmark { color: var(--ink); }
.auth-brandside h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: auto 0 18px; max-width: 420px; }
.auth-brandside ul { list-style: none; margin-bottom: auto; }
.auth-brandside li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .92rem; opacity: .82; max-width: 420px; }
.auth-brandside li svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; margin-top: 4px; }
.auth-brandside .quote { border-left: 2px solid var(--accent-2); padding-left: 16px; margin-top: 34px; max-width: 420px; }
.auth-brandside .quote p { font-size: .9rem; opacity: .85; margin-bottom: 8px; }
.auth-brandside .quote .small { opacity: .55; }
.auth-formside { display: grid; place-items: center; padding: 40px 24px; }
.auth-formside .inner { width: min(380px, 100%); }

/* onboarding */
.setup-wrap { max-width: 680px; margin: 0 auto; padding: 46px 20px 90px; }
.setup-steps { display: flex; gap: 6px; margin: 22px 0 30px; }
.setup-steps i { height: 3px; flex: 1; border-radius: 3px; background: var(--line-2); }
.setup-steps i.on { background: var(--accent); }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.pack-opt {
  display: block; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 16px;
  transition: border-color var(--ease);
}
.pack-opt:hover { border-color: var(--ink-2); }
.pack-opt.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pack-opt svg { width: 18px; height: 18px; color: var(--accent); margin-bottom: 10px; }
.pack-opt b { display: block; font-size: .88rem; font-weight: 750; }
.pack-opt span { font-size: .76rem; color: var(--ink-2); }

/* ---------------------------------------------------------- board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
.board-col { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: transparent; }
.board-col h4 {
  font-size: .64rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); margin: 4px 6px 12px; display: flex; gap: 7px; align-items: center;
}
.board-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
  cursor: pointer; transition: border-color var(--ease);
}
.board-card:hover { border-color: var(--ink-2); }
.board-card b { font-size: .88rem; font-weight: 700; display: block; margin-bottom: 6px; }

/* timeline */
.timeline { list-style: none; }
.timeline li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .tl-ic {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
}
.timeline .tl-ic svg { width: 13px; height: 13px; color: var(--ink-2); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a {
  padding: 9px 14px; font-size: .85rem; font-weight: 700; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* permission matrix */
.perm-group { margin-bottom: 16px; }
.perm-group > b {
  display: block; font-size: .64rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3); margin-bottom: 8px;
}

/* slot pills (scheduling) */
.slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.slot {
  min-width: 78px; min-height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 700; font-size: .84rem; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.slot:hover { border-color: var(--ink); }
.slot:active { transform: scale(.97); }
.slot.off { background: var(--paper-2); color: var(--ink-3); border-color: transparent; cursor: default; }
.slot.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------- phone shell */
.burger { display: none; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar { padding: 12px 16px 0; }
  .searchbtn { min-width: 0; flex: 1; }
  .searchbtn kbd { display: none; }
  .content { padding: 18px 16px 110px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: .6rem; font-weight: 750; color: var(--ink-3); text-decoration: none; padding: 4px 0;
  }
  .tabbar a svg { width: 18px; height: 18px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { color: var(--accent); }
}

/* photo cards + split hero (marketing) */
.mk-photo { border-radius: 20px; overflow: hidden; }
.mk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-hero-split { grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; padding-bottom: 56px; }
@media (max-width: 900px) { .mk-hero-split { grid-template-columns: 1fr; gap: 28px; } }

/* main landing hero: photo with overlapping app card */
.mk-hero-stack { position: relative; min-height: 480px; }
.mk-hero-stack .mk-photo { position: absolute; inset: 0 0 0 22%; }
.mk-hero-stack .mk-browser {
  position: absolute; left: 0; bottom: -26px; width: 72%; z-index: 2;
}
@media (max-width: 900px) {
  .mk-hero-stack { min-height: 0; }
  .mk-hero-stack .mk-photo { position: relative; inset: auto; display: none; }
  .mk-hero-stack .mk-browser { position: relative; left: auto; bottom: auto; width: 100%; }
}

/* steps without the numeral (industry workflow tiles) */
.mk-step.nonum::before { display: none; }

/* ---------------------------------------------------------- product vignettes
   Large, legible illustrative UI — one idea per card, readable in 2 seconds. */
.mk-vig {
  position: relative;
  background: var(--paper-2);
  border-radius: 24px;
  padding: 40px 40px 88px;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.vig-main {
  width: min(400px, 100%);
  padding: 24px 26px;
  box-shadow: 0 18px 50px rgba(22, 21, 15, .10);
  position: relative; z-index: 1;
}
/* pop cards hang below the main card so they never cover its content */
.vig-pop {
  position: absolute; z-index: 2;
  right: 30px; bottom: 16px;
  width: min(290px, 80%);
  padding: 13px 17px;
  background: var(--card);
  box-shadow: 0 14px 40px rgba(22, 21, 15, .16);
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .84rem; font-weight: 600;
}
.vig-pop svg { flex: none; margin-top: 2px; }
.mk-vig.pop-none { padding-bottom: 40px; }
@media (max-width: 900px) {
  .mk-vig { padding: 26px 18px 92px; }
  .vig-pop { right: 12px; bottom: 14px; }
}
.vig-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.vig-row:last-child { border-bottom: 0; }
.vig-row svg { color: var(--ink-3); flex: none; }
.vig-big {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.vig-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 18px 0 6px; }
.vig-bars i { flex: 1; border-radius: 5px 5px 0 0; background: var(--line-2); }
.vig-bars i.hot { background: var(--accent); }

/* ---------------------------------------------------------- floor plan */
.floor-canvas {
  position: relative; width: 100%; aspect-ratio: 10 / 7;
  background:
    linear-gradient(var(--paper-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 5% 5%;
  border-radius: 12px; overflow: hidden;
}
.fl-table {
  position: absolute; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; cursor: pointer; padding: 4px;
  font: inherit; transition: border-color var(--ease), transform var(--ease);
  overflow: hidden;
}
.fl-table:hover { border-color: var(--ink); z-index: 3; }
.fl-table.round { border-radius: 50%; }
.fl-table b { font-size: .82rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.fl-table span {
  font-size: .6rem; color: var(--ink-2); line-height: 1.2;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fl-table.seated { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fl-table.seated span { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.fl-table.reserved { background: var(--warn-soft); border-color: var(--warn); }
.fl-table.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); z-index: 4; }
.fl-lock { position: absolute; top: 4px; right: 6px; font-size: .6rem; font-style: normal; }
.fl-assist {
  position: absolute; top: -5px; left: -5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bad); border: 2px solid var(--paper);
  animation: flAssistPulse 1.1s ease-in-out infinite;
}
@keyframes flAssistPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.fl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

/* ---------------------------------------------------------- KDS */
.kds-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.kds-ticket { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kds-ticket.warm { border-color: var(--warn); }
.kds-ticket.late { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.kds-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-bottom: 1px solid var(--line); background: var(--paper-2);
  font-size: .85rem;
}
.kds-head b { font-weight: 800; }
.kds-head span { font-weight: 750; color: var(--ink-2); font-size: .78rem; margin-left: auto; }
.kds-st {
  font-style: normal; font-size: .6rem; font-weight: 800; border-radius: 999px;
  padding: 2px 9px; white-space: nowrap;
}
.kds-st.new   { background: var(--ok-soft); color: var(--ok); }
.kds-st.prog  { background: var(--warn-soft); color: var(--warn); }
.kds-st.ready { background: var(--ink); color: var(--paper); }
.kds-ticket.warm .kds-head span { color: var(--warn); }
.kds-ticket.late .kds-head span { color: var(--bad); }
.kds-item {
  display: flex; gap: 8px; align-items: flex-start; width: 100%;
  padding: 10px 13px; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; font-size: .88rem;
}
.kds-item:last-child { border-bottom: 0; }
.kds-item:hover { background: var(--paper-2); }
.kds-item.ready { background: var(--accent-soft); }
.kds-mods { display: block; font-size: .74rem; color: var(--ink-2); }
.kds-tag {
  font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap; margin-top: 3px;
}
.kds-item.ready .kds-tag { color: var(--accent); }

/* ---------------------------------------------------------- floor designer v2
   Fixed 1000x700 logical stage, CSS-scaled to fit — rotation-safe. */
.floor-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 12px; }
/* The stage is a drawing — fixed blueprint palette in both themes. */
.floor-stage {
  position: relative; width: 1000px; height: 700px;
  transform-origin: 0 0;
  background:
    linear-gradient(#EFECE3 1px, transparent 1px),
    linear-gradient(90deg, #EFECE3 1px, transparent 1px),
    #FCFBF7;
  background-size: 50px 50px, 50px 50px, auto;
}
.floor-stage.editing { cursor: crosshair; }
.floor-stage.tool-select { cursor: default; }

.fl-el { position: absolute; box-sizing: border-box; }
.fl-el.sel { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 5; }

/* seating (shared host + designer) — hand-drawn-plan look: tan tables and
   chairs with warm outlines, like an architect's furnished floor plan.
   Chairs render around the table via PL3.floorSeats — no clipping. */
.fl-el.tbl {
  border-radius: 10px; border: 2px solid #B69463; background: #EFDDB7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 4px; overflow: visible; cursor: grab;
  box-shadow: inset 0 0 0 2px rgba(255, 251, 240, .55);
}
.fl-el.tbl.round { border-radius: 50%; }
.fl-el.tbl b { font-size: 13px; font-weight: 800; line-height: 1.1; color: #5D4A2A; }
.fl-el.tbl span { font-size: 9.5px; color: #8B7347; line-height: 1.2; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-el.tbl.seated { background: var(--accent); border-color: var(--accent-deep); }
.fl-el.tbl.seated b { color: var(--accent-ink); }
.fl-el.tbl.seated span { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.fl-el.tbl.reserved { background: var(--warn-soft); border-color: var(--warn); }
.fl-el.tbl.reserved b { color: var(--warn); }

/* chairs */
.fl-seat {
  position: absolute; width: 18px; height: 18px; border-radius: 45%;
  background: #F0E2C0; border: 2px solid #B69463;
  box-sizing: border-box; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 251, 240, .6);
}
.fl-el.tbl.seated .fl-seat { background: var(--accent-soft); border-color: var(--accent-deep); }
.fl-el.tbl.reserved .fl-seat { border-color: var(--warn); }
.fl-seat.live { pointer-events: auto; cursor: grab; }
.fl-seat.live:hover { border-color: var(--accent); }

/* architecture objects */
.fl-el.fo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fo-wall { background: #8D8778; border-radius: 2px; overflow: visible !important; }
.fo-wall::before, .fo-wall::after {
  content: ''; position: absolute; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%); background: #6E695D; border-radius: 3px;
}
.fo-wall::before { left: -4px; }
.fo-wall::after { right: -4px; }
/* blueprint door: hinge leaf on the left edge + quarter-circle swing arc */
.fo-door { background: #FCFBF7; border: 0; overflow: visible !important; }
.fo-door::before {
  content: ''; position: absolute; inset: 1px;
  border: 1.6px solid #B3AC9B; border-width: 0 1.6px 1.6px 0;
  border-bottom-right-radius: 100%;
}
.fo-door::after {
  content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: #6E695D; border-radius: 2px;
}
/* the main entrance: ember leaf, and on the live floor it closes the shop */
.fo-door.v-main::after { background: var(--accent); width: 5px; }
.fo-door.v-main::before { border-color: color-mix(in srgb, var(--accent) 55%, #B3AC9B); }
/* stairs: stringers top+bottom, treads with a shaded nose so each step
   reads as a real edge from above */
.fo-stairs {
  background:
    repeating-linear-gradient(90deg,
      #F6F3EB 0 10px, #EFEBDf 10px 13px,
      #CFC8B4 13px 14.5px, #A79F8B 14.5px 16px);
  border: 0;
  border-top: 3px solid #6E695D; border-bottom: 3px solid #6E695D;
  border-radius: 2px;
  box-shadow:
    inset 8px 0 10px -8px rgba(60, 55, 40, .45),
    inset -8px 0 10px -8px rgba(60, 55, 40, .45);
}
.fo-bar, .fo-counter {
  background: #E5E1D5; border: 2px solid #A9A28F; border-radius: 8px;
}
/* seatable objects carry stools outside their box */
.fl-el.fo-bar, .fl-el.fo-counter, .fl-el.fo-banquette { overflow: visible; }
/* greenery: real top-down foliage sprites (assets/v3/floor/*.png).
   Varieties apply via .v-<name>; plants and trees share the sprite set. */
.fo-plant, .fo-tree {
  background: url('/assets/v3/floor/monstera.png') center / contain no-repeat;
  border: 0; overflow: visible !important;
  filter: drop-shadow(0 3px 4px rgba(60, 70, 40, .25));
}
.fo-tree { background-image: url('/assets/v3/floor/olive.png');
  filter: drop-shadow(0 4px 6px rgba(60, 70, 40, .3)); }
.fo-plant.v-monstera, .fo-tree.v-monstera { background-image: url('/assets/v3/floor/monstera.png'); }
.fo-plant.v-fern,     .fo-tree.v-fern     { background-image: url('/assets/v3/floor/fern.png'); }
.fo-plant.v-agave,    .fo-tree.v-agave    { background-image: url('/assets/v3/floor/agave.png'); }
.fo-plant.v-olive,    .fo-tree.v-olive    { background-image: url('/assets/v3/floor/olive.png'); }
.fo-banquette {
  background: #EFDDB7; border: 2px solid #B69463; border-radius: 12px;
  box-shadow: inset 0 0 0 4px rgba(255, 251, 240, .55);
}
/* lamp: warm pool of light */
.fo-lamp {
  background: radial-gradient(circle, #FFF3D0 25%, #F0DFAE 68%);
  border: 2px solid #C8A45E; border-radius: 50%;
  box-shadow: 0 0 22px 8px rgba(240, 200, 90, .38);
  overflow: visible !important;
}
.fo-lamp::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: #C8A45E;
}

/* placement ghost — the piece rides the cursor until it's set down */
.fl-el.ghost {
  opacity: .6; pointer-events: none; z-index: 8;
  outline: 2px dashed color-mix(in srgb, var(--accent) 75%, transparent);
  outline-offset: 3px;
}

/* touch placement bar */
#fd-placebar {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 95;
  display: flex; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 10px; box-shadow: var(--float);
}
#fd-placebar.hide { display: none; }
.fo-label { background: transparent; border: 0; }
.fo-text {
  font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap; pointer-events: none;
}
.fo-label .fo-text { font-size: 13px; color: var(--ink-2); }

/* resize handle */
.fl-handle {
  position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px;
  background: var(--accent); border: 2px solid var(--paper); border-radius: 3px;
  cursor: nwse-resize; z-index: 6;
}
/* wall endpoint handles: round grips on both ends of the segment */
.fl-handle.wallend {
  width: 14px; height: 14px; border-radius: 50%;
  top: 50%; bottom: auto; transform: translateY(-50%);
  cursor: grab;
}
.fl-handle.wallend.s { left: -8px; right: auto; }
.fl-handle.wallend.e { right: -8px; }

/* wall preview */
.fl-wallpreview { position: absolute; background: #8D8778; opacity: .55; border-radius: 3px; pointer-events: none; }

/* designer toolbar */
.fd-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); margin-bottom: 12px;
}
.fd-tool {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--ink-2);
  font-weight: 700; font-size: .8rem; cursor: pointer;
}
.fd-tool:hover { background: var(--paper-2); color: var(--ink); }
.fd-tool.on { background: var(--ink); color: var(--paper); }
.fd-tool svg { width: 14px; height: 14px; }
.fd-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
/* keyboard hint styled as an actual key, so "V" doesn't read as a dropdown */
.fd-kbd {
  margin-left: 5px; font-size: .56rem; font-weight: 800; font-family: var(--font);
  color: var(--ink-3); background: var(--paper-2);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 4px; line-height: 1.2;
}
.fd-tool.on .fd-kbd { color: var(--paper); background: transparent; border-color: color-mix(in srgb, var(--paper) 40%, transparent); }

/* ---------------------------------------------------------- shared top action bar */
.g-topbar {
  position: sticky; top: 0; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 16px; height: 52px; box-sizing: border-box;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.g-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.g-topbar-left .tno {
  background: var(--ink); color: var(--paper); border-radius: 8px;
  font-weight: 800; font-size: .88rem; padding: 4px 11px;
}
.g-topbar-left .party { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: .78rem; font-weight: 700; }
.g-topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-toggle { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; flex: none; }
.lang-btn { border: 0; background: var(--card); color: var(--ink-2); font-weight: 800; font-size: .72rem; padding: 7px 11px; cursor: pointer; }
.lang-btn.on { background: var(--ink); color: var(--paper); }
.btn-callstaff {
  display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
  background: var(--bad); color: #fff; font-weight: 800; font-size: .76rem; padding: 8px 13px; cursor: pointer;
  white-space: nowrap;
}
.btn-callstaff.pending { background: var(--ink-3); animation: callPulse 1.6s ease-in-out infinite; }
@keyframes callPulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.btn-login {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); font-weight: 750; font-size: .76rem; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 899px) {
  .g-topbar-left { display: none; }
  .g-topbar { padding: 0 12px; gap: 6px; }
  .lang-btn { padding: 6px 9px; font-size: .68rem; }
  .btn-callstaff, .btn-login { padding: 6px 10px; font-size: .7rem; }
}

/* ---------------------------------------------------------- tablet ordering */
.tab-shell {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 0; min-height: calc(100dvh - 52px);
}
.tab-cats {
  border-right: 1px solid var(--line); padding: 18px 10px;
  position: sticky; top: 52px; height: calc(100dvh - 52px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.tab-cat {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: none; border-radius: 10px;
  font-weight: 700; font-size: .88rem; color: var(--ink-2); cursor: pointer;
}
.tab-cat:hover { background: var(--paper-2); color: var(--ink); }
.tab-cat.on { background: var(--ink); color: var(--paper); }
.tab-poweredby {
  margin-top: auto; padding: 14px 10px 6px; font-size: .66rem; color: var(--ink-3); text-align: left;
}
.tab-poweredby b { color: var(--ink-2); font-weight: 800; }

.tab-content { padding: 18px 130px 120px 22px; overflow-y: auto; }
.tab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1099px) {
  .tab-grid { grid-template-columns: repeat(3, 1fr); }
}
.tab-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; position: relative; text-align: left;
}
.tab-imgbtn {
  display: block; width: 100%; border: 0; padding: 0; margin: 0; background: none;
  cursor: pointer; transition: opacity .12s;
}
.tab-imgbtn:active { opacity: .75; }
.tab-item .ph {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--paper-2);
}
.tab-item .ph-empty {
  width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--ink-3);
}
.tab-item .inf { padding: 8px 10px 10px; }
.tab-item .inf b { display: block; font-weight: 750; font-size: .8rem; line-height: 1.25; }
.tab-item-sub { display: block; font-size: .66rem; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.tab-item .pr { margin-top: 5px; font-weight: 800; font-size: .82rem; }
.tab-item .pr .mem { font-size: .68rem; font-weight: 700; color: var(--accent); margin-left: 5px; }
.tab-item .addbtn {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 0;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; line-height: 1;
  box-shadow: 0 4px 12px rgba(22, 21, 15, .18);
  transition: transform var(--ease);
}
.tab-item .addbtn:active { transform: scale(.9); }
.tab-item.soldout { opacity: .5; }
.tab-item.soldout .addbtn { display: none; }

/* semi-collapsed by default (image + qty + price); tap to fully extend and
   overlay the middle column instead of pushing/reflowing the grid. */
.tab-order {
  position: fixed; top: 52px; right: 0; bottom: 0; width: 112px;
  border-left: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; z-index: 20;
  transition: width .28s cubic-bezier(.3, 0, .2, 1);
}
.tab-order.expanded { width: 380px; box-shadow: -14px 0 34px rgba(22, 21, 15, .2); z-index: 45; }
.tab-scrim {
  display: none; position: fixed; top: 52px; left: 180px; right: 0; bottom: 0;
  background: rgba(22, 21, 15, .35); z-index: 40;
}
.tab-scrim.show { display: block; animation: pmFade .2s ease-out; }

.tab-order-mini { display: flex; flex-direction: column; height: 100%; cursor: pointer; }
.tab-order.expanded .tab-order-mini { display: none; }
.tab-order-full { display: none; flex-direction: column; height: 100%; }
.tab-order.expanded .tab-order-full { display: flex; }
.tab-mini-head {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 0 10px; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.tab-mini-scroll { flex: 1; overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tab-mini-line { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tab-mini-thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--paper-2); display: block; }
.tab-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tab-mini-line.sent .tab-mini-thumb { opacity: .6; }
.tab-mini-qty {
  position: absolute; top: -4px; right: -4px; background: var(--ink); color: var(--paper);
  border-radius: 999px; font-size: .6rem; font-weight: 800; padding: 1px 5px; line-height: 1.3;
}
.tab-mini-price { font-size: .66rem; font-weight: 750; color: var(--ink-2); }
.tab-mini-foot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-weight: 800; font-size: .78rem; color: var(--ink);
}

.tab-order-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.tab-order-scroll { flex: 1; overflow-y: auto; padding: 8px 18px; }
.tab-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tab-line:last-child { border-bottom: 0; }
.tab-line-thumb {
  flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: var(--paper-2); display: block; border: 0; padding: 0;
}
.tab-line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tab-line-thumb.clickable { cursor: pointer; transition: opacity .12s; }
.tab-line-thumb.clickable:active { opacity: .7; }
.tab-line-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tab-line .nm { font-weight: 700; font-size: .85rem; line-height: 1.25; }
.tab-line .md { font-size: .72rem; color: var(--ink-2); display: block; margin-top: 4px; }
.tab-line .amt { font-weight: 750; font-size: .85rem; white-space: nowrap; }
.tab-qty { display: inline-flex; align-items: center; gap: 8px; }
.tab-qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); cursor: pointer; font-weight: 700; line-height: 1;
}
/* mobile order summary: qty controls read as one fused pill, no gaps */
.pm-order .tab-qty { gap: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.pm-order .tab-qty button { border: 0; background: none; }
.pm-order .tab-qty span { min-width: 20px; text-align: center; }
.tab-order-foot { border-top: 1px solid var(--line); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }

/* kiosk attract + confirmation */
.kiosk-attract {
  position: fixed; inset: 0; z-index: 90; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: var(--paper); text-align: center; padding: 30px;
}
.kiosk-attract h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.03em; }
.kiosk-attract .pulse {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 16px 38px; font-weight: 800; font-size: 1.15rem;
  animation: kioskpulse 1.8s ease-in-out infinite;
}
@keyframes kioskpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.kiosk-done {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: var(--paper); text-align: center; padding: 30px;
}
.kiosk-done .num { font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); }

/* ---------------------------------------------------------- premium phone menu (pm-*) */
.pm-shell { display: none; }
@media (max-width: 899px) {
  .pm-shell { display: block; padding-bottom: 120px; }
  .tab-shell { display: none; }
}

.pm-hero { padding: 26px 20px 14px; }
.pm-hero .who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pm-hero .tchip {
  background: var(--ink); color: var(--paper);
  border-radius: 10px; font-weight: 800; font-size: .95rem; padding: 3px 12px;
}
.pm-hero h1 { font-size: 1.7rem; letter-spacing: -.03em; }
.pm-hero .sub { color: var(--ink-2); font-size: .85rem; }

.pm-pills {
  position: sticky; top: 52px; z-index: 40;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.pm-pills::-webkit-scrollbar { display: none; }
.pm-pill {
  flex: none; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-weight: 750; font-size: .82rem; color: var(--ink-2); cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pm-pill.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.pm-cat { padding: 22px 20px 4px; }
.pm-cat h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }

.pm-row {
  display: flex; gap: 14px; align-items: stretch;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pm-row:active { background: var(--paper-2); }
.pm-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm-row .nm { font-weight: 750; font-size: .98rem; letter-spacing: -.01em; line-height: 1.3; }
.pm-row .nm-sub { display: block; font-size: .74rem; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.pm-row .ds {
  color: var(--ink-2); font-size: .8rem; line-height: 1.45; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-row .pr { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: .92rem; }
.pm-row .pr .mem { color: var(--accent); font-size: .74rem; font-weight: 750; margin-left: 7px; }
.pm-row .pic { position: relative; flex: none; width: 96px; }
.pm-row .pic img, .pm-row .pic .noimg {
  width: 96px; height: 96px; object-fit: cover; border-radius: 18px; display: block;
}
.pm-row .pic .noimg {
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.pm-add {
  position: absolute; right: -6px; bottom: -6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font-size: 1.15rem; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 14px rgba(22, 21, 15, .16);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.pm-row:active .pm-add { transform: scale(.88); }
.pm-row.soldout { opacity: .45; pointer-events: none; }
.pm-add.pop { animation: pmpop .3s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes pmpop { 40% { transform: scale(1.35); background: var(--accent); color: var(--accent-ink); } }

/* inline order summary — lives at the bottom of the page, not a popup */
.pm-order {
  margin: 10px 20px 0; padding: 18px 18px 20px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.pm-order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pm-order-head h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.pm-order-totals { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pm-order-totals .flex { padding: 3px 0; }

/* floating order pill */
.pm-cartbar {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60; display: none;
}
.pm-cartbar.show { display: block; animation: pmrise .3s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes pmrise { from { transform: translateY(70px); opacity: 0; } }
.pm-cartbar button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); border: 0;
  border-radius: 999px; padding: 15px 20px;
  font-weight: 800; font-size: .95rem; cursor: pointer;
  box-shadow: 0 14px 40px rgba(22, 21, 15, .3);
}
.pm-cartbar .cnt {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center; font-size: .82rem;
}
.pm-cartbar.bump button { animation: pmbump .35s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes pmbump { 40% { transform: scale(1.04); } }
@media (min-width: 900px) {
  /* tablet/desktop already show the order in the right sidebar (.tab-order) */
  .pm-cartbar { display: none !important; }
}

/* bottom sheets (item + order) */
dialog.pm-sheet {
  border: 0; padding: 0; background: var(--paper); color: var(--ink);
  width: 100vw; max-width: 560px; margin: auto auto 0;
  border-radius: 24px 24px 0 0; max-height: 92dvh;
  box-shadow: var(--float);
  animation: sheetUp .28s cubic-bezier(.25, 1, .4, 1);
}
/* only grid when actually open — an unconditional display would
   override the UA's display:none for closed dialogs.
   Grid (not flex) for the middle scroll region: Safari doesn't reliably
   resolve flex-grow inside a dialog whose height is only capped by
   max-height (no explicit height) — .pm-sheet-scroll silently collapses to
   0 height there, leaving only the footer visible, even though Chromium
   renders the same markup fine. Grid's 1fr track sizes correctly against
   max-height in both engines. .pm-grab.float / .pm-x are position:absolute
   so they never occupy a grid row. */
dialog.pm-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
@media (min-width: 900px) {
  dialog.pm-sheet { margin: auto; border-radius: 24px; }
}
dialog.pm-sheet::backdrop { background: rgba(22, 21, 15, .45); }
.pm-sheet-scroll { grid-row: 2; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.pm-sheet-foot { grid-row: 3; }
dialog.pm-sheet { overscroll-behavior: contain; }
.pm-sheet-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.pm-sheet-pad { padding: 18px 22px; }
.pm-sheet-pad h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.pm-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.pm-opt:last-child { border-bottom: 0; }
.pm-opt input { accent-color: var(--accent); width: 19px; height: 19px; flex: none; }
.pm-opt .oname { flex: 1; font-weight: 600; font-size: .92rem; }
.pm-opt .oprice { color: var(--ink-2); font-size: .84rem; font-weight: 650; }
.pm-sheet-foot {
  border-top: 1px solid var(--line); padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
  background: var(--paper);
}
.pm-stepper { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px; flex: none; }
.pm-stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--paper-2); font-size: 1.05rem; font-weight: 750; cursor: pointer;
}
.pm-stepper .q { min-width: 20px; text-align: center; font-weight: 800; }
.pm-sheet-foot .btn { flex: 1; min-height: 48px; font-size: .95rem; }

/* order sheet statuses */
.pm-status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 750; }
.pm-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pm-status.cooking { color: var(--info); }
.pm-status.cooking i { background: var(--info); animation: pmpulse 1.4s ease-in-out infinite; }
.pm-status.ready { color: var(--accent); }
.pm-status.ready i { background: var(--accent); }
.pm-status.served { color: var(--ok); }
.pm-status.served i { background: var(--ok); }
@keyframes pmpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------------------------------------------------------- motion polish (pm v2) */
/* springier sheet entrance + animated exit + backdrop fade */
dialog.pm-sheet[open] { animation: pmSheetIn .34s cubic-bezier(.22, 1.2, .36, 1); }
@keyframes pmSheetIn { from { transform: translateY(56px); opacity: .4; } }
dialog.pm-sheet.closing { animation: pmSheetOut .2s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes pmSheetOut { to { transform: translateY(80px); opacity: 0; } }
dialog.pm-sheet::backdrop { animation: pmFade .25s ease-out; }
dialog.pm-sheet.closing::backdrop { animation: pmFade .2s ease-in reverse forwards; }
dialog.dlg::backdrop { animation: pmFade .22s ease-out; }
@keyframes pmFade { from { opacity: 0; } }

/* grab handle */
.pm-grab {
  padding: 10px 0 2px; cursor: grab; touch-action: none; flex: none;
}
.pm-grab::before {
  content: ''; display: block; width: 42px; height: 5px; border-radius: 3px;
  background: var(--line-2); margin: 0 auto;
}

/* item rows: press + photo life */
.pm-row { transition: transform .18s cubic-bezier(.3, .9, .4, 1), background .18s; }
.pm-row:active { transform: scale(.985); }
.pm-row .pic { overflow: visible; }
.pm-row .pic img { transition: transform .35s cubic-bezier(.25, .9, .3, 1); }
.pm-row:active .pic img { transform: scale(1.05); }

/* entrance stagger on first paint */
.pm-anim { opacity: 0; transform: translateY(14px); }
.pm-anim.in { opacity: 1; transform: none; transition: opacity .45s ease-out, transform .5s cubic-bezier(.2, .9, .3, 1); }

/* sticky pills gain elevation once scrolled */
.pm-pills.floating { box-shadow: 0 8px 24px rgba(22, 21, 15, .08); border-bottom-color: transparent; }

/* cart pill: springier bump + count pop */
.pm-cartbar.bump button { animation: pmbump2 .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pmbump2 { 30% { transform: scale(1.05) translateY(-3px); } 60% { transform: scale(.99); } }
.pm-cartbar .cnt.pop { animation: pmcnt .4s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pmcnt { 40% { transform: scale(1.45); } }

/* option rows: gentle highlight when selected */
.pm-opt { transition: background .15s; border-radius: 10px; padding-left: 6px; padding-right: 6px; margin: 0 -6px; }
.pm-opt:has(input:checked) { background: var(--accent-soft); }

/* status shimmer while preparing */
.pm-status.cooking { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .pm-anim { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- photo skeletons */
.skel {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
}
.skel:not(.done)::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    transparent 30%,
    color-mix(in srgb, var(--card) 65%, transparent) 50%,
    transparent 70%);
  background-size: 220% 100%;
  animation: skelShimmer 1.3s ease-in-out infinite;
}
@keyframes skelShimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
img.skel-img { opacity: 0; transition: opacity .45s ease-out; }
img.skel-img.ld { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .skel:not(.done)::after { animation: none; }
  img.skel-img { opacity: 1; transition: none; }
}

/* ---------------------------------------------------------- item sheet v2 */
dialog.pm-item { overflow: hidden; position: relative; }
.pm-x {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(22, 21, 15, .14);
  transition: transform .15s;
}
.pm-x:active { transform: scale(.9); }
.pm-grab.float {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  padding: 10px 0 14px; margin: 0;
}
.pm-grab.float::before {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 1px 6px rgba(22, 21, 15, .22);
}
.pm-itemhero { display: block; position: relative; }
.pm-itemhero img {
  width: 100%; height: clamp(180px, 52vw, 280px); object-fit: cover; display: block;
}
.pm-itemhero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 64px; z-index: 1;
  background: linear-gradient(rgba(22, 21, 15, .18), transparent);
  pointer-events: none;
}
.pm-item.nohero .pm-sheet-scroll { padding-top: 40px; }
.pm-titlerow { display: flex; gap: 14px; align-items: baseline; }
.pm-titlerow h3 { flex: 1; min-width: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.pm-titlerow .pm-price { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.pm-desc { color: var(--ink-2); font-size: .9rem; line-height: 1.6; margin: 6px 0 0; }
.pm-notebtn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: none; padding: 14px 0 4px; cursor: pointer;
  color: var(--accent); font-weight: 750; font-size: .86rem;
}
.pm-sheet-foot { border-top: 0; box-shadow: 0 -10px 30px rgba(22, 21, 15, .07); position: relative; z-index: 4; }

/* ==========================================================================
   Marketing "Ember" edition — landing redesign (2026-07).
   Scoped accent swap: marketing surfaces run ember orange while the app
   keeps spruce. .mk-ember is opened by _mknav.php and closed by _mkfooter.php.
   ========================================================================== */

@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

.mk-ember {
  --accent:      #E8501F;
  --accent-deep: #C8400F;
  --accent-soft: #FBEAE2;
  --accent-ink:  #FFF7F2;
}
.theme-dark .mk-ember {
  --accent:      #F1794C;
  --accent-deep: #F5936F;
  --accent-soft: #33211A;
  --accent-ink:  #1C120C;
}

.btn-lg { min-height: 48px; padding: 0 24px; font-size: .95rem; }

/* nav dropdowns */
.mk-drop { position: relative; }
.mk-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.mk-drop > a svg { width: 13px; height: 13px; color: var(--ink-3); transition: transform var(--ease); }
.mk-drop:hover > a svg, .mk-drop:focus-within > a svg { transform: rotate(180deg); }
.mk-drop-panel {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 250px; padding: 8px; z-index: 90;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(22, 21, 15, .12), 0 3px 10px rgba(22, 21, 15, .05);
  opacity: 0; visibility: hidden; transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.mk-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.mk-drop:hover .mk-drop-panel, .mk-drop:focus-within .mk-drop-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 10px);
}
.mk-drop-panel a {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 12px; border-radius: 11px;
  color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none;
}
.mk-drop-panel a:hover { background: var(--paper-2); }
.mk-drop-panel a svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 2px; }
.mk-drop-panel a small { display: block; font-size: .72rem; font-weight: 550; color: var(--ink-3); margin-top: 1px; }

/* full-bleed hero: copy aligned to the wrap, visual bleeding to the right edge */
.mk2-hero {
  display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  align-items: center;
  padding-left: max(28px, calc((100vw - 1120px) / 2));
  overflow: hidden;
}
.mk2-copy { padding: 56px 44px 72px 0; max-width: 640px; }
.mk2-flag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--paper));
  color: var(--accent-deep);
  font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  border-radius: 999px; padding: 7px 15px; margin-bottom: 26px;
}
.mk2-copy h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.85rem); font-weight: 800;
  letter-spacing: -.037em; line-height: 1.04; margin-bottom: 22px;
}
.mk2-copy h1 .hl { color: var(--accent); }
.mk2-copy .lead { font-size: 1.06rem; color: var(--ink-2); line-height: 1.65; max-width: 500px; margin-bottom: 30px; }
.mk2-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mk2-ticks { display: flex; flex-wrap: wrap; margin-top: 34px; }
.mk2-ticks span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 650; color: var(--ink-2);
  padding: 3px 18px; border-left: 1px solid var(--line-2);
}
.mk2-ticks span:first-child { padding-left: 0; border-left: 0; }
.mk2-ticks svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

.mk2-visual { position: relative; align-self: stretch; min-height: 660px; }
.mk2-visual .photo { position: absolute; inset: 0 0 0 110px; overflow: hidden; }
.mk2-visual .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk2-note {
  position: absolute; z-index: 3; right: 15%; top: 22%;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: #4A4237;
  transform: rotate(-5deg); text-align: center; pointer-events: none;
}
.mk2-note svg { display: block; margin: 6px auto 0; }
@media (max-width: 1240px) { .mk2-note { display: none; } }

/* hand-built phone */
.ph {
  position: absolute; left: 0; top: 46px; z-index: 2; width: 308px;
  background: #101010; border-radius: 46px; padding: 11px;
  box-shadow: 0 44px 90px rgba(22, 21, 15, .34), 0 10px 26px rgba(22, 21, 15, .16);
}
.ph-screen { background: #FDFCFA; border-radius: 36px; overflow: hidden; padding: 16px 15px 15px; color: #16150F; }
.ph, .ph-screen { --pmut: #6E685D; --pfnt: #A59E8F; --pline: #E6E2D8; }
.ph-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ph-top .wordmark { font-size: .92rem; color: #16150F; }
.ph-top .ic { margin-left: auto; display: flex; gap: 8px; color: #6E685D; }
.ph-top .ic svg { width: 14px; height: 14px; }
.ph-k { font-size: .56rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--pfnt); margin: 12px 0 5px; }
.ph-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.ph-meta { font-size: .66rem; color: var(--pmut); margin-top: 3px; }
.ph-party {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--pline); border-radius: 999px; padding: 5px 8px;
}
.ph-party i {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--pline);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  font-size: .8rem; font-weight: 700; color: #16150F;
}
.ph-party b { font-size: .72rem; font-weight: 750; }
.ph-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ph-day {
  border: 1px solid var(--pline); border-radius: 11px; padding: 6px 0 5px;
  text-align: center; background: #fff;
}
.ph-day u { display: block; text-decoration: none; font-size: .48rem; font-weight: 800; letter-spacing: .08em; color: var(--pmut); }
.ph-day b { display: block; font-size: .86rem; font-weight: 800; margin: 1px 0; color: #16150F; }
.ph-day s { display: block; text-decoration: none; font-size: .48rem; font-weight: 700; color: var(--pfnt); }
.ph-day.on { background: #16150F; border-color: #16150F; }
.ph-day.on u, .ph-day.on b, .ph-day.on s { color: #FAF9F6; }
.ph-seat b { display: block; font-size: .78rem; font-weight: 800; }
.ph-seat small { display: block; font-size: .62rem; color: var(--pmut); margin-top: 1px; }
.ph-seat em { display: block; font-style: normal; font-size: .62rem; font-weight: 700; color: #E8501F; margin-top: 2px; }
.ph-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.ph-slot {
  border: 1px solid var(--pline); border-radius: 9px; padding: 7px 0;
  text-align: center; font-size: .58rem; font-weight: 750; background: #fff; color: #16150F;
}
.ph-slot.on { background: #16150F; border-color: #16150F; color: #FAF9F6; }
.ph-cta {
  display: block; width: 100%; margin-top: 14px; padding: 11px 0;
  background: #E8501F; color: #FFF7F2; border: 0; border-radius: 13px;
  text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .01em;
}
@media (max-width: 980px) {
  .mk2-hero { grid-template-columns: 1fr; padding-right: max(28px, calc((100vw - 1120px) / 2)); }
  .mk2-copy { padding-right: 0; max-width: 560px; }
  .mk2-visual { min-height: 0; margin: 0 -28px; }
  .mk2-visual .photo { position: relative; inset: auto; height: 460px; }
  .ph { left: 24px; top: 40px; width: 280px; }
}
@media (max-width: 560px) {
  .ph { position: relative; left: auto; top: auto; margin: -80px auto 26px; }
  .mk2-visual .photo { height: 300px; }
}

/* segments band */
.mk2-seg { text-align: center; padding: 54px 0 8px; }
.mk2-seg .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.mk2-seg .chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-size: .88rem; font-weight: 750; color: var(--ink);
  text-decoration: none; transition: border-color var(--ease);
}
.mk2-seg .chip:hover { border-color: var(--ink); }
.mk2-seg .chip svg { width: 16px; height: 16px; color: var(--accent); }

/* four product vignette cards */
.mk2-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 1100px) { .mk2-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .mk2-cards { grid-template-columns: 1fr; } }
.mk2-card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 20px 16px;
}
.theme-dark .mk2-card { background: var(--card); }
.mk2-card > b { font-size: 1rem; font-weight: 800; letter-spacing: -.015em; }
.mk2-card > p { font-size: .8rem; color: var(--ink-2); line-height: 1.5; margin: 5px 0 14px; }
.mk2-stage { flex: 1; position: relative; min-height: 236px; }
.mk2-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--accent); font-size: .82rem; font-weight: 750; text-decoration: none;
}
.mk2-more svg { width: 13px; height: 13px; transition: transform var(--ease); }
.mk2-more:hover svg { transform: translateX(3px); }

/* vignette: mini calendar */
.vg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vg-head > b { font-size: .72rem; font-weight: 800; white-space: nowrap; }
.vg-pills { display: inline-flex; gap: 2px; margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.vg-pills i {
  font-style: normal; font-size: .52rem; font-weight: 750; color: var(--ink-2);
  padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.vg-pills i.on { background: var(--ink); color: var(--paper); }
.vg-cal { position: relative; }
.vg-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); min-height: 37px; position: relative; }
.vg-row:first-child { border-top: 0; }
.vg-row > u { text-decoration: none; font-size: .56rem; font-weight: 700; color: var(--ink-3); width: 28px; flex: none; }
.vg-evt {
  position: absolute; top: 5px; height: 27px;
  display: inline-flex; flex-direction: column; justify-content: center;
  background: #E5E4F6; border-left: 3px solid #8D8BD1; border-radius: 6px;
  padding: 2px 8px; line-height: 1.15; white-space: nowrap;
}
.theme-dark .vg-evt { background: #26243A; border-left-color: #7F7CC4; }
.vg-evt b { font-size: .58rem; font-weight: 800; color: var(--ink); }
.vg-evt s { text-decoration: none; font-size: .5rem; font-weight: 650; color: var(--ink-2); }

/* vignette: floor sketch */
.vg-tools { display: flex; gap: 4px; margin-bottom: 10px; }
.vg-tools i {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.vg-tools i svg { width: 12px; height: 12px; }
.vg-tools i.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vg-plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.vg-plan svg { width: 100%; height: auto; display: block; }

/* vignette: kiosk ordering */
.vg-kiosk { display: flex; gap: 10px; }
.vg-rail { width: 74px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.vg-rail i {
  font-style: normal; font-size: .58rem; font-weight: 750; color: var(--ink-2);
  padding: 7px 8px; border-radius: 9px; white-space: nowrap;
}
.vg-rail i.on { background: var(--ink); color: var(--paper); }
.vg-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vg-item {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 6px 9px 6px 6px;
}
.vg-item img { width: 37px; height: 37px; border-radius: 8px; object-fit: cover; flex: none; }
.vg-item b {
  font-size: .62rem; font-weight: 750; line-height: 1.2; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vg-item s { text-decoration: none; margin-left: auto; font-size: .68rem; font-weight: 800; }

/* vignette: kitchen tickets */
.vg-kds { display: flex; flex-direction: column; }
.vg-tabs { display: flex; gap: 3px; margin-bottom: 9px; flex-wrap: wrap; }
.vg-tabs i {
  font-style: normal; font-size: .5rem; font-weight: 750; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 6px;
  white-space: nowrap;
}
.vg-tabs i.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vg-tkts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.vg-tkt { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 8px 9px; }
.vg-tkt .h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.vg-tkt .h b { font-size: .66rem; font-weight: 800; }
.vg-tkt .h u { text-decoration: none; margin-left: auto; font-size: .5rem; color: var(--ink-3); font-weight: 650; }
.vg-tkt p { font-size: .58rem; color: var(--ink-2); line-height: 1.45; margin: 0 0 6px; }
.vg-chip { display: inline-block; font-size: .5rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.vg-chip.new  { background: var(--ok-soft); color: var(--ok); }
.vg-chip.prog { background: var(--warn-soft); color: var(--warn); }
.vg-chip.done { background: var(--ink); color: var(--paper); }

/* capability strip */
.mk2-caps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 22px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 32px; margin-top: 64px;
}
.theme-dark .mk2-caps { background: var(--card); }
@media (max-width: 1100px) { .mk2-caps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .mk2-caps { grid-template-columns: 1fr 1fr; padding: 24px; } }
.mk2-cap { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; align-items: start; }
.mk2-cap svg { width: 19px; height: 19px; color: var(--ink); grid-row: 1 / 3; margin-top: 2px; }
.mk2-cap b { font-size: .84rem; font-weight: 800; letter-spacing: -.01em; }
.mk2-cap span { grid-column: 2; font-size: .73rem; color: var(--ink-2); line-height: 1.45; }

/* ---------------------------------------------------------- bookings calendar */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -.015em; margin-left: 2px; }
.cal-seg {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.cal-seg a {
  padding: 5px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 750; color: var(--ink-2); text-decoration: none;
}
.cal-seg a:hover { color: var(--ink); }
.cal-seg a.on { background: var(--ink); color: var(--paper); }

/* event chip — the mockup's periwinkle block with a left rail */
.cal-evt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--info-soft); border: 0; border-left: 3px solid var(--info);
  border-radius: 7px; padding: 3px 8px; margin-top: 4px; line-height: 1.25;
}
.cal-evt b { display: block; font-size: .7rem; font-weight: 800; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-evt s { display: block; text-decoration: none; font-size: .62rem; font-weight: 650; color: var(--ink-2); }
.cal-evt.wide { width: auto; min-width: 150px; max-width: 240px; padding: 6px 11px; }
.cal-evt.wide b { font-size: .8rem; }
.cal-evt.wide s { font-size: .68rem; }
.cal-evt.st-checked_in { background: var(--accent-soft); border-left-color: var(--accent); }
.cal-evt.st-completed { background: var(--ok-soft); border-left-color: var(--ok); opacity: .75; }
.cal-evt.st-no_show { background: var(--bad-soft); border-left-color: var(--bad); }
.cal-evt.st-no_show b { text-decoration: line-through; }

/* month grid */
.cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
}
.cal-dow span {
  padding: 9px 10px; font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell {
  min-height: 104px; padding: 7px 8px 9px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-month .cal-cell:nth-last-child(-n+7) { border-bottom: 0; }
.cal-cell .d {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; border-radius: 50%; padding: 0 4px;
  font-size: .78rem; font-weight: 750; color: var(--ink-2); text-decoration: none;
}
.cal-cell .d:hover { background: var(--paper-2); color: var(--ink); }
.cal-cell.dim { background: color-mix(in srgb, var(--paper-2) 45%, transparent); }
.cal-cell.dim .d { color: var(--ink-3); }
.cal-cell.today .d { background: var(--ink); color: var(--paper); }
.cal-more {
  display: block; margin-top: 4px; font-size: .66rem; font-weight: 750;
  color: var(--ink-3); text-decoration: none;
}
.cal-more:hover { color: var(--ink); }

/* week columns */
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-col { padding: 0 8px 12px; border-right: 1px solid var(--line); min-height: 300px; }
.cal-col:last-child { border-right: 0; }
.cal-col.today { background: color-mix(in srgb, var(--accent-soft) 30%, transparent); }
.cal-col .h {
  display: flex; align-items: baseline; gap: 6px; padding: 10px 2px 8px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px; text-decoration: none;
}
.cal-col .h u { text-decoration: none; font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); }
.cal-col .h b { font-size: .95rem; font-weight: 800; color: var(--ink); }
.cal-col.today .h u, .cal-col.today .h b { color: var(--accent-deep); }
.cal-none { display: block; padding: 8px 2px; color: var(--line-2); font-size: .8rem; }

/* day rows — the mockup card's hour lanes */
.cal-day { padding: 4px 18px 10px; }
.cal-row { display: flex; align-items: flex-start; gap: 14px; border-top: 1px solid var(--line); padding: 8px 0; min-height: 46px; }
.cal-row:first-child { border-top: 0; }
.cal-row > u {
  text-decoration: none; flex: none; width: 46px; padding-top: 8px;
  font-size: .68rem; font-weight: 750; color: var(--ink-3);
}
.cal-row.bare { min-height: 34px; }
.cal-row .lane { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.cal-row .lane .cal-evt { margin-top: 0; }
@media (max-width: 860px) {
  .cal-cell { min-height: 72px; padding: 5px 6px; }
  .cal-cell .cal-evt s { display: none; }
  .cal-week { grid-template-columns: 1fr; }
  .cal-col { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
}

/* ---------------------------------------------------------- floor v5: textures */
/* flooring regions — drawn under everything, drag-to-fill */
.fo-floor {
  border: 1px solid rgba(120, 112, 95, .28); border-radius: 3px;
}
.fo-floor.v-oak {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(140, 110, 70, .28) 79px 80px),
    repeating-linear-gradient(0deg, #EBD9B6 0 17px, #E5D1A8 17px 18px);
}
.fo-floor.v-walnut {
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(70, 50, 30, .32) 79px 80px),
    repeating-linear-gradient(0deg, #CBA379 0 17px, #C1976B 17px 18px);
}
.fo-floor.v-tile {
  background:
    repeating-linear-gradient(0deg, transparent 0 49px, #DDD8C9 49px 50px),
    repeating-linear-gradient(90deg, transparent 0 49px, #DDD8C9 49px 50px),
    #F2F0E8;
}
.fo-floor.v-checker {
  background: repeating-conic-gradient(#F2EFE6 0% 25%, #E1DCCB 25% 50%) 0 0 / 60px 60px;
}
.fo-floor.v-stone {
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, #C9C4B4 59px 61px),
    repeating-linear-gradient(90deg, transparent 0 89px, #C9C4B4 89px 91px),
    linear-gradient(135deg, #E6E2D5 0%, #DFDACB 100%);
}
.fo-floor.v-terracotta {
  background:
    repeating-linear-gradient(0deg, transparent 0 44px, #C08355 44px 46px),
    repeating-linear-gradient(90deg, transparent 0 44px, #C08355 44px 46px),
    #DCA173;
}

/* table finishes */
.fl-el.tbl.f-oak {
  background: repeating-linear-gradient(90deg, #E9D2A0 0 12px, #E1C68E 12px 24px);
  border-color: #A8834E;
}
.fl-el.tbl.f-walnut {
  background: repeating-linear-gradient(90deg, #C39A6B 0 12px, #B78C5D 12px 24px);
  border-color: #7E5E38;
}
.fl-el.tbl.f-walnut b { color: #3F2E18; }
.fl-el.tbl.f-walnut span { color: #64502F; }
.fl-el.tbl.f-marble {
  background:
    linear-gradient(105deg, transparent 42%, rgba(150, 148, 138, .35) 43.5%, transparent 46%),
    linear-gradient(72deg, transparent 68%, rgba(150, 148, 138, .25) 69.5%, transparent 72%),
    #F3F1EA;
  border-color: #ABA695;
}
.fl-el.tbl.f-marble b { color: #55524A; }
.fl-el.tbl.f-marble span { color: #8B877A; }
.fl-el.tbl.f-linen {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(160, 140, 105, .10) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(160, 140, 105, .10) 3px 4px),
    #F0E7D3;
  border-color: #B7A681;
}

/* toolbar combo buttons: tool + caret + swatch menu */
.fd-combo { position: relative; display: inline-flex; align-items: center; }
.fd-combo .fd-tool { padding-right: 8px; }
.fd-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; min-height: 34px; margin-left: -4px;
  border: 0; background: none; color: var(--ink-3); cursor: pointer;
  border-radius: 8px;
}
.fd-caret:hover { background: var(--paper-2); color: var(--ink); }
.fd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 96; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(22, 21, 15, .14); padding: 6px;
}
.fd-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: none; border-radius: 9px;
  font-size: .84rem; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left;
}
.fd-menu button:hover { background: var(--paper-2); }
.fd-sw {
  display: inline-block; width: 22px; height: 22px; flex: none;
  position: relative; overflow: hidden; /* contain variant pseudo-elements */
  border-radius: 6px; border: 1px solid var(--line-2);
  background-color: var(--paper-2); background-size: cover; background-position: center;
}
.fd-sw.fo-plant { background-size: contain; background-repeat: no-repeat; border: 0; filter: none; }

/* ---------------------------------------------------------- floor fun pack */
/* a selected flooring region must stay UNDER everything — the generic
   .sel z-index lift would hide the whole room behind it */
.fl-el.fo-floor.sel { z-index: 0; }

/* water flooring */
.fo-floor.v-water {
  background:
    repeating-radial-gradient(ellipse at 28% 30%, transparent 0 26px, rgba(255, 255, 255, .16) 26px 29px),
    repeating-radial-gradient(ellipse at 72% 68%, transparent 0 34px, rgba(255, 255, 255, .12) 34px 37px),
    linear-gradient(135deg, #A9D4DF, #7FB4C7 60%, #6FA6BB);
  border-color: rgba(70, 110, 130, .4);
}

/* hanging lantern: warm paper glow, smaller and cozier than a lamp */
.fo-lantern {
  background: radial-gradient(circle at 45% 35%, #FFE3A6 20%, #F5BE62 70%, #DFA043);
  border: 2px solid #B67F2E; border-radius: 38%;
  box-shadow: 0 0 16px 5px rgba(245, 190, 98, .5);
  overflow: visible !important;
}
.fo-lantern::before {
  content: ''; position: absolute; left: 50%; top: -22%; width: 26%; height: 18%;
  transform: translateX(-50%);
  border: 2px solid #B67F2E; border-bottom: 0; border-radius: 40% 40% 0 0;
}
.fo-lantern::after {
  content: ''; position: absolute; left: 50%; top: 26%; width: 2px; height: 48%;
  transform: translateX(-50%); background: rgba(182, 127, 46, .55);
}

/* koi pond v2: rippled water inside a stone shore, two koi lazily circling.
   The koi are small fractions of the pond so a big pond doesn't grow
   dinner-plate fish; ripples keep large surfaces from reading flat. */
.fo-pond {
  background:
    radial-gradient(ellipse at 30% 24%, rgba(255, 255, 255, .30), transparent 42%),
    repeating-radial-gradient(ellipse at 55% 58%, rgba(255, 255, 255, .09) 0 7%, transparent 7% 15%),
    radial-gradient(ellipse at 58% 62%, #7FB7CB, #5E9DB6 62%, #4B87A2);
  border: 4px solid #8D8778; /* stone shore */
  border-radius: 48% 52% 55% 45% / 55% 48% 52% 45%;
  box-shadow:
    inset 0 0 0 3px rgba(35, 75, 100, .45),
    inset 0 0 0 8px rgba(255, 255, 255, .12),
    inset 0 12px 26px rgba(18, 52, 72, .35);
  overflow: hidden !important;
}
.fo-pond::before, .fo-pond::after {
  content: ''; position: absolute;
  border-radius: 62% 85% 85% 62% / 55% 55% 55% 55%;
  box-shadow: 2px 3px 4px rgba(15, 45, 65, .35);
}
.fo-pond::before {
  left: 30%; top: 38%; width: 12%; height: 6.5%;
  background:
    radial-gradient(ellipse at 30% 45%, #FCEEDC 0 28%, transparent 30%),
    linear-gradient(90deg, #C94F12 0 18%, #E8702A 55%, #F5A470 85%, #F7C29B);
  animation: koi-sway-a 9s ease-in-out infinite;
}
.fo-pond::after {
  left: 58%; top: 60%; width: 9%; height: 5%;
  background:
    radial-gradient(ellipse at 60% 50%, #E8702A 0 30%, transparent 33%),
    linear-gradient(90deg, #EFE6D6 0 55%, #F4B98C);
  animation: koi-sway-b 12s ease-in-out infinite;
}
@keyframes koi-sway-a {
  0%   { transform: rotate(14deg) translate(0, 0); }
  30%  { transform: rotate(30deg) translate(60%, 35%); }
  55%  { transform: rotate(8deg) translate(130%, 10%); }
  80%  { transform: rotate(-12deg) translate(55%, -30%); }
  100% { transform: rotate(14deg) translate(0, 0); }
}
@keyframes koi-sway-b {
  0%   { transform: rotate(-150deg) translate(0, 0); }
  35%  { transform: rotate(-128deg) translate(-80%, -25%); }
  65%  { transform: rotate(-165deg) translate(-160%, 15%); }
  100% { transform: rotate(-150deg) translate(0, 0); }
}

/* a single koi — rotate it to swim any direction */
.fo-fish {
  background: linear-gradient(90deg, #F4EFE4 30%, #E8702A 65%, #D95F1D);
  border: 1.5px solid rgba(150, 70, 20, .55);
  border-radius: 55% 70% 70% 55% / 55% 60% 60% 55%;
  overflow: visible !important;
}
.fo-fish::after {
  content: ''; position: absolute; right: -26%; top: 50%;
  width: 34%; height: 88%;
  transform: translateY(-50%);
  transform-origin: left center;
  background: #E8702A; opacity: .85;
  clip-path: polygon(0 50%, 100% 0, 72% 50%, 100% 100%);
  animation: koi-tail 1.8s ease-in-out infinite;
}
.fo-fish::before {
  content: ''; position: absolute; left: 18%; top: 26%;
  width: 12%; height: 20%; border-radius: 50%;
  background: #3A2A1A;
}
@keyframes koi-tail {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(-50%) rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fo-pond::before, .fo-pond::after, .fo-fish::after { animation: none; }
}

/* ---------------------------------------------------------- industry equipment
   Top-down blueprint pieces. Steel frames #8B8578, upholstery tan #EFDDB7,
   platforms gray #DBD6C8. Every piece = base element + two pseudos, so it
   scales with the object's w/h. */
.fo-equipment { border: 2px solid #8B8578; border-radius: 8px; background: #F1EEE5; overflow: visible !important; }

/* bookable equipment: live state on the host floor */
.fo-equipment.bookable { cursor: pointer; }
.fo-eqname {
  position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 1px 9px; font-size: 10px; font-weight: 750; color: var(--ink-2);
  white-space: nowrap; pointer-events: none; z-index: 2;
}
.fo-equipment.eq-busy { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.fo-equipment.eq-busy .fo-eqname { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fo-equipment.eq-due { outline: 2.5px solid var(--warn); outline-offset: 2px; }
.fo-equipment.eq-due .fo-eqname { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.fo-equipment.eq-soon { outline: 2px dashed var(--warn); outline-offset: 2px; }
.fo-equipment.eq-soon .fo-eqname { border-color: var(--warn); color: var(--warn); }

/* -------- pilates */
.fo-equipment.v-reformer {
  background:
    linear-gradient(0deg, transparent 0 8%, #C9C3B2 8% 10%, transparent 10%),
    linear-gradient(#F1EEE5, #F1EEE5);
}
.fo-equipment.v-reformer::before { /* carriage */
  content: ''; position: absolute; left: 12%; top: 20%; width: 76%; height: 34%;
  background: #EFDDB7; border: 1.5px solid #B69463; border-radius: 6px;
}
.fo-equipment.v-reformer::after { /* shoulder rests + headrest */
  content: ''; position: absolute; left: 26%; top: 12%; width: 48%; height: 6%;
  background: #B69463; border-radius: 4px;
  box-shadow: 0 -5px 0 -1px #D9C08F;
}
.fo-equipment.v-cadillac {
  border-width: 3px; border-radius: 6px;
  background:
    radial-gradient(circle at 7% 5%, #6E695D 5px, transparent 6px),
    radial-gradient(circle at 93% 5%, #6E695D 5px, transparent 6px),
    radial-gradient(circle at 7% 95%, #6E695D 5px, transparent 6px),
    radial-gradient(circle at 93% 95%, #6E695D 5px, transparent 6px),
    #F1EEE5;
}
.fo-equipment.v-cadillac::before { /* mat bed */
  content: ''; position: absolute; left: 14%; top: 10%; width: 72%; height: 80%;
  background: #EFDDB7; border: 1.5px solid #B69463; border-radius: 8px;
}
.fo-equipment.v-cadillac::after { /* trapeze bar overhead */
  content: ''; position: absolute; left: 20%; top: 42%; width: 60%; height: 4%;
  background: #8B8578; border-radius: 3px;
}
.fo-equipment.v-tower::before { /* mat */
  content: ''; position: absolute; left: 12%; top: 16%; width: 76%; height: 74%;
  background: #EFDDB7; border: 1.5px solid #B69463; border-radius: 6px;
}
.fo-equipment.v-tower::after { /* tower bar across the head end */
  content: ''; position: absolute; left: 6%; top: 5%; width: 88%; height: 7%;
  background: #6E695D; border-radius: 3px;
}
.fo-equipment.v-wunda { background: #EFDDB7; border-color: #B69463; }
.fo-equipment.v-wunda::before { /* split pedal */
  content: ''; position: absolute; left: 18%; bottom: 8%; width: 64%; height: 16%;
  background: linear-gradient(90deg, #B69463 0 46%, transparent 46% 54%, #B69463 54%);
  border-radius: 3px;
}
.fo-equipment.v-barrel {
  background: repeating-linear-gradient(0deg, #F1EEE5 0 14%, #C9C3B2 14% 17%);
}
.fo-equipment.v-barrel::before { /* the barrel hump */
  content: ''; position: absolute; left: 8%; bottom: 4%; width: 84%; height: 52%;
  background: radial-gradient(ellipse at 50% 100%, #E4C994, #D9BA7E);
  border: 1.5px solid #B69463;
  border-radius: 50% 50% 8px 8px / 90% 90% 8px 8px;
}
.fo-equipment.v-mat {
  background: #EAE3D0; border-color: #BBAF92; border-radius: 12px;
  box-shadow: inset 0 0 0 4px rgba(255, 252, 244, .6);
}

/* -------- gym */
.fo-equipment.v-rack {
  border-width: 3px; border-radius: 6px;
  background:
    radial-gradient(circle at 8% 8%, #6E695D 6px, transparent 7px),
    radial-gradient(circle at 92% 8%, #6E695D 6px, transparent 7px),
    radial-gradient(circle at 8% 92%, #6E695D 6px, transparent 7px),
    radial-gradient(circle at 92% 92%, #6E695D 6px, transparent 7px),
    #EDEAE0;
}
.fo-equipment.v-rack::before { /* barbell with plates at both ends */
  content: ''; position: absolute; left: -8%; top: 44%; width: 116%; height: 11%;
  background: linear-gradient(90deg,
    #4E4A40 0 5%, transparent 5% 8%,
    #6E695D 8% 92%,
    transparent 92% 95%, #4E4A40 95%);
  border-radius: 3px;
}
.fo-equipment.v-bench { background: #EFDDB7; border-color: #B69463; border-radius: 10px; }
.fo-equipment.v-bench::before { /* head pad */
  content: ''; position: absolute; left: 16%; top: 5%; width: 68%; height: 20%;
  background: #E4C994; border: 1.5px solid #B69463; border-radius: 6px;
}
.fo-equipment.v-treadmill {
  background:
    repeating-linear-gradient(0deg, #DBD6C8 0 10px, #CFC9B8 10px 12px);
  border-radius: 10px 10px 6px 6px;
}
.fo-equipment.v-treadmill::before { /* console */
  content: ''; position: absolute; left: 8%; top: 3%; width: 84%; height: 10%;
  background: #6E695D; border-radius: 4px;
}
.fo-equipment.v-treadmill::after { /* side rails */
  content: ''; position: absolute; left: 4%; top: 14%; width: 92%; height: 56%;
  border: 2px solid #8B8578; border-top: 0; border-bottom: 0;
}
.fo-equipment.v-rower {
  border-radius: 999px;
  background:
    linear-gradient(0deg, transparent 0 46%, #B69463 46% 58%, transparent 58%) 50% 50% / 68% 100% no-repeat,
    #EDEAE0; /* the sliding seat sits mid-rail */
}
.fo-equipment.v-rower::before { /* monorail */
  content: ''; position: absolute; left: 45%; top: 20%; width: 10%; height: 76%;
  background: #8B8578; border-radius: 4px;
}
.fo-equipment.v-rower::after { /* flywheel at the head */
  content: ''; position: absolute; left: 22%; top: 3%; width: 56%; height: 15%;
  background: radial-gradient(ellipse, #6E695D 55%, #4E4A40 56%);
  border-radius: 50%;
}
.fo-equipment.v-bike { border-radius: 12px; background: #EDEAE0; }
.fo-equipment.v-bike::before { /* handlebars */
  content: ''; position: absolute; left: 12%; top: 4%; width: 76%; height: 18%;
  border: 2.5px solid #6E695D; border-bottom: 0; border-radius: 60% 60% 0 0;
}
.fo-equipment.v-bike::after { /* frame + saddle */
  content: ''; position: absolute; left: 42%; top: 26%; width: 16%; height: 62%;
  background: linear-gradient(#8B8578 0 68%, #B69463 68%);
  border-radius: 4px;
}
.fo-equipment.v-dumbbells {
  background:
    radial-gradient(circle 5px at 12px 33%, #4E4A40 4.5px, transparent 5.5px),
    radial-gradient(circle 5px at 12px 72%, #4E4A40 4.5px, transparent 5.5px),
    #DBD6C8;
  background-size: 26px 100%, 26px 100%, auto;
  border-radius: 6px;
}

/* -------- salon & spa */
.fo-equipment.v-stylechair { background: #EFDDB7; border-color: #B69463; border-radius: 50%; }
.fo-equipment.v-stylechair::before { /* backrest */
  content: ''; position: absolute; left: 10%; top: -10%; width: 80%; height: 34%;
  border: 2.5px solid #B69463; border-bottom: 0; border-radius: 60% 60% 0 0;
  background: #E4C994;
}
.fo-equipment.v-basin { border-radius: 10px; background: #EFDDB7; border-color: #B69463; }
.fo-equipment.v-basin::before { /* the bowl */
  content: ''; position: absolute; left: 22%; top: 6%; width: 56%; height: 34%;
  background: radial-gradient(circle at 50% 55%, #FFFFFF 35%, #C9DCE2 70%, #9DBEC9);
  border: 2px solid #7FA6B3; border-radius: 50%;
}
.fo-equipment.v-dryer { border-radius: 10px; background: #EFDDB7; border-color: #B69463; }
.fo-equipment.v-dryer::before { /* hood */
  content: ''; position: absolute; left: 14%; top: 4%; width: 72%; height: 36%;
  background: radial-gradient(ellipse at 50% 100%, #DBD6C8, #B4AE9C);
  border: 2px solid #8B8578; border-radius: 50% 50% 20% 20%;
}
.fo-equipment.v-station {
  background: #E5E1D5; border-color: #A9A28F; border-radius: 6px;
}
.fo-equipment.v-station::before { /* mirror strip */
  content: ''; position: absolute; left: 6%; top: 10%; width: 88%; height: 22%;
  background: linear-gradient(105deg, #EAF2F4 30%, #CBDCE1 60%, #EAF2F4);
  border: 1.5px solid #9DBEC9; border-radius: 3px;
}

/* -------- restaurant front + back of house */
.fo-equipment.v-hoststand { background: #C39A6B; border-color: #7E5E38; border-radius: 8px 8px 4px 4px; }
.fo-equipment.v-hoststand::before { /* open reservation book */
  content: ''; position: absolute; left: 18%; top: 20%; width: 64%; height: 56%;
  background: linear-gradient(90deg, #FBF8F0 0 48%, #D9D2BF 48% 52%, #FBF8F0 52%);
  border: 1px solid #B4AC97; border-radius: 2px;
}
.fo-equipment.v-register { background: #6E695D; border-color: #4E4A40; border-radius: 6px; }
.fo-equipment.v-register::before { /* screen */
  content: ''; position: absolute; left: 12%; top: 14%; width: 76%; height: 46%;
  background: linear-gradient(135deg, #B9D2DA 0 55%, #8FB4C1); border-radius: 3px;
}
.fo-equipment.v-register::after { /* card reader */
  content: ''; position: absolute; right: 8%; bottom: 8%; width: 22%; height: 20%;
  background: #4E4A40; border-radius: 2px;
}
.fo-equipment.v-waitstation { background: #E5E1D5; border-color: #A9A28F; border-radius: 6px; }
.fo-equipment.v-waitstation::before { /* plate stacks */
  content: ''; position: absolute; left: 10%; top: 24%; width: 26%; height: 52%;
  background: radial-gradient(circle, #FBF8F0 55%, #C9C3B2 58%, #FBF8F0 62%);
  border: 1.5px solid #A9A28F; border-radius: 50%;
}
.fo-equipment.v-waitstation::after { /* cutlery tray */
  content: ''; position: absolute; right: 10%; top: 28%; width: 40%; height: 44%;
  background: repeating-linear-gradient(90deg, #C9C3B2 0 22%, transparent 22% 33%);
  border: 1.5px solid #A9A28F; border-radius: 3px;
}
.fo-equipment.v-winerack {
  background:
    radial-gradient(circle 6px at 14px 30%, #7A3648 5.5px, transparent 6.5px),
    radial-gradient(circle 6px at 14px 70%, #5C4A2E 5.5px, transparent 6.5px),
    #C39A6B;
  background-size: 28px 100%, 28px 100%, auto;
  border-color: #7E5E38; border-radius: 5px;
}
.fo-equipment.v-range { background: #B4AE9C; border-color: #6E695D; border-radius: 6px; }
.fo-equipment.v-range::before, .fo-equipment.v-range::after {
  content: ''; position: absolute; width: 30%; height: 52%; top: 24%;
  background: radial-gradient(circle, #4E4A40 34%, transparent 36%),
              radial-gradient(circle, transparent 44%, #4E4A40 46% 54%, transparent 56%);
  border-radius: 50%;
}
.fo-equipment.v-range::before { left: 10%; }
.fo-equipment.v-range::after { right: 10%; }
.fo-equipment.v-preptable { background: #DBD6C8; border-color: #8B8578; border-radius: 5px; }
.fo-equipment.v-preptable::before { /* cutting board */
  content: ''; position: absolute; left: 10%; top: 22%; width: 34%; height: 56%;
  background: #E4C994; border: 1.5px solid #B69463; border-radius: 4px;
}
.fo-equipment.v-sink { background: #DBD6C8; border-color: #8B8578; border-radius: 6px; }
.fo-equipment.v-sink::before { /* basin */
  content: ''; position: absolute; left: 16%; top: 26%; width: 68%; height: 56%;
  background: linear-gradient(135deg, #C6C0AE, #AFA894); border: 1.5px solid #8B8578;
  border-radius: 6px;
}
.fo-equipment.v-sink::after { /* faucet */
  content: ''; position: absolute; left: 44%; top: 6%; width: 12%; height: 16%;
  background: #6E695D; border-radius: 40% 40% 0 0;
}
.fo-equipment.v-fridge { background: #E5E1D5; border-color: #6E695D; border-radius: 6px; }
.fo-equipment.v-fridge::before { /* double doors */
  content: ''; position: absolute; left: 49%; top: 6%; width: 2%; height: 88%;
  background: #6E695D;
}
.fo-equipment.v-fridge::after { /* handles */
  content: ''; position: absolute; left: 38%; top: 32%; width: 6%; height: 36%;
  background: #6E695D; border-radius: 3px; box-shadow: 3px 0 0 3px transparent, 0 0 0 0;
}
.fo-equipment.v-dishwasher { background: #B4AE9C; border-color: #6E695D; border-radius: 6px; }
.fo-equipment.v-dishwasher::before { /* round door */
  content: ''; position: absolute; left: 22%; top: 22%; width: 56%; height: 56%;
  background: radial-gradient(circle, #DBD6C8 40%, transparent 42%),
              radial-gradient(circle, transparent 55%, #6E695D 57% 64%, transparent 66%);
  border-radius: 50%;
}
.fo-equipment.v-trash { background: #8B8578; border-color: #6E695D; border-radius: 50%; }
.fo-equipment.v-trash::before { /* lid ring */
  content: ''; position: absolute; inset: 22%;
  border: 2px solid #DBD6C8; border-radius: 50%; opacity: .8;
}

/* -------- café lounge */
.fo-equipment.v-espresso { background: #4E4A40; border-color: #35322B; border-radius: 6px; }
.fo-equipment.v-espresso::before { /* group heads */
  content: ''; position: absolute; left: 14%; bottom: 12%; width: 72%; height: 30%;
  background: radial-gradient(circle at 25% 50%, #C9C3B2 26%, transparent 30%),
              radial-gradient(circle at 75% 50%, #C9C3B2 26%, transparent 30%),
              #35322B;
  border-radius: 4px;
}
.fo-equipment.v-espresso::after { /* cup warmer row */
  content: ''; position: absolute; left: 18%; top: 10%; width: 64%; height: 20%;
  background: repeating-linear-gradient(90deg, #B69463 0 18%, transparent 18% 30%);
  border-radius: 3px;
}
.fo-equipment.v-pastrycase { background: #E5E1D5; border-color: #A9A28F; border-radius: 6px; }
.fo-equipment.v-pastrycase::before { /* glass */
  content: ''; position: absolute; left: 4%; top: 10%; width: 92%; height: 34%;
  background: linear-gradient(105deg, #EAF2F4 30%, #CBDCE1 60%, #EAF2F4);
  border: 1.5px solid #9DBEC9; border-radius: 3px;
}
.fo-equipment.v-pastrycase::after { /* pastries */
  content: ''; position: absolute; left: 8%; bottom: 12%; width: 84%; height: 30%;
  background: radial-gradient(circle at 12% 50%, #D9A45B 30%, transparent 34%),
              radial-gradient(circle at 38% 50%, #B96F3F 30%, transparent 34%),
              radial-gradient(circle at 64% 50%, #E2BC7E 30%, transparent 34%),
              radial-gradient(circle at 88% 50%, #C98A4B 30%, transparent 34%);
}
.fo-equipment.v-couch { background: #D9C08F; border-color: #A8834E; border-radius: 14px; }
.fo-equipment.v-couch::before { /* back cushions */
  content: ''; position: absolute; left: 4%; top: 6%; width: 92%; height: 30%;
  background: repeating-linear-gradient(90deg, #E4CD9E 0 31%, #A8834E 31% 33%, #E4CD9E 33%);
  border-radius: 8px;
}
.fo-equipment.v-couch::after { /* armrests */
  content: ''; position: absolute; inset: 4% 0;
  border-left: 6px solid #C0975C; border-right: 6px solid #C0975C;
  border-radius: 14px;
}
.fo-equipment.v-armchair { background: #D9C08F; border-color: #A8834E; border-radius: 40% 40% 30% 30%; }
.fo-equipment.v-armchair::before { /* wrap-around back */
  content: ''; position: absolute; inset: -6% 2% 40% 2%;
  border: 3px solid #A8834E; border-bottom: 0; border-radius: 55% 55% 0 0;
  background: #E4CD9E;
}
.fo-equipment.v-bookshelf {
  background: repeating-linear-gradient(90deg,
    #B96F3F 0 6%, #7A5A38 6% 11%, #A8834E 11% 18%, #5C6E5E 18% 22%,
    #C0975C 22% 30%, #7A3648 30% 34%, #B4AE9C 34% 39%),
  #C39A6B;
  border-color: #7E5E38; border-radius: 4px;
}
.fo-equipment.v-condiments { background: #E5E1D5; border-color: #A9A28F; border-radius: 6px; }
.fo-equipment.v-condiments::before { /* jars */
  content: ''; position: absolute; left: 10%; top: 26%; width: 80%; height: 48%;
  background: radial-gradient(circle at 15% 50%, #C9C3B2 32%, transparent 36%),
              radial-gradient(circle at 50% 50%, #B69463 32%, transparent 36%),
              radial-gradient(circle at 85% 50%, #C9C3B2 32%, transparent 36%);
}

/* -------- spa / retail / generic */
.fo-equipment.v-massage { background: #EFDDB7; border-color: #B69463; border-radius: 14px; }
.fo-equipment.v-massage::before { /* face cradle */
  content: ''; position: absolute; left: 34%; top: 5%; width: 32%; height: 12%;
  background: radial-gradient(circle, transparent 34%, #B69463 36% 60%, transparent 62%), #E4C994;
  border-radius: 50%;
}
.fo-equipment.v-massage::after { /* towel band */
  content: ''; position: absolute; left: 8%; top: 55%; width: 84%; height: 14%;
  background: #FBF8F0; border: 1px solid #D9C08F; border-radius: 4px;
}
.fo-equipment.v-shelfrun {
  background: repeating-linear-gradient(90deg, transparent 0 23%, #8B8578 23% 25%),
    #DBD6C8;
  border-color: #6E695D; border-radius: 4px;
}
.fo-equipment.v-displaytable { background: #E4C994; border-color: #B69463; border-radius: 8px; }
.fo-equipment.v-displaytable::before { /* folded goods */
  content: ''; position: absolute; left: 12%; top: 18%; width: 76%; height: 64%;
  background:
    linear-gradient(90deg, #F0E7D3 0 30%, transparent 30% 36%, #C9DCE2 36% 64%, transparent 64% 70%, #D9A45B 70%);
  border-radius: 3px; opacity: .85;
}

/* ---------------------------------------------------------- state beats finish
   A walnut/oak/marble finish is appended after the live-state rules, so a
   seated finished table looked identical to an open one (only the chair
   rings changed). Live states are the whole point of the host floor — they
   always win over cosmetics. */
.fl-el.tbl.seated {
  background: var(--accent) !important;
  border-color: var(--accent-deep) !important;
}
.fl-el.tbl.seated b { color: var(--accent-ink) !important; }
.fl-el.tbl.seated span { color: color-mix(in srgb, var(--accent-ink) 75%, transparent) !important; }
.fl-el.tbl.reserved {
  background: var(--warn-soft) !important;
  border-color: var(--warn) !important;
}
.fl-el.tbl.reserved b { color: var(--warn) !important; }

/* ------------------------------------------------ shut entrance + qty stepper */
/* when the shop is closed the main door draws shut: leaf across the opening */
.fo-door.shut::before { display: none; }
.fo-door.shut::after {
  left: 0; top: 50%; width: 100%; height: 5px;
  transform: translateY(-50%);
  background: var(--bad); border-radius: 2px;
}
.fo-eqname.closed {
  background: var(--bad); border-color: var(--bad); color: #fff;
  letter-spacing: .08em;
}

/* touch-friendly quantity stepper (host dialogs) */
.qty-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.qty-step .input { flex: 1; text-align: center; min-height: 52px; font-size: 1.15rem; font-weight: 750; }
.qs-btn {
  width: 54px; height: 54px; flex: none;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--card);
  font-size: 1.6rem; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.qs-btn:hover { border-color: var(--ink); }
.qs-btn:active { transform: scale(.94); }

/* ------------------------------------------------ landing industry showcase */
.mk2-seg .chip { font: inherit; font-weight: 750; cursor: pointer; }
.mk2-seg .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mk2-seg .chip.on svg { color: var(--accent-2, var(--accent)); }
/* mini floor scenes drawn with the real designer classes */
.vg-scene {
  position: relative; height: 152px;
  background: #FCFBF7; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.vg-scene .fl-el { cursor: default; }

/* ------------------------------------------------ check page (staff POS lite) */
.ck-cats { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ck-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; padding: 14px 16px;
}
.ck-item {
  display: flex; flex-direction: column; gap: 5px; min-height: 92px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink);
  transition: border-color var(--ease), transform var(--ease);
}
.ck-item:hover { border-color: var(--ink); }
.ck-item:active { transform: scale(.98); }
.ck-item.off { opacity: .5; cursor: default; }
.ck-item img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; }
.ck-item b { font-weight: 750; font-size: .88rem; line-height: 1.25; }
.ck-item .price { margin-top: auto; font-weight: 800; font-size: .92rem; }
/* inline qty stepper on draft check lines */
.ck-qty { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.ck-qty b { min-width: 26px; text-align: center; font-weight: 800; }
.ck-qty button {
  width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--card); font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.ck-qty button:hover { border-color: var(--ink); }

/* ------------------------------------------------ public booking page (/book) */
.bk-wrap { min-height: 100dvh; padding: 26px 16px 40px; display: flex; flex-direction: column; justify-content: center; }
.bk-card {
  width: min(460px, 100%); margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 22px 22px 26px;
  box-shadow: 0 24px 70px rgba(22, 21, 15, .10);
}
.bk-wrap .ph-k { font-size: .62rem; margin: 18px 0 7px; }
.bk-top { display: flex; align-items: center; margin-bottom: 8px; }
.bk-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.bk-days .ph-day { cursor: pointer; font: inherit; padding: 7px 0 6px; }
.bk-days .ph-day u { font-size: .5rem; }
.bk-days .ph-day b { font-size: .95rem; }
.bk-svcs { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-svcs .chip {
  font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px;
}
.bk-svcs .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk-svcinfo { margin-top: 10px; }
.bk-svcinfo b { font-size: .88rem; font-weight: 800; display: block; }
.bk-svcinfo small { color: var(--ink-2); font-size: .76rem; }
.bk-wrap .slots { padding: 2px 0 6px; }
.bk-wrap .slot { min-width: 72px; min-height: 42px; font-size: .8rem; }
.bk-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
@media (max-width: 430px) { .bk-contact { grid-template-columns: 1fr; } }
.bk-wrap .qty-step { margin: 0; }
.bk-wrap .qty-step .input { min-height: 46px; }
.bk-wrap .qs-btn { width: 46px; height: 46px; }

/* deposit note on the public booking page */
.bk-fee { display: block; font-style: normal; font-size: .76rem; font-weight: 750; color: var(--accent-deep); margin-top: 4px; }

/* booking page grows up: one column on phones, a wide card on tablets,
   split panels on desktop */
.bk-cols { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bk-card { width: min(660px, 100%); padding: 28px 30px 32px; }
}
@media (min-width: 1020px) {
  .bk-card { width: min(960px, 100%); padding: 34px 38px 38px; }
  .bk-cols { grid-template-columns: 5fr 6fr; gap: 40px; }
  .bk-cols .bk-col + .bk-col { border-left: 1px solid var(--line); padding-left: 40px; }
  .bk-cols .bk-col + .bk-col .ph-k:first-child { margin-top: 2px; }
  .bk-name { font-size: 1.9rem; }
  .bk-wrap .slot { min-width: 78px; }
}
