/* ==========================================================================
   fix 7 system (bonfium-fix7/PROMPT-fix7.md rules 1–6, Part 1, Part 12's menus; boards D2 Header, M2 Drawer, bf.css).
   Loaded by f7_head() (app/fix7.php) on every page while ui_fix7 is on: last in the head on the old pages (after fix 5's
   pop-up sheet), first on the fix 7 pages. How pages use it: docs/fix7/SYSTEM.md.
     1  tokens            5  the stage              9  code, row, seg
     2  ONE glass (fix 8)  6  buttons, links         10 the sheet, the toast
     3  the header        7  status text            11 fallbacks (never dark)
     4  pop-ups, drawer   8  cards on paper
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens */
:root{
  --f7-paper:#F6F7F9; --f7-card:#FFFFFF; --f7-tile:#F1F3F5; --f7-line:#E6EAED;
  --f7-ink:#0E1417; --f7-ink2:#3B4750; --f7-sub:#5C6B75; --f7-faint:#8A969E;
  --f7-teal:#0A7A5C; --f7-amber:#8A5A00; --f7-coral:#C23516;
  --f7-w:1200px; --f7-gut:24px; --f7-r-card:24px; --f7-r-in:12px; --f7-r-stage:32px;
  --f7-shadow1:0 1px 0 rgba(14,20,23,.04),0 1px 2px rgba(14,20,23,.06);
  --f7-shadow2:0 12px 32px -16px rgba(14,20,23,.28);
  --f7-display:'Outfit','Outfit Fallback',system-ui,sans-serif;
  --f7-text:'Instrument Sans','Instrument Sans Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* rule 5: the one glass recipe */
  --f7-glass-bg:rgba(255,255,255,.16);
  --f7-glass-ink-bg:rgba(255,255,255,.22);
  --f7-glass-filter:blur(20px) saturate(1.7);
  --f7-glass-edge:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.18),inset 0 -1px 1px rgba(255,255,255,.1);
  --f7-glass-shadow:0 10px 28px -14px rgba(15,21,25,.28);
  /* .bf-pop (pop-ups, the drawer, sheets, the toast): the header pill's own liquid glass again, the same material as
     .f7-bar::before (Vilius, 14 Oct: "pop-ups too, same old header glass"); the ground under it decides the text (system.js tone()) */
  --f7-pop-bg:rgba(255,255,255,.16);
  --f7-pop-filter:blur(20px) saturate(1.7);
  --f7-pop-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12),0 10px 28px -14px rgba(15,21,25,.28);
  --f7-solid:rgba(255,255,255,.94);   /* the fallback fill: light, never dark */
  /* fix 5's pop-up tokens (assets/fix5/pop.css) now read the .bf-pop recipe */
  --bfp-bg:var(--f7-pop-bg); --bfp-filter:var(--f7-pop-filter); --bfp-shadow:var(--f7-pop-shadow);

  /* ---- fix 8 (PROMPT 0.1, Part 2; docs/fix8/SYSTEM.md). ONE liquid glass: the live header pill's recipe, copied
     exactly from .f7-bar::before (measured on bonfium.com 14 Oct 2026). Never a variant. */
  --f8-glass-bg:rgba(255,255,255,.16);
  --f8-glass-hover:rgba(255,255,255,.22);
  --f8-glass-filter:blur(20px) saturate(1.7);
  --f8-glass-edge:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12);
  --f8-glass-drop:0 10px 28px -14px rgba(15,21,25,.28);
  --f8-glass-shadow:var(--f8-glass-edge),var(--f8-glass-drop);
  --f8-glass-input:rgba(255,255,255,.22);   /* the glass input inside a glass container */
  --f8-glass-knob:rgba(255,255,255,.32);    /* the chosen knob of a glass segmented control (ink text) */
  /* text on the glass follows the ground: ink on paper (default), white on a field, ink inside the glass on a pale field */
  --f8-gfg:#0E1417; --f8-gfg2:rgba(14,20,23,.62); --f8-ring:#0E1417; --f8-gline:rgba(14,20,23,.08); --f8-gph:rgba(14,20,23,.42);

  /* ---- the one column and the one rhythm (FINDINGS-8 §2). Desktop ≥1024 / ≤1023 / ≤759 */
  --f8-col:1200px;
  --f8-gut-min:64px;                                   /* the gutter: max(64, (width − 1200) / 2) */
  --f8-inset:10px; --f8-r-stage:32px;                  /* the stage inset and radius */
  --f8-hdr-top:16px; --f8-hdr-h:72px; --f8-hdr-bottom:88px;
  --f8-anchor:96px;         /* (bonfi3d) §7.3: scroll-margin-top of every anchor target, 8 under the header box (80 on ≤1023) */
  --f8-title-top:64px;      /* header bottom → stage title */
  --f8-stage-pb:64px;       /* last stage element → stage floor */
  --f8-title-sub:16px;      /* title → subtitle */
  --f8-title-obj:40px;      /* title block → main stage object */
  --f8-stage-after:96px;    /* stage floor → first section */
  --f8-sec:160px;           /* section → section */
  --f8-sec-title:40px;      /* section title → content */
  --f8-block:48px;          /* sub-blocks in a section */
  --f8-foot:120px;          /* last block → footer */
  --f8-card-pad:32px; --f8-card-gap:20px;
  --f8-r-card:24px; --f8-r-pop:28px; --f8-r-btn:999px;
  --f8-stage-min:400px;
  /* type: stage h1 / section h2 / card title (big bento) / body / label */
  --f8-h1:4rem; --f8-h2:3rem; --f8-h3:2rem; --f8-h3-big:2.5rem; --f8-body:1.0625rem; --f8-label:0.8125rem;
}
@media (max-width:1023px){:root{
  --f8-gut-min:32px; --f8-hdr-top:8px; --f8-hdr-h:64px; --f8-hdr-bottom:72px; --f8-anchor:80px;
  --f8-title-top:48px; --f8-stage-pb:48px; --f8-title-obj:32px; --f8-stage-after:80px; --f8-sec:120px; --f8-sec-title:32px;
  --f8-block:40px; --f8-foot:96px; --f8-card-pad:28px; --f8-stage-min:0px;
  --f8-h1:3.5rem; --f8-h2:2.5rem; --f8-h3:1.75rem; --f8-h3-big:2rem;
}}
@media (max-width:759px){:root{
  --f8-gut-min:24px; --f8-inset:8px; --f8-r-stage:28px;
  --f8-title-top:32px; --f8-stage-pb:24px; --f8-title-sub:12px; --f8-title-obj:24px; --f8-stage-after:56px; --f8-sec:80px; --f8-sec-title:24px;
  --f8-block:32px; --f8-foot:72px; --f8-card-pad:20px; --f8-card-gap:12px;
  --f8-h1:2.5rem; --f8-h2:2rem; --f8-h3:1.5rem; --f8-h3-big:1.75rem; --f8-body:0.9375rem;
}}
/* fix 16 §6 (21 Oct: "it seems too big now on mobile"): the phone type scale, changes fix 14 §4's phone values.
   760–1023 interpolates; desktop stays on fix 14. --f16-figure is the big money figure (Money, Rewards, receipts, the
   calculator fee), --f16-small the secondary text. Use these tokens; no new sizes. */
html.f16{--f16-figure:72px;--f16-small:15px}
@media (max-width:1023px){html.f16{
  --f8-h1:clamp(2rem,4.6vw + 0.875rem,3.5rem); --f8-h2:clamp(1.625rem,3.2vw + 0.875rem,2.5rem); --f8-h3:clamp(1.25rem,1.6vw + 0.875rem,1.75rem); --f8-h3-big:clamp(1.5rem,1.6vw + 1.125rem,2rem);
  --f8-sec:clamp(64px,6vw + 26px,120px); --f8-sec-title:clamp(20px,1.2vw + 12px,32px); --f16-figure:clamp(40px,4vw + 26px,56px);
}}
@media (max-width:759px){html.f16{
  --f8-h1:2rem; --f8-h2:1.625rem; --f8-h3:1.25rem; --f8-h3-big:1.5rem; --f8-body:1rem; --f8-sec:64px; --f8-sec-title:20px;
  --f16-figure:clamp(32px,10vw,44px); --f16-small:14px;
}}
/* the grounds: a field (white text on the glass) and a pale field / paper (ink inside the glass). The stage sets it from its
   field (f7_stage_open: .f7-pale on sky, sky-meadow, dawn-mist, golden-field, fog); a section on its own field adds .on-field
   or .on-pale, glass on paper inside a field adds .on-paper. Pop-ups, the drawer and sheets measure their text (system.js). */
.f7-stage,.on-field{--f8-gfg:#fff;--f8-gfg2:rgba(255,255,255,.78);--f8-ring:#fff;--f8-gline:rgba(255,255,255,.18);--f8-gph:rgba(255,255,255,.72)}
.f7-stage.f7-pale,.f7-stage[data-tone="ink"],.on-pale,.on-paper{--f8-gfg:#0E1417;--f8-gfg2:rgba(14,20,23,.62);--f8-ring:#0E1417;--f8-gline:rgba(14,20,23,.08);--f8-gph:rgba(14,20,23,.42)}
html body :is(.bf-pop,.bf-sheet){--f8-gfg:var(--f7-ink);--f8-gfg2:var(--f7-ink);--f8-ring:var(--f7-ink)}
/* the fix 7 pages: the boards' short names too (bf.css), so page sheets can write var(--ink) */
body.f7{--paper:#F6F7F9;--card:#FFFFFF;--tile:#F1F3F5;--line:#E6EAED;--ink:#0E1417;--ink2:#3B4750;--sub:#5C6B75;--faint:#8A969E;
  --teal:#0A7A5C;--amber-ink:#8A5A00;--coral:#C23516;--display:var(--f7-display);--text:var(--f7-text);
  margin:0;background:var(--f7-paper);color:var(--f7-ink);font:400 1rem/1.5 var(--f7-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.f7 *,body.f7 *::before,body.f7 *::after{box-sizing:border-box}
body.f7 img{max-width:100%}
.f7-main{display:block;min-height:60vh;padding-bottom:var(--f8-foot)}
.f7-main.f7-paper-top{padding-top:calc(var(--f8-hdr-bottom) + var(--f8-title-top))}
/* fix 8 Part 2: the one column. Content 1200 at 1440 (x 120–1320); the gutter max(64, (width − 1200) / 2), 32 at ≤1023, 24 on
   phones, on every page (home and footer included). Inside a stage the stage's inset is taken off, so the edge is the same. */
.f7-wrap,.f8-col{width:100%;max-width:none;margin-left:auto;margin-right:auto;padding-left:max(var(--f8-gut-min),calc((100% - var(--f8-col)) / 2));padding-right:max(var(--f8-gut-min),calc((100% - var(--f8-col)) / 2))}
.f7-stage :is(.f7-wrap,.f8-col){padding-left:max(calc(var(--f8-gut-min) - var(--f8-inset)),calc((100% - var(--f8-col)) / 2));padding-right:max(calc(var(--f8-gut-min) - var(--f8-inset)),calc((100% - var(--f8-col)) / 2))}
.f7-d,.f7-h1,.f7-h2,.f7-h3,.f8-h2{font-family:var(--f7-display);font-weight:400;letter-spacing:-.04em;margin:0}
/* the type scale (Part 2): stage h1 64 / 56 / 40; section h2 48 / 40 / 32 (.f8-h2); card titles and app sections 32 / 28 / 24
   (.f7-h2, .f7-h3; big bento 40: .is-big); body 17 / 17 / 15 (.f8-body); labels 13 (.f8-label). Headings balance. */
.f8-h2{font-size:var(--f8-h2);line-height:1.08}
.f7-h2,.f7-h3{font-size:var(--f8-h3);line-height:1.12}
:is(.f7-h2,.f7-h3).is-big{font-size:var(--f8-h3-big)}
.f8-body{font-size:var(--f8-body);line-height:1.5}
.f8-label{font-size:var(--f8-label);line-height:1.3;font-weight:500}
body.f7 :is(h1,h2,h3,.f7-h1,.f7-h2,.f7-h3,.f8-h2){text-wrap:balance}
/* a two-tone title: the grey sentence goes on its own line on phones */
.f8-tone2{opacity:1;color:var(--f8-gfg2)}
.f7-stage .f8-tone2{color:inherit;opacity:.62}
@media (max-width:759px){.f8-tone2{display:block}}
/* the rhythm between blocks (Part 2), so pages never set their own: a section after a section, a sub-block, the section's title */
.f7-main>.f7-stage+*{margin-top:var(--f8-stage-after)}
.f8-sec+.f8-sec{margin-top:var(--f8-sec)}
.f8-sec-h{margin:0 0 var(--f8-sec-title)}
.f8-block+.f8-block{margin-top:var(--f8-block)}
.f8-cards{display:grid;gap:var(--f8-card-gap)}
.num,.f7-num{font-variant-numeric:tabular-nums}
.f7-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.f7-skip{position:absolute;left:12px;top:-60px;z-index:2000;padding:10px 16px;border-radius:999px;background:var(--f7-ink);color:#fff;text-decoration:none;font-weight:600}
.f7-skip:focus{top:12px}
.f7-i{flex:none;display:block}

/* ---------------------------------------------------------------- 2. ONE glass (fix 8 PROMPT 0.1)
   The live header pill's recipe for every container and every button, on a field and on paper. Classes:
     .glass-pane   the material only (radius and padding are yours)
     .glass-card   a container: radius 24, padding 32 / 28 / 20
     .glass-btn    a button: radius 999, 48 tall, secondary 15 / 500; .is-primary 16 / 600; .is-sm 38; .is-icon 40 round
     .glass-input  the glass input inside glass: .22, radius 999, 50 tall, padding 0 18, 16 px; .is-code ABC-123 spaced
     .glass-seg    the segmented control: the tray is the recipe, the chosen item a .32 knob with ink 600
   The older names point here: .bf-glass, .bf-glass-ink (ink text), .f7-card (on paper), .f7-btn-* (every kind), .bf-seg.
   Exceptions (PROMPT 0.1): the header's own buttons and pill, the chat bubbles, the plan cards, the pass, Bonfi, the
   calculator render, and the pop-ups / drawer / sheets (the same recipe, their text measured by system.js). */
:is(.glass-pane,.glass-card,.glass-btn,.glass-seg,.bf-glass,.bf-glass-ink,.f7-card,.f7-btn,.bf-seg){
  background:var(--f8-glass-bg);-webkit-backdrop-filter:var(--f8-glass-filter);backdrop-filter:var(--f8-glass-filter);
  box-shadow:var(--f8-glass-shadow);border:0}
:is(.glass-pane,.glass-card,.bf-glass){color:var(--f8-gfg)}
:is(.glass-card,.bf-glass,.bf-glass-ink,.f7-card){border-radius:var(--f8-r-card)}
.glass-card{padding:var(--f8-card-pad)}
.bf-glass-ink{color:var(--f7-ink);--f8-gfg:#0E1417;--f8-gfg2:rgba(14,20,23,.62);--f8-ring:#0E1417;--f8-gline:rgba(14,20,23,.08);--f8-gph:rgba(14,20,23,.42)}
/* secondary text on the glass: white .78 on a field (500 for small text), ink .62 on paper / pale */
.f8-fg2{color:var(--f8-gfg2)}
:is(.glass-card,.glass-pane,.bf-glass) :is(small,.f8-small){font-weight:500}
/* the glass button */
.glass-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:var(--f8-r-btn);
  font:500 0.9375rem/1 var(--f7-text);color:var(--f8-gfg);text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background-color .2s ease-out,opacity .15s}
.glass-btn.is-primary{font-size:1rem;font-weight:600}
.glass-btn.is-sm{height:38px;padding:0 16px;font-size:0.875rem}
.glass-btn.is-sm.is-primary{font-size:0.9375rem}
.glass-btn.is-icon{width:40px;height:40px;padding:0}
.glass-btn.is-full{width:100%}
.glass-btn svg{flex:none}
:is(.glass-btn,.f7-btn):hover{background:var(--f8-glass-hover)}
:is(.glass-btn,.f7-btn):active{transform:scale(.98)}
:is(.glass-btn,.f7-btn):focus-visible{outline:2px solid var(--f8-ring);outline-offset:2px}
:is(.glass-btn,.f7-btn):is(:disabled,[aria-disabled="true"]){opacity:.45;cursor:default;transform:none}
/* the glass input (inside a glass container): no ring, the caret only (Vilius, 14 Oct) */
.glass-input{display:block;width:100%;min-width:0;height:50px;margin:0;padding:0 18px;border:0;border-radius:var(--f8-r-btn);background:var(--f8-glass-input);
  font:400 1rem/1 var(--f7-text);color:var(--f8-gfg);caret-color:currentColor;outline:none;box-shadow:none;-webkit-appearance:none;appearance:none}
.glass-input:focus,.glass-input:focus-visible{outline:none;box-shadow:none}
.glass-input::placeholder{color:var(--f8-gph);opacity:1}
.glass-input.is-code{font-variant-numeric:tabular-nums;letter-spacing:.12em;text-transform:uppercase}
.glass-input.is-code::placeholder{letter-spacing:.12em}
/* the composer / a row holding the input and a button: the glass bar */
.glass-bar{display:flex;align-items:center;gap:8px;padding:6px;border-radius:var(--f8-r-btn)}
/* the segmented control (tabs or a radio group): the tray is the recipe, the chosen item a brighter glass knob with ink */
.glass-seg{display:inline-flex;gap:2px;padding:4px;border-radius:var(--f8-r-btn);max-width:100%;overflow-x:auto;scrollbar-width:none}
.glass-seg::-webkit-scrollbar{display:none}
.glass-seg :is(a,button,label){flex:none;display:inline-flex;align-items:center;justify-content:center;height:38px;min-width:120px;padding:0 18px;border:0;border-radius:var(--f8-r-btn);
  background:none;font:500 0.875rem/1 var(--f7-text);color:var(--f8-gfg);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s}
.glass-seg :is([aria-current="page"],[aria-checked="true"],[aria-selected="true"],.is-on),.glass-seg input:checked+label{
  background:var(--f8-glass-knob);box-shadow:var(--f8-glass-shadow);color:#0E1417;font-weight:600}
.glass-seg input{position:absolute;opacity:0;pointer-events:none}
.glass-seg :focus-visible,.glass-seg input:focus-visible+label{outline:2px solid var(--f8-ring);outline-offset:-2px}
.glass-seg.is-wide{display:flex;width:100%}
.glass-seg.is-wide>*{flex:1;min-width:0}

/* ---------------------------------------------------------------- fix 12 §1.2 / §1.3 (docs/fix12/SYSTEM.md)
   ONE layer of liquid: inside a glass container a pill, input, disc, tray or knob is a FLAT tint, never glass.
     .tint            on a field (pale fields too) and inside glass that stands on a field: white .22, hover / on .32
     .tint-on-paper   inside glass that stands on the paper: ink .06, hover / on .10
     .tint.panel      a container-shaped tint inside glass (radius 24)
     .seg             the segmented control (role radiogroup, assets/fix7/system.js slides its .seg-th knob)
     .textlink        the less important action of a pair: plain text 16 / 500 with a 16 px arrow; .ic ends on its own icon
   The pill shape is still .glass-btn; inside glass it takes .tint / .tint-on-paper as its material. */
.tint,.tint-on-paper{border:0;border-radius:999px;color:inherit;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;
  transition:background-color .2s cubic-bezier(.22,.7,.18,1)}
.tint{background:rgba(255,255,255,.22)}
.tint-on-paper{background:rgba(14,20,23,.06)}
:is(.tint,.tint-on-paper).panel{border-radius:24px}
:is(.glass-btn,.glass-input,.glass-bar).tint{background:rgba(255,255,255,.22);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
:is(.glass-btn,.glass-input,.glass-bar).tint-on-paper{background:rgba(14,20,23,.06);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
:is(button,a,label).tint:hover,.tint.is-on,.tint[aria-checked="true"],input.tint:focus,.glass-input.tint:focus{background:rgba(255,255,255,.32)}
:is(button,a,label).tint-on-paper:hover,.tint-on-paper.is-on,.tint-on-paper[aria-checked="true"],input.tint-on-paper:focus,.glass-input.tint-on-paper:focus{background:rgba(14,20,23,.10)}
:is(button,a,label).tint:active,:is(button,a,label).tint-on-paper:active{transform:scale(.98)}
.glass-btn.tint-on-paper,.tint-on-paper .glass-btn{color:var(--f7-ink)}
.glass-btn.is-sm.tint-on-paper{height:38px}
/* the safety net: a glass button, tray or pane that still sits inside a glass container loses its own glass */
:is(.glass-pane,.glass-card,.glass-bar,.bf-glass,.bf-glass-ink,.f7-card,.bf-sheet,.f7-drawer,.bf-pop,.f7-toast) :is(.glass-btn,.glass-seg,.glass-pane,.glass-card,.bf-glass,.bf-glass-ink,.f7-card,.f7-btn,.bf-seg):not(.tint):not(.tint-on-paper){
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;background:var(--f12-tint)}
:is(.glass-pane,.glass-card,.glass-bar,.bf-glass,.bf-glass-ink,.f7-card,.bf-sheet,.f7-drawer,.bf-pop,.f7-toast) :is(.glass-btn,.f7-btn):not(.tint):not(.tint-on-paper):hover{background:var(--f12-tint-on)}
:root{--f12-tint:rgba(14,20,23,.06);--f12-tint-on:rgba(14,20,23,.10)}
.f7-stage,.on-field,.on-pale{--f12-tint:rgba(255,255,255,.22);--f12-tint-on:rgba(255,255,255,.32)}
.on-paper,html body :is(.bf-pop,.bf-sheet){--f12-tint:rgba(14,20,23,.06);--f12-tint-on:rgba(14,20,23,.10)}

/* the segmented control: a flat track, a sliding .32 knob, no outlines, no dividers */
.seg{position:relative;display:flex;height:44px;padding:4px;border-radius:999px;background:rgba(255,255,255,.14);isolation:isolate;
  --seg-fg:rgba(255,255,255,.8);--seg-on:#fff;--seg-knob:rgba(255,255,255,.32);--seg-ring:#fff}
.seg.on-paper,.on-paper .seg{background:rgba(14,20,23,.05);--seg-fg:rgba(14,20,23,.66);--seg-on:#0E1417;--seg-knob:rgba(14,20,23,.10);--seg-ring:#0E1417}
.seg.on-pale,.on-pale .seg,.f7-stage.f7-pale .seg{--seg-fg:rgba(14,20,23,.7);--seg-on:#0E1417;--seg-ring:#0E1417}
.seg>:is(button,a,label){position:relative;z-index:1;flex:1 1 0;min-width:0;height:36px;padding:0 12px;border:0;border-radius:999px;background:none;
  display:inline-flex;align-items:center;justify-content:center;color:var(--seg-fg);font:500 0.9375rem/1 var(--f7-text);text-decoration:none;cursor:pointer;
  white-space:nowrap;font-variant-numeric:tabular-nums;transition:color .25s ease}
.seg>:is([aria-checked="true"],[aria-selected="true"],[aria-current="page"],.is-on){color:var(--seg-on);font-weight:600}
.seg>:is(button,a,label):hover{color:var(--seg-on)}
.seg>:is(button,a,label):focus-visible{outline:2px solid var(--seg-ring);outline-offset:-2px}
.seg>.seg-th{position:absolute;z-index:0;top:4px;bottom:4px;left:0;width:0;border-radius:999px;background:var(--seg-knob);opacity:0;pointer-events:none;
  transition:left .38s cubic-bezier(.22,.7,.18,1),width .38s cubic-bezier(.22,.7,.18,1),opacity .25s ease}
.seg.has-on>.seg-th{opacity:1}
/* no JS yet: the chosen segment carries its own knob */
.seg:not(.is-live)>:is([aria-checked="true"],[aria-selected="true"],[aria-current="page"],.is-on){background:var(--seg-knob)}

/* the second action of a pair: plain text, no container, the arrow moves 3 px on hover */
.textlink{display:inline-flex;align-items:center;gap:8px;flex:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;color:inherit;font:500 1rem/1.3 var(--f7-text);letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer}
.textlink::after{content:"";flex:none;width:16px;height:16px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  position:relative;left:0;transition:left .25s cubic-bezier(.22,.7,.18,1)}
.textlink.ic::after{content:none}
.textlink svg{flex:none;width:18px;height:18px}
.textlink:hover{text-decoration:none}
.textlink:hover::after{left:3px}
/* fix 13 (seams, reproduced 16 Oct in a real Chrome window): nothing beside or inside glass may get a GPU layer of its
   own, not even for a moment. A transform transition lifts its element onto a layer while it runs; that reshuffled the
   layers drawn with the glass, and Chrome rebuilt the glass's blur from half-updated tiles (straight lines through the
   code card while "No code yet? Ask the seller ->" was hovered). So the arrow slides by relative position, the press
   scale is instant, and the .seg knob slides by left / width: all painted in place, never on a layer. */
.textlink:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:6px}
.textlink.is-sub{opacity:.72}
/* a pair: the pill, then the text 26 after it; on phones the text goes under the pill */
.f12-pair{display:flex;flex-wrap:wrap;align-items:center;column-gap:26px;row-gap:14px}
@media (prefers-reduced-motion:reduce){.tint,.tint-on-paper,.textlink::after,.seg>*,.seg>.seg-th{transition:none!important}}

/* the chat (PROMPT 0.1): always the live liquid-glass chat straight on a field, never inside a white card */
.f8-chat{display:flex;flex-direction:column;gap:8px}
.f8-msg{max-width:min(80%,440px);padding:11px 15px;font:400 0.9375rem/1.4 var(--f7-text);overflow-wrap:anywhere}
.f8-msg.is-in{align-self:flex-start;background:#fff;color:#0E1417;border-radius:18px 18px 18px 6px}
.f8-msg.is-out{align-self:flex-end;background:rgba(14,20,23,.35);color:#fff;border-radius:18px 18px 6px 18px}
.f8-chat-who{font:500 0.8125rem/1.3 var(--f7-text);color:var(--f8-gfg2)}
html body .bf-pop{background:var(--f7-pop-bg)!important;-webkit-backdrop-filter:var(--f7-pop-filter)!important;backdrop-filter:var(--f7-pop-filter)!important;
  box-shadow:var(--f7-pop-shadow)!important;border-radius:28px;color:var(--f7-ink)!important;border:0!important}

/* ---------------------------------------------------------------- 3. the header (D2, PROMPT 1.1) */
.f7-hdr{position:fixed;top:0;left:0;right:0;z-index:900;pointer-events:none;color:#fff;font-family:var(--f7-text);-webkit-font-smoothing:antialiased}
.f7-hdr[data-tone="ink"],.f7-hdr.is-scrolled{color:var(--f7-ink)}
.f7-bar{position:relative;pointer-events:auto;width:calc(100% - 2 * (var(--f8-gut-min) - var(--f7-gut)));max-width:calc(var(--f7-w) + 2 * var(--f7-gut));height:var(--f8-hdr-h);margin:var(--f8-hdr-top) auto 0;border-radius:999px}
/* fix 8 Part 1: one header box on every page, at rest and scrolled: top 16, 64 tall, the column + 24 on each side (≤1023:
   top 8, 56 tall, the viewport − 16). The height never animates; only the glass below fades in, exactly as live.
   (bonfi3d) §7, "like Revolut": 72 tall on desktop, 64 on ≤1023 (the tokens); the same width, glass, tones and order. */
/* the pill's glass is its own layer, so the bar never becomes a backdrop root for what is inside it */
/* the header pill's own liquid glass, exactly as before fix 7 (navigation.css: the scrolled pill): clear .16, blur 20 / saturate 1.7,
   the thin light edge (Vilius, 14 Oct: "revert back only the visual liquid header design") */
.f7-bar::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:rgba(255,255,255,.16);
  -webkit-backdrop-filter:var(--f7-glass-filter);backdrop-filter:var(--f7-glass-filter);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12),0 10px 28px -14px rgba(15,21,25,.28);transition:opacity .2s ease-out}
.f7-hdr.is-scrolled .f7-bar::before{opacity:1}
/* over the hero video the pill keeps its liquid glass, as before fix 7 */
/* logo left, the nav on the pill's own centre, the right group right (Vilius, 14 Oct: "align the layout of the other options in
   the pill"): equal side tracks, so the nav is centred on the pill; where a side needs more room (1024 px, signed out, LT)
   that side keeps its width and the nav moves over rather than overlap */
.f7-hdr-in{position:relative;height:100%;display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);column-gap:16px;align-items:center;padding:0 var(--f7-gut)}
.f7-hdr-in>.f7-logo{justify-self:start}
.f7-hdr-in>.f7-right{justify-self:end}
.f7-hdr :where(a,button){color:inherit;-webkit-tap-highlight-color:transparent}
.f7-hdr :where(button){font:inherit;margin:0;border:0;background:none;cursor:pointer}

/* logo: 30 px tall, its side bearing taken back (-14 px); white at rest on a field, ink on paper and in the pill */
/* desktop: the logo at its pre-fix-7 size (about 98 px wide; Vilius, 14 Oct: "on desktop the logo bigger, on mobile as it is").
   The SVG has side bearing in proportion to its height, hence the larger negative margin: the wordmark stays on the column edge. */
/* (bonfi3d) §7.1: the box 128 × 61 (4 / 3 of 96 × 46), letters about 120 wide, the same artwork; -4 keeps the letters on the column edge */
.f7-logo{justify-self:start;display:inline-flex;align-items:center;height:61px;margin-left:-4px;text-decoration:none}
.f7-logo img{display:block;height:61px;width:auto}
.f7-logo .f7-li,.f7-hdr[data-tone="ink"] .f7-logo .f7-lw,.f7-hdr.is-scrolled .f7-logo .f7-lw{display:none}
.f7-hdr[data-tone="ink"] .f7-logo .f7-li,.f7-hdr.is-scrolled .f7-logo .f7-li{display:block}

/* nav: equal fixed slots, so a longer word never moves its neighbours. (bonfi3d) §7.1: 16/500 in 40-high pills, each as wide
   as its word plus 20 a side (no fixed 112 slots), gap 4, radius 999 */
.f7-nav{display:flex;justify-content:center;align-items:center;gap:4px;min-width:0}
.f7-slot{flex:none;display:inline-flex;align-items:center;justify-content:center;width:auto;height:40px;padding:0 20px;border-radius:999px;
  font:500 1rem/1 var(--f7-text);letter-spacing:0;text-decoration:none;white-space:nowrap;transition:background-color .15s ease-out,opacity .15s}
.f7-slot>span{display:block;white-space:nowrap}
.f7-slot:hover{opacity:.78}
.f7-slot[aria-current="page"],.f7-slot[aria-expanded="true"]{opacity:1;background:var(--f7-glass-bg);box-shadow:var(--f7-glass-edge);
  -webkit-backdrop-filter:var(--f7-glass-filter);backdrop-filter:var(--f7-glass-filter)}
.f7-hdr[data-tone="ink"] .f7-slot:is([aria-current="page"],[aria-expanded="true"]),
.f7-hdr.is-scrolled .f7-slot:is([aria-current="page"],[aria-expanded="true"]){background:rgba(14,20,23,.06);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* fix 12 (PROMPT §3, B2): the active slot keeps the live glass at rest; once the header glass is in, it is a flat tint
   (never glass on glass): .22 white over a field, ink .06 over paper (system.js sets data-under), a .35 s fade */
.f7-slot{transition:background-color .35s ease,box-shadow .35s ease,opacity .15s}
.f7-hdr.is-scrolled[data-under="field"] .f7-slot:is([aria-current="page"],[aria-expanded="true"]){background:rgba(255,255,255,.22)}

/* right group: every item a fixed width (EN 52, code 40, bell 40, + 44, avatar 36; or EN 52, Log in 84, Start a trade 140)
   (bonfi3d) §7.1: signed in, Have a code?, the bell, + and the avatar all 40 high with 44 hit areas; signed out, Log in 40 high
   16/500 padding 0 20 and Start a trade 46 high 16/600 padding 0 24, each as wide as its words */
.f7-right{justify-self:end;display:flex;justify-content:flex-end;align-items:center;gap:12px}
.f7-lang{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:3px;width:52px;height:36px;padding:0;border-radius:999px;
  font:600 0.8125rem/1 var(--f7-text)!important;letter-spacing:.02em}
.f7-lang .f7-i{opacity:.85}
.f7-ib{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:999px;text-decoration:none}
.f7-lang:hover,.f7-ib:hover,.f7-login:hover{opacity:.78}
.f7-lang[aria-expanded="true"],.f7-ib[aria-expanded="true"]{opacity:1;background:var(--f7-glass-bg);box-shadow:var(--f7-glass-edge)}
.f7-hdr:is([data-tone="ink"],.is-scrolled) :is(.f7-lang,.f7-ib)[aria-expanded="true"]{background:rgba(14,20,23,.06);box-shadow:none}
.f7-dot{position:absolute;top:9px;right:10px;width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px rgba(255,255,255,.0)}
.f7-plus{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--f7-ink);color:#fff!important;
  text-decoration:none;box-shadow:0 8px 20px -12px rgba(14,20,23,.45);transition:background-color .15s}
.f7-plus:hover{background:#26303A}
.f7-av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:50%;
  background:#fff;color:var(--f7-ink)!important;font:600 0.75rem/1 var(--f7-text)!important;letter-spacing:.02em}
.f7-hdr:is([data-tone="ink"],.is-scrolled) .f7-right .f7-av,.f7-av.f7-av-ink{background:var(--f7-ink);color:#fff!important}
.f7-av[aria-expanded="true"]{outline:2px solid currentColor;outline-offset:2px}
.f7-plus,.f7-av{position:relative}
.f7-right :is(.f7-ib,.f7-plus,.f7-av)::after{content:"";position:absolute;inset:-2px;border-radius:999px}   /* (bonfi3d) 44 to touch */
.f7-login{flex:none;display:inline-flex;align-items:center;justify-content:center;width:auto;height:40px;padding:0 20px;font:500 1rem/1 var(--f7-text);text-decoration:none;white-space:nowrap}
.f7-start,.f7-mstart{flex:none;display:inline-flex;align-items:center;justify-content:center;height:46px;border-radius:999px;background:#fff;color:var(--f7-ink)!important;
  font:600 1rem/1 var(--f7-text);text-decoration:none;white-space:nowrap;transition:background-color .15s,color .15s}
.f7-start{width:auto;padding:0 24px}
.f7-hdr:is([data-tone="ink"],.is-scrolled) :is(.f7-start,.f7-mstart){background:var(--f7-ink);color:#fff!important}
.f7-mright{display:none;align-items:center;gap:8px;justify-self:end}
.f7-mplus{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:var(--f7-ink);color:#fff!important;text-decoration:none}
.f7-mstart{height:44px;padding:0 18px;font-size:0.9375rem}   /* (bonfi3d) §7.2: 44 high, 15/600, padding 0 18 */
/* fix 12 (PROMPT §3, home10 SPEC "Header on phones"): the burger is only its two lines, 20 × 1.75, radius 2, 6.25 apart,
   currentColor (white at rest on a field, ink once the header glass is in), in a 44 × 44 button with no background, no
   circle, no glass. Open, the lines turn into the ✕ (.32 s): the drawer's close is the burger itself. */
.f7-burger{position:relative;display:inline-flex;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:none!important;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;color:inherit;cursor:pointer}
/* (bonfi3d) §7.2: the lines 22 × 2, 7 apart, centred in the same 44 × 44 box */
.f7-burger i{position:absolute;left:11px;width:22px;height:2px;border-radius:2px;background:currentColor;
  transition:transform .32s cubic-bezier(.22,.7,.18,1),top .32s cubic-bezier(.22,.7,.18,1)}
.f7-burger i:first-child{top:17.5px}
.f7-burger i:last-child{top:24.5px}
.f7-burger[aria-expanded="true"] i:first-child{top:21px;transform:rotate(45deg)}
.f7-burger[aria-expanded="true"] i:last-child{top:21px;transform:rotate(-45deg)}
.f7-hdr .f7-burger:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
.f7-mright .f7-burger{margin-left:-4px}   /* the 4 px it grew go into the gap: Start a trade and the + stay exactly where they are */
:is(.f7-mplus,.f7-mstart)::after{content:"";position:absolute;inset:-4px}   /* 48 px to touch */
.f7-mplus,.f7-mstart{position:relative}
.f7-hdr :focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* (bonfi3d) §7.1, 1024–1279 (replaces fix 8's 92 px slots and the 22 Oct 1024–1159 auto slots): first the nav goes to 15/500
   with padding 0 16; never wrap, never truncate. The prompt's second step (the logo box to 120 × 57) is not needed: with the nav
   at 15/16 every language fits at 1024, signed in and out (nav ↔ right group ≥ 16, measured in Chrome and WebKit, 26 Oct) */
@media (max-width:1279px){
  .f7-slot{font-size:0.9375rem;padding:0 16px}
}
/* ≤1023: logo; the round ink + (or Start a trade) and the burger. Language and the code move into the drawer. */
/* fix 8: 56 tall at rest and scrolled, the viewport − 16 wide, padding 0 16 (the burger's right edge at the viewport − 24),
   the "Start a trade" pill a fixed 114. The logo (Vilius, 22 Oct: "isn't the logo for the mobile too small?", then "not the
   same height" as desktop): 78 % of the desktop's 46, so 36 tall, a wordmark about 75 wide with 8 px letters. Measured on
   22 Oct: Revolut, Wise, Stripe, Vinted and N26 keep the desktop size on phones, Monzo goes to 2/3; the usual rule is
   70-80 % of desktop (.claude/dev/ui22/logos/). The letters' left edge stays where it was (x 19). */
@media (max-width:1023px){
  .f7-bar{width:calc(100% - 16px)}
  .f7-hdr-in{display:flex;justify-content:space-between;padding:0 16px}
  .f7-nav,.f7-right{display:none}
  .f7-mright{display:flex}
  .f7-logo{height:48px;margin-left:-8px}   /* (bonfi3d) §7.2: the box 100 × 48 (78 % of desktop), the letters' left edge kept at x 19 */
  .f7-logo img{height:48px}
  .f7-mstart{width:auto}
  .f7-hdr-in{column-gap:8px}   /* (bonfi3d) §7.2: logo, Start a trade and the burger with 8 gaps at the least */
}
/* (bonfi3d) §7.2, 360: logo 100 + Start a trade + burger fit the 16 px padding with 18 a side in EN, LT, LV and ET; the Polish
   label is the one that needs Start a trade's padding at 0 14 (measured 26 Oct, .claude/dev/bonfi3d/header/p360.mjs) */
@media (max-width:374px){html:lang(pl) .f7-mstart{padding:0 14px}}

/* over a playing video (the home hero): light fills, no live blur (fix 6) */
.f7-hdr.over-video :is(.f7-slot,.f7-lang,.f7-ib):is([aria-current="page"],[aria-expanded="true"]){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(255,255,255,.24)!important}
/* the pop-ups, the drawer and the sheets keep their glass over the video too, as the header pill does (14 Oct) */

/* ---------------------------------------------------------------- 4. pop-ups (.bf-pop) and the drawer */
.f7-dim{position:fixed;inset:0;z-index:850;background:rgba(14,20,23,.22);opacity:0;transition:opacity .16s ease-out}
.f7-dim.is-open{opacity:1}
.f7-dim[hidden],.f7-scrim[hidden]{display:none!important}
html:root body .bf-pop.f7-pop{position:fixed;z-index:1000;margin:0;padding:8px;max-width:calc(100vw - 20px);max-height:calc(100vh - var(--f7-top,84px) - 12px);overflow:auto;
  overscroll-behavior:contain;scrollbar-width:none;font:400 0.9375rem/1.35 var(--f7-text);text-align:left;text-shadow:none;
  opacity:0;transform:translateY(-6px);transition:opacity .16s ease-out,transform .16s ease-out;
  left:auto;right:auto;bottom:auto;border-radius:28px!important}
html:root body .bf-pop.f7-pop::-webkit-scrollbar{display:none}
html:root body .bf-pop.f7-pop::before{display:none!important}
html:root body .bf-pop.f7-pop.is-open{opacity:1;transform:none}
html body .bf-pop.f7-pop[hidden],html body .f7-drawer[hidden]{display:none!important}
.f7-pop :where(a),.f7-drawer :where(a){color:inherit;text-decoration:none}
.f7-pop :where(button),.f7-drawer :where(button){font:inherit;color:inherit;margin:0;border:0;background:none;cursor:pointer}
.f7-list{display:flex;flex-direction:column;gap:2px}
/* language: 216 px, five rows of 44, the current one white */
html:root body .f7-langpop{width:216px}
.f7-lrow{display:flex;align-items:center;justify-content:space-between;width:100%;height:44px;padding:0 14px 0 16px;border-radius:20px;
  font:500 0.9375rem/1 var(--f7-text)!important;color:var(--f7-ink);text-align:left;transition:background-color .12s}
.f7-lrow:hover{background:rgba(255,255,255,.45)}
.f7-lrow.is-on{background:#fff;font-weight:600!important}
/* "Have a code?": one 52 px white input (20 px tabular, .12em, uppercase) and the ink round arrow */
html:root body .f7-codepop{width:300px}
.f7-codeform{display:flex;gap:8px;align-items:center;margin:0}
.f7-cin{flex:1;min-width:0;width:100%;height:52px;border:0;border-radius:999px;background:#fff;padding:0 20px;margin:0;
  font:500 1.25rem/1 var(--f7-text);font-variant-numeric:tabular-nums;letter-spacing:.12em;text-transform:uppercase;color:var(--f7-ink);outline:none;box-shadow:none}
.f7-cin::placeholder{color:#AEB7BD;opacity:1;letter-spacing:.12em}
.f7-go{flex:0 0 52px;width:52px;height:52px;border-radius:999px;border:0;background:var(--f7-ink)!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.f7-go:disabled{opacity:.42;cursor:default}
.f7-codepop .bf-ferr,.f7-dcode .bf-ferr{display:block;margin:8px 12px 2px;font:500 0.8125rem/1.35 var(--f7-text);color:var(--f7-coral)}
/* the bell: plain rows (text + time), unread = a small ink dot and 600 (Part 12) */
html:root body .f7-bellpop{width:400px;padding:18px 10px 10px}
.f7-bell-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 14px 10px}
.f7-bell-t{margin:0;font:400 1.5rem/1.1 var(--f7-display);letter-spacing:-.04em}
.f7-bell-h form{margin:0}
.f7-link{padding:0;font:600 0.875rem/1.2 var(--f7-text)!important;color:var(--f7-ink)!important;text-decoration:none;background:none;border:0;cursor:pointer}
.f7-link:hover{text-decoration:underline;text-underline-offset:3px}
.f7-bell-list{display:flex;flex-direction:column}
.f7-nrow{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:14px 14px 14px 10px;border-radius:18px;font:500 0.9375rem/1.4 var(--f7-text);color:var(--f7-ink)}
/* fix 12 B3: no hairline between the bell's rows; their own padding groups them */
a.f7-nrow:hover{background:rgba(255,255,255,.45)}
.f7-nrow.is-new{font-weight:600}
.f7-nrow .f7-ndot{width:8px;height:8px;border-radius:50%;align-self:center;margin-left:4px}
.f7-nrow.is-new .f7-ndot{background:var(--f7-ink)}
.f7-nrow time{font-size:0.8125rem;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.f7-bell-none{margin:0;padding:14px;color:var(--f7-ink);font-size:0.9375rem}
/* the avatar menu: name, Your page, Settings, Language, Help, Log out */
html:root body .f7-mepop{width:288px;padding:18px 8px 8px}
.f7-who{display:flex;align-items:center;gap:12px;padding:0 12px 14px;min-width:0}
.f7-who>span:last-child{min-width:0}
.f7-who b{display:block;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f7-who b+span{display:block;font-size:0.875rem;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f7-av-lg{width:44px;height:44px;font-size:0.875rem!important;background:var(--f7-ink);color:#fff!important}
.f7-msep{height:10px;background:none;margin:0}   /* fix 12 B3: spacing, not a line */
.f7-mrow{display:flex;align-items:center;gap:14px;width:100%;height:48px;padding:0 14px;border-radius:16px;font:500 0.9375rem/1 var(--f7-text)!important;color:var(--f7-ink);text-align:left}
.f7-mrow:hover,.f7-mrow:focus-visible{background:rgba(255,255,255,.7);outline:none}
.f7-mrow-v{margin-left:auto;font-weight:500}
.f7-back .f7-i{transform:rotate(180deg)}
.f7-out{margin:0}
.f7-view[hidden]{display:none!important}
/* fix 14 §1.2 / §11 #8: never see-through glass over glass. .f14-paper (system.js f14ground(): any pop-up that would open
   over glass; over a field, the paper or a picture it keeps the pill glass): solid paper, ink, the etalon's outer shadow,
   radius 24; the current / hovered row and the code field on the ink tint, as on the paper everywhere else */
html.f14:root body .bf-pop.f7-pop.f14-paper{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  box-shadow:0 10px 28px -14px rgba(15,21,25,.28)!important;border-radius:24px!important;--f7-ink:#0E1417;--ink:#0E1417;color:#0E1417!important}
html.f14 .f14-paper :is(.f7-lrow,.f7-mrow,a.f7-nrow):is(:hover,:focus-visible),html.f14 .f14-paper .f7-lrow.is-on{background:rgba(14,20,23,.06)}
html.f14 .f14-paper .f7-cin{background:rgba(14,20,23,.06)}
html.f14 .f14-paper .f7-cin::placeholder{color:rgba(14,20,23,.42)}

/* the drawer (fix 12 PROMPT §3; home10 SPEC "Header on phones"): ONE etalon glass sheet, fixed left / right 8, top 72
   (8 under the 56 header at top 8: they never touch), radius 24, padding 14 24 22, ink text. Behind it a flat paper veil
   rgba(246,247,249,.92), not glass. The header stays above both (its burger is the ✕), forced to its scrolled state.
   Rows: Outfit 26, 54 high, no icons, no lines; then text actions 16 / 500 (Log in, English ⌄; signed in the one
   tint pill "Have a code?" and English ⌄). Opacity + an 8 px drop, .28 / .36 s. */
.f7-scrim{position:fixed;inset:0;z-index:880;background:rgba(246,247,249,.92);opacity:0;transition:opacity .3s ease}
.f7-scrim.is-open{opacity:1}
html:root body .bf-pop.f7-drawer{position:fixed;z-index:890;top:calc(var(--f8-hdr-bottom) + 8px)!important;left:8px!important;right:8px!important;bottom:auto!important;width:auto!important;max-width:none;
  max-height:calc(100dvh - var(--f8-hdr-bottom) - 16px);   /* (bonfi3d) §7.2: 8 under the header box (top 80), 8 above the floor */
  overflow:auto;overscroll-behavior:contain;scrollbar-width:none;margin:0;padding:14px 24px 22px!important;border-radius:24px!important;
  color:var(--f7-ink)!important;font:400 1rem/1.35 var(--f7-text);opacity:0;transform:translateY(-8px);transform-origin:top center;
  transition:opacity .28s ease,transform .36s cubic-bezier(.22,.7,.18,1)}
html:root body .bf-pop.f7-drawer::-webkit-scrollbar{display:none}
html:root body .bf-pop.f7-drawer::before{display:none!important}
html:root body .bf-pop.f7-drawer.is-open{opacity:1;transform:none}
.f7-drows{display:flex;flex-direction:column}
.f7-drow{display:flex;align-items:center;width:100%;height:54px;margin:0;padding:0;border:0;border-radius:0;background:none;text-align:left;
  font:400 1.625rem/1 var(--f7-display)!important;letter-spacing:-.03em;color:var(--f7-ink);text-decoration:none;cursor:pointer}
.f7-drow.is-on{font-weight:500!important}
.f7-drow:hover{opacity:.72}
.f7-dx{display:flex;flex-wrap:wrap;align-items:center;column-gap:28px;row-gap:8px;margin-top:14px;font:500 1rem/1.3 var(--f7-text);color:#3B4750}
.f7-dx>:is(a,button){display:inline-flex;align-items:center;min-height:44px}
.f7-dlink{color:inherit;text-decoration:none;font:500 1rem/1.3 var(--f7-text)}
.f7-dlink:hover{opacity:.72}
.f7-dx .textlink{color:inherit}
.f7-dx .textlink svg{width:18px;height:18px;transition:transform .2s}
.f7-dlang[aria-expanded="true"] svg{transform:rotate(180deg)}
/* signed in: the one tint pill (the sheet is glass over the paper veil, so the tint is ink .06) and English ⌄ as text */
.f7-dx-in{margin-top:18px;color:var(--f7-ink)}
.f7-dx-in .f7-dpill{height:48px;padding:0 24px;color:var(--f7-ink)}
/* the code field, opened in place: a tint field and a tint round arrow, no ring (the caret only) */
.f7-dcode{padding:10px 0 0}
.f7-dcode[hidden]{display:none}
.f7-drawer .f7-cin{height:50px;background:rgba(14,20,23,.06);font-size:1.125rem;color:var(--f7-ink)}
.f7-drawer .f7-cin::placeholder{color:rgba(14,20,23,.42)}
.f7-drawer .f7-go{flex-basis:50px;width:50px;height:50px;background:rgba(14,20,23,.06)!important;color:var(--f7-ink)!important;transition:background-color .2s}
.f7-drawer .f7-go:not(:disabled):hover{background:rgba(14,20,23,.10)!important}
/* the languages, opened in place under the actions */
.f7-dlangs{display:grid;gap:0;margin-top:6px}
.f7-dlangs[hidden]{display:none}
.f7-dlrow{display:flex;align-items:center;justify-content:space-between;width:100%;height:44px;padding:0;border:0;background:none;font:500 1rem/1 var(--f7-text)!important;color:var(--f7-ink);text-align:left;cursor:pointer}
.f7-dlrow.is-on{font-weight:600!important}
.f7-dlrow:hover{opacity:.72}
.f7-drawer :focus-visible{outline:2px solid var(--f7-ink);outline-offset:2px;border-radius:8px}
.f7-drawer .f7-dpill:focus-visible{border-radius:999px}
.f7-pop :focus-visible{outline:2px solid var(--f7-ink);outline-offset:2px}
/* a sheet's ✕: a flat tint disc inside the glass (fix 12 B2: never glass, never a white disc on glass) */
.f7-x{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:0;padding:0;background:rgba(14,20,23,.06)!important;color:var(--f7-ink)!important;cursor:pointer}
.f7-x:hover{background:rgba(14,20,23,.10)!important}
/* the ground decides the text (system.js tone(), fix 5's measuring): .f7-w where white reads better than ink over what
   is under the glass. A row on its own fill (the current language, the code input, the ✕) keeps ink; hover, focus and the
   current row stay readable in both tones. On 16 % glass a grey or faded line can't reach 4.5:1, so the secondary lines
   (times, the handle, the current language, Log out) are full ink / white; size and weight carry the hierarchy. */
/* the ink on the glass is #000: where white and ink read the same, both still reach 4.6:1 (with #0E1417 only 4.3:1) */
html body :is(.bf-pop,.bf-sheet,.f7-toast){--f7-ink:#000;--ink:#000}
html body .f7-w{color:#fff!important;text-shadow:0 1px 2px rgba(14,20,23,.32)}
html body .f7-w:focus-visible{outline-color:#fff!important}
html body :is(.f7-lrow,.f7-drow,.f7-dlrow,.f7-dyou,a.f7-nrow).f7-w:hover,html body .f7-mrow.f7-w:is(:hover,:focus-visible){background:rgba(255,255,255,.12)}
html body .f7-mrow.f7-w:focus-visible{outline:2px solid #fff;outline-offset:-2px}
html body .f7-nrow.is-new.f7-w .f7-ndot{background:#fff}
html body .f7-who.f7-w .f7-av-lg{background:#fff;color:var(--f7-ink)!important;text-shadow:none}
html body .bf-sheet :has(> .f7-w) > svg{color:#fff}
/* while tone() measures (one synchronous moment), every layer can be hit, so the photo and the shades over it are found */
html.f7-probe *{pointer-events:auto!important}
@media (min-width:1024px){html body .f7-drawer,.f7-scrim{display:none!important}}
html.f7-lock,html.f7-lock body{overflow:hidden}

/* ---------------------------------------------------------------- 5. the stage (PROMPT 1.3) */
/* fix 8 Part 2: the stage fits its content (min 400 on desktop, no fixed heights); the title 64 under the header's bottom
   (48 / 32), the floor 64 under the last element (48 / 24); inset 10 / radius 32 (phones 8 / 28) */
.f7-stage{position:relative;isolation:isolate;overflow:hidden;margin:var(--f8-inset);border-radius:var(--f8-r-stage);min-height:var(--f8-stage-min);color:#fff;
  -webkit-clip-path:inset(0 round var(--f8-r-stage));clip-path:inset(0 round var(--f8-r-stage));display:flex;flex-direction:column}
.f7-stage[data-tone="ink"]{color:var(--f7-ink)}
.f7-stage>.f7-field{position:absolute;inset:0;z-index:-3;display:block}
.f7-stage>.f7-field img{display:block;width:100%;height:100%;object-fit:cover}
/* grain: on the field only, the bottom layer, one tile pixel per device pixel */
.f7-stage>.f7-grain{position:absolute;inset:0;z-index:-2;pointer-events:none;background:var(--grain-src,url(/assets/grain/grain-256.png?v=1791197830)) repeat;
  background-size:var(--grain-size,128px) var(--grain-size,128px);mix-blend-mode:soft-light;opacity:1}
/* light fields: the top scrim .22 under the header */
.f7-stage>.f7-scrim{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:1;background:linear-gradient(180deg,rgba(14,20,23,.22),rgba(14,20,23,0) 45%)}
.f7-stage-in{position:relative;flex:1;display:flex;flex-direction:column;justify-content:flex-start;
  padding-top:calc(var(--f8-hdr-bottom) + var(--f8-title-top) - var(--f8-inset));padding-bottom:var(--f8-stage-pb)}
.f7-stage-grid{display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:var(--f8-title-obj);align-items:start}
.f7-title{min-width:0}
.f7-title+*{margin-top:var(--f8-title-obj)}
.f7-stage-grid>.f7-title+*{margin-top:0}
.f7-h1{font-size:var(--f8-h1);line-height:1.06}
.f7-sub{margin:var(--f8-title-sub) 0 0;font-size:var(--f8-body);line-height:1.45}
@media (max-width:1023px){.f7-stage-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:759px){.f7-h1{line-height:1.1}}

/* ---------------------------------------------------------------- 6. buttons and links (pill buttons stay: they are buttons) */
/* fix 8 (0.1): every kind is the one glass button now (section 2). ink / white = primary 16 / 600, glass / quiet =
   secondary 15 / 500; the text follows the ground (white on a field, ink on paper and inside glass on a pale field). */
.f7-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;
  font:500 0.9375rem/1 var(--f7-text);color:var(--f8-gfg)!important;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .2s ease-out,opacity .15s}
.f7-btn-ink,.f7-btn-white{font-size:1rem;font-weight:600}
.f7-btn-sm{height:38px;padding:0 16px;font-size:0.875rem}
.f7-btn-sm:is(.f7-btn-ink,.f7-btn-white){font-size:0.9375rem}
.f7-btn-full{width:100%}
.f7-a{color:var(--f7-ink);font-weight:600;text-decoration:none;font-size:0.9375rem}
.f7-a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------------------------------------------------------------- 7. status text (rule 1: no tags) */
.bf-status{display:inline;padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;font-size:0.875rem;font-weight:600;line-height:1.35;height:auto}
.bf-status::before{content:none!important;display:none!important}
.bf-status.is-done{color:var(--f7-teal)}
.bf-status.is-wait{color:var(--f7-amber)}
.bf-status.is-off{color:var(--f7-sub)}
/* on a field the status reads white */
.f7-stage .bf-status,.bf-glass .bf-status{color:inherit;opacity:.92}

/* ---------------------------------------------------------------- 8. cards on paper (rule 4) */
/* fix 8 (0.1): the card on paper is the one glass too (section 2), ink text; the hairline rows inside it stay */
.f7-card{color:var(--f8-gfg)}
.f7-sec{margin-top:var(--f8-block)}
.f7-sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 var(--f8-sec-title)}

/* ---------------------------------------------------------------- 9. code, row, seg */
/* the code: plain tabular text, .14em; Copy (white on a field, ink on paper) and Share (glass / quiet) */
.bf-code-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bf-code-row .bf-code{margin-right:auto}
.bf-code:not(form){font-variant-numeric:tabular-nums;letter-spacing:.14em;font-weight:500;line-height:1.1;white-space:nowrap}
@media (max-width:759px){
  .bf-code-row.is-big{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .bf-code-row.is-big .bf-code{grid-column:1/-1;margin:0 0 4px}
  .bf-code-row.is-big .f7-btn{height:48px;font-size:0.9375rem;width:100%}
}
/* the row: name, status, date, amount, chevron (D3 Finished: 1fr 160 120 110 20) */
.bf-row{display:grid;grid-template-columns:minmax(0,1fr) 160px 120px 110px 20px;align-items:center;gap:16px;min-height:60px;padding:18px 0;
  border-top:0;color:var(--f7-ink);text-decoration:none;font-size:1rem}   /* fix 12 B3: no hairline between rows */
a.bf-row:hover .bf-row-name{text-decoration:underline;text-underline-offset:3px}
.bf-row-name{min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bf-row-sub{display:block;margin-top:3px;font-size:0.875rem;font-weight:500;color:var(--f7-sub);overflow:hidden;text-overflow:ellipsis}
.bf-row-date{font-size:0.875rem;color:var(--f7-sub)}
.bf-row-amt{text-align:right;font-weight:600;white-space:nowrap}
.bf-row.is-muted .bf-row-amt{color:var(--f7-faint)}
.bf-row-chev{color:var(--f7-sub);display:flex;justify-content:flex-end}
.bf-row-act{display:flex;justify-content:flex-end}
@media (max-width:759px){
  /* phones: two lines (M3) — name + amount, status + date */
  .bf-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n a" "s d";row-gap:4px;column-gap:12px;padding:16px 0;min-height:0}
  .bf-row-name{grid-area:n}.bf-row-amt{grid-area:a}.bf-row-status{grid-area:s}.bf-row-date{grid-area:d;text-align:right}
  .bf-row-chev{display:none}.bf-row-act{grid-column:1/-1}
}
/* in-page tabs: the segmented control (navigation, not a tag), #hash URLs */
/* fix 8 (0.1): the tray is the one glass (section 2) on paper and on a field alike; the chosen tab a .32 knob, ink 600 */
.bf-seg{display:inline-flex;gap:2px;padding:4px;border-radius:999px;max-width:100%;overflow-x:auto;scrollbar-width:none}
.bf-seg::-webkit-scrollbar{display:none}
.bf-seg a,.bf-seg button{flex:none;display:inline-flex;align-items:center;justify-content:center;height:38px;min-width:120px;padding:0 16px;border:0;border-radius:999px;
  background:none;font:500 0.875rem/1 var(--f7-text);color:var(--f8-gfg);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s}
/* the current tab (aria-current) or the chosen option of a radio group (role="radiogroup", aria-checked) */
.bf-seg a[aria-current="page"],.bf-seg button[aria-current="page"],.bf-seg [aria-checked="true"]{background:var(--f8-glass-knob);color:#0E1417;font-weight:600;box-shadow:var(--f8-glass-shadow)}
.bf-seg :focus-visible{outline:2px solid var(--f8-ring);outline-offset:-2px}
[data-f7-panel][hidden]{display:none!important}
/* the toggle switch (f7_toggle()): a 44 × 26 track, ink when on; .is-on on a <span> draws the same look for a row that links elsewhere */
.bf-toggle{-webkit-appearance:none;appearance:none;position:relative;flex:none;display:inline-block;width:44px;height:26px;margin:0;border:0;border-radius:999px;
  background:rgba(14,20,23,.16);cursor:pointer;transition:background-color .15s;vertical-align:middle}
.bf-toggle::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(14,20,23,.25);transition:left .15s}
.bf-toggle:checked,.bf-toggle.is-on{background:var(--f7-ink)}
.bf-toggle:checked::after,.bf-toggle.is-on::after{left:21px}
.bf-toggle:disabled{opacity:.5;cursor:default}
.bf-toggle:focus-visible{outline:2px solid var(--f7-ink);outline-offset:2px}
@media (max-width:759px){.bf-seg a,.bf-seg button{min-width:0;padding:0 14px}}
/* (fix 8 PROMPT 0.6: the Money Path is gone; f7_money_path() prints nothing and its styles are deleted) */

/* ---------------------------------------------------------------- 10. the sheet, the toast */
.bf-sheet{position:fixed;z-index:1002;top:10px;right:10px;bottom:10px;width:min(440px,calc(100vw - 20px));display:flex;flex-direction:column;
  border-radius:28px;background:var(--f7-pop-bg);-webkit-backdrop-filter:var(--f7-pop-filter);backdrop-filter:var(--f7-pop-filter);box-shadow:var(--f7-pop-shadow);
  color:var(--f7-ink);overflow:hidden;opacity:0;transform:translateX(16px);transition:opacity .2s ease-out,transform .2s ease-out}
.bf-sheet.is-wide{width:min(560px,calc(100vw - 20px))}
.bf-sheet.is-open{opacity:1;transform:none}
.bf-sheet[hidden]{display:none!important}
.bf-sheet-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 8px 24px}
.bf-sheet-t{margin:0;font:400 1.625rem/1.15 var(--f7-display);letter-spacing:-.04em}
.bf-sheet-in{flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding:8px 24px 24px}
.bf-sheet-in::-webkit-scrollbar{display:none}
.f7-wash{position:fixed;inset:0;z-index:1001;background:rgba(14,20,23,.22);opacity:0;transition:opacity .2s ease-out}
.f7-wash.is-open{opacity:1}
.f7-wash[hidden]{display:none}
@media (max-width:759px){
  .bf-sheet,.bf-sheet.is-wide{top:auto;left:8px;right:8px;bottom:0;width:auto;max-height:calc(100dvh - 56px);border-radius:28px 28px 0 0;transform:translateY(16px);
    padding-bottom:env(safe-area-inset-bottom,0px)}
  .bf-sheet-top{padding:14px 12px 6px 20px}
  .bf-sheet-in{padding:6px 20px 20px}
}
.f7-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1100;transform:translate(-50%,8px);opacity:0;pointer-events:none;
  padding:12px 18px;border-radius:999px;background:var(--f7-pop-bg);-webkit-backdrop-filter:var(--f7-pop-filter);backdrop-filter:var(--f7-pop-filter);box-shadow:var(--f7-pop-shadow);
  color:var(--f7-ink);font:600 0.875rem/1.2 var(--f7-text);transition:opacity .18s ease-out,transform .18s ease-out}
.f7-toast.is-on{opacity:1;transform:translate(-50%,0)}
.f7-toast:empty{display:none}

/* fix 12 (B2 / B3) the cookie card: its buttons are flat tints (no rings), the switch rows have no lines. "Allow all" and
   "Deny" stay two equal pills on purpose: a consent choice must not make refusing harder than accepting. Settings is text. */
html body .bf-cc .bf-cc-b{border:0!important;box-shadow:none}
html body .bf-cc .bf-cc-b:not(.bf-cc-b--more){background:rgba(255,255,255,.22);color:#fff}
html body .bf-cc .bf-cc-b:not(.bf-cc-b--more):hover{background:rgba(255,255,255,.32)}
html body .bf-cc .bf-cc-b--fill{font-weight:600}
html body .bf-cc .bf-cc-b--more,html body .bf-cc--open .bf-cc-b--more{background:none}
html body .bf-cc .bf-cc-row{border-top:0}

/* the pass (app/v5.php pass(), on You and /@handle): its initials disc and QR plate are the .bf-glass recipe too */
html:root body .v5-pass :is(.av,.qr){background:var(--f7-glass-bg)!important;-webkit-backdrop-filter:var(--f7-glass-filter)!important;backdrop-filter:var(--f7-glass-filter)!important}

/* phones (Part 13): every tap target at least 44 px. Text links stand 44 tall; the 38–40 px pills, tabs, the sheet's ✕ and
   the switch keep their look and get the missing height as an invisible touch area */
@media (max-width:759px){
  .f7-a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  :is(.f7-btn-sm,.bf-seg a,.bf-seg button,.f7-x){position:relative}
  :is(.f7-btn-sm,.bf-seg a,.bf-seg button)::after{content:"";position:absolute;inset:-3px 0}
  .f7-x::after{content:"";position:absolute;inset:-2px}
  .bf-toggle::before{content:"";position:absolute;inset:-9px 0}
}

/* ---------------------------------------------------------------- 11. fallbacks: solid light with ink text, never dark */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .bf-glass,.bf-glass-ink,html body .bf-pop,.bf-sheet,.f7-toast,.f7-btn-glass,.bf-seg-glass,.f7-hdr.is-scrolled .f7-bar::before{background:var(--f7-solid)!important;color:var(--f7-ink)!important}
  .bf-seg-glass a,.f7-btn-glass{color:var(--f7-ink)!important}
  html body .f7-w{color:var(--f7-ink)!important;text-shadow:none!important}
  /* fix 8: the one glass's classes, the same way: solid light, ink text */
  :is(.glass-pane,.glass-card,.glass-btn,.glass-seg,.glass-bar,.f7-card,.f7-btn,.bf-seg){background:var(--f7-solid)!important;--f8-gfg:#0E1417;--f8-gfg2:rgba(14,20,23,.62);--f8-ring:#0E1417;--f8-gph:rgba(14,20,23,.42)}
  .glass-input{background:#fff!important}
}
@media (prefers-reduced-transparency:reduce){
  .bf-glass,.bf-glass-ink,html body .bf-pop,.bf-sheet,.f7-toast,.f7-btn-glass,.bf-seg-glass,.f7-hdr.is-scrolled .f7-bar::before{background:var(--f7-solid)!important;color:var(--f7-ink)!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .bf-seg-glass a,.f7-btn-glass{color:var(--f7-ink)!important}
  html body .f7-w{color:var(--f7-ink)!important;text-shadow:none!important}
  /* fix 8: the one glass's classes, the same way: solid light, ink text, no blur */
  :is(.glass-pane,.glass-card,.glass-btn,.glass-seg,.glass-bar,.f7-card,.f7-btn,.bf-seg){background:var(--f7-solid)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;--f8-gfg:#0E1417;--f8-gfg2:rgba(14,20,23,.62);--f8-ring:#0E1417;--f8-gph:rgba(14,20,23,.42)}
  .glass-input{background:#fff!important}
}
@media (prefers-reduced-motion:reduce){
  .bf-toggle,.bf-toggle::after,.f7-bar,.f7-bar::before,.bf-pop.f7-pop,.glass-btn,.f7-btn,.glass-seg *,.bf-seg *,.f7-drawer,.bf-sheet,.f7-toast,.f7-dim,.f7-scrim,.f7-wash,.f7-burger i,.f7-slot{transition:none!important}
}

/* The home hero where it was before fix 7: the old header sat in the hero's flow and took 62 px above its text; the fix 7
   header is fixed and takes none, which lifted the title, line and button by 62 px (Vilius, 14 Oct: "why the text part is
   shifted up ... drag it down a bit"). The hero's markup is untouched. */
body.ui1-home section.hero.hero-photo-mode{margin-top:62px}

/* ---------------------------------------------------------------- 12. fix 8: the footer on the column (Part 2, FINDINGS §3)
   Only its column: the content 120–1320 at 1440 (the gutter of every page), the phone edge 24; 120 above it (72 phones),
   which main's padding gives, so the footer adds none of its own. Its design is untouched. */
html body .bf-ft .bf-ft-wrap{max-width:none;--ft-pad:max(var(--f8-gut-min),calc((100% - var(--f8-col)) / 2));padding:0 var(--ft-pad)}
html body .bf-ft.f7-ft{margin-top:0}
/* fix 13: baked glass (assets/fix7/system.js): a panel on a still field gets its blur computed once from that field, under
   the same tint; the ring and shadow stay the recipe's. The live backdrop-filter is off for these panels only (the header,
   the pop-ups, the drawer and sheets float over moving content and stay live). */
.f13-baked{background-image:linear-gradient(var(--f13-t,var(--f13-t0,var(--f8-glass-bg))),var(--f13-t,var(--f13-t0,var(--f8-glass-bg)))),var(--f13-bk)!important;
  background-size:100% 100%,var(--f13-bs,100% 100%)!important;background-position:0 0!important;background-repeat:no-repeat!important;background-color:transparent!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.f13-baked:is(.glass-btn,a,button):hover{--f13-t:var(--f8-glass-hover)}

/* fix 16 §9 (html.f16): the header's "+" (New trade) shows a visible keyboard ring: 2 px, white over a field, ink once the
   header is over paper or scrolled, 2 px off its edge (fix 14 §1.1). Before, fix 5's ring (3 px ink at 18 %) sat on the
   ink disc and could not be seen. Only :focus-visible changes; at rest and on hover the header is exactly as live.
   (two :not(#…) outweigh fix 5's focus rule: an id inside its :not(:is(…)) and six attribute tests) */
html.f16 .f7-hdr :is(.f7-plus,.f7-mplus):focus-visible:not(#f16-a):not(#f16-b){outline:2px solid #fff!important;outline-offset:2px!important;box-shadow:0 8px 20px -12px rgba(14,20,23,.45)!important}
html.f16 .f7-hdr:is([data-tone="ink"],.is-scrolled) :is(.f7-plus,.f7-mplus):focus-visible:not(#f16-a):not(#f16-b){outline-color:var(--f7-ink)!important}

/* ---------------------------------------------------------------- 22 Oct 2026 (Vilius)
   1. a sheet stands on the page's own field, as the header pill does (system.js openSheet()): the veil is the stage's field
      (its colour and picture, set by the script) with the grain over it, never the white veil; on a field the sheet's glass
      text, buttons and inputs are white (.f7-sh-w), on a pale field ink
   2. the pop-ups keep one inset all round: the avatar menu's name and the bell's title as far from the top as from the side,
      "See all" on the rows' edge
   3. a row a script focused after a click gets no fill (html.bf-ptr: the pointer was last; assets/fix5/focus.css) */
html.f16 .f7-wash.is-field{background-size:cover;background-position:center;background-repeat:no-repeat}
html.f16 .f7-wash.is-field::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--grain-src,url(/assets/grain/grain-256.png?v=1791197830)) repeat;
  background-size:var(--grain-size,128px) var(--grain-size,128px);mix-blend-mode:soft-light}
html body .bf-sheet.f7-sh-w{--f8-gfg:#fff;--f8-gfg2:rgba(255,255,255,.78);--f8-ring:#fff;--f8-gline:rgba(255,255,255,.18);--f8-gph:rgba(255,255,255,.72)}
html:root body .f7-mepop .f7-who{padding-top:12px}
html:root body .f7-bellpop .f7-bell-h{padding-top:10px}
html.f16 .f7-bellpop .f16-bell-all{padding:0 14px}
html.bf-ptr :is(.f7-mrow,.f7-lrow,.f7-drow,.f7-dlrow,a.f7-nrow):focus-visible:not(:hover):not(.is-on){background:none!important}
/* the controls of a sheet on a field: the header's glass, white text (the paper's ink tint is for glass on paper) */
html body .bf-sheet.f7-sh-w .tint-on-paper{background:rgba(255,255,255,.16);color:#fff}
html body .bf-sheet.f7-sh-w :is(.glass-input,input.tint-on-paper){background:var(--f8-glass-input);color:#fff;caret-color:#fff}
html body .bf-sheet.f7-sh-w :is(button,a,label).tint-on-paper:hover,html body .bf-sheet.f7-sh-w :is(.tint-on-paper.is-on,.tint-on-paper[aria-checked="true"],input.tint-on-paper:focus){background:rgba(255,255,255,.26)}
html body .bf-sheet.f7-sh-w .glass-btn.tint-on-paper,html body .bf-sheet.f7-sh-w .tint-on-paper .glass-btn{color:#fff}
html body .bf-sheet.f7-sh-w input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){color:#fff;caret-color:#fff}
html body .bf-sheet.f7-sh-w input::placeholder{color:rgba(255,255,255,.72)}
html body .bf-sheet.f7-sh-w .f7-x{background:rgba(255,255,255,.16)!important;color:#fff!important}
html body .bf-sheet.f7-sh-w .seg{background:rgba(255,255,255,.16);--seg-fg:rgba(255,255,255,.82);--seg-on:#fff;--seg-knob:rgba(255,255,255,.32);--seg-ring:#fff}
/* the file picker's button: a small pill of the sheet's own material, never the browser's grey box */
html body .bf-sheet input[type="file"]{font:500 0.875rem/1.4 var(--f7-text);color:inherit}
html body .bf-sheet input[type="file"]::file-selector-button{height:38px;margin:0 12px 0 0;padding:0 16px;border:0;border-radius:999px;
  background:rgba(14,20,23,.06);color:var(--f7-ink);font:600 0.875rem/1 var(--f7-text);cursor:pointer}
html body .bf-sheet.f7-sh-w input[type="file"]::file-selector-button{background:rgba(255,255,255,.22);color:#fff}
/* New trade's side switch: both halves as wide as the wider, so the chosen side turning 600 never widens or shifts it */
html.f16 .seg.f8nt-role{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0}
/* the knob is exactly the chosen half, in CSS (22 Oct 2026: measured by script before the font had loaded it came out wider
   than its half and stayed so in Safari); no ring on it after a click, whatever older rule draws one */
html.f16 .seg.f8nt-role>.seg-th{width:calc((100% - 8px) / 2)!important;left:4px!important}
html.f16 .seg.f8nt-role:has(>[role="radio"]:last-child[aria-checked="true"])>.seg-th{left:50%!important}
html.f16.bf-ptr .seg>:is(button,a,label,[role="radio"]):is(:focus,:focus-visible){outline:none!important;box-shadow:none!important}
html.f16 .seg.f8nt-role>[data-b]{display:inline-grid;justify-items:center;align-content:center}   /* the word in the middle of its 36 (the bold copy under it is 0 tall) */
html.f16 .seg.f8nt-role>[data-b]::after{content:attr(data-b);height:0;overflow:hidden;visibility:hidden;font-weight:600;pointer-events:none}
/* the field veil is dimmed as any veil behind a dialog is, so the sheet's text reads at 4.5:1 on every field (measured by tone()) */
html.f16 .f7-wash.is-field::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(var(--f7-wash-dim,rgba(14,20,23,.38)),var(--f7-wash-dim,rgba(14,20,23,.38)))}
/* New trade (22 Oct 2026, Vilius: "it extends for no reason"): the line under the button is "Selling a code or files?" (a
   20 px link) when selling and "Buying a code or files?" (a 30 px summary) when buying, so the card grew 10 px at each switch.
   Both lines now keep the one tap-row height, the words centred in it; an opened "Buying …" still grows, as it should */
html.f16 .f8nt-card .f8nt-quiet:not([hidden]){min-height:44px;align-items:center}
html.f16 .f8nt-card .f8nt-quiet .f8nt-bd:not([open]){justify-content:center}
html.f16 .f8nt-card .f8nt-bd:not([open])>summary{margin-top:0}
