/* The platform demo's own rules: the "Not available in demo mode" pill, the rows captured open that start closed, which of
   the two sidebars shows, and the content panel's right-hand edge. */
tr[hidden] { display: none !important; }
/* THE ICON RAIL (capture.mjs takes it from the app and keeps it beside the open sidebar): the one that
   fits the sidebar's state shows, by the attribute the app's own collapse writes. */
:root:not([data-sidebar="collapsed"]) .app-sidebar[data-demo-rail],
:root[data-sidebar="collapsed"] .app-sidebar:not([data-demo-rail]) { display: none !important; }
/* THE PANEL'S RIGHT-HAND EDGE (the founder, 29 October 2026: the black "is the page, we need a little more
   breathing room on the right side so it doesn't look like a thin line"). The app's content panel sits in
   its dark frame with half a rem and a hairline above and below and at the rail, and runs to the browser's
   own edge on the right. Framed in the website's window, that edge meets the window instead, and the
   panel's rounded corners leave a dark sliver down it. The demo gives the right the gap and the hairline
   the other three sides have, in the app's own values, at the width the app draws its frame from. */
@media (width >= 64rem) {
  .app-body[data-frame="rail"] > .app-content { margin-right: 0.5rem; border-right: 1px solid var(--sidebar-border); }
}
/* R75 (2026-11-12, the founder: "we should just say 'Not available in demo mode.' Just a small [pill]"): one line in a
   small ink pill, low and centred, its soft drop shadow only (no ring round a dark object on a light page) */
.lm-demo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483647;
  max-width: calc(100vw - 32px);
  padding: 7px 14px;
  border-radius: 999px;
  background: #121211;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: -0.003em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgb(18 18 17 / 0.12), 0 12px 28px -12px rgb(18 18 17 / 0.45);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.lm-demo-toast-in { opacity: 1; transform: translate(-50%, 0); }

/* R75: AN HS MAPPER ROW'S DETAIL ON A PHONE (hs-mapper.html, store.html). Under the platform's sm width the desk's rows
   keep each product's name whole, so at 390 the table runs 18px past its scroller, and a row's detail, a card the
   table's width, lost its right edge under the scroller's. The detail keeps to the scroller's visible width (the desk's
   own container, @container/mapper), so its card shows the same 12px of well on both sides. */
[data-mapper-table] [data-mapper-detail] { max-width: calc(100cqw - 32px); }
@media (width < 40rem) {
  [data-mapper-table] [data-mapper-detail] { max-width: calc(100cqw - 24px); }
}
/* R82: THE TABLE ITSELF ON A PHONE (the leftover R75 left as found). Under 40rem the desk shows two columns, Product and
   Detail; each name sat on one unbreakable line, so the longest ("Leather Laptop Sleeve, Chocolate") held the product
   column at its full width and the table ran 18px past its scroller at 390 (a sideways sliver, the chevrons under its
   edge). A long name may take a second line there, so the table fits its area and every name stays whole. (Not a
   fixed layout: an open row's detail spans the hidden columns too, and a fixed layout shared the width out among them.) */
@container mapper (width < 40rem) {
  [data-mapper-table] [data-mapper-title] { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-demo-toast { transition: none; }
}

/* R88, R64 (2026-11-11, the founder: "The actual sidebar and the color of the outer page where the white page sits in are
   off-black, but I think in the actual platform it should be a bit darker. I think it is actually black that we use").
   The platform's rail and frame are its --topbar/--sidebar near-black #0b0c0e (apps/lumanora globals.css, Lumanora
   theme); R88 had lifted both to #1b1d21, the shade the rail's raised tiles (its search field, the account box) wear, so
   those tiles had lost their lift. The frame and the rail are the app's black again and the tiles stand off it. */
.app-body,
.app-sidebar { background-color: #0b0c0e !important; }

/* R90 (2026-10-31, the founder: "white or some weird edges" round the /admin/ window). The window rounds this frame's
   corners, and at a rounded clip Chrome blends the document's own background in under the anti-aliased edge, however
   dark the app draws on top: the app's white root showed as a pale ring at every corner. The root takes the app's dark
   too, so the edge blends dark into dark. */
html,
body { background-color: #0b0c0e !important; }

/* R64: THE CHECKBOX'S CORNER. The platform rounds its box at 5px (--checkbox-radius .3125rem, Shopify's own; packages/ui
   choice-controls.tsx); the capture's build draws the 2px bar radius. */
input[type="checkbox"].rounded-\(--radius-bar\) { border-radius: 0.3125rem; }

/* R95 (2026-11-01, the founder: on mobile "all functions work, a seamless experience"). THE MENU ON A PHONE: demo.js opens
   the captured sidebar as the app's drawer when the top bar's "Open menu" is pressed (below the app's desktop width the
   sidebar is otherwise hidden): the open sidebar, never the icon rail, from the left over a scrim. */
:root[data-demo-nav="open"] .app-sidebar:not([data-demo-rail]) {
  display: flex !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  z-index: 2147483600;
  width: min(18rem, 86vw) !important;
  max-width: none !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 24px 0 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@starting-style {
  :root[data-demo-nav="open"] .app-sidebar:not([data-demo-rail]) { transform: translateX(-100%); }
}
:root[data-demo-nav="open"] .app-sidebar[data-demo-rail] { display: none !important; }
.lm-demo-scrim {
  position: fixed;
  inset: 0;
  z-index: 2147483599;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
:root[data-demo-nav="open"] .lm-demo-scrim { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  :root[data-demo-nav="open"] .app-sidebar:not([data-demo-rail]),
  .lm-demo-scrim { transition: none; }
}

/* THE PRODUCT PAGE'S PICTURES (R104, 2026-11-01, the founder: "make the image size on the product page so you can see
   them, and not rounded: more square, or 9:16, or whatever looks best"). The app seats a product's pictures as 128px
   rounded thumbnails (components/product-thumb.tsx, size lg); in the demo each is a large portrait frame, 4:5 (the
   fashion product ratio), nearly square-cornered, the product shot contained in it on the app's own well. */
[data-media-tiles] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 22rem)); }
[data-media-tile] [data-product-thumb="lg"] {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}
[data-media-tile] > div:first-child { flex-direction: column; }

/* R104: the platform's main panel keeps a wheel's overscroll to itself (overscroll-behavior: contain, platform main
   globals.css); framed on /admin/ that would hold a visitor's scroll at the panel's ends instead of handing it on to the
   website page, so in the demo it hands on */
html, body, main, #main { overscroll-behavior: auto !important; }

/* R107 (2026-11-02, the founder: "for the demo mode on the screen I would like to only show 3 cards, that will look
   nicer than trying to cram 6 in there ... in platform we have full screen so we can have 6, but for this preview let's
   keep [Commerce Brain, Flow, Connect Anything] in this order"; "improve the layout and add a bit of padding and put the
   cards a little lower"; "let's also have a search box under good afternoon Clare, and remove this Ana Serra · Monday 2
   November"). capture.mjs (homeTrim, home-trim.mjs) keeps those three cards in his order, takes out the facts line and
   sets the search box under the greeting. The page is the app's own 64rem again (R105 narrowed it to 60rem for six) and
   the three stand in one row, 331px wide at 1440x900, each picture on a 16:10 ground, 198px high (R105's was 116): the
   globe draws at 141px (R105: 81), Connect's map at 217x178 (127x104); the card's own spacing is the app's again. The
   page's column runs the panel's height (the shell's column down to the board), and the greeting, its search and the
   cards stand together in the room under the figures band, the air shared above and below them, with 3rem kept under
   the cards so the group sits a little above the middle: at 1440x900 the greeting stands 103px under the band (R105: 32)
   and the cards end 143px above the panel's edge (R105: 34), nothing to scroll. A taller screen gives both more air;
   under a 40rem page (a phone) the cards stack in one column, 30rem at most, the search box above them at their width.
   The type is the app's own. */
:root[data-demo-screen="home"] main > div:has([data-page-archetype="board"]),
:root[data-demo-screen="home"] main [data-route-fade]:has([data-page-archetype="board"]),
:root[data-demo-screen="home"] [data-page-archetype="board"],
:root[data-demo-screen="home"] [data-page-archetype="board"] > div { display: flex; flex-direction: column; }
:root[data-demo-screen="home"] main [data-route-fade]:has([data-page-archetype="board"]),
:root[data-demo-screen="home"] [data-page-archetype="board"],
:root[data-demo-screen="home"] [data-page-archetype="board"] > div { flex: 1 0 auto; }
:root[data-demo-screen="home"] [data-dash-region="hero"] { margin-top: auto; padding-top: 1.5rem; padding-bottom: 0; }
:root[data-demo-screen="home"] [data-dash-region="cards"] { margin-bottom: auto; padding-top: 1.5rem; padding-bottom: 1rem; }
@container board (width >= 40rem) {
  :root[data-demo-screen="home"] [data-dash-region="hero"] { padding-top: 1rem; }
  :root[data-demo-screen="home"] [data-dash-region="cards"] { padding-top: 3.5rem; padding-bottom: 3rem; }
  :root[data-demo-screen="home"] [data-feature-cards] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* R110 (2026-11-02, the founder, with Shopify's admin home beside it: "the cards on the main page look a little bit
   wide ... the cards are just a little bit wider than the search bar above ... make them a bit narrower, add a bit more
   breathing room on the sides, and tidy it up so it feels a bit more premium"). Shopify's card row runs about 1.5x its
   search box, centred in wide margins; so here the row is 54rem, 1.5x the search box's 36rem (864px against 576 at
   1440x900; it was 1024, 1.78x), the three cards 277px each where they were 331, 288px of air either side of the row
   inside the 1192px panel (it was 84). Narrower boards (an iPad, a 1024 laptop) keep the row their full width. The card
   takes Shopify's anatomy: its picture in an inset well on the app's second surface (the art's own near-white ground
   multiplies into it, so no lighter box shows), a 12px card corner and the well's 8px inside it, the title compact at
   15px (where a title wraps, the one-line titles beside it stand on the row's foot, against their line), the line muted
   at 13.5px, the button a 28px pill. The well is the app's own 16:9 (aspect-video): on a 2x screen the Flow and Connect
   art still draw about 1.35-1.4x their files' pixels (they were 1.7-1.8x), sharper than before but not native; the
   globe draws within its own. The phone's single column is unchanged.
   R115 (2026-11-02, the founder: "We added a grey feel behind the icons, but in platform, we don't have that, so remove
   the grey feel behind the icons. We can make the cards maybe 10% wider but a little bit taller, so then we can make the
   icons a bit bigger. The Flow icon, we want to make it a bit bigger so you can see it, and make it look really premium
   and aligned with the other cards"): the well is gone (the art sits on the card's own white, as in the platform), the row
   is 59.5rem (952px, 10% wider; 1.65x the search box), the art area 11rem tall where the 16:9 well was ~9.3rem, and each
   picture is set larger inside it - the globe to 82% of that height, Connect to 96%, Flow the card's full width - every one
   still within its file's pixels on a 2x screen (globe 144 of 200px, Connect 206 of 244, Flow 292 of 360). */
@container board (width >= 40rem) {
  :root[data-demo-screen="home"] [data-feature-cards] { width: 100%; max-width: 59.5rem; margin-inline: auto; }
  :root[data-demo-screen="home"] [data-feature-card] { border-radius: 0.75rem; }
  :root[data-demo-screen="home"] [data-feature-art] { aspect-ratio: auto; height: 11rem; border-radius: 0; background-color: transparent; }
  :root[data-demo-screen="home"] [data-feature-card="insights"] [data-feature-art] img { max-height: 82%; }
  /* the Connect art's own ground is not quite white (254 at the top, 249 where the icons' glow meets its foot), so on the
     card's white its edges read as a faint box: its outer 5% feathers into the card, its colours untouched */
  :root[data-demo-screen="home"] [data-feature-card="connect"] [data-feature-art] img { max-height: 96%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
    mask-composite: intersect; }
  :root[data-demo-screen="home"] [data-feature-card="flow"] [data-feature-art] img { max-width: 100%; max-height: 100%; }
  :root[data-demo-screen="home"] [data-feature-card] h2 { align-self: end; padding-inline: 0.875rem; padding-top: 0.875rem; font-size: 0.9375rem; line-height: 1.25rem; }
  :root[data-demo-screen="home"] [data-feature-line] { padding-inline: 0.875rem; padding-top: 0.25rem; font-size: 0.84375rem; line-height: 1.25rem; }
  :root[data-demo-screen="home"] [data-feature-card] > div:last-child { padding: 1rem 0.875rem 0.875rem; }
  :root[data-demo-screen="home"] [data-feature-action] { height: 1.75rem; padding-inline: 0.75rem; }
}
@container board (width < 40rem) {
  :root[data-demo-screen="home"] [data-feature-cards] { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin-inline: auto; }
}

/* THE SEARCH BOX (homeTrim): the HS search's field at the home's scale, 2.75rem high on the app's large radius, its type
   text-body-lg (the app's touch 16px on a phone, so iOS does not zoom into it), the control's own shadow with the cards'
   resting one under it, so it sits with them. 36rem wide under the greeting; on a phone, the cards' column. Its
   placeholder shows whole from a 360px phone at the touch 16px (an ellipsis on a 320). The sidebar's ⌘K stands in it
   where there is a keyboard (the desktop frame, a fine pointer) and steps aside once something is typed. */
:root[data-demo-screen="home"] [data-home-search] { width: min(100%, 30rem); margin-top: 1rem; }
@container board (width >= 40rem) { :root[data-demo-screen="home"] [data-home-search] { width: min(100%, 36rem); margin-top: 1.5rem; } }
:root[data-demo-screen="home"] [data-home-search] input {
  height: 2.75rem;
  padding-left: 2.5rem;
  padding-right: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--control-shadow), var(--card-rest);
  text-overflow: ellipsis;
}
:root[data-demo-screen="home"] [data-home-search-glyph] { left: 0.875rem; width: 1.125rem; height: 1.125rem; }
:root[data-demo-screen="home"] [data-home-search-key] { display: none; }
@container board (width >= 40rem) {
  :root[data-demo-screen="home"] [data-home-search] input { padding-left: 2.75rem; padding-right: 0.75rem; }
  :root[data-demo-screen="home"] [data-home-search-glyph] { left: 1rem; }
}
@media (width >= 64rem) and (pointer: fine) {
  :root[data-demo-screen="home"] [data-home-search] input { padding-right: 3.75rem; }
  :root[data-demo-screen="home"] [data-home-search-key] {
    display: inline-flex;
    right: 0.75rem;
    height: 1.375rem;
    padding-inline: 0.375rem;
    border-radius: var(--radius-sm);
  }
  :root[data-demo-screen="home"] [data-home-search] input:not(:placeholder-shown) ~ [data-home-search-key] { display: none; }
}

/* R106 (2026-11-02, the founder: "No images showing on the inventory page. All pages where it's listing a product should
   show the image"). Under a 30rem list (a phone) the app's Products and Inventory rows drop their picture: the phone grid
   has no thumb area (--catalogue-row-areas-phone, --stock-row-areas-phone) and the thumb is hidden
   (@max-desk-thumb/...:hidden). The demo keeps the picture at the head of the row, as the app draws it from 30rem up.
   Inventory's counts row starts under the picture, so its three counts keep the width they have without one (no
   overlap from 320px up). */
:root {
  --stock-row-areas-phone: 'thumb title title title adjust' 'available available onhand committed committed';
  --stock-row-cols-phone: auto minmax(0, 1fr) auto auto auto;
  --catalogue-row-areas-phone: 'tick thumb title title status' 'tick thumb inventory vendor .';
  --catalogue-row-cols-phone: auto auto minmax(0, 1fr) minmax(0, auto) auto;
}
.\@max-desk-thumb\/stock\:hidden:has(> [data-product-thumb]),
.\@max-desk-thumb\/catalogue\:hidden:has(> [data-product-thumb]) { display: inline-flex; }

/* R64 THE ORDERS DESK AS THE PLATFORM LAYS IT OUT TODAY (2026-11-11, the founder: "The layout, like the customer name:
   there's massive white on the left of that. I think just a bit more structure with the content, because everything
   looks a bit crammed ... make sure that we've upgraded this with the latest updates from the platform").
   THE ITEMS CELL, on every desk that draws it (the orders, Pick and pack): the first line's picture at the platform's
   40px (the capture's build squeezed it to 20px, so its rows stood 41px), framed as the app frames it (8px, the inner
   hairline, the well, contained: the markup's own classes), then 12px to "N items" and its 14px chevron. The row is
   the platform's 52px: 6px above and below the picture. */
[data-orders-table] td[data-col="items"] [data-product-thumb] { width: 2.5rem; height: 2.5rem; }
[data-orders-table] td[data-col="items"] > div { gap: 0.75rem; }
/* THE COLUMNS (orders-desk-layout.ts, 10 Nov, DEMO-FINAL check 90): every column as wide as its words, one line, and the
   customer alone taking the slack, its name capped at 12rem (its card holds the whole name). The capture held the items
   column at a 26% share, the white the founder saw before the names. The cells keep the roomy table's 12px a side at
   the demo's laptop frame (the app tightens to 4px there only to make room for the order date, Weight and Order price,
   which this desk folds at that width as the app does); the tick and Print keep their 4px inner sides. */
@container desk (width >= 58rem) {
  :root[data-demo-screen="orders"] [data-orders-table] :is(th, td):not([data-col="customer"]) { width: 1px; }
  :root[data-demo-screen="orders"] [data-orders-table] :is(th, td)[data-col="items"] { min-width: 0; }
  :root[data-demo-screen="orders"] [data-orders-table] td[data-col="items"] { max-width: none; }
  :root[data-demo-screen="orders"] [data-orders-table] :is(th, td) { padding-inline: 0.75rem; }
  :root[data-demo-screen="orders"] [data-orders-table] :is(th, td):first-child { padding-right: 0.25rem; }
  :root[data-demo-screen="orders"] [data-orders-table] :is(th, td):last-child { padding-left: 0.25rem; }
}
/* ON A PHONE (the desk under 30rem: two-line rows) the order number never gives way either: the capture's grid let its
   column shrink to nothing ("A..."), so the number keeps its own width and the age, the row's shortest words ("1 d"),
   stands at its own instead of an 8ch box; the customer's name gives way under the number's line, as on the desk. */
@container desk (width < 30rem) {
  :root[data-demo-screen="orders"] [data-orders-table] td[data-col="number"] > [data-copyable] { min-width: max-content; }
  :root[data-demo-screen="orders"] [data-orders-table] td[data-col="age"] > span { width: auto; }
}

/* R64 FINAL (2026-11-11, the founder: "everything has to be optimized for mobile, iPad, and all screens").
   THE NUMBER'S COLUMN, as Sales orders draws it: under the table's width each row is a grid of its own, so a column
   sized by its own row started the customer and the price wherever that row's postcode ended (8 starts, a 7px spread
   down the list at 768 to 1240). The number and the destination share one column of one width in every row (the widest
   pair, "AS-1020" with its copy press and a flag with "MO 64106", is 87px), on the stack and on the phone, so the
   customer, the price and the age line up and no postcode is cut ("MO 64..." on a phone).
   THE PHONE'S ROW (the desk under 30rem) shows the order's picture and "N items", so its card opens on a tap, as Pick and
   pack's rows and the R106 Products and Inventory rows do: the capture's own phone row had neither (the button stood
   0x0). Three lines: the number, the customer and the age; the destination, the price and the status; the picture with
   "N items" and the supplier. */
:root[data-demo-screen="orders"] {
  --desk-row-cols: auto auto minmax(5.5rem, auto) auto auto minmax(0, 1fr) auto auto;
  --desk-row-cols-phone: auto minmax(5.5rem, auto) auto minmax(0, 1fr) auto;
  --desk-row-areas-phone: 'tick number customer customer age'
    'tick dest price . status' '. items items supplier supplier' '. po po po po'
    '. flag flag flag flag' '. hand hand print verb';
}
@container desk (width < 30rem) {
  :root[data-demo-screen="orders"] [data-orders-table] td[data-col="items"] > div {
    display: flex;
    grid-area: items;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    margin-top: 0.375rem;
  }
  :root[data-demo-screen="orders"] [data-orders-table] td[data-col="items"] > div > span:has(> [data-product-thumb]) { display: inline-flex; }
  :root[data-demo-screen="orders"] [data-orders-table] td[data-col="items"] button[data-demo-pop] { display: inline-flex; }
}

/* R64 FINAL: THE RAIL'S FOOT. The app fades the foot of its rows when more of them lie below (rail-nav-rows,
   data-scroll-more: the last 2.5rem, --rail-fade-from), set by its own script, which the capture does not carry: in the
   phone's drawer Commerce Brain, Flow and Connect anything sat under the fold with no sign that the list scrolls. The
   same fade, drawn from the list's own scroll (a scroll timeline): there while rows lie below, gone at the end, absent
   where every row shows. A browser without scroll timelines draws the list as before. */
@property --lm-demo-rail-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@keyframes lm-demo-rail-foot {
  0%, 90% { --lm-demo-rail-fade: 2.5rem; }
  100% { --lm-demo-rail-fade: 0px; }
}
@supports (animation-timeline: scroll()) {
  .app-sidebar .rail-nav-rows {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lm-demo-rail-fade)), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lm-demo-rail-fade)), transparent);
    animation: lm-demo-rail-foot linear both;
    animation-timeline: scroll(self);
  }
}

/* R64 THE ITEMS CARD (the founder, 11 Nov: "on hover over the item, it should come up with a nice card to show how many
   items and what they've ordered"): the platform's own card (orders-items-card.tsx, lane ORDERS-ITEMS-CARD), drawn from
   these selectors on any page's panels. demo.js opens it on a 150ms rest, on focus or on a press. 340px, 12px inside,
   the 16px corner, the card hairline, white, the two-layer shadow; 12.5px type. Its head is the order's floor status pill
   (md: 24px, a 6px dot in the tone's ink; the panel's data-tone names the tone, so a page only sets the word and tone);
   then the inner card (12px, the inner hairline) with the shipping band and one line per product: a 48px framed picture,
   the title, the variant and the SKU in grey pills, and "× 2" in a grey pill at the right. No price. */
[data-demo-items-pop] {
  width: 21.25rem;
  max-width: calc(100vw - 1rem);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e4e9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 8px -2px rgb(16 24 40 / 0.1), 0 16px 32px -8px rgb(16 24 40 / 0.18);
  font-size: 0.78125rem;
  line-height: 1.15rem;
}
[data-demo-items-pop] .dip-pill,
[data-demo-items-pop] .dip-variant,
[data-demo-items-pop] .dip-sku,
[data-demo-items-pop] .dip-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--pill-neutral-fill);
  color: var(--pill-neutral-ink);
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}
[data-demo-items-pop] .dip-pill { height: 24px; padding: 0 10px; font-weight: 500; white-space: nowrap; }
[data-demo-items-pop] .dip-pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
[data-demo-items-pop] .dip-ring { display: none; }
[data-demo-items-pop] .dip-pill[data-tone="warn"] { border-color: var(--pill-warn-edge); background: var(--pill-warn-fill); color: var(--pill-warn-ink); }
[data-demo-items-pop] .dip-pill[data-tone="pos"] { border-color: var(--pill-pos-edge); background: var(--pill-pos-fill); color: var(--pill-pos-ink); }
[data-demo-items-pop] .dip-pill[data-tone="neg"] { border-color: var(--pill-neg-edge); background: var(--pill-neg-fill); color: var(--pill-neg-ink); }
[data-demo-items-pop] .dip-qty { flex: none; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-demo-items-pop] .dip-panel { border: 1px solid #eaecf0; border-radius: 12px; }
[data-demo-items-pop] .dip-ship { padding: 8px 12px; border-bottom: 1px solid #eaecf0; background: #f3f3f5; }
[data-demo-items-pop] .dip-lines { padding: 0; }
[data-demo-items-pop] .dip-line { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; padding: 12px; }
[data-demo-items-pop] .dip-line + .dip-line { border-top: 1px solid #eaecf0; }
[data-demo-items-pop] .dip-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6f7f9, #edeff3);
}
[data-demo-items-pop] .dip-text { gap: 4px; }
[data-demo-items-pop] .dip-title { font-weight: 500; }

/* R157 (18 Nov 2026, the final production audit) ------------------------------------------------------------------ */
/* F082: the app's "Change the icon for this page" control changes nothing in the demo, and on a touch screen the app
   shows its pencil for good: no pencil on any page or card icon, and the icon a plain picture at every width */
[data-art-pencil] { display: none !important; }
button[data-art-edit] { pointer-events: none; cursor: default; box-shadow: none !important; }
/* F093: the demo has no dark theme, so the bar shows no moon */
button[aria-label="Switch to dark mode"] { display: none !important; }
/* F084: the phone and tablet back row only where there is somewhere to go back to (an order, a product, a purchase
   order, a supplier, a store, a flow). On a top-level screen it repeated the title, or went Back to Home; the flow's
   own screen keeps its own back link alone */
nav[aria-label="Page"]:not(:has(a[aria-label="Go back"]:not([href="home.html"]))),
:root[data-demo-screen="flow-purchase-order-approval"] nav[aria-label="Page"] { display: none; }
/* F095: with the phone drawer open, the pill rides above the drawer's foot, clear of the user card */
:root[data-demo-nav="open"] .lm-demo-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
/* F097: from 640 to 1023px the classified products' table loses its CPSC column, so the last column and the row's
   chevron stay inside the card (the phone already shows two columns) */
@media (width >= 40rem) and (width < 64rem) {
  [data-mapper-table] :is(th, td)[data-col="cpsc"] { display: none; }
}
/* F085, F013: Flow is on the way: a quiet pill beside its title (the Common Cents pill's look) */
.lm-demo-tl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.lm-demo-soon {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: #4a4a4a;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 3px;
}
.lm-demo-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lm-demo-soon-f { position: relative; z-index: 1; margin-left: 8px; vertical-align: middle; }

/* Flow is on the way: Create a new flow is shown greyed out and takes no press (round 157, N1) */
[data-demo-flows] .fl-btn[aria-disabled="true"],
[data-demo-flow] .fl-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
