/* =====================================================================================================================
   Concept A · ANCHORED COMPOSER (fit.css, loaded after grey2.css; looks and layout only, every id stays).
   The text box, the voice chip, the Studio link and Speak sit where the hand and eye expect them and never move while
   takes arrive:
   - phones (portrait, cover screens) and landscape phones: the composer is docked at the bottom of the screen (thumb
     reach), the takes list scrolls above it, newest on top under a compact title (the Voice Memos pattern);
   - tablets and computers: one centred column, the composer sticks under the header while the takes scroll beneath it;
   - the Studio: the Delivery | Sound panel is a sticky column with its own scroll on wide screens, and a drawer right
     under the composer (closed to a one-line summary) on narrow ones, so takes always come last;
   - foldables: controls on the left half (book) or the bottom half (flip), content on the other half.
   No cross-fades anywhere; the motion that exists (nav highlight, mode swap, wave sweep) is untouched.
   ===================================================================================================================== */

/* ---------- 0. units: the phone zoom (html { zoom: .8 }) scales vh / vw / env() too, so they are divided by --pz ---------- */
:root { --pz: 1; --kb: 0px; --vh: 100vh; --gutter: 24px; --stick: calc(var(--barh, 84px) + 16px); }
@supports (height: 100lvh) { :root { --vh: 100lvh; } }
@media (pointer: coarse) and (max-width: 480px) { :root { --pz: .8; } }
/* the compact scale for the other small touch screens (you: "make sure small screens aren't too zoomed in"): landscape
   phones and split / Duo-size windows get the same 80 % as portrait phones, so turning the phone doesn't jump to 125 % */
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape), (pointer: coarse) and (max-width: 560px) {
  html { zoom: .8; }
  :root { --pz: .8; }
  .g-tk p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: max(20px, 1em) !important; }
}
body:has(> #siteFoot) { min-height: calc(var(--vh) / var(--pz)); }

/* ---------- 1. touch: no grey flash, no hover that sticks after a tap, a press you can feel ---------- */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .g-speak:hover { background: #c8241f; }
  .g-icon:hover, .g-dl:hover, .g-lang:hover, .g-ghost:hover, .g-bar .trainpill:hover, .g-voices .voicelist .x:hover, .vp-pick:hover { background: transparent; }
  .g-bar .trainpill:hover { background: var(--g-soft); }
  .g-voices .voicelist button.v:hover, .g-makecard:hover { transform: none; box-shadow: none; }
  .g-outline:hover, .g-makecard:hover { border-color: var(--g-line); }
  .vpick .voicelist button.v:hover { background: transparent; }
  #mineList li > .x:not(.ex):hover { color: var(--g-text2); }
}
:is(.g-bar > .tabs a, .vp-pick, .g-qseg button, .g-tabs.sseg button, .g-modes button, .g-studiolink, .g-tosimple, .g-icon, .g-dl,
    .g-voices .filters button, .g-srow, .sitefoot a, .g-sdrawer, .g-menubtn):active { background-color: var(--g-soft); }
.g-qseg button[aria-pressed="true"]:active { background-color: var(--g-card); }

/* ---------- 2. header: solid (no pink smudge of a red button scrolling under a see-through bar), one row ---------- */
.g-bar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px) / var(--pz)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px) / var(--pz)); }
.g-hero .g-sub { font-size: 16px; }  /* (a later ".g-sub { 13px }" for the clone rows shrank the home subtitle) */
@media (min-width: 861px) and (max-width: 1100px) {  /* logo, six tabs and the right cluster stay on one row */
  .g-bar { gap: 16px; }
  .g-bar > .tabs a { padding: 8px 10px; }
  .g-newslink { display: none; }  /* (it's in the footer line and in the menu) */
  .g-bar .trainpill > span:not(.tdot) { display: none; }
}
@media (max-width: 860px) { :root { --gutter: 16px; } }

/* phones and landscape phones: logo + Grey + a menu button; the menu is a sheet over the page */
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {
  :root { --gutter: 16px; }
  .g-bar { height: 64px; box-sizing: border-box; padding-top: 10px; padding-bottom: 10px; gap: 10px; flex-wrap: wrap; align-content: flex-start; align-items: center; }
  .g-bar .brand { height: 44px; }
  .g-bar .brand span { display: inline; font-size: 18px; }
  .g-bar .brand img { width: 28px; height: 28px; }
  .g-menubtn { display: grid; place-items: center; position: relative; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: transparent; color: var(--ink); cursor: pointer; }
  .g-bar > .tabs, .g-bar > .g-right { display: none; }
  /* the icon: two lines that turn into an X (not a "||" pause sign) */
  .g-menubtn svg { display: none; }
  .g-menubtn::before, .g-menubtn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; border-radius: 2px;
    background: currentColor; transition: transform .25s var(--g-ease); }
  .g-menubtn::before { transform: translateY(-3.5px); }
  .g-menubtn::after { transform: translateY(3.5px); }
  .g-bar.menu-open .g-menubtn::before { transform: rotate(45deg); }
  .g-bar.menu-open .g-menubtn::after { transform: rotate(-45deg); }
  /* open: the bar keeps its height (the page doesn't move); the pages and the right cluster hang under it on solid paper,
     a scrim covers the rest, the page behind is locked */
  .g-bar.menu-open { background: var(--paper); row-gap: 0; }
  .g-bar > .tabs:focus { outline: none; }
  .g-bar.menu-open .trainpill span:not(.tdot) { display: inline; }
  .g-bar.menu-open .g-right .setbtn { width: auto; padding: 0 14px 0 12px; gap: 8px; display: inline-flex; align-items: center; border-radius: 999px; font: 500 15px var(--body); color: var(--ink); }
  .g-bar.menu-open .g-right .setbtn::after { content: "Settings"; }
  .g-bar.menu-open > .tabs { display: flex; order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 8px;
    flex-direction: column; gap: 2px; overflow: visible; background: var(--paper); -webkit-mask-image: none; mask-image: none; }
  .g-bar.menu-open > .tabs a { padding: 0 14px; height: 50px; display: flex; align-items: center; font-size: 17px; border-radius: 12px; color: var(--ink); }
  .g-bar.menu-open > .tabs a[aria-current="page"] { background: var(--g-soft); font-weight: 600; }
  .g-bar.menu-open > .g-right { display: flex; order: 4; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); gap: 12px; align-items: center;
    padding: 10px var(--gutter) 14px; background: var(--paper); border-top: 1px solid var(--wash); border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 30px -18px rgba(20, 20, 23, .35); }
  .g-bar.menu-open .g-newslink { display: inline-flex; height: 44px; font-size: 15px; }
  .g-bar.menu-open .trainpill:not([hidden]) { display: inline-flex !important; height: 40px; }
  .g-bar.menu-open .g-right .setbtn { margin-left: auto; width: 44px; height: 44px; }
  .g-bar.menu-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--vh) / var(--pz)); z-index: -1;
    background: rgba(20, 20, 23, .32); }
  :root[data-scheme="dark"] .g-bar.menu-open::after { background: rgba(0, 0, 0, .55); }
  .g-bar.menu-open .g-navglide { display: none; }
}
html:has(.g-bar.menu-open) { overflow: hidden; overscroll-behavior: none; }
@media (pointer: coarse) and (max-height: 500px) {  /* landscape: the pages two to a row, so the open menu fits the screen */
  .g-bar.menu-open > .tabs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
}

/* ---------- 3. home ---------- */
/* the Studio link (you: "advanced mode easier to reach"): a labelled pill in the composer bar, not a bare glyph */
.g-composer .g-icon.g-studiolink { width: auto; height: 40px; padding: 0 14px 0 11px; gap: 7px; display: inline-flex; align-items: center; border: 1px solid var(--g-line);
  border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 14px var(--body); background: var(--g-card); flex: none; }
.g-composer .g-icon.g-studiolink:hover { background: var(--g-soft); }
.g-composer .g-icon.g-studiolink svg { width: 17px; height: 17px; color: var(--g-text2); }
.g-icon-t { line-height: 1; }

/* tablets and computers: one centred column; the composer sticks under the header while takes scroll beneath it */
.stage.g-home { padding-top: clamp(28px, 9vh, 88px); }
@media (min-height: 600px) {
  .stage.g-home > .g-composer { position: sticky; top: var(--stick); z-index: 4;
    box-shadow: 0 1px 2px rgba(20, 20, 23, .04), 0 8px 32px rgba(20, 20, 23, .05), 0 0 0 12px var(--paper), 0 -16px 0 12px var(--paper), 0 14px 10px 0 var(--paper); }
  :root[data-scheme="dark"] .stage.g-home > .g-composer { box-shadow: 0 0 0 12px var(--paper), 0 -16px 0 12px var(--paper), 0 14px 10px 0 var(--paper); }
}
@media (max-height: 760px) and (min-width: 641px) {
  .stage.g-home { gap: 28px; }
  .g-home .title { font-size: clamp(34px, 3vh + 18px, 48px); }
  .g-composer textarea#say { min-height: 96px; }
}
/* reading an older take while a new one arrives: the row you read stays put (the browser's scroll anchoring picked the
   sticky header / composer as its anchor, which never move, so the list jumped) */
.g-bar, .stage.g-home > .g-composer, .g-studio.panel.composer, #sidePanel { overflow-anchor: none; }

/* phones (portrait, covers) and landscape phones: the composer docked at the bottom, the takes above it, newest on top */
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {
  #v-synth:not([hidden]) { display: flex; flex-direction: column; }
  #v-synth > .stage.g-home { flex: 1 0 auto; min-height: calc(var(--vh) / var(--pz)); max-width: 760px; padding: 18px var(--gutter) 0; gap: 16px; }
  .stage.g-home > .g-hero { order: 1; }
  .stage.g-home > #homeTakesBox { order: 2; }
  .stage.g-home > #sayStatus { order: 3; }
  .stage.g-home > .g-composer { order: 4; }
  .stage.g-home > :not(.g-hero):not(#homeTakesBox):not(.g-composer):not(#sayStatus) { order: 5; }
  .stage.g-home > .g-composer { margin-top: auto; position: sticky; top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom, 0px) / var(--pz)) + var(--kb)); z-index: 4;
    margin-bottom: calc(max(10px, env(safe-area-inset-bottom, 0px) / var(--pz))); border-radius: 22px;
    box-shadow: 0 2px 4px rgba(20, 20, 23, .05), 0 12px 32px -6px rgba(20, 20, 23, .16), 0 0 0 10px var(--paper), 0 -18px 16px 6px var(--paper); }
  :root[data-scheme="dark"] .stage.g-home > .g-composer { box-shadow: 0 0 0 1px #2a2a30, 0 0 0 10px var(--paper), 0 -18px 16px 6px var(--paper); }
  /* first visit: the title in the middle of the room above the box */
  .stage.g-home:has(> #homeTakesBox[hidden]) > .g-hero { margin: auto 0; padding-bottom: 8vh; }
  .stage.g-home:has(> #homeTakesBox[hidden]) > .g-composer { margin-top: 0; }
  .stage.g-home:has(> #homeTakesBox[hidden]) .g-hero .g-sub { display: block; font-size: 17px; }
  /* with takes: the title shrinks to one quiet line */
  .stage.g-home:has(> #homeTakesBox:not([hidden])) .g-home .title, .stage.g-home:has(> #homeTakesBox:not([hidden])) > .g-hero .title { font-size: 26px; max-width: none; }
  .stage.g-home:has(> #homeTakesBox:not([hidden])) > .g-hero .g-sub { display: none; }
  .g-home .status.center { margin: 0; position: sticky; bottom: calc(var(--cmph, 180px) + 22px + var(--kb)); z-index: 4; align-self: center;
    padding: 6px 14px; border-radius: 999px; background: var(--g-soft); font-size: 15px; }
  /* the box: text, then voice | Studio | ........ | Speak */
  body[data-view="synth"] .g-composer textarea#say { font-size: 17px; padding: 16px 18px 4px; min-height: 0; height: 4.6em; }
  .g-composer .g-cbar { padding: 8px 10px 10px; gap: 8px; flex-wrap: nowrap; }
  .g-composer .g-chip.who { min-width: 0; flex: 0 1 auto; max-width: 48%; }
  .g-composer .g-speak#sayGo { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; flex: none; }
  .g-composer .g-speak#sayGo svg { width: 18px; height: 18px; margin: 0 0 0 2px; }
  .g-home .g-hero { align-items: flex-start; text-align: left; }
  .g-home .g-hero .title { text-align: left; align-self: flex-start; font-size: 34px; line-height: 1.1; }
  .g-takes-head { padding-bottom: 4px; }
}
@media (max-width: 640px) {
  .g-composer .g-lang, .g-composer .g-count { display: none; }
}
/* landscape phones: room for the language and the count; a shorter box */
@media (pointer: coarse) and (max-height: 500px) and (min-width: 641px) {
  .stage.g-home { max-width: 820px; }
  body[data-view="synth"] .g-composer textarea#say { height: 3.1em; padding-top: 12px; }
  .g-composer .g-lang { display: inline-block; }
  html .g-composer .g-cbar .g-speak#sayGo { width: auto; padding: 0 24px 0 20px; font-size: 17px; gap: 8px; }
  .stage.g-home:has(> #homeTakesBox[hidden]) > .g-hero { padding-bottom: 0; }
  .stage.g-home:has(> #homeTakesBox[hidden]) .g-hero .title { font-size: 34px; }
}
/* the keyboard is up (short screen, or html.kb from next.js on iOS): the box shrinks to two-three lines, Speak stays */
@media (max-width: 640px) and (max-height: 520px), (pointer: coarse) and (max-height: 330px) {
  body[data-view="synth"] .g-composer textarea#say { height: 3.1em; }
  .stage.g-home:has(> #homeTakesBox:not([hidden])) > .g-hero { display: none; }
}
@media (max-height: 260px) {
  body[data-view="synth"] .g-composer textarea#say { height: 2.6em; padding-top: 10px; }
  .g-composer .g-cbar { padding-top: 4px; padding-bottom: 6px; }
}
html.kb body[data-view="synth"] .g-composer textarea#say { height: 3.1em; }
html.kb .stage.g-home:has(> #homeTakesBox:not([hidden])) > .g-hero { display: none; }

/* ---------- 4. the Studio (the advanced mode): a name and a way back, calmer, settings never under the takes ---------- */
.g-studiohead { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 4px; }
.g-studiohead h1 { margin: 0; flex: 1; font: 600 22px/1.2 var(--display); letter-spacing: -.01em; }
.g-tosimple { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; color: var(--g-text2);
  text-decoration: none; font: 500 14px var(--body); }
.g-tosimple::before { content: ""; width: 7px; height: 7px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.g-tosimple:hover { color: var(--ink); background: var(--g-soft); }
.studio:not(.m-speak) .g-studiohead, .studio[data-mode="vtv"] .g-studiohead { display: none; }
#lineStudio.idle { visibility: hidden; }  /* ("0 in line · no wait" only when someone is waiting) */
#lineStudio { font-family: var(--body); }
/* the same box in Write, Stress and Timing: switching modes never moves Speak */
.g-studio { --edh: 200px; }
.g-studio textarea#text, .g-studio .emphview.tall { box-sizing: border-box; height: var(--edh); min-height: var(--edh); max-height: var(--edh); resize: none; }
.g-studio .emphview.tall { overflow-y: auto; overscroll-behavior: contain; align-content: flex-start; }
/* the how-to line shows until the first edit (then the Reset pill takes its place); messages like "Timing isn't available
   right now" always show (font-size: 0 hid them) */
.g-studio .emph-hint:has(> .emph-reset[hidden]), .g-studio .emph-hint:not(:has(> .emph-reset)) { font: 400 13px/1.4 var(--body); color: var(--g-text3); justify-content: flex-start; }
.g-studio .emph-hint:not(:has(> .emph-reset)) { padding: 6px 0; }
.g-studio .emph-hint > .emph-reset { margin-left: auto; }
@media (pointer: coarse) {
  .g-studio .emphview .ew { text-decoration: underline dotted color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 6px; }
  .wt { touch-action: pan-y; }
  #who { touch-action: manipulation; }
}

/* the Delivery tab: grouped (Voice · Pace and level · Recording), one compact row per control:
   name ............ Auto / value
   low end ━━━━●━━━━ high end */
#sidePanel .g-dpart { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; container-type: inline-size; }
#sidePanel .g-dpart > .sliders, #sidePanel .g-dpart > .sliders.two { display: contents; }
#sidePanel .g-dpart > #lockHint { order: 0; grid-column: 1 / -1; }
#sidePanel .g-dh { margin: 14px 0 0; font: 600 11.5px var(--body); color: var(--g-text3); letter-spacing: .06em; text-transform: uppercase; grid-column: 1 / -1; }
#sidePanel .g-dh-voice { order: 1; margin-top: 10px; }
#sidePanel .sl[data-k="style"] { order: 2; } #sidePanel .sl[data-k="mood"] { order: 3; } #sidePanel .sl[data-k="dominance"] { order: 4; }
#sidePanel .g-whisper { order: 5; }
#sidePanel .g-dh-pace { order: 6; }
#sidePanel .sl[data-k="speed"] { order: 7; } #sidePanel .sl[data-k="volume"] { order: 8; } #sidePanel #lengthRow > .sl { order: 9; }
#sidePanel .g-dh-rec { order: 10; }
#sidePanel #cleanRow > .sl { order: 11; }
#sidePanel #cleanHint { order: 12; grid-column: 1 / -1; margin: 6px 0 0; font-size: 12.5px; color: var(--g-text3); }
#sidePanel .sl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 0; align-items: center; padding: 7px 0 5px; border-bottom: 1px solid var(--wash); }
#sidePanel .sl > .sl-top { grid-column: 1 / -1; grid-row: 1; min-height: 26px; gap: 8px; }
#sidePanel .sl > .sl-top label { flex: 1; font: 600 14px var(--body); }
#sidePanel .sl > .trk, #sidePanel .sl > input[type="range"] { grid-column: 2; grid-row: 2; min-width: 0; }
#sidePanel .sl > .ends { display: contents; }
#sidePanel .sl > .ends > span { grid-row: 2; font-size: 12px; color: var(--g-text3); white-space: nowrap; }
#sidePanel .sl > .ends > span:first-child { grid-column: 1; }
#sidePanel .sl > .ends > span:last-child { grid-column: 3; text-align: right; }
/* Auto: a quiet word in the value slot and a ghost track; changed: the value, and "Auto" as a small way back */
#sidePanel .sl .val { order: 1; }
#sidePanel .sl .auto { order: 2; }
#sidePanel .sl.off .auto { background-color: var(--g-soft); color: var(--g-text2); text-decoration: none; }
#sidePanel .sl:not(.off) .auto { background-color: transparent; color: var(--g-text3); padding: 2px 4px; }
#sidePanel .sl.off input[type="range"] { opacity: .3; }
#sidePanel .sl.dflt .val { background: var(--g-soft); color: var(--g-text2); font-weight: 500; }
#sidePanel .sl.dflt input[type="range"] { opacity: .45; }
#sidePanel .g-row.g-whisper { padding: 10px 0 8px; border-bottom: 1px solid var(--wash); }
#sidePanel .g-row.g-whisper small { display: block; }
@container (min-width: 520px) {
  #sidePanel .g-dpart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* the Sound tab: one rule under the tabs, not two */
#sidePanel .g-spart.sound { border-top: 0; padding-top: 14px; gap: 18px; }

/* the Studio's takes: one calm row (play | wave, words, voice · length, Details | download); "Keep this voice" quieter */
#takes .g-take { padding: 12px 14px; gap: 12px; }
#takes .g-tk { gap: 4px; }
#takes .g-tk .g-wave { height: 18px; }
#takes .g-tk { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
#takes .g-tk > :not(.meta):not(.tk-more) { grid-column: 1 / -1; }
#takes .g-tk > .meta { grid-column: 1; }
#takes .g-tk > .tk-more { grid-column: 2; }
#takes .g-tk > .tk-more:has(details[open]) { grid-column: 1 / -1; }
#takes details.info > summary { font: 400 12.5px var(--body); }
#takes .g-dl { border: 0; background: none; }
.g-keepv { height: 36px; padding: 0 14px; border: 0; background: var(--g-card); color: var(--ink); font: 500 13.5px var(--body); box-shadow: inset 0 0 0 1px var(--g-line); }
.g-keepv:hover { box-shadow: inset 0 0 0 1px var(--g-text3); }
@media (max-width: 640px) {
  #takes .g-take { flex-wrap: wrap; row-gap: 6px; }
  #takes .g-tk { flex: 1 1 0; }
  #takes .savev { order: 5; flex: 1 0 calc(100% - 64px); margin-left: 64px; }
  #takes .g-dl { order: 3; }
}

/* the side panel tabs carry their own summary (next.js writes data-sum) and a drawer handle */
.g-sdrawer { display: none; }
#sidePanel .g-tabs.sseg button::after { content: none; }

/* wide (>= 900 px, and landscape phones): composer | settings column; the column sticks and scrolls on its own */
@media (min-width: 900px), (pointer: coarse) and (max-height: 500px) and (min-width: 568px) {  /* (fit-l: every landscape phone from 568 px) */
  .wrap.studio.m-speak { grid-template-columns: minmax(0, 1fr) 336px; padding-top: 16px; }
  .studio.m-speak > .g-side.panel.side { position: sticky; top: var(--stick); align-self: start; display: flex; flex-direction: column; overflow: hidden;
    max-height: calc(var(--vh) / var(--pz) - var(--stick) - 16px); padding: 4px 0 0; }
  .studio.m-speak > .g-side.panel.side > .sidebody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: 0 18px 14px; }
  .studio.m-speak > .g-side.panel.side .g-tabs.sseg { flex: none; }
  .g-work { gap: 12px; }
}
@media (min-width: 900px) and (min-height: 900px) {  /* tall screens: the composer stays too while you scroll the takes */
  .studio.m-speak .g-studio.panel.composer { position: sticky; top: var(--stick); z-index: 4; box-shadow: 0 0 0 16px var(--paper), 0 26px 12px 4px var(--paper); }
}
@media (pointer: coarse) and (max-height: 500px) {  /* landscape phones: the header scrolls away, the columns use the height */
  .g-bar.bar { position: relative; }
  :root { --stick: 12px; }
  .g-studio { --edh: 104px; }
  .g-studiohead { display: none; }
}

/* narrow (< 900 px, except landscape phones): composer, then the settings drawer, then the takes (takes can never push
   the settings down) */
@media (max-width: 567px), (max-width: 899px) and (min-height: 501px), (max-width: 899px) and (pointer: fine) {  /* (fit-l: was max-width 699) */
  .studio.m-speak:not([data-mode="vtv"]) > .work { display: contents; }
  .studio.m-speak > .work > .g-studiohead { order: 1; }
  .studio.m-speak > .work > .g-studio { order: 2; }
  .studio.m-speak > #sidePanel { order: 3; }
  .studio.m-speak > .work > #speakStatus { order: 4; }
  .studio.m-speak > .work > #takes { order: 5; margin-top: 0; }
  .wrap.studio.m-speak { gap: 12px; padding-top: 16px; }
  .studio.m-speak > .g-side.panel.side { position: relative; top: auto; max-height: none; overflow: visible; padding: 0; border-radius: 18px; }
  .g-sdrawer { display: grid; place-items: center; position: absolute; top: 4px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: transparent; color: var(--g-text2); cursor: pointer; }
  .g-sdrawer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--g-ease); }
  #sidePanel[data-open="1"] .g-sdrawer svg { transform: rotate(180deg); }
  #sidePanel .g-tabs.sseg { padding: 0 56px 0 10px; }
  #sidePanel .g-tabs.sseg button { height: 52px; }
  /* closed: one summary row, "Delivery  All on Auto | Sound  v14.5 XL · Full" */
  #sidePanel[data-open="0"] > .sidebody { display: none; }
  #sidePanel[data-open="0"] .g-tabs.sseg { border-bottom: 0; gap: 0; padding: 0 52px 0 0; }
  #sidePanel[data-open="0"] .g-tabs.sseg button { flex: 1 1 0; min-width: 0; height: auto; min-height: 60px; padding: 10px 16px; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 1px; border: 0; margin: 0; text-align: left; color: var(--ink); font-weight: 600; border-radius: 0; }
  #sidePanel[data-open="0"] .g-tabs.sseg button + button { box-shadow: inset 1px 0 0 var(--wash); }
  #sidePanel[data-open="0"] .g-tabs.sseg button::after { content: attr(data-sum); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 400 13px var(--body); color: var(--g-text3); }
  #sidePanel .sidebody { padding: 2px 18px 16px; }
}
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) and (orientation: landscape) and (max-width: 759px) {  /* (fit-l: the phone card in narrow landscape too) */
  .g-studio { --edh: 150px; }
  .wrap.studio.m-speak { padding: 12px var(--gutter) 32px; }
  .g-studiohead h1 { font-size: 20px; }
  /* the Studio card on a phone: [Write | Stress | Timing] [language] / the text / [voice ..........] [Speak] -- the language
     moves up beside the modes, so the voice keeps its whole name and Speak sits where home's Speak is (bottom right) */
  .studio.m-speak:not([data-mode="vtv"]) .g-studio.panel.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio > .g-stop, .studio.m-speak:not([data-mode="vtv"]) .g-studio > .g-sbot { display: contents; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio #textModes { grid-row: 1; grid-column: 1; justify-self: start; margin: 10px 0 10px 10px; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio .g-sbot #lang { grid-row: 1; grid-column: 2; align-self: center; margin: 0 10px 0 0; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio > :is(#text, #textEmph, #vtvIn) { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--wash); border-bottom: 1px solid var(--wash); }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio .g-sbot #chosen { grid-row: 3; grid-column: 1; justify-self: start; align-self: center; margin: 10px 0 10px 10px; min-width: 0; max-width: 100%;
    display: block; position: relative; padding-right: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio .g-sbot #chosen::before { display: inline-grid; vertical-align: middle; margin: -2px 8px 0 0; line-height: normal; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio .g-sbot #chosen::after { position: absolute; right: 13px; top: 50%; margin: -5px 0 0; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio .g-sbot :is(#speakGo, #vtvGo) { grid-row: 3; grid-column: 2; align-self: center; justify-self: end; margin: 10px 10px 10px 0; padding: 0 22px 0 18px; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio .g-sbot #lang { justify-self: end; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio #textModes button { padding: 0 13px; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio :is(.g-grow, .g-count, .g-vtvswitch) { display: none; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio #lineStudio { grid-row: 4; grid-column: 1 / -1; margin: -4px 14px 10px; }
  .studio.m-speak:not([data-mode="vtv"]) .g-studio #lineStudio.idle { display: none; }
}
@media (max-height: 520px) { .g-studio { --edh: 110px; } }
.g-sbot #lang, .g-composer .g-lang { max-width: none; }
.g-bar .brand span { display: inline; }
#v-synth #after[hidden] { display: none !important; }  /* (an invisible "Play again" row that only reserved room) */
.g-sbot #lang { border: 1px solid var(--g-line); background: var(--g-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236b6b73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  padding: 0 32px 0 12px; height: 40px; }
.g-lang:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- 5. the voice picker, Settings and the other dialogs ---------- */
.dlg, .vp-body, .sets-body, .g-nlist { overscroll-behavior: contain; }
@media (pointer: coarse) { html:has(dialog[open]) { overflow: hidden; } }
.dlg.vpick { max-height: min(78vh, 680px, calc(100vh - 24px)); }
.vp-tabs select { line-height: normal; padding-top: 0; padding-bottom: 0; height: 34px; }
/* landscape phones: the picker as a full-height sheet in the middle */
@media (pointer: coarse) and (max-height: 500px) {
  #vpDlg.sheet[open] { left: 0; right: 0; width: min(640px, 100%); margin: 0 auto; border-radius: 0; border-width: 0 1px; }
  #vpDlg.sheet .vp-top { padding-top: 6px; gap: 6px; }
  #vpDlg.sheet .vp-sheethead { padding: 0 0 4px; }
}
/* phones: every dialog is a sheet from the bottom edge, full width, its body scrolls inside */
@keyframes fitSheet { from { transform: translateY(100%); } }
@media (max-width: 640px) {
  dialog.dlg:not(#vpDlg)[open] { margin: auto 0 0; width: 100% !important; max-width: 100%; box-sizing: border-box; border-radius: 22px 22px 0 0;
    max-height: calc(92 * var(--vh) / 100 / var(--pz)); animation: fitSheet .3s var(--g-ease) both;
    padding-bottom: max(22px, env(safe-area-inset-bottom, 0px) / var(--pz)); }
  dialog.dlg.g-sets[open], dialog.dlg.g-news[open] { padding-bottom: 0; }
  .g-sets .sets-body, .g-news .g-nlist { padding-bottom: max(22px, env(safe-area-inset-bottom, 0px) / var(--pz)); }
  .g-nlist.news-list { max-height: none; overflow-y: auto; min-height: 0; }
  .dlg.news.g-news[open] { display: flex; flex-direction: column; }
  .g-sets .g-srow:has(#themeSeg) { flex-wrap: nowrap; }
  .g-sets #themeSeg { flex: 0 1 auto; }
  .g-sets #themeSeg button { flex: none; white-space: nowrap; }
  .sitefoot > span { flex: 1 0 100%; }
  .g-sets .dlg-x, .g-news .dlg-x { width: 48px; height: 48px; }
  :is(#exDlg, #wdDlg, #chkDlg, #delDlg, #heavyDlg, #lockDlg) .dlg-btns .btn { height: 48px; }
}
@media (prefers-reduced-motion: reduce) { dialog.dlg[open] { animation: none !important; } .g-menubtn::before, .g-menubtn::after, .g-sdrawer svg { transition: none !important; } }
@media (pointer: coarse) {  /* (touch: there's nothing to drop a file from -- "Choose one") */
  #chkDlg .chkdrop > span { font-size: 0; }
  #chkDlg .chkdrop > span u { display: none; }
  #chkDlg .chkdrop > span::after { content: "Choose a file"; font: 600 16px var(--body); color: var(--ink); }
}

/* ---------- 6. phones under the 80 % zoom: a type floor and fingertip-size targets (44-48 px on the screen) ---------- */
@media (pointer: coarse) and (max-width: 560px), (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .g-tk p { font-size: 16px; }
  .g-meta, .g-takes-head span, .g-takes-head h2, #takes .g-tk .meta, #takes details.info > summary { font-size: 14px; }
  .sitefoot, .sitefoot a, .sitefoot .seolinks { font-size: 15px; }
  .sitefoot a { display: inline-flex; align-items: center; min-height: 40px; }
  .sitefoot { gap: 0 20px; }
  #sidePanel .sl > .ends > span, .g-model small, .g-row small, .g-qhead small, .g-stext small, #sidePanel .g-dh { font-size: 14px; }
  #sidePanel .sl .auto, #sidePanel .sl .val { font-size: 14px; }
  .vp-pick small { font-size: 15px; }
  .vpick .vp-foot a { font-size: 15px; min-height: 48px; display: inline-flex; align-items: center; }
  #sidePanel[data-open="0"] .g-tabs.sseg button::after { font-size: 15px; }
  .g-menubtn { width: 54px; height: 54px; margin-right: -6px; }
  .g-bar { height: 72px; padding-top: 9px; padding-bottom: 9px; }
  .g-bar .brand { height: 54px; }
  .g-composer .g-speak#sayGo { width: 56px; height: 56px; }
  .g-composer .g-chip.who, .g-composer .g-icon.g-studiolink { height: 52px; font-size: 16px; }
  .g-composer .g-chip.who::before { width: 34px; height: 34px; font-size: 14px; }
  .g-play, .g-dl, .g-pdot { width: 52px; height: 52px; }
  .dlg-x, #vpDlg.sheet .vp-sheethead .dlg-x, .g-sets .dlg-x, .g-news .dlg-x { width: 54px; height: 54px; }
  .g-modes.modesw button { height: 50px; padding: 0 18px; font-size: 16px; }
  .g-tabs.sseg button, #sidePanel .g-tabs.sseg button { height: 54px; font-size: 16px; }
  .g-qseg button { height: 50px; font-size: 15px; }
  .g-sets .g-vseg button { height: 50px; }
  .vp-tabs button { height: 50px; font-size: 16px; }
  .g-chip.chosen, .g-sbot #lang, .g-tosimple { height: 52px; }
  #speakGo, .g-sbot .g-speak { height: 54px; }
  #sidePanel .sl .auto { position: relative; }
  #sidePanel .sl .auto::after { content: ""; position: absolute; inset: -14px -10px; }
  .g-bar.menu-open > .tabs a { height: 58px; font-size: 19px; }
  .g-bar.menu-open .g-right .setbtn, .g-bar.menu-open .g-newslink { width: auto; min-width: 54px; height: 54px; }
  .g-bar.menu-open .trainpill:not([hidden]) { height: 50px; }
  .g-sdrawer { width: 54px; height: 54px; }
  .g-voices .filters button { height: 50px; font-size: 15px; }
  .g-voices .voicelist .vp-play, .vp-play { width: 50px; height: 50px; }
  .g-steps li { font-size: 15px; }
  .tech-jump button { height: 50px; }
  .g-outline, .g-dark, .g-speak { min-height: 52px; }
  .g-sm { min-height: 50px; }
  .g-back { min-height: 50px; }
}

/* ---------- 7. foldables (?fold=book / ?fold=flip, or real hinges): controls on one half, content on the other ---------- */
@media (vertical-viewport-segments: 2) {
  :root { --a: calc(env(viewport-segment-height 0 0) / var(--pz)); --b: calc(env(viewport-segment-height 0 1) / var(--pz));
          --gap: calc((env(viewport-segment-top 0 1) - env(viewport-segment-bottom 0 0)) / var(--pz)); }
}
html.fakefold[data-fold="v"] { --a: calc(50dvh / var(--pz) - var(--fakegap, 20px) / 2); }
/* book (left | right): the title and the composer on the left half, the takes on the right */
html[data-fold="h"] #v-synth > .stage.g-home { display: grid; max-width: none; width: 100%; padding: 0; gap: 0; min-height: calc(var(--vh) / var(--pz) - var(--barh, 64px));
  grid-template-columns: var(--a) var(--b); column-gap: var(--gap); grid-template-rows: minmax(0, 1fr) auto auto; align-items: start; }
html[data-fold="h"] .stage.g-home > .g-hero { grid-column: 1; grid-row: 1; padding: 32px 40px 0 24px; align-self: start; align-items: flex-start; text-align: left; }
html[data-fold="h"] .stage.g-home > .g-hero .title { font-size: clamp(34px, 5vw, 56px); text-align: left; }
html[data-fold="h"] .stage.g-home > .g-composer { grid-column: 1; grid-row: 2; margin: 0 40px 24px 24px; position: sticky; top: auto; bottom: 16px; }
html[data-fold="h"] .stage.g-home > #sayStatus { grid-column: 1; grid-row: 3; position: static; }
html[data-fold="h"] .stage.g-home > #homeTakesBox { grid-column: 2; grid-row: 1 / span 3; padding: 28px 24px 24px 40px; }
html[data-fold="h"] .stage.g-home > :not(.g-hero):not(#homeTakesBox):not(.g-composer):not(#sayStatus) { grid-column: 1; }
/* book Studio: composer + settings on the left, the takes on the right */
html[data-fold="h"] .wrap.studio.m-speak:not([data-mode="vtv"]) { grid-template-columns: var(--a) var(--b); column-gap: var(--gap); max-width: none; padding: 16px 0 40px; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > .work { display: contents; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > .work > :not(#takes), html[data-fold="h"] .studio.m-speak > #sidePanel { grid-column: 1; margin: 0 40px 0 16px; }
html[data-fold="h"] .wrap.studio.m-speak:not([data-mode="vtv"]) { grid-template-rows: auto auto auto minmax(0, 1fr); row-gap: 12px; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > .work > .g-studiohead { grid-row: 1; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > .work > .g-studio { grid-row: 2; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > .work > #speakStatus { grid-row: 3; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > #sidePanel { grid-row: 4; }
html[data-fold="h"] .studio.m-speak:not([data-mode="vtv"]) > .work > #takes { grid-column: 2; grid-row: 1 / span 4; margin: 0 16px 0 40px; }
html[data-fold="h"] .studio.m-speak > #sidePanel { position: static; max-height: none; overflow: visible; }
html[data-fold="h"] .studio > :first-child, html[data-fold="h"] .studio > :last-child { margin-left: 16px; }
/* flip (top / bottom): content (title + takes) on the top half, the composer on the bottom half */
html[data-fold="v"] body[data-view="synth"] #siteFoot { position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 16px max(8px, env(safe-area-inset-bottom, 0px) / var(--pz));
  border: 0; background: transparent; justify-content: center; gap: 0 14px; }
html[data-fold="v"] body[data-view="synth"] #siteFoot > span, html[data-fold] #siteFoot .seolinks { display: none; }
html[data-fold="v"] #v-synth > .stage.g-home { display: grid; max-width: none; height: calc(var(--vh) / var(--pz) - var(--barh, 64px)); min-height: 0; padding: 0 var(--gutter); gap: 0;
  grid-template-rows: auto minmax(0, 1fr) calc(var(--b) + var(--gap)); grid-template-columns: minmax(0, 1fr); }
html[data-fold="v"] .stage.g-home > .g-hero { grid-row: 1; margin: 0; padding: 12px 0 8px; }
html[data-fold="v"] .stage.g-home > .g-hero .title { font-size: 26px; max-width: none; }
html[data-fold="v"] .stage.g-home > .g-hero .g-sub { display: none; }
html[data-fold="v"] .stage.g-home > #homeTakesBox { grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
html[data-fold="v"] .stage.g-home > #homeTakesBox[hidden] { display: none; }
html[data-fold="v"] .stage.g-home > .g-composer { grid-row: 3; position: static; margin: calc(var(--gap) + 16px) 0 0; align-self: start; }
html[data-fold="v"] .stage.g-home > #sayStatus { grid-row: 3; position: static; align-self: end; margin-bottom: 64px; }
html[data-fold="v"] .wrap.studio.m-speak:not([data-mode="vtv"]) { height: calc(var(--vh) / var(--pz) - var(--barh, 64px)); padding: 0 var(--gutter); gap: 0;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(var(--a) - var(--barh, 64px)) var(--gap) auto minmax(0, 1fr); }
html[data-fold="v"] .studio.m-speak:not([data-mode="vtv"]) > .work { display: contents; }
html[data-fold="v"] .studio.m-speak .g-studiohead { display: none; }
html[data-fold="v"] .studio.m-speak > .work > #takes { grid-row: 1; order: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 12px 0; min-height: 0; align-self: stretch; }
html[data-fold="v"] .studio.m-speak > .work > .g-studio { grid-row: 3; order: 0; margin-top: 12px; padding: 0; overflow: visible; }
html[data-fold="v"] .studio.m-speak > .work > #speakStatus { grid-row: 4; order: 0; }
html[data-fold="v"] .studio.m-speak > #sidePanel { grid-row: 4; order: 0; margin: 10px 0 12px; overflow-y: auto; min-height: 0; max-height: none; position: static; padding: 0; }
html[data-fold="v"] .g-studio { --edh: 96px; }
/* dialogs on the half that isn't the composer's: the right half (book), the bottom half (flip); the picker as a sheet there */
html[data-fold="h"] dialog.dlg[open] { margin: auto; inset: 0 0 0 calc(var(--a) + var(--gap)); width: min(560px, calc(var(--b) - 32px)) !important;
  max-height: calc(var(--vh) / var(--pz) - 32px); }
html[data-fold="h"] #vpDlg[open] { left: calc(var(--a) + var(--gap)) !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: auto !important;
  max-width: none; height: auto; max-height: none !important; margin: 0; border-radius: 0; }
html[data-fold="v"] dialog.dlg[open] { margin: 0 auto; inset: calc(var(--a) + var(--gap)) 0 0 0; width: min(620px, 100%) !important; max-height: var(--b); height: auto;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: none; }
html[data-fold="v"] #vpDlg[open] { top: calc(var(--a) + var(--gap)) !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important;
  height: auto; max-height: none !important; }
html[data-fold="v"] dialog.dlg[open] > :is(.sets-body, .g-nlist, .vp-body) { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
html[data-fold="v"] dialog.dlg:not(.g-sets):not(.g-news):not(#vpDlg)[open] { overflow-y: auto; }

/* ---------- 8. targets: big enough to hit (40+ px on touch, 24+ with a mouse) without making the rows look bigger ---------- */
#sidePanel .sl-top label { padding: 4px 0; margin: -4px 0; }
#sidePanel .sl .auto { min-height: 24px; }
#sidePanel .sl input[type="range"] { height: 26px; margin: -2px 0; }
#takes details.info > summary { display: inline-flex; align-items: center; min-height: 24px; }
.g-newslink { min-height: 32px; }
@media (pointer: coarse) and (min-width: 561px) and (min-height: 501px) {  /* tablets (phones: section 6) */
  .g-modes.modesw button { height: 44px; }
  .g-take .g-play, .g-take .g-dl { width: 44px; height: 44px; }
  .g-keepv { height: 44px; }
  #takes details.info > summary { min-height: 40px; }
  .g-bar .trainpill { height: 40px; }
  .g-newslink { min-height: 40px; }
  .g-bar .brand { min-height: 40px; }
  .g-tabs.sseg button { height: 44px; }
  .g-qseg button { min-height: 44px; }
  .g-model input { width: 20px; height: 20px; }
  .g-row .g-switch.switch, .g-row .switch { padding: 8px 0; margin: -8px 0; }
  .sitefoot a { display: inline-flex; align-items: center; min-height: 44px; }
  .sitefoot { row-gap: 0; }
  .vp-search input { height: 100%; }
  .vp-tabs button { height: 44px; }
  .vp-tabs select { height: 44px; }
  .vp-play, .g-voices .voicelist .vp-play { width: 44px; height: 44px; }
  .vpick .vp-foot a { min-height: 44px; display: inline-flex; align-items: center; }
}
/* book: a narrow half -- the takes without the voice · length column, the count out of the bar */
html[data-fold="h"] .stage.g-home .g-meta, html[data-fold="h"] .g-composer .g-count { display: none; }
@media (pointer: coarse) {
  #sidePanel .sl-top label { padding: 12px 0; margin: -12px 0; }
  #sidePanel .sl .auto { border: 11px solid transparent; background-clip: padding-box; margin: -11px -11px -11px 0; min-height: 0; }
  #sidePanel .sl input[type="range"] { height: 40px; margin: -9px 0; }
}
@media (pointer: coarse) and (max-width: 560px), (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {  /* (under the 80 % zoom) */
  #sidePanel .sl-top label, .g-srand .sl-top label { padding: 18px 0; margin: -18px 0; }
  .g-srand .auto { border: 15px solid transparent; background-clip: padding-box; margin: -15px -15px -15px 0; }
  .g-srand input[type="range"] { height: 50px; margin: -14px 0; }
  .g-sets .pvrow input { height: 54px; }
  .sitefoot a { min-height: 50px; }
  #sidePanel .sl .auto { border-width: 15px; margin: -15px -15px -15px 0; }
  #sidePanel .sl .auto::after { content: none; }
  #sidePanel .sl input[type="range"] { height: 50px; margin: -14px 0; }
  #takes details.info > summary { min-height: 50px; }
  .g-keepv { height: 50px; }
}
@media (pointer: fine) { .sitefoot a { display: inline-flex; align-items: center; min-height: 26px; } .sitefoot { row-gap: 2px; } }
.g-sbot.comp-bot > #speakGo { margin-left: auto; }  /* (when the bar wraps, Speak stays on the right, as on home) */
/* notches and rounded corners on a phone held sideways: nothing under the sensor housing */
@media (pointer: coarse) and (orientation: landscape) {
  html #v-synth > .stage.g-home, html .wrap.studio, html .sitefoot {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px) / var(--pz)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px) / var(--pz)); }
}
