/* ============================================================
   Interactive figure demos — shared styles
   ============================================================ */

.fig-demo {
  position: relative;
  /* Flat light-gray stage for every figure — the white device panels read
     cleanly against it. (Mina retired the pastel-gradient stages; #fafafa
     is now the single default.) Border, hover zoom and cursor-following
     ring stay. */
  background: #fafafa;
  border: 1px solid #e4e4e1;
  border-radius: 16px;
  padding: clamp(22px, 5vw, 52px) 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.fig-demo:hover {
  transform: scale(1.05);
  z-index: 5;
}

/* cursor-following colorful frame: a conic-gradient ring, revealed only
   inside a soft radial window centred on the mouse (--mx/--my from JS) */
.demo-ringwrap {
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000 35%, transparent 75%);
          mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000 35%, transparent 75%);
}
.fig-demo:hover .demo-ringwrap { opacity: 1; }
.demo-ring {
  position: absolute;
  inset: 0;
  border-radius: 17px;
  padding: 1.5px; /* ring thickness */
  background: conic-gradient(from 0deg, #ff9ec6, #b39dff, #7cc7ff, #7fe0b2, #ffd99e, #ff9ec6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}

@media (prefers-reduced-motion: reduce) {
  .fig-demo { animation: none; transition: none; }
  .fig-demo:hover { transform: none; }
}
.demo-stage {
  width: 80%;
  margin: 0 auto;
  position: relative;
}
.demo-hint {
  position: absolute;
  top: -24px;
  right: 2px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9aa1;
  pointer-events: none;
}
.demo-replay {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #18181b;
  border: none;
  border-radius: 100px;
  padding: 7px 12px;
  cursor: pointer;
}
.demo-replay:hover { background: #3f3f46; }

/* ============================================================
   tablet-05-tier-unlock — v2, rebuilt 1:1 from Figma frame
   3010:11395 (1194x834) and scaled to fit the stage.
   Colors/type are the file's exact tokens (M3 scale; Inter in place
   of Roboto by request).
   ============================================================ */
/* every figure now uses the flat #fafafa stage from the .fig-demo base rule
   above — no per-case gradient presets anymore */
.tdv {
  /* absolutely positioned so the native 1194px box never widens the page —
     only the scaled result is visible */
  position: absolute;
  top: 0;
  left: 0;
  /* exact design tokens from the Figma file */
  --g1: #212121;   /* System Gray 1 — primary text */
  --g4: #757575;   /* System Gray 4 — secondary */
  --g5: #9e9e9e;   /* System Gray 5 — secondary */
  --g7: #e0e0e0;   /* System Gray 7 — stroke */
  --g8: #eeeeee;   /* System Gray 8 — stroke */
  --g9: #f5f5f5;   /* System Gray 9 — background */
  --g10: #fafafa;  /* System Gray 10 — background */
  --red: #ff3b30;
  --orange: #ff9500;
  --purple: #af52de;
  --blue: #007aff;

  width: 1194px;
  height: 834px;
  transform-origin: top left;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(18, 18, 18, 0.22), 0 6px 18px rgba(18, 18, 18, 0.1);
  font-family: "Inter", "Geist", -apple-system, sans-serif;
  color: var(--g1);
  user-select: none;
  display: flex;
  flex-direction: column;
}
.tdv * { box-sizing: border-box; }
.tdv p { margin: 0; }
.tdv button { font-family: inherit; cursor: pointer; }

/* ---- top bar: 56px, black bottom rule ---- */
.tdv-top {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--g1);
}
.tdv-logo { display: flex; align-items: center; }
.tdv-logodot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--g1);
}
.tdv-topbtns { display: flex; align-items: center; }
.tdv-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px 0 16px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--g1);
}
.tdv-pill svg { width: 18px; height: 18px; }
.tdv-pill.tdv-outlined {
  border-color: var(--g7);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* ---- body: menu 820 + cart 374 ---- */
.tdv-body { flex: 1; min-height: 0; display: flex; }
.tdv-left {
  width: 820px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

/* menu-type row + category tabs (sticky header block) */
.tdv-menuhead {
  flex: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 12, 13, 0.05);
  position: relative;
  z-index: 2;
}
.tdv-tabs {
  display: flex;
  align-items: center;
  padding: 0 24px 0 16px;
  border-bottom: 1px solid var(--g7);
}
.tdv-tab {
  padding: 14px 16px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--g4);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tdv-tab.on { color: var(--g1); border-bottom-color: var(--g1); }
.tdv-search {
  margin-left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--g7);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdv-search svg { width: 17px; height: 17px; }

/* scrollable menu content — 756 wide, 32 left margin */
.tdv-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* no scroll-behavior:smooth — the autoplay glides via rAF in JS */
  background: #fff;
}
.tdv-scroll::-webkit-scrollbar { width: 10px; }
.tdv-scroll::-webkit-scrollbar-thumb { background: var(--g7); border-radius: 5px; }
.tdv-content { width: 756px; margin-left: 32px; padding-bottom: 32px; }

.tdv-kicker {
  padding-top: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--g4);
}
.tdv-h {
  height: 48px;
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  color: var(--g1);
}
.tdv-snack {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin: 16px 0 24px;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--g9);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.25px;
  color: var(--g4);
}
.tdv-snack.tdv-bordered { border: 1px solid var(--g7); }
.tdv-snack .tdv-snacktext { flex: 1; min-width: 0; }
.tdv-unlockbtn {
  display: flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25px;
  color: var(--g1);
  white-space: nowrap;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.tdv-unlockbtn svg { width: 20px; height: 20px; }
.tdv-unlockbtn:hover { text-decoration: underline; }
.tdv-unlockbtn.tdv-press,
.tdv-unlockbtn:active { transform: scale(0.88); opacity: 0.55; }

/* dish cards — borderless, image-first; whitespace does the separating */
.tdv-grid {
  display: grid;
  grid-template-columns: repeat(3, 244px);
  gap: 28px 12px;
  margin-top: 24px;
}
.tdv-card {
  width: 244px;
  transition: opacity 0.6s ease, filter 0.6s ease;
}
.tdv-media { position: relative; }
.tdv-img {
  width: 244px;
  height: 244px;
  border-radius: 14px;
  background: linear-gradient(160deg, #ececee, #f6f6f7); /* gray placeholder by request */
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.04); /* keeps light photos off the white page */
}
.tdv-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(33, 33, 33, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tdv-lock svg { width: 13px; height: 13px; }
.tdv-text { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 8px; }
.tdv-name { font-size: 16px; line-height: 24px; letter-spacing: 0.5px; }
.tdv-tag {
  align-self: flex-start;
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--g9);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--g4);
}
.tdv-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--g1);
  box-shadow: 0 1px 4px rgba(18, 18, 18, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tdv-add svg { width: 16px; height: 16px; }
.tdv-add:hover { background: var(--g9); }
.tdv-add:active { transform: scale(0.9); }
@keyframes tdv-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.tdv-add.tdv-popped { animation: tdv-pop 0.35s ease; }

/* locked (greyed) tier state — any tier */
.tdv-tier.tdv-locked .tdv-card {
  opacity: 0.45;
  filter: grayscale(1);
}
.tdv-tier.tdv-locked .tdv-lock { opacity: 1; transform: scale(1); }
.tdv-tier.tdv-locked .tdv-add { pointer-events: none; }

/* ---- cart rail: 374 wide, #FAFAFA ---- */
.tdv-cart {
  flex: 1;
  min-width: 0;
  background: var(--g10);
  border-left: 1px solid var(--g7);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tdv-cartcard {
  background: #fff;
  border: 1px solid var(--g7);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.tdv-carthead {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--g8);
}
.tdv-carthead b { font-size: 16px; font-weight: 500; letter-spacing: 0.15px; }
.tdv-clear { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; color: var(--g5); }
.tdv-cartscroll { flex: 1; min-height: 0; overflow-y: auto; }
.tdv-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--g7);
}
.tdv-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: linear-gradient(160deg, #ececee, #f6f6f7);
}
.tdv-itembody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tdv-itemname { font-size: 16px; line-height: 24px; letter-spacing: 0.5px; }
.tdv-itemfoot { display: flex; align-items: center; justify-content: flex-end; }
.tdv-stepper { display: flex; align-items: center; }
.tdv-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--g9);
  color: var(--g1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdv-step svg { width: 13px; height: 13px; }
.tdv-qty { width: 40px; text-align: center; font-size: 14px; letter-spacing: 0.25px; }
.tdv-cartfoot {
  flex: none;
  height: 64px;
  border-top: 1px solid var(--g7);
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.tdv-submit {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 100px;
  background: var(--g1);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
@media (prefers-reduced-motion: reduce) {
  .tdv-card, .tdv-lock, .tdv-add, .tdv-unlockbtn { transition: none; }
  .tdv-add.tdv-popped { animation: none; }
}

/* ============================================================
   dashboard-04-sales-overview — Analytics Dashboard shell,
   rebuilt 1:1 from the Peblla shadcn/ui frames 119:1178 and
   123:2023 (1508x1117), scaled to fit the stage.
   ============================================================ */
.adv {
  position: absolute;
  top: 0;
  left: 0;
  /* Peblla design-system tokens from the Figma file */
  --a-ink: #1a1a1a;     /* 90 - high emphasis */
  --a-mid: #666666;     /* 60 - medium emphasis */
  --a-soft: #4d4d4d;    /* 70 */
  --a-border: #e6e6e6;  /* 10 - border */
  --a-line: #cccccc;    /* 20 */
  --a-panel: #f2f2f2;   /* 5 - primary container */
  --a-brand: #ff4d00;   /* Peblla brand */
  --a-brand-bg: rgba(255, 77, 0, 0.05);
  --a-hover: rgba(0, 0, 0, 0.04);

  width: 1508px;
  height: 1117px;
  transform-origin: top left;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(18, 18, 18, 0.22), 0 6px 18px rgba(18, 18, 18, 0.1);
  font-family: "Inter", "Geist", -apple-system, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--a-ink);
  user-select: none;
}
.adv * { box-sizing: border-box; }
.adv p { margin: 0; }
.adv button { font-family: inherit; cursor: pointer; }

/* ---- primary rail: fixed icon-only strip, 72px, panel gray ---- */
.adv-rail1 {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: var(--a-panel);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.adv-r1head { flex: none; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
/* icon-only: labels, badges, chevrons and the version footer disappear */
.adv-rail1 .adv-itemlabel,
.adv-rail1 .adv-badge,
.adv-rail1 .adv-chev,
.adv-r1foot { display: none; }
.adv-r1tools { justify-content: center !important; }
.adv-rail1 .adv-item { justify-content: center; gap: 0; padding: 6px; }
/* logo placeholder — a plain black circle, same convention as the tablet demo */
.adv-logomark {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  /* the real black Peblla mark, cropped from the brand files */
  background: #fff url("assets/peblla-mark.png") center / contain no-repeat;
}
.adv-r1menu { flex: 1; min-height: 0; overflow: hidden; padding: 16px; }
.adv-r1menu > * + * { margin-top: 16px; }
.adv-r1tools { display: flex; align-items: center; justify-content: space-between; }
.adv-iconbtn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-border);
  border-radius: 4px;
  background: var(--a-panel);
  color: var(--a-soft);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.15s ease;
}
.adv-iconbtn svg { width: 20px; height: 20px; }
.adv-iconbtn:hover { background: var(--a-border); }
.adv-iconbtn.adv-press, .adv-iconbtn:active { transform: scale(0.88); opacity: 0.55; }
.adv-item {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--a-mid);
}
.adv-item:hover:not(.adv-on):not(.adv-version) { background: var(--a-border); }
.adv-item.adv-on { background: #fff; color: var(--a-brand); }
.adv-itemlabel { flex: 1; min-width: 0; }
.adv-ic20, .adv-ic16, .adv-ic12 { flex: none; display: flex; }
.adv-ic20 svg { width: 20px; height: 20px; }
.adv-ic16 svg { width: 16px; height: 16px; }
.adv-ic12 svg { width: 12px; height: 12px; }
.adv-badge { flex: none; font-size: 12px; font-weight: 400; color: var(--a-mid); }
.adv-badge-new { color: var(--a-brand); }
.adv-version { color: var(--a-mid); }
.adv-version:hover { background: none; }
.adv-r1foot { flex: none; padding: 16px; }

/* ---- top nav: 52px, hairline bottom ---- */
.adv-top {
  position: absolute;
  left: 72px;
  right: 0;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--a-border);
  z-index: 2;
}
.adv-crumbs { display: flex; align-items: center; padding-right: 16px; }
.adv-crumb { padding: 10px; font-weight: 500; color: var(--a-mid); white-space: nowrap; }
.adv-crumb-on { color: var(--a-ink); }
.adv-topnav { display: flex; align-items: center; gap: 8px; }
.adv-topitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--a-ink);
  white-space: nowrap;
}
.adv-topitem:hover { background: #f5f5f5; }
.adv-topitem .adv-ic20 { color: #343330; }

/* ---- second rail: 240px white, always open ---- */
.adv-rail2 {
  position: absolute;
  left: 72px;
  top: 52px;
  bottom: 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--a-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}
.adv-r2top { padding: 16px; }
.adv-r2top > * + * { margin-top: 16px; }
.adv-rail2 .adv-iconbtn { background: #fff; }
.adv-rail2 .adv-iconbtn:hover { background: var(--a-panel); }
.adv-item2 {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--a-mid);
}
.adv-sub2 { padding-left: 16px; }
.adv-sub2wrap { border-left: 1px solid var(--a-line); padding-left: 16px; }
.adv-subitem2 {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--a-mid);
}
.adv-subitem2 + .adv-subitem2 { margin-top: 16px; }
.adv-subitem2:hover:not(.adv-sub2on) { background: var(--a-panel); }
.adv-subitem2.adv-sub2on { background: var(--a-brand-bg); color: var(--a-brand); }
.adv-chev-up svg { transform: rotate(180deg); }
.adv-r2foot { padding: 16px; }

/* ---- content area: the Sales Overview screen (scrolls like the product) ---- */
.adv-content {
  position: absolute;
  left: 312px;
  right: 0;
  top: 52px;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  padding: 24px 32px 48px;
}
.adv-content::-webkit-scrollbar { width: 10px; }
.adv-content::-webkit-scrollbar-thumb { background: var(--a-border); border-radius: 5px; }

/* segmented pill toggle */
.adv-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--a-panel);
}
.adv-segbtn {
  border: none;
  background: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--a-mid);
}
.adv-segbtn.on { background: #fff; color: var(--a-ink); box-shadow: 0 1px 2px rgba(18, 18, 18, 0.08); }
.adv-seg-sm { margin: 12px 0 4px; }
.adv-seg-sm .adv-segbtn { padding: 5px 12px; font-size: 13px; }

/* headline + filter row */
.adv-h2 { margin: 20px 0 0; font-size: 28px; line-height: 36px; font-weight: 600; color: var(--a-ink); }
.adv-sub { margin-top: 4px; font-size: 15px; color: var(--a-mid); }
.adv-filters { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; }
.adv-filtergroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adv-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  color: var(--a-ink);
  white-space: nowrap;
}
.adv-filter:hover { background: #fafafa; }
.adv-filter .adv-ic20 { color: #343330; }
.adv-cmp { padding: 0 4px; color: var(--a-mid); }
/* Search is the hero action on this page — solid black, white icon */
.adv-searchbtn {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--a-ink);
  color: #fff;
}
.adv-searchbtn svg { width: 20px; height: 20px; }
.adv-searchbtn:hover { background: #333333; }

/* metric / summary cards */
.adv-cards { display: grid; gap: 16px; margin-top: 16px; }
.adv-cards3 { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.adv-cards2 { grid-template-columns: 1fr 1fr; }
.adv-card {
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}
.adv-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adv-cardtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--a-ink);
}
.adv-cardtitle .adv-ic14, .adv-mlabel .adv-ic14 { color: var(--a-line); display: flex; }
.adv-ic14 svg { width: 14px; height: 14px; }
.adv-delta {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.adv-delta .adv-ic12 { display: flex; }
.adv-delta-good { color: #17853f; background: #e9f8f0; }
.adv-delta-bad { color: #d92d20; background: #fdecec; }
.adv-bigval { margin-top: 10px; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--a-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.adv-tabs2 {
  display: inline-flex;
  gap: 2px;
  margin-top: 14px;
  padding: 3px;
  border-radius: 8px;
  background: var(--a-panel);
}
.adv-tab2 {
  border: none;
  background: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--a-mid);
  white-space: nowrap;
}
.adv-tab2.on { background: #fff; color: var(--a-ink); box-shadow: 0 1px 2px rgba(18, 18, 18, 0.08); }
.adv-tabpanel { display: none; margin-top: 6px; }
.adv-tabpanel.on { display: block; }
.adv-mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid #f0f0f0;
}
.adv-mrow:last-child { border-bottom: none; }
.adv-mlabel { display: flex; align-items: center; gap: 6px; color: var(--a-mid); }
.adv-mval { font-weight: 500; color: var(--a-ink); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .adv-iconbtn { transition: none; }
}

/* ============================================================
   dashboard-06-sales-summary — the Sales Summary report page,
   rebuilt 1:1 from the Peblla shadcn/ui frame 453:13243.
   1752x1080 viewport = the static .adv shell (72 + 240) + the
   frame's exact 80+1280+80 content band; content scrolls.
   ============================================================ */
.asv { width: 1752px; height: 1080px; }
.asv .adv-content { padding: 16px 80px 60px; }

/* ---- date filter row (anchor for the dropdown + calendar) ---- */
.asv-daterow { position: relative; z-index: 6; display: flex; align-items: center; gap: 8px; }
.asv-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--a-ink);
  white-space: nowrap;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.15s ease;
}
.asv-btn:hover { background: #fafafa; }
.asv-btn.asv-press, .asv-btn:active { transform: scale(0.94); opacity: 0.6; }
.asv-btn-med { font-weight: 500; }
.asv-btn .adv-ic20 { color: #343330; }
.asv-btn .adv-ic12 { color: var(--a-ink); }

/* ---- page title / tabs / chips ---- */
.asv-titlerow { margin-top: 16px; }
.asv-h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.006em; color: var(--a-ink); }
.asv-sub { margin-top: 4px; font-size: 14px; line-height: 24px; color: var(--a-mid); }
.asv-tabsrow { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.asv-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: #f5f5f5; }
.asv-tab {
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--a-mid);
}
.asv-tab.on { background: #fff; border-color: var(--a-border); color: var(--a-ink); }
.asv-actions { display: flex; gap: 8px; }
.asv-chips { display: flex; gap: 8px; margin-top: 16px; }
.asv-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--a-border);
  border-radius: 360px;
  background: #fff;
  font-size: 12px;
  line-height: 20px;
  color: var(--a-mid);
}
.asv-chipdiv { width: 1px; height: 20px; background: var(--a-border); }
.asv-chiptag { padding: 0 4px; border-radius: 4px; background: #f5f5f5; font-size: 10px; line-height: 20px; }
.asv-chipx { display: flex; padding: 0; border: none; background: none; color: var(--a-mid); }
.asv-chipx svg { width: 20px; height: 20px; }
.asv-chipx:hover { color: var(--a-ink); }

/* ---- Sales trends card + charts ---- */
.asv-card { margin-top: 16px; border: 1px solid var(--a-border); border-radius: 16px; background: #fff; }
.asv-cardhead {
  padding: 16px 24px;
  border-bottom: 1px solid var(--a-border);
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--a-mid);
}
.asv-cblock { padding: 24px; border-bottom: 1px solid var(--a-border); }
.asv-cblock:last-child { border-bottom: none; }
.asv-ctitle { font-size: 14px; line-height: 24px; font-weight: 500; color: var(--a-ink); }
.asv-ctitle-sm { font-size: 12px; line-height: 20px; font-weight: 400; text-transform: uppercase; color: var(--a-mid); }
.asv-duo { display: flex; gap: 72px; }
.asv-half { flex: 1; min-width: 0; }
.asv-cgrid { position: relative; margin-top: 16px; height: 120px; }
.asv-grow { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 24px; height: 20px; }
.asv-glabel { flex: none; width: 44px; text-align: right; font-size: 12px; line-height: 20px; color: var(--a-mid); }
.asv-gline { flex: 1; height: 1px; background: var(--a-border); }
.asv-gx {
  position: absolute;
  top: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 20px;
  color: var(--a-mid);
  text-align: center;
}
.asv-gx span { width: 40px; }
.asv-gx .asv-xfirst { width: auto; white-space: nowrap; }
.asv-plot { position: absolute; }
.asv-anim { transition: opacity 0.25s ease; }
.asv-fade { opacity: 0.12; }
[data-dowbars] .asv-bar {
  position: absolute;
  width: 40px;
  background: var(--a-brand);
  border-radius: 2px 2px 0 0;
  transition: top 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}
[data-dowbars] .asv-bar-neg { border-radius: 0 0 2px 2px; }

/* chart tooltip — dot on the line + floating card, follows auto-glide or mouse */
.asv-tip { position: absolute; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; }
.asv-tip.on { opacity: 1; }
.asv-tipdot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--a-brand); }
.asv-tipcard {
  position: absolute;
  left: 16px;
  top: -58px;
  width: 140px;
  padding: 16px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 16px rgba(12, 12, 13, 0.1), 0 4px 2px rgba(12, 12, 13, 0.05);
}
.asv-tip-flip .asv-tipcard { left: auto; right: 16px; }
.asv-tipdate { font-size: 12px; line-height: 16px; color: var(--a-ink); }
.asv-tiprow { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--a-mid); }
.asv-tiprow + .asv-tiprow { margin-top: 4px; }
.asv-tiprow b { font-weight: 400; color: #000; font-variant-numeric: tabular-nums; }

/* ---- popover panels: preset menu + dual-month calendar ---- */
.asv-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 16px rgba(12, 12, 13, 0.1), 0 4px 2px rgba(12, 12, 13, 0.05);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9;
}
.asv-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.asv-menu { width: 200px; padding: 4px; }
.asv-mitem {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--a-ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.asv-mitem:hover, .asv-mitem.asv-hov { background: #f5f5f5; }
.asv-mitem.asv-press { background: #ececec; }
.asv-mitem.asv-msel { font-weight: 500; color: var(--a-brand); }
.asv-cal { padding: 16px; }
.asv-calmonths { display: flex; gap: 24px; }
.asv-cm { width: 252px; }
.asv-cmhead { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 8px; }
.asv-cmname { flex: 1; text-align: center; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--a-ink); }
.asv-cnav {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-border);
  border-radius: 6px;
  background: #fff;
  color: var(--a-mid);
}
.asv-cnav svg { width: 14px; height: 14px; }
.asv-cnav-ghost { border: none; }
.asv-cw { display: grid; grid-template-columns: repeat(7, 36px); }
.asv-cwd { height: 28px; line-height: 28px; text-align: center; font-size: 12px; color: var(--a-mid); }
.asv-cd {
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 14px;
  border-radius: 8px;
  color: var(--a-ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.asv-cd:hover, .asv-cd.asv-hov { background: #f5f5f5; }
.asv-cd.asv-press { background: #ececec; }
.asv-cd-empty { pointer-events: none; cursor: default; }
.asv-cd-inr { background: rgba(255, 77, 0, 0.07); border-radius: 0; }
.asv-cd-inr:hover, .asv-cd-inr.asv-hov { background: rgba(255, 77, 0, 0.14); }
.asv-cd-cap { background: var(--a-brand); color: #fff; }
.asv-cd-cap:hover, .asv-cd-cap.asv-hov { background: #e64500; }
.asv-calfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.asv-calbtn {
  padding: 8px 16px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--a-ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.asv-calbtn.asv-press, .asv-calbtn:active { transform: scale(0.94); opacity: 0.6; }
.asv-calbtn-pri { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }
.asv-calbtn-pri:hover { background: #000; }

/* ---- summary tables (real names, Golden Ember BBQ fake data) ---- */
.asv-tables { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.asv-tcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.asv-tcard { border: 1px solid var(--a-border); border-radius: 16px; background: #fff; }
.asv-thead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--a-border);
}
.asv-ttitle { font-size: 12px; line-height: 20px; text-transform: uppercase; color: var(--a-mid); }
.asv-tact { display: flex; align-items: center; gap: 8px; }
.asv-viewbtn {
  padding: 6px 12px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: var(--a-ink);
}
.asv-viewbtn:hover { background: #fafafa; }
.asv-ticon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: none;
  color: #343330;
}
.asv-ticon svg { width: 18px; height: 18px; }
.asv-ticon:hover { background: #f5f5f5; }
.asv-trows { padding-bottom: 16px; }
.asv-tr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 24px;
  border-bottom: 1px solid var(--a-border);
  font-size: 14px;
  line-height: 24px;
  color: var(--a-ink);
}
.asv-trlabel { display: flex; align-items: center; gap: 8px; min-width: 0; }
.asv-tinfo { display: flex; color: var(--a-line); }
.asv-tinfo svg { width: 16px; height: 16px; }
.asv-trvals { display: flex; gap: 16px; }
.asv-trv { width: 88px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asv-tr-head, .asv-tr-head .asv-trv { color: var(--a-mid); font-weight: 500; }
.asv-tr-head .asv-tinfo { color: var(--a-line); }
.asv-tr-head .asv-trv { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.asv-tr-total { border-bottom: none; }
.asv-tr-total b, .asv-tr b { font-weight: 500; }
.asv-tr-gap { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .asv-btn, .asv-tab, .asv-pop, .asv-mitem, .asv-cd, .asv-calbtn, .asv-anim, .asv-tip,
  [data-dowbars] .asv-bar { transition: none; }
}

/* ============================================================
   dashboard-07-order-transaction — Order Details ⇄ Transaction
   Details from Figma 467:15607 / 467:16822, chrome removed:
   pure report content on a 1520x1120 panel.
   ============================================================ */
.odv {
  position: absolute;
  top: 0;
  left: 0;
  --a-ink: #1a1a1a;
  --a-mid: #666666;
  --a-soft: #4d4d4d;
  --a-border: #e6e6e6;
  --a-line: #cccccc;
  --a-panel: #f2f2f2;
  --a-brand: #ff4d00;

  width: 1520px;
  height: 1120px;
  transform-origin: top left;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(18, 18, 18, 0.22), 0 6px 18px rgba(18, 18, 18, 0.1);
  font-family: "Inter", "Geist", -apple-system, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--a-ink);
  user-select: none;
  padding: 28px 32px;
}
.odv * { box-sizing: border-box; }
.odv p { margin: 0; }
.odv button { font-family: inherit; cursor: pointer; }
.odv-ic12 svg { width: 12px; height: 12px; display: block; }
.odv-ic14 svg { width: 14px; height: 14px; display: block; }
.odv-ic16 svg { width: 16px; height: 16px; display: block; }
.odv-ic20 svg { width: 20px; height: 20px; display: block; }

/* top filter row */
.odv-filters { display: flex; align-items: center; gap: 8px; }
.odv-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  color: var(--a-ink);
  white-space: nowrap;
}
.odv-btn:hover { background: #fafafa; }
.odv-searchbtn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  color: var(--a-ink);
}
.odv-searchbtn svg { width: 20px; height: 20px; }
.odv-searchbtn:hover { background: var(--a-panel); }

/* Order / Transaction switch — the product's own tabs */
.odv-tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--a-border); }
.odv-tab {
  padding: 10px 16px 12px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--a-mid);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.odv-tab:hover { color: var(--a-ink); }
.odv-tab.on { color: var(--a-brand); border-bottom-color: var(--a-brand); }

.odv-view { display: none; }
.odv-view.on { display: block; }
.odv-h2 { margin: 46px 0 0; font-size: 34px; line-height: 44px; font-weight: 600; color: var(--a-ink); }
.odv-note { margin-top: 10px; color: var(--a-mid); }

/* segmented pills + right-side actions */
.odv-segrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.odv-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--a-panel); }
.odv-segbtn {
  border: none;
  background: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--a-mid);
  white-space: nowrap;
}
.odv-segbtn.on { background: #fff; color: var(--a-ink); box-shadow: 0 1px 2px rgba(18, 18, 18, 0.08); }
.odv-actions { display: flex; align-items: center; gap: 8px; }
.odv-export {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  color: var(--a-ink);
  font-weight: 500;
}
.odv-export:hover { background: var(--a-panel); }

/* filter chips */
.odv-chips { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.odv-fchip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px dashed var(--a-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--a-mid);
}
.odv-fchip:hover { background: #fafafa; }
.odv-fchip-set { border-style: solid; color: var(--a-ink); }
.odv-fchipval {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--a-panel);
  font-size: 12px;
  color: var(--a-mid);
}

/* tables */
.odv-tablewrap { margin-top: 16px; border: 1px solid var(--a-border); border-radius: 12px; overflow: hidden; }
.odv-table { width: 100%; border-collapse: collapse; }
.odv-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--a-mid);
  border-bottom: 1px solid var(--a-border);
  background: #fafafa;
  white-space: nowrap;
}
.odv-table td {
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.odv-table tbody tr:last-child td { border-bottom: none; }
.odv-table tbody tr:hover { background: #fafafa; }
.odv-link { color: var(--a-brand); font-weight: 500; cursor: pointer; }
.odv-link:hover { text-decoration: underline; }

/* status chips */
.odv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.odv-chip-paid { color: #17853f; background: #e9f8f0; }
.odv-chip-refund { color: #0e7090; background: #e7f6f8; }
.odv-chip-partial { color: #b93815; background: #fff4ed; }

/* txn subtype panels */
.odv-txnpanel { display: none; }
.odv-txnpanel.on { display: block; }

/* footer / pagination */
.odv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--a-mid); }
.odv-pager { display: flex; align-items: center; gap: 10px; }
.odv-pagesize {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  color: var(--a-ink);
}
.odv-pageno { padding: 0 6px; }
.odv-pagebtn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #fff;
  color: var(--a-soft);
}
.odv-pagebtn svg { width: 14px; height: 14px; }
.odv-pagebtn:hover { background: #fafafa; }

/* ============================================================
   dashboard-08-weekly-report — two phone-screen figures rebuilt
   1:1 from Figma Ng5Qec5PY0iDOczXTzjGc8 / 5407:3522. Material-3
   report cards. Native phone 412x812, scaled to each stage.
   ============================================================ */
/* one #fafafa .fig-demo frame with a single phone centered inside,
   capped small so it stays a sensible size */
.wk-duo { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 52px); }
.wk-cell { position: relative; flex: 0 1 300px; max-width: 300px; min-width: 0; }

.wk {
  position: absolute;
  top: 0;
  left: 0;
  --g1: #212121;
  --g4: #757575;
  --g7: #e0e0e0;
  --g8: #eeeeee;
  --green: #34c759;
  --red: #ff3b30;
  --brand: #ff4d00;
  width: 412px;
  height: 812px;
  transform-origin: top left;
  background: #fff;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(18, 18, 18, 0.20), 0 6px 18px rgba(18, 18, 18, 0.10);
  font-family: "Inter", "Geist", -apple-system, sans-serif;
  color: var(--g1);
  user-select: none;
}
.wk * { box-sizing: border-box; }
.wk p { margin: 0; }
.wk button { font-family: inherit; cursor: pointer; }
.wk-scroll { height: 100%; overflow-y: auto; padding: 0 16px 26px; scrollbar-width: none; }
.wk-scroll::-webkit-scrollbar { width: 0; height: 0; }
/* smooth reappear after Back-to-top snaps the screen home */
.wk-scroll.wk-fadein { animation: wk-fadein 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes wk-fadein { from { opacity: 0.25; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wk-status {
  position: sticky; top: 0; z-index: 4; height: 46px; margin: 0 -16px; padding: 0 24px;
  background: #fff; display: flex; align-items: center; justify-content: space-between;
}
.wk-time { font-size: 14px; font-weight: 600; }
.wk-statusicons { display: flex; align-items: center; gap: 6px; }
.wk-statusicons svg { width: 17px; height: 17px; display: block; }
.wk-datebar { display: flex; align-items: center; gap: 8px; padding: 8px 4px 12px; font-size: 15px; font-weight: 500; color: var(--g1); }
.wk-ic20 svg { width: 20px; height: 20px; display: block; color: var(--g4); }

/* .wk .wk-mtitle beats the `.wk p { margin:0 }` reset — gives the module
   title real space from its card, and modules real space from each other */
.wk .wk-mtitle { margin: 28px 4px 16px; font-size: 17px; font-weight: 600; }
.wk .wk-scroll > .wk-mtitle:first-of-type { margin-top: 10px; }

.wk-card { border: 1px solid var(--g7); border-radius: 12px; background: #fff; margin-bottom: 14px; overflow: hidden; }

/* stat tabs header (with bottom rule) */
.wk-tabs { display: flex; gap: 14px; padding: 16px 16px 0; border-bottom: 1px solid var(--g7); }
.wk-tabs-4 { gap: 8px; }
.wk-tab { flex: none; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.wk-tabs-4 .wk-tab { min-width: 0; flex: 1; }
.wk-tabs-4 .wk-tval { font-size: 18px; }
.wk-tab-on { border-bottom-color: var(--brand); }
.wk-tlabel { font-size: 14px; line-height: 20px; letter-spacing: 0.25px; color: var(--g4); white-space: nowrap; }
/* proportional digits + tight tracking so long amounts (e.g. $121.4k,
   $22,412.80) stay compact and never crowd the neighbouring stat */
.wk-tval { font-size: 20px; line-height: 28px; letter-spacing: -0.3px; color: var(--g1); white-space: nowrap; }
.wk-tsub { font-size: 12px; color: var(--g4); }
.wk-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 16px; letter-spacing: 0.4px; }
.wk-delta-up { color: var(--green); }
.wk-delta-down { color: var(--red); }
.wk-tri { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.wk-tri-up { border-bottom: 6px solid currentColor; }
.wk-tri-down { border-top: 6px solid currentColor; }

.wk-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.wk-body-center { align-items: center; }

/* detail row */
.wk-detail { display: flex; gap: 16px; }
.wk-dcol { display: flex; flex-direction: column; gap: 2px; min-width: 75px; }
.wk-dl { font-size: 12px; letter-spacing: 0.4px; color: var(--g4); }
.wk-dv { font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--g1); white-space: nowrap; }

/* dot legend */
.wk-legend { display: flex; gap: 24px; }
.wk-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.4px; color: var(--g4); }
.wk-dot { width: 8px; height: 8px; border-radius: 50%; }
.wk-dot-a { background: var(--brand); }
.wk-dot-b { background: #ffc7ac; }
.wk-dot-b2 { background: #bdbdbd; }

/* charts */
.wk-chart { position: relative; height: 176px; }
.wk-plot { position: absolute; left: 0; right: 34px; top: 8px; bottom: 24px; }
.wk-gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--g8); }
.wk-gl:first-child { border-top-color: var(--g7); }
.wk-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; padding: 0 6px; }
.wk-bcol { flex: 1; display: flex; justify-content: center; }
.wk-bstack { width: 100%; max-width: 78px; display: flex; flex-direction: column; justify-content: flex-end; }
.wk-seg { width: 100%; }
.wk-net { background: var(--g7); }
.wk-up { background: var(--g8); }
.wk-net.wk-hot { background: var(--brand); }
.wk-up.wk-hot { background: rgba(255, 77, 0, 0.25); }
.wk-yaxis { position: absolute; right: 0; top: 8px; bottom: 24px; width: 32px; }
.wk-yt { position: absolute; right: 0; transform: translateY(50%); font-size: 12px; letter-spacing: 0.4px; color: var(--g4); }
.wk-xaxis { position: absolute; left: 0; right: 34px; bottom: 0; display: flex; justify-content: space-around; padding: 0 6px; }
.wk-xt { flex: 1; text-align: center; font-size: 12px; letter-spacing: 0.4px; color: var(--g4); }

.wk-linechart { height: 172px; }
.wk-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* table */
.wk-tablecard { padding: 0 4px; }
.wk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wk-table th { text-align: left; padding: 12px 12px; font-size: 13px; font-weight: 400; color: var(--g4); border-bottom: 1.5px solid var(--g1); }
.wk-table td { padding: 14px 12px; border-bottom: 1px solid var(--g8); font-variant-numeric: tabular-nums; vertical-align: middle; }
/* item-name column: always one line — overflow shows an ellipsis */
.wk-table td:nth-child(2) { max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-table tbody tr:last-child td { border-bottom: none; }
.wk-table .wk-r { text-align: right; }
.wk-rankcell { display: flex; align-items: center; gap: 8px; }
.wk-rank { color: var(--g1); }
.wk-rdelta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.wk-rdelta.up { color: var(--green); }
.wk-rdelta.down { color: var(--red); }
.wk-rdelta.zero { color: #bdbdbd; }

/* donut */
.wk-donut { width: 156px; height: 156px; margin: 4px 0; }
.wk-sentiment {
  width: 100%; margin-top: 4px; padding-top: 14px; border: none; border-top: 1px solid var(--g8);
  background: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--brand);
}
.wk-sentiment svg { width: 18px; height: 18px; }

/* abstract map + heat legend */
.wk-map { position: relative; border-radius: 12px; overflow: hidden; height: 300px; }
.wk-map svg { width: 100%; height: 100%; display: block; }
.wk-maplabel {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.94);
  font-size: 13px; font-weight: 500; box-shadow: 0 2px 8px rgba(18, 18, 18, 0.14);
}
.wk-ic14 svg { width: 15px; height: 15px; color: var(--brand); display: block; }
.wk-heatlegend { display: flex; gap: 8px; }
.wk-heatcol { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wk-heatdot { border-radius: 50%; background: rgba(255, 77, 0, 0.3); margin-bottom: 4px; }
.wk-heatrow { display: flex; justify-content: space-between; width: 100%; font-size: 11px; letter-spacing: 0.3px; color: var(--g4); border-top: 1px solid var(--g8); padding-top: 4px; }
.wk-heatrow span:last-child { color: var(--g1); }

.wk-endcap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0 8px; }
.wk-endtext { font-size: 12px; color: #bdbdbd; }
.wk-backtop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--g7);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--g1);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.15s ease;
}
.wk-backtop svg { width: 16px; height: 16px; }
.wk-backtop:hover { background: var(--g9, #f5f5f5); }
.wk-backtop.wk-press, .wk-backtop:active { transform: scale(0.9); opacity: 0.55; }



/* ============================================================
   tablet-06-poster-prototype-b — the poster-style ordering
   prototype (Figma 3001:5629). A tall food poster scrolls inside
   a landscape tablet; an interactive layer (expanding dish cards,
   category drawer, cart panel) sits on top. Auto-plays a demo.
   ============================================================ */
.ptb {
  position: absolute;
  top: 0;
  left: 0;
  --g1: #212121; --g4: #757575; --g5: #9e9e9e;
  --g7: #e0e0e0; --g8: #eeeeee; --g9: #f5f5f5; --g10: #fafafa;
  --blue: #007aff; --red: #ff3b30; --amber: #ff9500;
  width: 1194px;
  height: 834px;
  transform-origin: top left;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(18, 18, 18, 0.22), 0 6px 18px rgba(18, 18, 18, 0.1);
  font-family: "Inter", "Geist", -apple-system, sans-serif;
  color: var(--g1);
  user-select: none;
  display: flex;
  flex-direction: column;
}
.ptb * { box-sizing: border-box; }
.ptb p { margin: 0; }
.ptb button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.ptb svg { display: block; }

/* ---- top bar ---- */
.ptb-top {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--g8);
  position: relative;
  z-index: 6;
}
.ptb-logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.ptb-logo svg { width: 24px; height: 24px; color: var(--g1); }
.ptb-topright { display: flex; align-items: center; gap: 4px; }
.ptb-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g1);
}
.ptb-chip svg { width: 17px; height: 17px; color: var(--g4); }
.ptb-timer { border: 1px solid var(--g7); color: var(--blue); }
.ptb-timer svg { color: var(--blue); }
.ptb-timer b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- poster scroll ---- */
.ptb-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  background: #fff;
  overscroll-behavior: contain;
}
.ptb-scroll::-webkit-scrollbar { width: 8px; }
.ptb-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
.ptb-poster { position: relative; width: 1194px; overflow: hidden; }
/* pull the poster up so its own baked-in top bar tucks behind our live fixed
   bar — leaving a single clean header. 64px ≈ the baked bar's height. */
.ptb-poster-inner { position: relative; margin-top: -64px; }
.ptb-poster-img { display: block; width: 1194px; height: auto; }

/* ---- overlaid interactive dish cards ---- */
.ptb-card {
  position: absolute;
  width: 232px;
  min-height: 70px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(18, 18, 18, 0.16), 0 1px 3px rgba(18, 18, 18, 0.12);
  padding: 11px 13px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.ptb-card.ptb-open { z-index: 4; min-height: 0; box-shadow: 0 14px 40px rgba(18, 18, 18, 0.28); }
.ptb-card.ptb-ordered { outline: 2px solid var(--amber); }
.ptb-card-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 0;
}
.ptb-card-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.25;
  color: var(--g1);
}
.ptb-card-price { flex: none; font-size: 13px; font-weight: 700; color: var(--g1); font-variant-numeric: tabular-nums; }
.ptb-plus {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g1);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(18,18,18,0.25);
}
.ptb-plus svg { width: 17px; height: 17px; }
/* collapsed cards mimic the poster's own cards: name over price, + top-right */
.ptb-card:not(.ptb-open) { justify-content: flex-start; }
.ptb-card:not(.ptb-open) .ptb-card-head { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 36px; }
.ptb-card:not(.ptb-open) .ptb-card-price { color: var(--g4); }
.ptb-card:not(.ptb-open) .ptb-plus { display: flex; }
.ptb-card:not(.ptb-open) .ptb-card-body { display: none; }

.ptb-card-body { padding-top: 9px; }
.ptb-tags { display: flex; gap: 6px; margin-bottom: 7px; min-height: 1px; }
.ptb-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 9px 0 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.ptb-tag i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.ptb-tag-new { background: rgba(0,122,255,0.1); color: var(--blue); }
.ptb-tag-new i { background: var(--blue); }
.ptb-tag-ord { background: rgba(255,149,0,0.14); color: #c76a00; }
.ptb-tag-ord i { background: var(--amber); }
.ptb-card-desc { font-size: 12px; line-height: 1.45; color: var(--g4); margin-bottom: 11px; }
.ptb-card-foot { display: flex; align-items: center; justify-content: space-between; }
.ptb-add-lbl { font-size: 12px; font-weight: 500; color: var(--g5); }
.ptb-step { display: inline-flex; align-items: center; gap: 4px; }
.ptb-step-b {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--g7);
  background: #fff;
  color: var(--g1);
  display: flex; align-items: center; justify-content: center;
}
.ptb-step-b svg { width: 15px; height: 15px; }
.ptb-step-b:hover { background: var(--g9); }
.ptb-qty { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- scrim ---- */
.ptb-scrim {
  position: absolute;
  inset: 56px 0 0 0;
  background: rgba(18, 18, 18, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 7;
}
.ptb-scrim.ptb-on { opacity: 1; pointer-events: auto; }

/* ---- left: category drawer ---- */
.ptb-cat {
  position: absolute;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #fff;
  box-shadow: 8px 0 30px rgba(18, 18, 18, 0.16);
  transform: translateX(-104%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 8;
  padding: 16px 14px;
  overflow-y: auto;
}
.ptb-cat.ptb-in { transform: translateX(0); }
.ptb-cat-search {
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px; margin-bottom: 14px;
  border: 1px solid var(--g7); border-radius: 100px;
  font-size: 14px; color: var(--g5);
}
.ptb-cat-search svg { width: 16px; height: 16px; color: var(--g5); }
.ptb-cat-sec { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g5); padding: 6px 10px; }
.ptb-cat-row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 42px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--g1); text-align: left;
}
.ptb-cat-row:hover { background: var(--g9); }
.ptb-cat-row.on { background: var(--g1); color: #fff; }
.ptb-cat-n { font-size: 12.5px; color: var(--g5); font-variant-numeric: tabular-nums; }
.ptb-cat-row.on .ptb-cat-n { color: rgba(255,255,255,0.7); }
.ptb-cat-ico { display: inline-flex; align-items: center; gap: 9px; }
.ptb-cat-ico svg { width: 17px; height: 17px; color: var(--g4); }
.ptb-cat-div { height: 1px; background: var(--g8); margin: 10px 8px; }

/* ---- right: cart panel ---- */
.ptb-cart-panel {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: 0;
  width: 360px;
  background: #fff;
  box-shadow: -8px 0 30px rgba(18, 18, 18, 0.16);
  transform: translateX(104%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 8;
  display: flex;
  flex-direction: column;
}
.ptb-cart-panel.ptb-in { transform: translateX(0); }
.ptb-cart-head {
  flex: none; padding: 18px 22px 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--g8);
}
.ptb-cart-head b { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.ptb-cart-tbl { font-size: 13px; color: var(--g5); }
.ptb-cart-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 22px; }
.ptb-cart-empty { font-size: 13.5px; color: var(--g5); padding: 24px 0; text-align: center; }
.ptb-ci { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--g9); }
.ptb-ci-q { flex: none; font-size: 14px; font-weight: 700; color: var(--g1); }
.ptb-ci-n { flex: 1; font-size: 14px; color: var(--g1); }
.ptb-ci-p { flex: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ptb-cart-foot { flex: none; padding: 16px 22px 20px; border-top: 1px solid var(--g8); }
.ptb-cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ptb-cart-total span { font-size: 14px; color: var(--g4); }
.ptb-cart-sum { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.ptb-cart-go {
  width: 100%; height: 50px; border-radius: 12px;
  background: var(--g1); color: #fff;
  font-size: 15px; font-weight: 600;
}
.ptb-cart-go:hover { background: #000; }

/* ---- floating action buttons ---- */
.ptb-fab {
  position: absolute;
  bottom: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--g1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(18, 18, 18, 0.3);
  z-index: 9;
  transition: transform 0.15s ease;
}
.ptb-fab:hover { transform: translateY(-2px); }
.ptb-fab:active { transform: scale(0.92); }
.ptb-fab svg { width: 25px; height: 25px; }
.ptb-fab-menu { left: 22px; }
.ptb-fab-cart { right: 22px; }
.ptb-fab-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--amber);
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

@media (prefers-reduced-motion: reduce) {
  .ptb-cat, .ptb-cart-panel, .ptb-scrim, .ptb-card, .ptb-fab { transition: none; }
}


/* ============================================================
   .fig-video — real prototype screen-recordings (Ordering Tablet
   Section 06). Same flat #fafafa stage as the other device figures:
   a gray frame with a centered, shadowed tablet card playing the
   video. play/pause driven by fig-video.js as it scrolls in/out.
   ============================================================ */
.fig-video {
  background: #fafafa;
  border: 1px solid #e4e4e1;
  border-radius: 16px;
  padding: clamp(22px, 5vw, 52px) 0; /* match .fig-demo — no horizontal padding, so the card is a true 80% of the frame */
}
.fig-video-stage {
  width: 80%;
  margin: 0 auto;
  border-radius: 10px; /* matches the tier-unlock device's *scaled* visual corner (~18px x ~0.5) */
  overflow: hidden;
  background: #000;
  line-height: 0;
  box-shadow: 0 30px 70px rgba(18, 18, 18, 0.22), 0 6px 18px rgba(18, 18, 18, 0.1);
}
.fig-video-stage video {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   tablet-06-menu-nav — the original tier demo (.tdv) + the nav
   Mina asked for: dining modes on top, a grey left side-nav whose
   categories follow the mode, a 3/4 density toggle (images scale to
   the column), and the cart collapsed to a bottom-right icon/drawer.
   Scoped to .tdv-hasnav so the backup tier demo is untouched.
   Strictly black / white / grey.
   ============================================================ */
.tdv-hasnav .tdv-tabs { overflow-x: auto; }

/* left side navigation — the mode's sub-categories (grey, never colour) */
.tdv-side { flex: none; width: 168px; border-right: 1px solid var(--g8); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; background: #fff; overflow-y: auto; }
.tdv-subnav { height: 42px; padding: 0 14px; border: none; background: none; border-radius: 8px; text-align: left; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.1px; color: var(--g4); cursor: pointer; transition: background .15s ease, color .15s ease; }
.tdv-subnav:hover { background: var(--g9); }
.tdv-subnav.on { background: var(--g9); color: var(--g1); font-weight: 600; }

/* body anchors the cart drawer + fab; content takes the full remaining width */
.tdv-hasnav .tdv-body { position: relative; }
.tdv-hasnav .tdv-left { width: auto; flex: 1; min-width: 0; }

/* content toolbar — the 3/4 density toggle, top-right */
.tdv-hasnav .tdv-menuhead { display: flex; align-items: center; border-bottom: 1px solid var(--g7); }
.tdv-hasnav .tdv-menuhead .tdv-tabs { flex: 1; border-bottom: none; }
.tdv-hasnav .tdv-menuhead .tdv-density { margin-right: 20px; }
.tdv-density { display: inline-flex; border: 1px solid var(--g7); border-radius: 9px; overflow: hidden; }
.tdv-dbtn { width: 42px; height: 34px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--g5); border: none; cursor: pointer; }
.tdv-dbtn svg { width: 19px; height: 19px; }
.tdv-dbtn.on { background: var(--g7); color: var(--g1); }

/* responsive grid — 3 or 4 per row; the images scale to the column width */
.tdv-hasnav .tdv-content { width: auto; margin-left: 0; padding: 4px 28px 28px; }
.tdv-hasnav .tdv-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px 16px; }
.tdv-hasnav .tdv-card { width: auto; }
.tdv-hasnav .tdv-img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.tdv-hasnav.tdv-c4 .tdv-name { font-size: 14px; line-height: 20px; }
.tdv-hasnav.tdv-c4 .tdv-h { font-size: 28px; }

/* cart collapsed to a bottom-right icon; opens as a right slide-in drawer */
.tdv-hasnav .tdv-cart {
  position: absolute; top: 0; right: 0; bottom: 0; width: 372px; flex: none; z-index: 7;
  transform: translateX(105%); transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  box-shadow: -12px 0 34px rgba(18, 18, 18, .14);
}
.tdv-hasnav .tdv-cart.tdv-open { transform: translateX(0); }
.tdv-cartclose { width: 30px; height: 30px; border: none; background: none; color: var(--g4); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tdv-cartclose svg { width: 18px; height: 18px; }
.tdv-scrim { position: absolute; inset: 0; background: rgba(18, 18, 18, .26); opacity: 0; pointer-events: none; transition: opacity .28s ease; z-index: 6; }
.tdv-scrim.tdv-on { opacity: 1; pointer-events: auto; }
.tdv-cartfab {
  position: absolute; right: 26px; bottom: 26px; width: 62px; height: 62px; border-radius: 50%;
  background: var(--g1); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(18, 18, 18, .3); z-index: 5; cursor: pointer; border: none;
}
.tdv-cartfab svg { width: 26px; height: 26px; }
.tdv-fabbadge {
  position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 100px; background: #fff; color: var(--g1); border: 2px solid var(--g1);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
