/* ORVO HYGIENE -- THE PLANOGRAM on my. (Hygiene > Setup > a unit > Layout, my/hygiene-layout.html).
   Approved 30 Sep 2026 "all as recommended": Documentation/mockups/2026-09-30_hygiene_planogram/
   (NOTE.md "New CSS, PROPOSED": PR1 the unit, PR2 the Layout page). PR1 and PR2 below are that block,
   character for character. There is no new button, modal, switch, pill or badge in this file.

   THREE PARTS:
     1. WORN, COPIED VERBATIM -- rules whose only home is another page's own <style> or another
        page's sheet, so this page cannot load them without loading that page. Each says where it
        ships. Change one there, change it here.
     2. PR1 -- the unit (shared with the tablet: cloud/css/hygiene-planogram.css carries the same block).
     3. PR2 -- the Layout page, plus the four behaviour lines the drawing did not need to show.
     4. PS -- THE SECTIONS ROUND (1 Oct 2026, Documentation/mockups/2026-10-01_hygiene_layout_sections/): a layout
        as a list of sections. The approved PROPOSED block, character for character, shared with the tablet's sheet.
   (c) 2026 ORVO Software -- orvopos.com */

/* ---------------------------------------------------------------------------------------------
   1. WORN, COPIED VERBATIM
   --------------------------------------------------------------------------------------------- */
/* my/hygiene-registers.html (its own <style>): the page width, the first-load fade, the card head's
   action and hint, the house edit box's head. Nothing edited. */
main.page { max-width: 1200px; }
.hidden { display: none !important; }
#hrBody { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
#hrBody.is-ready { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #hrBody { transition: none; } }
.is-busy { opacity: .5; pointer-events: none; transition: opacity .15s; }
.hy-card-act { margin-left: auto; }
.ins-card-head .hint-icon { margin-left: 6px; }
.hy-modal.modal { position: relative; text-align: left; }
.modal .hy-mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal .hy-mhead h3 { margin: 0; }
/* my/css/hygiene-cleaning.css:111 (cloud/css/hygiene.css carries the same line for the tablet): a zone's label. */
.hy-grp { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #777; }
/* my/database-swaps.html (its own <style>): the extras map's boxes, orbs, drop wash and held copy --
   the item list wears them as they ship (.sw-map.is-cols, 42px orbs in 60px cells). Nothing edited. */
.sw-ghost { position: fixed; z-index: 3000; margin: 0; pointer-events: none; opacity: .92; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
body.sw-dragging { cursor: grabbing; }
.sw-map-box { position: relative; border: 1px solid #1f1f1f; border-radius: 12px; background: #131313; }
.sw-map-box.sw-drop-on { background: rgba(24,135,150,.07); box-shadow: inset 0 0 0 1px #188796; }
.sw-map-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px 4px; flex-wrap: wrap; }
.sw-map-price { font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.sw-map-name { font-size: 13px; color: #8a9396; }
.sw-map-name::before { content: '\00b7'; margin-right: 7px; color: #4a5052; }
.sw-map-count { font-size: 13px; color: #888; font-variant-numeric: tabular-nums; }
.sw-map-none { font-size: 13px; color: #555; padding: 4px 16px 15px; }
.sw-map-flow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; padding: 10px 16px 18px; position: relative; z-index: 1; }
.sw-map-dot { position: relative; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 0 10px; background: none; border: none; font-family: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sw-map-pic { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg, #1c1c1c); box-shadow: inset 0 0 0 1px var(--bd, #2e2e2e); transition: transform .12s, box-shadow .12s; }
.sw-map-dot:hover .sw-map-pic { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--bd, #2e2e2e), 0 6px 14px rgba(0,0,0,.45); }
.sw-map-pic > .wa-ico, .sw-map-pic > .wa-ico img { width: 44px; height: 44px; }
.sw-map-pic > .wa-ico svg { width: 26px; height: 26px; }
.sw-map-nm { font-size: 12px; line-height: 1.25; color: #c8d0d2; text-align: center; max-width: 78px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sw-map-dot.sw-drag-src { opacity: .35; }
.sw-map-dot.sw-ghost { position: fixed; }
.sw-map-sub { width: 100%; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7f8b8b; padding: 6px 2px 2px; }
.sw-map.is-cols { display: block; }
.sw-map.is-cols .sw-map-dot { width: 60px; padding-bottom: 8px; }
.sw-map.is-cols .sw-map-pic { width: 42px; height: 42px; box-shadow: inset 0 0 0 1.5px var(--bd, #2e2e2e); }
.sw-map.is-cols .sw-map-pic > .wa-ico, .sw-map.is-cols .sw-map-pic > .wa-ico img { width: 30px; height: 30px; }
.sw-map.is-cols .sw-map-pic > .wa-ico svg { width: 19px; height: 19px; }
.sw-map.is-cols .sw-map-nm { font-size: 11px; max-width: 60px; }
/* my/css/orvo-recipe-walk.css:199-204 (also my/database-add.html:118-123): the pick-one door. Nothing edited. */
.purpose-card { display: block; width: 100%; text-align: left; background: #131313; border: 1px solid #2e2e2e; border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.purpose-card:hover { border-color: #3d3d3d; }
.purpose-card.on { border-color: #188796; background: rgba(24,135,150,.09); }
.purpose-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; font-weight: 600; color: #ddd; }
.purpose-card.on .purpose-title { color: #46cfe0; }
.purpose-desc { font-size: 12.5px; color: #8a8a8a; margin-top: 4px; line-height: 1.5; }

/* my/till-discounts.html (its own <style>, lines 60-90): a section's head wears the Discounts page's group head
   and its small up and down keys (the sections round, 1 Oct 2026; NOTE.md "Classes worn"). Nothing edited; the rules
   that page has and this one does not use (.mod-col-code, .dsc-amt, .mod-danger) are left there. */
.mod-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.mod-group-name { font-size: 15px; font-weight: 600; color: #fff; }
.mod-group-meta { font-size: 12px; color: #777; }
.mod-group-actions { display: flex; align-items: center; gap: 8px; }

.mod-row-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #8a9396;
    border-radius: 6px;
    padding: 5px 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .12s, border-color .12s, opacity .12s;
}
.mod-row-btn:hover { color: #fff; border-color: #3a4a4d; }
.mod-row-btn:disabled { opacity: 0.25; pointer-events: none; }
.mod-row-btn svg { width: 14px; height: 14px; }
.mod-sort-cell { display: inline-flex; gap: 6px; }

/* ---------------------------------------------------------------------------------------------
   2. PR1 -- THE UNIT
   --------------------------------------------------------------------------------------------- */
/* ==== PR1 -- START (byte for byte the same in my/css/hygiene-planogram.css and cloud/css/hygiene-planogram.css; tests/Unit/HygienePlanogramTest.php pins it) ==== */
/* PR1 -- THE UNIT. One drawing on my. (editing) and on the tablet and phone (live): a cabinet with
   zones. A zone is a tray (a shelf, a drawer, under the counter) or a well of pans. Its border is the
   plan's own frame (.hm-plan: 1px #333 on #111), a little heavier so it reads as a piece of kit. */
.hp-unit { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid #333; border-radius: 12px; background: #111; }
.hp-unit.is-upright { max-width: 420px; margin: 0 auto; }   /* a tall, narrow cabinet; the others are wide */
.hp-zone { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp-tray { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 62px; padding: 8px; border: 1px solid #262626; border-radius: 8px; background: #151515; }
.hp-tray.is-empty { align-items: center; justify-content: center; font-size: 12.5px; color: #555; }
.hp-tray.is-drawer { padding-top: 18px; }
.hp-tray.is-drawer::before { content: ''; position: absolute; top: 6px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 2px; background: #333; }   /* the drawer's handle */
.hp-tray.sw-drop-on, .hp-pan.sw-drop-on { background: rgba(24, 135, 150, .07); box-shadow: inset 0 0 0 1px #188796; border-color: #188796; }   /* the extras map's own drop wash (.sw-map-box.sw-drop-on) */
/* an item standing in a tray: its picture (no box) and its name, on the row card's own ground (.dev-row: #1a1a1a, #262626, 8px) */
.hp-item { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 44px; padding: 0 12px 0 6px; border: 1px solid #262626; border-radius: 8px; background: #1a1a1a; font-size: 13px; font-weight: 600; line-height: 1.25; color: #ddd; }
.hp-item > span:last-child { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hp-item .wa-ico, .hp-item .wa-ico img { width: 32px; height: 32px; }
.hp-item.is-sel, .hp-pan.is-sel { border-color: #188796; box-shadow: 0 0 0 2px #188796; background: rgba(24, 135, 150, .14); }   /* the ring .hy-row.is-now wears */
/* a well of pans: bays side by side; a bay is one third of the well and holds one 1/3 pan, two 1/6 pans or three 1/9 pans */
.hp-well { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.hp-bay { display: flex; flex-direction: column; gap: 6px; height: 232px; }
.hp-well.is-hot .hp-bay { height: 120px; }
.hp-pan { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border: 1px solid #262626; border-radius: 8px; background: #1a1a1a; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: #ddd; text-align: center; }
.hp-pan.is-p2, .hp-pan.is-p3, .hp-pan.is-p6 { flex-direction: column; gap: 4px; }
.hp-pan .wa-ico, .hp-pan .wa-ico img { width: 30px; height: 30px; }
.hp-pan.is-p2 .wa-ico, .hp-pan.is-p2 .wa-ico img, .hp-pan.is-p3 .wa-ico, .hp-pan.is-p3 .wa-ico img { width: 56px; height: 56px; }
.hp-pan.is-p6 .wa-ico, .hp-pan.is-p6 .wa-ico img { width: 38px; height: 38px; }
.hp-nm { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hp-pan.is-empty { border-style: dashed; border-color: #3a3a3a; background: none; color: #666; font-weight: 500; }
.hp-size { position: absolute; top: 4px; right: 7px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #666; }   /* which pan it is: 1/3, 1/6, 1/9 */
/* the tablet: bigger hands, the same drawing */
.hy-page .hp-bay { height: 250px; }
.hy-page .hp-well.is-hot .hp-bay { height: 140px; }
.hy-page .hp-item { height: 52px; font-size: 14px; }
.hy-page .hp-pan { font-size: 13.5px; }
/* the phone: the well's bays dissolve, so the pans read two across in reading order, each one a finger tall */
@media (max-width: 760px) {
    .hp-well { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-bay, .hy-page .hp-bay, .hp-well.is-hot .hp-bay { display: contents; }
    .hp-pan, .hp-pan.is-p2, .hp-pan.is-p3, .hp-pan.is-p6 { flex: none; height: 56px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 8px; padding: 6px 30px 6px 8px; }
    .hp-pan .wa-ico, .hp-pan .wa-ico img, .hp-pan.is-p2 .wa-ico, .hp-pan.is-p2 .wa-ico img, .hp-pan.is-p3 .wa-ico, .hp-pan.is-p3 .wa-ico img, .hp-pan.is-p6 .wa-ico, .hp-pan.is-p6 .wa-ico img { width: 36px; height: 36px; flex: none; }
    .hp-unit.is-upright { max-width: none; }
    .hp-item { flex: 1 1 calc(50% - 4px); }
}
/* ==== PR1 -- END ==== */

/* ---------------------------------------------------------------------------------------------
   3. PR2 -- THE LAYOUT PAGE
   --------------------------------------------------------------------------------------------- */
/* PR2 -- my.: the Layout page. The item list on the LEFT (the extras map's own boxes and orbs, worn),
   the unit on the right, one row of counts above it and one bar under it for the pan or item picked. */
.hp-edit { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 20px 20px; }
.hp-pal { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-pal .sw-map-sub { padding: 0 2px; display: flex; align-items: center; gap: 6px; }
.hp-pal-scroll { max-height: 760px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }   /* a real stock list is longer: it scrolls inside its own box, scrollbar at the edge */
.hp-pal .sw-map.is-cols .sw-map-nm { max-width: 66px; }   /* a long name (Strawberries) has nowhere to break in a 60px cell; the name may stand 3px proud each side */
.hp-pal .sw-map-box + .sw-map-box { margin-top: 12px; }
.hp-pal .sw-map-flow { padding: 6px 12px 10px; }
.sw-map-dot.is-here { --bd: #188796; }   /* an item already in this unit keeps a teal ring in the list (the .sw-map-pic reads --bd) */
.hp-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; min-height: 34px; }
.hp-tools b { font-size: 14px; font-weight: 600; color: #fff; }
.hp-tools .btn-sm { margin-left: auto; }
.hy-card-act.is-two { display: flex; gap: 8px; }   /* carried from step 53 */
.hm-bar { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 10px; font-size: 13px; color: #8a9396; }   /* carried from step 53, 34px taller by 2: the size switch is 35px, and the bar must not change height when it appears */
.hm-bar b { color: #fff; font-weight: 600; }
.hm-bar .btn-sm:first-of-type { margin-left: auto; }
.hm-bar .rp-range { margin-left: auto; }
.hm-bar .rp-range ~ .btn-sm { margin-left: 0; }
.hp-lay { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #8a9396; }   /* the Layout row in the unit's box */
.hp-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.hp-doors .purpose-card { margin-bottom: 0; padding: 16px 12px 14px; text-align: center; }
.hp-doors .purpose-title { justify-content: center; }
@media (max-width: 900px) { .hp-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp-art { display: flex; justify-content: center; margin-bottom: 10px; color: #9aa3a5; }
.hp-art svg { width: 96px; height: 72px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.purpose-card.on .hp-art { color: #46cfe0; }
.hp-pick { display: flex; flex-direction: column; gap: 8px; max-height: min(340px, 44vh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -32px 22px; padding: 2px 32px; }   /* the devices page's .cm-pick, under this page's name */
.hp-pick .purpose-card { margin-bottom: 0; flex: none; padding: 8px 12px; }
.hp-pick .purpose-title { flex-wrap: nowrap; gap: 10px; }
.hp-pick .purpose-title .wa-ico, .hp-pick .purpose-title .wa-ico img { width: 34px; height: 34px; }
.hp-pick .purpose-desc { margin-top: 0; font-weight: 400; }
.hp-doors .purpose-card, .hp-pick .purpose-card { font-family: inherit; }
.hp-pick .purpose-title > span:not(.wa-ico) { display: flex; flex-direction: column; }

/* BEHAVIOUR ONLY (nothing the frames drew): a place that can be tapped shows the hand; a thing that can
   be lifted is not selected as text and raises no callout (the extras map's own three, on .sw-map-dot);
   the item list's search hides what does not match; a manager's view has one column; and on a phone there is no item list and no count
   row (decision 7a), so the page is the one column P4 drew. */
.hp-unit [role="button"], .hp-doors .purpose-card, .hp-pick .purpose-card { cursor: pointer; }
.hp-edit .hp-item, .hp-edit .hp-pan { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sw-map-dot.is-off, .sw-map-box.is-off, .hp-pick .purpose-card.is-off { display: none; }
/* SORT (his "AI fills the blanks", 30 Sep): the Not sorted box's AI key and the list to check. PLACEMENT
   ONLY -- the key is the house .btn-ai with the sparkle, sized by the two declarations every page gives
   its own AI key (#wizVatCheck's, my/database-add-product.html:128-129); the list is .hp-pick's rows with
   the house select (orvoSelect) at the right and the model's words in the .ai-note voice under the name. */
.hp-pal .btn-ai, .hm-bar .btn-ai { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.hp-pal .btn-ai svg, .hm-bar .btn-ai svg { width: 15px; height: 15px; flex: none; }
.hp-sort .purpose-card { display: flex; align-items: center; gap: 10px; cursor: default; }
.hp-sort .purpose-title { flex: 1 1 auto; min-width: 0; }
.hp-sort .orvo-select { flex: none; width: 128px; }
.hp-sort .ai-note { font-size: 12px; font-weight: 400; margin-top: 2px; }
.hp-edit.is-view { grid-template-columns: minmax(0, 1fr); }   /* a manager looks: the unit alone, no item list beside it */
@media (max-width: 760px) {
    .hp-edit { display: block; padding: 12px; }
    .hp-edit .hp-pal, .hp-edit .hp-tools { display: none; }
}

/* ---------------------------------------------------------------------------------------------
   4. PS -- THE SECTIONS
   --------------------------------------------------------------------------------------------- */
/* ==== PS -- START (byte for byte the same in my/css/hygiene-planogram.css and cloud/css/hygiene-planogram.css; tests/Unit/HygieneLayoutSectionsTest.php pins it) ====
   THE SECTIONS ROUND (1 Oct 2026, all 15 decisions as recommended): the PROPOSED block of
   Documentation/mockups/2026-10-01_hygiene_layout_sections/index.html, PS1 to PS6, character for character. */
/* ══════════════════════════════════════════════════════════════════════════════
   ── PROPOSED ── a layout as a list of sections, 1 Oct 2026. LAYOUT ONLY. No new button, modal, switch,
   badge or colour: the section's frame is the cabinet's own (.hp-unit), its head is the Discounts page's group
   head (.mod-group-title / .mod-row-btn, modrow-page.css), a pan is .hp-pan, an item is .hp-item, a shelf is
   .hp-tray, the Add box is the house .modal with .rp-range and .purpose-card. Six small groups, PS1 to PS6.
   ══════════════════════════════════════════════════════════════════════════════ */

/* PS1 -- THE LIST OF SECTIONS. Each section is ONE .hp-unit (the cabinet's frame, unchanged); the list is a column of them.
   A section's head: name and meta on the left (the Discounts page's .mod-group-name and .mod-group-meta), how many places
   are used, then the up and down keys and Edit. On a phone the keys go (a desk job, as the shape and the counts were) and
   the head becomes the door that opens or shuts the section (PS5). */
.hp-secs { display: flex; flex-direction: column; gap: 14px; }
.hp-sechd { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.hp-sechd .mod-group-title { flex: 1 1 auto; }
.hp-seccount { flex: none; font-size: 12px; color: #888; font-variant-numeric: tabular-nums; }
.hp-chev { display: none; flex: none; width: 18px; height: 18px; color: #8a9396; }
.hp-tools .btn-sm + .btn-sm { margin-left: 0; }   /* two keys at the right of the tools row: only the first takes the auto margin */

/* PS2 -- THE TWO VIEWS. TOP DOWN is a grid of pans: `--cols` across, each row one pan tall. FACING is a column of shelves,
   each shelf the house .hp-tray laid out as `--cols` places across. A pan is the pan as it ships (.hp-pan); its size is said
   once in the head, so a pan carries no size tag. An empty place is the dashed pan and says nothing. */
.hp-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 56px; gap: 6px; }
.hp-grid .hp-pan { flex: none; justify-content: flex-start; text-align: left; }
.hp-tray.is-places { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 44px; gap: 6px; min-height: 0; }
/* A NAME ON A FACING SHELF IS NEVER CUT (round 2, 2026-10-03, his "can a name like Lemonade be Lemonade"). A place is
   its own size container: wide enough, the picture sits beside the name (the name takes the room left, wrapping at its
   soft hyphens -- shared/js/orvo-softhyphen.js); too narrow for that (under 100px inside: a shelf of six or more on a desktop), the picture goes on top
   and the name under it, centred, on up to two lines, a size smaller. The row grows to fit; the place never clips. */
.hp-tray.is-places { grid-auto-rows: minmax(44px, auto); }
.hp-tray.is-places > .hp-item { container-type: inline-size; height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap; align-content: center; }
.hy-page .hp-tray.is-places > .hp-item { min-height: 52px; }
.hp-tray.is-places > .hp-item > span:last-child { flex: 1 1 0; -webkit-line-clamp: 3; }   /* a third line before a cut: the row grows */
.hp-grid { grid-auto-rows: minmax(56px, auto); }   /* the top-down pans: the same rule */
.hp-grid > .hp-pan:not(.is-empty) { container-type: inline-size; flex-wrap: wrap; align-content: center; }
.hp-grid > .hp-pan > .hp-nm { max-width: calc(100% - 38px); -webkit-line-clamp: 3; }
@container (max-width: 100px) {
    .hp-tray.is-places > .hp-item > .wa-ico, .hp-grid > .hp-pan > .wa-ico { margin: 0 auto; }
    .hp-tray.is-places > .hp-item > span:last-child, .hp-grid > .hp-pan > .hp-nm { flex: 0 0 100%; max-width: 100%; text-align: center; font-size: 12px; line-height: 1.2; -webkit-line-clamp: 3; }
}
/* the plans page on a phone (and its printed sheet) already stacks every place its own way (the 760px block below):
   it keeps that, untouched by the rule above */
@media (max-width: 760px) {
    .fp-units .hp-tray.is-places > .hp-item, .fp-units .hp-grid > .hp-pan:not(.is-empty) { container-type: normal; flex-wrap: nowrap; }
    .fp-units .hp-tray.is-places > .hp-item > span:last-child, .fp-units .hp-grid > .hp-pan > .hp-nm { flex: none; max-width: 100%; }
}
.hp-tray.is-places .hp-pan { padding: 0; }
.hp-tray.is-places { border-bottom: 3px solid #3a3a3a; }   /* the shelf's own board: the front view reads as shelves, not as a second grid of pans */
.hp-tray.is-places .hp-item { width: 100%; }

/* PS3 -- THE BOX. The house .modal (420 wide, the same box for Add and Edit; choosing the view MORPHS it in place). The view
   is two .purpose-card doors side by side; rows, columns and the pan size are the .rp-range the count was; under them the view
   as it will stand, drawn live from the same two cells. */
.hp-view2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-view2 .purpose-card { margin-bottom: 0; padding: 12px 10px 10px; text-align: center; font-family: inherit; }
.hp-view2 .purpose-title { justify-content: center; }
.hp-view2 .hp-art { margin-bottom: 8px; }
.hp-view2 .hp-art svg { width: 64px; height: 48px; }
.hp-view2 .purpose-desc { margin-top: 2px; }
.hp-modal .field .rp-range { max-width: 100%; }
.field label.hp-prevhd { display: flex; align-items: baseline; justify-content: space-between; }   /* .field label is display: block, and wins on weight of selector */
.hp-prevhd span { font-size: 12px; font-weight: 400; color: #777; font-variant-numeric: tabular-nums; }
.hp-prev { padding: 10px; border: 1px solid #262626; border-radius: 8px; background: #111; }
.hp-prev .hp-grid { gap: 4px; }
.hp-prev .hp-pan { padding: 0; }
.hp-prev .hp-tray { padding: 5px; gap: 4px; }
/* THE BOX KEEPS ITS SIZE WHEN THE VIEW CHANGES. Facing has one field fewer than Top down, so the fields are a column of one fixed
   height and the drawing is the last thing in it: it takes what the fields leave, and its rows share that height. */
.hp-mbody { display: flex; flex-direction: column; height: 640px; }   /* 1 Nov 2026: 585 + most of the section's Name row, so the drawing keeps its room */
.hp-mbody > .field.is-fill { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-bottom: 0; }
.hp-mbody .hp-prev { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.hp-mbody .hp-prev .hp-grid { flex: 1 1 auto; min-height: 0; grid-auto-rows: 1fr; }
.hp-mbody .hp-prev .hp-tray { flex: 1 1 0; min-height: 0; grid-auto-rows: 1fr; }
.hp-modal .modal-actions { margin-top: 20px; }   /* the preview is the last field: the keys stand a little clear of it, as .hp-pick's 22px did */
.hy-modal .modal-actions .hy-remove { margin-right: auto; }   /* carried from my/hygiene-registers.html's own style: Remove stands at the left */

/* PS4 -- A LONG PAGE. Three drawers is a page taller than the screen, and the items have to stay in reach while the lower
   sections are filled: the item list stands still at the top while the page scrolls. It shrinks to the screen, never past
   760px as before. */
.hp-pal { position: sticky; top: 16px; }
.hp-pal-scroll { max-height: min(760px, calc(100vh - 150px)); }

/* PS5 -- THE DOORS AND THE PHONE. Seven doors across (the five shapes, Walk-in, Blank). On a phone the keys of a section's head
   are gone and the head opens or shuts it, one section open at a time; the grid is the phone's own two across in reading order. */
.hp-doors.is-seven { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 20px 14px; }
.hp-doors.is-seven .purpose-card { padding: 16px 8px 14px; }
.hp-doors.is-seven .hp-art svg { width: 84px; height: 63px; }
@media (max-width: 900px) { .hp-doors.is-seven { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* PS6 -- THE APP'S LIST BY SECTION (frames S6, S6p). Several sections can be longer than a phone's screen. The groups take their own
   height and, when there is not enough, scroll INSIDE their box with the keys (Back, Next) fixed beneath: the way the plain list of
   items ("What did you scan?") already scrolls. A box that fits is as tall as it is. */
.hp-col > .hp-unit { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 760px) {
    .hp-grid, .hp-tray.is-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-sechd .mod-group-actions { display: none; }
    .hp-chev { display: inline-block; }
    .hp-sec.is-shut > :not(.hp-sechd) { display: none; }
}
/* ==== PS -- END ==== */
/* FB30B P6 (30 Oct 2026, frame 06, his "the right size, and positioned at the bottom right"): Remove in the section box's foot, bottom right, its own width: my/hygiene-registers.html's own
   rule. Here, after the block: the block above is byte for byte the till's own sheet, and the till draws no Remove key. One level more specific, so it beats the block's line. */
.hy-modal .modal-actions .hy-remove.btn-sm { flex: none; max-width: none; margin: 0 0 0 auto; }

/* PS3b -- SHELF NAMES (29 Oct 2026, his "we need to be able to name the shelves too"). In the section box's "Looks like this", on a facing
   section, each shelf is a row: its name box (the house .field input) on the left, the shelf on the right, sharing the drawing's height the
   way the shelves did. Layout only. my. only (the box is the Layout page's), so it stands outside the PS block the tablet shares. */
.hp-mbody .hp-prev .hp-prevrow { flex: 1 1 0; min-height: 0; display: flex; align-items: stretch; gap: 8px; }
.hp-mbody .hp-prev .hp-prevrow > input { flex: 0 0 38%; min-width: 0; height: auto; min-height: 0; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.hp-mbody .hp-prev .hp-prevrow > .hp-tray { flex: 1 1 0; min-width: 0; }

/* PS7 -- THE PHONE EDITS THE SECTIONS TOO (his words, 1 Oct 2026 night: "why can't we edit layout on mobile").
   A DEPARTURE from the approved PS5/PS6 and from PR2's phone rule, which kept the tools row and a section's keys off a
   phone (decision 9a). On a phone they are drawn again, in the house controls they already wear: the tools row
   (Template, Add section) WRAPS so its two keys fit a 390px screen, and the OPEN section's head gains a second line,
   right-aligned under its count, holding its up, down and Edit keys. A shut section's head stays exactly as S5p drew it
   (name, size, count, the arrow): the head is the door, so a section is opened first, then moved or edited. The item
   list and the drag stay off a phone: an item goes in by a tap on its place. my. only -- the tablet's sheet has no keys
   to show. Placed after the PS block on purpose: a heavier selector than PS5's, so it is the one that holds. */
@media (max-width: 760px) {
    .hp-edit .hp-tools { display: flex; flex-wrap: wrap; row-gap: 8px; }
    .hp-sec:not(.is-shut) > .hp-sechd { flex-wrap: wrap; row-gap: 10px; }
    .hp-sec:not(.is-shut) > .hp-sechd .mod-group-title { flex: 1 1 0; min-width: 0; }
    .hp-sec:not(.is-shut) > .hp-sechd .mod-group-actions { display: flex; order: 3; flex: 1 0 100%; justify-content: flex-end; gap: 6px; }
    /* the box's "Looks like this" is drawn at the section's own columns on a phone too (PS5's two-across is for the
       places a thumb taps, not for the small drawing), so it stays inside its box */
    .hp-mbody .hp-prev .hp-grid, .hp-mbody .hp-prev .hp-tray.is-places { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
    .hp-mbody .hp-prev .hp-pan { height: auto; padding: 0; }   /* not the 56px place of the phone's unit (line 142) */
    .hp-mbody .hp-prev { overflow: hidden; }
}

/* ---------------------------------------------------------------------------------------------
   5. PF -- THE PLANS ROUND (2 Oct 2026). Documentation/mockups/2026-10-02_hygiene_fridge_plans/ (F1, F1p, F2).
   my. only: the tablet's sheet does not carry this block. No new button, modal, switch, pill or badge: a unit is the
   report card (.ins-card and its head), a section is the section as PS draws it, the keys are .btn .btn-sm.
   --------------------------------------------------------------------------------------------- */
/* PF1 -- ANY ITEM CAN GO IN A PLAN (his ruling, 2 Oct): the seat of the house search-and-add bar (OrvoDbSearch, which
   brings its own clothes) over the item list, and the phone list's found-by-typing rows, which sit in the list as its own. */
.hp-any { min-width: 0; }
.hp-pick-any { display: contents; }
/* PF2 -- FRIDGE / FREEZER PLANS (my/hygiene-plans.html, body.fp-page). Look-only: nothing here is a control but the keys. */
.fp-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.fp-units { display: flex; flex-direction: column; gap: 16px; }
.fp-keys { display: inline-flex; align-items: center; gap: 8px; }
.fp-keys .btn { flex: none; white-space: nowrap; }
.fp-body { padding: 16px 20px 20px; }
.fp-chev { display: none; flex: none; width: 18px; height: 18px; color: #8a9396; }
.fp-page .hp-chev { display: none; }                       /* a section is not a door here: every section of an open unit is open */
/* ONE UNIT, LARGE (frame F2): the same sections with more room in each place */
.fp-units.is-one .hp-grid { grid-auto-rows: 84px; }
.fp-units.is-one .hp-tray.is-places { grid-auto-rows: 60px; }
.fp-units.is-one .hp-pan, .fp-units.is-one .hp-item { font-size: 14px; }
.fp-units.is-one .hp-pan .wa-ico, .fp-units.is-one .hp-pan .wa-ico img, .fp-units.is-one .hp-item .wa-ico, .fp-units.is-one .hp-item .wa-ico img { width: 38px; height: 38px; }
.fp-units.is-one .hp-item { height: 100%; }
/* A WORD BREAKS ONLY WHERE IT MAY (2 Oct 2026): the page puts a soft hyphen at each place a long word may break
   (shared/js/orvo-softhyphen.js, the same on every device -- no browser dictionary), so a name breaks at a space or
   at one of those, where a real hyphen is drawn. Never anywhere else. */
.fp-units .hp-nm, .fp-units .hp-item > span:last-child { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: normal; word-break: normal; }
@media (max-width: 760px) {
    /* ONE UNIT OPEN AT A TIME (answer 6a): the head is the door, the others are one line each */
    .fp-chev { display: inline-block; }
    .fp-head[data-fp="fold"] { cursor: pointer; }
    .fp-unit .fp-head .ins-card-title { min-width: 0; }
    .fp-unit.is-shut .fp-body { display: none; }
    .fp-body { padding: 12px; }
    /* THE REAL SHAPE ON A PHONE (his answer, 2 Oct 2026; the same treatment as the Hygiene app's plans,
       cloud/css/hygiene-plans.css FP4). A place keeps its REAL column -- five across when the section is five across --
       so a pan stays where it is in the fridge. Two across (PS6) is the EDITOR's phone rule, for picking; it is not
       this page's. A place is the picture over the name. A NAME IS NEVER CUT: it wraps between words, and a word too
       long for its place breaks only at a soft hyphen (PF2 above, shared/js/orvo-softhyphen.js), never under 10.5px.
       A section wider than the phone at a readable width (--pmin a place) slides sideways inside its own box.
       Said on .fp-units (the plan on the screen), never on .fp-page: the printed sheet is not a phone. */
    .fp-units { --pmin: 52px; }
    .fp-body { padding: 8px; }
    .fp-units .hp-sec { padding: 8px; overflow-x: auto; overscroll-behavior-x: contain; }
    .fp-units .hp-sechd, .fp-units .hp-zone > .hy-grp { position: sticky; left: 0; }
    .fp-units .hp-grid, .fp-units.is-one .hp-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(72px, auto); min-width: calc(var(--cols) * var(--pmin) + (var(--cols) - 1) * 6px); }
    .fp-units .hp-tray.is-places, .fp-units.is-one .hp-tray.is-places { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(66px, auto); padding: 4px; box-sizing: border-box; min-width: calc(var(--cols) * var(--pmin) + (var(--cols) - 1) * 6px + 10px); }
    .fp-units .hp-pan, .fp-units .hp-pan.is-p2, .fp-units .hp-pan.is-p3, .fp-units .hp-pan.is-p6, .fp-units .hp-item, .fp-units.is-one .hp-pan, .fp-units.is-one .hp-item {
        flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px;
        height: auto; min-height: 0; width: 100%; padding: 4px 2px; font-size: 11px; line-height: 1.2;
    }
    .fp-units .hp-pan .wa-ico, .fp-units .hp-pan .wa-ico img, .fp-units .hp-item .wa-ico, .fp-units .hp-item .wa-ico img,
    .fp-units.is-one .hp-pan .wa-ico, .fp-units.is-one .hp-pan .wa-ico img, .fp-units.is-one .hp-item .wa-ico, .fp-units.is-one .hp-item .wa-ico img { width: 30px; height: 30px; flex: none; }
    .fp-units .hp-nm, .fp-units .hp-item > span:last-child { display: block; -webkit-line-clamp: unset; overflow: visible; max-width: 100%; }
    /* THE PRINTED SHEET at paper width falls under this @media too: what it took from here before, word for word, so
       the paper does not move (its own rules, PF3 below, come later and win where they speak). */
    .fp-print .hp-grid, .fp-print .hp-tray.is-places { grid-auto-rows: minmax(56px, auto); }
    .fp-print .hp-pan, .fp-print .hp-pan.is-p2, .fp-print .hp-pan.is-p3, .fp-print .hp-pan.is-p6 { height: auto; min-height: 56px; padding: 6px 8px; }
    .fp-print .hp-item { height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
    .fp-print .hp-pan, .fp-print .hp-item { font-size: 13px; line-height: 1.25; }
    .fp-print .hp-nm, .fp-print .hp-item > span:last-child { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; }
}
/* PF3 -- THE PRINTED SHEET (answer 3a: A4 portrait, one unit per page). Black on white, drawn for the printer.
   IT SITS OFF-SCREEN, NEVER display:none (my/css/hygiene-trace.css .tr-print: a browser does not lay out or decode inside
   a display:none subtree before window.print() snaps). 718px is A4's width less the margins, so what is measured on
   screen is what the paper gets. The sheet's own look is said outside @media print so the rig can look at it. */
.fp-print { position: absolute; left: -10000px; top: 0; width: 718px; opacity: 0; pointer-events: none; background: #fff; color: #000; }
.fp-sheet { break-after: page; page-break-after: always; }
.fp-sheet:last-child { break-after: auto; page-break-after: auto; }
.fp-sheet-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: #000; }
.fp-sheet-head div { margin: 2px 0 12px; font-size: 12px; color: #444; }
.fp-sheet-foot { margin-top: 10px; font-size: 9px; color: #666; }
.fp-print .hp-secs { gap: 10px; }
.fp-print .hp-unit { gap: 6px; padding: 8px; border: 1px solid #888; background: #fff; break-inside: avoid; page-break-inside: avoid; }
.fp-print .mod-group-name { color: #000; }
.fp-print .mod-group-meta, .fp-print .hp-seccount, .fp-print .hy-grp { color: #444; }
.fp-print .hp-chev { display: none; }
.fp-print .hp-grid, .fp-print .hp-tray.is-places { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(58px, auto); gap: 4px; }
.fp-print .hp-tray { padding: 4px; border-color: #999; border-bottom: 2px solid #666; background: #fff; }
.fp-print .hp-pan, .fp-print .hp-pan.is-p2, .fp-print .hp-pan.is-p3, .fp-print .hp-pan.is-p6, .fp-print .hp-item {
    flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: auto; min-height: 54px; padding: 4px 3px;
    border: 1px solid #999; background: #fff; color: #000; font-size: 10px; font-weight: 600; line-height: 1.15; text-align: center; }
.fp-print .hp-pan.is-empty { border: 1px dashed #bbb; }
.fp-print .hp-pan .wa-ico, .fp-print .hp-pan .wa-ico img, .fp-print .hp-item .wa-ico, .fp-print .hp-item .wa-ico img { width: 26px; height: 26px; flex: none; }
.fp-print .wa-ico svg { color: #666; }
.fp-print .hp-nm, .fp-print .hp-item > span:last-child { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; }
@page { size: A4 portrait; margin: 12mm; }
@media print {
    html, body.fp-page { background: #fff !important; }
    body.fp-page > *:not(.fp-print) { display: none !important; }
    body.fp-page .fp-print { position: static; left: auto; width: auto; opacity: 1; }
    .fp-print, .fp-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* the rig's look at the sheet on a screen (_hygiene_shadow/plans-my/render sets html.fp-preview): the same rules as print */
html.fp-preview, html.fp-preview body.fp-page { background: #fff !important; }
html.fp-preview body.fp-page > *:not(.fp-print) { display: none !important; }
html.fp-preview body.fp-page .fp-print { position: static; left: auto; opacity: 1; }

/* ==== PJ -- START (byte for byte the same in my/css/hygiene-planogram.css and cloud/css/hygiene-planogram.css; tests/Unit/HygienePanJoinTest.php pins it) ====
   JOINED PANS (3 Oct 2026, decisions 7-12 of Documentation/mockups/2026-10-03_hygiene_records_ipad/NOTE.md, all as recommended: the
   approved HR3 block, frames H3 to H3pd, with the join DOWN and the scope the shipping pages needed). A joined pan is the pan as it
   ships, placed by name across the places it takes (the drawing writes its grid-area on it, so the pans after it flow round it); its
   size tag is the well pan's own .hp-size, shown ONLY on a pan that differs from its section (the section says its size once, in the
   head). While a Join waits, the pans that can join wear the extras map's own drop wash (.sw-drop-on, as shipped) and the rest step
   back. No new button, badge, field, modal or colour. */
.hp-grid .hp-pan .hp-size { top: 3px; right: 6px; }
.hp-grid > .hp-pan.is-joined:not(.is-empty) > .hp-nm { max-width: calc(100% - 66px); }   /* the name never runs under the tag */
.hy-faded .hp-pan:not(.sw-drop-on):not(.is-sel) { opacity: .4; }
@media (max-width: 760px) {
    /* a grid with a joined pan keeps its REAL columns on a phone (two across, PS6, is the editor's picking order and cannot show
       which pans touch; the plans pages already keep theirs) */
    .hp-grid.hy-true { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
    /* the editor and the app's plans: while a Join waits, and once a pan is joined, the grid in its TRUE shape -- small tiles,
       picture over name, ONE column (round 2's wrap would put a two-line name in a second column beside its picture) */
    .hp-edit .hp-grid.hy-true, .hy-plan-body .hp-grid.hy-true { grid-auto-rows: 64px; gap: 4px; }
    .hp-edit .hp-grid.hy-true .hp-pan, .hy-plan-body .hp-grid.hy-true .hp-pan { flex-direction: column; flex-wrap: nowrap; container-type: normal; justify-content: center; align-items: center; text-align: center; gap: 2px; padding: 3px 2px; height: auto; min-height: 0; overflow: hidden; font-size: 11px; line-height: 1.15; }
    .hp-edit .hp-grid.hy-true .hp-pan .wa-ico, .hp-edit .hp-grid.hy-true .hp-pan .wa-ico img,
    .hy-plan-body .hp-grid.hy-true .hp-pan .wa-ico, .hy-plan-body .hp-grid.hy-true .hp-pan .wa-ico img { width: 28px; height: 28px; margin: 0; }
    .hp-edit .hp-grid.hy-true > .hp-pan > .hp-nm, .hy-plan-body .hp-grid.hy-true > .hp-pan > .hp-nm { flex: none; max-width: 100%; font-size: 11px; -webkit-line-clamp: 2; }
    .hp-grid.hy-true .hp-pan .hp-size { top: 2px; right: 4px; font-size: 9px; }
    /* the bar of a pan: the line, then the keys across the width */
    .hm-bar:has(> .hy-line) { flex-wrap: wrap; }
    .hm-bar > .hy-line { flex: 1 1 100%; }
    .hm-bar:has(> .hy-line) .btn-sm:first-of-type { margin-left: 0; }
    .hm-bar:has(> .hy-line) .btn-sm { flex: 1 1 0; }
}
/* ==== PJ -- END ==== */

/* ==== PK -- START (byte for byte the same in my/css/hygiene-planogram.css and cloud/css/hygiene-planogram.css; tests/Unit/HygieneStackTest.php pins it)
   STACKED BOXES, 3 Oct 2026 (Documentation/mockups/2026-10-03_hygiene_stacked_boxes/, groups ST1 to ST4). LAYOUT ONLY. No new
   button, modal, switch or colour: the Boxes box is the house .modal (the Layout page's own section box), its rows are .hp-item in
   the shelf's own tray (.hp-tray.is-places, one column), the up, down and bin keys are the section head's .mod-row-btn, Add is the
   Sections row's .hp-tools, the foot is Cancel / Save. ==== */

/* ST1 -- THE STACK IS A PILE OF CARDS (4 Oct 2026, look A of Documentation/mockups/2026-10-04_hygiene_stack_cards/: his "like cards
   slightly overlapping"). The tile itself is the TOP card, drawn exactly as any item is; each box under it is one more card whose
   right and bottom edges show, drawn as the tile's own shadow (a filled copy of its box and a 1px edge, offset right and down), so
   2, 3 and 4 boxes read as one, two and three edges. The pile's room is a margin INSIDE the place: the place and the grid do not
   move. No count badge and no second edge under the tile. A selected or drop-washed pile keeps its cards. */
.hp-pan.is-pile, .hp-item.is-pile { --pl: 7px; --pl-edge: #6b6b6b; margin: 0 var(--pl) var(--pl) 0; box-shadow: var(--pl-cards); }
.is-pile.pl-n2 { --pl: 7px;  --pl-cards: 7px 7px 0 -1px #222, 7px 7px 0 0 var(--pl-edge); }
.is-pile.pl-n3 { --pl: 12px; --pl-cards: 6px 6px 0 -1px #222, 6px 6px 0 0 var(--pl-edge), 12px 12px 0 -1px #1e1e1e, 12px 12px 0 0 var(--pl-edge); }
.is-pile.pl-n4 { --pl: 15px; --pl-cards: 5px 5px 0 -1px #222, 5px 5px 0 0 var(--pl-edge), 10px 10px 0 -1px #1e1e1e, 10px 10px 0 0 var(--pl-edge), 15px 15px 0 -1px #1b1b1b, 15px 15px 0 0 var(--pl-edge); }
.hp-pan.is-pile.is-sel, .hp-item.is-pile.is-sel { box-shadow: 0 0 0 2px #188796, var(--pl-cards); }
.hp-pan.is-pile.sw-drop-on, .hp-item.is-pile.sw-drop-on { box-shadow: inset 0 0 0 1px #188796, var(--pl-cards); }
.hp-pan.is-pile[role="button"], .hp-item.is-pile[role="button"] { cursor: pointer; }
/* a place that sets its own width or least height gives the pile its room out of it, so a row with a stack is no wider and no taller */
.hp-grid > .hp-pan.is-pile { padding-top: 2px; padding-bottom: 2px; }
.hp-tray.is-places > .hp-item.is-pile { width: auto; min-height: calc(44px - var(--pl)); padding-top: 1px; padding-bottom: 1px; }
.hy-page .hp-tray.is-places > .hp-item.is-pile { min-height: calc(52px - var(--pl)); }
/* the plans (my. and the app) give every place its full width and height by name: a pile takes its room out of them */
.hp-grid > .hp-pan.is-pile.is-pile, .hp-tray.is-places > .hp-item.is-pile.is-pile { width: auto; height: auto; }
/* a phone's small places (the look-only plans): a slimmer card, and a smaller picture on a deeper pile, so a two-line name still
   fits the row the plan already has */
@media (max-width: 760px) {
    .hy-plan-body .is-pile.is-pile, .fp-units .is-pile.is-pile { padding-top: 1px; padding-bottom: 1px; }
    .hy-plan-body .is-pile.pl-n3 .wa-ico, .hy-plan-body .is-pile.pl-n3 .wa-ico img, .fp-units .is-pile.pl-n3 .wa-ico, .fp-units .is-pile.pl-n3 .wa-ico img { width: 26px; height: 26px; }
    .hy-plan-body .is-pile.pl-n4 .wa-ico, .hy-plan-body .is-pile.pl-n4 .wa-ico img, .fp-units .is-pile.pl-n4 .wa-ico, .fp-units .is-pile.pl-n4 .wa-ico img { width: 22px; height: 22px; }
}

/* ST2 -- THE BOXES BOX (frames K2, K2b). The house .modal; its body is one fixed height, so choosing Add MORPHS the list into the
   item search and the box does not move. The rows are the shelf's tray, one place across; a row's keys stand at its right. */
.hp-mbody.is-stackbox { height: 372px; }
.is-stackbox > .hp-tools { flex: none; margin-bottom: 8px; }
.is-stackbox > .hp-tray { flex: 1 1 0; min-height: 0; overflow-y: auto; align-content: start; }
.is-stackbox > .hp-tray.is-empty { align-content: center; justify-items: center; }
.hp-boxrow { display: flex; align-items: center; gap: 8px; }
.hp-boxrow .hp-item { flex: 1 1 0; min-width: 0; }
.is-stackbox > .toolbar-search { flex: none; margin-bottom: 12px; }
.is-stackbox > .hp-pick { flex: 1 1 0; min-height: 0; max-height: none; margin-bottom: 0; }
.hp-tray.is-places.is-stacklist .hp-item { position: relative; }

/* ST3 -- THE PROBE LIST (frame K6p). A stack is ONE block across the list: the place in the section label's type, then its boxes
   one under another, each one a tap. */
.hp-stackgrp { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.hp-stackgrp > .hy-grp { margin: 0 2px; }
.hp-stackgrp > .hp-item { flex: none; width: 100%; box-sizing: border-box; }

/* ST4 -- THE PAPER (frames K5, K5b). A stack of TWO fits inside its place, printed as lines, top first; a stack of three or more
   prints as its top box with a ringed number, and the same number heads its list under the plan. */
.hp-ring { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 17px; height: 17px; box-sizing: border-box; border: 1.5px solid #000; border-radius: 50%; background: #fff; color: #000; font-size: 10px; font-weight: 700; line-height: 1; }
.fp-print .hp-item.is-ringed, .fp-print .hp-pan.is-ringed { position: relative; }
.fp-print .hp-item.is-ringed > .hp-ring { position: absolute; top: 2px; right: 2px; }
.fp-print .hp-pan.is-ringed > .hp-ring { position: absolute; top: 2px; left: 2px; }
.fp-print .hp-item.is-lines, .fp-print .hp-pan.is-lines { align-items: stretch; justify-content: center; gap: 0; padding: 0; }
.hp-lines { display: flex; flex-direction: column; width: 100%; }
.hp-ln { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 4px; text-align: left; font-size: 10px; font-weight: 600; line-height: 1.15; color: #000; }
.hp-lines .hp-ln + .hp-ln { border-top: 1px solid #bbb; }
.fp-print .hp-ln .wa-ico, .fp-print .hp-ln .wa-ico img { width: 18px; height: 18px; flex: none; }
.fp-stacks { margin-top: 12px; padding: 8px; border: 1px solid #888; background: #fff; }
.fp-stacks .hy-grp { margin: 0 0 6px; }
.fp-stack { display: flex; flex-direction: column; border: 1px solid #999; margin-bottom: 6px; break-inside: avoid; }
.fp-stack:last-child { margin-bottom: 0; }
.fp-stack-hd { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 12px; font-weight: 700; color: #000; background: #eee; }
.fp-stack .hp-ln { font-size: 12px; padding: 4px 6px; }
.fp-stack .hp-ln + .hp-ln { border-top: 1px solid #ddd; }
.fp-stack .hp-ln .wa-ico, .fp-stack .hp-ln .wa-ico img { width: 22px; height: 22px; }
/* ==== PK -- END ==== */
/* STACKED, ONE BOX PER LINE (4 Oct 2026): the 760px rule lays every tray two across, which squashed a box and its three keys into
   half a row. ONLY the boxes list inside the pan pop-up (.hp-mbody.is-stackbox) is one column: picture, name, then up / down / bin
   at the right. The planogram editor's tray keeps its two across. Outside block PK: that block is the app's twin. */
.hp-mbody.is-stackbox > .hp-tray.is-places.is-stacklist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.is-stackbox .hp-boxrow { gap: 12px; }
.is-stackbox .hp-boxrow .hp-item { flex: 1 1 0; width: auto; min-height: 56px; }
.is-stackbox .hp-boxrow .hp-item > .wa-ico { margin: 0; }
.is-stackbox .hp-boxrow .hp-item > span:last-child { flex: 1 1 0; max-width: none; text-align: left; font-size: 14px; }
.is-stackbox .hp-boxrow > .mod-row-btn { flex: none; }

/* TD1 -- TOP DOWN STACKS, 4 Oct 2026 (my. only: the Layout page on a phone). A pan two across is under 100px inside, so round 2
   puts its picture over its name -- and the phone's fixed 56px place then cut both (seen in frame T1p, stack or no stack). The
   place grows to fit instead: a name is never cut. A grid in its true shape (.hy-true) keeps its own small tiles. */
@media (max-width: 760px) {
    .hp-edit .hp-grid:not(.hy-true) > .hp-pan:not(.is-empty) { height: auto; min-height: 56px; padding: 6px 8px; }
    .hp-edit .hp-grid:not(.hy-true) > .hp-pan.is-pile:not(.is-empty) { min-height: calc(56px - var(--pl)); padding: 2px 8px; }   /* CARDS, 4 Oct: the pile's room comes out of the place */
}

/* LF2 -- THE PHONE DRAWS A SECTION IN ITS TRUE SHAPE, ALWAYS, 4 Oct 2026 (my. only: the Layout page on a phone; outside block PK).
   His ruling on seeing it live: "why is the 4x4 showing 2 lines????" -- a section that is 4 rows of 4 draws four across, in the
   normal view, while a pan is held for a Join and after the Join; nothing changes shape between the three. This overrules the
   editor's two across (PS6) for the top down grids. The tile: picture centred, the name under it, centred, whole words only
   (the soft hyphens are switched off; a word that cannot fit has its tile's font stepped down by fitNames(), never split),
   up to three lines; a row is one height. */
@media (max-width: 760px) {
    #hlBody .hp-edit .hp-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(68px, auto); gap: 4px; }
    #hlBody .hp-edit .hp-grid > .hp-pan { height: auto; min-height: 0; }
    #hlBody .hp-edit .hp-grid > .hp-pan:not(.is-empty) { flex-direction: column; flex-wrap: nowrap; container-type: normal; justify-content: flex-start; align-items: center; text-align: center; gap: 3px; padding: 6px 2px 4px; overflow: hidden; font-size: 11px; line-height: 1.15; }
    #hlBody .hp-edit .hp-grid > .hp-pan .wa-ico, #hlBody .hp-edit .hp-grid > .hp-pan .wa-ico img { width: 28px; height: 28px; margin: 0; flex: none; }
    #hlBody .hp-edit .hp-grid > .hp-pan > .hp-nm { flex: none; width: 100%; max-width: 100%; text-align: center; font-size: inherit; line-height: 1.15; -webkit-line-clamp: 3; -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; word-break: normal; }
    #hlBody .hp-edit .hp-grid > .hp-pan .hp-size { top: 2px; right: 4px; font-size: 9px; }
    #hlBody .hp-edit .hp-grid > .hp-pan img { pointer-events: none; -webkit-user-drag: none; }   /* a held picture never opens the phone's own menu */
}

/* LF3 -- TIGHTER SIDES ON A PHONE, 4 Oct 2026 (my. only; outside block PK). His "we also need to make the sides tighter, we have
   wasted space": the grid sat in a box in a box in a card, each with wide side padding, so a tile began about 62px in from the
   screen's edge. The page keeps its 16px gutter; the card and the section box keep about 8-10px each side, the middle box none;
   6px between tiles. Sides only: no head's height moves. A desktop is untouched. */
@media (max-width: 760px) {
    #hlCard.ins-card, .fp-page .fp-units .ins-card.fp-unit { padding-left: 10px; padding-right: 10px; }
    #hlBody .hp-edit, .fp-page .fp-units .fp-body { padding-left: 0; padding-right: 0; }
    #hlBody .hp-edit .hp-sec, .fp-page .fp-units .hp-sec { padding-left: 8px; padding-right: 8px; }
    #hlBody .hp-edit .hp-grid { gap: 6px; }
}

/* LF4 -- A SECTION FITS THE PHONE; NARROW IS THE PICTURE ONLY, 4 Oct 2026 (my. only: Layout and Fridge / freezer plans; outside
   block PK). His ruling: "on a phone when it is narrow, just the icon is OK; on click we can show the name." A section draws its
   true number of places across and FITS the width: no sideways slide. Up to four across: the picture over the name, whole words
   (no soft hyphen is used; a word too long steps its tile's font down, never splits). Five or more across (.is-pics, set by the
   page's script, which also gives every tile its name as title and aria-label): the picture only, square tiles. On the plans
   page a tap says the name on ONE reserved line under the section (.fp-nameline); on Layout a tap opens the place, as before. */
.fp-nameline { display: none; }
@media (max-width: 760px) {
    #hlBody .hp-edit .hp-tray.is-places { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(68px, auto); gap: 6px; }
    #hlBody .hp-edit .hp-tray.is-places > .hp-pan { height: auto; min-height: 0; }
    #hlBody .hp-edit .hp-tray.is-places > .hp-item { flex: none; flex-direction: column; flex-wrap: nowrap; container-type: normal; justify-content: flex-start; align-items: center; text-align: center; gap: 3px; width: 100%; height: auto; min-height: 0; padding: 6px 2px 4px; overflow: hidden; font-size: 11px; line-height: 1.15; }
    #hlBody .hp-edit .hp-tray.is-places > .hp-item .wa-ico, #hlBody .hp-edit .hp-tray.is-places > .hp-item .wa-ico img { width: 28px; height: 28px; margin: 0; flex: none; }
    #hlBody .hp-edit .hp-tray.is-places > .hp-item > span:last-child { flex: none; width: 100%; max-width: 100%; text-align: center; font-size: inherit; line-height: 1.15; -webkit-line-clamp: 3; -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; word-break: normal; }
    #hlBody .hp-edit .hp-tray.is-places > .hp-item img { pointer-events: none; -webkit-user-drag: none; }
    .fp-page .fp-units .hp-sec { overflow-x: visible; }
    .fp-page .fp-units .hp-grid, .fp-page .fp-units .hp-tray.is-places { min-width: 0; gap: 6px; }
    .fp-page .fp-units .hp-nm, .fp-page .fp-units .hp-item > span:last-child { width: 100%; -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; word-break: normal; }
    #hlBody .hp-edit .is-pics, .fp-page .fp-units .is-pics { grid-auto-rows: auto; }
    #hlBody .hp-edit .is-pics > [data-slot], .fp-page .fp-units .is-pics > [data-slot] { aspect-ratio: 1 / 1; height: auto; min-height: 0; padding: 0; gap: 0; justify-content: center; }
    #hlBody .hp-edit .is-pics > [data-item] > .hp-nm, #hlBody .hp-edit .is-pics > .hp-item > span:last-child,
    .fp-page .fp-units .is-pics > [data-item] > .hp-nm, .fp-page .fp-units .is-pics > .hp-item > span:last-child { display: none; }
    .fp-page .fp-units .is-pics > [data-item] { cursor: pointer; }
    .fp-nameline { display: flex; align-items: center; min-height: 20px; margin-top: 8px; font-size: 13px; line-height: 20px; color: #8a9396; }
    .fp-nameline b { color: #fff; font-weight: 600; }
}

/* FJ1 -- A SHELF'S PLACES JOIN TOO, 4 Oct 2026 (my. only: the Layout page; outside block PK). His "front facing needs to be able
   to join too". The joined place is two places wide by its own grid-column (the drawing says it); nothing here sizes it. While a
   Join waits on a shelf the places that cannot join step back, as the pans seen from above do (.hy-faded .hp-pan, block PJ). */
.hp-tray.hy-faded > .hp-item:not(.sw-drop-on):not(.is-sel) { opacity: .4; }
/* a FULL place that can join is lit as a pan is: the drop wash of .hp-pan.sw-drop-on (block PR1), worn by a shelf's item too.
   Two classes only, so a pile's own rule (.hp-item.is-pile.sw-drop-on) still wins and keeps its cards. */
.hp-item.sw-drop-on { background: rgba(24, 135, 150, .07); box-shadow: inset 0 0 0 1px #188796; border-color: #188796; }
/* picture-only tiles are square (LF4, a phone); a joined place is two wide and exactly as tall as the squares beside it. Its height
   is its padding: a percentage padding is measured on the WIDTH of its two places, so (width - the 6px gap) / 2 is one place, less
   the 1px border top and bottom. The picture sits in the middle of it. */
@media (max-width: 760px) {
    #hlBody .hp-edit .is-pics > [data-slot].is-joined, .fp-page .fp-units .is-pics > [data-slot].is-joined { position: relative; aspect-ratio: auto; align-self: start; box-sizing: border-box; height: 0; min-height: 0; padding: calc((100% - (var(--sp, 2) - 1) * 6px) / (var(--sp, 2) * 2) - 1px) 0; overflow: visible; }
    /* its picture in the middle of it, as its neighbours' are (the box has no height of its own to centre in) */
    #hlBody .hp-edit .is-pics > [data-slot].is-joined > .wa-ico, .fp-page .fp-units .is-pics > [data-slot].is-joined > .wa-ico { position: absolute; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
    /* THE SHELF HUGS ITS TILES (4 Oct 2026, the organiser's look at L1): a picture-only shelf's row is as tall as its square
       tiles, not the 68px a named tile needs -- LF4's `grid-auto-rows: auto` lost to the Layout page's own tray rule */
    #hlBody .hp-edit .hp-tray.is-places.is-pics { grid-auto-rows: auto; }
}

/* FS -- THE FAST BATCH (4 Oct 2026, late; his list, NO frame rendered on his word).
   FS1: the share key the Product Summary page wears (my/database-product-summary.html's own .sm-print, carried whole): the
   Plans page's Print is now this key, "Save or share as PDF". */
.sm-print { flex: none; background: transparent; border: none; padding: 4px; margin: 0; color: #9aa3a5; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .12s; }
.sm-print:hover { color: #fff; }
.sm-print svg { width: 24px; height: 24px; display: block; }
.sm-print.hidden { display: none; }
@media (max-width: 760px) {
    /* FS3: Cancel and Save stand top right, on the LAYOUT heading's own line; the unit line goes under them */
    #hlCard > .ins-card-head { flex-wrap: wrap; align-items: center; }
    #hlCard > .ins-card-head > .ins-card-title { order: 1; flex: 1 1 0; min-width: 0; }
    #hlCard > .ins-card-head > #hlActs { order: 2; margin-left: auto; }
    #hlCard > .ins-card-head > .ins-card-sub { order: 3; flex: 1 0 100%; }
    /* FS4: the box's "Looks like this" is as tall as its slots are wide (about square), down to the keys, never past 44vh */
    .hp-mbody { height: auto; }
    .hp-mbody > .field.is-fill { flex: none; }
    .hp-mbody .hp-prev { flex: none; box-sizing: border-box; width: 100%; aspect-ratio: var(--pc, 1) / var(--pr, 1); max-height: 44vh; }
}
/* PS3b on a phone: a drawing with name boxes is a row a shelf, 44px each, not the square the drawing alone is */
@media (max-width: 760px) {
    .hp-mbody .hp-prev.has-names { aspect-ratio: auto; max-height: none; }
    .hp-mbody .hp-prev.has-names .hp-prevrow { flex: none; height: 44px; }
    .hp-mbody .hp-prev.has-names .hp-prevrow > input { height: 100%; }
}

/* PN -- ON THE COUNTER NOW, on Fridge / freezer plans (SCAN3, 7 Oct 2026; MY. ONLY -- the app's plan says the same in
   cloud/css/hygiene-plans.css FP6; decision 30 of the counter scan, mockup block CS2). A place whose item has a box on the counter
   says so under the name: since when, and its use-by; two boxes say "2 boxes" in the teal of the plan's own selection; a box past
   its use-by, or withdrawn, turns the place's edge and its lines red (#B52B2B / #F87171). Never a corner badge. Said on .fp-units
   (the plan on the screen), never on the printed sheet. js/hygiene-plans.js puts the lines in after the picture (a shelf place's
   name must stay its last span) and this block draws them under the name. STATES ARE CLASSES: .is-live, .is-out. No colour is new. */
.fp-units .hp-live { order: 9; flex: none; display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; font-size: 10.5px; line-height: 1.25; font-weight: 600; color: #8a9396; font-variant-numeric: tabular-nums; }
.fp-units .hp-live b.is-n { font-weight: 700; color: #73D1DE; }
.fp-units .hp-pan.is-out, .fp-units .hp-item.is-out { border-color: #B52B2B; }
.fp-units .is-out .hp-live, .fp-units .is-out .hp-live b.is-n { color: #F87171; }
@media (min-width: 761px) {
    /* a desk: the picture on the left, the name and under it the two lines -- the place keeps its row (56px holds them) */
    .fp-units .hp-grid > .hp-pan.is-live, .fp-units .hp-tray.is-places > .hp-item.is-live { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 1px; align-content: center; align-items: center; container-type: normal; text-align: left; }
    .fp-units .is-live > .wa-ico { grid-column: 1; grid-row: 1 / span 2; }
    .fp-units .hp-grid > .hp-pan.is-live > .hp-nm, .fp-units .hp-tray.is-places > .hp-item.is-live > span:last-child { grid-column: 2; grid-row: 1; max-width: none; }
    .fp-units .is-live > .hp-live { grid-column: 2; grid-row: 2; }
}
@media (max-width: 760px) {
    /* a phone: the picture over the name over the lines, centred, as the app's plan draws them; a picture-only section
       (.is-pics) has no words in a place -- its red edge alone, and the words on the section's own line when it is tapped */
    .fp-units .hp-live { align-items: center; text-align: center; font-size: 10px; }
    .fp-nameline .fp-now { margin-left: 8px; font-weight: 500; }
    .fp-nameline.is-out .fp-now { color: #F87171; }
    /* a section with a box on one of its places keeps TWO lines (the name, then the box), so a tap never moves the page */
    .fp-nameline.has-now { flex-wrap: wrap; align-content: flex-start; min-height: 40px; }
    .fp-nameline.has-now .fp-now { flex: 0 0 100%; margin-left: 0; }
}
