/* ORVO Hygiene -- THE SHOP MAP on my.orvopos.com: Setup > Map (build order step 53; frames M1, M1b, M2, M2b, M3 of
   Documentation/mockups/2026-09-30_hygiene_step53/, approved 30 Sep 2026).

   Loaded by my/hygiene-registers.html after css/hygiene-cleaning.css (which already carries the caption chip
   .hy-photo-t, the tools row .hy-tools and the 560 by 690 box .hy-modal.is-wide.is-tall -- step 52's).

   THREE PARTS, NOTHING INVENTED:
     A. the PROPOSED block of the approved mockup, PR1 (the plan) and PR2 (the Map tab), AS WRITTEN in NOTE.md.
        PR1 is also the first half of cloud/css/hygiene-map.css (the tablet draws the same plan): change one,
        change both.
     B. the extras map's drag parts, COPIED VERBATIM from my/database-swaps.html's own <style> (they are
        page-local there, so this page has to carry them to wear them).
     C. the route cards, COPIED VERBATIM from my/css/orvo-recipe-walk.css (not loaded by this page).

   (c) 2026 ORVO Software -- orvopos.com */

/* ============================== A. PROPOSED, step 53 (PR1 + PR2) ============================== */
/* ══════════════════════════════════════════════════════════════════════════════
   ── PROPOSED ── step 53. Layout, plus the state washes. Every colour is one the platform already
   owns (the four state words' own colours from .hy-st, at 7-15%; ORVO teal for "picked"; ORVO red
   for out of range). No new button, no new modal, no new switch. Kept as small as it can be.
   Step 52's PROPOSED block (thumbnails, the wide task box, the tools row) is carried, not repeated:
   it is linked as step52-proposed.css.
   ══════════════════════════════════════════════════════════════════════════════ */

/* PR1 -- THE PLAN. One box, drawn the same on my. (editing) and on the tablet and phone (live): the
   photo box's own frame (.hy-photo: 1px #333, radius 10, #111), at a fixed 10 : 7 so that a marker
   placed at 40% across is at 40% across on every screen. */
.hm-plan { position: relative; width: 100%; aspect-ratio: 10 / 7; flex: none; overflow: hidden; border: 1px solid #333; border-radius: 10px; background: #111; }
.hm-plan.sw-drop-on { border-color: #188796; box-shadow: inset 0 0 0 1px #188796; }   /* the extras map's own drop wash (.sw-map-box.sw-drop-on), worn by the plan */
.hm-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hm-plan.is-dim .hm-bg { filter: invert(.9) hue-rotate(180deg) brightness(.85) contrast(.95); }   /* the tablet shows a LIGHT LINE PLAN turned into the house dark; a drawn grid is dark already and takes no filter */
.hm-plan.is-dim.is-photo .hm-bg { filter: brightness(.55); }   /* a coloured photograph of a room is only dimmed, never inverted */

/* an area: a rectangle laid over the plan. Its wash is the state word's own colour (.hy-st), quiet for
   Done and Due, heavier for Late and Missed, so what is not done is what the eye lands on. */
.hm-area { position: absolute; box-sizing: border-box; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }   /* editing: a white line with a dark hairline, so it reads on a light photo and on the dark grid */
.hm-area.is-done { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .07); }
.hm-area.is-due  { border-color: rgba(115, 209, 222, .5); background: rgba(115, 209, 222, .07); }
.hm-area.is-late { border-color: rgba(251, 146, 60, .7);  background: rgba(251, 146, 60, .13); }
.hm-area.is-miss { border-color: rgba(248, 113, 113, .75); background: rgba(248, 113, 113, .15); }
.hm-area.is-none { border: 1.5px dashed rgba(255, 255, 255, .3); background: none; }
.hm-area.is-sel  { border-color: #188796; box-shadow: 0 0 0 2px #188796; background: rgba(24, 135, 150, .12); }   /* the ring .hy-row.is-now wears */
.hm-area.is-new  { border: 2px dashed #188796; background: rgba(24, 135, 150, .12); }
/* its label is the approved caption chip (.hy-photo-t), stood on its end so a narrow area still holds it */
.hm-area .hy-photo-t { left: 8px; top: 8px; bottom: auto; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 8px; line-height: 1.25; white-space: nowrap; }
.hm-area .hy-st { font-size: 11px; }
.hm-n { font-weight: 600; font-size: 11px; color: #9aa3a5; }
.sw-map-dot.sw-ghost .sw-map-nm { background: rgba(0, 0, 0, .65); border-radius: 5px; padding: 1px 6px; color: #fff; }   /* the lifted copy's name, in the plan's own caption chip, so it reads over a light photo */
.hm-h { position: absolute; width: 10px; height: 10px; border-radius: 2px; background: #188796; border: 1px solid #fff; }
.hm-h.tl { left: -6px; top: -6px; } .hm-h.tr { right: -6px; top: -6px; } .hm-h.bl { left: -6px; bottom: -6px; } .hm-h.br { right: -6px; bottom: -6px; }

/* a marker: the register's icon in a round well (the extras map's .sw-map-pic look: #1c1c1c, 1.5px #2e2e2e)
   and its name in the same caption chip. Its centre is the point it was dropped on. */
.hm-pin { position: absolute; transform: translate(-50%, -18px); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hm-pic { width: 36px; height: 36px; border-radius: 50%; background: #1c1c1c; box-shadow: inset 0 0 0 1.5px #2e2e2e, 0 2px 6px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; color: #c8d0d2; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hm-pic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-nm { max-width: 76px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.25; text-align: center; }
.hm-pin.is-out .hm-pic { box-shadow: inset 0 0 0 2px #F87171, 0 2px 6px rgba(0, 0, 0, .5); color: #F87171; }   /* out of range: the reading's own red (.hy-read.is-out) */
.hm-pin.is-late .hm-pic { box-shadow: inset 0 0 0 2px #FB923C, 0 2px 6px rgba(0, 0, 0, .5); color: #FB923C; }   /* a round that is late; and gold for a certificate Due soon: the state words' own colours */
.hm-pin.is-soon .hm-pic { box-shadow: inset 0 0 0 2px #E8C846, 0 2px 6px rgba(0, 0, 0, .5); color: #E8C846; }
.hm-pin.is-sel .hm-pic { box-shadow: 0 0 0 2px #188796, 0 2px 6px rgba(0, 0, 0, .5); }
/* on a phone at "fit" a marker is its icon and nothing else; a name and a reading arrive as it is zoomed in */
.hm-plan.is-fit .hm-pic { width: 26px; height: 26px; }
.hm-plan.is-fit .hm-pin { transform: translate(-50%, -13px); }
.hm-plan.is-fit .hm-pic svg { width: 15px; height: 15px; }
.hm-plan.is-fit .hm-nm, .hm-plan.is-fit .hm-area .hy-st { display: none; }
.hm-plan.is-fit .hm-area .hy-photo-t { font-size: 10px; padding: 2px 6px; }
.hm-zoom { position: absolute; right: 8px; bottom: 8px; }
.hm-zoom .sl-seg { height: 34px; background: #1a1a1a; }
.hm-zoom .sl-seg button { padding: 0 10px; }
.hm-zoom .sl-seg button[disabled] { opacity: .4; }
.hm-zoom .sl-seg svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the words that say what the colours mean: the state words, in their own colours, under the plan */
.hm-key { flex: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12.5px; }

/* PR2 -- my.: the Map tab. The plan on the left, what is not on it yet on the right (the extras map's own
   boxes and orbs, worn), one bar under the plan for the plan's file or the thing picked. */
.hm-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; padding: 16px 20px 20px; }
.hm-edit .hy-tools { margin: 0 0 10px; }
.hm-bar { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-top: 10px; font-size: 13px; color: #8a9396; }
.hm-bar b { color: #fff; font-weight: 600; }
.hm-bar .btn-sm:first-of-type { margin-left: auto; }
.hm-pal .sw-map-box + .sw-map-box { margin-top: 12px; }
.hm-pal .sw-map-sub { padding: 0 2px 8px; }
.hm-pal .sw-map-flow { padding: 6px 12px 10px; }
.sw-map-pic > .wa-ico.hm-ico { color: #9aa3a5; }
.hy-card-act.is-two { display: flex; gap: 8px; }
.hm-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; }
.hm-doors .purpose-card { margin-bottom: 0; padding: 22px 20px; }
.hm-doors .purpose-title svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hy-modal .chg-table.hy-reg { min-width: 0; }

/* ============================== B. the extras map's parts, worn ============================== */
/* COPIED VERBATIM from orvopos.com/my/database-swaps.html (its own <style>): the extras map's drag-and-drop parts. Nothing edited.
   The palette on the Map tab wears these as they ship: .sw-map-box (+ .sw-drop-on), .sw-map-head/-price/-count, .sw-map-flow, .sw-map-dot, .sw-map-pic,
   .sw-map-nm, .sw-drag-src, the lifted copy .sw-ghost, and the packed variant .sw-map.is-cols (42px orbs, 60px cells). Lines as of 30 Sep.
   :189 :191 :324-331 :337-338 :429-436 :448 :461 :525 :554-558 */
.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; }

/* ============================== C. the route cards, worn ============================== */
/* COPIED VERBATIM from orvopos.com/my/css/orvo-recipe-walk.css:199-204 (also my/database-add.html:118-123): the route cards, the shipping 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; }

/* ══════════════════════════════════════════════════════════════════════════════
   ── 6 OCT 2026 ── THE SECOND EDITOR (Documentation/mockups/2026-10-06_map/, D1-D18, his "ALL GOOD"): more than one
   map, shapes, pieces, the picture taken off. The mockup's own rules, AS WRITTEN there: MP1-MP3 and MP5 carried from
   the 4 Oct round (approved "as recommended", unbuilt until now) and N1-N7, N9 new. MP1, MP2, MP4 and N1 are also the
   foot of cloud/css/hygiene-map.css (the tablet draws the same shapes): change one, change both.
   NO NEW BUTTON, BADGE, FIELD, MODAL OR PILL: the keys are the Setup page's own `.rp-range` and `.btn`, the maps are
   the route cards (.purpose-card, part C), the switches are `.orvo-switch`, the pieces in the Add pane are the extras
   map's own orbs (part B). What is new is what is DRAWN (the shapes, the pieces, the handles) and where things sit.
   EVERY LAYOUT RULE IS UNDER `.hm-edit.is-maps`, the second editor's own box, so the first editor (step 53's, drawn
   until the 6 Oct columns are in the database) keeps every pixel it has today.
   ══════════════════════════════════════════════════════════════════════════════ */

/* MP1 -- THE SHAPES. Under the words and markers sits ONE svg of 1000 x 700 units, so a corner at 56% across is at 56%
   across on every screen. The floor is the walls: a thick light line round a slightly lighter ground. An area is a
   shape on it. Lines never scale (vector-effect): a wall is 3px and an edge 1.5px at every size. */
.hm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; shape-rendering: geometricPrecision; }
.hm-svg * { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.hm-floor { fill: #171717; stroke: #b8c2c4; stroke-width: 3px; }
.hm-floor.is-sel { stroke: #d6dde0; }
.hm-shape { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .55); stroke-width: 1.5px; }
.hm-shape.is-sel { fill: rgba(24, 135, 150, .12); stroke: #188796; stroke-width: 2px; }
.hm-hot { fill: none; stroke: #188796; stroke-width: 3px; }   /* the wall being worked on */
.hm-halo { fill: none; stroke: rgba(24, 135, 150, .28); stroke-width: 10px; }   /* the soft light under it, so it reads against the pale wall */
.hm-guide { fill: none; stroke: #188796; stroke-width: 1px; stroke-dasharray: 3 4; opacity: .75; }   /* straight with its neighbour: the snap shown, not explained */
/* the walls take a finger: a 22px line nobody sees, under everything drawn on the floor */
.hm-floorhit { fill: none; stroke: rgba(0, 0, 0, 0); stroke-width: 22px; pointer-events: stroke; cursor: pointer; }
.hm-plan.is-edit .hm-floor { pointer-events: none; }
.hm-plan.is-edit [data-it] { cursor: grab; }

/* MP2 -- LABELS. The live caption chip (.hy-photo-t) stood on its end and put by a point in the plan. */
.hm-lab { position: absolute; z-index: 2; pointer-events: none; }
.hm-lab .hy-photo-t { position: static; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 8px; line-height: 1.25; white-space: nowrap; }
.hm-plan.is-fit .hm-lab .hy-photo-t { font-size: 10px; padding: 2px 6px; }

/* MP3 -- THE HANDLES. A CORNER is a 16px square in the live handle's own teal with the white edge (.hm-h); a WALL'S
   MIDDLE is a 10px ring. Each stands in a 44 by 44 box, the size of a finger, and that box is what takes the touch.
   A corner just made keeps a soft white halo until the next touch. */
.hm-hd { position: absolute; z-index: 4; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.hm-hd i { display: block; box-sizing: border-box; flex: none; }
.hm-hd.is-c i { width: 16px; height: 16px; border-radius: 3px; background: #188796; border: 1.5px solid #fff; }
.hm-hd.is-m i { width: 10px; height: 10px; border-radius: 50%; background: #111; border: 2px solid #188796; }
.hm-hd.is-m.is-hot i { width: 18px; height: 18px; background: #188796; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(24, 135, 150, .35); }
.hm-hd.is-c.is-hot i { box-shadow: 0 0 0 4px rgba(24, 135, 150, .35); }
.hm-hd.is-c.is-new i { box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }

/* N1 -- THE PIECES. Equipment drawn as its own shape: an outline, and a small drawing of what it is inside it (a
   fridge's door and handle, an oven's four hobs, a fryer's two tanks). Same white at the same strengths as an area's edge. */
.hm-pc { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .66); stroke-width: 1.5px; }
.hm-pd { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.2px; }
.hm-pd.is-h { stroke: rgba(255, 255, 255, .6); stroke-width: 2.4px; }
.hm-pd.is-f { fill: rgba(255, 255, 255, .22); stroke: none; }
.hm-pc.is-sel { fill: rgba(24, 135, 150, .14); stroke: #188796; stroke-width: 2px; }
.hm-svg .hm-pc.is-hit { fill: rgba(0, 0, 0, 0); stroke: none; }   /* a door's own box: nothing drawn, so a door can be picked */
.hm-svg .hm-pc.is-hit.is-sel { fill: rgba(24, 135, 150, .1); }
.hm-swing { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.2px; stroke-dasharray: 3 3; }
.hm-cut { stroke: #171717; stroke-width: 7px; stroke-linecap: butt; }   /* a door's gap in a wall: the floor's own ground drawn over the wall (D14) */
.hm-pn { position: absolute; z-index: 2; transform: translate(-50%, 0); font-size: 10.5px; font-weight: 600; color: #8a9396; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; }
.hm-pin.hm-lbl { transform: translate(-50%, 0); pointer-events: none; z-index: 2; }   /* the live name chip (.hm-nm) with no round well above it */
.hm-plan.is-edit .hm-pin { z-index: 3; cursor: grab; }
.hm-plan.is-edit .hm-lbl .hm-nm { max-width: 64px; }   /* fridges stand side by side: their names keep to their own width */
.hm-mini { width: 36px; height: 28px; display: block; overflow: visible; }
.hm-mini * { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sw-map-pic > .hm-mini { width: 30px; height: 22px; }
.hm-mini .hm-cut { stroke: #0d0d0d; }

/* N2 -- SIZE AND TURN. A picked shape or piece gets a dashed box in the picked teal with eight handles: four corner
   squares and four side rings, each in a 44px finger box. A short stalk carries the turn handle: a ring with the turn
   mark. In Corners a curved wall has ONE bow handle (a diamond in the light teal). The chip says the angle while it turns. */
.hm-box { fill: none; stroke: #188796; stroke-width: 1.5px; stroke-dasharray: 5 4; pointer-events: none; }
.hm-stalk { stroke: #188796; stroke-width: 1.5px; pointer-events: none; }
.hm-hd.is-r i { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #111; border: 2px solid #188796; color: #73D1DE; }
.hm-hd.is-r i svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hm-hd.is-r.is-hot i { background: #188796; border-color: #fff; color: #fff; box-shadow: 0 0 0 4px rgba(24, 135, 150, .35); }
.hm-hd.is-b i { width: 13px; height: 13px; transform: rotate(45deg); border-radius: 2px; background: #111; border: 2px solid #73D1DE; }
.hm-hd.is-b.is-hot i { background: #73D1DE; border-color: #fff; box-shadow: 0 0 0 4px rgba(115, 209, 222, .3); }
.hm-chip { position: absolute; z-index: 6; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 6px; background: #0d0d0d; border: 1px solid #188796; color: #73D1DE; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }

/* N3 -- THE TOOLS ROW: Move | Area, then the five shape keys, then Undo. The shape keys are icon-only keys of the same
   segmented control, 44 wide; with neither the Area tool nor a picked area they go quiet and keep their room. */
.hm-shapes button { min-width: 44px; padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; }
.hy-tools .hm-shapes svg { width: 18px; height: 18px; }
.hm-shapes.is-dim { opacity: .38; }
.hm-shapes.is-dim button { cursor: default; }
.hm-edit.is-maps .hy-tools .hy-tools-r { margin-left: 0; }

/* N4 -- THE BAR UNDER THE PLAN, two lines that keep their height whatever is picked: the first says what is picked
   (or the picture) and holds its keys; the second holds what can be set on it. Nothing under the plan moves. */
.hm-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; min-height: 92px; }
.hm-bars .hm-bar { margin-top: 0; min-height: 40px; }
.hm-bar .hm-t { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-bar .hm-r { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.hm-bar .hm-r .btn-sm:first-of-type { margin-left: 0; }
.hm-bar .hm-pl { font-weight: 600; white-space: nowrap; }
.hm-bars .hm-bar .rp-range button { padding: 6px 12px; }
.hm-bar.is-props .rp-range + .hm-pl { margin-left: 14px; }
.hm-bar.is-props .orvo-select { flex: 0 0 210px; width: 210px; }

/* MP5 + N5 -- THE EDITOR'S TWO COLUMNS. The plan on the left as large as the window allows; the right column has two
   panes under one switch, Maps and Add, never taller than the plan. The pane scrolls inside itself, no scrollbar drawn,
   with the fade the app's lists wear to say there is more below. */
/* 462px = what the page has above and below the plan (its header, crumbs, shop bar, tabs, the card's head, the tools row, the bar's two lines),
   measured on the shipping page at 1440 by 900; the mockup's 418 left the page's crumbs and shop bar out */
.hm-edit.is-maps { --hm-planw: min(calc(100% - 316px), max(420px, calc((100dvh - 462px) * 10 / 7)), 880px); grid-template-columns: var(--hm-planw) minmax(300px, 1fr); align-items: stretch; }
.hm-edit.is-maps .hm-canvas { min-width: 0; }
.hm-side { position: relative; min-width: 0; }
.hm-side-in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-tabs { flex: none; display: flex; }
.hm-tabs .rp-range { width: 100%; }
.hm-tabs .rp-range button { flex: 1 1 0; padding: 9px 12px; font-size: 13px; }
.hm-pane { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); }
.hm-pane::-webkit-scrollbar { display: none; }
.hm-pane > * { flex: none; }
.hm-pane .hm-pal .sw-map-sub { padding: 14px 2px 8px; }
.hm-maps .sw-map-head { padding-bottom: 10px; }
.hm-maps-in { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.hm-maps .purpose-card { margin-bottom: 0; padding: 11px 14px; }
.hm-maps .purpose-title svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm-maps .purpose-card.is-add { border-style: dashed; background: none; }
.hm-maps .purpose-card.is-add .purpose-title { color: #9aa3a5; }
.hm-addrow { cursor: default; }
.hm-addrow .field { margin: 8px 0 10px; }
.hm-addrow .btn-group, .hm-mapkeys { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.hm-addrow .btn-group .btn, .hm-mapkeys .btn { min-width: 0; width: auto; flex: none; }

/* N6 -- A MAP CARD THAT HOLDS ITS AREAS. The picked map's route card opens in place (the card morphs, nothing stacks)
   and lists every area the shop has with a switch: on = this map holds it. An area on another map says which. */
.hm-maps .purpose-card.hm-open { cursor: default; padding-bottom: 10px; }
.hm-arows { margin: 10px -2px 0; border-top: 1px solid #262626; }
.hm-arow { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 2px; border-bottom: 1px solid #1c1c1c; font-size: 13.5px; color: #ddd; }
.hm-arow:last-child { border-bottom: 0; }
.hm-arow .hm-an { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-arow .hm-where { color: #7f8b8b; font-size: 12px; white-space: nowrap; }
.hm-arow.is-away .hm-an { color: #9aa3a5; }
.hm-open .hm-mapkeys { margin-top: 8px; padding-top: 10px; border-top: 1px solid #262626; }

/* N7 -- THE PICTURE under the shapes is a tracing guide, kept at one of three strengths so it never drowns the plan. */
/* a guide has to be seen to be traced: with a picture under it the floor's ground lets it through (the walls and every shape stay as drawn) */
.hm-plan.is-dim .hm-floor { fill: rgba(23, 23, 23, .4); }
.hm-plan.s-1 .hm-bg { opacity: .3; }
.hm-plan.s-2 .hm-bg { opacity: .55; }
.hm-plan.s-3 .hm-bg { opacity: .85; }

/* FB30B P8 (30 Oct 2026, frame 09, his "When you click edit, it shouldn't change the layout of anything"): the tools row, the Maps / Add switch, Rename, Remove and
   Add map are drawn in look too, quiet and switched off, so the plan and the pane never move when Edit is pressed. */
.hy-tools.is-look .rp-range, .hy-tools.is-look .btn, .hm-tabs.is-look .rp-range, .hm-maps .is-look { opacity: .38; pointer-events: none; }

/* an iPad: the plan may be taller than the window allows (the page scrolls a little) so a finger has room on it */
@media (max-width: 1300px) { .hm-edit.is-maps { --hm-planw: min(calc(100% - 316px), 740px); } }
/* FB30B (30 Oct 2026): a portrait iPad: the tools row (495 wide) is wider than the plan column (374 at 820), and Undo stood behind the Maps and Add switch. The row wraps inside its column, in look and in
   Edit alike, so Edit still moves nothing. The bar's second line wraps too: Wall and Rounding side by side ran under the side pane. */
@media (max-width: 1023px) {
    .hm-edit.is-maps .hy-tools { flex-wrap: wrap; }
    .hm-edit.is-maps .hm-bar.is-props { flex-wrap: wrap; row-gap: 6px; }
    .hm-edit.is-maps .hm-bar.is-props .rp-range + .hm-pl { margin-left: 0; }
}
/* a finger: every key of the editor is 44 high (MP6's rule, said for the second editor's rows) */
@media (pointer: coarse) {
    .hm-edit.is-maps .hy-tools .rp-range button, .hm-edit.is-maps .hy-tools .btn, .hm-edit.is-maps .hm-bar .btn, .hm-edit.is-maps .hm-bar .rp-range button,
    .hm-edit.is-maps .hm-tabs .rp-range button, .hm-edit.is-maps .hm-addrow .btn, .hm-edit.is-maps .hm-mapkeys .btn { min-height: 44px; }
    .hm-edit.is-maps .hm-arow { min-height: 48px; }
}

/* N9 -- THE IPHONE EDITOR (D17): the same editor in one column. The tools row wraps (Move | Area and Undo on one line,
   the five shape keys on a line of their own); the bar's lines may wrap; the panes sit under the plan. */
@media (max-width: 760px) {
    .hm-edit.is-maps { grid-template-columns: minmax(0, 1fr); padding: 12px 0 16px; }
    .hm-edit.is-maps .hy-tools { flex-wrap: wrap; }
    .hm-shapes { display: flex; width: 100%; order: 3; }
    .hm-shapes button { flex: 1 1 0; }
    .hm-bars { min-height: 0; }
    .hm-bars .hm-bar { flex-wrap: wrap; row-gap: 6px; }
    .hm-bars .hm-bar .hm-t { flex: 1 1 100%; white-space: normal; }
    .hm-bars .hm-bar .hm-r { margin-left: 0; flex-wrap: wrap; }
    .hm-bar.is-props:empty { display: none; }
    .hm-bar.is-props .rp-range + .hm-pl { margin-left: 0; }
    .hm-side, .hm-side-in { position: static; }
    .hm-side-in { gap: 10px; }
    .hm-pane { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .hm-plan.is-fit .hm-lab .hm-n { display: none; }   /* on a phone an area's label is its name only; its tasks are in the bar when it is picked */
}

/* DAY-HYGPHONE (27 Oct 2026, his iPhone: "the maps page on iPhone is gank. Buttons are all off size. Please see other pages. It's ok on
   iPad"): ON A PHONE THE EDITOR'S KEYS ARE EVERY OTHER SETUP CARD'S. The card's head as Check times' and Cooking limits': the title,
   Cancel and Save at its right (btn-sm), the shop and map line under them. Move | Area, the five shapes and Maps | Add are the page's
   own switch (.rp-range: the Setup tabs' strip above, my.css's phone size, 11px on 6 by 9); Undo and Add are the head's btn-sm. The
   44px of the finger rule (N above, pointer: coarse) stays on an iPad, where he said it is right; a phone's keys are the page's.
   The bar's Add stands at the right of "Drawn on a grid" when it fits. Nothing here reaches a screen over 760 wide. */
@media (max-width: 760px) {
    .hm-card > .ins-card-head > .ins-card-sub { order: 3; flex: 1 1 100%; }
    .hm-card > .ins-card-head > .hy-card-act.is-two { margin-left: auto; }
    .hm-edit.is-maps .hy-tools .rp-range button, .hm-edit.is-maps .hy-tools .btn, .hm-edit.is-maps .hm-bar .btn, .hm-edit.is-maps .hm-bar .rp-range button,
    .hm-edit.is-maps .hm-tabs .rp-range button, .hm-edit.is-maps .hm-addrow .btn, .hm-edit.is-maps .hm-mapkeys .btn { min-height: 0; }
    .hm-edit.is-maps .hm-shapes button, .hm-edit.is-maps .hm-tabs .rp-range button, .hm-bars .hm-bar .rp-range button { padding: 6px 9px; font-size: 11px; }
    .hm-edit.is-maps .hy-tools .hm-shapes svg { width: 14px; height: 14px; }
    .hm-bars .hm-bar .hm-t { flex: 1 1 auto; }
    .hm-bars .hm-bar .hm-r { margin-left: auto; }
}
