/* =====================================================================================
   PieceDesk « Ardoise » : the software shell (DIRECTION.md section 6). Drawn by shell.js from the
   data attributes on <body>; the geometry is reserved here first, so nothing moves when it renders.
   Side menu 256 from 1024 px, rail 64 from 768 px, phone top bar 48 and tab bar 56 under 768 px.
   The side menu is dark in both themes; the top bar and the tab bar are opaque, never glass (S16).
   ===================================================================================== */

body.pd-app { margin: 0; min-height: 100svh; }
body.pd-app[data-tenant], body.pd-app[data-layout] {
  --pd-side-w: 0px;
  --pd-top-total: var(--pd-topbar-h);
  --pd-proto-h: 0px;
  --pd-sticky-top: calc(var(--pd-top-total) + var(--pd-proto-h));
  --pd-tabbar-total: 0px;
  padding-left: var(--pd-side-w);
  padding-top: var(--pd-sticky-top);
  padding-bottom: calc(var(--pd-tabbar-total) + var(--pd-actionbar-h, 0px));
}
body.pd-app[data-proto] { --pd-proto-h: 40px; }
body.pd-app[data-layout="auth"], body.pd-app[data-layout="public"] { --pd-top-total: 0px; }
@media (min-width: 1024px) { body.pd-app[data-layout="menu"], body.pd-app[data-tenant="backoffice"]:not([data-layout="auth"]) { --pd-side-w: var(--pd-sidebar-w); } }
@media (min-width: 768px) and (max-width: 1023px) { body.pd-app[data-layout="menu"], body.pd-app[data-tenant="backoffice"]:not([data-layout="auth"]) { --pd-side-w: var(--pd-rail-w); } }
@media (max-width: 767px) {
  body.pd-app[data-layout="menu"], body.pd-app[data-layout="pieces"] { --pd-top-total: var(--pd-topbar-h-phone); --pd-tabbar-total: calc(var(--pd-tabbar-h) + env(safe-area-inset-bottom)); }
  body.pd-app[data-tenant="backoffice"]:not([data-layout="auth"]) { --pd-top-total: var(--pd-topbar-h-phone); }
}
/* the dark chrome is reserved before the script runs: no flash, no shift */
body.pd-app:not(.pd-ready)[data-layout="menu"]::before, body.pd-app:not(.pd-ready)[data-tenant="backoffice"]::before {
  content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: var(--pd-side-w); background: var(--app-chrome-bg); z-index: var(--pd-z-sticky);
}
body.pd-app:not(.pd-ready)[data-layout="menu"]::after, body.pd-app:not(.pd-ready)[data-layout="pieces"]::after, body.pd-app:not(.pd-ready)[data-tenant="backoffice"]::after {
  content: ""; position: fixed; left: var(--pd-side-w); right: 0; top: var(--pd-proto-h); height: var(--pd-top-total); background: var(--app-bar); box-shadow: inset 0 -1px 0 var(--app-line); z-index: var(--pd-z-sticky);
}

/* skip link: before the menu (6.8) */
.pd-skip { position: fixed; left: var(--pd-s-2); top: var(--pd-s-1); z-index: var(--pd-z-skip); transform: translateY(-150%); }
.pd-skip:focus-visible { transform: none; }

/* the prototype banner sits above everything, full width */
body > .pd-proto { position: fixed; left: 0; right: 0; top: 0; height: 40px; z-index: calc(var(--pd-z-sticky) + 2); }

/* ---------- side menu (6.2) ---------- */
.pd-side {
  position: fixed; left: 0; top: var(--pd-proto-h); bottom: 0; width: var(--pd-side-w); z-index: var(--pd-z-sticky);
  display: flex; flex-direction: column; background: var(--app-chrome-bg); color: var(--app-chrome-text);
  --pd-hover-here: var(--app-chrome-hover);
}
.pd-app[data-theme="dark"] .pd-side { box-shadow: inset -1px 0 0 var(--app-line); }
.pd-side :focus-visible { outline-color: var(--pd-focus-chrome, var(--app-chrome-text)); box-shadow: 0 0 0 2px var(--app-chrome-bg); }
.pd-side__tenant { display: flex; align-items: center; gap: var(--pd-s-15); height: 72px; margin: var(--pd-s-1) var(--pd-s-15) var(--pd-s-05); padding: 0 var(--pd-s-15) 0 var(--pd-s-15); border-radius: var(--pd-r-2); flex: none; min-width: 0; transition: background-color var(--pd-dur-2) var(--pd-ease-out); }
.pd-side__tenant-t { flex: 1; min-width: 0; }
.pd-side__tenant-t b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--app-chrome-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 15, not 16: « Net Léman Services » keeps one line in the 256 menu */
.pd-side__tenant-t span { display: block; font: 400 12px/18px var(--pd-font-mono); color: var(--app-chrome-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-side__tenant > .pd-ic { width: 16px; height: 16px; color: var(--app-chrome-text-2); }
.pd-side__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pd-s-15) var(--pd-s-15); scrollbar-width: thin; scrollbar-color: var(--app-chrome-active) transparent; }
.pd-side__group { display: flex; align-items: center; height: 32px; margin-top: var(--pd-s-1); padding: 0 var(--pd-s-15); font: 600 var(--pd-app-meta-size)/var(--pd-app-meta-lh) var(--pd-font-text); color: var(--app-chrome-text-2); white-space: nowrap; }
.pd-side__foot { flex: none; padding: var(--pd-s-1) var(--pd-s-15) var(--pd-s-15); border-top: 1px solid var(--app-chrome-line); }
.pd-entry {
  display: flex; align-items: center; gap: var(--pd-s-15); height: 44px; padding: 0 var(--pd-s-15); border-radius: var(--pd-r-2);
  font-size: var(--pd-app-body-size); line-height: var(--pd-app-body-lh); color: var(--app-chrome-text); white-space: nowrap; min-width: 0;
  transition: background-color var(--pd-dur-2) var(--pd-ease-out);
}
.pd-entry > .pd-ic { color: var(--app-chrome-text-2); }
.pd-entry > .pd-entry__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pd-entry[aria-current="page"] { background: var(--app-chrome-active); box-shadow: inset 0 1px 0 var(--app-chrome-hi); color: var(--app-chrome-active-text); font-weight: 600; }
.pd-entry[aria-current="page"] > .pd-ic { color: var(--app-chrome-active-text); }
.pd-entry__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--app-r-chip); background: var(--app-chrome-count-bg); color: var(--app-chrome-count-text); font: 600 var(--pd-app-count-size)/var(--pd-app-count-lh) var(--pd-font-text); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pd-entry:not([aria-current="page"]):hover, .pd-side__tenant:hover { background: var(--app-chrome-hover); } .pd-entry:not([aria-current="page"]):hover > .pd-ic { color: var(--app-chrome-text); } }
.pd-entry.is-hover { background: var(--app-chrome-hover); }

/* rail of icons, 768 to 1023 (shell.js sets .is-rail from the width; the kit sets it by hand) */
.pd-side.is-rail .pd-side__tenant { justify-content: center; height: 64px; margin: var(--pd-s-1) var(--pd-s-1) var(--pd-s-05); padding: 0; }
.pd-side.is-rail .pd-side__tenant-t, .pd-side.is-rail .pd-side__tenant > .pd-ic { display: none; }
.pd-side.is-rail .pd-side__scroll { padding: 0 var(--pd-s-1) var(--pd-s-1); scrollbar-width: none; }
.pd-side.is-rail .pd-side__group { height: var(--pd-s-1); margin: 0; padding: 0; font-size: 0; }
.pd-side.is-rail .pd-side__foot { padding: var(--pd-s-1); }
.pd-side.is-rail .pd-entry { justify-content: center; width: 48px; padding: 0; position: relative; }
.pd-side.is-rail .pd-entry > .pd-entry__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pd-side.is-rail .pd-entry__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; }
@media (max-width: 767px) { body > .pd-side { display: none; } }

/* ---------- top bar (6.3) ---------- */
.pd-top {
  position: fixed; left: var(--pd-side-w); right: 0; top: var(--pd-proto-h); height: var(--pd-top-total); z-index: var(--pd-z-sticky);
  display: flex; align-items: center; gap: var(--pd-s-15); padding: 0 var(--pd-s-2) 0 var(--pd-s-4);
  background: var(--app-bar); border-bottom: 1px solid var(--app-line);
}
.pd-top__home { display: flex; align-items: center; gap: var(--pd-s-15); height: 44px; padding: 0 var(--pd-s-1) 0 0; border-radius: var(--pd-r-2); flex: none; min-width: 0; font-weight: 600; font-size: var(--pd-app-body-size); line-height: var(--pd-app-body-lh); }
.pd-top__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-search {
  display: flex; align-items: center; gap: var(--pd-s-15); width: 360px; min-width: 0; flex: 0 1 360px; height: 44px; padding: 0 var(--pd-s-1) 0 var(--pd-s-15);
  border-radius: var(--pd-r-2); background: var(--app-surface-2); color: var(--app-text-3); font-size: var(--pd-app-body-size); line-height: var(--pd-app-body-lh); text-align: left;
  transition: background-color var(--pd-dur-2) var(--pd-ease-out);
}
.pd-search > .pd-ic { color: var(--app-text-2); }
.pd-search > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* hover steps the fill one tone; the words step to text-2 with it (meta grey is never on --app-selected) */
@media (hover: hover) { .pd-search:hover { background: var(--app-selected); color: var(--app-text-2); } }
.pd-top__end { margin-left: auto; display: flex; align-items: center; gap: var(--pd-s-05); flex: none; }
.pd-top .pd-btn--icon { position: relative; color: var(--app-text-2); }
.pd-badge { position: absolute; top: 4px; right: 3px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--pd-r-1); background: var(--app-solid); color: var(--app-on-solid); font: 600 var(--pd-app-count-size)/var(--pd-app-count-lh) var(--pd-font-text); font-variant-numeric: tabular-nums; pointer-events: none; }
.pd-me { display: flex; align-items: center; gap: var(--pd-s-15); height: 44px; padding: 0 var(--pd-s-1) 0 var(--pd-s-05); margin-left: var(--pd-s-05); border-radius: var(--pd-r-2); text-align: left; transition: background-color var(--pd-dur-2) var(--pd-ease-out); }
.pd-me__t b { display: block; font: 600 var(--pd-app-label-size)/var(--pd-app-label-lh) var(--pd-font-text); white-space: nowrap; }
.pd-me__t span { display: block; font-size: var(--pd-app-meta-size); line-height: var(--pd-app-meta-lh); color: var(--app-text-3); white-space: nowrap; }
@media (hover: hover) { .pd-me:hover, .pd-top__home:hover { background: var(--app-hover); } }
.pd-me[aria-expanded="true"] { background: var(--app-selected); }
.pd-me[aria-expanded="true"] .pd-me__t span { color: var(--app-text-2); }
.pd-top__title { display: none; }
.pd-top .pd-show-phone { display: none; }
.pd-top.is-narrow { padding-left: var(--pd-s-3); }
.pd-top.is-narrow .pd-search { flex-basis: 300px; }
.pd-top.is-narrow .pd-me__t { display: none; }
.pd-top.is-narrow .pd-me { padding: 0 var(--pd-s-05); }
/* phone top bar: 48 high, square 28 and the screen's title at the left; search, bell, avatar 32 */
.pd-top.is-phone { padding: 0 var(--pd-s-05) 0 var(--pd-s-2); gap: var(--pd-s-1); }
.pd-top.is-phone .pd-top__name, .pd-top.is-phone .pd-search, .pd-top.is-phone .pd-hide-phone { display: none; }
.pd-top.is-phone .pd-show-phone { display: inline-flex; }
.pd-top.is-phone .pd-top__title { display: block; flex: 1; min-width: 0; font: 600 var(--pd-app-title-size)/var(--pd-app-title-lh) var(--pd-font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-top.is-phone .pd-top__home { padding: 0; height: 44px; width: 44px; margin-left: -8px; justify-content: center; }
.pd-top.is-phone .pd-top__end { gap: 0; }
.pd-top.is-phone .pd-me { margin-left: 0; padding: 0; width: 44px; justify-content: center; }
.pd-top.is-phone .pd-me .pd-av { width: 32px; height: 32px; font-size: var(--pd-app-initials-size, 14px); }
.pd-top.is-phone .pd-me__t { display: none; }

/* ---------- account menu (6.3) ---------- */
.pd-acct { width: 300px; padding: var(--pd-s-05) 0; }
.pd-acct .pd-opt { margin: 0 var(--pd-s-05); }
.pd-acct__theme { display: flex; align-items: center; justify-content: space-between; gap: var(--pd-s-15); padding: var(--pd-s-05) var(--pd-s-1) var(--pd-s-05) var(--pd-s-2); min-height: 52px; }
.pd-acct__theme > span { font-size: var(--pd-app-body-size); line-height: var(--pd-app-body-lh); }

/* ---------- phone tab bar per role (6.5) ---------- */
.pd-tabbar { display: none; }
@media (max-width: 767px) {
  .pd-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--pd-z-sticky);
    display: grid; grid-template-columns: repeat(5, minmax(64px, 1fr)); height: calc(var(--pd-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--app-bar); border-top: 1px solid var(--app-line);
  }
}
.pd-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; height: var(--pd-tabbar-h); font: 600 var(--pd-app-tab-size)/var(--pd-app-tab-lh) var(--pd-font-text); color: var(--app-text-2); -webkit-tap-highlight-color: transparent; }
.pd-tab__icon { display: grid; place-items: center; width: 48px; height: 28px; border-radius: var(--pd-r-2); transition: background-color var(--pd-dur-2) var(--pd-ease-out); }
.pd-tab__icon .pd-ic { width: 24px; height: 24px; }
.pd-tab[aria-current="page"] { color: var(--app-text); }
.pd-tab[aria-current="page"] .pd-tab__icon { background: var(--app-selected); }
.pd-tab:active .pd-tab__icon { background: var(--app-selected); }
.pd-tab:focus-visible { outline-offset: -2px; }

/* the « Plus » sheet: the other entries grouped as in the side menu, rows 52 */
.pd-plus .pd-opt { gap: var(--pd-s-15); }
.pd-plus .pd-opt[aria-current="page"] { background: var(--app-selected); font-weight: 600; }
.pd-plus .pd-entry__count { background: var(--app-solid); color: var(--app-on-solid); }

/* ---------- back office (9.4): our lockup in the dark top bar, sections at the left ---------- */
body[data-tenant="backoffice"] .pd-top { left: 0; padding-left: var(--pd-s-3); }
body[data-tenant="backoffice"] .pd-side { top: var(--pd-top-total); }
body[data-tenant="backoffice"] .pd-side__scroll { padding-top: var(--pd-s-15); }
.pd-bo-brand { display: flex; align-items: center; gap: var(--pd-s-15); height: 44px; flex: none; }
.pd-bo-brand img { height: 24px; width: auto; display: block; }
.pd-bo-brand span { font: 600 var(--pd-app-label-size)/20px var(--pd-font-text); color: var(--app-text-2); padding-left: var(--pd-s-05); }   /* no rule beside a label (10.1): space does it */
@media (min-width: 1024px) { body[data-tenant="backoffice"] .pd-bo-brand { width: calc(var(--pd-sidebar-w) - var(--pd-s-3)); } }
/* the person signed in (logiciel.md 5): an address, so PD Mono like the tenant's address; on phones it heads the sections sheet */
.pd-bo-user { font: 400 var(--pd-app-mono-size)/var(--pd-app-mono-lh) var(--pd-font-mono); color: var(--app-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-right: var(--pd-s-1); }
.pd-bo-user--sheet { display: block; margin: 0; padding: 0 var(--pd-s-1) var(--pd-s-15); }

/* ---------- public pages (9.3): the business's header, its accent, no menu ---------- */
.pd-pub-head { display: flex; align-items: center; gap: var(--pd-s-15); min-height: 72px; padding: var(--pd-s-15) var(--pd-pad); background: var(--app-surface); border-bottom: 1px solid var(--app-line); }
.pd-pub-head b { display: block; font: 600 var(--pd-app-title-size)/var(--pd-app-title-lh) var(--pd-font-text); }
.pd-pub-head b + span { display: block; font-size: var(--pd-app-meta-size); line-height: var(--pd-app-meta-lh); color: var(--app-text-3); }   /* the place, not the square's initials */

/* ---------- the install window and sheet (6.6) ---------- */
.pd-install { display: flex; flex-direction: column; align-items: center; gap: var(--pd-s-2); padding: var(--pd-s-1) 0 var(--pd-s-2); text-align: center; }
.pd-install__id { display: flex; align-items: center; gap: var(--pd-s-15); }
.pd-install__id b { font: 600 var(--pd-app-title-size)/var(--pd-app-title-lh) var(--pd-font-text); }
.pd-install__qr { width: 176px; height: 176px; }
.pd-install__qr svg { width: 100%; height: 100%; }
.pd-install p { max-width: 32ch; color: var(--app-text-2); }
.pd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pd-s-2); padding: var(--pd-s-1) 0 var(--pd-s-2); counter-reset: none; }
.pd-steps > li { display: flex; flex-direction: column; gap: var(--pd-s-1); min-width: 0; }
.pd-steps__n { display: flex; align-items: center; gap: var(--pd-s-1); color: var(--app-text); }
.pd-steps__n .pd-meta2 { font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-steps > li > p { font-size: var(--pd-app-body-size); line-height: var(--pd-app-body-lh); hyphens: manual; overflow-wrap: break-word; }

/* ---------- auth (S21): the canvas and a centred card ---------- */
body.pd-app[data-layout="auth"] { display: grid; place-items: center; min-height: 100svh; padding: var(--pd-s-5) var(--pd-s-2); }

/* the frame parts drawn inline in the kit and in the site's frames (not fixed). No stacking of their own: inside a
   site frame they stay under the site's sticky navigation while the page scrolls */
.pd-demo .pd-side, .pd-demo .pd-top, .pd-demo .pd-tabbar { position: relative; left: auto; right: auto; top: auto; bottom: auto; z-index: auto; }
.pd-demo .pd-side { width: 256px; height: 100%; }
.pd-demo .pd-top { --pd-top-total: 56px; height: 56px; }
.pd-demo .pd-tabbar { display: grid; grid-template-columns: repeat(5, minmax(64px, 1fr)); height: 56px; padding: 0; background: var(--app-surface); border-top: 1px solid var(--app-line); }
.pd-demo .pd-side.is-rail { width: 64px; }
.pd-demo .pd-top.is-phone { --pd-top-total: 48px; height: 48px; }

/* ---------- page switch (README 13) ---------- */
/* shell.js names the side menu, the top bar, the tab bar and the prototype banner inline (pd-side, pd-top, pd-tabs, pd-proto):
   through a switch their old picture stays and the new one fades in over it (tokens.css .pd-chrome), so they never move.
   A window, a sheet or a list that covers them on the screen that leaves fades away above them (pageswitch.js) */
/* the bar of a slow switch (tokens.css .pd-loadbar) runs along the top bar, never over the dark side menu, where ink by day
   would not show */
body.pd-app > .pd-loadbar { left: var(--pd-side-w, 0px); }

/* ---------- the premium pass (Youssef, 2026-10-27; tokens.css « THE PREMIUM PASS ») ----------
   The software's own pages only (body.pd-app; the kit's and the site's inline frames are .pd-demo: « THE FRAME ON THE
   SITE » at the end of this file draws them).
   The top bar and the phone tab bar are the window's material: translucent (--app-bar) with a blur and a lift of
   saturation where the browser has backdrop-filter, so a card that scrolls under them shows softly through; opaque
   (--app-surface) where it has not. Their words keep their floor over the darkest thing that can pass under them (slate
   on the bar over ink 11.3:1, fog at night over white paper 9.4:1): so the role under the name is slate here, not meta. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.pd-app > .pd-top, body.pd-app > .pd-tabbar { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
:where(body.pd-app) > .pd-top .pd-me__t span { color: var(--app-text-2); }
/* the side menu: its tenant card and entries are rounded like the controls; the current entry carries a top light */
:where(body.pd-app) .pd-side__tenant { border-radius: 10px; }
/* the bar of a slow switch runs along the bottom edge of the top bar, over its hairline */
body.pd-app > .pd-loadbar { top: calc(var(--pd-sticky-top, 0px) - 2px); }

/* =====================================================================================
   LIQUID « the real Liquid Glass » (DIRECTION-LIQUID.md 5): the frame floats, in glass. The software's own pages only
   (body.pd-app; the kit's and the site's inline frames are .pd-demo, drawn by « THE FRAME ON THE SITE » at the end of
   this file). The material itself (.pd-glass,
   its rim, ring, sheen, lens, tint, pointer light and gel) is app.css 18.2; here, the frame's geometry.
   - The side panel: smoked glass 10 px from the window's edges, radius 18; each entry on its app tile, the current one on
     a lens that glides to the next entry through a switch. Rows of 34 with a mouse (every entry of a laptop's menu in
     view), 44 on touch; the rail (768 to 1023) is the same slab, 64 wide.
   - The top area has no bar: the search and the cluster are two glass capsules of one height (44) at 10 from the top;
     a scroll edge forms under them as the page moves, the large title folds into the bar's title.
   - The phone: the business's tile and the cluster (52) at the top, the glass tab bar (62) at the foot, which shrinks
     to the circle of the current tab while the page goes down.
   ===================================================================================== */
body.pd-app[data-layout] { --pd-switch-bar: var(--app-sky); --pd-switch-pass: var(--app-glass-ring-lit); }
body.pd-app[data-tenant], body.pd-app[data-layout] { --pd-insp-w: 340px; }
@media (max-width: 767px) {
  body.pd-app[data-layout="menu"], body.pd-app[data-layout="pieces"] {
    --pd-top-total: calc(var(--pd-topbar-h-phone) + env(safe-area-inset-top));
    --pd-tabbar-total: calc(var(--pd-tabbar-h) + 8px + 16px + env(safe-area-inset-bottom));
  }
  body.pd-app:has(main .pd-actionbar) { --pd-actionbar-h: 70px; }
  body.pd-app[data-layout="menu"] > main.pd-main, body.pd-app[data-layout="pieces"] > main.pd-main { padding-top: 12px; }
}
/* the frame reserved before the script draws it: the floating panel's place, no bar */
body.pd-app:not(.pd-ready)[data-layout="menu"]::before, body.pd-app:not(.pd-ready)[data-tenant="backoffice"]::before {
  left: var(--app-frame-in); top: var(--app-frame-in); bottom: var(--app-frame-in); width: calc(var(--pd-side-w) - 2 * var(--app-frame-in)); border-radius: var(--app-r-side);
  background: linear-gradient(180deg, var(--app-smoke-top), var(--app-smoke-bot));
}
body.pd-app:not(.pd-ready)[data-layout="menu"]::after, body.pd-app:not(.pd-ready)[data-layout="pieces"]::after, body.pd-app:not(.pd-ready)[data-tenant="backoffice"]::after { background: none; box-shadow: none; }

/* ---------- 5.1 the side panel ---------- */
body.pd-app[data-layout] > .pd-side.pd-glass {
  left: var(--app-frame-in); top: calc(var(--pd-proto-h) + var(--app-frame-in)); bottom: var(--app-frame-in); width: calc(var(--pd-side-w) - 2 * var(--app-frame-in));
  z-index: calc(var(--pd-z-sticky) + 2); overflow: hidden; border-radius: var(--app-r-side); color: var(--app-chrome-text);
  box-shadow: var(--app-shadow-glass); --app-glass-hl: var(--app-chrome-hl);
}
body.pd-app[data-tenant="backoffice"][data-layout] > .pd-side.pd-glass { top: calc(var(--pd-top-total) + 4px); }
body.pd-app > .pd-side.pd-glass :focus-visible { outline: 2px solid var(--app-chrome-signal); outline-offset: -2px; box-shadow: 0 0 0 6px var(--app-chrome-focus-glow); }
/* the tenant: a 44 button, radius 10 (the panel's 18 minus its 8), its square 32 in the tenant's gradient */
body.pd-app > .pd-side.pd-glass .pd-side__tenant { height: 44px; margin: 8px 8px 4px; padding: 0 6px; gap: 10px; border-radius: var(--app-r-lens); position: relative; z-index: 1; }
body.pd-app > .pd-side.pd-glass .pd-side__tenant .pd-sq { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; letter-spacing: 0.01em;
  background: var(--app-tile-gloss), linear-gradient(180deg, color-mix(in oklab, var(--app-accent) 72%, var(--pd-white)), var(--app-accent));
  box-shadow: var(--app-tile-light), var(--app-tenant-ring), var(--app-tile-contact); }
body.pd-app > .pd-side.pd-glass .pd-side__tenant .pd-sq.is-ink { background: var(--app-tile-gloss), linear-gradient(180deg, var(--app-stone-top), var(--app-stone)); }
body.pd-app > .pd-side.pd-glass .pd-side__tenant-t b { font: 600 var(--pd-app-side-size)/19px var(--pd-font-text); color: var(--app-chrome-text); }
body.pd-app > .pd-side.pd-glass .pd-side__tenant-t span { font: 400 11.5px/16px var(--pd-font-mono); color: var(--app-chrome-text-2); }
body.pd-app > .pd-side.pd-glass .pd-side__tenant > .pd-ic { color: var(--app-chrome-icon); }
@media (hover: hover) { body.pd-app > .pd-side.pd-glass .pd-side__tenant:hover { background: var(--app-chrome-hover); } }
/* the scroller and its group labels: 26 tall, the words on the foot of an 18 band, 8 above */
body.pd-app > .pd-side.pd-glass .pd-side__scroll { position: relative; padding: 0 8px 4px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
@media (hover: hover) { body.pd-app > .pd-side.pd-glass .pd-side__scroll:hover { scrollbar-color: var(--app-chrome-thumb) transparent; } }
body.pd-app > .pd-side.pd-glass .pd-side__group { height: 18px; margin: 8px 0 0; padding: 0 0 0 12px; align-items: flex-end; font: 600 12px/16px var(--pd-font-text); letter-spacing: 0.02em; color: var(--app-chrome-text-2); }
body.pd-app > .pd-side.pd-glass .pd-side__foot { position: relative; padding: 4px 8px 6px; border-top: 0; }
body.pd-app > .pd-side.pd-glass .pd-side__foot::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: var(--app-hair); background: var(--app-chrome-line); }
/* an entry: a 34 pitch with a mouse; its light 32 tall (1 px inside), radius 10; its tile 24 at 4 px from the light's
   top, bottom and left edges, so tile and light are concentric */
body.pd-app > .pd-side.pd-glass .pd-entry {
  position: relative; z-index: 1; height: 34px; gap: 10px; padding: 0 12px 0 4px; border-radius: var(--app-r-lens); background: none; box-shadow: none;
  font: 500 var(--pd-app-side-size)/20px var(--pd-font-text); color: var(--app-chrome-text); transition: none;
}
body.pd-app > .pd-side.pd-glass .pd-entry::before { content: ""; position: absolute; inset: 1px 0; z-index: -1; border-radius: var(--app-r-lens); background: transparent; transition: background-color var(--app-dur-micro) linear; pointer-events: none; }
@media (hover: hover) { body.pd-app > .pd-side.pd-glass .pd-entry:not([aria-current="page"]):hover { background: none; } body.pd-app > .pd-side.pd-glass .pd-entry:not([aria-current="page"]):hover::before { background: var(--app-chrome-hover); } }
body.pd-app > .pd-side.pd-glass .pd-entry:active:not([aria-current="page"])::before { background: var(--app-chrome-active); }
body.pd-app > .pd-side.pd-glass .pd-entry[aria-current="page"] { font-weight: 600; color: var(--app-chrome-active-text); background: none; box-shadow: none; }
body.pd-app > .pd-side.pd-glass .pd-entry > .pd-tile { --tile: 24px; border-radius: 6px; }
body.pd-app > .pd-side.pd-glass .pd-entry > .pd-tile > .pd-ic { width: 14px; height: 14px; }
body.pd-app > .pd-side.pd-glass .pd-entry[aria-current="page"] > .pd-tile { box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-moat), var(--app-tile-lift); }
/* the count: a plain number at the trailing edge, so the tiles are the only colour on the panel (Mail, Tahoe) */
body.pd-app > .pd-side.pd-glass .pd-entry__count { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--app-chrome-text-2); font: 600 12.5px/16px var(--pd-font-text); font-variant-numeric: tabular-nums; }
body.pd-app > .pd-side.pd-glass .pd-entry[aria-current="page"] .pd-entry__count { color: var(--app-chrome-active-text); }
/* the lens: one light under the current entry (shell.js places it), concentric with the panel; it glides through a switch */
.pd-side__lens { display: none; }
body.pd-app > .pd-side.pd-glass.has-lens .pd-side__lens {
  display: block; position: absolute; z-index: 0; left: 8px; right: 8px; top: 0; height: 32px; border-radius: var(--app-r-lens); pointer-events: none;
  translate: 0 var(--lens-y, 0px); transform: none; background: var(--app-chrome-active);
  box-shadow: var(--app-lens-light);
}
body.pd-app > .pd-side.pd-glass.has-lens .pd-side__lens::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--app-chrome-ring); opacity: 0.5; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
body.pd-app > .pd-side.pd-glass.has-lens .pd-side__lens.is-gone { display: none; }
/* a slow switch (the bar shown): the lens moves in the live page, on the glide, and the capture continues from there */
body.pd-app > .pd-side.pd-glass.has-lens .pd-side__lens.is-gliding { transition: translate var(--app-dur-lens) var(--app-glide); }
/* touch (a tablet in landscape, a touch laptop): rows of 44, the light 40, its tile 28 at 6 px; the panel radius 21 */
@media (pointer: coarse) {
  body.pd-app[data-layout] > .pd-side.pd-glass { --app-r-side: 21px; --app-r-lens: 13px; }
  body.pd-app > .pd-side.pd-glass .pd-entry { height: 44px; gap: 12px; padding-left: 4px; font-size: 15px; }
  body.pd-app > .pd-side.pd-glass .pd-entry::before { inset: 2px 0; }
  body.pd-app > .pd-side.pd-glass .pd-entry > .pd-tile { --tile: 28px; border-radius: 7px; margin-left: 2px; }
  body.pd-app > .pd-side.pd-glass .pd-entry > .pd-tile > .pd-ic { width: 16px; height: 16px; }
  body.pd-app > .pd-side.pd-glass.has-lens .pd-side__lens { height: 40px; }
}
/* the menu fades over 28 px at an edge where more entries wait beyond it (shell.js placeLens) */
body.pd-app > .pd-side.pd-glass .pd-side__scroll.is-more-down { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
body.pd-app > .pd-side.pd-glass .pd-side__scroll.is-more-up.is-more-down { -webkit-mask-image: linear-gradient(180deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
body.pd-app > .pd-side.pd-glass .pd-side__scroll.is-more-up:not(.is-more-down) { -webkit-mask-image: linear-gradient(180deg, transparent, #000 28px); mask-image: linear-gradient(180deg, transparent, #000 28px); }

/* ---------- 5.2 the rail (768 to 1023): the same slab, 64 wide; a 40 x 48 light around a 28 tile ---------- */
body.pd-app[data-layout] > .pd-side.pd-glass.is-rail { --app-r-side: 21px; --app-r-lens: 13px; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-side__tenant { justify-content: center; height: 48px; margin: 8px 8px 4px; padding: 0; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-side__tenant .pd-sq { width: 36px; height: 36px; border-radius: 8px; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-side__scroll { padding: 0 8px 4px; scrollbar-width: none; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-side__group { height: 8px; margin: 0; padding: 0; font-size: 0; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-side__foot { padding: 4px 8px 6px; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-entry { width: 48px; height: 44px; padding: 0; justify-content: center; gap: 0; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-entry::before { inset: 2px 0; border-radius: 13px; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-entry > .pd-tile { --tile: 28px; border-radius: 7px; margin: 0; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-entry > .pd-tile > .pd-ic { width: 16px; height: 16px; }
body.pd-app > .pd-side.pd-glass.is-rail .pd-entry__count {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--app-r-capsule);
  background: var(--app-chrome-text-2); color: var(--pd-ink); font: 700 11px/16px var(--pd-font-text); box-shadow: 0 0 0 2px var(--app-smoke-top);
}
body.pd-app > .pd-side.pd-glass.is-rail .pd-entry[aria-current="page"] .pd-entry__count { color: var(--pd-ink); }   /* the current entry's white would sit on the light capsule (1.54:1; _requests/G1.md R5, G2.md R2, G5.md R1) */
body.pd-app > .pd-side.pd-glass.is-rail.has-lens .pd-side__lens { left: 8px; right: auto; width: 48px; height: 40px; border-radius: 13px; }

/* ---------- 5.3 the top area: no bar; the search and the cluster, two glass capsules of one height ---------- */
body.pd-app > .pd-top {
  left: var(--pd-side-w); right: 0; top: var(--pd-proto-h); height: var(--pd-topbar-h); z-index: var(--pd-z-sticky);
  display: flex; align-items: flex-start; gap: 12px; padding: var(--app-frame-in) var(--pd-pad) 0; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
}
body.pd-app > .pd-top > * { pointer-events: auto; }
body.pd-app > .pd-top::before { content: none; }
body.pd-app > .pd-top .pd-search {
  flex: 0 1 320px; width: 320px; height: 44px; gap: 10px; padding: 0 8px 0 14px; border-radius: var(--app-r-capsule);
  color: var(--app-text-2); font: 400 15px/20px var(--pd-font-text); --app-glass-rimw: 3px;
  background: var(--app-glass-body);   /* the glass, over the base search's fill (shell.css loads after app.css) */
}
body.pd-app > .pd-top .pd-search > .pd-ic { width: 18px; height: 18px; color: var(--app-text-2); }
body.pd-app > .pd-top .pd-search > .pd-search__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pd-app > .pd-top .pd-search__keys { display: inline-flex; gap: 3px; flex: none; }
body.pd-app > .pd-top .pd-search .pd-kbd { height: 22px; min-width: 22px; padding: 0 6px; justify-content: center; border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 var(--app-hair) var(--app-kbd-ring); font: 500 11.5px/22px var(--pd-font-mono); color: var(--app-text-2); }
@media (hover: hover) { body.pd-app > .pd-top .pd-search:hover { color: var(--app-text); } }
/* the cluster: the layout switch and the bell as 36 circles, the account as a 36 capsule, 4 inside a 44 capsule */
body.pd-app > .pd-top .pd-cluster { margin-left: auto; height: 44px; padding: 4px; gap: 2px; display: flex; align-items: center; border-radius: var(--app-r-capsule); --app-glass-rimw: 3px; }
body.pd-app > .pd-top .pd-cluster > .pd-btn--icon { width: 36px; height: 36px; min-width: 36px; border-radius: var(--app-r-capsule); color: var(--app-text-2); position: relative; }
body.pd-app > .pd-top .pd-cluster > .pd-btn--icon > .pd-ic { width: 20px; height: 20px; }
@media (hover: hover) { body.pd-app > .pd-top .pd-cluster > :is(.pd-btn--icon, .pd-me):hover { background: var(--app-tint); color: var(--app-text); } }
body.pd-app > .pd-top .pd-cluster > :is(.pd-btn--icon, .pd-me)[aria-expanded="true"] { background: var(--app-tint-press); color: var(--app-text); }
body.pd-app > .pd-top .pd-me { height: 36px; gap: 8px; margin: 0; padding: 0 12px 0 3px; border-radius: var(--app-r-capsule); position: relative; }
body.pd-app > .pd-top .pd-me .pd-av { width: 30px; height: 30px; font-size: 12px; }
body.pd-app > .pd-top .pd-me__t b { font: 600 14px/18px var(--pd-font-text); }
body.pd-app > .pd-top .pd-me__t span { font: 400 12.5px/16px var(--pd-font-text); color: var(--app-text-2); }
body.pd-app > .pd-top .pd-badge {
  top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--app-r-capsule);
  background: var(--app-badge-bg); color: var(--app-on-badge); font: 700 11px/18px var(--pd-font-text); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--app-glass-solid);
}
/* touch (a tablet): the controls of the top area take 44 targets, the capsules 52 (one height on the row) */
@media (pointer: coarse) and (min-width: 768px) {
  body.pd-app > .pd-top .pd-search { height: 52px; }
  body.pd-app > .pd-top .pd-cluster { height: 52px; }
  body.pd-app > .pd-top .pd-cluster > .pd-btn--icon { width: 44px; height: 44px; min-width: 44px; }
  body.pd-app > .pd-top .pd-me { height: 44px; }
}
/* the screen's name in the bar, arriving as the large title folds (--fold, shell.js). It centres over the content
   column whenever its words clear both capsules by 12 px (shell.js sets --pd-title-dx); else in the free space between
   the search and the cluster (with the inspector shown, the content column's centre can lie under the search), never
   under either */
body.pd-app > .pd-top:not(.is-phone) .pd-search { order: 1; }
body.pd-app > .pd-top:not(.is-phone) .pd-cluster { order: 3; margin-left: 0; }
body.pd-app > .pd-top:not(.is-phone) .pd-top__home { order: 0; }
body.pd-app > .pd-top .pd-top__title {
  display: block; order: 2; flex: 1 1 0; min-width: 0; height: 44px; margin: 0; padding: 0 12px; translate: var(--pd-title-dx, 0px) calc((1 - var(--fold, 0)) * 4px); transform: none;
  font: 600 var(--pd-app-bar-size)/44px var(--pd-font-text); color: var(--app-text); text-align: center;
  opacity: clamp(0, (var(--fold, 0) - 0.6) * 2.5, 1); pointer-events: none; transition: none;
}
/* the large title folds into the bar: it fades and shrinks 4 % from its bottom left as it goes under the controls */
:where(body.pd-app[data-layout="menu"], body.pd-app[data-layout="pieces"]) > main .pd-h1 { transform-origin: left bottom; opacity: calc(1 - var(--fold, 0) * 1.25); scale: calc(1 - var(--fold, 0) * 0.04); }
@media (prefers-reduced-motion: reduce) {
  :where(body.pd-app[data-layout="menu"], body.pd-app[data-layout="pieces"]) > main .pd-h1 { scale: none; }
  body.pd-app > .pd-top .pd-top__title { translate: var(--pd-title-dx, 0px) 0; }
}
/* the screen of pieces (S02) and the tablet: the business's square at the left of the top area */
body.pd-app > .pd-top:not(.is-phone) .pd-top__home { height: 44px; gap: 10px; padding: 0 14px 0 0; border-radius: var(--app-r-capsule); }
body.pd-app > .pd-top:not(.is-phone) .pd-top__home .pd-sq { width: 44px; height: 44px; border-radius: 10px; }
body.pd-app > .pd-top.is-narrow { padding-left: 24px; padding-right: 24px; }
body.pd-app > .pd-top.is-narrow .pd-search { flex-basis: 280px; }
body.pd-app > .pd-top.is-narrow .pd-me__t { display: none; }
body.pd-app > .pd-top.is-narrow .pd-me { width: 36px; padding: 0; justify-content: center; }
@media (pointer: coarse) { body.pd-app > .pd-top.is-narrow .pd-me { width: 44px; min-width: 44px; } }   /* a touch tablet's 44 target, as its neighbours (D24; _requests/G1.md R15) */
/* the business's square: an app icon in the tenant's gradient (Lambert: the stone) */
body.pd-app > .pd-top .pd-top__home .pd-sq { background: var(--app-tile-gloss), linear-gradient(180deg, color-mix(in oklab, var(--app-accent) 72%, var(--pd-white)), var(--app-accent)); box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-contact); color: var(--app-on-accent); }
body.pd-app > .pd-top .pd-top__home .pd-sq.is-ink { background: var(--app-tile-gloss), linear-gradient(180deg, var(--app-stone-top), var(--app-stone)); }

/* ---------- 5.4 the phone's navigation: the business's tile at the left, the cluster at the right, 52 tall ---------- */
body.pd-app > .pd-top.is-phone {
  left: 0; right: 0; top: var(--pd-proto-h); height: var(--pd-top-total); gap: 12px;
  padding: calc(env(safe-area-inset-top) + 6px) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
body.pd-app > .pd-top.is-phone .pd-top__home { width: 52px; height: 52px; margin: 0; padding: 0; flex: none; justify-content: center; border-radius: 13px; }
body.pd-app > .pd-top.is-phone .pd-top__home .pd-sq { width: 52px; height: 52px; border-radius: 13px; font-size: 17px; }
body.pd-app > .pd-top.is-phone .pd-cluster { height: 52px; padding: 4px; gap: 0; --app-glass-rimw: 3px; }
body.pd-app > .pd-top.is-phone .pd-cluster > .pd-btn--icon { width: 44px; height: 44px; min-width: 44px; }
body.pd-app > .pd-top.is-phone .pd-cluster > .pd-btn--icon > .pd-ic { width: 22px; height: 22px; }
body.pd-app > .pd-top.is-phone .pd-me { width: 44px; height: 44px; padding: 0; justify-content: center; }
body.pd-app > .pd-top.is-phone .pd-me .pd-av { width: 34px; height: 34px; font-size: 13px; }
body.pd-app > .pd-top.is-phone .pd-badge { top: 4px; right: 3px; }
/* folded, the screen's name centres between the tile and the cluster */
body.pd-app > .pd-top.is-phone .pd-top__title {
  position: absolute; padding: 0; left: calc(max(16px, env(safe-area-inset-left)) + 64px); right: calc(max(16px, env(safe-area-inset-right)) + 164px); top: calc(env(safe-area-inset-top) + 6px);
  height: 52px; max-width: none; translate: 0 calc((1 - var(--fold, 0)) * 4px); font-size: var(--pd-app-bar-size); line-height: 52px;
}
@media (prefers-reduced-motion: reduce) { body.pd-app > .pd-top.is-phone .pd-top__title { translate: none; } }

/* ---------- the scroll edges: a fill and a progressive blur under the floating bars, shown as the page moves ---------- */
body.pd-app > .pd-edge { position: fixed; z-index: calc(var(--pd-z-sticky) - 1); pointer-events: none; }
body.pd-app > .pd-edge > i { position: absolute; inset: 0; display: block; }
body.pd-app > .pd-edge--top {
  left: var(--pd-side-w); right: var(--pd-insp-edge, 0px); top: var(--pd-proto-h); height: 88px; opacity: var(--pd-scrolled, 0);
  background: linear-gradient(180deg, var(--app-edge-top) 0, var(--app-edge-title) 32px, var(--app-edge-foot) 54px, var(--app-edge-none) 78px);
}
/* the progressive blur, anchored to the controls' foot (--edge-foot): strong down to it, then fading over 24 px, so what
   scrolls under the controls is never legible beside them */
body.pd-app > .pd-edge--top { --edge-foot: 54px; }
body.pd-app > .pd-edge--top > i:first-child { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--edge-foot) - 6px), transparent calc(var(--edge-foot) + 14px)); mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--edge-foot) - 6px), transparent calc(var(--edge-foot) + 14px)); }
body.pd-app > .pd-edge--top > i:last-child { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--edge-foot) + 6px), transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--edge-foot) + 6px), transparent 100%); }
@media (max-width: 767px) {
  body.pd-app > .pd-edge--top { --edge-foot: calc(env(safe-area-inset-top) + 58px); left: 0; right: 0; height: calc(var(--pd-top-total) + 24px);
    background: linear-gradient(180deg, var(--app-edge-top) 0, var(--app-edge-title) calc(env(safe-area-inset-top) + 32px), var(--app-edge-foot) calc(env(safe-area-inset-top) + 58px), var(--app-edge-none) 100%); }
}
body.pd-app > .pd-edge--bottom {
  left: 0; right: 0; bottom: 0; height: calc(var(--pd-tabbar-h) + 8px + 32px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--app-edge-none) 0, var(--app-edge-label) 76px, var(--app-edge-floor) 100%);
}
body.pd-app > .pd-edge--bottom > i:first-child { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(0deg, #000 0, #000 30%, transparent 70%); mask-image: linear-gradient(0deg, #000 0, #000 30%, transparent 70%); }
body.pd-app > .pd-edge--bottom > i:last-child { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(0deg, #000 0, #000 50%, transparent 95%); mask-image: linear-gradient(0deg, #000 0, #000 50%, transparent 95%); }
html.pd-noblur body.pd-app > .pd-edge > i, html.pd-solid body.pd-app > .pd-edge > i { display: none; }
/* where no blur is drawn, the top edge holds at 0.97 down to the controls' foot, then fades over 24 px: at 0.93 and 0.80
   a dark line under the folded title still read at 1.2 to 1.4:1 (L19; integration, _requests/G1.md R12, G3.md 16,
   G5.md R14) */
html:is(.pd-noblur, .pd-solid) body.pd-app > .pd-edge--top { background: linear-gradient(180deg, var(--app-edge-hold) 0, var(--app-edge-hold) var(--edge-foot), var(--app-edge-none) calc(var(--edge-foot) + 24px)); }
@media (prefers-reduced-transparency: reduce) { body.pd-app > .pd-edge--top { background: linear-gradient(180deg, var(--app-edge-hold) 0, var(--app-edge-hold) var(--edge-foot), var(--app-edge-none) calc(var(--edge-foot) + 24px)); } }
/* a phone's floating bar above the tab bar (an action bar, a column's toolbar): the bottom edge starts 32 px above it and
   holds its floor from the bar's middle down, so nothing reads in the 10 px between the two bars; where no blur is drawn
   the fill is laid twice (0.94 at the bar's top, 0.99 below: the gap measured 1.007 to 1.017 against the bars alone;
   integration, _requests/G1.md R11, G3.md 17, G4.md 23) */
@media (max-width: 767px) {
  body.pd-app:has(main :is(.pd-actionbar.pd-glass, .pd-toolbar.pd-glass:not(.pd-toolbar--inline))) > .pd-edge--bottom {
    height: calc(var(--pd-tabbar-h) + 8px + var(--pd-actionbar-h, 70px) + 32px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, var(--app-edge-none) 0, var(--app-edge-label) 32px, var(--app-edge-floor) 62px, var(--app-edge-floor) 100%);
  }
  html:is(.pd-noblur, .pd-solid) body.pd-app:has(main :is(.pd-actionbar.pd-glass, .pd-toolbar.pd-glass:not(.pd-toolbar--inline))) > .pd-edge--bottom {
    background: linear-gradient(180deg, var(--app-edge-none) 0, var(--app-edge-label) 32px, var(--app-edge-floor) 62px, var(--app-edge-floor) 100%), linear-gradient(180deg, var(--app-edge-none) 0, var(--app-edge-label) 32px, var(--app-edge-floor) 62px, var(--app-edge-floor) 100%);
  }
}
@media (prefers-reduced-transparency: reduce) { body.pd-app > .pd-edge > i { display: none; } }

/* ---------- 5.5 the phone's tab bar: a glass capsule of five tabs, a lens, and the circle it shrinks to ---------- */
@media (max-width: 767px) {
  body.pd-app > .pd-tabbar.pd-glass {
    display: block; left: 12px; right: auto; width: calc(100% - 24px); bottom: calc(8px + env(safe-area-inset-bottom)); height: var(--pd-tabbar-h);
    padding: 4px; border: 0; border-radius: 31px; overflow: hidden; --app-glass-rimw: 4px; background: var(--app-glass-body);
    transition: width var(--app-dur-tabs-min) var(--app-ease-mac), background-color var(--app-dur-tint) linear;
  }
  body.pd-app > .pd-tabbar .pd-tabbar__in { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: var(--pd-tabs-w, 100%); height: 54px; }
  body.pd-app > .pd-tabbar .pd-tab {
    position: relative; z-index: 1; min-width: 44px; height: 54px; gap: 2px; padding: 0; border-radius: 27px; color: var(--app-text-2);
    font: 600 var(--pd-app-tab-size)/var(--pd-app-tab-lh) var(--pd-font-text);
    transition: opacity var(--app-dur-tabs-min) var(--app-ease-mac), translate var(--app-dur-tabs-min) var(--app-ease-mac), scale var(--app-dur-release) var(--app-spring), color var(--app-dur-tint) linear;
  }
  body.pd-app > .pd-tabbar .pd-tab__icon { width: auto; height: 24px; background: none; }
  body.pd-app > .pd-tabbar .pd-tab__icon .pd-ic { width: 24px; height: 24px; transition: color var(--app-dur-tint) linear; }
  body.pd-app > .pd-tabbar .pd-tab__label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity var(--app-dur-tabs-min) var(--app-ease-mac); }
  body.pd-app > .pd-tabbar .pd-tab:active .pd-tab__icon { background: none; }
  body.pd-app > .pd-tabbar .pd-tab[aria-current="page"] { color: var(--app-text); }
  body.pd-app > .pd-tabbar .pd-tab[aria-current="page"] .pd-ic { color: var(--app-sky); }
  body.pd-app > .pd-tabbar .pd-tab:focus-visible { outline-offset: -3px; }
  /* the lens: 54 tall, radius 27, concentric with the bar's 31 at 4 px */
  body.pd-app > .pd-tabbar .pd-tabbar__lens {
    display: block; position: absolute; z-index: 0; top: 0; height: 54px; left: calc(var(--i, 0) * 100% / 5); width: calc(100% / 5);
    border-radius: 27px; background: var(--app-tab-lens); pointer-events: none; transition: opacity var(--app-dur-tabs-min) var(--app-ease-mac);
  }
  body.pd-app > .pd-tabbar .pd-tabbar__lens::after {
    content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--app-glass-ring); opacity: 0.5;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  body.pd-app > .pd-tabbar .pd-tabbar__lens.is-gone { display: none; }
  body.pd-app > .pd-tabbar .pd-tabbar__lens.is-gliding { transition: left var(--app-dur-lens) var(--app-glide); }
  /* minimised: the material shrinks to a 62 circle at the leading end holding the current tab's icon */
  html.pd-tabs-min body.pd-app > .pd-tabbar.pd-glass { width: var(--pd-tabbar-h); }
  html.pd-tabs-min body.pd-app > .pd-tabbar .pd-tab:not([aria-current="page"]) { opacity: 0; scale: 0.92; pointer-events: none; }
  html.pd-tabs-min body.pd-app > .pd-tabbar .pd-tab[aria-current="page"] { translate: var(--min-x, 0px) var(--min-y, 0px); }
  html.pd-tabs-min body.pd-app > .pd-tabbar .pd-tab[aria-current="page"] .pd-tab__label { opacity: 0; }
  html.pd-tabs-min body.pd-app > .pd-tabbar .pd-tabbar__lens { opacity: 0; }
  /* a phone action bar floats 10 px above the tab bar */
  body.pd-app main .pd-actionbar.pd-glass {
    position: fixed; left: 12px; right: 12px; bottom: calc(var(--pd-tabbar-h) + 8px + 10px + env(safe-area-inset-bottom)); z-index: var(--pd-z-sticky);
    height: 60px; padding: 8px; gap: 8px; border: 0; border-radius: 30px; --app-glass-rimw: 4px;
  }
  body.pd-app:not(:has(> .pd-tabbar)) main .pd-actionbar.pd-glass { bottom: calc(10px + env(safe-area-inset-bottom)); }
}
.pd-tabbar__lens { display: none; }
@media (max-width: 767px) { body.pd-app > .pd-tabbar .pd-tabbar__lens { display: block; } }
/* the « Plus » sheet: rows 52, each on its entry's 30 tile, the label 17, the count a plain number, a chevron */
body.pd-app .pd-plus .pd-opt, body.pd-app .pd-bo-sections .pd-opt { min-height: 52px; gap: 14px; padding: 11px 10px; font-size: 17px; line-height: 22px; }
body.pd-app .pd-plus .pd-opt > .pd-ic:first-child, body.pd-app .pd-bo-sections .pd-opt > .pd-ic:first-child {
  box-sizing: border-box; width: 30px; height: 30px; padding: 6px; border-radius: 7.5px; color: var(--app-on-tile); flex: none;
  background: var(--app-tile-gloss), linear-gradient(180deg, var(--t1, var(--app-tile-slate)), var(--t2, var(--app-tile-slate-2)));
  box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-contact);
}
body.pd-app .pd-plus .pd-entry__count { min-width: 0; height: auto; padding: 0; background: none; box-shadow: none; color: var(--app-text-2); font: 600 15px/20px var(--pd-font-text); font-variant-numeric: tabular-nums; }
body.pd-app .pd-plus .pd-opt[aria-current="page"] { background: var(--app-tint); }

/* ---------- 5.6 toolbars: a glass capsule in its own column (desktop), above the tab bar (phone) ---------- */
body.pd-app .pd-toolbar.pd-glass {
  display: flex; align-items: center; gap: 8px; height: 60px; padding: 8px; border-radius: 30px; --app-glass-rimw: 4px;
  position: sticky; bottom: 16px; z-index: var(--pd-z-sticky); width: fit-content; max-width: calc(100% - 32px); margin: 16px auto 0;
}
body.pd-app .pd-toolbar.pd-glass > .pd-btn { height: 44px; }
body.pd-app .pd-toolbar__note { color: var(--app-text-2); font-size: var(--pd-app-meta-size); line-height: var(--pd-app-meta-lh); padding: 0 6px; white-space: nowrap; }
/* the toolbar is sticky in its column's flow, so it reserves its own room: the page keeps 16 px under its last toolbar,
   so the toolbar's place at the end of the scroll is its stuck place (a 92 px reservation made it climb 108 px over the
   last 120 px of the scroll and rest 124 px above the foot; integration, _requests/G4.md 29). Focus never lands under it:
   the root's scroll padding below (Chromium) and shell.js's focus guard (WebKit) */
@media (min-width: 768px) { body.pd-app > main:has(.pd-toolbar.pd-glass:not(.pd-toolbar--inline)) { padding-bottom: 16px; } }
/* an inline toolbar (the agenda's): 44 tall with 36 inner controls under a mouse, 52 with 44 on touch and on a phone; its
   buttons never overflow its glass (the 44 px button rule outweighed the inline 36; _requests/G2.md R1) */
body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline { position: relative; bottom: auto; height: 44px; padding: 4px; gap: 2px; border-radius: 22px; margin: 0; --app-glass-rimw: 3px; }
body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline > :is(.pd-btn, .pd-seg) { height: 36px; }
body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline > .pd-btn--icon { width: 36px; min-width: 36px; padding: 0; }
body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline > .pd-btn--icon > .pd-ic { width: 18px; height: 18px; }
@media (max-width: 767px), (pointer: coarse) {
  body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline { height: 52px; border-radius: 26px; }
  body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline > :is(.pd-btn, .pd-seg) { height: 44px; }
  body.pd-app .pd-toolbar.pd-glass.pd-toolbar--inline > .pd-btn--icon { width: 44px; min-width: 44px; }
}
/* from 768 a glass action bar has the toolbar's capsule (60 tall, radius 30, padding 8, its keys 44), in the flow where
   its page places it: never sticky at a column's foot, where it passed over that column's last keys (integration,
   _requests/G3.md 10) */
@media (min-width: 768px) {
  body.pd-app main .pd-actionbar.pd-glass { position: relative; left: auto; right: auto; bottom: auto; width: auto; height: 60px; padding: 8px; gap: 8px; border: 0; border-radius: 30px; --app-glass-rimw: 4px; }
  body.pd-app main .pd-actionbar.pd-glass > .pd-btn { height: 44px; }
}
/* focus never rests under the frame's glass (5.6): the root is the scroller, so the scroll padding lives on it */
@media (min-width: 768px) {
  html:has(> body.pd-app:is([data-layout="menu"], [data-layout="pieces"])) { scroll-padding-top: calc(var(--pd-topbar-h) + 12px); }
  html:has(> body.pd-app main .pd-toolbar.pd-glass:not(.pd-toolbar--inline)) { scroll-padding-bottom: 96px; }
}
@media (max-width: 767px) {
  html:has(> body.pd-app:is([data-layout="menu"], [data-layout="pieces"])) { scroll-padding-top: calc(env(safe-area-inset-top) + 6px + 52px + 12px); scroll-padding-bottom: calc(62px + 8px + 32px + env(safe-area-inset-bottom)); }
  html:has(> body.pd-app:is([data-layout="menu"], [data-layout="pieces"]) main :is(.pd-actionbar, .pd-toolbar.pd-glass:not(.pd-toolbar--inline))) { scroll-padding-bottom: calc(62px + 8px + 10px + 60px + 16px + env(safe-area-inset-bottom)); }
  html:has(> body.pd-app[data-layout="public"] main .pd-actionbar) { scroll-padding-bottom: calc(10px + 60px + 16px + env(safe-area-inset-bottom)); }
}
html:has(> body.pd-app[data-layout="public"]) { scroll-padding-top: calc(env(safe-area-inset-top) + 12px + 56px + 16px); }
@media (max-width: 767px) {
  body.pd-app .pd-toolbar.pd-glass:not(.pd-toolbar--inline) { position: fixed; left: 12px; right: 12px; width: auto; max-width: none; margin: 0; bottom: calc(var(--pd-tabbar-h) + 8px + 10px + env(safe-area-inset-bottom)); }
  body.pd-app:has(main .pd-toolbar.pd-glass:not(.pd-toolbar--inline)) { --pd-actionbar-h: 70px; }
}

/* ---------- 5.7 the inspector: a solid pane fixed at the right, its own scroll (S01, S04, S09, S13, S14 from 1360;
   .pd-inspector--1280 from 1280, S05 and S07). Under its breakpoint its cards are ordinary panes in the flow ---------- */
:where(body.pd-app) :is(.pd-inspector, .pd-inspector--1280) { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1360px) {
  body.pd-app > main > .pd-inspector { position: fixed; z-index: 1; top: calc(var(--pd-sticky-top) + var(--app-frame-in)); right: var(--app-frame-in); bottom: var(--app-frame-in); width: var(--pd-insp-w); }
  body.pd-app > main:has(> .pd-inspector) > .pd-content { margin-right: calc(var(--pd-insp-w) + var(--app-frame-in) + 24px - var(--pd-pad)); }
}
@media (min-width: 1280px) {
  body.pd-app > main > .pd-inspector--1280 { position: fixed; z-index: 1; top: calc(var(--pd-sticky-top) + var(--app-frame-in)); right: var(--app-frame-in); bottom: var(--app-frame-in); width: var(--pd-insp-w); }
  body.pd-app > main:has(> .pd-inspector--1280) > .pd-content { margin-right: calc(var(--pd-insp-w) + var(--app-frame-in) + 24px - var(--pd-pad)); }
}
/* fixed, it is one solid pane with its own scroll (a 16 px fade at an edge where more waits); its cards become flat
   sections, a hairline between them inset 22, their tiles and heads kept */
body.pd-app > main > .pd-inspector.is-fixed, body.pd-app > main > .pd-inspector--1280.is-fixed {
  gap: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--app-pane); border-radius: var(--app-r-pane); box-shadow: var(--app-shadow-pane);
}
body.pd-app > main > .is-fixed:is(.pd-inspector, .pd-inspector--1280) > .pd-card { background: none; box-shadow: none; border-radius: 0; padding: 20px 22px; }
body.pd-app > main > .is-fixed:is(.pd-inspector, .pd-inspector--1280) > .pd-card + .pd-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: var(--app-hair); background: var(--app-line); }
body.pd-app > main > .is-fixed.is-more-down { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent); }
body.pd-app > main > .is-fixed.is-more-up { -webkit-mask-image: linear-gradient(180deg, transparent, #000 16px); mask-image: linear-gradient(180deg, transparent, #000 16px); }
body.pd-app > main > .is-fixed.is-more-up.is-more-down { -webkit-mask-image: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
html.pd-locked body.pd-app > main > :is(.pd-inspector, .pd-inspector--1280) { right: calc(var(--app-frame-in) + var(--pd-sbw, 0px)); }

/* ---------- the bar of a slow switch: a 2 px sky line under the floating controls, between the content lines ---------- */
body.pd-app > .pd-loadbar { left: calc(var(--pd-side-w, 0px) + var(--pd-pad)); right: calc(var(--pd-pad) + var(--pd-insp-edge, 0px)); top: calc(var(--pd-sticky-top, 0px) - 4px); height: 2px; border-radius: 1px; overflow: visible; }
body.pd-app > .pd-loadbar > i { border-radius: 1px; box-shadow: 0 0 8px var(--app-sky); }
@media (max-width: 767px) { body.pd-app > .pd-loadbar { left: 16px; right: 16px; } }

/* ---------- the account menu: thick glass (app.css 18.12), the theme switch as a segmented control ---------- */
body.pd-app .pd-acct { padding: 0; }

/* ---------- 5.8 back office: dark first; the same smoked panel at the window's height with our lockup in its tenant block
   (the fog lockup in both themes: the panel is smoked in both), our mark alone on the rail; the person signed in and
   « Se déconnecter » one glass cluster at top 10, its right edge on the panes' (integration, _requests/G6.md 5) ---------- */
body.pd-app[data-tenant="backoffice"] > .pd-top { left: 0; padding-left: 24px; }
body.pd-app[data-tenant="backoffice"]:has(> .pd-side) > .pd-top { left: var(--pd-side-w); padding-left: var(--pd-pad); }
body.pd-app[data-tenant="backoffice"][data-layout] > .pd-side.pd-glass { top: calc(var(--pd-proto-h, 0px) + var(--app-frame-in)); }
body.pd-app[data-tenant="backoffice"] > .pd-side .pd-bo-brand { width: auto; height: 44px; gap: 10px; flex: none; }
body.pd-app[data-tenant="backoffice"] > .pd-side .pd-bo-brand img { height: 20px; width: auto; }
body.pd-app[data-tenant="backoffice"] > .pd-side .pd-bo-brand span { padding: 0; font: 600 12.5px/16px var(--pd-font-text); letter-spacing: 0.01em; color: var(--app-chrome-text-2); }
body.pd-app[data-tenant="backoffice"] > .pd-side .pd-side__scroll { padding-top: 4px; }
body.pd-app[data-tenant="backoffice"] > .pd-side.is-rail .pd-bo-brand { justify-content: center; height: 48px; margin: 8px 8px 4px; padding: 0; gap: 0; }
body.pd-app[data-tenant="backoffice"] > .pd-side.is-rail .pd-bo-brand img { height: 28px; }
body.pd-app[data-tenant="backoffice"] > .pd-side.is-rail .pd-bo-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.pd-app[data-tenant="backoffice"] > .pd-top .pd-top__end.pd-glass { height: 44px; padding: 4px 4px 4px 16px; gap: 8px; border-radius: var(--app-r-capsule); --app-glass-rimw: 3px; }
body.pd-app[data-tenant="backoffice"] > .pd-top .pd-top__end.pd-glass .pd-bo-user { margin: 0; color: var(--app-text-2); }
body.pd-app[data-tenant="backoffice"] > .pd-top .pd-top__end.pd-glass > .pd-btn { height: 36px; min-width: 36px; padding: 0 14px; color: var(--app-text-2); }
@media (hover: hover) { body.pd-app[data-tenant="backoffice"] > .pd-top .pd-top__end.pd-glass > .pd-btn:hover { background: var(--app-tint); color: var(--app-text); } }
body.pd-app[data-tenant="backoffice"] > .pd-top.is-phone .pd-top__end.pd-glass { height: 52px; padding: 4px; gap: 0; border-radius: 26px; }
body.pd-app[data-tenant="backoffice"] > .pd-top.is-phone .pd-top__end.pd-glass > .pd-btn { width: 44px; height: 44px; padding: 0; }
/* a tablet's targets are 44 (3.10): the cluster grows to 52 under 1024, as on any touch screen */
@media (pointer: coarse) and (min-width: 768px), (min-width: 768px) and (max-width: 1023px) {
  body.pd-app[data-tenant="backoffice"] > .pd-top .pd-top__end.pd-glass { height: 52px; }
  body.pd-app[data-tenant="backoffice"] > .pd-top .pd-top__end.pd-glass > .pd-btn { height: 44px; }
}
/* the phone's « Sections » sheet: the current section lit, a sky check in place of its chevron (shell.js), its ring only
   after a key is pressed (_requests/G6.md 14) */
body.pd-app .pd-bo-sections .pd-opt[aria-current="page"] { background: var(--app-selected); font-weight: 600; }
body.pd-app .pd-bo-sections .pd-opt > .pd-opt__cur { display: inline-flex; width: 18px; height: 18px; margin-left: auto; color: var(--app-sky); }
/* its ring only after a key: the kit's html.pd-by-pointer belt (app.css 18.9) since 2026-10-28, which replaced pd-quiet-ring */

/* ---------- 11.9 the public pages' header: a floating glass strip, 56 tall, radius 28, 12 from the top and the sides,
   sticky; its square 40 (the tenant's app icon, as the side panel's) and its name on the page's column (each page sets
   --pd-pub-col, its column's width), the place in meta (text-2: never text-3 on glass, D23). Once the page has moved, the
   ground fades in behind it, so nothing shows in the 12 px above it (integration, _requests/G4.md 7, G5.md R5) ---------- */
body.pd-app[data-layout="public"] > .pd-pub-head.pd-glass {
  position: sticky; top: calc(12px + env(safe-area-inset-top)); z-index: var(--pd-z-sticky); box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; height: 56px; min-height: 0;
  margin: calc(12px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  padding: 0 16px 0 max(8px, calc((100% - min(var(--pd-pub-col, 100%), 100% - 2 * var(--pd-pad))) / 2 - 12px)); border: 0; border-radius: 28px; --app-glass-rimw: 3px;
}
body.pd-app[data-layout="public"] > .pd-pub-head .pd-sq { width: 40px; height: 40px; border-radius: 9px; font-size: 15px; letter-spacing: 0.01em; color: var(--app-on-accent);
  background: var(--app-tile-gloss), linear-gradient(180deg, color-mix(in oklab, var(--app-accent) 72%, var(--pd-white)), var(--app-accent));
  box-shadow: var(--app-tile-light), var(--app-tenant-ring), var(--app-tile-contact); }
body.pd-app[data-layout="public"] > .pd-pub-head .pd-sq.is-ink { background: var(--app-tile-gloss), linear-gradient(180deg, var(--app-stone-top), var(--app-stone)); color: var(--app-on-tile); }
body.pd-app[data-layout="public"] > .pd-pub-head b { display: block; font: 600 15px/20px var(--pd-font-text); color: var(--app-text); }
body.pd-app[data-layout="public"] > .pd-pub-head b + span { display: block; font-size: var(--pd-app-meta-size); line-height: var(--pd-app-meta-lh); color: var(--app-text-2); }
body.pd-app[data-layout="public"] > .pd-main { padding-top: var(--pd-s-3); }
body.pd-app[data-layout="public"]::after {
  content: ""; position: fixed; z-index: calc(var(--pd-z-sticky) - 1); left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top) + 84px); pointer-events: none;
  background: linear-gradient(180deg, var(--app-edge) 0, var(--app-edge) 56%, var(--app-edge-none)); opacity: var(--pd-scrolled, 0);
}

/* ---------- ?capture=full (L18): the frame laid on the page and sized to the document, no fold, no edges ---------- */
html.pd-capture-full body.pd-app { position: relative; }
html.pd-capture-full body.pd-app > :is(.pd-side, .pd-top, .pd-tabbar) { position: absolute; }
html.pd-capture-full body.pd-app > .pd-edge { display: none; }
/* the inspector: absolute only where it is the fixed pane (under its breakpoint it stays in the flow, where it is), so a
   full capture shows it as one pane beside the column, as seen live (shell.js keeps it is-fixed; _requests/G3.md 13) */
html.pd-capture-full body.pd-app > main > .is-fixed:is(.pd-inspector, .pd-inspector--1280) { position: absolute; bottom: auto; }
html.pd-capture-full { --fold: 0 !important; --pd-scrolled: 0 !important; }

/* =====================================================================================
   THE FRAME ON THE SITE (site phase, 2026-10-28; DIRECTION-LIQUID.md 19). A frame drawn inside a site page or the kit
   (.pd-demo inside body.pd-site) is LIQUID's frame in the solid form the site's rules allow (no blur, no stadium:
   tools/audit-page.mjs on body.pd-site): the smoked panel inset in its column with an app tile per entry (one hue per
   entry, app.css 18.4), the search and the cluster as two solid controls of one height on the ground, the phone's tile,
   cluster and tab bar. The material is app.css 18.2 with tokens.css « THE SOFTWARE ON THE SITE »; a capsule is a
   rounded rectangle (12, its inner shapes concentric). Static: the current entry and the current tab carry their own
   light where they are (no lens that glides, no gel, no fold).
   ===================================================================================== */
/* the side panel: 8 from its column's edges, radius 18; the rail is the same slab, 64 wide (its column 80) */
body.pd-site .pd-demo > .pd-side.pd-glass {
  width: 240px; height: calc(100% - 16px); margin: 8px; overflow: hidden; border-radius: var(--app-r-side); color: var(--app-chrome-text);
  box-shadow: var(--app-shadow-glass);
}
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail { width: 64px; --app-r-side: 21px; --app-r-lens: 13px; }
body.pd-site .pd-demo > .pd-side.pd-glass :focus-visible { outline: 2px solid var(--app-chrome-signal); outline-offset: -2px; box-shadow: 0 0 0 6px var(--app-chrome-focus-glow); }
/* the tenant: a 44 button, radius 10 (the panel's 18 minus its 8), its square 32 in the tenant's gradient */
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant { height: 44px; margin: 8px 8px 4px; padding: 0 6px; gap: 10px; border-radius: var(--app-r-lens); position: relative; z-index: 1; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant .pd-sq { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; letter-spacing: 0.01em; color: var(--app-on-accent);
  background: var(--app-tile-gloss), linear-gradient(180deg, color-mix(in oklab, var(--app-accent) 72%, var(--pd-white)), var(--app-accent));
  box-shadow: var(--app-tile-light), var(--app-tenant-ring), var(--app-tile-contact); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant .pd-sq.is-ink { background: var(--app-tile-gloss), linear-gradient(180deg, var(--app-stone-top), var(--app-stone)); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant-t b { font: 600 var(--pd-app-side-size)/19px var(--pd-font-text); color: var(--app-chrome-text); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant-t span { font: 400 11.5px/16px var(--pd-font-mono); color: var(--app-chrome-text-2); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant > .pd-ic { color: var(--app-chrome-icon); }
@media (hover: hover) { body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__tenant:hover { background: var(--app-chrome-hover); } }
/* the scroller and its group labels: 26 tall, the words on the foot of an 18 band, 8 above */
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__scroll { position: relative; padding: 0 8px 4px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__group { height: 18px; margin: 8px 0 0; padding: 0 0 0 12px; align-items: flex-end; font: 600 12px/16px var(--pd-font-text); letter-spacing: 0.02em; color: var(--app-chrome-text-2); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__foot { position: relative; padding: 4px 8px 6px; border-top: 0; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-side__foot::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: var(--app-hair); background: var(--app-chrome-line); }
/* an entry: a 34 pitch with a mouse, its light 32 tall, radius 10, its tile 24 concentric with the light; the current
   entry carries the light itself (the software's lens, where it rests) */
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry {
  position: relative; z-index: 1; height: 34px; gap: 10px; padding: 0 12px 0 4px; border-radius: var(--app-r-lens); background: none; box-shadow: none;
  font: 500 var(--pd-app-side-size)/20px var(--pd-font-text); color: var(--app-chrome-text); transition: none;
}
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry::before { content: ""; position: absolute; inset: 1px 0; z-index: -1; border-radius: var(--app-r-lens); background: transparent; transition: background-color var(--app-dur-micro) linear; pointer-events: none; }
@media (hover: hover) { body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry:not([aria-current="page"]):hover { background: none; } body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry:not([aria-current="page"]):hover::before { background: var(--app-chrome-hover); } }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry:active:not([aria-current="page"])::before { background: var(--app-chrome-active); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry[aria-current="page"] { font-weight: 600; color: var(--app-chrome-active-text); background: none; box-shadow: none; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry[aria-current="page"]::before { background: var(--app-chrome-active); box-shadow: var(--app-lens-light), inset 0 0 0 var(--app-hair) var(--app-chrome-line); }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry > .pd-tile { --tile: 24px; border-radius: 6px; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry > .pd-tile > .pd-ic { width: 14px; height: 14px; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry[aria-current="page"] > .pd-tile { box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-moat), var(--app-tile-lift); }
/* the count: a plain number at the trailing edge, so the tiles are the only colour on the panel */
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry__count { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--app-chrome-text-2); font: 600 12.5px/16px var(--pd-font-text); font-variant-numeric: tabular-nums; }
body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry[aria-current="page"] .pd-entry__count { color: var(--app-chrome-active-text); }
/* touch: rows of 44, the light 40, the tile 28 */
@media (pointer: coarse) {
  body.pd-site .pd-demo > .pd-side.pd-glass { --app-r-side: 21px; --app-r-lens: 13px; }
  body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry { height: 44px; gap: 12px; padding-left: 4px; font-size: 15px; }
  body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry::before { inset: 2px 0; }
  body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry > .pd-tile { --tile: 28px; border-radius: 7px; margin-left: 2px; }
  body.pd-site .pd-demo > .pd-side.pd-glass .pd-entry > .pd-tile > .pd-ic { width: 16px; height: 16px; }
}
/* the rail: the tenant's square 36, entries 48 x 44 around a 28 tile, the count a small light rounded square */
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-side__tenant { justify-content: center; height: 48px; margin: 8px 8px 4px; padding: 0; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-side__tenant .pd-sq { width: 36px; height: 36px; border-radius: 8px; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-side__scroll { padding: 0 8px 4px; scrollbar-width: none; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-side__group { height: 8px; margin: 0; padding: 0; font-size: 0; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-side__foot { padding: 4px 8px 6px; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-entry { width: 48px; height: 44px; padding: 0; justify-content: center; gap: 0; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-entry::before { inset: 2px 0; border-radius: 13px; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-entry > .pd-tile { --tile: 28px; border-radius: 7px; margin: 0; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-entry > .pd-tile > .pd-ic { width: 16px; height: 16px; }
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-entry__count {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 5px;
  background: var(--app-chrome-text-2); color: var(--pd-ink); font: 700 11px/16px var(--pd-font-text); box-shadow: 0 0 0 2px var(--app-smoke-solid);
}
body.pd-site .pd-demo > .pd-side.pd-glass.is-rail .pd-entry[aria-current="page"] .pd-entry__count { color: var(--pd-ink); }

/* the top area: no bar; the search and the cluster, two solid controls of one height (44) on the ground */
body.pd-site .pd-demo > .pd-top { --pd-top-total: 60px; height: 60px; align-items: center; gap: 12px; padding-top: 0; padding-bottom: 0; padding-right: 16px; background: none; border: 0; }
body.pd-site .pd-demo > .pd-top .pd-search.pd-glass {
  flex: 0 1 320px; width: 320px; height: 44px; gap: 10px; padding: 0 8px 0 14px; border-radius: var(--app-r-capsule);
  color: var(--app-text-2); font: 400 15px/20px var(--pd-font-text); --app-glass-rimw: 3px; background: var(--app-glass-body);
}
body.pd-site .pd-demo > .pd-top .pd-search > .pd-ic { width: 18px; height: 18px; color: var(--app-text-2); }
body.pd-site .pd-demo > .pd-top .pd-search > .pd-search__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pd-site .pd-demo > .pd-top .pd-search__keys { display: inline-flex; gap: 3px; flex: none; }
body.pd-site .pd-demo > .pd-top .pd-search .pd-kbd { height: 22px; min-width: 22px; padding: 0 6px; justify-content: center; border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 var(--app-hair) var(--app-kbd-ring); font: 500 11.5px/22px var(--pd-font-mono); color: var(--app-text-2); }
@media (hover: hover) { body.pd-site .pd-demo > .pd-top .pd-search.pd-glass:hover { background: var(--app-glass-body); color: var(--app-text); } }
/* the cluster: the layout switch and the bell 36 square, the account 36 tall, 4 inside a 44 control (8 inside its 12) */
body.pd-site .pd-demo > .pd-top .pd-cluster { margin-left: auto; height: 44px; padding: 4px; gap: 2px; display: flex; align-items: center; border-radius: var(--app-r-capsule); --app-glass-rimw: 3px; }
body.pd-site .pd-demo > .pd-top .pd-cluster > .pd-btn--icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; color: var(--app-text-2); position: relative; }
body.pd-site .pd-demo > .pd-top .pd-cluster > .pd-btn--icon > .pd-ic { width: 20px; height: 20px; }
@media (hover: hover) { body.pd-site .pd-demo > .pd-top .pd-cluster > :is(.pd-btn--icon, .pd-me):hover { background: var(--app-tint); color: var(--app-text); } }
body.pd-site .pd-demo > .pd-top .pd-cluster > :is(.pd-btn--icon, .pd-me)[aria-expanded="true"] { background: var(--app-tint-press); color: var(--app-text); }
body.pd-site .pd-demo > .pd-top .pd-me { height: 36px; gap: 8px; margin: 0; padding: 0 12px 0 3px; border-radius: 8px; position: relative; }
body.pd-site .pd-demo > .pd-top .pd-me .pd-av { width: 30px; height: 30px; font-size: 12px; }
body.pd-site .pd-demo > .pd-top .pd-me__t b { font: 600 14px/18px var(--pd-font-text); }
body.pd-site .pd-demo > .pd-top .pd-me__t span { font: 400 12.5px/16px var(--pd-font-text); color: var(--app-text-2); }
body.pd-site .pd-demo > .pd-top .pd-badge {
  top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--app-r-short);
  background: var(--app-badge-bg); color: var(--app-on-badge); font: 700 11px/18px var(--pd-font-text); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--app-glass-solid);
}
body.pd-site .pd-demo > .pd-top:not(.is-phone) .pd-top__title { display: none; }
/* the screen of pieces and the narrow column: the business's square at the left, the account as its initials */
body.pd-site .pd-demo > .pd-top:not(.is-phone) .pd-top__home { height: 44px; gap: 10px; padding: 0 14px 0 0; border-radius: var(--app-r-capsule); }
body.pd-site .pd-demo > .pd-top:not(.is-phone) .pd-top__home .pd-sq { width: 44px; height: 44px; border-radius: 10px; }
body.pd-site .pd-demo > .pd-top.is-narrow .pd-search { flex-basis: 280px; }
body.pd-site .pd-demo > .pd-top.is-narrow .pd-me__t { display: none; }
body.pd-site .pd-demo > .pd-top.is-narrow .pd-me { width: 36px; padding: 0; justify-content: center; }
body.pd-site .pd-demo > .pd-top .pd-top__home .pd-sq { background: var(--app-tile-gloss), linear-gradient(180deg, color-mix(in oklab, var(--app-accent) 72%, var(--pd-white)), var(--app-accent)); box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-contact); color: var(--app-on-accent); }
body.pd-site .pd-demo > .pd-top .pd-top__home .pd-sq.is-ink { background: var(--app-tile-gloss), linear-gradient(180deg, var(--app-stone-top), var(--app-stone)); }

/* the phone: the business's tile at the left, the screen's name (as folded: the frame does not scroll), the cluster */
body.pd-site .pd-demo > .pd-top.is-phone { --pd-top-total: 64px; height: 64px; gap: 12px; padding: 6px 16px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-top__home { width: 52px; height: 52px; margin: 0; padding: 0; flex: none; justify-content: center; border-radius: 13px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-top__home .pd-sq { width: 52px; height: 52px; border-radius: 13px; font-size: 17px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-top__title { display: block; flex: 1; min-width: 0; font: 600 var(--pd-app-bar-size)/22px var(--pd-font-text); color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-cluster { height: 52px; padding: 4px; gap: 0; --app-glass-rimw: 3px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-cluster > .pd-btn--icon { width: 44px; height: 44px; min-width: 44px; border-radius: 8px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-cluster > .pd-btn--icon > .pd-ic { width: 22px; height: 22px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-me { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 8px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-me .pd-av { width: 34px; height: 34px; font-size: 13px; }
body.pd-site .pd-demo > .pd-top.is-phone .pd-badge { top: 4px; right: 3px; }

/* the phone's tab bar: a solid bar of five tabs 12 from the frame's sides and foot, radius 20, the current tab on its
   light (16, concentric at 4) */
body.pd-site .pd-demo > .pd-tabbar.pd-glass { display: block; height: 62px; margin: 0 12px 12px; padding: 4px; border: 0; border-radius: 20px; --app-glass-rimw: 4px; background: var(--app-glass-body); }
body.pd-site .pd-demo > .pd-tabbar .pd-tabbar__in { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 54px; }
body.pd-site .pd-demo > .pd-tabbar .pd-tab { position: relative; z-index: 1; min-width: 44px; height: 54px; gap: 2px; padding: 0; border-radius: 16px; color: var(--app-text-2); font: 600 var(--pd-app-tab-size)/var(--pd-app-tab-lh) var(--pd-font-text); }
body.pd-site .pd-demo > .pd-tabbar .pd-tab__icon { width: auto; height: 24px; background: none; }
body.pd-site .pd-demo > .pd-tabbar .pd-tab__icon .pd-ic { width: 24px; height: 24px; }
body.pd-site .pd-demo > .pd-tabbar .pd-tab__label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pd-site .pd-demo > .pd-tabbar .pd-tab:active .pd-tab__icon { background: none; }
body.pd-site .pd-demo > .pd-tabbar .pd-tab[aria-current="page"] { color: var(--app-text); }
body.pd-site .pd-demo > .pd-tabbar .pd-tab[aria-current="page"] .pd-tab__icon { background: none; }
body.pd-site .pd-demo > .pd-tabbar .pd-tab[aria-current="page"] .pd-ic { color: var(--app-sky); }
body.pd-site .pd-demo > .pd-tabbar .pd-tab:focus-visible { outline-offset: -3px; }
body.pd-site .pd-demo > .pd-tabbar .pd-tabbar__lens {
  display: block; position: absolute; z-index: 0; top: 0; height: 54px; left: calc(var(--i, 0) * 100% / 5); width: calc(100% / 5);
  border-radius: 16px; background: var(--app-tab-lens); pointer-events: none;
}
body.pd-site .pd-demo > .pd-tabbar .pd-tabbar__lens::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: var(--app-glass-ring); opacity: 0.5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* the « Plus » sheet drawn in a frame: rows 52, each on its entry's 30 tile, the count a plain number, a chevron */
body.pd-site .pd-app .pd-plus .pd-opt { min-height: 52px; gap: 14px; padding: 11px 10px; font-size: 17px; line-height: 22px; }
body.pd-site .pd-app .pd-plus .pd-opt > .pd-ic:first-child {
  box-sizing: border-box; width: 30px; height: 30px; padding: 6px; border-radius: 7.5px; color: var(--app-on-tile); flex: none;
  background: var(--app-tile-gloss), linear-gradient(180deg, var(--t1, var(--app-tile-slate)), var(--t2, var(--app-tile-slate-2)));
  box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-contact);
}
body.pd-site .pd-app .pd-plus .pd-entry__count { min-width: 0; height: auto; padding: 0; background: none; box-shadow: none; color: var(--app-text-2); font: 600 15px/20px var(--pd-font-text); font-variant-numeric: tabular-nums; }
body.pd-site .pd-app .pd-plus .pd-opt[aria-current="page"] { background: var(--app-tint); }

/* the page held under a window or a sheet (ui.js lockScroll lets the scrollbar's gutter go and pads <html> by its width):
   every fixed layer that spans the width keeps the width it had beside the scrollbar, so nothing slides by the scrollbar's
   width in a narrow desktop window (Youssef, 2026-10-28: « when removing and readding the side bar the page moves left and
   right »). Stronger than each layer's own placement (body.pd-app > .pd-top.is-phone sets right: 0) */
html.pd-locked body.pd-app > :is(.pd-top, .pd-edge, .pd-ground, .pd-proto) { right: var(--pd-sbw, 0px); }

/* ---------- the business switcher (shell.js openSwitch; Youssef, 2026-10-28) ----------
   Rows of two lines (the name, then its address or the person's role) on a tile or a face; the current one checked. */
.pd-orgs .pd-opt__label { display: grid; }
.pd-orgs .pd-opt__label > b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-orgs .pd-opt__label > small { font: 400 var(--pd-app-meta-size)/var(--pd-app-meta-lh) var(--pd-font-text); color: var(--app-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-orgs .pd-opt[aria-checked="true"] > .pd-opt__check { visibility: visible; color: var(--app-sky); }
.pd-orgs .pd-sq { width: 32px; height: 32px; border-radius: 22.5%; font-size: 13px; letter-spacing: 0.01em; color: var(--app-on-accent);
  background: var(--app-tile-gloss), linear-gradient(180deg, color-mix(in oklab, var(--app-accent) 72%, var(--pd-white)), var(--app-accent));
  box-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-contact); }
.pd-orgs .pd-sq.is-ink { background: var(--app-tile-gloss), linear-gradient(180deg, var(--app-stone-top), var(--app-stone)); }
.pd-orgs .pd-av { width: 32px; height: 32px; }
.pd-acct.pd-orgs { width: 320px; }
.pd-orgs > .pd-sheet__group:first-child { padding-top: 6px; }
:where(body.pd-app) .pd-pop .pd-orgs .pd-opt:is(.is-active, :focus-visible) small,
:where(body.pd-app) .pd-pop .pd-orgs .pd-opt:is(.is-active, :focus-visible) > .pd-opt__check { color: var(--app-on-menu-hi); }
@media (hover: hover) {
  :where(body.pd-app) .pd-pop .pd-orgs .pd-opt:hover small, :where(body.pd-app) .pd-pop .pd-orgs .pd-opt:hover > .pd-opt__check { color: var(--app-on-menu-hi); }
}

/* ---------- the side menu fills the screen's height (Youssef, 2026-10-28, « spread out the icons and sections in the side
   bar on large screens, account for all large monitors and small monitors ») ----------
   One row height, --pd-side-row, read from the window's height: 28 on a short laptop screen (1366 x 768), 34 near 810 as before,
   about 44 at 1000, at most 48 on a tall monitor; with a touch pointer never under 44. The tile, the type, the gaps and
   the radii follow it, so the tile stays concentric with its light (inset g = (row - 2 - tile) / 2, light radius = tile
   radius + g, panel radius = light radius + 8). Height still left on a tall monitor goes above each section label (up to
   44 px more each), so the sections stand apart instead of a block at the top and a void above « Réglages ». On a screen
   too short for everything (under about 650), the rows stay at 28 and the menu scrolls as before (its edge fades). The light under the
   current entry takes the entry's height (shell.js placeLens, again when the window's height changes). The rail (768 to
   1023 wide) keeps its 44 rows */
body.pd-app[data-layout] > .pd-side.pd-glass:not(.is-rail) {
  --pd-side-row: clamp(28px, calc((100vh - var(--pd-proto-h, 0px) - 200px) / 18), 48px);
  --pd-side-tile: clamp(20px, calc(var(--pd-side-row) * 0.44 + 9px), 30px);
  --pd-side-g: calc((var(--pd-side-row) - 2px - var(--pd-side-tile)) / 2);
  --app-r-lens: calc(var(--pd-side-tile) * 0.25 + var(--pd-side-g));
  --app-r-side: calc(var(--app-r-lens) + 8px);
}
@media (pointer: coarse) {
  body.pd-app[data-layout] > .pd-side.pd-glass:not(.is-rail) {
    --pd-side-row: clamp(44px, calc((100vh - var(--pd-proto-h, 0px) - 160px) / 18), 52px);
    --pd-side-tile: clamp(28px, calc(var(--pd-side-row) * 0.44 + 9px), 32px);
  }
}
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-side__scroll { display: flex; flex-direction: column; }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-entry {
  flex: none; height: var(--pd-side-row); gap: calc(var(--pd-side-tile) * 0.42); padding-left: var(--pd-side-g);
  font-size: clamp(14.5px, calc(var(--pd-side-row) * 0.34), 15.5px); line-height: 20px;
}
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-entry::before { inset: 1px 0; }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-entry > .pd-tile { --tile: var(--pd-side-tile); margin-left: 0; border-radius: calc(var(--pd-side-tile) * 0.25); }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-entry > .pd-tile > .pd-ic { width: calc(var(--pd-side-tile) * 0.58); height: calc(var(--pd-side-tile) * 0.58); }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-entry__count { font-size: clamp(12.5px, calc(var(--pd-side-row) * 0.3), 13.5px); }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-side__group {
  flex: 1 0 auto; height: auto; min-height: calc(var(--pd-side-row) * 0.55); max-height: calc(var(--pd-side-row) * 0.55 + 44px);
  margin-top: calc(var(--pd-side-row) * 0.24); padding: 0 0 clamp(0px, calc(var(--pd-side-row) * 0.25 - 7px), 4px) calc(var(--pd-side-g) + 8px);
  font-size: clamp(12px, calc(var(--pd-side-row) * 0.27), 13px); line-height: 15px;
}
/* the business at the head grows with the rows: 40 high on a short screen, 54 on a tall one, its tile 30 to 36 */
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-side__tenant { height: clamp(40px, calc(var(--pd-side-row) + 8px), 54px); padding: 0 calc((clamp(40px, calc(var(--pd-side-row) + 8px), 54px) - clamp(30px, calc(var(--pd-side-row) * 0.72), 36px)) / 2); }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-side__tenant .pd-sq { width: clamp(30px, calc(var(--pd-side-row) * 0.72), 36px); height: clamp(30px, calc(var(--pd-side-row) * 0.72), 36px); }
body.pd-app > .pd-side.pd-glass:not(.is-rail) .pd-side__tenant-t b { font-size: clamp(14.5px, calc(var(--pd-side-row) * 0.34), 15.5px); }
/* a wide monitor: the panel a little wider, so the larger rows keep their air (264, 280 from 1600, 296 from 2200) */
@media (min-width: 1600px) { body.pd-app { --pd-sidebar-w: 280px; } }
@media (min-width: 2200px) { body.pd-app { --pd-sidebar-w: 296px; } }
