/* =======================================================================
   MATEOS -- the shared visual layer

   The one place to change a colour, a gap or a corner.
   No screen has an inline <style>.

   The design axis is 45 deg: every edge of the mark is exactly 45 deg, so
   the cut corner on the cards, the shaft of light on the ground and the
   dividers sit at the same angle. That is the page's one memorable
   gesture; there is no other ornament.
   ======================================================================= */

/* ---- Colours ------------------------------------------------------
   The dark theme is THE BASE; the light theme is a layer on top of it.

   Every colour goes through here. Before 28 October the body had 67
   literal colours, most of them rgba(white, low alpha) -- in the light
   theme that is white on white, i.e. invisible. All were turned into
   tokens ending in RGB.

   THE NAMES MISLEAD: in the light theme --ink is THE GROUND (light)
   and --paper is THE TEXT (dark). The names are left over from the dark
   design; renaming them meant touching 190 var() uses and is not worth
   the risk.

   CONTRAST WAS MEASURED, not guessed:
     - In the dark theme --faint was .34 and gave 2.98:1, BELOW the
       threshold, and had been all along. It became .50: 4.99:1.
     - The lowest pair in the light theme is 5.00:1.
     - The old gold #E3B25A on white is 1.95:1 -- unusable. In the
       light theme it is #8A5A00 (5.93:1). Gold means tips and NOTHING
       else; it has to be readable. */
/* === Typefaces ======================================================
   Geist + Geist Mono, both on our own server (assets/fonts/).
   Variable fonts: one file carries every weight, 100-900.

   font-display:swap -- the till is a payment screen; if the font does
   not arrive the text must not be INVISIBLE, it must show in the
   system font. With "block" a barber would look at an empty screen
   and touch it again.
   ================================================================== */
@font-face{
  font-family:'Geist';
  src:url('/assets/fonts/geist.woff2') format('woff2-variations');
  font-weight:100 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Geist Mono';
  src:url('/assets/fonts/geist-mono.woff2') format('woff2-variations');
  font-weight:100 900; font-style:normal; font-display:swap;
}

:root{
  --paper-rgb:243,241,252;
  --ink-rgb:11,10,20;
  --violet-rgb:139,108,255;
  --violet-up-rgb:185,166,255;
  --deep-rgb:74,47,214;
  --gold-rgb:251,191,36;
  --good-rgb:52,211,153;
  --bad-rgb:248,113,113;
  --shadow-rgb:0,0,0;
  --wash:1;
  --ink:#121020;
  --ink-2:#171427;
  --panel:#1D1A2A;
  --field:#171425;
  --hover:#242034;
  --float:#221E31;
  --pm-scrim:rgba(10,8,22,.62);
  --pm-halo:.5;
  --pm-v:#7650FF; --pm-v2:#5B33E0; --pm-onv:#FFFFFF;
  --pm-surf:#2B2540; --pm-surf2:#262137;
  --pm-dim:rgba(243,241,252,.54);
  --pm-lift:0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px var(--line),
            0 22px 46px -26px rgba(0,0,0,.6);
  --paper:#F3F1FC;
  --muted:rgba(var(--paper-rgb),.74);
  --faint:rgba(var(--paper-rgb),.58);
  --line:#322D44;
  --line-lit:rgba(var(--violet-rgb),.52);
  --violet:#8B6CFF;
  --violet-up:#B9A6FF;
  --pale:#B9A6FF;
  --deep:#271C52;
  --deep-2:#38277C;
  --on-violet:#120B2E;
  --primary:#F3F1FC;
  --primary-2:#FFFFFF;
  --on-primary:#0B0A14;
  --gold:#FBBF24;
  --good:#34D399;
  --bad:#F87171;
  color-scheme:dark;
  /* === 3 November 2026 ==========================================
     The Dataforge direction: the primary button is NOT the accent
     colour (near-white in dark, near-black in light, a full pill),
     surfaces are flat with hairlines, and there are no heavy shadows.

     THE ACCENT IS VIOLET IN BOTH THEMES. For a while I had turned the
     dark theme blue; with the logo, the two films, the Instagram
     stories and the site all violet, the dark theme did not match the
     rest of the brand. One brand colour.

     I did not take Dataforge's own colour VALUES: its secondary grey
     on white is 2.56:1, its green 2.42:1, its amber 3.07:1 -- the
     threshold is 4.5. Not a problem on a marketing page; a till sits
     in a bright shop in front of someone holding scissors. The same
     structure, darker tones.
     ============================================================== */
  --mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --f:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
  --cut:26px;              /* the 45 deg cut corner */
  --r:14px;
}


/* If the operating system says light -- unless the user explicitly chose dark. */
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    /* === THE LIGHT THEME, 4 November 2026 ===============================
       Earlier values were Tailwind's "slate" grey series: #0F172A text,
       #F8FAFC surface, #E2E8F0 line. Technically correct, and nothing as a
       brand. The dark theme beside it was violet, the light one blue-grey.

       Now every neutral has violet in it: text #17122E (violet-black,
       not blue-black), ground #FAF8FE, line #E6E1F4. Surfaces are WHITE
       and the ground is faintly violet -- cards lift off the ground
       instead of everything being one flat white.

       The accent is now the brand's OWN violet #6D4AFF. The earlier
       #5B33E0 was a darkened version of it; I measured, and there was no
       need: #6D4AFF on white is 5.15:1, threshold 4.5. White text on it
       is the same 5.15.
       ================================================================== */
    --paper-rgb:12,12,20;
    --ink-rgb:255,255,255;
    --violet-rgb:109,74,255;
    --violet-up-rgb:91,51,224;
    --deep-rgb:74,40,196;
    --gold-rgb:180,83,9;
    --good-rgb:4,120,87;
    --bad-rgb:220,38,38;
    --shadow-rgb:12,12,20;
    --wash:1;
  --ink:#F3F3F1;
    --ink-2:#FAFAF9;
    --panel:#FFFFFF;
    --field:#FCFCFB;
    --hover:#EAEAE7;
    --float:#FFFFFF;
    --pm-scrim:rgba(28,20,64,.34);
    --pm-halo:.4;
    --pm-v:#7A54FF; --pm-v2:#5B33E0; --pm-onv:#FFFFFF;
    --pm-surf:#FFFFFF; --pm-surf2:#F7F7F5;
    --pm-dim:rgba(10,10,17,.82);
    --pm-lift:0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(12,12,20,.08),
              0 18px 40px -20px rgba(12,12,20,.4),
              0 4px 12px -6px rgba(12,12,20,.2);
    --paper:#0C0C14;
    --muted:rgba(var(--paper-rgb),.72);
    /* At .56 it came out 4.18:1, below the threshold. .62 -> 5.10. */
    --faint:rgba(var(--paper-rgb),.62);
    --line:#E0DFDB;
    --line-lit:rgba(var(--violet-rgb),.38);
    --violet:#6D4AFF;
    --violet-up:#5B33E0;
    --pale:#4A28C4;
    --deep:#3A1FA8;
    --deep-2:#2E1785;
    --on-violet:#FFFFFF;
    --primary:#0C0C14;
    --primary-2:#23222C;
    --on-primary:#F3F3F1;
    --gold:#8F4206;
    --good:#046A4C;
    --bad:#B4211B;
    color-scheme:light;
  }
}
/* The user's own choice wins in both directions. */
:root[data-theme="light"]{
  /* === THE LIGHT THEME, 4 November 2026 ===============================
     Earlier values were Tailwind's "slate" grey series: #0F172A text,
     #F8FAFC surface, #E2E8F0 line. Technically correct, and nothing as a
     brand. The dark theme beside it was violet, the light one blue-grey.

     Now every neutral has violet in it: text #17122E (violet-black,
     not blue-black), ground #FAF8FE, line #E6E1F4. Surfaces are WHITE
     and the ground is faintly violet -- cards lift off the ground
     instead of everything being one flat white.

     The accent is now the brand's OWN violet #6D4AFF. The earlier
     #5B33E0 was a darkened version of it; I measured, and there was no
     need: #6D4AFF on white is 5.15:1, threshold 4.5. White text on it
     is the same 5.15.
     ================================================================== */
  --paper-rgb:12,12,20;
  --ink-rgb:255,255,255;
  --violet-rgb:109,74,255;
  --violet-up-rgb:91,51,224;
  --deep-rgb:74,40,196;
  --gold-rgb:180,83,9;
  --good-rgb:4,120,87;
  --bad-rgb:220,38,38;
  --shadow-rgb:12,12,20;
  --wash:1;
  --ink:#F3F3F1;
  --ink-2:#FAFAF9;
  --panel:#FFFFFF;
  --field:#FCFCFB;
  --hover:#EAEAE7;
  --float:#FFFFFF;
  --pm-scrim:rgba(28,20,64,.34);
  --pm-halo:.4;
  --pm-v:#7A54FF; --pm-v2:#5B33E0; --pm-onv:#FFFFFF;
  --pm-surf:#FFFFFF; --pm-surf2:#F7F7F5;
  --pm-dim:rgba(10,10,17,.82);
  --pm-lift:0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(12,12,20,.08),
            0 18px 40px -20px rgba(12,12,20,.4),
            0 4px 12px -6px rgba(12,12,20,.2);
  --paper:#0C0C14;
  --muted:rgba(var(--paper-rgb),.72);
  /* At .56 it came out 4.18:1, below the threshold. .62 -> 5.10. */
  --faint:rgba(var(--paper-rgb),.62);
  --line:#E0DFDB;
  --line-lit:rgba(var(--violet-rgb),.38);
  --violet:#6D4AFF;
  --violet-up:#5B33E0;
  --pale:#4A28C4;
  --deep:#3A1FA8;
  --deep-2:#2E1785;
  --on-violet:#FFFFFF;
  --primary:#0C0C14;
  --primary-2:#23222C;
  --on-primary:#F3F3F1;
  --gold:#8F4206;
  --good:#046A4C;
  --bad:#B4211B;
  color-scheme:light;
}

:root[data-theme="dark"]{
  --paper-rgb:243,241,252;
  --ink-rgb:11,10,20;
  --violet-rgb:139,108,255;
  --violet-up-rgb:185,166,255;
  --deep-rgb:74,47,214;
  --gold-rgb:251,191,36;
  --good-rgb:52,211,153;
  --bad-rgb:248,113,113;
  --shadow-rgb:0,0,0;
  --wash:1;
  --ink:#121020;
  --ink-2:#171427;
  --panel:#1D1A2A;
  --field:#171425;
  --hover:#242034;
  --float:#221E31;
  --pm-scrim:rgba(10,8,22,.62);
  --pm-halo:.5;
  --pm-v:#7650FF; --pm-v2:#5B33E0; --pm-onv:#FFFFFF;
  --pm-surf:#2B2540; --pm-surf2:#262137;
  --pm-dim:rgba(243,241,252,.54);
  --pm-lift:0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px var(--line),
            0 22px 46px -26px rgba(0,0,0,.6);
  --paper:#F3F1FC;
  --muted:rgba(var(--paper-rgb),.74);
  --faint:rgba(var(--paper-rgb),.58);
  --line:#322D44;
  --line-lit:rgba(var(--violet-rgb),.52);
  --violet:#8B6CFF;
  --violet-up:#B9A6FF;
  --pale:#B9A6FF;
  --deep:#271C52;
  --deep-2:#38277C;
  --on-violet:#120B2E;
  --primary:#F3F1FC;
  --primary-2:#FFFFFF;
  --on-primary:#0B0A14;
  --gold:#FBBF24;
  --good:#34D399;
  --bad:#F87171;
  color-scheme:dark;
  /* THE SAME values as :root. This block exists to beat the @media
     block above when the user has picked dark BY HAND even though the
     operating system says LIGHT. */
}


*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; overflow-x:clip}
body{
  margin:0; background:var(--ink); color:var(--paper);
  font:16px/1.6 var(--f); -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
  min-height:100dvh;
}
/* One light source, from 45 deg -- the same angle as the ad frames.

   Its strength is left to the theme through --wash, currently 1 in
   both themes.

   4 November: I showed Ogun three directions and he chose C. While
   coding it I found this light "like a stain" on the neutral paper and
   cut it to .28 -- and did not show him. The screen I sent was not the
   screen he chose; the difference was only at the top of the page,
   #EFEEF0 instead of #E5E2EE. He noticed. It was put back. The lesson:
   a "small" improvement made AFTER a choice is not an improvement if
   it was not shown. */
body::before{
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  opacity:var(--wash,1);
  background:
    linear-gradient(135deg, rgba(var(--violet-up-rgb),.16) 0%, rgba(var(--violet-rgb),.11) 13%,
                    rgba(var(--violet-rgb),.03) 30%, transparent 54%),
    radial-gradient(56% 32% at 50% -4%, rgba(var(--deep-rgb),.18), transparent 70%);
}

/* -- Top bar ----------------------------------------------------------- */
.topbar{
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 22px; border-bottom:1px solid var(--line);
  background:rgba(var(--ink-rgb),.72); backdrop-filter:blur(10px);
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit}
.brand .mk{display:block; flex:none}
.brand b{font-size:14px; font-weight:600; letter-spacing:.26em; padding-left:.26em}
.brand .sep{width:1px; height:18px; background:var(--line); margin:0 4px}
.brand .shop{font-size:14px; color:var(--muted); letter-spacing:.01em}
.topbar .tr{display:flex; align-items:center; gap:12px; font-size:14px}
/* A 44px touch area without the bar growing: enlarge with padding,
   take it back out of the layout with negative margin. The day-end page
   is used on a phone, with a tired hand at the end of a shift -- a 22px
   link is not enough there. */
.topbar .tr a:not(.thmb){
  color:var(--muted); text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; margin-block:-11px;
  padding-inline:7px; margin-inline:-7px;
}
.topbar .tr a:not(.thmb):hover{color:var(--paper)}
/* The theme button is EXEMPT from this rule. The negative
   margin-inline pulled the last item 7px to the right: on a phone it
   ended up 9px from the screen edge instead of 16px. A button with its
   own frame does not need that trick. */

.lockup{display:inline-flex; align-items:center; gap:11px}
.lockup b{font-size:17px; font-weight:500; letter-spacing:.3em; padding-left:.3em}

/* -- Kap --------------------------------------------------------------- */
.wrap{position:relative; z-index:1; max-width:720px; margin:0 auto; padding:30px 20px 80px}
.wrap.wide{max-width:1280px}

h1{font-size:clamp(22px,4.5vw,28px); font-weight:300; letter-spacing:-.02em; margin:0 0 4px}
h2{font-size:19px; font-weight:600; letter-spacing:-.01em; margin:28px 0 10px}
.sub{color:var(--muted); font-size:15px; margin:0 0 26px}

/* -- Card: the 45 deg cut corner ----------------------------------------- */
.card{
  background:var(--panel); border:1px solid var(--line);
  border-radius:var(--r); padding:22px;
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* -- Step indicator --------------------------------------------------- */
ol.prog{list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0 0 26px}
ol.prog li{
  display:flex; align-items:center; gap:7px;
  font-size:12.5px; padding:5px 12px 5px 6px; border-radius:999px;
  border:1px solid var(--line); color:var(--muted); white-space:nowrap;
}
ol.prog li span{
  width:19px; height:19px; border-radius:50%; display:grid; place-items:center;
  font-size:11px; font-weight:700; background:rgba(var(--paper-rgb),.07);
}
ol.prog li.on{border-color:var(--violet); background:rgba(var(--violet-rgb),.16); color:var(--paper); font-weight:600}
ol.prog li.on span{background:var(--violet); color:var(--on-violet)}
ol.prog li.ok{border-color:rgba(var(--violet-up-rgb),.34); color:var(--pale)}
ol.prog li.ok span{background:rgba(var(--violet-up-rgb),.22); color:var(--pale)}

/* -- Fields ------------------------------------------------------------ */
.fld{margin:0 0 18px}
.fld>label{display:block; font-size:14px; font-weight:600; margin-bottom:6px}
.fld>label i{
  font-style:normal; font-size:11px; font-weight:500; color:var(--pale);
  border:1px solid rgba(var(--violet-up-rgb),.35); border-radius:999px;
  padding:1px 8px; margin-left:7px;
}
.fld input,.fld select,.fld textarea{
  width:100%; padding:11px 13px; border-radius:10px;
  border:1px solid var(--line); background:var(--field); color:var(--paper); font:inherit;
}
.fld input:focus,.fld select:focus,.fld textarea:focus{
  outline:2px solid var(--violet); outline-offset:1px; border-color:transparent;
}
.fld small{display:block; color:var(--muted); font-size:13px; margin-top:5px}
.fld em{display:block; color:var(--bad); font-size:13px; font-style:normal; margin-top:5px}
.fld.bad input,.fld.bad select,.fld.bad textarea{border-color:var(--bad)}
.sw{display:flex!important; align-items:center; gap:9px; font-weight:400!important}
.sw input{width:auto}
.g2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width:560px){.g2{grid-template-columns:1fr}}

/* -- Buttons ----------------------------------------------------------- */
.row{display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:22px}
/* The primary button is NOT THE ACCENT COLOUR: near-white in the dark
   theme, near-black in the light, a full pill in both. With colour
   left only on small marks it looks precious -- the earlier version had
   huge violet buttons everywhere and they all drowned each other. */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:13px 26px; border:0; border-radius:999px; cursor:pointer;
  background:var(--primary); color:var(--on-primary);
  font:inherit; font-weight:600; text-decoration:none;
  transition:background .15s, transform .06s, box-shadow .15s;
}
.btn:hover{background:var(--primary-2);
  box-shadow:0 8px 22px -12px rgba(var(--paper-rgb),.55)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:none; box-shadow:none; border:1px solid var(--line); color:var(--muted)}
.btn.ghost:hover{color:var(--paper); border-color:rgba(var(--paper-rgb),.26)}

/* -- Notes ------------------------------------------------------------- */
.note{border-radius:11px; padding:13px 16px; font-size:14px; margin:0 0 20px; border:1px solid}
.note.info{background:rgba(var(--violet-rgb),.10); border-color:rgba(var(--violet-up-rgb),.30)}
.note.good{background:rgba(var(--good-rgb),.09); border-color:rgba(var(--good-rgb),.30); color:var(--good)}
.note.warn{background:rgba(var(--gold-rgb),.09);  border-color:rgba(var(--gold-rgb),.32);  color:var(--gold)}
.note.bad {background:rgba(var(--bad-rgb),.09); border-color:rgba(var(--bad-rgb),.32); color:var(--bad)}
.note a{color:var(--pale)}

/* -- Tablolar ---------------------------------------------------------- */
table{width:100%; border-collapse:collapse; margin:14px 0 0; font-size:14px}
th,td{text-align:left; padding:10px 6px; border-bottom:1px solid var(--line)}
th{font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); font-weight:600}
td.num,th.num{text-align:right}
td input{width:110px; padding:7px 9px; border-radius:8px;
  border:1px solid var(--line); background:var(--field); color:var(--paper); font:inherit}

/* A TIP is always gold, always its own line. A brand rule. */
.tip,.tip td{color:var(--gold)!important; font-weight:600}

/* -- Choice cards ----------------------------------------------------- */
.rd{
  display:flex; gap:12px; align-items:flex-start;
  padding:13px 15px; border:1px solid var(--line); border-radius:11px;
  margin-bottom:9px; cursor:pointer; transition:border-color .15s;
}
.rd:hover{border-color:rgba(var(--paper-rgb),.22)}
.rd:has(input:checked){border-color:var(--violet); background:rgba(var(--violet-rgb),.09)}
.rd input{margin-top:3px}
.rd b{display:block; font-weight:600}
.rd small{color:var(--muted)}
.dot{width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:6px}
.dot.on{background:var(--good)} .dot.off{background:rgba(var(--paper-rgb),.28)}

/* -- Divider: a 45 deg diamond---------------------------------------------- */
.rule{position:relative; height:1px; background:var(--line); margin:30px 0}
.rule::after{
  content:''; position:absolute; left:50%; top:-4px; width:9px; height:9px;
  margin-left:-4.5px; transform:rotate(45deg);
  background:var(--ink); border:1px solid var(--line-lit);
}

:focus-visible{outline:2px solid var(--pale); outline-offset:3px; border-radius:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* =======================================================================
   THE TILL  (body.till)

   A barber uses it standing, one-handed, between two cuts. Every size
   follows from that: 88px touch targets, a 40px amount, nothing
   unnecessary.
   ======================================================================= */

/* The bottom bar is fixed; the last row must not end up under it. */
body.till .wrap{padding:18px 18px 104px}

.till-grid{display:grid; grid-template-columns:1fr 360px; gap:18px; align-items:start}
@media(max-width:900px){.till-grid{grid-template-columns:1fr}}

/* -- The barber strip -------------------------------------------------- */
.who{display:flex; gap:9px; overflow-x:auto; padding-bottom:4px; margin-bottom:22px;
     scrollbar-width:none}
.who::-webkit-scrollbar{display:none}
.who-b{display:flex; align-items:center; gap:10px; flex:none; cursor:pointer;
  padding:9px 16px 9px 9px; border-radius:999px; font:inherit;
  border:1px solid var(--line); background:none; color:var(--muted);
  transition:border-color .14s, color .14s}
.who-b .av{width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  font-size:13px; font-weight:700; background:rgba(var(--paper-rgb),.08); color:var(--paper)}
.who-b .nm{font-size:14.5px; font-weight:600; white-space:nowrap}
.who-b.on{border-color:var(--violet); background:rgba(var(--violet-rgb),.14); color:var(--paper)}
.who-b.on .av{background:var(--violet); color:var(--on-violet)}

/* -- Category heading ------------------------------------------------- */
.cat{font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
     color:var(--faint); margin:22px 0 10px}
.cat:first-of-type{margin-top:0}

/* -- The service cards: an 88px touch target ---------------------------- */
.tiles{display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:10px}
.tile{
  position:relative;              /* the stock badge is positioned against this */
  min-height:112px; display:flex; flex-direction:column;
  align-items:flex-start; gap:9px; text-align:left; cursor:pointer;
  padding:14px 15px; border-radius:13px; font:inherit;
  border:1px solid var(--line); background:var(--panel); color:var(--paper);
  transition:border-color .14s, transform .07s, background .14s;
}
.tile:hover:not(:disabled){border-color:var(--line-lit); background:var(--hover)}
.tile:active:not(:disabled){transform:scale(.98)}
.tile.pop{border-color:var(--violet); background:rgba(var(--violet-rgb),.16)}
.tile:disabled{opacity:.38; cursor:not-allowed}
.tile .t-n{font-size:15px; font-weight:600; line-height:1.25}
.tile .t-p{font-size:16.5px; font-weight:600; letter-spacing:-.01em; margin-top:auto}
.tile.prod .t-p{color:var(--gold)}

/* -- The card icon ----------------------------------------------------
   The circle itself is not subject to the contrast threshold
   (decorative, aria-hidden) but the stroke is a readable tone: --pale
   in dark, --violet in light. Services violet, products gold -- so a
   barber can tell a product line at a glance. */
.tile .ic{
  width:38px; height:38px; flex:none; border-radius:12px;
  display:grid; place-items:center; color:var(--pale);
  background:linear-gradient(160deg, rgba(var(--violet-rgb),.22),
    rgba(var(--violet-rgb),.10));
  border:1px solid rgba(var(--violet-rgb),.26);
  transition:background .14s, border-color .14s, transform .18s;
}
.tile .ic svg{width:19px; height:19px; fill:none; stroke:currentColor;
  stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round}
.tile:hover:not(:disabled) .ic{transform:translateY(-1px)}
.tile.pop .ic{background:var(--violet); color:var(--on-violet);
  border-color:var(--violet)}
.tile.prod .ic{color:var(--gold);
  background:linear-gradient(160deg, rgba(var(--gold-rgb),.22),
    rgba(var(--gold-rgb),.09));
  border-color:rgba(var(--gold-rgb),.28)}
.tile .t-s{position:absolute; top:11px; right:13px; font-size:10.5px; font-weight:700;
  letter-spacing:.04em; color:var(--gold); background:rgba(var(--gold-rgb),.14);
  border:1px solid rgba(var(--gold-rgb),.34); border-radius:999px; padding:2px 8px}
.tile:disabled .t-s{color:var(--muted); background:rgba(var(--paper-rgb),.07); border-color:var(--line)}

/* -- The order panel --------------------------------------------------- */
.order{
  position:sticky; top:16px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r);
  padding:16px 16px 18px;
  clip-path:polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.o-head{display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding-bottom:12px; border-bottom:1px solid var(--line)}
.o-who{font-size:15px; font-weight:700}
.o-clr{background:none; border:0; color:var(--faint); font:inherit; font-size:13px;
  cursor:pointer; padding:4px 8px;
  /* It was 29px. The touch area is 44; negative margin so the header does not grow. */
  display:inline-flex; align-items:center; min-height:44px; margin-block:-8px}
.o-clr:hover{color:var(--bad)}

.lines{list-style:none; margin:0; padding:0}
.lines li{display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center;
  padding:11px 0; border-bottom:1px solid var(--line)}
.lines .l-n{font-size:14.5px; font-weight:500}
.lines .l-a{font-size:14.5px; font-weight:700; min-width:62px; text-align:right}
.l-q{display:flex; align-items:center; gap:3px}
.l-q button{width:26px; height:26px; border-radius:7px; cursor:pointer; font:inherit;
  font-size:15px; line-height:1; border:1px solid var(--line);
  background:none; color:var(--muted)}
.l-q button:hover{color:var(--paper); border-color:var(--line-lit)}
.l-q b{min-width:20px; text-align:center; font-size:14px}
.o-empty{color:var(--faint); font-size:14px; text-align:center; padding:26px 0; margin:0}

/* -- The tip: always separate, always gold ----------------------------- */
.o-tip{display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 0 12px; border-bottom:1px solid var(--line); flex-wrap:wrap}
.o-tip-l{font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold)}
.o-tip-btns{display:flex; gap:5px}
.o-tip-btns button{min-width:48px; min-height:44px; padding:8px 10px;
  border-radius:9px; cursor:pointer;
  font:inherit; font-size:14px; font-weight:600;
  border:1px solid var(--line); background:none; color:var(--muted)}
.o-tip-btns button.on{border-color:var(--gold); background:rgba(var(--gold-rgb),.14); color:var(--gold)}

/* -- Three figures, each separate----------------------------------------- */
.sums{margin:14px 0 0; padding:0}
.sums>div{display:flex; justify-content:space-between; align-items:baseline; padding:4px 0}
.sums dt{font-size:14px; color:var(--muted); margin:0}
.sums dd{font-size:15px; font-weight:600; margin:0}
.sums .tip dt,.sums .tip dd{color:var(--gold)}

.total{display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  margin-top:12px; padding-top:14px; border-top:1px solid var(--line-lit)}
.total span{font-size:13px; color:var(--muted)}
.total strong{font-size:34px; font-weight:700; letter-spacing:-.025em; line-height:1}

/* -- Payment ----------------------------------------------------------- */
.pay{display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:16px}
.pay-b{display:flex; flex-direction:column; align-items:flex-start; gap:3px;
  padding:14px 16px; border-radius:12px; cursor:pointer; font:inherit;
  border:1px solid var(--line); background:none; color:var(--paper);
  transition:filter .14s, transform .06s}
.pay-b .pay-k{font-size:12px; letter-spacing:.1em; text-transform:uppercase; opacity:.75}
.pay-b .pay-a{font-size:19px; font-weight:700}
.pay-b.card{background:linear-gradient(135deg,var(--violet-up),var(--violet) 58%,var(--deep-2));
  border-color:transparent; box-shadow:0 12px 30px -16px rgba(var(--violet-rgb),.95)}
.pay-b:hover:not(:disabled){filter:brightness(1.1)}
.pay-b:active:not(:disabled){transform:translateY(1px)}
.pay-b:disabled{opacity:.34; cursor:not-allowed; box-shadow:none}

.split{margin:12px 0 0; font-size:12.5px; color:var(--faint); text-align:center; min-height:16px}

/* -- The day summary: at the bottom, small, out of the way ------------- */
.daybar{position:fixed; left:0; right:0; bottom:0; z-index:2;
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  padding:10px 20px; font-size:13px; color:var(--muted);
  background:rgba(var(--ink-rgb),.88); backdrop-filter:blur(10px);
  border-top:1px solid var(--line)}
.daybar b{color:var(--paper); font-weight:700}
.daybar .tip,.daybar .tip b{color:var(--gold)}
.daybar a{margin-left:auto; color:var(--pale); text-decoration:none; font-weight:600;
  /* It was 21px. The close-the-day button sits at the very bottom edge
     of the phone; it has to be 44px without the strip growing. */
  display:inline-flex; align-items:center; min-height:44px; margin-block:-11px;
  padding-inline:10px}

/* -- Narrow-screen fixes ----------------------------------------------- */
@media(max-width:560px){
  /* The shop name must not break the header in two: the MATEOS word
     drops, the mark stays. The name a barber needs to confirm is the
     shop's, not the platform's. */
  .brand b{display:none}
  .brand .sep{display:none}
  .brand .shop{font-size:15px; color:var(--paper); font-weight:600;
               white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:46vw}
  .topbar{padding:12px 16px}
}

@media(max-width:900px){
  /* The order panel must not sit BELOW the services: you would have to
     scroll the whole list to see what you added. It stays on top. */
  .order{order:-1; position:static}
  body.till .wrap{padding-left:14px; padding-right:14px}
  .tiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}

/* =======================================================================
   DAY END  (body.dayend)
   ======================================================================= */

body.dayend .wrap{max-width:960px}

/* The day in three figures, each one separate */
.three{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 0 20px}
.three>div{background:var(--panel); border:1px solid var(--line); border-radius:12px;
  padding:15px 17px}
.three span{display:block; font-size:11.5px; letter-spacing:.11em; text-transform:uppercase;
  color:var(--muted); margin-bottom:5px}
.three b{font-size:26px; font-weight:700; letter-spacing:-.02em; display:block}
.three i{display:block; font-style:normal; font-size:11.5px; color:var(--faint); margin-top:4px}
.three .tip span,.three .tip b{color:var(--gold)}
@media(max-width:700px){.three{grid-template-columns:1fr}}

.de-grid{display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start}
@media(max-width:820px){.de-grid{grid-template-columns:1fr}}
body.dayend .card h2:first-child{margin-top:0}

/* The till ledger -- every line visible */
.ledger td{padding:9px 4px; font-size:14.5px}
.ledger td.num{font-variant-numeric:tabular-nums}
.ledger tr.tip td{color:var(--gold)}
.ledger tr.sum td{border-bottom:0; border-top:1px solid var(--line-lit);
  padding-top:13px; font-weight:700; font-size:16px}
.ledger tr.sum.short td{color:var(--bad)}
.ledger tr.sum.over td{color:var(--gold)}
.ledger.done{margin-top:6px}

/* The count field */
.count{margin-top:18px}
.cnt-in{display:flex; align-items:center; gap:0; border:1px solid var(--line);
  border-radius:10px; background:var(--field); overflow:hidden}
.cnt-in:focus-within{outline:2px solid var(--violet); outline-offset:1px}
.cnt-in span{padding:0 4px 0 14px; font-size:22px; font-weight:600; color:var(--muted)}
.cnt-in input{border:0!important; background:none!important; outline:none!important;
  font-size:26px!important; font-weight:700; padding:12px 14px 12px 6px!important;
  letter-spacing:-.02em}
.live{min-height:20px; margin:10px 0 16px; font-size:14px; font-weight:600; color:var(--faint)}
.live.ok{color:var(--good)} .live.short{color:var(--bad)} .live.over{color:var(--gold)}

/* Pay from the till */
body.dayend td.big{font-size:19px; font-weight:700}
body.dayend .cuts{display:block; font-style:normal; font-size:12px; color:var(--faint);
  margin-top:2px}
body.dayend tr.sum td{border-bottom:0; border-top:1px solid var(--line-lit);
  padding-top:12px; font-weight:700}
body.dayend td.tip,body.dayend tr.sum td.tip{color:var(--gold)}
.hint{font-size:12.5px; color:var(--faint); margin:12px 0 0; line-height:1.5}
.hint a{color:var(--pale)}
.none{color:var(--muted); font-size:14px; margin:4px 0 0}

/* On a narrow screen the tables overflowed the card (measured: 353px
   inner width, 326px of room). Padding and type size tighten first; a
   wide table that still does not fit (the 5-column barber breakdown)
   scrolls sideways inside itself -- the card and page layout hold. */
@media(max-width:560px){
  body.dayend th, body.dayend td{padding:9px 4px; font-size:13.5px}
  body.dayend td.big{font-size:17px}
  body.dayend .ledger td{font-size:13.5px; padding:8px 2px}
  body.dayend .ledger tr.sum td{font-size:15px}
  body.dayend .cnt-in input{font-size:22px!important}
  body.dayend .card{padding:18px 15px}
  .three b{font-size:23px}
  /* The last resort: a table that does not fit scrolls inside itself */
  .scrollx{overflow-x:auto; -webkit-overflow-scrolling:touch}
  .scrollx table{min-width:430px}
}

/* =======================================================================
   PANEL  (body.panel)
   ======================================================================= */

body.panel .wrap{max-width:980px}
body.panel .card{margin-bottom:18px}
body.panel .card h2:first-child{margin-top:0}

/* The comparison beside the figure -- a figure on its own is decoration */
.three i.up  {color:var(--good)}
.three i.down{color:var(--bad)}

/* -- Attention list ----------------------------------------------------- */
.attn ul{list-style:none; margin:0; padding:0}
.attn li{display:flex; align-items:flex-start; gap:11px; padding:11px 0;
  border-bottom:1px solid var(--line)}
.attn li:last-child{border-bottom:0; padding-bottom:0}
.attn li::before{content:''; width:8px; height:8px; border-radius:50%;
  margin-top:8px; flex:none}
.attn li.bad::before {background:var(--bad)}
.attn li.warn::before{background:var(--gold)}
.attn li.info::before{background:var(--pale)}
.attn li a{color:var(--paper); text-decoration:none; font-size:14.5px}
.attn li a:hover{text-decoration:underline}
/* The action button. The row's text states the problem; this says
   where to go. A 44px touch area, with negative margin so the row does
   not grow. */
.attn li a.do{margin-left:auto; flex:none; font-size:12.5px; font-weight:600;
  color:var(--pale); white-space:nowrap;
  display:inline-flex; align-items:center; min-height:44px; margin-block:-13px;
  padding-inline:9px; border:1px solid var(--line); border-radius:9px}
.attn li a.do:hover{text-decoration:none; color:var(--paper);
  border-color:var(--pale)}

/* -- The week's four figures ------------------------------------------
   NOT a new card: the heading of the "This week" card. The dashboard
   is four blocks already; a fifth makes it harder to scan. */
.wkfig{display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:11px;
  overflow:hidden; margin:14px 0 4px}
.wkfig>div{background:var(--panel); padding:13px 15px; min-width:0}
.wkfig span{display:block; font-size:10.5px; letter-spacing:.11em;
  text-transform:uppercase; color:var(--muted); margin-bottom:5px}
.wkfig b{display:block; font-size:19px; font-weight:700; letter-spacing:-.02em}
.wkfig i{display:block; font-style:normal; font-size:11px; color:var(--faint);
  margin-top:3px}
@media(max-width:860px){.wkfig{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.wkfig{grid-template-columns:1fr}}

/* -- The barber ranking -----------------------------------------------
   The table is already ordered by takings; the number and the bar make
   that visible. The bar carries no information alone; the numbers are
   in the table. */
.rk{display:inline-grid; place-items:center; width:19px; height:19px;
  border-radius:6px; background:var(--line); color:var(--muted);
  font-size:11px; font-weight:700; margin-right:8px;
  font-variant-numeric:tabular-nums}
.rkbar{display:block; height:3px; border-radius:2px; background:var(--line);
  margin-top:7px; max-width:150px}
.rkbar>span{display:block; height:100%; border-radius:2px;
  background:var(--pale)}

/* -- Figures wear the same face on every screen -----------------------
   The language that began on the dashboard carries across the whole
   application: the till, day end and the lists use the same mono
   figures, and the columns line up.
   BUTTON SIZES ARE NOT TOUCHED -- the till is used one-handed, with a
   wet finger; "dense" there means mistakes. Density is only for things
   that are READ, not things that are pressed. */
td.num, th.num,
.sums dd, .total strong, .pay-a,
.pv-amt, .daybar b, .o-tip-btns button,
.lines .l-a, .lines .l-q b, .split, .tile .t-p{
  font-family:var(--mono); font-variant-numeric:tabular-nums;
  letter-spacing:-.01em;
}
/* Mono figures run wider than the body font; the big day-end figure is
   taken down a notch so the headings are not squeezed. */
.total strong{font-size:31px}
td.num.big{font-size:17px}

/* -- Refunds ----------------------------------------------------------
   The button is at the end of the row, quiet. A refund happens about
   once a day; it must NOT be the loudest thing in the sales list. */
.rbtn{appearance:none; font:inherit; font-size:12.5px; font-weight:600;
  cursor:pointer; color:var(--muted); background:none;
  border:1px solid var(--line); border-radius:9px;
  min-height:44px; padding:0 13px; white-space:nowrap;
  transition:color .14s, border-color .14s}
.rbtn:hover{color:var(--paper); border-color:var(--pale)}
.rbtn:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

/* A refund ROW: a negative amount, and plainly a different thing. */
.sales-t tr.refrow td{color:var(--muted)}
.sales-t tr.refrow td.num{color:var(--bad)}
.rtag{display:inline-block; font-size:10px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; padding:2px 7px; border-radius:6px; margin-right:7px;
  color:var(--bad); background:rgba(var(--bad-rgb),.13);
  border:1px solid rgba(var(--bad-rgb),.3)}

.refbox{margin-top:18px; border-color:var(--line-lit)}
.fldrow{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width:560px){.fldrow{grid-template-columns:1fr}}
.chk{display:flex; align-items:center; gap:10px; min-height:44px;
  font-size:14px; color:var(--muted); cursor:pointer}
.chk input{width:19px; height:19px; accent-color:var(--violet); flex:none}
.chk b{color:var(--gold); font-weight:600}
.refwarn{margin:10px 0 0; font-size:13.5px; color:var(--bad); line-height:1.5}
.refacts{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}

/* -- Day one ----------------------------------------------------------
   The first screen a new shop sees. Things to do, not empty boxes. */
.start .steps{list-style:none; margin:14px 0 0; padding:0; display:grid; gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:11px;
  overflow:hidden}
.start .steps li{display:flex; align-items:center; gap:13px;
  background:var(--panel); padding:14px 16px; min-width:0}
.snum{flex:none; width:25px; height:25px; border-radius:8px; display:grid;
  place-items:center; font-size:12px; font-weight:700;
  background:var(--line); color:var(--muted)}
.start .steps li.done .snum{background:rgba(var(--good-rgb),.18); color:var(--good)}
.stxt{min-width:0; flex:1 1 auto}
.stxt b{display:block; font-size:14.5px; font-weight:600}
.stxt i{display:block; font-style:normal; font-size:12.5px; color:var(--faint);
  margin-top:2px}
.start .steps li.done .stxt b{color:var(--muted)}
.start .steps a.do{flex:none; font-size:12.5px; font-weight:600;
  color:var(--pale); text-decoration:none; white-space:nowrap;
  display:inline-flex; align-items:center; min-height:44px; margin-block:-11px;
  padding-inline:10px; border:1px solid var(--line); border-radius:9px}
.start .steps a.do:hover{color:var(--paper); border-color:var(--pale)}

/* The week divider: Mondays on the 14-day chart. A gap, not a line --
   a line competes with the bars, a gap does not. */
.chart .bar.wk{margin-left:9px}

/* -- The dense dashboard ----------------------------------------------
   Direction: "a trading terminal". Little space, many figures, one big
   number. Figures in Geist Mono -- the columns line up and the screen
   reads as a dashboard, not as a web page. */
.fig{font-family:var(--mono); font-variant-numeric:tabular-nums;
  letter-spacing:-.01em}
.dim{color:var(--faint)}
.up{color:var(--good)} .down{color:var(--bad)}

.dtop{display:flex; align-items:baseline; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin-bottom:14px}
.dtop h1{margin:0}
.dtop .sub{margin:2px 0 0}
.dstamp{margin:0; font-family:var(--mono); font-size:12px; color:var(--faint);
  letter-spacing:.04em}

/* Today's strip: one hero figure on the left, six small ones on the right. */
.strip{display:grid; grid-template-columns:minmax(220px,.9fr) minmax(0,2fr);
  gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:12px; overflow:hidden; margin-bottom:12px}
.strip .hero{background:var(--panel); padding:16px 18px; min-width:0}
.strip .hero span{display:block; font-size:10.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted)}
.strip .hero b{display:block; font-size:40px; font-weight:700;
  letter-spacing:-.03em; line-height:1.05; margin:6px 0 4px}
.strip .hero i{display:block; font-style:normal; font-size:12px;
  color:var(--faint)}
.strip .hero i.up{color:var(--good)} .strip .hero i.down{color:var(--bad)}
.kv{display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); margin:0}
.kv>div{background:var(--panel); padding:12px 15px; min-width:0}
.kv dt{font-size:10.5px; letter-spacing:.11em; text-transform:uppercase;
  color:var(--muted); margin:0}
.kv dd{margin:4px 0 0; font-size:19px; font-weight:600; letter-spacing:-.02em}
.kv .tip dt,.kv .tip dd{color:var(--gold)}
@media(max-width:900px){.strip{grid-template-columns:1fr}
  .kv{grid-template-columns:repeat(2,1fr)}}
@media(max-width:430px){.kv{grid-template-columns:1fr 1fr}
  .strip .hero b{font-size:32px}}

/* Who is working: count, takings, tips -- on one line. */
.who2{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));
  gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:12px; overflow:hidden; margin-bottom:18px}
.wrow{background:var(--panel); padding:11px 14px; display:flex;
  align-items:center; gap:9px; min-width:0}
.wini{flex:none; width:23px; height:23px; border-radius:7px;
  display:grid; place-items:center; font-size:11px; font-weight:700;
  background:var(--line); color:var(--muted)}
.wrow.on .wini{background:rgba(var(--violet-rgb),.22); color:var(--pale)}
.wnm{font-size:14px; font-weight:600; min-width:0; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.wn{margin-left:auto; font-size:12px; color:var(--faint)}
.wn::after{content:' cuts'}
.wp{font-size:14px; font-weight:700}
.wt{font-size:12px; color:var(--gold)}
.wnone{margin-left:auto; font-size:12px; color:var(--faint)}

/* The week comparison table */
table.cmp{width:100%; border-collapse:collapse; margin-top:12px;
  font-size:13px; min-width:0}
table.cmp th{font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); font-weight:600; text-align:left; padding:0 0 7px}
table.cmp th.num,table.cmp td.num{text-align:right}
table.cmp td{padding:7px 0; border-top:1px solid var(--line)}
table.cmp td:first-child{color:var(--muted)}
table.cmp td.num{padding-left:12px}

/* The dense table: tighter rows, mono figures */
table.dense{font-size:13px}
table.dense th{font-size:10px; padding-bottom:8px}
table.dense td{padding:9px 0}

/* -- The dashboard: two columns ---------------------------------------
   Left: how things are going (attention + 14 days). Right: patterns
   (hours + mix). Below 1180px it drops to one column; squeezing two
   columns onto a narrow screen makes the chart unreadable. */
.dash2{display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:18px; align-items:start; margin-bottom:18px}
.dashcol{display:flex; flex-direction:column; gap:18px; min-width:0}
.dashcol>section{margin:0}
@media(max-width:1180px){.dash2{grid-template-columns:1fr}}

/* -- How busy the day is ----------------------------------------------
   One colour, one series. The busiest hour is marked BY DARKNESS, not
   by colour -- the dashboard already has two violet tones and a third
   cannot be told apart. */
.hours{display:flex; align-items:flex-end; gap:3px; height:120px;
  margin:16px 0 6px}
.hours .hr{flex:1; min-width:0; display:flex; flex-direction:column;
  justify-content:flex-end; align-items:center; height:100%}
.hours .hr-fill{display:block; width:100%; border-radius:3px 3px 0 0;
  background:rgba(var(--violet-rgb),.45); min-height:2px}
.hours .hr.top .hr-fill{background:var(--violet)}
.hours .hr-h{display:block; font-size:9.5px; color:var(--faint);
  margin-top:5px; font-variant-numeric:tabular-nums}

/* -- What sells -------------------------------------------------------
   Ordered by takings; the count is secondary, small and faint. */
.mix{list-style:none; margin:14px 0 0; padding:0}
.mix li{display:grid; grid-template-columns:1fr auto auto; gap:10px;
  align-items:baseline; padding:9px 0; border-bottom:1px solid var(--line)}
.mix li:last-child{border-bottom:0}
.mix-n{font-size:14px; min-width:0; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap}
.mix-v{font-size:14px; font-weight:700; font-variant-numeric:tabular-nums}
.mix-c{font-size:11.5px; color:var(--faint); font-variant-numeric:tabular-nums;
  min-width:30px; text-align:right}
.mix-bar{grid-column:1 / -1; height:3px; border-radius:2px;
  background:var(--line); margin-top:2px}
.mix-bar>span{display:block; height:100%; border-radius:2px;
  background:rgba(var(--violet-rgb),.6)}

/* -- The chart: one series, one colour --------------------------------
   Today is NOT marked BY COLOUR -- measured, two violet tones cannot
   be told apart even with normal vision (deltaE 8.8, threshold 15).
   Today is marked by its label and a stronger day name. */
.chart{position:relative; display:flex; align-items:flex-end; gap:6px;
  height:170px; margin:18px 0 8px; padding-top:22px}
.chart .bar{flex:1; display:flex; flex-direction:column; justify-content:flex-end;
  align-items:center; height:100%; position:relative; cursor:default;
  border-radius:6px}
.chart .bar:focus-visible{outline:2px solid var(--pale); outline-offset:2px}
.bar-fill{display:block; width:100%; border-radius:4px 4px 0 0;
  background:var(--violet); min-height:3px; transition:filter .12s}
.chart .bar:hover .bar-fill,.chart .bar:focus .bar-fill{filter:brightness(1.25)}
.bar-day{display:block; font-size:10.5px; color:var(--faint); margin-top:7px;
  letter-spacing:.02em}
.chart .bar.now .bar-day{color:var(--paper); font-weight:700}
.bar-lab{position:absolute; top:-20px; left:50%; transform:translateX(-50%);
  font-size:11.5px; font-weight:700; white-space:nowrap; color:var(--paper)}
/* A day left unclosed: a gold dot. There is a small key below so
   colour does not carry it alone. */
.bar-open{position:absolute; bottom:-15px; left:50%; transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%; background:var(--gold)}

.tip-box{position:absolute; top:-4px; padding:7px 11px; border-radius:9px;
  background:var(--float); border:1px solid var(--line-lit); font-size:12.5px;
  color:var(--muted); white-space:nowrap; pointer-events:none; z-index:3}
.tip-box b{display:block; color:var(--paper); font-size:14px; font-weight:700}

.legend-l{display:flex; align-items:center; gap:7px; margin:14px 0 0;
  font-size:12px; color:var(--faint)}
.sw-open{width:6px; height:6px; border-radius:50%; background:var(--gold);
  display:inline-block}
.note-l{color:var(--muted); font-size:14px; margin:0}
.note-l b{color:var(--paper)}
body.panel td.tip{color:var(--gold)}

@media(max-width:560px){
  .chart{height:140px; gap:4px}
  .bar-day{font-size:9.5px}
  body.panel th, body.panel td{padding:9px 4px; font-size:13.5px}
}

/* =======================================================================
   THE PAYMENT CURTAIN

   During a card payment a barber looks at one thing: did it go through
   or not. So the curtain covers the whole screen and holds one big
   figure and one sentence. Cancel while waiting, continue when done.
   ======================================================================= */
.pv{
  position:fixed; inset:0; z-index:60; display:none;
  place-items:center; padding:24px;
  background:rgba(var(--ink-rgb),.86); backdrop-filter:blur(6px);
}
.pv.on{display:grid}
.pv-card{
  width:100%; max-width:440px; text-align:center;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r);
  padding:34px 28px 26px;
  box-shadow:0 1px 0 rgba(var(--paper-rgb),.05) inset, 0 40px 80px -40px rgba(var(--shadow-rgb),.95);
}
.pv-dot{
  width:54px; height:54px; margin:0 auto 18px; border-radius:var(--r);
  display:grid; place-items:center;
  background:rgba(var(--violet-up-rgb),.16); border:1px solid var(--line-lit);
}
.pv-dot span{width:12px; height:12px; border-radius:3px; background:var(--violet-up)}
.pv.ok  .pv-dot{background:rgba(var(--good-rgb),.13); border-color:rgba(var(--good-rgb),.30)}
.pv.ok  .pv-dot span{background:var(--good)}
.pv.bad .pv-dot{background:rgba(var(--bad-rgb),.13); border-color:rgba(var(--bad-rgb),.30)}
.pv.bad .pv-dot span{background:var(--bad)}
.pv-amt{display:block; font-size:44px; font-weight:700; letter-spacing:-.03em; line-height:1}
.pv-msg{display:block; margin-top:14px; font-size:19px; font-weight:600}
.pv.ok  .pv-msg{color:var(--good)}
.pv.bad .pv-msg{color:var(--bad)}
.pv-sub{display:block; margin-top:8px; font-size:14px; color:var(--muted); line-height:1.55}
.pv-tip{display:block; margin-top:10px; font-size:14px; color:var(--gold)}
.pv-acts{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:24px}
.pv-acts .btn{min-width:132px}

/* inline errors -- the ones too small to be worth opening the curtain */
.till-err{
  margin:10px 0 0; padding:11px 14px; border-radius:10px; font-size:14px;
  background:rgba(var(--bad-rgb),.10); border:1px solid rgba(var(--bad-rgb),.26);
  color:var(--bad);
}
.till-err:empty{display:none}

/* -- The login screen ---------------------------------------------------
   One card, centred, one-handed on a phone. Nothing else at all. */
.login-wrap{display:grid; place-items:center; min-height:70vh; padding:24px 0}
.login-card{width:100%; max-width:420px}
.login-card h1{margin:0 0 4px; font-size:28px}
.login-card .sub{margin:0 0 22px}
.login-card .row{margin-top:20px}
.login-card .btn{width:100%; justify-content:center}
.login-card .hint{margin-top:18px; padding-top:16px; border-top:1px solid var(--line)}

/* ==== panel: the sidebar shell ======================================
   The design board showed an application shell with 13 sections; the
   real panel was a top bar with three links. The shell is defined
   HERE, not in src/ui.php: that is used by till, dayend, setup and
   login as well, and there is no sense in risking four working screens
   for a change to this shell.

   Sections not yet written return no 404; they show a designed screen
   that says what they will do. No dead links are left. */
body.shell .wrap{max-width:none; padding:0}
.shellgrid{display:flex; flex-wrap:wrap; align-items:stretch; min-height:100dvh}

.rail{flex:0 0 264px; display:flex; flex-direction:column; gap:4px;
  padding:18px 14px 14px; background:var(--ink-2);
  border-right:1px solid var(--line)}
.railtop{display:flex; align-items:center; gap:11px; padding:4px 8px 16px}
.railtop b{display:block; font-size:14px; font-weight:800; letter-spacing:.13em}
.railtop span{display:block; font-size:12.5px; color:var(--muted); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.railgroup{margin-top:14px}
.grouplab{margin:0 0 6px; padding:0 10px; font-size:10.5px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--faint)}
.navbtn{display:flex; align-items:center; gap:11px; width:100%; min-height:44px;
  padding:0 11px; border-radius:10px; font-size:14.5px; color:var(--muted);
  text-decoration:none}
.navbtn:hover{color:var(--paper); background:rgba(var(--paper-rgb),.05)}
.navbtn[aria-current="page"]{color:var(--paper); background:rgba(var(--violet-rgb),.16);
  box-shadow:inset 0 0 0 1px var(--line-lit)}
.navdot{flex:none; width:22px; height:22px; border-radius:6px; display:grid;
  place-items:center; background:rgba(var(--paper-rgb),.06)}
.navdot i{width:7px; height:7px; border-radius:2px; background:var(--faint); display:block}
.navbtn[aria-current="page"] .navdot{background:rgba(var(--violet-up-rgb),.22)}
.navbtn[aria-current="page"] .navdot i{background:var(--violet-up)}
.navtext{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap}
.navn{flex:none; font-size:11.5px; font-weight:700; padding:3px 8px; border-radius:8px;
  background:rgba(var(--paper-rgb),.07); color:var(--faint)}
/* The pale violet text fell to 4.41:1 once the ground rose to Proton
   level. The badge is SMALL and BOLD: a counter that is misread is
   useless. With --paper it is 8.32:1. */
.navbtn[aria-current="page"] .navn{background:rgba(var(--violet-up-rgb),.2); color:var(--paper)}
.navn.hot{background:rgba(var(--bad-rgb),.14); color:var(--bad)}

.work{flex:1 1 560px; min-width:0; padding:30px 26px 80px; max-width:1500px}

/* Who is working */
.whorow{display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  padding:14px 16px; margin-bottom:18px; border-radius:var(--r);
  background:var(--panel); border:1px solid var(--line)}
.wholab{font-size:10.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--faint); margin-right:4px}
.whochip{display:inline-flex; align-items:center; gap:9px; min-height:40px;
  padding:0 14px 0 8px; border-radius:22px; background:rgba(var(--paper-rgb),.04);
  border:1px solid var(--line); font-size:14px}
.whochip.on{border-color:rgba(var(--good-rgb),.4)}
.whoini{width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  font-size:12px; font-weight:700; background:rgba(var(--violet-up-rgb),.2); color:var(--pale)}
.whochip.on .whoini{background:rgba(var(--good-rgb),.18); color:var(--good)}
.whochip .n{color:var(--muted); font-size:13px}

/* A section not yet written -- not a blank page, a designed state */
.todo{padding:30px 26px; text-align:left}
.todo .flag{display:inline-block; font-size:10.5px; font-weight:800;
  letter-spacing:.12em; text-transform:uppercase; padding:5px 11px;
  border-radius:8px; background:rgba(var(--gold-rgb),.14); color:var(--gold);
  margin-bottom:14px}
.todo h2{margin:0 0 8px; font-size:22px; font-weight:600}
.todo p{margin:0 0 12px; color:var(--muted); font-size:14.5px; line-height:1.65;
  max-width:62ch}
.todo ul{margin:0 0 4px; padding-left:18px; color:var(--muted); font-size:14px;
  line-height:1.7; max-width:62ch}
.todo .where{margin-top:18px; padding-top:16px; border-top:1px solid var(--line);
  font-size:13px; color:var(--faint)}

/* The sales list */
.sales-t{width:100%; border-collapse:collapse; font-size:14px; min-width:620px}
.sales-t th{text-align:left; padding:11px 14px; font-size:10.5px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--faint);
  background:rgba(var(--paper-rgb),.04); white-space:nowrap}
.sales-t td{padding:12px 14px; border-top:1px solid var(--line); vertical-align:top}
.sales-t tr.void td{opacity:.5; text-decoration:line-through}
.sales-t .m{display:inline-block; font-size:11px; font-weight:700; padding:3px 8px;
  border-radius:7px; background:rgba(var(--paper-rgb),.07); color:var(--muted)}
.sales-t .m.mcard{background:rgba(var(--violet-up-rgb),.16); color:var(--pale)}
/* A CLASS COLLISION: I first gave the badge class="m card", and .card
   is the big card component -- its 45-degree cut corner and its border
   were applied to a tiny badge, and the word "card" was clipped to
   "car". In an existing codebase, search before choosing a class
   name. */
.sales-t .items{display:block; font-size:12.5px; color:var(--faint); margin-top:3px}

/* Desktop: the sidebar is one column, with Till/Day end/Sign out at the bottom. */
.railnav{display:flex; flex-direction:column; flex:1 1 auto; min-width:0}
.railfoot{margin-top:auto}

/* The "Needs attention" links were 23px -- not a finger target.
   They had ALREADY been that way in the panel; measured today. */
.attn li a{display:flex; align-items:center; min-height:44px}

/* Phone: the menu is ONE ROW, scrolling sideways.
   On the first measurement the sidebar was 508px wide on a 390px
   screen and scrolled the page sideways: .railtop had no min-width:0,
   and the nowrap shop name locked the box to its content width.
   Wrapping 16 buttons meant 4 rows -- half the screen. */
@media(max-width:900px){
  /* flex-wrap:wrap was left in the base rule; combined with
     flex-direction:column the children opened COLUMNS of their own and
     overflowed the container -- on a 390px screen the sidebar became
     1480px. nowrap is required. */
  .shellgrid{flex-direction:column; flex-wrap:nowrap; align-items:stretch}
  .rail{flex:1 1 auto; min-width:0; flex-direction:column; gap:0;
    border-right:0; border-bottom:1px solid var(--line); padding:12px 14px 0}
  .railtop{min-width:0; padding:0 4px 10px}
  .railnav{flex-direction:row; flex-wrap:nowrap; overflow-x:auto;
    scrollbar-width:none; gap:7px; padding-bottom:10px}
  .railnav::-webkit-scrollbar{display:none}
  .railgroup{display:contents}
  .railfoot{margin-top:0}
  .grouplab{display:none}
  .navbtn{width:auto; flex:0 0 auto; padding:0 13px; white-space:nowrap}
  .navdot{display:none}
  .work{padding:22px 16px 70px}
}

/* ---- the theme switch -----------------------------------------------
   Three states: Auto (the operating system), Light, Dark. No JS -- the
   links add ?theme=, the server writes the cookie and returns to the
   clean URL. */
/* The theme button: single, 44px, with an icon.
   There used to be three labels side by side; I measured, and the box
   was 99px while the labels wanted 133px -- they overlapped. Without
   flex:none everything inside a flex row shrinks quietly, and the bug
   is invisible too. */
.thmb{flex:none; display:inline-flex; align-items:center; justify-content:center;
  gap:7px; min-width:44px; min-height:44px; padding:0 11px; border-radius:11px;
  color:var(--muted); text-decoration:none; border:1px solid var(--line);
  background:rgba(var(--paper-rgb),.04);
  transition:color .14s, border-color .14s, background .14s}
.thmb:hover{color:var(--paper); border-color:var(--line-lit);
  background:rgba(var(--paper-rgb),.07)}
.thmb:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.thmb svg{display:block; flex:none}
/* In the top bar, the icon alone: the setting is used once a day and
   need not take up room all the time. In the rail the word is there
   beside it. */
.thmb-t{display:none; font-size:12.5px; font-weight:600; letter-spacing:.01em}
.rail .thmb{width:100%; margin-top:10px; justify-content:flex-start;
  padding-inline:13px}
.rail .thmb .thmb-t{display:inline}
@media(max-width:900px){
  /* On a narrow screen the rail turns into a horizontal strip; the
     button should go back to its own size rather than full width. */
  .rail .thmb{width:auto; margin:0 0 10px}
}

/* The brand link was 26px -- on every page, and not a finger target.
   Not one of my additions; it surfaced during the theme measurement. */
.brand{min-height:44px}


/* === THE SALES LIST: toolbar, chips, summary strip, breakdown =======
   3 November 2026. The screen went from one day to the whole ledger;
   that is why these parts exist. All of them draw on existing tokens,
   with NO new colour -- the EsquireOS green/gold palette belongs
   there, and bringing it here would give MATEOS two identities.
   Touch targets are min-height:44px explicitly: the text in the chips
   is small, so padding alone gave 41px. */

.stools{display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:0 0 14px}
.sfind{display:flex; align-items:center; gap:8px; flex:1 1 280px;
  /* max-width: at 1480px the search box swallowed the whole row and
     the toolbar looked like one giant box. */
  max-width:480px; min-width:0; background:var(--field); border:1px solid var(--line);
  border-radius:var(--r); padding:0 6px 0 12px}
.sfind svg{width:15px; height:15px; flex:none; stroke:var(--faint);
  fill:none; stroke-width:2; stroke-linecap:round}
.sfind input[type=search]{flex:1 1 auto; min-width:0; min-height:44px;
  appearance:none; background:none; border:0; outline:0; color:var(--paper);
  font:inherit; font-size:14px}
.sfind input[type=search]::placeholder{color:var(--faint)}
.sfind input[type=search]:focus-visible{outline:none}
.sfind:focus-within{border-color:var(--line-lit)}
.sfind .btn{flex:none}

.schips{display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin:0 0 14px}
.chip{display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 15px; border-radius:100px; font-size:13px;
  font-weight:600; color:var(--muted); text-decoration:none;
  background:var(--panel); border:1px solid var(--line); white-space:nowrap}
.chip:hover{color:var(--paper); border-color:rgba(var(--paper-rgb),.26)}
.chip.on{background:var(--violet); border-color:var(--violet);
  color:var(--on-violet)}
.chip.on:hover{color:var(--on-violet)}
.chip.off{opacity:.42}
.chip.clr{color:var(--pale); border-color:var(--line-lit)}
.chip:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
/* The date chip: what is visible is OUR icon + text, and the
   <input type=date> is a transparent layer on top. The reason is
   written in panel.php -- in short, every browser draws that input
   differently and iOS Safari draws nothing at all when the value is
   empty; the chip looked like an empty oval. */
.chip.chipd{position:relative; padding:0 15px; gap:8px}
.chip.chipd .cal{width:15px; height:15px; flex:none; fill:none;
  stroke:currentColor; stroke-width:1.9; stroke-linecap:round}
.chip.chipd .dtxt{white-space:nowrap}
.chip.chipd input[type=date]{position:absolute; inset:0; width:100%;
  height:100%; min-height:44px; margin:0; padding:0; border:0;
  appearance:none; background:none; color:transparent; opacity:0;
  cursor:pointer; font:inherit}
/* 44px, NOT 42: the target is the input itself. At 42 the measurement
   said "1 small target" and it was right. */
.chip.chipd:focus-within{border-color:var(--line-lit)}
.chip.chipd:focus-within .dtxt{color:var(--paper)}

/* The summary strip. The first box is big, the others small: the eye
   should go to the takings first, then to how they break down. */
.sumbar{display:flex; align-items:stretch; gap:0; flex-wrap:wrap;
  background:var(--panel); border:1px solid var(--line);
  border-radius:var(--r); padding:14px 4px; margin:0 0 16px}
.sumbar .sm{display:flex; flex-direction:column; gap:2px; padding:2px 18px;
  flex:0 0 auto; border-left:1px solid var(--line); min-width:0}
.sumbar .sm:first-child{border-left:0}
.sumbar .sm.main{flex:1 1 180px}
.sumbar .k{font-size:9.5px; font-weight:700; letter-spacing:.14em;
  color:var(--faint)}
.sumbar .v{font-family:var(--mono); font-size:17px; font-weight:600;
  color:var(--paper); line-height:1.15; letter-spacing:-.01em}
.sumbar .sm.main .v{font-size:27px}
.sumbar .v.gold{color:var(--gold)}
.sumbar .v.neg{color:var(--bad)}
.sumbar .s{font-size:11.5px; color:var(--muted); font-weight:600}

/* The day heading; it separates the groups in the "All" view. */
.sales-t tr.dayh td{padding:16px 14px 8px; border-top:1px solid var(--line);
  background:rgba(var(--paper-rgb),.03)}
.sales-t tbody:first-of-type tr.dayh td{border-top:0}
.sales-t tr.dayh .dl{font-size:10.5px; font-weight:700; letter-spacing:.12em;
  color:var(--faint)}
.sales-t tr.dayh .dr{float:right; font-family:var(--mono); font-size:14px;
  font-weight:600; color:var(--paper)}
.sales-t tr.dayh .dr small{font-family:var(--f); font-size:11px;
  font-weight:600; color:var(--muted); margin-left:8px}

.sales-t td.acts{white-space:nowrap}
.sales-t td.acts .rbtn{margin-right:6px}
.rtag.dtag{background:rgba(var(--gold-rgb),.16); color:var(--gold)}
/* The label saying this is the second row of one payment. A neutral
   colour: this is an explanation, not a warning. */
.rtag.otag{background:rgba(var(--paper-rgb),.08); color:var(--muted);
  letter-spacing:.06em; text-transform:none}

.dbtn{appearance:none; width:44px; height:44px; padding:0; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  background:none; border:1px solid var(--line); border-radius:var(--r);
  color:var(--muted)}
.dbtn svg{width:16px; height:16px; fill:none; stroke:currentColor;
  stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;
  transition:transform .14s ease}
.dbtn:hover{color:var(--paper); border-color:rgba(var(--paper-rgb),.26)}
.dbtn.open svg{transform:rotate(180deg)}
.dbtn:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

/* The breakdown. Four columns: what was sold, who got what, how it was
   paid, the reference. EsquireOS does not show this breakdown at all;
   if it did, with float money the shares might not add up to the
   sale. */
.sales-t tr.detail td{padding:0 14px 16px; border-top:0;
  background:rgba(var(--paper-rgb),.03)}
.dgrid{display:grid; gap:14px 26px;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.dcol h4{margin:0 0 7px; font-size:9.5px; font-weight:700;
  letter-spacing:.14em; color:var(--faint); text-transform:uppercase}
.dcol p{display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin:0 0 5px; font-size:13px; line-height:1.45}
.dcol p span{color:var(--muted); min-width:0}
.dcol p b{font-family:var(--mono); font-weight:600; color:var(--paper);
  white-space:nowrap}
.dcol p b.mono{font-size:11.5px; color:var(--muted); white-space:normal;
  word-break:break-all; text-align:right}
.dcol p b.gold{color:var(--gold)}
.dcol p b.neg{color:var(--bad)}
.dcol p.tot{margin-top:7px; padding-top:7px;
  border-top:1px solid var(--line)}
.dcol p.tot span{color:var(--paper); font-weight:600}

.spag{display:flex; align-items:center; justify-content:center; gap:8px;
  margin:16px 0 0}

@media (max-width:640px){
  .sumbar{padding:12px 2px}
  .sumbar .sm{padding:2px 12px}
  .sumbar .sm.main .v{font-size:23px}
  .sales-t tr.dayh .dr{float:none; display:block; margin-top:3px}
}


/* === THE TILL: category rail, barber per line, breakdown, keypad ====
   3 November 2026. With a barber per line, the order line grew to two
   rows: name + amount above, barber picker + quantity below. Fitting
   it on one row meant 26px touch targets, and that does not work with
   scissors in your hand. */

.catrail{display:flex; gap:8px; overflow-x:auto; padding:0 2px 4px;
  margin:0 0 18px; scrollbar-width:none}
.catrail::-webkit-scrollbar{display:none}
.crb{flex:none; min-height:44px; padding:0 16px; border-radius:100px;
  font:inherit; font-size:13.5px; font-weight:600; cursor:pointer;
  color:var(--muted); background:var(--panel); border:1px solid var(--line);
  white-space:nowrap}
.crb:hover{color:var(--paper); border-color:rgba(var(--paper-rgb),.26)}
.crb.on{background:var(--violet); border-color:var(--violet); color:var(--on-violet)}
.crb:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
/* [hidden] ALWAYS wins.
   The browser's own [hidden]{display:none} rule has the same
   specificity as our class rules such as .osplit{display:flex}; on a
   tie the author stylesheet wins and the element is NOT HIDDEN.
   3 November: the hold badge printed an empty "0", the empty discount
   strip took 44px and the empty breakdown box stood 26px tall -- all
   for exactly this reason. One rule closes them all; !important is
   right here. */
[hidden]{display:none !important}

.catblock[hidden]{display:none}

/* -- The order line: two rows, everything 44px ---------------------- */
.lines li{display:grid; grid-template-columns:1fr auto;
  grid-template-areas:"n a" "b q"; gap:6px 10px;
  padding:11px 0; border-bottom:1px solid var(--line); align-items:center}
.lines .l-n{grid-area:n}
.lines .l-a{grid-area:a}
.lines .l-b{grid-area:b; min-width:0}
.lines .l-q{grid-area:q}

/* The barber per line: the operating system's own picker. A custom
   dropdown always works worse on a touch screen. */
.l-b select{appearance:none; font:inherit; font-size:12.5px; font-weight:600;
  min-height:44px; max-width:100%; padding:0 26px 0 11px; cursor:pointer;
  color:var(--muted); background:var(--field); border:1px solid var(--line);
  border-radius:100px;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),
                   linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat}
.l-b select:hover{color:var(--paper); border-color:var(--line-lit)}
.l-b select:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

.l-q button{width:44px; height:44px; border-radius:10px}
.l-q b{min-width:26px}
.l-q .l-x{color:var(--faint)}
.l-q .l-x:hover{color:var(--bad); border-color:var(--bad)}

/* There for screen readers; not visible to the eye. */
.vh{position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

/* -- Breakdown: who gets what, before payment ----------------------- */
.osplit{display:flex; flex-direction:column; gap:7px; margin:0 0 14px;
  padding:12px 13px; border-radius:11px; background:var(--field);
  border:1px solid var(--line)}
.osplit .osp{display:grid; grid-template-columns:1fr auto auto; gap:10px;
  align-items:baseline; font-size:13px}
.osplit .osp .n{font-weight:600; color:var(--paper)}
.osplit .osp .g{font-weight:600; color:var(--paper)}
.osplit .osp .s{color:var(--muted); font-size:12px}
.osplit .ospn{font-size:11px; font-weight:600; letter-spacing:.06em;
  color:var(--faint); padding-top:6px; border-top:1px solid var(--line)}

/* -- The keypad ----------------------------------------------------- */
.np{position:fixed; inset:0; z-index:60; display:none;
  align-items:center; justify-content:center; padding:18px;
  background:rgba(0,0,0,.62); backdrop-filter:blur(3px)}
.np.on{display:flex}
.np-card{width:100%; max-width:340px; display:flex; flex-direction:column;
  gap:12px; padding:20px; border-radius:var(--r);
  background:var(--float); border:1px solid var(--line)}
.np-ttl{font-size:11.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--faint)}
.np-v{font-family:var(--mono); font-size:34px; font-weight:600;
  letter-spacing:-.02em; color:var(--paper); line-height:1}
.np-sub{font-size:13px; font-weight:600; color:var(--good); min-height:18px}
.np-sub.short{color:var(--bad)}
.np-keys{display:grid; grid-template-columns:repeat(3,1fr); gap:8px}
.np-keys button{min-height:56px; border-radius:11px; cursor:pointer;
  font:inherit; font-size:19px; font-weight:600; color:var(--paper);
  background:var(--panel); border:1px solid var(--line)}
.np-keys button:hover{border-color:var(--line-lit); background:var(--hover)}
.np-keys button:active{transform:scale(.97)}
.np-keys button:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.np-acts{display:flex; gap:8px}
.np-acts .btn{flex:1; justify-content:center}
.np-acts .btn:disabled{opacity:.42; cursor:not-allowed}


/* === THE TILL: top strip, order tools, curtains =====================
   3 November 2026, second pass. What the EsquireOS till had and we did
   not: the clock, the status lights, discounts, hold, custom items. */

.tbar{display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap; margin:0 0 16px}
.tclock{display:flex; align-items:baseline; gap:9px}
.tclock b{font-family:var(--mono); font-size:19px; font-weight:600;
  color:var(--paper); letter-spacing:-.01em}
.tclock i{font-style:normal; font-size:12.5px; color:var(--faint);
  font-weight:600}
.tpills{display:flex; gap:7px; flex-wrap:wrap}
/* A light changes colour IF THERE IS A PROBLEM; normally it stays quiet. */
.pill{display:inline-flex; align-items:baseline; gap:6px; padding:5px 11px;
  border-radius:100px; font-size:11px; font-weight:700; letter-spacing:.04em;
  color:var(--muted); background:var(--panel); border:1px solid var(--line)}
.pill i{font-style:normal; font-weight:600; color:var(--faint)}
.pill.on{border-color:rgba(var(--good-rgb),.34)}
.pill.on i{color:var(--good)}
.pill.off i{color:var(--gold)}
.pill.bad{border-color:rgba(var(--bad-rgb),.44)}
.pill.bad i{color:var(--bad)}

/* -- Order tools ------------------------------------------------- */
.otools{display:grid; grid-template-columns:repeat(3,1fr); gap:7px;
  padding:12px 0 0}
.ot{position:relative; min-height:44px; padding:0 8px; cursor:pointer;
  font:inherit; font-size:12.5px; font-weight:600; color:var(--muted);
  background:var(--field); border:1px solid var(--line); border-radius:10px}
.ot:hover{color:var(--paper); border-color:var(--line-lit)}
.ot:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.otn{position:absolute; top:-6px; right:-6px; min-width:19px; height:19px;
  padding:0 5px; border-radius:100px; display:inline-grid; place-items:center;
  font-size:10.5px; font-weight:700; background:var(--violet);
  color:var(--on-violet)}

/* -- The discount applied: always visible, always removable ---------- */
.odisc{display:flex; align-items:center; gap:10px; margin:12px 0 0;
  padding:9px 10px 9px 13px; border-radius:10px;
  background:rgba(var(--gold-rgb),.11); border:1px solid rgba(var(--gold-rgb),.32)}
.odisc .odn{flex:1; min-width:0; font-size:13px; font-weight:600;
  color:var(--gold); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.odisc .oda{font-family:var(--mono); font-size:13.5px; font-weight:600;
  color:var(--gold)}
.odx{width:44px; height:44px; margin:-10px -6px -10px 0; cursor:pointer;
  background:none; border:0; color:var(--gold); font-size:19px; line-height:1}
.odx:hover{color:var(--bad)}
.odx:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

.sums .disc dd{color:var(--gold)}

/* -- Curtains: discount, orders on hold, custom item ----------------- */
.sheet{position:fixed; inset:0; z-index:60; display:none;
  align-items:center; justify-content:center; padding:18px;
  background:rgba(0,0,0,.62); backdrop-filter:blur(3px)}
.sheet.on{display:flex}
.sheet-card{width:100%; max-width:400px; max-height:86dvh; overflow-y:auto;
  display:flex; flex-direction:column; gap:12px; padding:20px;
  border-radius:var(--r); background:var(--float); border:1px solid var(--line)}
.sheet-t{font-size:11.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--faint)}
.sheet-n{margin:0; font-size:12.5px; color:var(--muted); line-height:1.5}
.sheet-list{display:flex; flex-direction:column; gap:7px}
.sli{display:grid; grid-template-columns:1fr auto; gap:3px 12px;
  min-height:56px; padding:10px 14px; cursor:pointer; text-align:left;
  font:inherit; border-radius:11px; background:var(--panel);
  border:1px solid var(--line); color:var(--paper)}
.sli:hover{border-color:var(--line-lit); background:var(--hover)}
.sli:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.sli.on{border-color:var(--violet); background:rgba(var(--violet-rgb),.16)}
.sli-n{font-size:14.5px; font-weight:600}
.sli-v{font-family:var(--mono); font-size:14px; font-weight:600;
  color:var(--gold); text-align:right}
.sli-s{grid-column:1 / -1; font-size:11.5px; color:var(--faint);
  font-weight:600}
.sheet-card .fld{margin:0}


/* === THE TILL: the barber PIN and their own day =====================
   The lock button sits beside the barber chip: choosing "who is next"
   and "my day" are separate jobs and must not share one button. */
/* A grid item's default min-width:auto grows to its widest content.
   Once 44px lock buttons were added to the barber strip, the strip
   went past the phone's width and pushed THE WHOLE column to 492px --
   despite being scrollable. Without min-width:0, .who's
   overflow-x:auto does nothing at all. */
.till-grid > .pane{min-width:0}
.who-w{display:flex; align-items:center; gap:4px; flex:none}
.who-lock{width:44px; height:44px; flex:none; cursor:pointer;
  display:inline-grid; place-items:center; border-radius:50%;
  background:none; border:1px solid var(--line); color:var(--faint)}
.who-lock svg{width:15px; height:15px; fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round}
.who-lock:hover{color:var(--paper); border-color:var(--line-lit)}
.who-lock:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

/* Dots, not digits, while a PIN is typed: the till is in the middle of the shop. */
.np-v{min-height:38px}

.mine-who{font-size:20px; font-weight:700; color:var(--paper)}
dl.mine{margin:0; display:flex; flex-direction:column; gap:1px}
dl.mine div{display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; padding:9px 0; border-bottom:1px solid var(--line)}
dl.mine div:last-child{border-bottom:0}
dl.mine dt{margin:0; font-size:13px; color:var(--muted)}
dl.mine dd{margin:0; font-family:var(--mono); font-size:15px; font-weight:600;
  color:var(--paper)}
dl.mine div.big dt{color:var(--paper); font-weight:600; font-size:14px}
dl.mine div.big dd{font-size:27px; letter-spacing:-.02em}
dl.mine div.tip dt, dl.mine div.tip dd{color:var(--gold)}
dl.mine div.tip dd{font-size:13.5px}

/* Panel Staff: the PIN forms sit inline in the row */
.pinform{display:inline-flex; align-items:center; gap:5px; margin:0 5px 0 0}
.pinform input[type=password]{width:104px; min-height:44px; font:inherit;
  font-size:13px; padding:0 11px; border-radius:10px; color:var(--paper);
  background:var(--field); border:1px solid var(--line)}
.pinform input[type=password]:focus-visible{outline:2px solid var(--violet);
  outline-offset:2px}


/* === THE TILL: THREE COLUMNS ========================================
   3 November, second pass. The first version had two columns, with the
   barber selection and the categories across the top. That was my
   decision and not the layout Ogun had used for a year. The left rail
   is fixed now: barbers, categories and today are always visible. */
.till3{display:grid; grid-template-columns:244px 1fr 372px; gap:16px;
  align-items:start}
@media(max-width:1180px){.till3{grid-template-columns:212px 1fr}
  .till3 .order{grid-column:1 / -1}}
@media(max-width:760px){.till3{grid-template-columns:1fr}}
.till3 > *{min-width:0}

/* -- Left rail ------------------------------------------------------- */
.rail{position:sticky; top:16px; display:flex; flex-direction:column;
  gap:7px; padding:14px 12px; border-radius:var(--r);
  background:var(--panel); border:1px solid var(--line)}
.rail-h{font-size:9.5px; font-weight:700; letter-spacing:.16em;
  color:var(--faint); padding:8px 4px 2px}
.rail-h:first-child{padding-top:0}
.rail-b,.rail-c,.rail-t{display:flex; flex-direction:column; gap:5px}

.rbw{display:flex; align-items:center; gap:5px}
.rb{flex:1; min-width:0; display:flex; align-items:center; gap:10px;
  min-height:54px; padding:0 11px; cursor:pointer; text-align:left;
  font:inherit; border-radius:12px; background:none;
  border:1px solid transparent; color:var(--muted)}
.rb:hover{background:var(--hover); color:var(--paper)}
.rb .av{width:32px; height:32px; flex:none; border-radius:50%;
  display:grid; place-items:center; font-size:13px; font-weight:700;
  background:rgba(var(--paper-rgb),.08); color:var(--paper)}
.rb .rbt{display:flex; flex-direction:column; min-width:0}
.rb .rbt b{font-size:14.5px; font-weight:600; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.rb .rbt i{font-style:normal; font-size:11.5px; color:var(--faint)}
.rb.on{background:rgba(var(--violet-rgb),.14); border-color:var(--violet);
  color:var(--paper)}
.rb.on .av{background:var(--violet); color:var(--on-violet)}
.rb.on .rbt i{color:var(--pale)}
.rb:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

.rblock{width:44px; height:44px; flex:none; cursor:pointer;
  display:inline-grid; place-items:center; border-radius:50%;
  background:none; border:1px solid var(--line); color:var(--faint)}
.rblock svg{width:14px; height:14px; fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round}
.rblock:hover{color:var(--paper); border-color:var(--line-lit)}
.rblock:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

.rc{display:flex; align-items:center; gap:10px; min-height:44px;
  padding:0 11px; cursor:pointer; text-align:left; font:inherit;
  font-size:14px; font-weight:600; border-radius:10px; background:none;
  border:1px solid transparent; color:var(--muted)}
.rc svg{width:15px; height:15px; flex:none; fill:none;
  stroke:currentColor; stroke-width:1.8}
.rc:hover{background:var(--hover); color:var(--paper)}
.rc.on{background:var(--ink-2); color:var(--paper);
  border-color:var(--line)}
.rc:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

.rt{display:grid; grid-template-columns:1fr auto; gap:1px 8px;
  padding:10px 12px; border-radius:11px; text-decoration:none;
  background:var(--field); border:1px solid var(--line)}
a.rt:hover{border-color:var(--line-lit)}
.rtl{font-size:13px; font-weight:600; color:var(--paper)}
.rtv b{font-family:var(--mono); font-size:15px; color:var(--paper)}
.rts{grid-column:1 / -1; font-size:11.5px; color:var(--faint)}
.rts span{font-family:var(--mono)}

/* -- Bottom strip: Hold / Discount / Custom / Clear --------------------- */
.actbar{display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
  margin:20px 0 0; padding:12px 0 0; border-top:1px solid var(--line)}
.ab{position:relative; display:flex; align-items:center;
  justify-content:center; gap:7px; min-height:48px; padding:0 10px;
  cursor:pointer; font:inherit; font-size:13px; font-weight:600;
  color:var(--muted); background:none; border:1px solid var(--line);
  border-radius:11px}
.ab svg{width:15px; height:15px; flex:none; fill:none;
  stroke:currentColor; stroke-width:1.9; stroke-linecap:round}
.ab:hover{color:var(--paper); border-color:var(--line-lit)}
.ab.danger:hover{color:var(--bad); border-color:var(--bad)}
.ab:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.abn{position:absolute; top:-6px; right:8px; min-width:19px; height:19px;
  padding:0 5px; border-radius:100px; display:inline-grid;
  place-items:center; font-size:10.5px; font-weight:700;
  background:var(--violet); color:var(--on-violet)}

/* -- Order heading ------------------------------------------------- */
.o-ttl{font-size:9.5px; font-weight:700; letter-spacing:.16em;
  color:var(--faint)}
.o-foot{display:flex; flex-direction:column}

/* -- ONE button ------------------------------------------------------- */
/* === THE CHARGE BUTTON ==========================================
   The one button pressed ~40 times a day. None of the motion here is
   ornament; each piece answers a question:

     did I press it?   -> a real press-in, inner shadow (not scale)
     did it change?    -> the figure slides up when the amount changes
     is it going?      -> a progress band the width of the button
     did it work?      -> a tick in place of the arrow

   The one ornament is the glow, and it is NOT A LOOP: it passes once,
   when the order first becomes chargeable.

   With prefers-reduced-motion everything switches off; colour and
   state remain, because motion carries information and it has to read
   without motion too. */
.charge{position:relative; overflow:hidden; isolation:isolate;
  display:grid; grid-template-columns:1fr auto; gap:0 14px;
  align-items:center; min-height:70px; margin:4px 0 0;
  padding:0 11px 0 22px; cursor:pointer; font:inherit; text-align:left;
  border:0; border-radius:999px;
  background:var(--primary); color:var(--on-primary);
  box-shadow:0 1px 0 rgba(var(--ink-rgb),.5) inset,
             0 10px 26px -14px rgba(var(--paper-rgb),.6);
  transition:background .16s, box-shadow .2s, transform .09s,
             opacity .2s}
.charge .ch-l{display:flex; flex-direction:column; gap:1px; min-width:0}
.charge .ch-k{font-size:12.5px; font-weight:500; opacity:.66}
.charge .ch-a{font-family:var(--mono); font-size:27px; font-weight:600;
  letter-spacing:-.035em; line-height:1.1}

@keyframes chRoll{
  0%  {transform:translateY(0);    opacity:1}
  42% {transform:translateY(-70%); opacity:0}
  43% {transform:translateY(70%);  opacity:0}
  100%{transform:translateY(0);    opacity:1}
}
.charge .ch-a.roll{animation:chRoll .3s cubic-bezier(.4,0,.2,1)}

.charge .ch-go{position:relative; width:48px; height:48px; flex:none;
  border-radius:999px; display:grid; place-items:center;
  background:rgba(var(--ink-rgb),.14);
  transition:background .18s, transform .18s}
.charge .ch-go svg{grid-area:1/1; width:19px; height:19px; fill:none;
  stroke:currentColor; stroke-width:2.1; stroke-linecap:round;
  stroke-linejoin:round; transition:opacity .18s, transform .22s}
.charge .ch-tick{opacity:0; transform:scale(.6)}
.charge .ch-spin{position:absolute; inset:3px; border-radius:999px;
  border:2px solid rgba(var(--ink-rgb),.22);
  border-top-color:currentColor; opacity:0}

.charge:hover:not(:disabled){background:var(--primary-2);
  box-shadow:0 1px 0 rgba(var(--ink-rgb),.5) inset,
             0 16px 34px -14px rgba(var(--paper-rgb),.7)}
.charge:hover:not(:disabled) .ch-go{background:rgba(var(--ink-rgb),.2)}
.charge:hover:not(:disabled) .ch-arr{transform:translateX(3px)}
/* The press is NOT SCALE but an inner shadow: on touch, scale feels
   like "did it slip", an inner shadow feels like "I pressed". */
.charge:active:not(:disabled){transform:translateY(1px);
  box-shadow:0 2px 7px rgba(var(--ink-rgb),.3) inset,
             0 4px 12px -8px rgba(var(--paper-rgb),.5)}
.charge:disabled{opacity:.38; cursor:not-allowed; box-shadow:none}

.ch-sheen{position:absolute; inset:0; z-index:-1; opacity:0;
  background:linear-gradient(105deg, transparent 32%,
    rgba(var(--ink-rgb),.16) 48%, transparent 64%)}
@keyframes chSheen{
  0%  {opacity:0; transform:translateX(-62%)}
  18% {opacity:1}
  100%{opacity:0; transform:translateX(62%)}
}
.charge.armed .ch-sheen{animation:chSheen .72s ease-out}

/* Sending: indeterminate progress. Stripe does not say how long it
   will take; rather than show an invented percentage, the right thing
   is only to say "this has not stalled". */
@keyframes chBar{
  0%  {transform:translateX(-100%)}
  100%{transform:translateX(100%)}
}
@keyframes chSpin{to{transform:rotate(360deg)}}
.charge.busy{cursor:progress}
.charge.busy::after{content:''; position:absolute; left:0; right:0;
  bottom:0; height:3px; background:currentColor; opacity:.5;
  animation:chBar 1.1s cubic-bezier(.65,0,.35,1) infinite}
.charge.busy .ch-arr{opacity:0}
.charge.busy .ch-spin{opacity:1; animation:chSpin .8s linear infinite}

.charge.done{background:var(--good); color:var(--ink)}
.charge.done .ch-arr{opacity:0; transform:scale(.6)}
.charge.done .ch-tick{opacity:1; transform:scale(1)}
.charge.done .ch-go{background:rgba(var(--ink-rgb),.18)}
/* On the green ground the "Paid" label stayed at 3.83:1 with .66 opacity. */
.charge.done .ch-k{opacity:.88}

@media (prefers-reduced-motion:reduce){
  .charge,.charge .ch-go,.charge .ch-go svg{transition:none}
  .charge .ch-a.roll,.charge.armed .ch-sheen,
  .charge.busy .ch-spin{animation:none}
  .charge.busy::after{animation:none; opacity:.5}
}
.charge:focus-visible{outline:2px solid var(--violet); outline-offset:3px}

/* -- Zil ------------------------------------------------------------- */
.bell{position:relative; width:44px; height:44px; cursor:pointer;
  display:inline-grid; place-items:center; border-radius:12px;
  background:var(--panel); border:1px solid var(--line);
  color:var(--muted)}
.bell svg{width:16px; height:16px; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.bell:hover{color:var(--paper); border-color:var(--line-lit)}
.bell:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.bn{position:absolute; top:-5px; right:-5px; min-width:18px; height:18px;
  padding:0 5px; border-radius:100px; display:grid; place-items:center;
  font-size:10.5px; font-weight:700; background:var(--bad); color:#fff}
.logbody{display:flex; flex-direction:column; gap:6px; max-height:46dvh;
  overflow-y:auto}
.lg{display:grid; grid-template-columns:1fr auto; gap:2px 10px;
  padding:9px 12px; border-radius:10px; background:var(--panel);
  border:1px solid var(--line)}
.lg.err{border-color:rgba(var(--bad-rgb),.4)}
.lg-t{font-size:13.5px; font-weight:600; color:var(--paper)}
.lg.err .lg-t{color:var(--bad)}
.lg-a{font-family:var(--mono); font-size:11.5px; color:var(--faint)}
.lg-s{grid-column:1 / -1; font-size:12px; color:var(--muted)}

/* -- The payment screen ---------------------------------------------- */
.pm{position:fixed; inset:0; z-index:62; display:none;
  align-items:center; justify-content:center; padding:18px;
  background:rgba(0,0,0,.66); backdrop-filter:blur(4px)}
.pm.on{display:flex}
.pm-card{width:100%; max-width:430px; max-height:92dvh; overflow-y:auto;
  display:flex; flex-direction:column; gap:14px; padding:22px;
  border-radius:var(--r); background:var(--float);
  border:1px solid var(--line)}
.pm-l{font-size:9.5px; font-weight:700; letter-spacing:.16em;
  color:var(--faint)}
.pm-hero{display:flex; flex-direction:column; gap:6px; align-items:center;
  text-align:center; padding:4px 0 2px}
.pm-amt{font-family:var(--mono); font-size:40px; font-weight:600;
  letter-spacing:-.025em; color:var(--paper); line-height:1}
.pm-chips{display:flex; gap:6px; flex-wrap:wrap; justify-content:center}
.pm-chip{font-size:11.5px; font-weight:600; color:var(--muted);
  padding:4px 10px; border-radius:100px; background:var(--panel);
  border:1px solid var(--line)}
.pm-chip.gold{color:var(--gold); border-color:rgba(var(--gold-rgb),.34)}

.pm-opts{display:flex; flex-direction:column; gap:9px}
.pm-opt{display:grid; grid-template-columns:auto 1fr; gap:3px 13px;
  padding:15px 16px; cursor:pointer; text-align:left; font:inherit;
  border-radius:14px; background:var(--panel);
  border:1px solid var(--line); color:var(--paper)}
.pm-opt:hover:not(:disabled){border-color:var(--line-lit);
  background:var(--hover)}
.pm-opt:disabled{opacity:.45; cursor:not-allowed}
.pm-opt:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
.pm-ic{grid-row:1 / 4; width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center;
  background:rgba(var(--violet-rgb),.16); color:var(--pale)}
.pm-opt.cash .pm-ic{background:rgba(var(--gold-rgb),.16); color:var(--gold)}
.pm-ic svg{width:20px; height:20px; fill:none; stroke:currentColor;
  stroke-width:1.9}
.pm-n{font-size:17px; font-weight:700}
.pm-d{font-size:12.5px; color:var(--muted); line-height:1.4}
.pm-go{font-size:12px; font-weight:600; color:var(--pale); padding-top:3px}
.pm-opt.cash .pm-go{color:var(--gold)}
.pm-opt:disabled .pm-go{color:var(--faint)}

.pm-split{display:flex; flex-wrap:wrap; gap:4px 16px; padding:11px 13px;
  border-radius:11px; background:var(--field); border:1px solid var(--line);
  font-size:12.5px; color:var(--muted)}
.pm-split b{color:var(--paper); font-weight:600}

.pm-back-row{display:flex; align-items:center; gap:10px}
.pm-back{width:44px; height:44px; flex:none; cursor:pointer;
  display:grid; place-items:center; font-size:24px; line-height:1;
  border-radius:12px; background:var(--panel); border:1px solid var(--line);
  color:var(--muted)}
.pm-back:hover{color:var(--paper)}
.pm-rcv{width:100%; min-height:62px; cursor:pointer; font:inherit;
  font-family:var(--mono); font-size:28px; font-weight:600;
  letter-spacing:-.02em; color:var(--paper); text-align:left;
  padding:0 16px; border-radius:13px; background:var(--field);
  border:1px solid var(--line)}
.pm-rcv:hover{border-color:var(--line-lit)}
.pm-quick{display:grid; grid-template-columns:repeat(4,1fr); gap:7px}
.pq{min-height:48px; cursor:pointer; font:inherit; font-size:14px;
  font-weight:600; border-radius:11px; color:var(--muted);
  background:var(--panel); border:1px solid var(--line)}
.pq:hover{color:var(--paper); border-color:var(--line-lit)}
.pq.on{background:var(--violet); border-color:var(--violet);
  color:var(--on-violet)}
.pm-change{display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; padding:13px 15px; border-radius:12px;
  background:rgba(var(--good-rgb),.12); border:1px solid rgba(var(--good-rgb),.34)}
.pm-change span{font-size:13px; font-weight:600; color:var(--good)}
.pm-change strong{font-family:var(--mono); font-size:22px; font-weight:600;
  color:var(--good)}
.pm-short{margin:0; font-size:13px; font-weight:600; color:var(--bad)}

/* ======================================================================
   THE TILL: A FIXED-HEIGHT SHELL   (3 November 2026, third pass)

   Measured: the till fitted on one screen ONLY on a 1920x1080 desktop.
   On an iPhone SE the page was 2283px against a 667px screen -- 1616px
   of scroll, plus horizontal overflow. iPad mini portrait: +881. Even
   a 1440x900 laptop: +60. So it worked nowhere except at the size I
   took screenshots at. My geometry measurement said "0 problem
   screens" because it asks whether elements overflow their box, NOT
   WHETHER THE PAGE FITS THE SCREEN. A correct answer to the wrong
   question.

   The fix is what EsquireOS does: not a page but an APPLICATION SHELL.
   The body is 100dvh and never scrolls. Only two places scroll: the
   service grid and the order list. The panes are not rounded cards
   but edge-to-edge columns with a single line between them. This is
   what Ogun meant by "corners, frames, boxes are better in EsquireOS":
   there were no cards, there were columns.

   We use dvh, not vh: in iOS Safari vh stays fixed while the address
   bar slides, and the bottom of the page falls BEHIND the address bar
   -- the charge button becomes invisible. dvh is the live height.
   ====================================================================== */
body.till{height:100dvh; overflow:hidden; display:flex; flex-direction:column}
body.till::before{display:none}            /* no ground glow in the shell */
body.till .topbar{flex:none}
body.till .wrap{flex:1 1 auto; min-height:0; max-width:none; margin:0;
  padding:0; display:flex; flex-direction:column}
body.till .wrap > .note{flex:none; margin:10px 14px 0; border-radius:10px}
body.till .tbar{flex:none; padding:10px 16px; margin:0;
  border-bottom:1px solid var(--line)}

.till3{flex:1 1 auto; min-height:0; display:grid; gap:0;
  grid-template-columns:248px minmax(0,1fr) 368px;
  grid-template-areas:"rail pane order"; align-items:stretch}
.till3 > *{min-width:0; min-height:0}

/* The panes: columns, not cards. No rounded corners, no shadow, one line. */
.till3 .rail{grid-area:rail; position:static; top:auto; height:100%;
  border:0; border-right:1px solid var(--line); border-radius:0;
  background:var(--ink-2); padding:12px 10px; gap:6px;
  overflow-y:auto; overscroll-behavior:contain}
.till3 .pane{grid-area:pane; display:flex; flex-direction:column;
  min-height:0; background:transparent}
.till3 .order{grid-area:order; height:100%; display:flex; flex-direction:column;
  min-height:0; border:0; border-left:1px solid var(--line);
  border-radius:0; background:var(--ink-2); padding:0}

/* The one place that scrolls: the service grid. The bottom strip stays fixed. */
.panescroll{flex:1 1 auto; min-height:0; overflow-y:auto;
  overscroll-behavior:contain; padding:14px 16px 16px;
  -webkit-overflow-scrolling:touch}
.till3 .actbar{flex:none; margin:0; padding:10px 14px;
  border-top:1px solid var(--line); background:var(--ink-2); border-radius:0}

/* The order: head and foot fixed, the lines scroll. */
.till3 .o-head{flex:none; padding:13px 16px; margin:0;
  border-bottom:1px solid var(--line)}
.till3 .lines{flex:1 1 auto; min-height:0; overflow-y:auto;
  overscroll-behavior:contain; padding:6px 16px}
.till3 .o-empty{flex:none; padding:0 16px}
.till3 .odisc{flex:none; margin:0 16px}
.till3 .o-foot{flex:none; padding:12px 16px 14px;
  border-top:1px solid var(--line)}

/* The service card: CENTRED, like EsquireOS. Icon on top, name, price.
   I had left-aligned it; an eye looking at six cards at once scans the
   middle. */
.tile{align-items:center; justify-content:center; text-align:center; gap:7px}
.tile .ic{margin-bottom:1px}
.tile .t-p{margin-top:0}
.tiles{grid-template-columns:repeat(auto-fill,minmax(152px,1fr))}

/* -- Tablet / narrow laptop: the rail goes horizontal, on top ----------
   Three columns are cramped below 1024. The rail becomes a HORIZONTAL
   strip on top; the barber selection and the categories are still
   ALWAYS visible, as in EsquireOS. The DOM does not change, only the
   grid area. */
@media (max-width:1023px), (max-height:639px){
  .till3{grid-template-columns:minmax(0,1fr) 322px;
    grid-template-rows:auto minmax(0,1fr);
    grid-template-areas:"rail rail" "pane order"}
  .till3 .rail{flex-direction:row; align-items:center; height:auto;
    overflow-x:auto; overflow-y:hidden; gap:7px; padding:9px 12px;
    border-right:0; border-bottom:1px solid var(--line)}
  .till3 .rail > *{flex:none}
  .till3 .rail-h{padding:0 2px 0 0; font-size:9px}
  .till3 .rail-b,.till3 .rail-c,.till3 .rail-t{flex-direction:row; gap:6px}
  .till3 .rail-t{display:none}        /* the "today" boxes are in the panel already */
  .till3 .rail .rbt i{display:none}   /* The "Active" row: saves room */
}
/* On a low screen (iPhone sideways: 393px high) every pixel counts. */
@media (max-height:559px){
  body.till .tbar{display:none}
  .panescroll{padding:10px 12px}
  .tile{min-height:84px; padding:10px 11px}
  .tile .ic{width:30px; height:30px; border-radius:9px}
  .tile .ic svg{width:16px; height:16px}
}

/* -- Phone: one column, the order anchored at the bottom ---------------
   The order does not go to a separate screen: a barber must not press
   the charge button without seeing the amount. The list scrolls inside
   itself; the total and the charge button are always visible. */
@media (max-width:699px){
  .till3{grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr) auto;
    grid-template-areas:"rail" "pane" "order"}
  .till3 .order{border-left:0; border-top:1px solid var(--line);
    max-height:46dvh}
  .till3 .lines{padding:4px 14px}
  .till3 .o-head{padding:10px 14px}
  .till3 .o-foot{padding:10px 14px 12px}
  .till3 .actbar{grid-template-columns:repeat(4,1fr); gap:5px; padding:8px 10px}
  .till3 .actbar .ab{font-size:11.5px; padding:0 4px}
  .tiles{grid-template-columns:repeat(auto-fill,minmax(124px,1fr)); gap:8px}
  .panescroll{padding:12px 14px}
}

/* -- Phone, second pass: top chrome and the order foot ----------------
   On the first attempt the top (warning + clock strip) ate 298px and
   the order foot alone was 338px; the charge button ran off the bottom
   of the screen. Both were shrunk on phones. The charge button never
   disappears: a barber must not put a finger down without seeing the
   amount. */
@media (max-width:699px){
  body.till .tbar .tpills{display:none}       /* the lights are in the panel too */
  body.till .tbar{padding:7px 14px}
  body.till .tbar .tclock b{font-size:17px}
  body.till .wrap > .note{margin:8px 12px 0; padding:9px 12px; font-size:12.5px}
  .till3{grid-template-rows:auto minmax(150px,1fr) auto}
  .till3 .order{max-height:none}
  .till3 .lines{max-height:21dvh}
  .till3 .o-head{padding:9px 14px}
  .till3 .o-tip{padding:0 0 8px}
  .till3 .o-tip-btns button{min-height:44px; font-size:13px}
  .till3 .sums div{padding:4px 0}
  .till3 .sums dt,.till3 .sums dd{font-size:13px}
  .till3 .sums div.big dd{font-size:27px}
  .till3 .split{font-size:12px; padding:7px 10px}
  .till3 .charge{min-height:58px; padding:9px 16px}
  .till3 .charge .c-a{font-size:21px}
  .till3 .charge .c-l{font-size:11px}
}

/* -- Third pass: COMPRESSION DEPENDS ON HEIGHT, NOT WIDTH --------------
   The earlier block switched phone compression on with max-width:699.
   The wrong measure: turn an iPhone SIDEWAYS and the width becomes 852
   while the height drops to 393 -- compression stays off and the
   charge button sits at 648px, 255px below the screen. It was not
   enough on an iPhone SE (667 high) either. Compression is tied to
   height; width only decides HOW MANY COLUMNS there are. */
@media (max-height:700px){
  body.till .tbar .tpills{display:none}
  body.till .tbar{padding:6px 14px}
  body.till .wrap > .note{margin:7px 12px 0; padding:8px 12px; font-size:12.5px}
  .till3 .o-head{padding:8px 14px}
  .till3 .o-tip{padding:0 0 7px}
  .till3 .o-tip-btns button{min-height:44px; font-size:13px}
  .till3 .sums div{padding:3px 0}
  .till3 .sums dt,.till3 .sums dd{font-size:12.5px}
  .till3 .sums div.big dd{font-size:25px}
  .till3 .split{font-size:11.5px; padding:6px 10px}
  .till3 .charge{min-height:56px; padding:8px 15px}
  .till3 .charge .c-a{font-size:20px}
  .till3 .charge .c-l{font-size:10.5px}
  .till3 .lines{max-height:none}
}
/* The list shortens FIRST, the foot never. If the charge button will
   not stay on screen the till is useless anyway. */
@media (max-width:699px){
  .till3{grid-template-rows:auto minmax(104px,1fr) auto}
  .till3 .order{max-height:54dvh}
  .till3 .lines{max-height:none; flex:1 1 auto; min-height:0}
}

/* -- Fourth pass: THE CHARGE BUTTON IS NOT NEGOTIABLE -------------------
   Measurements: at 852x393 the order foot is 325px and the room for it
   is 202px. The cause is the tip buttons: in a 322px column five
   buttons wrap onto two rows. Rather than trimming each screen size
   one by one I am setting an invariant -- the tip and the subtotals
   scroll IF NEEDED, the charge button NEVER scrolls. A button pressed
   without seeing the amount means the wrong money; that is why it is
   pinned to the bottom.
   Not a shadow but a solid block in the panel colour: no text should
   seep through from underneath.
   -------------------------------------------------------------------- */
@media (max-height:760px){
  .till3 .lines{flex:0 1 auto; max-height:32%}
  /* The foot ITSELF does not scroll; ONLY the subtotals scroll inside it.
     In the first version the whole foot was a scrolling box with the
     charge button stuck to it (position:sticky); on a phone turned
     sideways, once the scrolling area fell to ~56px, the sticky button
     sat ON TOP OF THE TIP BUTTONS -- a barber could not press "1 pound
     tip". Not a visible bug but a touch conflict; tests/screens.js
     caught it.
     When room runs out, the order of importance is: charge > total >
     tip > subtotals. So the subtotals are the one thing that scrolls. */
  .till3 .o-foot{flex:1 1 auto; min-height:0; overflow:hidden;
    display:flex; flex-direction:column; padding-bottom:12px}
  .till3 .o-foot > .o-tip{flex:none}
  .till3 .o-foot > dl.sums{flex:0 1 auto; min-height:0; overflow-y:auto;
    overscroll-behavior:contain}
  .till3 .o-foot > .total{flex:none}
  .till3 .o-foot > .osplit{flex:none}
  .till3 .o-tip-btns{display:flex; flex-wrap:nowrap; overflow-x:auto;
    gap:6px; scrollbar-width:none}
  .till3 .o-tip-btns::-webkit-scrollbar{display:none}
  .till3 .o-tip-btns button{flex:none; min-width:54px}
  .till3 .charge{position:relative; flex:none; margin-top:0;
    box-shadow:none}
}

/* -- Narrow BUT low: a phone turned sideways ----------------------------
   667x375 (iPhone SE sideways) does not work in one column: rail +
   grid + order stacked do not fit in 375px. On a phone turned sideways
   what is short is VERTICAL room; horizontal room is plentiful. So we
   switch to two columns even at phone width. The measure is not "is it
   a phone" but "is there room". */
@media (max-width:699px) and (max-height:539px){
  .till3{grid-template-columns:minmax(0,1fr) 262px;
    grid-template-rows:auto minmax(0,1fr);
    grid-template-areas:"rail rail" "pane order"}
  .till3 .order{max-height:none; border-top:0;
    border-left:1px solid var(--line)}
  .till3 .lines{max-height:30%}
  body.till .wrap > .note{display:none}   /* the warning is in the panel too */
}

/* The stock badge: once the card was centred, the badge at top right
   sat on top of the icon (the words "out of stock" were over the
   bottle). It is now a band along the card's bottom edge. No collision,
   and "you cannot press this card" reads more clearly as a line
   cutting right across the card. */
.tile .t-s{top:auto; right:auto; left:0; bottom:0; width:100%;
  border-radius:0 0 12px 12px; border:0; border-top:1px solid var(--line);
  text-align:center; padding:4px 6px; font-size:10px; letter-spacing:.06em;
  text-transform:uppercase; background:rgba(var(--gold-rgb),.16)}
.tile:disabled .t-s{background:rgba(var(--paper-rgb),.08)}
.tile:has(.t-s){padding-bottom:28px}

/* ======================================================================
   PHONE: THE ORDER IS A DRAWER THAT OPENS FROM THE BOTTOM
   Fifth pass. In the fourth pass everything FITTED on a phone screen,
   but the service grid was left with 110px -- a clean measurement and
   an unusable screen. Top chrome + rail + a fixed order panel ate 55%
   of 393x852. On a phone the order cannot be a fixed column: it is a
   closed drawer. Closed, the item count + charge button are visible
   (the amount is on the button already); a touch opens it. The grid
   takes the whole screen.
   ====================================================================== */
.o-grab{display:none}
@media (max-width:699px) and (min-height:540px){
  body.till .tbar{display:none}            /* the clock: gave its place to the grid */
  .till3{grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    grid-template-areas:"rail" "pane"}

  .till3 .order{position:fixed; left:0; right:0; bottom:0; top:auto;
    z-index:40; max-height:none; height:auto; border-top:1px solid var(--line);
    border-left:0; background:var(--ink-2);
    box-shadow:0 -14px 34px -18px rgba(var(--shadow-rgb),.9)}
  /* Closed: only the handle and the charge button. */
  /* Hiding is done with :not(.open), not by hiding and then re-showing.
     In the first version I wrote display:revert to re-show -- revert
     wipes the author styles TOO, so .o-head lost its flex and "CURRENT
     ORDER" sat on top of "Next: Deniz". With no rule at all in the
     open state, the original values stay as they are. */
  .till3 .order:not(.open) > .o-head,
  .till3 .order:not(.open) > .lines,
  .till3 .order:not(.open) > .o-empty,
  .till3 .order:not(.open) > .odisc,
  .till3 .order:not(.open) .o-foot > .o-tip,
  .till3 .order:not(.open) .o-foot > dl.sums,
  .till3 .order:not(.open) .o-foot > .total,
  .till3 .order:not(.open) .o-foot > .osplit{display:none}
  .till3 .order.open{max-height:88dvh}
  .till3 .order.open > .lines{max-height:30dvh; overflow-y:auto}
  .till3 .o-foot{overflow:visible; padding:10px 14px 14px; border-top:0}
  .till3 .order.open .o-foot{border-top:1px solid var(--line)}
  .till3 .charge{position:relative; margin-top:0; box-shadow:none}

  .o-grab{display:flex; width:100%; align-items:center; justify-content:space-between;
    gap:10px; min-height:46px; padding:0 15px; cursor:pointer;
    font:inherit; font-size:13px; font-weight:600; letter-spacing:.02em;
    color:var(--muted); background:none; border:0;
    border-bottom:1px solid var(--line)}
  .o-grab:focus-visible{outline:2px solid var(--violet); outline-offset:-2px}
  .og-c{width:17px; height:17px; flex:none; fill:none; stroke:currentColor;
    stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
    transition:transform .18s}
  .order.open .og-c{transform:rotate(180deg)}

  /* The grid and the bottom strip must not end up under the drawer. */
  .till3 .pane{padding-bottom:142px}
  .till3 .actbar{position:relative; z-index:1}
}

/* With the drawer open the background dims: the rest of the screen is
   not for touching right now. body::before was off in the shell; it is
   switched back on here. */
@media (max-width:699px) and (min-height:540px){
  body.till.dopen .till3::before{content:""; position:fixed;
    inset:0; z-index:39; background:rgba(0,0,0,.52);
    backdrop-filter:blur(2px)}
}

/* ======================================================================
   iOS: DOUBLE-TAP ZOOM  (3 November 2026, evening)

   Ogun touches the drawer arrow on an iPhone and it does not open. In
   the screenshot the page is zoomed ~2.5x and shifted right. The chain:

     no touch-action -> Safari waits ~300ms after every touch to see
     "is this a double tap" -> the button responds late -> the barber
     touches again -> Safari counts that as a DOUBLE TAP and zooms ->
     on a zoomed page, position:fixed elements take touches NOT where
     they are drawn but relative to the layout viewport -> no touch
     lands any more.

     So the first touch did not "fail", it worked LATE; and the second
     one broke it.

   touch-action:manipulation turns off double-tap zoom, removes the
   300ms delay, and LEAVES finger scrolling and pinch zoom ON. We do
   not write user-scalable=no: someone with poor eyesight still has to
   be able to zoom.

   WebKit could not be installed in this container (the download is
   blocked); this block was written by reasoning from the cause, not
   from measurement. It needs trying in real Safari.
   ====================================================================== */
body.till,
body.till button,
body.till select,
body.till .tile,
body.till .o-grab,
body.till .charge,
body.till .pm,
body.till .pm-card,
body.till .sheet,
body.till .sheet-card,
body.till .np,
body.till .moresh{touch-action:manipulation}

/* Let it show that the touch LANDED: with no feedback a barber touches
   again, and the second touch is the problem itself. */
body.till button{-webkit-tap-highlight-color:rgba(var(--violet-rgb),.22)}
.o-grab:active{background:var(--hover)}

/* The home indicator must not eat the bottom of the charge button. */
@media (max-width:699px) and (min-height:540px){
  .till3 .order{padding-bottom:env(safe-area-inset-bottom,0px)}
  .o-grab{min-height:56px}
  .og-c{width:20px; height:20px}
}

/* Decorative layers NEVER take touches. The sheen did it once; so that
   it cannot again, the rule covers every aria-hidden child of the
   button -- the click should go to the button itself anyway. */
.ch-sheen,
body.till button [aria-hidden="true"]{pointer-events:none}

/* -- A very low screen: the space budget ----------------------------------
   Measured at 852x393: the foot gets 127px and its contents want 207px.
   Looking for where to cut: the top header is 73px (19% of the
   screen), the tip row 80px (label and buttons wrap onto two rows),
   the total 48, the charge button 67. Nothing is hidden -- everything
   shortens, because all four things a barber needs to see are here.
   The one thing hidden is the card warning, which is in the panel
   too. */
@media (max-height:500px){
  body.till .topbar{min-height:0; padding:7px 14px}
  body.till .topbar .brand b{font-size:14px}
  body.till .wrap > .note{display:none}
  .till3 .o-head{padding:6px 14px; font-size:10px}
  /* The tip: label and buttons on ONE row, the buttons scroll sideways.
     Wrapped onto two rows it ate 80px. */
  .till3 .o-tip{display:flex; align-items:center; gap:10px; padding:0 0 6px}
  .till3 .o-tip-l{flex:none}
  .till3 .o-tip-btns{flex:1 1 auto; min-width:0}
  .till3 .o-foot > .total{padding:4px 0}
  .till3 .o-foot > .total strong{font-size:23px}
  .till3 .charge{min-height:52px; padding:6px 13px}
  .till3 .charge .c-a{font-size:19px}
  .till3 .o-foot{padding-bottom:8px}
}

/* -- On a low screen it is THE LINE LIST that flexes, not the foot ------
   In the two earlier attempts I put the flexibility in the wrong
   place: I made the foot a scrolling or clipped box and left the line
   list fixed. When the foot was clipped, what got clipped was the
   charge button at the very bottom -- at 852x393 the button was at
   419px on a 393px screen. The right way is the reverse:

     the line list  -> gives up all its room, down to 0 if need be
     the foot       -> is NEVER clipped, it stays as it is

   A barber can scroll the lines; they cannot scroll to the charge
   button, because if they cannot see it there is no button. */
@media (max-height:760px){
  .till3 .order{display:flex; flex-direction:column; min-height:0}
  .till3 .o-head{flex:none}
  .till3 .lines{flex:1 1 auto; min-height:0; max-height:none;
    overflow-y:auto; overscroll-behavior:contain}
  .till3 .o-foot{flex:none; min-height:auto; overflow:visible}
  /* A discount line makes the subtotals longer; that is the only part capped. */
  .till3 .o-foot > dl.sums{flex:none; max-height:76px; overflow-y:auto}
}

/* -- Below 500px: the subtotals go -----------------------------------
   Measured: the foot wants 300px and has 212px. There is nothing to
   trim, but the subtotals (Subtotal / Takings / Tip) take 102px with
   their margins, and all three can be derived from THE TOTAL. The four
   things a barber needs to see on a phone turned sideways: what they
   picked, the tip, THE TOTAL, the charge button. To see the breakdown
   they turn the phone upright.
   Nothing hidden is LOST -- all of it is in the upright layout and in
   the panel. */
@media (max-height:500px){
  .till3 .o-foot > dl.sums{display:none}
  .till3 .o-tip{flex-wrap:nowrap}
  .till3 .o-tip-btns{flex-wrap:nowrap; overflow-x:auto}
  .till3 .o-foot > .total{margin:0; padding:3px 0 5px}
}

/* The barber breakdown (".. keeps 15.30") is hidden below 500px too:
   on a full order it takes 38px, and the same information is on the
   payment curtain, at day end and in the panel. Nobody audits the
   split on a phone turned sideways. */
@media (max-height:500px){
  .till3 .o-foot > .osplit{display:none}
}
/* Below 380px (old phones turned sideways), the last few pixels. */
@media (max-height:380px){
  body.till .topbar{padding:5px 12px}
  .till3 .o-head{padding:4px 12px}
  .till3 .charge{min-height:48px; padding:5px 12px}
  .till3 .o-foot{padding:6px 12px 8px}
}

/* ======================================================================
   THE BRAND PAGE  (body.brand) -- 4 November 2026
   The palette's permanent home. This page WRITES no values, it reads
   them from the CSS; so there is not one colour constant here either.
   ====================================================================== */
body.brand .wrap{max-width:1180px; padding:30px 22px 90px}
.mk-wrap{display:block}
.mk-top{display:grid; grid-template-columns:auto 1fr auto; gap:22px;
  align-items:start; padding-bottom:26px; border-bottom:1px solid var(--line)}
.mk-mark{width:58px; height:58px; color:var(--violet); flex:none}
.mk-mark svg{width:100%; height:100%; display:block}
.mk-top h1{margin:0; font-size:30px; font-weight:700; letter-spacing:-.02em}
.mk-sub{margin:7px 0 0; font-size:14px; color:var(--muted); max-width:62ch;
  line-height:1.55}
.mk-sub code,.mk-n code{font-family:var(--mono); font-size:12.5px;
  padding:2px 7px; border-radius:7px; background:var(--field);
  border:1px solid var(--line)}
.mk-theme{display:flex; gap:7px; flex:none}
.mk-tb{min-height:44px; padding:0 15px; border-radius:11px; cursor:pointer;
  font:inherit; font-size:13.5px; font-weight:600; color:var(--muted);
  background:var(--field); border:1px solid var(--line)}
.mk-tb.on{background:rgba(var(--violet-rgb),.15); border-color:var(--violet);
  color:var(--paper)}
.mk-h{margin:38px 0 6px; font-size:11px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:var(--faint); font-family:var(--mono)}
.mk-n{margin:0 0 16px; font-size:14px; color:var(--muted); max-width:70ch;
  line-height:1.55}
.mk-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(188px,1fr));
  gap:12px}
.mk-sw{padding:12px; border-radius:15px; background:var(--panel);
  border:1px solid var(--line)}
.mk-chipc{height:88px; border-radius:11px; display:grid; place-items:center;
  font-size:23px; font-weight:650; border:1px solid var(--line);
  margin-bottom:11px}
.mk-chipc.plain{font-size:0}
.mk-lb{font-size:14.5px; font-weight:600}
.mk-tk{margin-top:3px; font-family:var(--mono); font-size:11.5px;
  color:var(--faint)}
.mk-hx{margin-top:2px; font-family:var(--mono); font-size:12.5px;
  color:var(--muted)}
.mk-cr{margin-top:7px; font-family:var(--mono); font-size:11px;
  padding:4px 8px; border-radius:7px; display:inline-block}
.mk-sw[data-ok="1"] .mk-cr{color:var(--good);
  background:rgba(var(--good-rgb),.13); border:1px solid rgba(var(--good-rgb),.3)}
.mk-sw[data-ok="0"] .mk-cr{color:var(--bad);
  background:rgba(var(--bad-rgb),.13); border:1px solid rgba(var(--bad-rgb),.32)}
.mk-type{display:grid; grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
  gap:14px}
.mk-tt{padding:22px; border-radius:16px; background:var(--panel);
  border:1px solid var(--line)}
.mk-tl{font-family:var(--mono); font-size:10.5px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--faint)}
.mk-s1{margin:14px 0 0; font-size:34px; font-weight:700; letter-spacing:-.03em;
  line-height:1.14}
.mk-s2{margin:12px 0 0; font-size:17px; color:var(--muted)}
.mk-s3{margin:14px 0 0; font-size:13px; color:var(--faint); line-height:1.5;
  word-break:break-all}
.mk-m1{margin:14px 0 0; font-family:var(--mono); font-size:44px; font-weight:700;
  letter-spacing:-.035em}
.mk-m2{margin:9px 0 0; font-family:var(--mono); font-size:17px; color:var(--muted)}
.mk-parts{display:flex; flex-wrap:wrap; gap:11px; align-items:center}
.mk-chip{display:inline-flex; align-items:center; min-height:44px; padding:0 16px;
  border-radius:99px; font-size:13.5px; font-weight:500; color:var(--muted);
  background:var(--field); border:1px solid var(--line)}
.mk-foot{margin-top:40px; padding-top:20px; border-top:1px solid var(--line);
  font-size:13px; color:var(--faint)}
@media(max-width:760px){
  .mk-top{grid-template-columns:auto 1fr; gap:14px}
  .mk-theme{grid-column:1 / -1}
  .mk-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}

/* -- The theme switch: three positions --------------------------------
   A segment, not a cycle. One touch to where you want, with no page
   reload. Each button is 44px: three side by side are 132px, which
   fits in the header. */
.thseg{display:inline-flex; gap:2px; padding:3px; border-radius:99px;
  background:rgba(var(--paper-rgb),.06); border:1px solid var(--line);
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset; flex:none}
.thsb{width:44px; height:44px; border-radius:99px; display:grid;
  place-items:center; color:var(--faint); text-decoration:none;
  transition:background .14s, color .14s}
.thsb svg{width:17px; height:17px}
.thsb:hover{color:var(--paper)}
.thsb.on{background:var(--panel); color:var(--paper);
  box-shadow:0 2px 7px -3px rgba(var(--shadow-rgb),.5),
             0 1px 0 rgba(255,255,255,.1) inset}
.thsb:focus-visible{outline:2px solid var(--violet); outline-offset:2px}
/* In the panel's left rail: full width, and three centred icons with no text. */
.rail .thseg{width:100%; justify-content:center; margin-top:10px}

/* ======================================================================
   PANEL, PHONE: BOTTOM TAB BAR + MINIMAL DASHBOARD   (4 November 2026)

   Before: on a phone the left rail collapsed into a horizontally
   scrolling strip. Reaching "Analytics" meant scrolling first, and the
   strip ate 160px off the top of the screen -- in front of the
   customer, where the thumb cannot reach.

   Now: the top glass bar is only the brand and the theme; navigation
   is at the bottom, where the thumb rests. Nothing changes on desktop
   or tablet.
   ====================================================================== */
.tabbar{display:none}
.moresh{display:none}

@media (max-width:860px){
  /* The left rail goes; the bottom bar takes its place. */
  body.panel .rail{display:none}
  body.panel .shellgrid{display:block; min-height:0}
  body.panel .work{padding:88px 20px calc(104px + env(safe-area-inset-bottom,0px))}

  /* Top: glass, no line, only the brand and the theme. */
  body.panel .topbar{position:fixed; top:0; left:0; right:0; z-index:40;
    background:rgba(var(--ink-rgb),.72);
    backdrop-filter:blur(26px) saturate(160%);
    -webkit-backdrop-filter:blur(26px) saturate(160%);
    border-bottom:0; box-shadow:0 1px 0 rgba(255,255,255,.06) inset}

  .tabbar{display:grid; grid-template-columns:repeat(5,1fr); align-items:center;
    position:fixed; left:0; right:0; bottom:0; z-index:40;
    padding:0 6px calc(12px + env(safe-area-inset-bottom,0px));
    background:rgba(var(--ink-rgb),.74);
    backdrop-filter:blur(26px) saturate(160%);
    -webkit-backdrop-filter:blur(26px) saturate(160%);
    box-shadow:0 -1px 0 rgba(255,255,255,.06) inset}
  .tbi{display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:11px 0 0; min-height:56px; border:0; background:none; cursor:pointer;
    font:inherit; color:var(--faint); text-decoration:none}
  .tbi svg{width:21px; height:21px}
  .tbi span{font-size:10px; font-weight:500; letter-spacing:.01em}
  .tbi.on{color:var(--violet)}
  .tbi.on span{font-weight:650}
  .tbi:focus-visible{outline:2px solid var(--violet); outline-offset:-3px;
    border-radius:12px}

  /* More: a list that opens from the bottom. */
  .moresh{display:block; position:fixed; inset:0; z-index:60;
    pointer-events:none; opacity:0; transition:opacity .18s}
  .moresh::before{content:""; position:absolute; inset:0;
    background:rgba(0,0,0,.52); backdrop-filter:blur(2px)}
  .moresh.on{opacity:1; pointer-events:auto}
  .moresh-c{position:absolute; left:0; right:0; bottom:0;
    max-height:78dvh; overflow-y:auto; overscroll-behavior:contain;
    padding:10px 14px calc(22px + env(safe-area-inset-bottom,0px));
    border-radius:26px 26px 0 0; background:var(--float);
    border-top:1px solid var(--line);
    box-shadow:0 -20px 50px -24px rgba(var(--shadow-rgb),.9);
    transform:translateY(16px); transition:transform .2s}
  .moresh.on .moresh-c{transform:none}
  .moresh-g{display:block; width:40px; height:4px; border-radius:99px;
    background:var(--line); margin:4px auto 12px}
  .moi{display:flex; align-items:center; min-height:52px; padding:0 14px;
    border-radius:14px; font-size:15.5px; font-weight:500; color:var(--paper);
    text-decoration:none}
  .moi.on{background:rgba(var(--violet-rgb),.14); color:var(--paper)}
  .moi.out{color:var(--bad); margin-top:6px}
  .moi:focus-visible{outline:2px solid var(--violet); outline-offset:-2px}
  body.moreopen{overflow:hidden}

  /* -- Dashboard: the boxes go, the rows stay ------------------------ */
  body.panel .strip{display:block; background:none; border:0; padding:0;
    border-radius:0; box-shadow:none}
  body.panel .strip .hero{display:block; padding:0; border:0; background:none;
    margin:26px 0 28px; position:relative}
  body.panel .strip .hero > span{font-size:0}       /* "Takings today" is too much:
     the page already says "Today" at the top with the biggest figure under it */
  body.panel .strip .hero .fig{display:block; font-size:min(16vw,62px);
    font-weight:700; letter-spacing:-.05em; line-height:1;
    text-shadow:0 3px 26px rgba(var(--violet-rgb),.3)}
  body.panel .strip .hero i{display:block; font-style:normal; font-size:13.5px;
    color:var(--muted); margin-top:12px}
  body.panel .strip .hero i.up{color:var(--good)}
  body.panel .strip .hero i.down{color:var(--bad)}

  body.panel dl.kv{display:block; border-top:1px solid var(--line);
    background:none; border-radius:0; padding:0}
  body.panel dl.kv > div{display:flex; align-items:baseline;
    justify-content:space-between; gap:14px; padding:17px 0;
    border-bottom:1px solid var(--line); border-right:0;
    background:none}
  body.panel dl.kv dt{font-size:14px; color:var(--muted); margin:0}
  body.panel dl.kv dd{margin:0; font-size:19px; font-weight:650;
    letter-spacing:-.025em}
  body.panel dl.kv div.tip dt, body.panel dl.kv div.tip dd{color:var(--gold)}

  /* Barbers: rows, not boxes. */
  body.panel .who2{display:block; background:none; border:0; border-radius:0;
    margin-top:30px}
  body.panel .wrow{display:flex; align-items:center; gap:14px; padding:15px 0;
    border-bottom:1px solid var(--line); background:none}
  body.panel .wrow:first-child{border-top:1px solid var(--line)}
  body.panel .wini{width:34px; height:34px; border-radius:50%; flex:none;
    display:grid; place-items:center; font-size:12.5px; font-weight:700;
    color:var(--pale); background:rgba(var(--violet-rgb),.14);
    box-shadow:0 1px 0 rgba(255,255,255,.08) inset}
  body.panel .wnm{flex:1; font-size:15px; font-weight:500}
  body.panel .wn{display:none}            /* the count: takings already give the ranking */
  body.panel .wp{font-size:16px; font-weight:650; letter-spacing:-.02em}
  body.panel .wt{font-size:12.5px; color:var(--gold); margin-left:8px}
  body.panel .wnone{font-size:12.5px; color:var(--faint)}
}

/* The panel's phone header. The panel has no .topbar -- the brand and
   the theme sat inside the left rail; with the rail hidden on a phone
   the top was left empty. This header exists ONLY on a phone. */
.pbar{display:none}
@media (max-width:860px){
  .pbar{display:flex; align-items:center; justify-content:space-between;
    gap:12px; position:fixed; top:0; left:0; right:0; z-index:40;
    height:76px; padding:0 16px;
    background:rgba(var(--ink-rgb),.72);
    backdrop-filter:blur(26px) saturate(160%);
    -webkit-backdrop-filter:blur(26px) saturate(160%);
    box-shadow:0 1px 0 rgba(255,255,255,.06) inset}
  .pbar-l{display:flex; align-items:center; gap:10px; min-width:0}
  .pbar-l b{display:block; font-size:13px; font-weight:700; letter-spacing:.22em;
    line-height:1}
  .pbar-l i{display:block; font-style:normal; font-size:11.5px; color:var(--faint);
    margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

  /* Minimal: the labels DO NOT SHOUT. Capitals and wide tracking work on
     a strip heading; on six stacked rows they are noise. */
  body.panel dl.kv dt{text-transform:none; letter-spacing:0; font-weight:400}
  body.panel .wnone{text-transform:none; letter-spacing:0}

  /* The glow behind the figure read as a white box at a 26px blur.
     Wider and weaker: light, not a halo. */
  body.panel .strip .hero .fig{text-shadow:0 6px 44px rgba(var(--violet-rgb),.26)}
}

/* ======================================================================
   THE PAYMENT SCREEN   (4 November 2026, fourth pass)

   THE FRAME WAS REMOVED. The curtain itself is not a box: a blurred
   ground, a violet light behind, and the content standing free on top.
   The box cost height and gave a "box inside a box" look.

   THE CARDS WERE EMPTIED OUT: icon -> name -> one status line. The
   description, the "Recommended" badge, the fee and the action strip
   went. Ogun said "more minimal but more detailed"; the detail moved
   down into the share bar.

   MEASURED (iPad landscape, the real area after Safari's tab + address
   bars is 1194x674): content 497px -> 377px, 74% of the screen -> 56%.
   Only sizes were reduced; the layout is the same.

   THE REAL DEVICE IS A TABLET. A phone is at ~30cm, an iPad on the
   counter at 50-70cm. Distance justifies bigger TEXT and bigger TOUCH
   TARGETS, not bigger gaps -- in the first pass I enlarged the gaps
   too and it looked zoomed in.
   ====================================================================== */
.pm{padding:20px; background:var(--pm-scrim);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%)}
/* The violet light behind. A one-stop gradient left a hard edge (a
   "stain", not a "light"), hence six stops. */
.pm::before{content:""; position:absolute; left:50%; top:46%;
  width:min(1500px,150vw); height:min(900px,130vh);
  transform:translate(-50%,-50%); pointer-events:none;
  opacity:var(--pm-halo);
  background:radial-gradient(closest-side,
    rgba(var(--violet-rgb),.5) 0%,   rgba(var(--violet-rgb),.34) 22%,
    rgba(var(--violet-rgb),.19) 40%, rgba(var(--violet-rgb),.09) 56%,
    rgba(var(--violet-rgb),.03) 72%, transparent 88%)}

.pm-card{position:relative; z-index:1; width:100%; max-width:620px;
  max-height:94dvh; overflow-y:auto; gap:0;
  padding:0; background:none; border:0; border-radius:0; text-align:center}

/* -- The amount --------------------------------------------------- */
.pm-hero{gap:0; padding:0}
.pm-l{font-size:10px; letter-spacing:.28em; color:var(--pm-dim)}
.pm-amt{font-size:60px; font-weight:700; letter-spacing:-.045em;
  line-height:.94; margin-top:9px; white-space:nowrap;
  text-shadow:0 10px 64px rgba(var(--violet-rgb),.4)}
.pm-cy{font-size:26px; letter-spacing:0; color:var(--muted);
  vertical-align:.62em; margin-right:3px}
.pm-pen{font-size:27px; vertical-align:.68em; margin-left:4px}

/* -- Who did what ------------------------------------------------ */
.pm-who{display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
  margin-top:13px}
.pm-wb{display:inline-flex; align-items:center; gap:7px; padding:6px 12px;
  border-radius:100px; background:var(--panel); border:1px solid var(--line);
  font-size:12px; color:var(--muted); max-width:100%}
.pm-wb u{width:7px; height:7px; border-radius:50%; flex:none;
  text-decoration:none}
.pm-wb b{font-weight:650; color:var(--paper)}
.pm-wb em{font-style:normal; color:var(--faint); overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.pm-wb.gold{color:var(--gold); border-color:rgba(var(--gold-rgb),.34)}

/* The barber colours. The same ramp is used on the badge, the bar and
   the key, so a barber's colour is the same everywhere on screen. */
.c0{background:var(--violet)}
.c1{background:var(--pale)}
.c2{background:rgba(var(--violet-rgb),.52)}
.c3{background:rgba(var(--paper-rgb),.42)}

/* -- Two ways --------------------------------------------------- */
.pm-opts{display:grid; gap:14px; grid-template-columns:1fr; margin-top:20px}
@media (min-width:620px){ .pm-opts{grid-template-columns:1fr 1fr} }

.pm-opt{position:relative; display:flex; flex-direction:column;
  align-items:center; gap:0; overflow:hidden; cursor:pointer; font:inherit;
  padding:20px 18px 18px; border-radius:20px; border:0;
  /* ITS OWN surface tokens. In the light theme --ink-2 and --panel are
     both #FFFFFF, so this gradient came out flat white (measured:
     1.00:1) and stood 1.05:1 from the ground -- on Ogun's iPad the
     screen was white from top to bottom. */
  background:linear-gradient(165deg,var(--pm-surf),var(--pm-surf2));
  color:var(--paper);
  box-shadow:var(--pm-lift);
  transition:transform .1s, box-shadow .18s}
.pm-opt:active:not(:disabled){transform:scale(.985)}
.pm-opt:disabled{cursor:not-allowed}
.pm-opt:focus-visible{outline:2px solid var(--violet); outline-offset:3px}
/* Light from above: what makes the button a surface rather than flat
   paint. NO pointer-events -- on 3 November an invisible decorative
   layer swallowed the whole drawer; never again. */
.pm-opt::before{content:""; position:absolute; left:0; right:0; top:0;
  height:50%; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.06),transparent)}

.pm-ic{width:auto; height:auto; background:none; border:0; box-shadow:none;
  border-radius:0; color:inherit}
.pm-ic svg{width:26px; height:26px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.pm-n{margin-top:12px; font-size:21px; font-weight:700; letter-spacing:-.028em}
.pm-meta{display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:6px; font-size:12.5px; min-height:18px; color:var(--muted)}
.pm-live{display:inline-flex; align-items:center; gap:7px; font-weight:600}
.pm-live i{width:8px; height:8px; border-radius:50%; background:currentColor;
  flex:none; box-shadow:0 0 0 0 currentColor; animation:pmPulse 2.2s infinite}
@keyframes pmPulse{70%{box-shadow:0 0 0 8px rgba(var(--good-rgb),0)}
  100%{box-shadow:0 0 0 0 rgba(var(--good-rgb),0)}}
.pm-live.bad{color:var(--bad)}  .pm-live.bad i{animation:none}
.pm-live.off{color:var(--faint)} .pm-live.off i{animation:none}

/* Card = primary. The class name is "crd", NOT "card": the panel's
   global .card rule cuts the top right corner with clip-path and was
   catching .pm-opt.card too. */
.pm-opt.crd:not(:disabled){
  /* The curtain's OWN violet. The global --violet-up is a pale lavender
     (#B9A6FF) in the dark theme with dark --on-violet text on it: on
     the 12.5px status line that is 3.57:1 and fails WCAG. Here it is a
     dark violet + WHITE text in both themes -> 5.19:1. The global
     token was not touched; that pair is used in the panel and on every
     primary button. */
  background:linear-gradient(165deg,var(--pm-v),var(--pm-v2));
  color:var(--pm-onv);
  box-shadow:0 1px 0 rgba(255,255,255,.3) inset,
             0 0 0 1px rgba(var(--violet-rgb),.5),
             0 28px 56px -24px rgba(var(--violet-rgb),.9),
             0 8px 18px -12px rgba(0,0,0,.7)}
.pm-opt.crd:not(:disabled)::before{
  background:linear-gradient(180deg,rgba(255,255,255,.14),transparent)}
.pm-opt.crd:not(:disabled) .pm-meta{color:var(--pm-onv); opacity:.85}
.pm-opt.crd:not(:disabled) .pm-live{color:var(--pm-onv)}
.pm-opt.cash .pm-ic{color:var(--gold)}
.pm-opt:disabled .pm-ic{color:var(--faint)}
.pm-opt:disabled .pm-n{color:var(--muted)}

/* -- The share bar: the barbers' shares ONLY -------------------------
   What the shop earns and the card fee appear nowhere on this screen.
   The reason: the customer sees the curtain too, and the shop's cut is
   commercial information. The unfilled part of the bar is the shop's
   share but it is UNLABELLED.

   A note in honesty: with the total and the shares on one screen, the
   difference can be found with one subtraction. This is
   simplification, not concealment. */
.pm-mine{margin-top:20px}
.pm-mine[hidden]{display:none}
.pm-track{display:flex; gap:3px; height:5px; border-radius:3px;
  background:rgba(var(--paper-rgb),.1)}
.pm-track i{display:block; border-radius:3px; min-width:2px}
.pm-track i.c0{box-shadow:0 0 20px -2px rgba(var(--violet-rgb),.85)}
.pm-keys{display:flex; flex-wrap:wrap; justify-content:center; gap:6px 22px;
  margin-top:10px; font-size:12.5px; color:var(--pm-dim)}
.pm-keys span{display:inline-flex; align-items:center; gap:8px}
.pm-keys u{width:8px; height:8px; border-radius:2px; flex:none;
  text-decoration:none}
.pm-keys b{font-family:var(--mono); font-weight:650; font-size:16px;
  color:var(--paper); letter-spacing:-.02em}

/* -- Alt ---------------------------------------------------------- */
.pm-foot{display:flex; align-items:center; justify-content:center;
  min-height:44px; margin-top:10px}
.pm-cancel{min-height:46px; padding:0 20px; border:0; border-radius:12px;
  background:none; cursor:pointer; font:inherit; font-size:13px;
  font-weight:600; color:var(--pm-dim)}
.pm-cancel:hover{color:var(--paper); background:rgba(var(--paper-rgb),.06)}
.pm-cancel:focus-visible{outline:2px solid var(--violet); outline-offset:2px}

/* -- Opening motion ---------------------------------------------- */
@keyframes pmUp{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
@keyframes pmPop{from{opacity:0; transform:translateY(18px) scale(.97)}
  to{opacity:1; transform:none}}
@keyframes pmGrow{from{transform:scaleX(0)} to{transform:scaleX(1)}}
.pm.on .pm-l  {animation:pmUp .5s cubic-bezier(.2,.9,.25,1) .06s both}
.pm.on .pm-amt{animation:pmUp .55s cubic-bezier(.2,.9,.25,1) .1s both}
.pm.on .pm-who{animation:pmUp .5s cubic-bezier(.2,.9,.25,1) .16s both}
.pm.on .pm-opts > *:nth-child(1){animation:pmPop .46s cubic-bezier(.2,.9,.25,1) .24s both}
.pm.on .pm-opts > *:nth-child(2){animation:pmPop .46s cubic-bezier(.2,.9,.25,1) .31s both}
.pm.on .pm-mine{animation:pmUp .5s cubic-bezier(.2,.9,.25,1) .42s both}
.pm.on .pm-track i{transform-origin:left center;
  animation:pmGrow .7s cubic-bezier(.2,.9,.25,1) .52s both}
.pm.on .pm-foot{animation:pmUp .5s cubic-bezier(.2,.9,.25,1) .5s both}
@media (prefers-reduced-motion:reduce){
  .pm.on .pm-l,.pm.on .pm-amt,.pm.on .pm-who,.pm.on .pm-opts > *,
  .pm.on .pm-mine,.pm.on .pm-track i,.pm.on .pm-foot{animation:none}
  .pm-live i{animation:none}
}

/* -- iPad: sizes grow, gaps do not ------------------------------ */
@media (min-width:740px){
  .pm-card{max-width:600px}
  .pm-amt{font-size:66px}
  .pm-cy{font-size:28px} .pm-pen{font-size:29px}
  .pm-wb{font-size:12.5px; padding:7px 13px}
  .pm-opt{padding:22px 18px 20px}
  .pm-ic svg{width:28px; height:28px}
  .pm-n{font-size:22px}
  .pm-meta{font-size:13px}
  .pm-keys{font-size:13px}
  .pm-keys b{font-size:17px}
  .pm-cancel{font-size:14px}
}

/* -- A short screen: the curtain SHRINKS, it does not scroll ------------
   4 November, Ogun sent a screenshot of a scrollbar: "there is a line
   in the corner, why does it vanish afterwards". It was not a
   decorative line, it was the browser's own scrollbar -- the curtain
   was saying "I do not fit".

   Measured: on a phone in LANDSCAPE the content is 418px and the box
   369px -> 49px of overflow. No overflow in portrait, on a tablet or on
   desktop. The till is an application; a payment screen that scrolls
   gets the wrong amount confirmed when a finger lands in the wrong
   place.

   So on a short screen the sizes shrink. The 44px touch target IS
   KEPT: what shrinks is text and spacing, not the button. */
@media (max-height:560px){
  .pm{padding:12px}
  .pm-amt{font-size:40px; margin-top:5px}
  .pm-cy{font-size:18px} .pm-pen{font-size:19px}
  .pm-who{margin-top:9px; gap:6px}
  .pm-wb{padding:5px 10px; font-size:11.5px}
  .pm-opts{margin-top:13px; gap:10px}
  .pm-opt{padding:13px 14px 12px; border-radius:16px}
  .pm-ic svg{width:22px; height:22px}
  .pm-n{margin-top:8px; font-size:18px}
  .pm-meta{margin-top:4px; font-size:11.5px; min-height:16px}
  .pm-mine{margin-top:13px}
  .pm-keys{margin-top:8px; font-size:11.5px; gap:4px 16px}
  .pm-keys b{font-size:14px}
  .pm-foot{margin-top:4px; min-height:46px}
}

/* -- The scrollbar: if it appears, let it be part of the design ---------
   The curtain can still scroll (a very long service name, many
   barbers, a very small window). Then the bar should appear in the
   theme's own tone, not as the browser's flat grey. */
.pm-card{scrollbar-width:thin; scrollbar-color:var(--line) transparent}
.pm-card::-webkit-scrollbar{width:6px}
.pm-card::-webkit-scrollbar-track{background:transparent}
.pm-card::-webkit-scrollbar-thumb{background:var(--line); border-radius:3px}
.pm-card::-webkit-scrollbar-thumb:hover{background:var(--line-lit)}

/* -- The cash-count screen wants its frame back -------------------- */
#pmS2{text-align:left; padding:20px; border-radius:var(--r);
  background:var(--float); border:1px solid var(--line);
  display:flex; flex-direction:column; gap:14px}
#pmS2[hidden]{display:none}
