/* css/frame.css — CSS الإطار الوحيد المسموح */
html, body {
  margin: 0;
  height: 100%;
  background: var(--sys-base);
}
#screen-outlet {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  /* clip, not hidden: hidden made the outlet a scroll container of its own that never scrolls, so no header marked sticky
     ever stuck (plan D15); clip cuts the same sideways overflow and leaves the page's scroll to the window */
  overflow-x: clip;
}
/* the designs' own overflow-x-hidden wrappers, the same way (a sheet's host, further down, stays hidden) */
#screen-outlet [data-screen] .overflow-x-hidden, #overlay-outlet [data-screen] .overflow-x-hidden { overflow-x: clip; }
#screen-outlet > [data-screen] {
  display: block;
  width: 100%;
  min-height: 100dvh;
}
#screen-outlet > [data-screen]:not([data-screen="EP3.tv"]),
#overlay-outlet > [data-overlay] > [data-screen] {
  max-width: 100% !important;
  margin-inline: auto;
}

/* ==========================================================================
   Fit (driver feedback 2026-10-18, item 7, plan D15). A screen is as tall as what the phone shows, not taller.
   Chrome on Android sizes vh by the large viewport (the screen with its toolbar hidden): on the owner's Pixel 10 Pro XL
   100vh is 957 px while the page has 901, so every min-h-screen page scrolled by the toolbar's 56 px when it should sit
   still, and the 844 px canvases left their sheets short of the bottom. dvh follows the visible height. The designs'
   own full-height classes are set here (css/stitch is generated and never edited, and a full rebuild touches 299
   files); a template that brings a new 100vh, min-h-screen or 844 px canvas is a lint-ui finding unless it is in
   stitch-build/fit-baseline.json (the files as they were when this block came). tests/flows/screen-fit.mjs measures it
   with vh sized as the phone sizes it (lib/vh-rewrite.js).
   ========================================================================== */
/* a pull down at the top of a page reloaded it (Chrome's pull-to-refresh): a page here never takes the overscroll */
html, body { overscroll-behavior-y: none; }
#screen-outlet .min-h-screen, #overlay-outlet .min-h-screen,
#screen-outlet .nordic-canvas, #screen-outlet .app-viewport, #screen-outlet .mobile-screen, #screen-outlet .mobile-frame, #screen-outlet .phone-frame, #screen-outlet .device-frame,
#overlay-outlet .nordic-canvas, #overlay-outlet .app-viewport, #overlay-outlet .mobile-screen, #overlay-outlet .mobile-frame, #overlay-outlet .phone-frame, #overlay-outlet .device-frame,
#overlay-outlet > [data-overlay] > [data-screen] { min-height: 100dvh; }
#screen-outlet .h-screen, #overlay-outlet .h-screen { height: 100dvh; }
#screen-outlet [class~="min-h-[calc(100vh-2.75rem)]"] { min-height: calc(100dvh - 2.75rem); }
#screen-outlet [class~="h-[58vh]"] { height: 58dvh; }
#screen-outlet [class~="h-[42vh]"] { height: 42dvh; }
#screen-outlet [class~="max-h-[92vh]"] { max-height: 92dvh; }
/* the canvases drawn at the design's 844 px: as tall as the phone shows, and taller only when their content is */
#screen-outlet [class~="h-[844px]"], #overlay-outlet [class~="h-[844px]"] { height: auto; min-height: 100dvh; }
#screen-outlet [class~="min-h-[844px]"], #overlay-outlet [class~="min-h-[844px]"] { min-height: 100dvh; }
#screen-outlet [class~="max-h-[844px]"], #overlay-outlet [class~="max-h-[844px]"] { max-height: none; }
/* CF5 «Resa avslutad»: its last card ended 20 px below a 390 x 844 screen, on the design's 32 px foot */
/* A2's top row is not chrome (no data-chrome), so it keeps its own room under the status bar: on an iPhone its language button
   sat against the clock (the Mac's Simulator, 2026-11-03). max(): with the shell's content inset env() may read 0, and the row still moves down */
#screen-outlet [data-screen="A2"] header { padding-top: max(16px, calc(8px + var(--safe-top, 0px))); }
#screen-outlet [data-screen="CF5"] main.pb-8, #screen-outlet [data-screen="CF5.levererad"] main.pb-8 { padding-bottom: 0.75rem; }
/* CF6 «Intäkter»: pb-36 keeps room for the payouts bar, which is off (app.payouts): 57 px of scroll with nothing in it.
   Until CF6's redraw (plan D16) takes the padding out of the design. */
#screen-outlet [data-screen="CF6"] main:has(> [data-requires="app.payouts"][hidden]) { padding-bottom: 1rem !important; }
/* A6's designs (A6, A6.tvastegs, A6.tvastegs-fel) paint their aurora as a fixed -z-10 layer on <body>. In the app the
   screen's wrapper carries the background, and a negative layer under a wrapper that is no stacking context of its own is
   painted below it: the aurora never drew (the TXS.6 review). Its own stacking context puts the layer back over it.
   A3.kod (the backup sign-in by a code, owner-notes 71) and A8.kod (Tier 1's phone and e-mail code) are built from A6.tvastegs
   and have the same layer. */
#screen-outlet > [data-screen^="A6"] > div, #screen-outlet > [data-screen="A3.kod"] > div,
#screen-outlet > [data-screen="A8.kod"] > div { isolation: isolate; }
/* The frame puts the focus on a screen's heading once it loaded, so a screen reader reads where it is (nav.js settleA11y,
   PLAN-V3 TXR.15). The heading is no action (tabindex -1, never a Tab stop), yet after a key the browser drew its focus
   ring round it, a white box round the title (the screen review of wave 5). Every action keeps its own ring. */
[data-screen] h1[tabindex="-1"]:focus { outline: none; }
#overlay-outlet > [data-overlay] {
  position: fixed;
  inset: 0;
  z-index: 60;
}
#map-layer {
  position: absolute;
  inset: 0;
}
/* bind() hides an element whose field is null so mockup text can never show.
   A Tailwind display utility (.flex, .grid, .inline-flex) outranks the UA
   [hidden] rule, so state it explicitly — otherwise a hidden example row
   stays on screen. */
[hidden] {
  display: none !important;
}
/* A header control whose screen is not built yet (data-requires off, capabilities.js hides it and makes it inert)
   keeps its place when it carries data-keep-slot: the design's row (back · title · action, justify-between) does not
   shift, and nothing unseen can be reached (PLAN-V3 TXD.5, CF10's bell to CF11). */
[hidden][data-keep-slot] {
  display: inline-flex !important;
  visibility: hidden !important;
  /* its transition-all would otherwise keep it visible for the transition's length when the gate is applied */
  transition: none !important;
}
/* Rows hand-copied from a proposed variant into a screen carry the variant's key (a nested data-screen, PLAN-V3 TXR.13:
   C6's «Spara som favoritförare» from C6.forare), so its generated CSS styles their classes. The variant's page look (its
   design's body: background, text colour, font, min-height) belongs to the variant's page, never to rows inside another. */
#screen-outlet [data-screen] [data-screen] {
  min-height: 0;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
}
/* CF12 with «Bara resor mot hemmet» on and the quiet-hour card fits 390x844 without scrolling while the map stays 380 px */
#screen-outlet [data-screen="CF12"] main { padding-bottom: 0.75rem; }
/* On a phone as short as 390x844 the v2 type (body 17 px, TAXI-V2.md §1) made CF12 20 px taller than the screen, and its
   first area row ended under the bottom edge: the spacing between its cards tightens there (16 → 12 px, the top 12 → 4,
   the bottom 12 → 4), the map stays 380 px. 448x901 keeps the design's spacing (tests/flows/screen-fit.mjs). */
@media (max-height: 880px) {
  #screen-outlet [data-screen="CF12"] main { padding-bottom: 0.25rem; }
  #screen-outlet [data-screen="CF12"] main > div.flex-1 { gap: 0.75rem; padding-top: 0.25rem; }
  /* «Senaste timmen» on its own line under the title (round 22) made the header 4 px taller: its padding gives them back */
  #screen-outlet [data-screen="CF12"] header { padding-top: 10px; padding-bottom: 10px; }
}
/* CF5 «Resa avslutad» with «Betalt» drawn (round 49, its 73 px block of words and two buttons) scrolled by 13-84 px, and on
   the owner's Pixel «Rapportera problem» ended under the bottom edge. The block takes the card's own gap and no margin of
   its own; up to 940 px tall the two cards' padding is 16 px and the check 48 px; up to 880 px the gaps tighten too
   (14 -> 10 px, the top 12 -> 4). Taller phones keep the design's spacing (tests/flows/screen-fit.mjs). */
#screen-outlet [data-screen="CF5"] [data-part="pay-mark"] { margin: 0; }
@media (max-height: 940px) {
  #screen-outlet [data-screen="CF5"] :is([data-part="done-card"], [data-part="fare-card"]) { padding-top: 1rem; padding-bottom: 1rem; }
  #screen-outlet [data-screen="CF5"] [data-part="done-check"] > :first-child { width: 3rem; height: 3rem; }
  #screen-outlet [data-screen="CF5"] [data-part="done-check"] svg { width: 1.75rem; height: 1.75rem; }
}
@media (max-height: 880px) {
  #screen-outlet [data-screen="CF5"] main { gap: 0.625rem; padding-top: 0.25rem; }
  #screen-outlet [data-screen="CF5"] [data-part="fare-card"] { gap: 0.625rem; }
  #screen-outlet [data-screen="CF5"] [data-part="done-pill"] { margin-top: 0.625rem; }
  #screen-outlet [data-screen="CF5"] [data-part="done-actions"] { margin-top: 0; }
}
/* Room a page keeps at its foot for a bar that is not there, scrolled with nothing in it (as CF6's above; the fit sweep,
   tests/flows/fit-sweep.mjs, at 448 x 901): D1 «Restauranger» keeps 144 px for its cart bar, hidden while the cart is
   empty (36 px of scroll on «Inga öppna kök»); IF1 «Jobbförfrågningar» kept 96 px «for the sticky radar dock», which the
   template no longer has (11 px on «Inga förfrågningar»); the freight partner's YP1, YP1.motbud, YP8, YP9 and YP11 keep
   96 px under their canvas for the bottom bar, and the canvas is a whole screen tall on its own (96 px of empty page). */
#screen-outlet :is([data-screen="D1"], [data-screen^="D1."]) main.pb-36:not(:has([data-cart-bar]:not([hidden]))) { padding-bottom: 1rem; }
#screen-outlet :is([data-screen="IF1"], [data-screen="IF1.inga-forfragningar"]) .mobile-screen { padding-bottom: 1rem; }
#screen-outlet [data-screen] [class~="pb-24"][class~="min-h-screen"] > .min-h-screen { min-height: calc(100dvh - 6rem); }
/* ==== The loading look: one for the whole app (the owner, 2026-11-10: «the way things load looks bad, and while they load
   they give a false impression of the design») ====
   A screen waits in its own layout (js/core/nav.js startWaiting): data-waiting from its mount until its load() has its
   answers, data-loading on top of it after a quarter of a second. While it waits, each text it is still to fill keeps the
   box of a line (data-waiting: nothing moves when the bars show, or when the answer comes), and from a quarter of a second
   on it is drawn as a quiet bar inside that line (data-loading). A picture on its way is a neutral block of its own box. The
   one motion is a slow breath of the placeholders' opacity, still under «Reduce motion» (and the app's calm mode, above).
   Only empty bound texts and pictures not yet come: the template's own look is left as it is, and the loaded screen is the
   same as without this. */
@keyframes frame-skeleton {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
/* A block a screen shows while its first answer is on the way (CF12's rows before GET /demand answers): the design's
   own card with its text drawn as empty bars, breathing until the answer replaces it. Nothing in it is data. */
[data-skeleton] {
  animation: frame-skeleton 1.4s ease-in-out infinite;
}
/* the box of a text still to come: a line of its own size (1lh), so the line it stands on keeps its height, and a word's width */
/* (an icon bound by name, <span data-bind="season_icon" class="material-symbols-outlined">, keeps an icon's box instead: below) */
:is([data-waiting], [data-loading]) :is(span, strong, small, b, em)[data-bind]:empty:not([hidden], .material-symbols-outlined, .material-symbols-rounded) {
  display: inline-block;
  min-inline-size: 4.5em;
  block-size: 1lh;
  vertical-align: top;
}
:is([data-waiting], [data-loading]) :is(p, h1, h2, h3, h4, dd)[data-bind]:empty:not([hidden]) {
  min-block-size: 1lh;
  max-inline-size: 60%;
}
/* ...and the bar drawn inside it, centred in the line */
[data-loading] :is(span, strong, small, b, em, p, h1, h2, h3, h4, dd)[data-bind]:empty:not([hidden], .material-symbols-outlined, .material-symbols-rounded)::before {
  content: '';
  display: block;
  /* the whole of its line box, also inside a text styled as a flex box (where a pseudo-element with no content is 0 wide) */
  inline-size: 100%;
  block-size: 0.9em;
  margin-block-start: calc((1lh - 0.9em) / 2);
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  animation: frame-skeleton 1.4s ease-in-out infinite;
}
/* A control whose words are still to come (a tab whose label carries its count, CF10; a link bound to the server's words): its
   own box is the design's (a flex button, its padding), so the bar is a ::before inside it, a word wide and a line tall; drawn
   only from data-loading on, as the other bars */
:is([data-waiting], [data-loading]) :is(button, a, label)[data-bind]:empty:not([hidden])::before {
  content: '';
  display: inline-block;
  inline-size: 4.5em;
  block-size: 0.9em;
  margin-block: calc((1lh - 0.9em) / 2);
  vertical-align: top;
  border-radius: 6px;
}
[data-loading] :is(button, a, label)[data-bind]:empty:not([hidden])::before {
  background: color-mix(in srgb, currentColor 14%, transparent);
  animation: frame-skeleton 1.4s ease-in-out infinite;
}
/* A picture still on its way (js/stitch/stitch-runtime.js watchPicture: data-img-wait until it has come or failed), and one a
   waiting screen has no source for yet: a neutral block in the picture's own box, never an empty frame. A picture that has
   come is drawn as it is (a logo with a clear background keeps it). */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) img[data-img-wait],
:is([data-waiting], [data-loading]) img:not([src]):not([hidden]) {
  background-color: color-mix(in srgb, currentColor 10%, transparent);
}
[data-loading] :is(img[data-img-wait], img:not([src]):not([hidden])) {
  animation: frame-skeleton 1.4s ease-in-out infinite;
}
/* A decorative picture that could not come (watchPicture: data-img-failed until its source changes): never the browser's
   broken-image mark. Its box stays and what the design puts under it shows: B1's tiles keep their glyph under the picture
   (the offline home, B1.offline, 2026-11-10). A picture with words of its own (alt) keeps the browser's way of saying them. */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) img[data-img-failed]:is([alt=""], [aria-hidden="true"]) {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  [data-skeleton],
  [data-loading] [data-bind]:empty::before,
  [data-loading] :is(img[data-img-wait], img:not([src])) { animation: none; }
}
/* An icon or a status dot that labels a value still on its way is part of that value's placeholder: grey and faint like the
   bar beside it, never in full colour next to an empty bar (the salon's page, E2: the pin, the star and the header's green
   dot; the booking, E3: the clock). It takes its own colour back the moment the screen has its answer.
   The two :has() name the row that holds the icon and the row's empty value, so the browser looks for a row with an
   icon in it and not for every element of the screen: a bare :has(> [data-bind]:empty) had every element of the loading
   screen as its subject, so every value the screen wrote dirtied all of them (the rider's C2 cold open names 625
   «Affected by :has()» invalidations, and the app's :has() rules as a whole are worth about 0.9 s of its style
   recalculation; the C2's own measure, 2026-11-17). */
[data-loading] :has(> :is(svg.stitch-icon, [data-part$="-dot"])):has(> [data-bind]:empty:not([hidden])) > :is(svg.stitch-icon, [data-part$="-dot"]),
[data-loading] :has(> .icon-slot):has(> [data-bind]:empty:not([hidden])) > .icon-slot > svg.stitch-icon {
  filter: grayscale(1);
  opacity: 0.35;
}
/* A list's row as the design drew it, shown as the placeholder card until the answer comes (E1's salon card): no row of
   anything yet (frame.js list() gives each real row its data-id), so it takes no tap. */
:is([data-waiting], [data-loading]) [data-list] > [data-item]:not([data-id]) { pointer-events: none; }
/* The same look for a block a design drew as a placeholder with the class .shimmer and never defined (the salon list's
   loading state, E1.laddar, 61 blocks): with no fill of their own they drew as hollow frames, a search field with its two
   icons and nothing else, and empty cards (the owner's iPhone, 2026-11-10: «the loading icons do not look right at all»).
   :where keeps it under any screen's own rule: a block that has a fill of its own (E1.laddar's photo area) keeps it. */
:where(#screen-outlet, #overlay-outlet) .shimmer {
  background-color: color-mix(in srgb, currentColor 12%, transparent);
  animation: frame-skeleton 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  :where(#screen-outlet, #overlay-outlet) .shimmer { animation: none; }
}
/* An icon a flow writes as a Material Symbols word (<span class="material-symbols-outlined">location_on</span>): the app loads
   no icon font, so the word itself never shows. Its box is the icon's (1em square) until js/stitch/stitch-runtime.js drawGlyph
   draws the SVG into it a frame later, and stays so for a word that has no drawing. A mounted screen's icons are drawn before
   it shows (hydrateIcons), and a wrapper that holds a drawn icon (.icon-slot, a span with its SVG) is not touched. */
:is(.material-symbols-outlined, .material-symbols-rounded):not(.icon-slot):not(:has(svg)) {
  display: inline-block;
  inline-size: 1em;
  block-size: 1em;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 2em;
  line-height: 1;
  vertical-align: middle;
}
[data-glyph]:has(> svg) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
/* The driver's cancel question opens at the foot of CF3's and CF4's sheet and is brought into view when it opens
   (c-taxi.js 'ask-cancel-ride'): its answers stop a finger's margin above the screen's bottom edge and the home bar,
   not flush on it. */
[data-section="cancel-confirm"] {
  scroll-margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
/* «Avbryt resan» is the last block above the sheet's foot on CF3 and CF4, and the foot's material fades in over the 24 px
   above its row («Sheets» below): raised to the end, the button stood flush on the foot (CF3) or 12 px above it (CF4), so
   its lower half was blurred away under that fade at every phone size (the owner's round 22: «partly hidden»). Room for
   the fade under it (CF4's column gap gives 12 of it), so raised, the button and the question under it stand clear. */
#screen-outlet [data-screen="CF3"] .sheet-track [data-section="cancel-ride"] { padding-bottom: 24px; }
#screen-outlet [data-screen="CF4"] .sheet-track [data-section="cancel-ride"] { padding-bottom: 12px; }
/* An icon a flow shows or hides is wrapped by hydrateIcons (js/stitch/stitch-runtime.js) so the hook
   survives; the wrapper adds no box, the icon sits in the layout exactly as before. */
.icon-slot {
  display: contents;
}

/* A camera turned on in a viewfinder the design drew (KF1 scans tickets): it fills the
   drawn frame under the corner marks, which keep their place above it. */
.camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accessibility on this device (P7, js/core/a11y.js). The text size zooms the screens (not <html>, whose
   zoom would push them past the edge), so px-sized design text grows too and each screen reflows in the
   same width; a design canvas drawn at exactly 390px follows the screen's width instead. Contrast and calm
   motion apply to everything; set on <html>, the filter creates no containing block for fixed bars. */
html.a11y-text-0 #screen-outlet, html.a11y-text-0 #overlay-outlet { zoom: 0.92; }
html.a11y-text-2 #screen-outlet, html.a11y-text-2 #overlay-outlet { zoom: 1.12; }
html.a11y-text-3 #screen-outlet, html.a11y-text-3 #overlay-outlet { zoom: 1.25; }
/* 150 % and 200 % (WCAG 1.4.4 Resize Text, EAA-02): the pinch zoom is no longer locked either (index.html) */
html.a11y-text-4 #screen-outlet, html.a11y-text-4 #overlay-outlet { zoom: 1.5; }
html.a11y-text-5 #screen-outlet, html.a11y-text-5 #overlay-outlet { zoom: 2; }
/* the sheets on <body> (Swish, ångerrätt, support, report, confirmation: .support-chat) take the same step; their
   88 dvh is divided by the zoom so the zoomed sheet still ends at the screen's height */
html.a11y-text-0 .support-chat-sheet { zoom: 0.92; }
html.a11y-text-2 .support-chat-sheet { zoom: 1.12; height: calc(88dvh / var(--a11y-vz, 1)); max-height: calc(92dvh / var(--a11y-vz, 1)); }
html.a11y-text-3 .support-chat-sheet { zoom: 1.25; height: calc(88dvh / var(--a11y-vz, 1)); max-height: calc(92dvh / var(--a11y-vz, 1)); }
html.a11y-text-4 .support-chat-sheet { zoom: 1.5; height: calc(88dvh / var(--a11y-vz, 1)); max-height: calc(92dvh / var(--a11y-vz, 1)); }
html.a11y-text-5 .support-chat-sheet { zoom: 2; height: calc(88dvh / var(--a11y-vz, 1)); max-height: calc(92dvh / var(--a11y-vz, 1)); }
html[class*="a11y-text-"] .support-chat-sheet.is-short { height: auto; }
/* ...and centred from 560 px (css/tablet.css: min(84dvh, 780px), at a weight over the lines above for a short sheet), divided as
   well: on a phone on its side at «200 %» «Din kod till kundtjänst» was 739 px on a 440 px screen, its ✕ above the top */
@media (min-width: 560px) {
  html.a11y-text-2 .support-chat-sheet.is-short { max-height: min(calc(84dvh / var(--a11y-vz, 1)), calc(780px / 1.12)); }
  html.a11y-text-3 .support-chat-sheet.is-short { max-height: min(calc(84dvh / var(--a11y-vz, 1)), calc(780px / 1.25)); }
  html.a11y-text-4 .support-chat-sheet.is-short { max-height: min(calc(84dvh / var(--a11y-vz, 1)), calc(780px / 1.5)); }
  html.a11y-text-5 .support-chat-sheet.is-short { max-height: min(calc(84dvh / var(--a11y-vz, 1)), calc(780px / 2)); }
}
/* the zoom as a number (--a11y-z), and the phone's safe area (the clock, the island, the home bar), which is in the screen's
   pixels: inside a zoomed screen it is divided by the zoom, or «200 %» put a header 62 px lower than the clock needs and a
   sheet's foot as much higher (test-page item look-a11y-p7-zoom-200-contrast) */
html.a11y-text-0 :is(#screen-outlet, #overlay-outlet) { --a11y-z: 0.92; }
html.a11y-text-2 :is(#screen-outlet, #overlay-outlet) { --a11y-z: 1.12; }
html.a11y-text-3 :is(#screen-outlet, #overlay-outlet) { --a11y-z: 1.25; }
html.a11y-text-4 :is(#screen-outlet, #overlay-outlet) { --a11y-z: 1.5; }
html.a11y-text-5 :is(#screen-outlet, #overlay-outlet) { --a11y-z: 2; }
/* ...and the divisor of a viewport unit (dvh, vw) inside a zoomed box, on <html> so the sheets on <body> have it too. Chrome
   128+ and Firefox (standardized zoom, Element.currentCSSZoom) zoom a viewport unit as any length, so it is divided by the
   zoom; Safari/WebKit's zoom draws it at the screen's size already (js/core/a11y.js marks <html> .zoom-legacy there), and
   divided it put the foot of Hem, Taxi and the menu at 1/zoom of the screen: 475 of 956 px at «200 %», 853 at «Stor» (test
   page: look-a11y-p7-zoom-200-contrast, WebKit 26) */
html.a11y-text-0 { --a11y-vz: 0.92; }
html.a11y-text-2 { --a11y-vz: 1.12; }
html.a11y-text-3 { --a11y-vz: 1.25; }
html.a11y-text-4 { --a11y-vz: 1.5; }
html.a11y-text-5 { --a11y-vz: 2; }
html.zoom-legacy[class*="a11y-text-"] { --a11y-vz: 1; }
html[class*="a11y-text-"] :is(#screen-outlet, #overlay-outlet) {
  --safe-top: calc(env(safe-area-inset-top, 0px) / var(--a11y-z, 1));
  --safe-bottom: calc(env(safe-area-inset-bottom, 0px) / var(--a11y-z, 1));
}
html[class*="a11y-text-"] #screen-outlet [class~="w-[390px]"],
html[class*="a11y-text-"] #overlay-outlet [class~="w-[390px]"] { width: 100% !important; }
/* «150 %» and «200 %» leave a screen 293 and 220 px of width on a 440 px phone: what stood side by side in a row takes the
   next line, so no control lies on another and no word runs out (tests/flows/a11y-text-zoom.mjs) */
/* upright, the screen is as narrow as a folding phone's cover screen (css/responsive.css's rules under 360 px, the same here):
   a long bound word breaks where it would run out of its line, a flexible column may shrink, a width drawn on the 390 canvas
   never exceeds its box, and B2's menu leaves 56 px beside it (at «200 %» its 320 px were 640 of 440, its foot under the
   screen's: the overlay is as tall as the screen, not twice) */
@media (max-width: 539.98px) {
  html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen] [data-bind] { overflow-wrap: break-word; }
  html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen] :is(.flex-1, .grow, .flex-grow, .flex-auto) { min-width: 0; }
  html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen]:not([data-screen="EP3.tv"]) :is([class^="w-["], [class*=" w-["]):not(.absolute, .fixed, [class*="max-w-"]) { max-width: 100%; }
  html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen="B2"] [class~="w-[320px]"] { width: calc(100% - 56px / var(--a11y-z, 1)); }
  html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen="B2"] :is([class~="left-[320px]"], [class~="right-[320px]"]) { inset-inline-start: calc(100% - 56px / var(--a11y-z, 1)); }
  html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen="B2"] :is(.b2-row__title, .b2-row__sub) { overflow-wrap: anywhere; }
}
html[class*="a11y-text-"] #overlay-outlet [data-screen="B2"] { min-height: 0; height: calc(100dvh / var(--a11y-vz, 1)); }
/* ...and its sheet inside (min-h-[100dvh], twice the screen at «200 %»): B2 itself scrolled then, not its list, and the bar
   with ✕ that stays at the top of the list went off the screen with the rows (test page: look-a11y-p7-zoom-200-contrast) */
html[class*="a11y-text-"] #overlay-outlet [data-screen="B2"] .b2-root { min-height: 0; height: calc(100dvh / var(--a11y-vz, 1)); }
/* P7: the preview's words and the statement's one long word wrap inside their card */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="P7"] :is(#previewCategory, #previewTitle, [data-action="open-statement"] > span:last-child, .p-3.rounded-xl p) { overflow-wrap: anywhere; min-width: 0; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="P7"] :is(.flex.items-center.gap-2:has(> div > #previewTitle), .flex.items-center.gap-2 > div:has(> #previewTitle), .p-3.rounded-xl > div) { min-width: 0; }
/* B1: the lockup gives the header its room (the bell, the profile and the menu stay), and at «200 %» the look's button too
   (☰ → «Utseende» has it); the tools on the map stand in rows over the sheet, the city's pill on its own; the services in
   as many columns as fit; the partner card's line wraps */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) {
  --b1-head-top: max(calc(44px / var(--a11y-z)), calc(var(--safe-top) + 6px));
  --sheet-peek: calc(118px + var(--safe-bottom));
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-brand,
html.a11y-text-5 #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-theme-btn { display: none; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) [data-part="map-tools"].sys-b1-tools {
  inset-inline: 1rem;
  flex-flow: row wrap;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) [data-part="map-tools"] > * { pointer-events: auto; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) [data-part="map-tools"] > .sys-b1-tool-wrap { flex-basis: 100%; min-width: 0; pointer-events: none; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-city { max-width: 100%; white-space: normal; flex-wrap: wrap; pointer-events: auto; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-tool-group { width: auto; height: 44px; flex-direction: row; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-tool + .sys-b1-tool { border-top: 0; border-inline-start: 1px solid var(--sys-hairline); }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-launcher { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-partner-perk { white-space: normal; }
/* ...the tools stand above the map's credit line, which the sheet's left corner holds (data-map-credit="left") */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sheet-track [data-map-credit~="left"] > [data-part="map-tools"] { bottom: calc(100% + 28px); }
/* ...and the ads: the three cards one under another while they do not fit side by side, a pill's words on two lines */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="B1"] .sys-ad-slot--trio { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="B1"] .sys-ad-editorial-kicker { flex-wrap: wrap; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="B1"] .sys-ad-pill { white-space: normal; max-width: 100%; text-align: center; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="B1"] .sys-peek-ad-top { flex-wrap: wrap; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="B1"] .sys-peek-ad-badge { flex: 0 1 auto; white-space: normal; }
/* D1: the title and the delivery address take a line of their own under the back button and «Granskade» (the bar is a row
   that wraps, or css/chrome.css's three-part grid that centres a title with a control under it: the same places in both); a
   card's «Välj meny» goes under its price when both do not fit, and grows with its words */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D1"] [data-item] .flex.items-center.justify-between:has(> [data-action="open-restaurant"]) { flex-wrap: wrap; gap: 8px; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D1"] [data-item] button[data-action="open-restaurant"].h-10 { height: auto; min-height: 2.5rem; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D1"] [data-chrome="bar"] { flex-wrap: wrap; row-gap: 6px; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D1"] [data-chrome="bar"] > :nth-child(1) { grid-area: 1 / 1; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D1"] [data-chrome="bar"] > :nth-child(2) { order: 3; flex-basis: 100%; min-width: 0; grid-area: 2 / 1 / auto / -1; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D1"] [data-chrome="bar"] > :nth-child(3) { grid-area: 1 / 3; }
/* C1 and C2: «Taxi» and «Expresspaket» each on a line of its own when both do not fit */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-part="service-segment"] { display: flex; flex-wrap: wrap; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-part="service-segment"] > button { flex: 1 1 auto; }
/* A2: the country takes a line of its own under the language button and «Hoppa över». Q4's three-slot grid (below) gives it
   the middle's minmax(0, 1fr) here, and the one word «SVERIGE» ran out of it: drawn 45 px over «Hoppa över» on a 440 px iPhone
   at «200 %», 16 px on Android at «150 %» (test page: iphone-a2-statusbar-signin). «Hoppa över» grows with its words when they
   take two lines (tests/unit/layout/a2-top-row.test.mjs) */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="A2"] header > .justify-between { row-gap: 6px; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="A2"] header > .justify-between > :has(> [data-bind="a2_country"]) { grid-area: 2 / 1 / auto / -1 !important; }
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="A2"] [data-action="skip"] { height: auto; }
/* A phone on its side (956 x 440): a map screen docks its sheet as a column beside the map (css/responsive-wide.css, from 700 px of
   the screen). The column and its gap are the screen's pixels, so a zoomed screen divides them as the safe area: at «200 %»
   the column was 840 of 956 px, a sideways island's 62 px doubled on top, and it ran 8 px out of the side */
html[class*="a11y-text-"] #screen-outlet [class~="max-h-[92vh]"] {
  max-height: calc(92dvh / var(--a11y-vz, 1) - var(--safe-top, 0px) - 8px);
}
@media (min-width: 700px) {
  html[class*="a11y-text-"] #screen-outlet {
    --pane-col: calc(356px / var(--a11y-z, 1));
    --pane-gap: calc(max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) / var(--a11y-z, 1));
    --split-list-col: calc(380px / var(--a11y-z, 1));
  }
  html[class*="a11y-text-"] #screen-outlet[data-pane="split"]:not([data-split-solo="true"]) > [data-split-slot] {
    height: calc(100dvh / var(--a11y-vz, 1));
  }
  html[class*="a11y-text-"] #screen-outlet[data-pane="split"]:not([data-split-solo="true"]) [data-split-empty] {
    min-height: calc(100dvh / var(--a11y-vz, 1));
  }
  html:is(.a11y-text-4, .a11y-text-5) body:not(:has(#overlay-outlet > [data-overlay])) #screen-outlet :is([data-screen="D2"], [data-screen="D2.stangd"], [data-screen="W3"], [data-screen="K2"], [data-screen="KS2"], [data-screen="KS3"])[data-pane="split"] :is([data-list="menu"], [data-list="reviews"], [data-list="services"], [data-list="rooms"], [data-list="results"], [data-list="partners"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  /* B1's tools stand on the map beside the column (at the reading start, css/tablet.css: in Arabic at the right, the tools at
     its left), over the sheet's top edge as upright, so they ride with it. Hung from that edge (top: 0), the sheet at rest at
     292 of 440 px put their two rows at 294–490 px at «200 %»: «Ring kundtjänst» half under the screen, a tap on it on nothing
     (test page: look-a11y-p7-zoom-200-contrast) */
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet > [data-screen="B1"][data-pane="map"] .sheet-track [data-part="map-tools"].sys-b1-tools {
    top: auto;
    bottom: calc(100% + 8px);
    inset-inline-start: calc(100% + var(--pane-gap, 12px));
    inset-inline-end: auto;
    width: max-content;
    max-width: calc(100vw / var(--a11y-vz, 1) - var(--pane-col) - 3 * var(--pane-gap, 12px));
    justify-content: flex-start;
  }
  /* C1's locate button the same: beside the column on the map, over the sheet's top edge. In the column, over that edge, the
     sheet stood so high on a phone on its side that the button lay on the header's «0% påslag» (test page:
     look-a11y-p7-zoom-200-contrast) */
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet > :is([data-screen="C1"], [data-screen^="C1."])[data-pane="map"] .sheet-track [data-part="me-tools"] {
    inset-inline-start: calc(100% + var(--pane-gap, 12px));
    inset-inline-end: auto;
  }
}
@media (min-width: 840px) {
  html[class*="a11y-text-"] #screen-outlet {
    --pane-col: calc(420px / var(--a11y-z, 1));
    --pane-gap: calc(max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) / var(--a11y-z, 1));
  }
}
/* ...and on the short screen the sheet's lowest stop leaves the header and the map's credit line their room: B1's menu, bell,
   profile and filters, C1's «Stäng» */
@media (max-height: 540px) {
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) {
    --sheet-peek: min(calc(118px + var(--safe-bottom)), calc(100cqh - var(--b1-head-top) - 124px));
  }
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C1"] { --sheet-peek: min(140px, calc(100cqh - var(--safe-top, 0px) - 100px)); }
  html.a11y-text-4 #screen-outlet [data-screen="B1"] .sys-peek-ads { display: none; }
}
/* B1's sponsored strip over the lowered sheet (its businesses stay on the map and in the sheet): at «150 %» the tools step up
   over its 170 px, at «200 %» the header, the tools and the strip do not all fit above the sheet, and the strip gives way */
html.a11y-text-4 #screen-outlet [data-screen="B1"]:has([data-part="sponsored-peek-strip"].is-peek:not([hidden])) .sheet-track[data-state="peek"] [data-part="map-tools"] { bottom: calc(100% + 220px); }
html.a11y-text-5 #screen-outlet [data-screen="B1"] .sys-peek-ads { display: none; }
html.a11y-contrast { filter: contrast(1.25) brightness(1.06); }
html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html.a11y-calm :where(#screen-outlet, #overlay-outlet) :is(.animate-fadeInUp, .stagger-item, .stagger-in, [class*="anim-step-"]) {
  opacity: 1 !important;
}
/* The phone's own «reduce motion» asks for the same calm as the app's switch (PLAN-V3 TXR.15). */
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  :where(#screen-outlet, #overlay-outlet) :is(.animate-fadeInUp, .stagger-item, .stagger-in, [class*="anim-step-"]) {
    opacity: 1 !important;
  }
}

/* A drawn control turned into a real one (stitch-build README, template rule 2): the
   design drew it as text, so the input takes that text's look and drops the browser's
   own field chrome. Only inputs marked data-drawn; inputs the design drew as inputs
   keep their own styling. */
/* !important: the forms preflight in css/stitch/_base.css styles every text input,
   including :focus with a blue ring, at a higher specificity than a plain rule here. */
[data-screen] input[data-drawn],
[data-screen] input[data-drawn]:focus {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  caret-color: #c084fc;
}
[data-screen] input[data-drawn]::placeholder { color: inherit; opacity: 1; }
/* A textarea the design drew without the forms plugin (CF15's comment, inside its rounded card): the forms preflight
   gave it a square, bordered box of its own inside the card. It keeps its own type size and placeholder colour.
   data-bare is the same for an input or a textarea the design drew as a field on a design without the forms plugin
   (C7.prisgaranti's amount, receipt number and message inside their rounded cards, the screen review of wave 5). */
[data-screen] textarea[data-drawn],
[data-screen] textarea[data-drawn]:focus,
[data-screen] input[data-bare],
[data-screen] input[data-bare]:focus,
[data-screen] textarea[data-bare],
[data-screen] textarea[data-bare]:focus {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
[data-screen] input[data-drawn]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
/* CF8.registrera's «Musik från kundens telefon» (PLAN-V3 TXD.12): the design drew the switch off; on is its mirror, the
   knob at the far end on the platform's purple (#7C3AED, the design system's), set by aria-pressed, never by style= */
[data-screen="CF8.registrera"] [data-part="music-switch"][aria-pressed="true"] { background-color: #7C3AED; }
[data-screen="CF8.registrera"] [data-part="music-switch"][aria-pressed="true"] > [data-part="knob"] { transform: translateX(1.25rem); background-color: #fff; }
/* M7 «Samtal» (PLAN-V3 TXS.9): «Ljud av» and «Högtalare» are toggles, set by aria-pressed (m-samtal.js), never by style=.
   The design drew «Högtalare» on and «Ljud av» off: on is the lit look of its «Högtalare» (purple-500/25, purple-400/60,
   white, the glow), off the look of its «Ljud av» (purple-950/40, purple-500/30, purple-200, its label slate-300). */
[data-screen="M7"] [data-action="mute"][aria-pressed="true"],
[data-screen="M7"] [data-action="speaker"][aria-pressed="true"] {
  background-color: rgba(168, 85, 247, 0.25); border-color: rgba(192, 132, 252, 0.6); color: #fff; box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}
[data-screen="M7"] [data-action="mute"][aria-pressed="true"] + span { color: #fff; }
[data-screen="M7"] [data-action="speaker"][aria-pressed="false"] {
  background-color: rgba(59, 7, 100, 0.4); border-color: rgba(168, 85, 247, 0.3); color: #e9d5ff; box-shadow: none;
}
[data-screen="M7"] [data-action="speaker"][aria-pressed="false"] + span { color: #cbd5e1; }
/* The trip card's route on M5 and the M7 screens (TXS.9 layout round 2, L1) takes the card's free width and wraps, never
   cut while the card has room: two lines of a like length when it does not fit on one (where from, then where to), and an
   address with no space in it breaks inside the card instead of running out of it. */
:is([data-screen="M5"], [data-screen^="M7"]) [data-bind="ctx_route"] { text-wrap: balance; overflow-wrap: anywhere; }
/* The M7 screens keep their actions on the phone (L2): the footer sticks to the bottom on its translucent material
   (sticky bottom-0 in the templates), the content scrolling under it. The ring is a full-screen overlay, a fixed layer
   that never scrolled: on a short phone the foot of «Avvisa» and «Svara» was cut. It scrolls in itself now, so its footer
   sticks the same way. */
#overlay-outlet > [data-overlay]:has(> [data-screen="M7.inkommande"]) { overflow-y: auto; overscroll-behavior: contain; }
/* The M7 pages are one screen tall (the owner, 2026-10-24: on a short window «Samtalet kunde inte kopplas» ran on under
   «Försök igen», and the end state's «Skriv i chatten» and privacy line stood twice): the header, the content scrolling in
   itself, and the footer after it, never over it. The page itself never scrolls, so nothing sticks twice. */
#screen-outlet [data-screen^="M7"] > .min-h-screen { height: 100dvh; min-height: 0; overflow: hidden; }
/* ...at every text size too (P7): the screen's zoom zooms a viewport unit in Chrome, so at «200 %» the page was two screens
   tall and «Ljud av», «Lägg på», «Skriv i chatten» and «Ring igen» stood a screen below the call (test page:
   taxi-calls-in-trip, Chrome on a Pixel 7). --a11y-vz is the divisor of a viewport unit in a zoomed screen: the zoom where
   the zoom zooms it, 1 on Safari/WebKit, whose zoom draws it at the screen's size already. */
html[class*="a11y-text-"] #screen-outlet [data-screen^="M7"] > .min-h-screen { height: calc(100dvh / var(--a11y-vz, 1)); }
#screen-outlet [data-screen^="M7"] > .min-h-screen > main { min-height: 0; }
#screen-outlet [data-screen^="M7"] > .min-h-screen > :is(header, footer) { flex-shrink: 0; }
#screen-outlet [data-screen^="M7"] [data-purpose="call-active-state"] h2 { text-wrap: balance; }
/* ...and on a short screen (a laptop's window, a phone held sideways) the end states say first what happened: the trip card
   goes and the avatar is 4rem, so the heading and its line stand above the footer without scrolling. */
@media (max-height: 640px) {
  #screen-outlet :is([data-screen="M7.fel"], [data-screen="M7.slut"]) [data-part="trip-card"] { display: none; }
  #screen-outlet :is([data-screen="M7.fel"], [data-screen="M7.slut"]) [data-purpose="call-active-state"] { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  #screen-outlet :is([data-screen="M7.fel"], [data-screen="M7.slut"]) [data-purpose="call-active-state"] > .mb-6 { margin-bottom: 0.75rem; }
  #screen-outlet :is([data-screen="M7.fel"], [data-screen="M7.slut"]) [data-purpose="call-active-state"] > .mb-6 > .w-28 { width: 4rem; height: 4rem; font-size: 24px; }
  #screen-outlet [data-screen^="M7"] footer[data-part="call-controls"] { padding-top: 0.75rem; }
}
/* On a short phone the call's picture gives up room before what the call says: the block's padding a third, the ring
   group 9rem with its outer ring left out (M7, M7.ringer), less space under the avatar (M7.fel), so the time, the state,
   why it could not connect and the privacy line stand above the sticky footer, not under it. 741 px and up: as designed. */
@media (max-height: 740px) {
  #screen-outlet [data-screen^="M7"] [data-purpose="call-active-state"] { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  #screen-outlet :is([data-screen="M7"], [data-screen="M7.ringer"]) [data-purpose="call-active-state"] > .w-48 { width: 9rem; height: 9rem; margin-bottom: 0.5rem; }
  #screen-outlet :is([data-screen="M7"], [data-screen="M7.ringer"]) [data-purpose="call-active-state"] > .w-48 > .w-44 { display: none; }
  #screen-outlet [data-screen="M7.fel"] [data-purpose="call-active-state"] > .mb-6 { margin-bottom: 0.75rem; }
}
/* M7.mikrofon is the tallest, its three steps: under 841 px its icon is 4rem and its spacing tighter, so on a 360 × 780
   phone the steps end above the footer; on a shorter one they scroll under it. */
@media (max-height: 840px) {
  #screen-outlet [data-screen="M7.mikrofon"] [data-purpose="mic-blocked-state"] { padding-top: 0.25rem; }
  #screen-outlet [data-screen="M7.mikrofon"] [data-purpose="mic-blocked-state"] > .w-24 { width: 4rem; height: 4rem; }
  #screen-outlet [data-screen="M7.mikrofon"] [data-purpose="mic-blocked-state"] > .w-24 svg { width: 32px; height: 32px; }
  #screen-outlet [data-screen="M7.mikrofon"] [data-purpose="mic-blocked-state"] > h2 { margin-top: 0.75rem; }
  #screen-outlet [data-screen="M7.mikrofon"] [data-part="mic-steps"] { margin-top: 0.75rem; padding: 0.75rem 1rem; }
}
/* the date fields of CF7.giltighet and CF8.registrera draw their own calendar icon: the browser's stays where it is, still
   a tap target, but unseen, so the field shows one icon as designed */
[data-screen="CF7"] input[data-field="kyc_expires"]::-webkit-calendar-picker-indicator,
[data-screen="CF8.registrera"] input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; }
/* C3.forare-hittad's driver photo (TXS.2): the design draws it «w-13 h-13», 3.25rem in Tailwind 4, a size its own Tailwind 3
   config does not have, so the generated sheet holds no rule and the real 400-px photo took its own size, a large square
   pushing the sheet down (the screen review of wave 5). The size the design names, here since css/stitch is never edited. */
[data-screen="C3.forare-hittad"] img[data-part="driver-photo"] { width: 3.25rem; height: 3.25rem; }
/* CP2: the invite link is one unbroken word; it wraps inside the card so the card stays as wide as the phone and the
   Kopiera / Dela / Återkalla buttons stay on the screen (taxi-fleet-invite-create) */
[data-screen="CP2"] [data-bind="invite_link"] { overflow-wrap: anywhere; }
/* LP1's receipt (round 43, Kassa & personal): the control system's code is one 113-character word; it wraps inside the card */
[data-screen^="LP1"] [data-bind="control_code"] { overflow-wrap: anywhere; }
/* CF3's chip beside the customer's name and CF4's «Tyst resa aktiv» (TXR.6, TXD.15): one line each, as designed; when the
   name or the preferences beside them leave no room, the row wraps under the name instead of squeezing the chip over three
   lines (the screen review of wave 5). */
[data-screen="CF3"] [data-part="name-row"],
[data-screen="CF4"] [data-part="prefs-row"] { flex-wrap: wrap; row-gap: 0.25rem; }
[data-screen="CF3"] [data-bind="ride_pref_chip"],
[data-screen="CF4"] [data-section="ride-quiet"] { flex-shrink: 0; white-space: nowrap; }
/* The route rows of a live ride (C3, its states and C3.forare-hittad; the owner's phone test of 2026-10-23): the address
   column may shrink, so a long street name («Göteborg Landvetter Airport (GOT)») ellipsizes or wraps in its own column and
   the row's «Ändra» stays on the card; a long word breaks rather than run under the chip. */
#screen-outlet [data-part="route-text"] { min-width: 0; overflow-wrap: anywhere; }
/* ...and its «Nu» (or the booked time) stays one line beside it: the street name yields, never the time */
#screen-outlet [data-part="route-text"] [data-bind="pickup_when"] { flex-shrink: 0; white-space: nowrap; }
/* A control drawn smaller than a finger (the route rows' «Ändra», C2's accepted chip): its reach is 48 x 48 around the drawn
   chip (TAXI-V2 §2), so the look stays the design's and a thumb still lands on it. */
/* C3.inga-bilar's and C3.hoj-priset's row of the two «Ändra» chips takes no room when the server opens neither change */
#screen-outlet [data-part="route-chips"]:not(:has(> :not([hidden]))) { display: none; }
/* C2's classes as a list of cards (round 46), in the light look: white cards, the chosen one ringed and washed in violet, the
   words dark and the second line, the seats and the car's minutes in slate and green (C2.css holds C2's own; its states have none) */
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen^="C2"] [data-list="tiers"] > [data-item] {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen^="C2"] [data-list="tiers"] > [data-item].obsidian-card-active {
  background: #f5f3ff !important; border: 1.5px solid #7c3aed !important; box-shadow: 0 6px 18px rgba(124, 58, 237, 0.16) !important; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen^="C2"] [data-list="tiers"] > [data-item] :is([data-bind="name"], [data-bind="price"]) { color: #0f172a !important; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen^="C2"] [data-list="tiers"] > [data-item] :is([data-bind="car_model"], [data-part="seats"]) { color: #475569 !important; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen^="C2"] [data-list="tiers"] > [data-item] [data-bind="eta"] { color: #047857 !important; }
/* ...and the chosen class's jämförpris under them (round 46, draft 02) */
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen^="C2"] [data-bind="comparison_line"] { color: #475569 !important; }
/* C2.laddar-priser: the classes' placeholders in a column, as the cards they stand for: the picture first, the lines, the price */
#screen-outlet [data-part="tier-skeleton"] { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
#screen-outlet [data-part="tier-skeleton"] > * { width: auto; min-height: 64px; flex-direction: row; align-items: center; gap: 12px; }
#screen-outlet [data-part="tier-skeleton"] > * > * { margin: 0; }
#screen-outlet [data-part="tier-skeleton"] > * > .absolute { display: none; }
#screen-outlet [data-part="tier-skeleton"] > * > :nth-last-child(2) { order: -1; flex: none; width: 56px; }
#screen-outlet [data-part="tier-skeleton"] > * > :nth-last-child(3) { flex: 1; }
#screen-outlet [data-part="tier-skeleton"] > * > :last-child { flex-direction: column; align-items: flex-end; gap: 6px; padding: 0; border: 0; }
/* ...and over them, the route on one line (round 46): each end yields to an ellipsis in its share of the line; the line takes
   no room before the server named the ends */
#screen-outlet [data-part="route-line"] > [data-bind] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#screen-outlet [data-part="route-line"]:not(:has(> [data-bind]:not(:empty):not([hidden]))) { display: none; }
#screen-outlet [data-hit48] { position: relative; }
#screen-outlet [data-hit48]::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%); }
/* The one MapLibre map, moved into a screen's [data-map-slot] (nav.js). The container
   must fill the slot: with no height of its own it measured 0 px and the map drew
   into nothing. */
[data-map-slot] > #map-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The map's credit, «© OpenStreetMap · © CARTO» (map.js): the data's licence (ODbL) and CARTO's basemap terms ask
   for it in plain sight, and each screen covers the map's corners with its header or its sheet (readiness P16).
   A screen marks the block whose top edge is the bottom of the map a person sees (its sheet, or the row standing on
   the map above it) with data-map-credit; the line sits on the map just above that edge, on the right, or on the
   left or in the middle where something else stands on the right. data-map-credit="inside" marks the map's own box
   when the sheet below laps over its last 16 px (CP1, whose «Visa hela flottan» stands on the right), and "corner" a
   map's own box that nothing covers, or whose sheet scrolls and so clips a line hung above its top edge
   (CF1.online-vantar). The words combine: "inside left", "corner left". A map in a box of its own
   with nothing in its corners (C6) needs no mark: the line sits in the map's bottom right corner. Whatever the screen
   draws on the map (a recenter button, «Visa hela flottan») keeps clear of the line: tests/flows/map-credit.mjs
   compares their boxes. */
.map-credit {
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: calc(100% + 6px);
  margin: 0;
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
  font: 500 10px/16px var(--font-body);
  letter-spacing: 0.01em;
  color: var(--sys-label-2);
  background: var(--sys-glass);
  /* its links stay links when the block it hangs from lets taps through (CF2's countdown row) */
  pointer-events: auto;
}
.map-credit a { color: inherit; text-decoration: none; }
[data-map-credit~="left"] > .map-credit { right: auto; left: 12px; }
[data-map-credit~="center"] > .map-credit { right: auto; left: 50%; transform: translateX(-50%); }
[data-map-credit~="inside"] > .map-credit { bottom: 22px; }
[data-map-credit~="corner"] > .map-credit { bottom: 6px; }
/* "top": the map's own box whose bottom corners both hold something (CF12: the legend left, recenter right) and whose
   top left holds the status pill: the line sits in its top right corner. */
[data-map-credit~="top"] > .map-credit { top: 10px; bottom: auto; }
/* The line hangs from its own block: a block with no position class of its own (CF1.online-vantar's first sheet) would
   otherwise leave it to whatever the engine makes its containing block (a backdrop-filter is one in Chromium). */
[data-map-credit]:not(.absolute):not(.fixed):not(.sticky):not(.relative) { position: relative; }
#map-container > .map-credit { right: 8px; bottom: 6px; }

/* ==========================================================================
   Sheets (driver feedback 2026-10-18, item 4; plan D11; js/core/sheet.js, the C-SHEET contract). A sheet with a handle
   dragged nowhere: it was a block in a page that scrolled, so a pull scrolled the page or reloaded it at its top. Now
   the sheet lies in a scroll-snap track (absolute over its host, the host as tall as the screen) over the map, which
   fills the host behind it; dragging is the browser's own scrolling, so it follows the finger with no script. The stops
   are scroll positions: peek at the track's top (the gap: --sheet-peek of the sheet shows), rest where a mark inside the
   sheet at min(its height, --sheet-cap) meets the track's foot, open where the sheet's top meets --sheet-open (or all
   of a shorter sheet), and a sheet longer than the screen has its end too, where its own foot meets the track's foot.
   Each screen's values are below.
   ========================================================================== */
#screen-outlet > [data-screen], #overlay-outlet > [data-overlay] > [data-screen] {
  --sheet-peek: 140px;
  --sheet-cap: 40cqh;
  --sheet-open: 0px;
  --sheet-bg: var(--sys-raised);
}
#screen-outlet [data-sheet-host]:not([data-sheet-host="dialog"]),
#overlay-outlet [data-sheet-host]:not([data-sheet-host="dialog"]) {
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* a host under rows of its own screen ([data-sheet-host="fill"], CA1's map under its header and status row): it takes what
   they leave of a screen-tall column */
#screen-outlet [data-sheet-host="fill"], #overlay-outlet [data-sheet-host="fill"] { flex: 1 1 0; height: auto; max-height: none; }
#screen-outlet :has(> [data-sheet-host="fill"]), #overlay-outlet :has(> [data-sheet-host="fill"]) { height: 100dvh; min-height: 0; overflow: hidden; }
#screen-outlet [data-sheet-host]:not(.absolute):not(.fixed),
#overlay-outlet [data-sheet-host]:not(.absolute):not(.fixed) { position: relative; }
/* the map (or the design's picture) fills what the host's header leaves, down to the screen's foot, behind the sheet */
#screen-outlet [data-sheet-host] > [data-sheet-map]:not(.absolute):not(.fixed),
#overlay-outlet [data-sheet-host] > [data-sheet-map]:not(.absolute):not(.fixed) {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: none;
}
/* a map block the design lays over the host (absolute) fills it as well, from the top: C2.upphamtningsplats drew its map
   48 % tall over a sheet that sat under it, so under the sheet's track the map stopped at 320 px (C2's -64 px and 384 px,
   meant for the in-flow block, caught it too) and the page's black showed down to the sheet, on a phone and wider. The
   others (B1, C4.framme, C5.offline: inset-0 or h-full) fill it already */
#screen-outlet [data-sheet-host] > [data-sheet-map].absolute,
#overlay-outlet [data-sheet-host] > [data-sheet-map].absolute { top: 0; bottom: 0; height: auto; }
#screen-outlet .sheet-track, #overlay-outlet .sheet-track {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--sheet-open);
  scrollbar-width: none;
  /* the map above the sheet still pans: only the sheet takes the finger */
  pointer-events: none;
  /* the stops' lengths (cqh) are the track's own height */
  container-type: size;
}
.sheet-track::-webkit-scrollbar { display: none; }
.sheet-gap { flex: none; height: calc(100% - var(--sheet-peek)); scroll-snap-align: start; }
/* a short sheet (all of it shows at rest) gives 48 px to a pull and springs back to rest */
.sheet-tail { display: none; flex: none; height: 48px; background: var(--sheet-bg); }
.sheet-track[data-short] > .sheet-tail { display: block; }
#screen-outlet .sheet-track > [data-sheet], #overlay-outlet .sheet-track > [data-sheet] {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  max-width: none;
  pointer-events: auto;
}
#screen-outlet .sheet-track:not([data-dialog]) > [data-sheet], #overlay-outlet .sheet-track:not([data-dialog]) > [data-sheet] {
  height: auto;
  min-height: var(--sheet-peek);
  max-height: none;
  /* the map's credit and the floats hang above its top edge; its foot row sticks to the track's foot */
  overflow: visible;
  scroll-snap-align: start;
}
/* over a drawn picture ([data-sheet-gap]): the track stands under the header in the host's flow, the picture is its gap
   and scrolls away as the sheet rises; the sheet keeps the design's lap over the picture and fills to the foot */
#screen-outlet .sheet-track[data-flow], #overlay-outlet .sheet-track[data-flow] { position: relative; inset: auto; flex: 1 1 0; min-height: 0; }
#screen-outlet .sheet-track[data-flow] > [data-sheet-gap], #overlay-outlet .sheet-track[data-flow] > [data-sheet-gap] { flex: none; scroll-snap-align: start; }
/* a drawn picture in the track keeps its own controls: the track lets the finger through to the map (pointer-events: none),
   and a header drawn in the picture inherited that and took no tap (every C3 state's «Hem», C1.plats-av's and
   C1.ingen-traff's «Stäng», J5's «Gå tillbaka»: the owner's report 3, 2026-10-23). The rest of the picture stays as it was */
#screen-outlet .sheet-track[data-flow] > [data-sheet-gap] :is(button, a[href], input, select, textarea, label, summary, [data-action]),
#overlay-outlet .sheet-track[data-flow] > [data-sheet-gap] :is(button, a[href], input, select, textarea, label, summary, [data-action]) { pointer-events: auto; }
#screen-outlet .sheet-track:not([data-flow]):not([data-dialog]) > [data-sheet], #overlay-outlet .sheet-track:not([data-flow]):not([data-dialog]) > [data-sheet] { margin: 0; }
#screen-outlet .sheet-track[data-flow] > [data-sheet], #overlay-outlet .sheet-track[data-flow] > [data-sheet] { flex: 1 0 auto; min-height: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; }
.sheet-track[data-flow] > .sheet-tail { position: absolute; top: 100%; left: 0; right: 0; }
#screen-outlet .sheet-track[data-short]:not([data-dialog]) > [data-sheet], #overlay-outlet .sheet-track[data-short]:not([data-dialog]) > [data-sheet] { scroll-snap-align: none; }
/* A stop is a mark 1 px tall whose foot is the place (js/core/sheet.js reads its foot): WebKit takes no snap area of no
   height (Safari, the iPhone's web view), so with marks of 0 px an iPhone had no rest stop at all, and its sheets fell to
   peek after every move (the owner's C4, 2026-11-14; tests/unit/sheet-stops.test.mjs) */
.sheet-stop { position: absolute; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0; pointer-events: none; }
.sheet-stop[data-stop="rest"] { top: calc(min(100%, var(--sheet-cap)) - 1px); scroll-snap-align: end; scroll-snap-stop: always; }
/* a sheet longer than the screen: the browser snaps a finger back to open rather than let it scroll on inside the sheet,
   so its end is a stop of its own, where the foot row stands under the sheet's last row (on a shorter sheet: open) */
.sheet-stop[data-stop="end"] { top: calc(100% - 1px); scroll-snap-align: end; }
/* a block kept in view at every stop ([data-sheet-keep], C4's driver): the lowest stop is the mark right under it, in the
   sheet's flow (its 1 px taken back above it), and the track's own start is no stop then (sheet.js puts data-keep on the
   track while the block shows: "peek" while the mark lies above rest's, "rest" when it lies at or under it, and the mark is
   rest itself, the line at --sheet-cap no stop: C4.forsenad's delay card over the driver); past open, scrolled on, the
   block stays at the sheet's top under --sheet-open. The mark reaches the home indicator's height further down (as
   --sheet-peek does on C1), its margin taking it back: lowered, the block stands above the indicator, not under it */
.sheet-stop[data-stop="peek"] { position: relative; flex: none; height: calc(1px + var(--safe-bottom, 0px)); margin: -1px 0 calc(0px - var(--safe-bottom, 0px)) !important; }
.sheet-track[data-keep] > [data-sheet] > .sheet-stop[data-stop="peek"] { scroll-snap-align: end; }
.sheet-track[data-keep] > .sheet-gap { scroll-snap-align: none; }
.sheet-track[data-keep="rest"] > [data-sheet] > .sheet-stop[data-stop="peek"] { scroll-snap-stop: always; }
.sheet-track[data-keep="rest"] > [data-sheet] > .sheet-stop[data-stop="rest"] { scroll-snap-align: none; }
#screen-outlet .sheet-track:not([data-flow]):not([data-dialog]) > [data-sheet] > [data-sheet-keep] { position: sticky; top: var(--sheet-open); z-index: 1; }
/* the handle: the design's bar, a real control (tap: the next stop; arrows: a stop up or down) with a finger-sized reach */
#screen-outlet button[data-sheet-handle], #overlay-outlet button[data-sheet-handle] {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
button[data-sheet-handle]::before { content: ''; position: absolute; inset: -16px -48px; }
button[data-sheet-handle]:focus-visible { outline: 2px solid #c084fc; outline-offset: 6px; }
/* the row with the sheet's main action stays on screen at every stop. Under it, not a band of solid colour with a hard top
   edge (owner-notes 31: «Svep för att gå online» stood on a black band on every page) but the sheet's own colour as a
   material: translucent, blurred, fading in over 24 px above the row and running past the safe area to the screen's foot,
   so what scrolls under it softens away (Apple's scroll edge). Solid under reduced transparency. */
#screen-outlet .sheet-track [data-sheet-foot], #overlay-outlet .sheet-track [data-sheet-foot] {
  position: sticky;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 3;
  isolation: isolate;
}
#screen-outlet .sheet-track [data-sheet-foot]::before, #overlay-outlet .sheet-track [data-sheet-foot]::before,
#screen-outlet [data-foot-material]::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -16px;
  right: -16px;
  top: -24px;
  bottom: calc(-24px - env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: color-mix(in srgb, var(--sheet-bg, var(--sys-raised)) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
}
/* a fixed bottom bar of a page (CF7's «Fortsätt till foto», CP1's): the same material, so no line and no band */
#screen-outlet [data-foot-material] { background: transparent !important; border-top-color: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; isolation: isolate; }
#screen-outlet [data-foot-material]::before { left: 0; right: 0; bottom: 0; --sheet-bg: var(--sys-base); }
@media (prefers-reduced-transparency: reduce) {
  #screen-outlet .sheet-track [data-sheet-foot]::before, #overlay-outlet .sheet-track [data-sheet-foot]::before,
  #screen-outlet [data-foot-material]::before { background: var(--sheet-bg, var(--sys-raised)); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* a control standing on the map just above the sheet (locate, recenter; a row: the ride's progress) rides with it, clear
   of the map's credit line (on the right 30 px up, over a line on the left 14 px), and is gone at open */
#screen-outlet .sheet-track [data-sheet-float], #overlay-outlet .sheet-track [data-sheet-float] {
  position: absolute;
  top: auto;
  bottom: calc(100% + 30px);
  right: 14px;
  left: auto;
  margin: 0;
  z-index: 2;
  transform: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}
#screen-outlet .sheet-track [data-map-credit~="left"] > [data-sheet-float]:not([data-sheet-float="row"]) { bottom: calc(100% + 14px); }
#screen-outlet .sheet-track [data-sheet-float="left"] { left: 14px; right: auto; }
#screen-outlet .sheet-track [data-sheet-float="row"] { left: 0; right: 0; }
/* a row that carries the map's credit itself (CF4's progress) stands just over the sheet, the line above it */
#screen-outlet .sheet-track [data-sheet]:not([data-map-credit]) > [data-sheet-float="row"] { bottom: calc(100% + 8px); }
.sheet-track[data-state="open"] [data-sheet-float] { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* it fades and shrinks as the sheet carries it towards the top */
  html:not(.a11y-calm) .sheet-track [data-sheet-float] {
    animation: sheet-float-out linear both;
    animation-timeline: view(block 96px 0px);
    animation-range: exit 0% exit 100%;
  }
}
@keyframes sheet-float-out { to { opacity: 0; transform: scale(0.8); } }
/* a hold inside a sheet: a finger's jitter is never a pan, so the browser never cancels the hold (js/core/hold.js) */
[data-hold] { touch-action: none; }
/* ...and a long press on it never selects its words or opens the phone's text menu («Kopiera», «Markera»): the owner's
   iPhone on C2's «Håll – köp …» (test report [owner-iphone-hold], round 46); its frame (C2's #hold-button-container) too */
[data-hold], [data-hold] *, #hold-button-container, #hold-button-container * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* The same for every button of the app and every control the frame made one ([role="button"], frame.js operable), at no
   weight at all (:where), so a control's own touch-action ([data-hold], a slide, a sheet handle) or selection still wins;
   never one that holds a field (the app says it in data-holds-field, js/core/control-facts.js), and never a chat
   message, which is no button */
:where(:is(button, [role="button"]):not([data-holds-field], [data-holds-editable])) {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
/* a row's drag handle (HP4's packages, add-ons and moments): the finger moves the row, never the page */
[data-drag-handle] { touch-action: none; }
/* a dialog sheet: where the design draws it; dragged down it follows, past 30 % it closes (sheet.js), never snaps */
#screen-outlet .sheet-track[data-dialog], #overlay-outlet .sheet-track[data-dialog] { scroll-snap-type: none; scroll-padding-top: 0; }
/* a sheet gliding in (.sheet-entrance): its track snaps again once it is in place (sheet.js glideIn), never to where its
   stops stood mid-glide */
#screen-outlet .sheet-track[data-gliding], #overlay-outlet .sheet-track[data-gliding] { scroll-snap-type: none; }
/* a sheet the script moves under a finger (an iPhone, sheet.js followFinger): no snap while the finger holds it and until
   it has come to its stop, or the browser would put each frame's scroll back on a stop. It outweighs a screen's own snap
   (CP1's proximity) */
#screen-outlet .sheet-track[data-held]:not([data-dialog]), #overlay-outlet .sheet-track[data-held]:not([data-dialog]) { scroll-snap-type: none; }
.sheet-pad { flex: none; height: 100%; }
#screen-outlet .sheet-track[data-dialog] > [data-sheet], #overlay-outlet .sheet-track[data-dialog] > [data-sheet] { inset: auto; margin-left: 0; margin-right: 0; margin-bottom: 0; scroll-snap-align: none; }
/* swipes a design asks for (js/core/swipe.js): the other axis stays the browser's */
[data-swipe-up], [data-swipe-down] { touch-action: pan-x; }
[data-swipe-left], [data-swipe-right] { touch-action: pan-y; }
/* swipe back (js/core/swipe-back.js): a pan that starts sideways stays with the page, one that starts up or down is the
   browser's scroll. On each screen, overlay and scroller that only goes up and down; a sideways scroller keeps its own pan
   (the browser reads touch-action up to the nearest scroller), and a page zoomed in keeps every pan. pinch-zoom where the
   browser knows it, pan-y alone where it does not; at no weight, so a control's or a design's own touch-action wins */
:where(html:not([data-zoomed])) :where(#screen-outlet [data-screen], #overlay-outlet > [data-overlay], .sheet-track, [data-screen="B2"] .b2-scroll,
  :is(#screen-outlet, #overlay-outlet) :is(.overflow-y-auto, .overflow-y-scroll):not(.overflow-x-auto, .overflow-x-scroll)) {
  touch-action: pan-y;
  touch-action: pan-y pinch-zoom;
}
/* the page while it follows the finger: the outlet holds still over the viewport and moves (its screen scrolled to where
   the window was, so what is fixed in it stays where it stood), over a shade */
html[data-swiping="page"] #screen-outlet {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--sys-base);
  box-shadow: 0 0 28px rgb(0 0 0 / 0.35);
}
/* (the screen on show: the outlet's own, or in its pane's slot, display: contents on a phone; never a variant's rows in it) */
html[data-swiping="page"] #screen-outlet [data-screen]:not([data-screen] [data-screen]) { position: relative; height: 100%; min-height: 0; overflow: hidden; }
.swipe-back-shade { display: none; }
html[data-swiping="page"] .swipe-back-shade { display: block; position: fixed; inset: 0; z-index: 0; background: #000; opacity: 0.32; pointer-events: none; }
html[data-swiping="overlay"] #overlay-outlet > [data-overlay] { box-shadow: 0 0 28px rgb(0 0 0 / 0.35); }

/* Each screen's stops (plan D11). peek: how much of the sheet shows lowered; cap: the most it shows at rest (its content
   if shorter); open: where its top stops when raised (below a header that stays over it); bg: the colour behind its foot
   row. The map screens of a ride and an order: peek 140-160, cap 35-40 % of the screen, open at the top. */
#screen-outlet [data-screen="B1"], #screen-outlet [data-screen="B1.laddar"], #screen-outlet [data-screen="B1.offline"],
#screen-outlet [data-screen="B1.plats-av"], #screen-outlet [data-screen="B1.utanfor-omrade"] {
  --sheet-peek: 136px; --sheet-cap: calc(100cqh - 440px); --sheet-bg: #0e121e;
}
/* B1's sheet follows the finger on an iPhone (the owner, 2026-11-09: the list of all the services «takes only three taps, top,
   middle, bottom»: it never followed a drag there, only the handle's tap moved it from stop to stop). iOS never scrolls a
   scroll box that takes no touch itself (the track's pointer-events: none, so the map above the sheet pans) from a part of it
   that does (the sheet): WebKit bug 183870, open since iOS 11. It does when that part is a scroll box of its own, sideways,
   with something to scroll: one pixel, so the finger's upward drag goes on to the track. iOS only (-webkit-touch-callout is
   iOS WebKit's), where Chrome on Android and the desktop browsers already scroll the track. The pixel is at the reading
   start's far side, so it is there to scroll in Arabic too; nothing moves on screen (tests/unit/home-sheet-ios-drag.test.mjs) */
@supports (-webkit-touch-callout: none) {
  #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sheet-track > [data-sheet] > .sys-b1-sheet-body {
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-x: none;
    scrollbar-width: none;
  }
  #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sheet-track > [data-sheet] > .sys-b1-sheet-body::-webkit-scrollbar { display: none; }
  #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sheet-track > [data-sheet] > .sys-b1-sheet-body::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: calc(100% + 1px);
    height: 1px;
    pointer-events: none;
  }
}
/* The same for any sheet whose content lies in one body ([data-sheet-body], js/core/sheet.js: CP1's and YP3's, the owner on
   2026-11-10: «the list cannot be pulled up at all»). The body holds all of the sheet, its handle and padding included, so
   a finger anywhere on the sheet starts in it; the sheet's stops and floats stay outside it, in the track's snap */
@supports (-webkit-touch-callout: none) {
  #screen-outlet .sheet-track:not([data-dialog]) > [data-sheet] > [data-sheet-body] {
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-x: none;
    scrollbar-width: none;
  }
  #screen-outlet .sheet-track:not([data-dialog]) > [data-sheet] > [data-sheet-body]::-webkit-scrollbar { display: none; }
  #screen-outlet .sheet-track:not([data-dialog]) > [data-sheet] > [data-sheet-body]::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: calc(100% + 1px);
    height: 1px;
    pointer-events: none;
  }
}
/* C1 (where to): the search and the quick picks rest where the design draws them, under the 140 px of map */
#screen-outlet [data-screen="C1"] { --sheet-peek: 140px; --sheet-cap: calc(100cqh - 132px); --sheet-bg: #0d1018; }
/* C1's result row (round 15): a clock for a place taken before («Senaste resmål»), a pin for a search's answer */
#screen-outlet :is([data-screen="C1"], [data-screen="C1.ny"]) [data-list="address-results"] [data-item]:not([data-kind="recent"]) [data-part="icon-recent"],
#screen-outlet :is([data-screen="C1"], [data-screen="C1.ny"]) [data-list="address-results"] [data-item][data-kind="recent"] [data-part="icon-place"] { display: none; }
/* C1.karta (pick on the map): the pin stands in the middle of the map a person sees, which is the camera's centre (the
   sheet's inset is its padding, js/map/map.js); the sheet is never shorter than its rest, so rest is one known height */
#screen-outlet [data-screen="C1.karta"] { --sheet-peek: 140px; --sheet-cap: calc(42dvh + 12px); --sheet-bg: #0d1018; }
#screen-outlet [data-screen="C1.karta"] .sheet-track > [data-sheet] { min-height: var(--sheet-cap); }
#screen-outlet [data-screen="C1.karta"] [data-purpose="pin"] { bottom: var(--sheet-cap); transition: bottom 0.25s ease; }
#screen-outlet [data-screen="C1.karta"]:has(.sheet-track[data-state="peek"]) [data-purpose="pin"] { bottom: var(--sheet-peek); }
#screen-outlet [data-screen="C2"], #screen-outlet [data-screen="C4"], #screen-outlet [data-screen="C4.foraren-avbokade"],
#screen-outlet [data-screen="C4.forsenad"], #screen-outlet [data-screen="C4.ratt-bil"], #screen-outlet [data-screen="C4.ratt-bil-larm"],
#screen-outlet [data-screen="C5"], #screen-outlet [data-screen="C5.offline"],
#screen-outlet [data-screen="CF2.missad-forfragan"], #screen-outlet [data-screen="CF2.tagen"], #screen-outlet [data-screen="CF3.kund-avbokade"],
#screen-outlet [data-screen="CF4"], #screen-outlet [data-screen="CF4.offline-under-korning"], #screen-outlet [data-screen="CA1"],
#screen-outlet [data-screen="D5"], #screen-outlet [data-screen="D5.forsenad"], #screen-outlet [data-screen="CF4.till-kund"] {
  --sheet-peek: 150px; --sheet-cap: 40cqh;
}
#screen-outlet [data-screen="C2"] { --sheet-bg: var(--sys-raised); }
/* C2 at rest shows the route card whole above its foot: since the cancellation terms joined the foot over the hold
   (23e58df26, about 140-160 px), 40 % of a 780 px phone put them over the destination's «Ändra», and at 667 px over both
   rows (owner-notes 31: the owner's phone is about 360 px wide). The card ends about 200 px below the sheet's top, so the
   sheet rests at 390 px where the map keeps 260 px or more (taxi-rider-change-address-c2) */
#screen-outlet [data-screen="C2"] { --sheet-cap: max(40cqh, min(390px, calc(100cqh - 260px))); }
/* C5 and C5.offline (round 15): at 800 px the trip's sheet rests whole (the price, the dock with SOS, «Visa prisbevis»; 40 %
   cut the dock's foot off), the map keeping at least 420 px; what makes it taller (the music, the Jam, a proposal) scrolls
   under its foot, which stays */
#screen-outlet [data-screen="C5"], #screen-outlet [data-screen="C5.offline"] { --sheet-cap: max(40cqh, calc(100cqh - 420px)); }
/* C4.framme (the driver at the pickup): the wait card and the car rest in view, and the map keeps 280 px over the sheet, so
   the car centred in it stands under the header's pills, as the design draws it (c-taxi.js headerRoom) */
#screen-outlet [data-screen="C4.framme"], #screen-outlet [data-screen="C4.framme-vantar"] { --sheet-peek: 150px; --sheet-cap: calc(100cqh - 280px); }
/* C4 and its states (round 15): the header floats over the live map (absolute top-0 in the templates), so the map runs up
   under it on the shared scroll-edge fade instead of a black band; their generated CSS has no top-0 or inset-x-0 */
#screen-outlet [data-screen^="C4"] header[data-purpose="top-navigation"][class*="top-0"] { top: 0; left: 0; right: 0; }
/* The rider's ride, the car on its way and in the car (the owner, 2026-11-14, his iPhone: «raised all the way up, the
   driver's card is gone; and how do I go back a step?»). Raised, the sheet rose to the clock (--sheet-open 0, and the
   safe area css/safe-area.css adds), over the header: «Hem» (C4) and «Minimera» (C5), the one way back, were under it, and
   the cards went up under the header's glass. Now the header stays over the sheet at every stop, and the sheet's top stop
   is 8 px under the header's row (its row and padding as css/safe-area.css draws them: pt-12's max(the inset + 8 px, 48 px)
   and 44 px; C5's pt-3, 12 px and its 44 px button): «Hem» goes home and the ride goes on (c-taxi.js liveActions back:
   nav.home; the home's pill brings the rider back), and the handle lowers the sheet to the map again (a chevron at the top,
   below). tests/unit/layout/ride-sheet.test.mjs, tests/flows/taxi/taxi-ride-sheet-card.mjs */
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"], [data-screen="C4.foraren-avbokade"], [data-screen="C4.framme"],
  [data-screen="C4.framme-vantar"], [data-screen="C4.ratt-bil"], [data-screen="C4.ratt-bil-larm"]) {
  --sheet-open: calc(max(0.5rem, 3rem - var(--safe-top, 0px)) + 52px);
}
#screen-outlet [data-screen="C5"] { --sheet-open: 64px; }
#screen-outlet :is([data-screen^="C4"], [data-screen="C5"]) [data-sheet-host] > header[class*="top-0"] { z-index: 31; }
/* ...and a card in the sheet draws no blur of its own: the sheet under it is 95 % opaque or more, so there is nothing to blur,
   and an iPhone drew the driver's card, a layer of its own in a scrolled track, as a dark empty box once the sheet rose (the
   owner's screenshot: the arrival line, then nothing, then the code). The card keeps its colour; C5's sheet (78 %) keeps its */
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"], [data-screen="C4.foraren-avbokade"], [data-screen="C4.framme"],
  [data-screen="C4.framme-vantar"]) .sheet-track > [data-sheet] * { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* The driver's card is the block the sheet keeps in view ([data-sheet-keep], js/core/sheet.js): lowered, the sheet shows
   all of it; scrolled past its top (a sheet longer than the screen), it stays under the header while the rest goes under
   it, so it is drawn opaque: the card's own colour over the sheet's, as it looks now (by day theme-light.css's white, 95 %) */
html:not([data-apple-theme="light"]) #screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) .sheet-track > [data-sheet] > [data-sheet-keep].glass-card {
  background: linear-gradient(rgba(19, 21, 34, 0.82), rgba(19, 21, 34, 0.82)), #171a2a;
}
html[data-apple-theme="light"] #screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) .sheet-track > [data-sheet] > [data-sheet-keep].glass-card { background: rgb(255 255 255); }
/* At the top the handle is a chevron down: a tap lowers the sheet to rest, the map back over it */
html #screen-outlet :is([data-screen^="C4"], [data-screen="C5"]) .sheet-track[data-state="open"]:not([data-short]) button[data-sheet-handle] { background: transparent !important; }
#screen-outlet :is([data-screen^="C4"], [data-screen="C5"]) .sheet-track[data-state="open"]:not([data-short]) button[data-sheet-handle]::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; box-sizing: border-box;
  border: solid var(--sheet-chevron, rgba(203, 213, 225, 0.8)); border-width: 0 2.5px 2.5px 0; border-radius: 1px;
  transform: translate(-50%, -70%) rotate(45deg); pointer-events: none;
}
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet :is([data-screen^="C4"], [data-screen="C5"]) .sheet-track button[data-sheet-handle] { --sheet-chevron: rgba(15, 23, 42, 0.45); }
/* CF2 (the offer): «Acceptera» and «Avböj» stand fixed over the screen's foot (about 155 px), so the sheet keeps its tier
   row above them lowered, and rests where the design draws it, under the map */
#screen-outlet [data-screen="CF2"], #screen-outlet [data-screen="CF2.leverans"] { --sheet-peek: 210px; --sheet-cap: max(210px, calc(100cqh - 370px)); }
#screen-outlet [data-screen="CF4"], #screen-outlet [data-screen="CF4.offline-under-korning"], #screen-outlet [data-screen="CF4.till-kund"] { --sheet-bg: #0f111a; }
/* C2's forms over its map: a person filling them in sees them as drawn */
#screen-outlet [data-screen="C2.at-nagon-annan"] { --sheet-peek: 150px; --sheet-cap: 62cqh; }
#screen-outlet [data-screen="C2.upphamtningsplats"] { --sheet-peek: 150px; --sheet-cap: 54cqh; }
/* C8 and C14 keep a header over the map: the sheet opens to its foot, never under it */
#screen-outlet [data-screen="C8"] { --sheet-peek: 150px; --sheet-cap: 40cqh; --sheet-open: 56px; --sheet-bg: #111318; }
#screen-outlet [data-screen="C14"], #screen-outlet [data-screen="C14.framme"] { --sheet-peek: 150px; --sheet-cap: 40cqh; --sheet-open: 64px; }
/* CP1 and YP3, the taxi company's and the freight company's home (the owner, 2026-11-10: «the list cannot be pulled up»,
   tests/unit/layout/fleet-sheet.test.mjs). Their bar fixed at the foot («Tilldela snabborder», «Inkommande uppdrag»: 107 to
   172 px) covered the screen's foot the stops were measured from, so lowered YP3's sheet went wholly behind it, and open
   was a guess at the header (140 px), under it once the iPhone's clock pads it. The host is a grid: the header, the map
   from under it to the screen's foot, and the bar in its own row over the map's last part. The sheet's track lies between
   the header and the bar (an absolute grid child takes both of its lines: an auto end is the grid's own edge), so peek
   (150 px; 30 % on a short phone, where YP3's bar leaves 343 px and peek would be all but half), rest (half) and open (8 px
   under the header) are what shows between them, whatever the bar holds (Arabic makes it taller), whatever the safe areas
   are; the header and the bar pad for the clock and the home indicator themselves */
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) { --sheet-peek: min(150px, 30cqh); --sheet-cap: 50cqh; --sheet-open: 8px; }
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) [data-sheet-host] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-bottom: 0;
}
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) [data-sheet-host] > header { grid-area: 1 / 1; padding-top: calc(0.75rem + var(--safe-top, 0px)); }
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) [data-sheet-host] > [data-sheet-map] { grid-area: 2 / 1 / 4 / 2; }
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) [data-sheet-host] > .sheet-track { grid-area: 2 / 1 / 3 / 2; }
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) [data-sheet-host] > footer[data-foot-material] {
  grid-area: 3 / 1;
  position: relative;
  bottom: auto;
  padding-bottom: max(1.25rem, calc(0.5rem + var(--safe-bottom, 0px)));
}
/* its drivers (its jobs) run on past the screen once it is open: the finger scrolls on from the open stop to the last one,
   which a mandatory snap held back; let go of between two stops, sheet.js brings it to one (settleStop) */
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) .sheet-track { scroll-snap-type: y proximity; }
/* CP1's side menu («Mitt taxibolag»): the company's own switches («Prisförslag», «Våra förare tar Spar-resor», the attestation),
   «Byt roll» and «Logga ut» make it taller than a phone (1359 px on 390 x 844), and the fixed menu did not scroll, so what lay
   under the screen's foot could not be reached at all (the owner's test page, new-taxi-spar-card). It scrolls inside the
   screen's height, never the page behind it, and its last row ends above the home indicator */
#screen-outlet :is([data-screen="CP1"], [data-screen^="CP1."]) #navigation-drawer {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(1rem + var(--safe-bottom, 0px));
}
/* «Visa hela flottan»'s row spans the map just above the sheet: its empty part is the map's (a pan there dragged the sheet,
   or on an iPhone did nothing), its button stays a button */
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) .sheet-track [data-sheet-float="row"] { pointer-events: none; }
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) .sheet-track [data-sheet-float="row"] > * { pointer-events: auto; }
/* what a drag costs each frame. A card in the sheet keeps its colour but no blur of its own: its backdrop is the sheet,
   94 % opaque, so there is nothing to blur, but WebKit blurs each one again every frame the sheet moves. And the green
   dots' pulse (a box-shadow, painted again every frame on the main thread, idle or not) waits while the sheet moves */
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]) .sheet-track [data-sheet] .glass-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
#screen-outlet :is([data-screen="CP1"], [data-screen="YP3"]):has(.sheet-track[data-dragging]) .neon-pulse-green { animation-play-state: paused; }
/* their menu (#navigation-drawer, fixed at the screen's height) scrolls in itself, as the driver's and B2's do: CP1's cards
   (Musiklicens, Prisförslag, Spar, «Intyg om oberoende trafik») made it 1389 px on an 844 px phone (Arabic 1538) and nothing
   scrolled, so «Spara intyg» lay past the screen's foot (nov4-exclusivity-attestation; openMusicLicence's scrollIntoView
   had nothing to scroll either). The page behind keeps still while it does */
#screen-outlet :is([data-screen="CP1"], [data-screen^="CP1."], [data-screen="YP3"]) #navigation-drawer { overflow-y: auto; overscroll-behavior: contain; }
/* Frakt's booking, Y1 «Ny frakt» and Y3 «Fordon & pris» (the owner, 2026-11-12: «the sheet in the freight section does not
   work and the start and the end do not show»): the sheet was a block of the page over a 380 px strip of map, so 56 px of
   map showed, both markers lay under the form and no finger moved anything. Now a real sheet (js/core/sheet.js) over a map
   that fills the screen: at rest the map shows down to 280 px with the loading, the delivery and the line between them;
   lowered, the whole map; raised, the form stands under the bar (tests/flows/freight/freight-map-places.mjs) */
#screen-outlet :is([data-screen="Y1"], [data-screen="Y3"]) { --sheet-peek: 150px; --sheet-cap: calc(100cqh - 280px); --sheet-open: calc(56px + var(--safe-top, 0px)); --sheet-bg: #0e121e; }
#screen-outlet :is([data-screen="Y1"], [data-screen="Y3"]) [data-sheet-host] > .map-container[data-sheet-map] { pointer-events: auto; }
/* Y1 on a tablet (the owner, 2026-11-13: «the map stays wide and the shipping companies stand on it as pins … understandable,
   expressing the company's image, stunning»; js/flows/freight/frakt-carriers.js). Each carrier a pill at its place: its
   initials in the brand's violet disc and its name, with a stem to the point. The pills are solid, not blurred: MapLibre moves
   each with a transform every frame of a pan, and a backdrop blur under a dozen moving boxes costs frames; the one card a tap
   opens is the glass layer (depth: the card over the pills over the map). MapLibre owns the pill's own transform, so the
   press and the arrival animate its children and its opacity only. A phone never shows any of it. */
#screen-outlet [data-screen="Y1"] .frk-pin { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 230px; padding-block: 4px; padding-inline: 4px 14px;
  border-radius: 22px; background: rgba(19, 17, 34, 0.92); border: 1px solid rgba(208, 188, 255, 0.24); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
  color: #F4F1FF; cursor: pointer; text-align: start; -webkit-tap-highlight-color: transparent; animation: frk-pin-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
/* the stem: a square turned 45°, its lower half shown (the same both ways, so no side of its own), and no touch of its own */
#screen-outlet [data-screen="Y1"] .frk-pin::after { content: ""; position: absolute; inset-inline-start: calc(50% - 5px); bottom: -5px; width: 10px; height: 10px;
  transform: rotate(45deg); background: rgba(19, 17, 34, 0.92); border: 1px solid rgba(208, 188, 255, 0.24); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
#screen-outlet [data-screen="Y1"] .frk-pin > * { transition: transform 120ms ease-out; }
#screen-outlet [data-screen="Y1"] .frk-pin:active > * { transform: scale(0.96); }
#screen-outlet [data-screen="Y1"] .frk-pin-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #A78BFA, #7C3AED); color: #FFFFFF; font: 700 13px/1 var(--font-display, system-ui), system-ui; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
#screen-outlet [data-screen="Y1"] .frk-pin-text { display: flex; flex-direction: column; min-width: 0; }
#screen-outlet [data-screen="Y1"] .frk-pin-name { font: 600 13px/1.2 var(--font-display, system-ui), system-ui; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
#screen-outlet [data-screen="Y1"] .frk-pin-sub { font: 500 11px/1.25 system-ui; color: #B8B2CC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
#screen-outlet [data-screen="Y1"] .frk-pin[data-demo] .frk-pin-mark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 2px rgba(245, 158, 11, 0.7); }
#screen-outlet [data-screen="Y1"] .frk-pin--cluster .frk-pin-mark { background: #FFFFFF; color: #6D28D9; font-size: 15px; }
#screen-outlet [data-screen="Y1"] .frk-pin-card { width: 288px; padding: 14px; border-radius: 22px; background: rgba(20, 18, 36, 0.78); color: #F4F1FF;
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); animation: frk-card-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: 50% 100%; z-index: 3; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-head { display: flex; align-items: center; gap: 10px; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-title { flex: 1; min-width: 0; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-name { font: 700 16px/1.25 var(--font-display, system-ui), system-ui; letter-spacing: -0.015em; overflow-wrap: anywhere; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-meta { margin-top: 2px; font: 500 12px/1.3 system-ui; color: #B8B2CC; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-block: -8px; margin-inline: 0 -8px;
  border-radius: 50%; color: #B8B2CC; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-classes { margin-top: 10px; font: 500 12px/1.45 system-ui; color: #DCD6EE; }
#screen-outlet [data-screen="Y1"] .frk-pin-card-cta { display: block; width: 100%; min-height: 44px; margin-top: 12px; border-radius: 14px; color: #FFFFFF;
  font: 600 14px/1 var(--font-display, system-ui), system-ui; background: linear-gradient(90deg, #8B5CF6, #7C3AED); box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35); }
#screen-outlet [data-screen="Y1"] .frk-pin-card-cta:active { transform: scale(0.98); }
#screen-outlet [data-screen="Y1"] .frk-map-empty { position: absolute; z-index: 2; top: calc(var(--safe-top, 0px) + 72px); inset-inline-end: 16px; max-width: min(320px, calc(100% - 32px));
  padding: 10px 14px; border-radius: 16px; background: rgba(20, 18, 36, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12); color: #DCD6EE; font: 500 13px/1.35 system-ui; pointer-events: none; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] .frk-pin { background: rgba(255, 255, 255, 0.96); border-color: rgba(109, 40, 217, 0.22); }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] .frk-pin::after { background: rgba(255, 255, 255, 0.96); border-color: rgba(109, 40, 217, 0.22); pointer-events: none; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] .frk-pin { color: #1E1B2E; box-shadow: 0 6px 18px rgba(30, 27, 46, 0.18); }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] .frk-pin-sub { color: #5B5670; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] :is(.frk-pin-card, .frk-map-empty) { background: rgba(255, 255, 255, 0.82); color: #1E1B2E; border-color: rgba(30, 27, 46, 0.1); }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] :is(.frk-pin-card-meta, .frk-pin-card-close) { color: #5B5670; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y1"] .frk-pin-card-classes { color: #3B3650; }
@keyframes frk-pin-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes frk-card-in { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { #screen-outlet [data-screen="Y1"] :is(.frk-pin, .frk-pin-card) { animation-duration: 1ms; } }
@media (prefers-reduced-transparency: reduce) { #screen-outlet [data-screen="Y1"] :is(.frk-pin-card, .frk-map-empty) { background: #14122A; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 639.98px) { #screen-outlet [data-screen="Y1"] :is(.frk-pin, .frk-pin-card, .frk-map-empty) { display: none !important; } }
/* Y3's big rigs (the owner, 2026-11-13: «add a long truck so I can see how it looks»): one picture per long class under its card,
   all drawn to one scale (js/stitch/screens/freight/Y3.js's sprite), so the A-dubbel fills the card and a semi half of it; the
   front leads the way the language reads */
/* a class's name and its line wrap rather than lose their end («… 25,25 m» is the part that tells the rigs apart) */
#screen-outlet [data-screen="Y3"] :is([data-bind="class_label"], [data-bind="class_line"], [data-bind="label"], [data-bind="line"]).truncate { white-space: normal; overflow-wrap: break-word; text-overflow: clip; }
/* the price column beside the chosen class: at most about half the row, its notes wrapping (in Arabic «inkl. moms …» and the
   surcharges ran so long that the class's name was left 8 px) */
#screen-outlet [data-screen="Y3"] .shrink-0:has(> [data-bind="price_text"]) { flex-shrink: 1; min-width: 0; max-width: 42%; }
#screen-outlet [data-screen="Y3"] [data-bind="price_note"].truncate { white-space: normal; overflow-wrap: break-word; text-overflow: clip; }
/* «Ändra» beside the route: a 44 px target without moving the row */
#screen-outlet [data-screen="Y3"] button[data-action="edit-route"] { position: relative; }
#screen-outlet [data-screen="Y3"] button[data-action="edit-route"]::before { content: ""; position: absolute; inset: -15px -10px; }
#screen-outlet [data-screen="Y3"] .frk-class-art { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
#screen-outlet [data-screen="Y3"] .frk-class-art > svg { display: block; width: 100%; height: auto; aspect-ratio: 6 / 1; }
html[dir="rtl"] #screen-outlet [data-screen="Y3"] .frk-class-art > svg { transform: scaleX(-1); }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y3"] .frk-class-art { border-top-color: rgba(15, 23, 42, 0.08); }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y3"] .frk-class-art.text-accent { color: #6D28D9; }
:is(html[data-apple-theme="light"], html[data-theme="light"]) #screen-outlet [data-screen="Y3"] .frk-class-art.text-text-4 { color: #64748B; }
/* Frakt's follow pages, Y5 «Följ frakten» and the consignee's Y11 (the same order of the owner's): each drew a handle on a
   card no finger moved, a block of the page over the map. A real sheet with Y1's stops, opened to under the page's header
   (its back button ends at 60 px): lowered, the whole road shows (tests/flows/freight/freight-sheet-finger.mjs) */
#screen-outlet :is([data-screen="Y5"], [data-screen="Y11"]) { --sheet-peek: 150px; --sheet-cap: calc(100cqh - 280px); --sheet-open: calc(64px + var(--safe-top, 0px)); --sheet-bg: #0e121e; }
/* YF5.signera, the QR code's dialog sheet over the receipt page: the page behind the dimmed backdrop is a screen tall and
   keeps still (it was 978 px in an 844 px screen and scrolled under the dialog) */
#screen-outlet [data-screen="YF5.signera"] { height: 100dvh; overflow: hidden; }
/* CF3 (to the customer): at rest the fare and the code box show whole (the owner's driver sweep, S4, which
   taxi-driver-presentation.mjs checks; the plan's 25 % would hide both under the sheet's foot); lowered, the road shows;
   raised, the sheet stops under «Navigera» and the header */
#screen-outlet [data-screen="CF3"], #screen-outlet [data-screen="CF3.restaurang"] { --sheet-peek: 140px; --sheet-cap: 62cqh; --sheet-open: 96px; --sheet-bg: #10131c; }
/* CF1, offline: the swipe to go online and what stands in its way; online and waiting: half the screen (L3's sheets) */
#screen-outlet [data-screen="CF1"] { --sheet-peek: 132px; --sheet-cap: 176px; }
#screen-outlet [data-screen="CF1.online-vantar"], #screen-outlet [data-screen="CF1.gps-av"], #screen-outlet [data-screen="CF1.ingen-anslutning"],
#screen-outlet [data-screen="CF1.kurir"] {
  --sheet-peek: 120px; --sheet-cap: 52cqh;
}
/* the dialogs keep the height their design gives them (C2.preferenser 56 px under the top, Q1 under its picture,
   CF13.detalj under its margin) */
#screen-outlet [data-screen="C2.preferenser"] .sheet-track > [data-sheet] { height: calc(100cqh - 56px); }
#overlay-outlet [data-screen="Q1"] .sheet-track > [data-sheet], #screen-outlet [data-screen="Q1"] .sheet-track > [data-sheet] { height: calc(100cqh - 304px); }
#screen-outlet [data-screen="CF13.detalj"] .sheet-track > [data-sheet] { height: calc(100cqh - 1.5rem); }

/* The designs are drawn on a 390px canvas. On a phone a screen takes the phone's width, narrower (360, 375)
   or wider (412, 430): a canvas fixed at 390 cut the edge off a 360 phone and left an empty strip beside it
   on a 430 one, so the app did not look like it was made for the phone it was on. */
#screen-outlet [class~="w-[390px]"],
#overlay-outlet [class~="w-[390px]"] { width: 100% !important; }
/* The same for a screen drawn at the canvas's 884 px height (the waiting screen's three templates, CF1.online-vantar,
   CF1.ingen-anslutning and CF1.gps-av: the map over the sheet): it is as high as the phone's visible area, so «Gå
   offline», the sheet's last control, is on screen behind Safari's bars (390 × 664) instead of below them, and the page
   keeps one height when the state changes. The map keeps its designed share (52 %); the sheet scrolls inside itself (its
   own overflow-y-auto). PLAN-V3 TXD.14 audit, CF1W-FIXED-884; the two trouble states from the review of the driver wave. */
#screen-outlet [data-screen="CF1.online-vantar"] [class~="h-[884px]"],
#screen-outlet [data-screen="CF1.ingen-anslutning"] [class~="h-[884px]"],
#screen-outlet [data-screen="CF1.gps-av"] [class~="h-[884px]"],
#screen-outlet [data-screen="CF1.kurir"] [class~="h-[884px]"] { height: 100dvh !important; }
/* CF1 offline: the swipe to go online is the screen's one action, drawn at the bottom of an 884 px canvas. On a phone
   whose visible area is shorter than the screen's own content (Safari with its bars, 390 × 664) the live map gives up
   the difference, down to 200 px, so the swipe is on screen without scrolling; from about 744 px up the map keeps its
   designed 320 px. PLAN-V3 TXD.14 audit, CF1-SLIDER-FOLD (the audit's «let the map shrink to the remaining height»). */
#screen-outlet [data-screen="CF1"] [class~="h-[320px]"] { height: clamp(200px, calc(100dvh - 424px), 320px) !important; }
/* C3.inga-bilar and C3.hoj-priset: with round 46's sticky [data-sheet-foot] («Avbryt resa» and cancel_rule, ~100 px) and
   route-line over the two «Ändra» chips, the fixed 370 px drawn map pushed «Fortsätt leta» and the first raise step under the
   sticky foot at rest on 375 × 667 and 360 × 800 phones (taxi-rider-change-address.mjs). Let [data-sheet-gap] yield height down
   to 176 px (keeping «Hem» and the pickup badge clear above the sheet), and under 740 px tall compact the decorative car art
   and top spacing while preserving the 16 px margin under route-chips for 48 × 48 reach. */
#screen-outlet :is([data-screen="C3.inga-bilar"], [data-screen="C3.hoj-priset"]) [data-sheet-gap] {
  height: clamp(176px, calc(100dvh - 530px), 370px) !important;
}
@media (max-height: 740px) {
  #screen-outlet :is([data-screen="C3.inga-bilar"], [data-screen="C3.hoj-priset"]) [data-sheet] { padding-top: 14px; }
  #screen-outlet :is([data-screen="C3.inga-bilar"], [data-screen="C3.hoj-priset"]) [data-part="no-car-head"] { margin-bottom: 10px; }
  #screen-outlet :is([data-screen="C3.inga-bilar"], [data-screen="C3.hoj-priset"]) [data-part="no-car-art"] { height: 40px; margin-bottom: 4px; }
}
/* Round 22 (2026-10-24, the owner's items 6 and 7): CF1, «Förarläge» offline, the way online made calm. Its header floats
   over the map (absolute top-0 in the template, so the round-11 rules below give it the scroll-edge fade, the 44 px glass
   menu and the capsule status) and the map fills the screen under it. The sheet shows whole at rest wherever it fits (the
   map keeps 250 px above it: the floating header and, under it, the support and locate buttons), so nothing lies under
   the slide and the foot needs no band: its material comes back only while something runs under the slide (the sheet
   lowered to peek, or a sheet taller than the room it has). Its foot clears the home bar by itself, so the sticky row
   never rides up over the tiles. */
#screen-outlet [data-screen="CF1"] {
  --sheet-peek: calc(150px + env(safe-area-inset-bottom, 0px));
  --sheet-cap: max(176px, calc(100cqh - 250px));
  /* raised, a sheet longer than the screen (360 × 640 with a card) stops under the floating header (99 px since round 46's
     title and status pill), so its handle is never under the header and the pill never over the card (taxi-driver-home-sheet) */
  --sheet-open: 100px;
}
/* ...and the header is a fade over the map, not a band: a finger on its empty parts reaches the map or the sheet under it
   (the handle of a sheet taller than the screen, raised to its end, sits there), its own controls keep theirs */
#screen-outlet [data-screen="CF1"] header.absolute { pointer-events: none; }
#screen-outlet [data-screen="CF1"] header.absolute :is(button, a, [data-action], [role="button"]) { pointer-events: auto; }
#screen-outlet [data-screen="CF1"] .sheet-track > [data-sheet] { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
#screen-outlet [data-screen="CF1"] .sheet-track[data-short] [data-sheet-foot]::before { opacity: 0; transition: opacity 200ms ease-out; }
#screen-outlet [data-screen="CF1"] .sheet-track[data-short][data-state="peek"] [data-sheet-foot]::before { opacity: 1; }
/* the slide floats: a clear glass track with a hairline edge and its own soft shadow (no violet band, no glow), the knob a
   solid violet circle lit from above (no pulse); behind the knob the track fills as it goes, with the finger (a
   scroll-driven inset on the knob's own --slide timeline, js/core/slide.js), so the slide answers all the way across */
#screen-outlet [data-screen="CF1"] [data-slide][data-purpose="online-slider"] {
  --slide-knob: 52px;
  background: var(--sys-film);
  border: 1px solid var(--sys-edge);
  box-shadow: inset 0 1px 0 var(--sys-film), 0 12px 28px -12px var(--sys-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
#screen-outlet [data-screen="CF1"] [data-slide] > [data-part="slide-fill"] {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.3));
  clip-path: inset(0 calc(100% - var(--slide-knob)) 0 0 round 999px);
}
@supports (animation-timeline: scroll()) {
  #screen-outlet [data-screen="CF1"] [data-slide] > [data-part="slide-fill"] { animation: cf1-slide-fill linear both; animation-timeline: --slide; }
}
@keyframes cf1-slide-fill { to { clip-path: inset(0 0 0 0 round 999px); } }
@media (prefers-reduced-transparency: reduce) {
  #screen-outlet [data-screen="CF1"] [data-slide][data-purpose="online-slider"] { background: var(--sys-raised-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* the summary: «Tid online» only once the server has said it, and the day's title only over the day's figures */
#screen-outlet [data-screen="CF1"] [data-part="online-stat"]:has(> [data-bind="time_online"]:is([hidden], :empty)) { display: none; }
#screen-outlet [data-screen="CF1"] [data-part="today"]:has(> [data-part="today-card"][hidden]) > [data-bind="summary_title"] { display: none; }
/* «Vila till 14:30» (the app's count says he must rest) in the rest tile's amber */
#screen-outlet [data-screen="CF1"] button[data-action="rest"][data-tone="rest"] [data-bind="rest_line"] { color: #fcd34d; }
/* what the server's answers bring in (the status, the figures, the slide) fades in rather than appearing at once; opacity
   only, never under reduced motion or «Lugnare rörelser» */
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-calm) #screen-outlet [data-screen="CF1"] :is([data-section="notice"], [data-section="next-booked"], [data-part="today-card"], [data-slide]) {
    transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1), transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  @starting-style {
    html:not(.a11y-calm) #screen-outlet [data-screen="CF1"] :is([data-section="notice"], [data-section="next-booked"], [data-part="today-card"], [data-slide]) { opacity: 0; }
  }
}
/* a design's phone column (390 or 430 px wide, centred) fills the phone up to the app's own column: on a phone wider than the
   design (the owner's Pixel 10 Pro XL is 448 px) a 430 px column left a strip down each side where the fixed glow layer showed
   past the column's own background (the flight and hotel search KS1–KS3, owner 2026-10-26: «the background is cut off») */
:is(#screen-outlet, #overlay-outlet) [data-screen]:not([data-screen="EP3.tv"]) :is(
  .app-viewport,
  .mobile-screen,
  .mobile-frame,
  .nordic-canvas,
  .phone-frame,
  .device-frame,
  [class~="max-w-[360px]"],
  [class~="max-w-[375px]"],
  [class~="max-w-[390px]"],
  [class~="max-w-[390pt]"],
  [class~="max-w-[400px]"],
  [class~="max-w-[412px]"],
  [class~="max-w-[414px]"],
  [class~="max-w-[420px]"],
  [class~="max-w-[428px]"],
  [class~="max-w-[430px]"],
  [class~="max-w-[440px]"],
  [class~="max-w-[448px]"],
  [class~="max-w-md"],
  [class~="w-[390px]"],
  [class~="w-[360px]"]
):not(.fixed),
#screen-outlet > [data-screen]:not([data-screen="EP3.tv"]) > :is(.max-w-sm, main.max-w-sm, .aurora-bg, .aurora-background, .aurora-glow):not(.fixed),
#overlay-outlet > [data-overlay] > [data-screen] > :is(.max-w-sm, main.max-w-sm, .aurora-bg, .aurora-background, .aurora-glow):not(.fixed) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto;
}

@media (max-width: 559.98px) {
  :is(#screen-outlet, #overlay-outlet) [data-screen]:not([data-screen="EP3.tv"]) .fixed:is(
    .bottom-0.left-0.right-0,
    .inset-x-0.bottom-0,
    .app-viewport,
    .mobile-screen,
    .mobile-frame,
    .nordic-canvas,
    .phone-frame,
    .device-frame,
    [class~="max-w-[360px]"],
    [class~="max-w-[375px]"],
    [class~="max-w-[390px]"],
    [class~="max-w-[390pt]"],
    [class~="max-w-[400px]"],
    [class~="max-w-[412px]"],
    [class~="max-w-[414px]"],
    [class~="max-w-[420px]"],
    [class~="max-w-[428px]"],
    [class~="max-w-[430px]"],
    [class~="max-w-[440px]"],
    [class~="max-w-[448px]"],
    [class~="max-w-md"],
    [class~="w-[390px]"],
    [class~="w-[360px]"]
  ) {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto;
  }
  #screen-outlet > [data-screen] > :is(main, div).border-x,
  #screen-outlet [data-screen] :is(.app-viewport, .mobile-screen, .mobile-frame, .nordic-canvas, .phone-frame, .device-frame) {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
  }
}

/* On a computer the app is a phone-wide column in the middle, set on the brand's dark violet instead of a
   black page; overlays (menus, sheets) stay inside the column too. */
@media (min-width: 560px) {
  html, body {
    background:
      radial-gradient(900px 520px at 50% -8%, rgba(124, 58, 237, 0.22), transparent 62%),
      radial-gradient(700px 420px at 50% 108%, rgba(59, 130, 246, 0.12), transparent 60%),
      var(--sys-canvas);
  }
  #screen-outlet {
    max-width: var(--app-col, 480px);
    margin: 0 auto;
    background: var(--sys-base);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 40px 120px var(--sys-shadow);
  }
  #overlay-outlet > [data-overlay] {
    max-width: var(--app-col, 480px);
    margin: 0 auto;
  }
  :is(#screen-outlet, #overlay-outlet) [data-screen]:not([data-screen="EP3.tv"]) .fixed:is(
    .bottom-0.left-0.right-0,
    .inset-x-0.bottom-0,
    .app-viewport,
    .mobile-screen,
    .mobile-frame,
    .nordic-canvas,
    .phone-frame,
    .device-frame,
    [class~="max-w-[360px]"],
    [class~="max-w-[375px]"],
    [class~="max-w-[390px]"],
    [class~="max-w-[390pt]"],
    [class~="max-w-[400px]"],
    [class~="max-w-[412px]"],
    [class~="max-w-[414px]"],
    [class~="max-w-[420px]"],
    [class~="max-w-[428px]"],
    [class~="max-w-[430px]"],
    [class~="max-w-[440px]"],
    [class~="max-w-[448px]"],
    [class~="max-w-md"]
  ) {
    max-width: var(--app-col, 480px);
    margin-inline: auto;
  }
}

/* A business that has no photo yet: its photo well (an <img data-part="photo"> the flow hides, or one left
   without a source) shows the brand's soft violet light instead of an empty black box. */
#screen-outlet :has(> img[data-part="photo"]:is([hidden], :not([src]), [src=""])),
#overlay-outlet :has(> img[data-part="photo"]:is([hidden], :not([src]), [src=""])) {
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(139, 92, 246, 0.34), transparent 58%),
    radial-gradient(90% 80% at 92% 100%, rgba(59, 130, 246, 0.22), transparent 60%),
    var(--sys-raised-2);
}

/* ==========================================================================
   Testkit (PLAN-TAXI TX0): only for the team's test accounts. A small tab on the
   right edge and the "Rapportera fel" dialog (js/core/testkit.js).
   ========================================================================== */
.testkit-tab {
  /* under the sheets (.support-chat 80: the report sheet, the support chat): over them at 38 % on the right edge it took the
     tap meant for a sheet's «Stäng» and opened «Rapportera fel» (test page: site-dsa-form-and-inapp-reports). Its dialog is a
     modal <dialog>, in the top layer whatever this says */
  position: fixed; right: 0; top: 38%; z-index: 79;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; border: 1px solid rgba(245, 158, 11, 0.6); border-right: 0;
  border-radius: 12px 0 0 12px; background: rgba(31, 19, 0, 0.92); color: #fde68a;
  font: 800 9px/1 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: 0.08em;
  box-shadow: -4px 6px 18px rgba(0, 0, 0, 0.45); cursor: pointer;
}
.testkit-tab__bug { font-size: 16px; line-height: 1; }
.testkit-dialog {
  width: min(92vw, 440px); max-height: 86vh; padding: 0; border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 18px; background: var(--sys-raised); color: var(--sys-label); font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.testkit-dialog::backdrop { background: var(--sys-scrim); }
.testkit-dialog *, .testkit-dialog *::before, .testkit-dialog *::after { box-sizing: border-box; }
.testkit-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.testkit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.testkit-head strong { display: block; font-size: 16px; color: var(--sys-label); }
.testkit-meta { display: block; margin-top: 2px; font-size: 12px; color: var(--sys-label-2); }
.testkit-x { background: none; border: 0; color: var(--sys-label-2); font-size: 24px; line-height: 1; cursor: pointer; }
.testkit-label { font-size: 12px; font-weight: 700; color: var(--sys-label-2); }
.testkit-form textarea {
  width: 100%; resize: vertical; min-height: 96px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--sys-edge); background: var(--sys-raised-2); color: var(--sys-label); font: inherit; font-size: 15px;
}
.testkit-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--sys-edge); color: var(--sys-label-2); font-size: 13px; cursor: pointer; }
.testkit-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.testkit-status { min-height: 18px; margin: 0; font-size: 13px; color: #fde68a; }
.testkit-foot { display: flex; justify-content: flex-end; gap: 8px; }
.testkit-btn { padding: 10px 16px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.testkit-btn--ghost { background: var(--sys-film); color: var(--sys-label); }
.testkit-btn:disabled { opacity: 0.5; }
/* the code a computer shows, typed or carried by its QR (js/core/panel-access.js, PLAN-TAXI TX1) */
.panel-login-code {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(139, 92, 246, 0.5); background: var(--sys-raised-2); color: var(--sys-label);
  font: 800 24px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; text-align: center; text-transform: uppercase;
}
/* Min resemusik (js/flows/taxi/music.js, PLAN-TAXI TX6.1): the saved music, and the Spotify link field */
.music-now { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); }
.music-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.music-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.music-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-login-code.music-link { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-align: start; text-transform: none; }
/* «Koppla Spotify» (js/flows/taxi/music.js, PLAN-V3 TXD.18): the rider's playlists, one .music-now row each */
.music-spotify { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.music-spotify .testkit-meta, .music-spotify .testkit-status { margin: 0; }
.music-lists { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.music-pick { width: 100%; min-width: 0; text-align: start; font: inherit; color: var(--sys-label); cursor: pointer; }
.music-pick[aria-current="true"] { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.22); }
.music-pick:disabled { opacity: 0.55; cursor: default; }
.music-pick .testkit-meta { white-space: normal; }
/* «Navigera med» (js/flows/taxi/nav-app.js, PLAN-V3 TXD.4): one app per row, the one chosen now marked */
.nav-app-list { display: flex; flex-direction: column; gap: 8px; }
.nav-app-choice { width: 100%; padding: 14px 16px; text-align: start; }
.nav-app-choice[aria-pressed="true"] { box-shadow: 0 0 0 2px #fde68a; }
/* a long press on «Navigera» asks again: no text selection or iOS callout under the finger */
[data-action="navigate"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* the driver's "swipe to go online" (CF1): the gesture belongs to the slider, not to the page's scroll */
/* A chip that is a real date control (CF13 «Välj datum», PLAN-V3 TXD.8): the design's chip is what shows, and the native
   date input lies over it, transparent, so a tap anywhere on the chip opens the phone's own date picker. */
[data-picker] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* CF11's «Sparat» pill saying a save failed (PLAN-V3 TXD.13): the design draws only the saved look, so the failure gets the
   frame's error colour here instead of a green «Sparat» that is not true. */
[data-part="saved"][data-tone="error"] {
  border-color: rgba(239, 68, 68, 0.45) !important;
}
[data-part="saved"][data-tone="error"] [data-bind="saved_line"] {
  color: #fca5a5 !important;
}
/* A6.tvastegs (PLAN-V3 TXS.6): the design's six code boxes are drawn; one real field lies over them, transparent, so the
   phone's own keyboard and its one-time-code suggestion type the code, and the boxes show it digit by digit. */
[data-part="code-row"] { position: relative; }
[data-part="code-row"] .code-entry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  caret-color: transparent;
  cursor: text;
}
/* Ride PIN / OTP / security code boxes and fields (owner live-ride report 2026-11-15):
   Digit rows and code inputs always lay out left-to-right and isolate bidi in ar, fa, ckb, and kmr-Arab
   so 3738 is never drawn backwards as 8373. */
[data-purpose="ride-pin-code"] [data-part="pin-digits"],
[data-purpose="ride-pin-code"] > div:has([data-pin-digit]),
[data-purpose="ride-pin-code"] [data-pin-digit],
[data-purpose="pin-box"] [data-field="pin"],
[data-section="code-entry"] [data-field="pin"],
[data-field="driver_delivery_pin"],
[data-part="code-row"] .code-entry,
[data-part="code-row"] :has(> [data-part="code-box"]),
[data-part="code-box"],
[data-bind="ride_code"],
[data-bind="pickup_code"],
[data-bind="rescue_code"],
[data-bind="handover_pin"],
[data-bind="vehicle_plate"],
[data-bind="plate"] {
  direction: ltr;
  unicode-bidi: isolate;
}
/* the driver photo (PLAN-V3 TXS.2): an approved photo fills the design's avatar slot without being stretched */
img[data-part="driver-photo"], img[data-part="photo-img"] { object-fit: cover; }

/* ==========================================================================
   Taxi design v2 quick fixes (Lane Q: Q4, Q5, Q6, Q7)
   ========================================================================== */
/* Q4: 3-slot headers keep their middle title/pill centred within 2 px of the container centre */
#screen-outlet :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(
  header.justify-between:not([data-screen="CF1"] header),
  header > div.justify-between,
  [data-purpose="app-topbar"].justify-between,
  :is(div, section).justify-between:has(> [data-keep-slot]),
  [data-screen="CF5"] div.justify-between:first-of-type,
  [data-screen="CF12"] div.justify-between:first-of-type
):has(> :nth-child(3):last-child):not([data-screen="CF1"] *):not([data-slide]) {
  display: grid !important;
  /* minmax(0, 1fr): a side slot wider than its half (C5.offline's BankID badge at 14 px) must not push the middle off centre */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
html[class*="a11y-text-"] #screen-outlet :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(
  header.justify-between:not([data-screen="CF1"] header),
  header > div.justify-between,
  [data-purpose="app-topbar"].justify-between,
  :is(div, section).justify-between:has(> [data-keep-slot]),
  [data-screen="CF5"] div.justify-between:first-of-type,
  [data-screen="CF12"] div.justify-between:first-of-type
):has(> :nth-child(3):last-child):not([data-screen="CF1"] *):not([data-slide]) {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
#screen-outlet :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(
  header.justify-between:not([data-screen="CF1"] header),
  header > div.justify-between,
  [data-purpose="app-topbar"].justify-between,
  :is(div, section).justify-between:has(> [data-keep-slot]),
  [data-screen="CF5"] div.justify-between:first-of-type,
  [data-screen="CF12"] div.justify-between:first-of-type
):has(> :nth-child(3):last-child):not([data-screen="CF1"] *):not([data-slide]) > :nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
#screen-outlet :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(
  header.justify-between:not([data-screen="CF1"] header),
  header > div.justify-between,
  [data-purpose="app-topbar"].justify-between,
  :is(div, section).justify-between:has(> [data-keep-slot]),
  [data-screen="CF5"] div.justify-between:first-of-type,
  [data-screen="CF12"] div.justify-between:first-of-type
):has(> :nth-child(3):last-child):not([data-screen="CF1"] *):not([data-slide]) > :nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0;
}
#screen-outlet :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(
  header.justify-between:not([data-screen="CF1"] header),
  header > div.justify-between,
  [data-purpose="app-topbar"].justify-between,
  :is(div, section).justify-between:has(> [data-keep-slot]),
  [data-screen="CF5"] div.justify-between:first-of-type,
  [data-screen="CF12"] div.justify-between:first-of-type
):has(> :nth-child(3):last-child):not([data-screen="CF1"] *):not([data-slide]) > :nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

/* Q5: Strip separators ([data-sep]) hide when at the start/end of a strip or adjacent to a hidden chip */
#screen-outlet [data-sep]:first-child,
#screen-outlet [data-sep]:last-child,
#screen-outlet :is([hidden], [data-bind]:empty) + [data-sep],
#screen-outlet [data-sep] + [data-sep],
#screen-outlet [data-sep]:not(:has(~ :not([hidden]):not([data-sep]):not([data-bind]:empty))) {
  display: none !important;
}

/* Q10: the two links in the partner terms' line of text reach no further than their words. Q6's 44 px reach (below, kept as
   it is for the taxi's keys) laid «personuppgiftsbiträdesavtalet»'s 22 px up over «partnervillkoren» on the line above, and a
   tap on «partnervillkoren» opened the data processing agreement (test page site-app-bli-partner, flow partner-terms-links) */
#screen-outlet [data-screen^="Q10"] [data-part="partner-terms"] a[data-action]::after { content: none; }

/* Q6: Every [data-action] link or button (except sheet handles) on scoped screens has at least a 44x44 px hit area.
   A control that holds another control that acts gets no reach of its own (it would take the other's tap): the app says
   it in data-holds-action (js/core/control-facts.js) */
:where(#screen-outlet, #overlay-outlet) :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(a, button, [role="button"])[data-action]:not(.fixed):not(.absolute):not(.sticky):not([data-sheet-handle]):not([data-holds-action]) {
  position: relative;
}
:where(#screen-outlet, #overlay-outlet) :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B1"], [data-screen^="B1."], [data-screen="B2"], [data-screen^="B2."], [data-screen="P1"], [data-screen^="P1."], [data-screen="A2"], [data-screen^="A2."], [data-screen="A8"], [data-screen^="A8."], [data-screen^="T3"]) :is(a, button, [role="button"])[data-action]:not([data-sheet-handle]):not([data-holds-action])::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  height: 100%;
}

/* The «Ändra» chips on a trip's route card (C2, C3.bokad, C11; the owner's report 5, 2026-10-23): the button is a 48×48
   target (TAXI-V2) around the chip drawn inside it, and its margins give the row back the height the design draws */
/* (an id in the selector: the screens' preflight, _base.css «[data-screen] button { margin: 0 }», would win otherwise) */
:is(#screen-outlet, #overlay-outlet) [data-hit="48"] { min-width: 48px; min-height: 48px; margin-block: -12px; }
/* Two such chips on rows less than 48 px apart (C11's «Från» and «Till», about 36 px from centre to centre): the upper target
   reaches 7 px further up and the lower one 7 px further down, so a gap stays between them and they never overlap (a low tap
   on «Från» opened «Till»: the review); the padding keeps each drawn chip where its row puts it */
:is(#screen-outlet, #overlay-outlet) :is([data-hit="48"][data-hit-reach="up"], [data-screen^="C2"] button[data-action="price-breakdown"][data-hit="48"]) { margin-block: -19px -5px; padding-top: 14px; }
:is(#screen-outlet, #overlay-outlet) [data-hit="48"][data-hit-reach="down"] { margin-block: -5px -19px; padding-bottom: 14px; }

/* Q7: C2 nearby-status dot and text turn amber (#F59E0B) when no car is available (data-state="none") */
[data-part="nearby-status"][data-state="none"] [data-bind="nearby_text"] {
  color: #F59E0B !important;
}
[data-part="nearby-status"][data-state="none"] .bg-emerald-400,
[data-part="nearby-status"][data-state="none"] .bg-emerald-500 {
  background-color: #F59E0B !important;
  box-shadow: 0 0 8px #F59E0B !important;
}

/* C2: hide lone Resa segment when app.courier is off */
[data-screen="C2"] [data-part="service-segment"]:not(:has([data-action="select-service-type"]:not([hidden]) ~ [data-action="select-service-type"]:not([hidden]))) {
  display: none !important;
}

/* C5: auto-fit visible tools in tools row and hide row when empty */
[data-screen="C5"] [data-section="tools"] {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
}
[data-screen="C5"] [data-section="tools"]:not(:has(> :not([hidden]))) {
  display: none !important;
}

/* C11 (owner-notes 31, 2026-10-23): a card's «Ändra tid» and «Avboka» share the row, and the one left alone fills it (a driver's
   ride has no «Ändra tid»: «Avboka» stood in half the row beside a hole); a card's buttons are 48 px tall. Here, not in the
   template, whose card is one line that the address rows share */
#screen-outlet [data-screen="C11"] [data-part="actions"] {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
#screen-outlet [data-screen="C11"] :is([data-part="actions"], [data-part="confirm"]) button {
  min-height: 48px;
}
/* The rider's screens after the ride (owner-notes 31, TAXI-V2: a target is at least 48 × 48): Q6's hit area is 48 here, so a
   drawn 44 back button, a 39 px tag, the 44 × 24 reminder switch and a 44 px filter chip each answer a 48 × 48 tap around their
   middle without growing on screen. Pressed, a control shrinks to 95 % (active:scale-95) and its hit area with it, so a finger
   near its edge lifted off nothing and the tap was lost: the area grows back by as much while it is pressed */
#screen-outlet :is([data-screen="C6"], [data-screen^="C6."], [data-screen="C7"], [data-screen^="C7."], [data-screen="C11"], [data-screen^="C11."], [data-screen="C12"], [data-screen^="C12."]) :is(a, button, [role="button"])[data-action]:not([data-sheet-handle]):not([data-holds-action])::after {
  min-width: 48px;
  min-height: 48px;
}
#screen-outlet :is([data-screen="C6"], [data-screen^="C6."], [data-screen="C7"], [data-screen^="C7."], [data-screen="C11"], [data-screen^="C11."], [data-screen="C12"], [data-screen^="C12."]) :is(a, button, [role="button"])[data-action]:not([data-sheet-handle]):not([data-holds-action]):active::after {
  transform: translate(-50%, -50%) scale(1.06);
}

/* An inline header marked data-partial="rider-header-page|live" (not expanded, no .p-sub-hdr) keeps its template classes:
   the partial header base rule in css/stitch/partials/*.css is scoped to .p-sub-hdr, so nothing here overrides them. */

/* CP2 today cell highlight & CP6.bil picked paper row highlight (no inline styles) */
[data-screen="CP2"] [data-today="true"] {
  background-color: rgba(124, 58, 237, 0.22) !important;
  border-color: rgba(168, 85, 247, 0.55) !important;
  color: #F3E8FF !important;
}
[data-screen^="CP6"] [data-picked="true"] {
  border-color: rgba(168, 85, 247, 0.55) !important;
  background-color: rgba(124, 58, 237, 0.14) !important;
}

/* CF1.rast / CF9.paus / CF9.rast break length picker selected state & error note tone; the price proposal's amount and reason
   (round 28, CF2 and CF1.online-vantar, the same picker's chips) chosen the same way, by aria-pressed (driver-price-proposal.js) */
[data-screen] [data-action="pick-break-minutes"][data-selected="true"],
[data-screen] :is([data-action="pick-proposal-amount"], [data-action="pick-proposal-reason"])[aria-pressed="true"] {
  background-color: #7C3AED !important;
  border-color: #D0BCFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.45) !important;
}
/* H2.klar «Hur blev det?»: the stars up to the chosen one in the design's own amber (its hover:text-amber-400), set by
   aria-pressed (carwash/h-customer.js), never by style= */
[data-screen="H2.klar"] [data-action="pick-star"][aria-pressed="true"] { color: #FBBF24; }
/* the price proposal's − / + at the end of what may be chosen (round 28): dimmed, never a style from script */
[data-screen] :is([data-action="proposal-less"], [data-action="proposal-more"]):disabled { opacity: 0.4; }
[data-screen] [data-bind="break_note"][data-tone="error"] {
  color: #FCA5A5 !important;
}

[data-plate-band="1"] > span,
[data-purpose="swedish-license-plate"] .bg-blue-600 > span {
  display: inline-block;
  transform: scale(0.55);
  transform-origin: center;
  line-height: 0.6 !important;
}
/* === TAXI-V2-BINDING-FIT-AND-FLOOR === */
/* 1. Binding >=17px body & primary CTA floor on taxi/role/B2/T3 screens. A bound line drawn larger by its own rule says so with
   data-large and keeps its size (the place and coordinates the driver reads out to 112, css/ask-first.css) */
#screen-outlet :is([data-screen^="C"], [data-screen^="CF"], [data-screen^="CP"], [data-screen^="CA"], [data-screen^="Q"], [data-screen="B2"], [data-screen^="T3"]) :is(
  p[data-bind]:not([data-large]),
  [data-bind="pickup"],
  [data-bind="dropoff"],
  [data-bind="from_address"],
  [data-bind="to_address"],
  [data-sheet-foot] button[data-action],
  footer button[data-action]:not([data-action="nav"]),
  [data-slide],
  [data-slide] [data-bind]
) {
  font-size: 17px !important;
  line-height: 1.3 !important;
}
/* the header's status under the pill is one line beside the menu and SOS (CF1 v2): 17 px, but no taller than 22. The
   doubled attribute outweighs the floor's :is() above (its footer button[data-action]:not(…) argument sets its weight) */
#screen-outlet [data-screen^="CF"] header p[data-bind="status_line"][data-bind] {
  line-height: 1.25 !important;
}

/* 2. CF9.paus, CF1.rast, CF9.rast: fit within 390x844 and 448x901 with zero vertical overflow */
#screen-outlet :is([data-screen="CF9.paus"], [data-screen="CF1.rast"], [data-screen="CF9.rast"]) {
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
/* ...and on a phone too short for all of it (360 x 640, or a larger text size) the column scrolls inside that height: the
   tidbok's rows and the law text were cut off under «Sluta för idag» with no way to reach them (round 15) */
#screen-outlet :is([data-screen="CF9.paus"], [data-screen="CF1.rast"], [data-screen="CF9.rast"]) > div {
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}
#screen-outlet :is([data-screen="CF9.paus"], [data-screen="CF1.rast"], [data-screen="CF9.rast"]) [data-sheet-gap] {
  min-height: 90px !important;
  max-height: 130px !important;
  height: 110px !important;
  flex: 0 1 110px !important;
}
#screen-outlet :is([data-screen="CF9.paus"], [data-screen="CF1.rast"], [data-screen="CF9.rast"]) [data-sheet] {
  padding-top: 8px !important;
  padding-bottom: 10px !important;
  gap: 6px !important;
}

/* 3. C8: keep confirm-booking inside 844px viewport */
#screen-outlet [data-screen="C8"] [data-sheet-foot] {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 30 !important;
  background: var(--sys-glass-strong) !important;
  padding-top: 6px !important;
  padding-bottom: 8px !important;
}

/* 4. Sheet host under a11y-text-2 (1.12x) to a11y-text-5 (2x): scale 100dvh by 1/zoom so zoomed height == innerHeight, where the
   zoom zooms a viewport unit (--a11y-vz, 1 on Safari/WebKit, whose zoom does not) */
html.a11y-text-2 #screen-outlet [data-sheet-host]:not([data-sheet-host="dialog"]),
html.a11y-text-2 #screen-outlet :has(> [data-sheet-host="fill"]) {
  height: calc(100dvh / var(--a11y-vz, 1)) !important;
  max-height: calc(100dvh / var(--a11y-vz, 1)) !important;
}
html.a11y-text-3 #screen-outlet [data-sheet-host]:not([data-sheet-host="dialog"]),
html.a11y-text-3 #screen-outlet :has(> [data-sheet-host="fill"]) {
  height: calc(100dvh / var(--a11y-vz, 1)) !important;
  max-height: calc(100dvh / var(--a11y-vz, 1)) !important;
}
html.a11y-text-4 #screen-outlet [data-sheet-host]:not([data-sheet-host="dialog"]),
html.a11y-text-4 #screen-outlet :has(> [data-sheet-host="fill"]) {
  height: calc(100dvh / var(--a11y-vz, 1)) !important;
  max-height: calc(100dvh / var(--a11y-vz, 1)) !important;
}
html.a11y-text-5 #screen-outlet [data-sheet-host]:not([data-sheet-host="dialog"]),
html.a11y-text-5 #screen-outlet :has(> [data-sheet-host="fill"]) {
  height: calc(100dvh / var(--a11y-vz, 1)) !important;
  max-height: calc(100dvh / var(--a11y-vz, 1)) !important;
}
html.a11y-text-3 #screen-outlet [data-screen^="C2"] [data-sheet-gap],
html.a11y-text-4 #screen-outlet [data-screen^="C2"] [data-sheet-gap],
html.a11y-text-5 #screen-outlet [data-screen^="C2"] [data-sheet-gap] {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
}

/* «Pågående resa» (js/flows/taxi/ride-return.js, the owner's round 3, 2026-10-24): a driver's way back into his ride from
   any other screen, pinned under the header as iOS's «return to call», on the app's translucent material (the live
   capsule's look) with the ride's emerald dot; 15 px words, a 44 px pill, the press answered at once. */
.ride-return {
  position: fixed;
  top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 68px);
  left: 16px;
  right: 16px;
  z-index: var(--z-topbar, 40);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.ride-return[hidden] { display: none; }
/* under the screen's own top controls, whichever screen it is (ride-return.js measures them and picks the stop) */
.ride-return[data-under="96"] { top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 96px); }
.ride-return[data-under="128"] { top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 128px); }
.ride-return-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 358px;
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--sys-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 6px 24px var(--sys-shadow);
  color: var(--sys-label);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ride-return-pill:active { transform: scale(0.97); }
.ride-return-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #10B981; box-shadow: 0 0 8px #10B981; }
.ride-return-line { flex: 1; min-width: 0; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride-return-chevron { width: 18px; height: 18px; flex-shrink: 0; color: #C084FC; }
@media (prefers-reduced-transparency: reduce) { .ride-return-pill { background: var(--sys-raised); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .ride-return-pill { transition: none; } .ride-return-pill:active { transform: none; } }

/* The store apps' live update (js/core/live-update.js, the owner, 2026-11-10): «Uppdaterar appen …» while a new version
   downloads, then «Uppdateringen är klar …» with «OK». On «Pågående resa»'s material, in the same band: under the screen's
   own top controls and under that bar when it shows (live-update.js measures them and picks the stop). A tap anywhere on it
   but «OK» goes through to the screen. The element itself is the live region and stays; its card shows and hides. */
.live-update-note {
  position: fixed;
  top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 68px);
  /* the same on both sides (a landscape notch on either one), so right to left needs no mirror */
  left: calc(16px + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  right: calc(16px + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  z-index: var(--z-topbar, 40);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.live-update-note[data-under="96"] { top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 96px); }
.live-update-note[data-under="128"] { top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 128px); }
.live-update-note[data-under="180"] { top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 180px); }
.live-update-card {
  pointer-events: none;
  width: 100%;
  max-width: 358px;
  min-height: 44px;
  padding-block: 8px;
  padding-inline: 14px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: var(--sys-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 6px 24px var(--sys-shadow);
  color: var(--sys-label);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  animation: liveUpdateIn 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.live-update-card[hidden] { display: none; }
.live-update-note:not([data-state="ready"]) .live-update-card { padding-inline-end: 14px; }
.live-update-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--sys-accent); box-shadow: 0 0 8px var(--sys-accent); }
.live-update-note[data-state="busy"] .live-update-dot { animation: liveUpdatePulse 1.6s ease-in-out infinite; }
.live-update-note[data-state="ready"] .live-update-dot { background: #10B981; box-shadow: 0 0 8px #10B981; }
.live-update-text { flex: 1; min-width: 0; margin: 0; text-align: start; overflow-wrap: break-word; }
.live-update-ok {
  pointer-events: auto;
  flex-shrink: 0;
  min-width: 56px;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: var(--sys-film-strong);
  color: var(--sys-accent-ink);
  font: inherit;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.live-update-ok[hidden] { display: none; }
.live-update-ok:active { transform: scale(0.97); }
@keyframes liveUpdateIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes liveUpdatePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-transparency: reduce) { .live-update-card { background: var(--sys-raised); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .live-update-card, .live-update-note[data-state="busy"] .live-update-dot { animation: none; }
  .live-update-ok { transition: none; }
  .live-update-ok:active { transform: none; }
}

/* owner-notes 31 in the driver drawer partial (js/stitch/partials/driver-drawer.js): «Fordon» with its car (plate · model)
   on a second line under the label, never squeezed beside it; the icon stands beside both lines */
:is(#screen-outlet, #overlay-outlet) a[data-row="vehicle"] {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}
:is(#screen-outlet, #overlay-outlet) a[data-row="vehicle"] > [data-icon] { grid-row: 1 / span 2; }
:is(#screen-outlet, #overlay-outlet) a[data-row="vehicle"] > [data-part="vehicle-line"] {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%;
  font-size: 14px; font-weight: 600; color: #34d399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* owner-notes 31 on «Körkort» (CF7.behorighet and its states): the YKB scopes («Godstransport (C1, C1E, C, CE)»,
   «Persontransport (D1, D1E, D, DE)») one per row, the full width, the check first and the words on one line, a 48 px
   target; never two squeezed side by side and wrapping inside themselves */
#screen-outlet [data-list="ykb_scopes"] { grid-template-columns: minmax(0, 1fr) !important; }
#screen-outlet [data-list="ykb_scopes"] > [data-item] {
  height: auto; min-height: 48px; justify-content: flex-start; gap: 8px; padding-inline: 14px; text-align: start;
  font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* a native date or time field (CF7's «Giltig t.o.m.», …): one calendar icon, the design's drawn one. The browser's own
   picker icon (a second one on a phone set to Arabic, owner-notes 31) is made a clear layer over the whole field, so a tap
   anywhere on it still opens the phone's picker; the field itself keeps the phone's look, as a native field does */
#screen-outlet input[type="date"], #screen-outlet input[type="time"], #screen-outlet input[type="datetime-local"] { position: relative; }
/* C8's «Vald hämtning» (round 15): its time field is a [data-picker], a clear layer over the whole 44 px line, so the rule
   above (which made it a blank box beside the time, the only spot that opened the picker) does not apply to it */
#screen-outlet [data-screen="C8"] input[data-picker] { position: absolute; inset: -1px 0; width: 100%; height: auto; min-height: 44px; }
#screen-outlet input[type="date"]::-webkit-calendar-picker-indicator,
#screen-outlet input[type="time"]::-webkit-calendar-picker-indicator,
#screen-outlet input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer;
}
/* ...but a clear field over a chip the app prints (CF13 «Välj datum», CF10.nasta-resor «Jag slutar kl»; [data-picker] above)
   stays that layer: the rule just above outweighed [data-picker] and laid the invisible field in the chip's flow, a blank box
   that widened «Välj datum» (round 15). The chip shows the app's words with Latin digits; a tap anywhere on it opens the
   phone's own picker */
#screen-outlet :is([data-part="pick-chip"], [data-part="time-chip"]) > input[data-picker] {
  position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0;
}

/* a native date field with the app's own line (js/core/date-field.js, the owner's round 4): the field is a clear layer over
   the whole box, so a tap anywhere opens the phone's picker, and the line under it says the day in Swedish */
#screen-outlet [data-date-field] { position: relative; }
#screen-outlet [data-date-field] > :is(input[type="date"], input[type="datetime-local"]) { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
#screen-outlet [data-part="date-shown"] { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: var(--sys-label); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#screen-outlet [data-part="date-shown"][data-empty] { font-weight: 500; color: var(--sys-label-3); }
/* a date picker lying over a chip or a box of its own ([data-picker]: CP6.bil's inspection, CF13's day) stays that clear
   layer: the native field's position: relative above had put it back in the flow, a narrow strip beside the words */
#screen-outlet input[type="date"][data-picker] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
/* CP6.bil and CP6.ny: the middle of the three-slot header leaves room for «Ägarläge», wider than the back button (the
   company's name lay under the pill); a long name ends in … */
#screen-outlet :is([data-screen="CP6.bil"], [data-screen="CP6.ny"], [data-screen="YP4.ny"]) [data-purpose="mobile-header"] > div > :nth-child(2) { max-width: calc(100vw - 232px); }
#screen-outlet :is([data-screen="CP6.bil"], [data-screen="CP6.ny"], [data-screen="YP4.ny"]) [data-purpose="mobile-header"] [data-bind="company_name"] {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* support on the map (js/flows/common/support-chat.js, the owner's round 10): the phone and the chat stacked above «locate
   me», each 44 px and in its style; on the left in a right-to-left language. They ride with the sheet and go at open, as
   the locate button does (data-sheet-float) */
#screen-outlet [data-part="map-tools"] { display: flex; flex-direction: column; align-items: center; gap: 10px; }
[dir="rtl"] #screen-outlet .sheet-track [data-part="map-tools"], #screen-outlet [dir="rtl"] .sheet-track [data-part="map-tools"] { right: auto; left: 14px; }

/* the assistant's sheet: over the screen with a scrim, 88 % of the screen high, safe-area aware, on the app's material; the
   header's small line is the AI notice (not a dialog), the chat page fills the rest */
.support-chat { position: fixed; inset: 0; z-index: 80; }
.support-chat[hidden] { display: none; }
.support-chat-scrim { position: absolute; inset: 0; background: var(--sys-scrim); }
.support-chat-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 88dvh; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px 24px 0 0; background: var(--sys-glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--glass-l3-border, var(--sys-edge)); box-shadow: var(--shadow-sheet), var(--glass-specular-top);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: support-chat-in 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
html[data-apple-theme="light"] .support-chat-sheet { border-top-color: var(--sys-edge); }
@keyframes support-chat-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.support-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px 10px; padding-inline: 18px 12px;
  border-bottom: 1px solid var(--sys-hairline); }
.support-chat-sheet--assistant > .support-chat-head { padding-block: 14px 12px; padding-inline: 16px 12px;
  background: linear-gradient(180deg, var(--sys-film) 0%, transparent 100%); }
.support-chat-brand { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sys-raised-2); border: 1px solid var(--sys-edge); box-shadow: var(--glass-specular-top); --sys-brand-cut: var(--sys-raised-2); }
.support-chat-brand .sys-brand { font-size: 22px; }
.support-chat-titles { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; color: var(--sys-label); font-family: var(--font-body); text-align: start; }
.support-chat-titles strong { font-family: var(--font-display); font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; color: var(--sys-label); }
.support-chat[dir="rtl"] .support-chat-titles strong, [dir="rtl"] .support-chat-titles strong { letter-spacing: normal; }
.support-chat-titles span { font-size: 13.5px; line-height: 1.38; color: var(--sys-label-2); }
.support-chat-head > a, .support-chat-head > button { margin-inline-start: -4px; }
.support-chat-close { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-pill, 9999px); display: flex; align-items: center; justify-content: center;
  color: var(--sys-label-2); background: var(--sys-film); border: 1px solid var(--sys-hairline); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms ease; }
.support-chat-close:hover { background: var(--sys-film-strong); color: var(--sys-label); }
.support-chat-close:focus-visible { outline: 2px solid var(--sys-accent); outline-offset: 2px; }
.support-chat-close svg { width: 20px; height: 20px; }
.support-chat-close:active { transform: scale(0.94); }
.support-chat iframe { flex: 1; width: 100%; border: 0; background: var(--sys-base); }
/* «Ring mig upp» (TXS.9 stage 2): the phone icon's choice, on the chat's own sheet, as tall as its two buttons */
.support-chat-sheet.is-short { height: auto; max-height: 92dvh; }
/* a short sheet's body scrolls inside its height when it is more than the screen (at «200 %», «Din kod till kundtjänst» was 1157 px
   on a 956 px phone: its «Stäng» below the screen and nothing to scroll; the head with ✕ stays at the top) */
.support-chat-sheet.is-short > .support-call-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.support-call-body { display: flex; flex-direction: column; gap: 10px; padding-block: 6px 18px; padding-inline: 18px; }
.support-call-btn { min-height: 52px; padding-block: 12px; padding-inline: 18px; border-radius: var(--radius-md, 16px); font-family: var(--font-body);
  font-size: 16px; font-weight: 700; color: var(--sys-label); background: var(--sys-film); border: 1px solid var(--sys-edge); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease; }
.support-call-btn:hover:not(:disabled) { background: var(--sys-film-strong); }
.support-call-btn.is-primary { background: linear-gradient(135deg, var(--primary, #8b5cf6) 0%, #6d28d9 100%); border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px -6px var(--purple-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.support-call-btn.is-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--primary-hi, #a855f7) 0%, #7c3aed 100%); }
.support-call-btn:focus-visible { outline: 2px solid var(--sys-accent); outline-offset: 2px; }
.support-call-btn:active { transform: scale(0.97); }
.support-call-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.support-call-status { font-size: 15px; line-height: 1.4; color: var(--sys-label); font-family: var(--font-body); text-align: center; }
/* «Din kod till kundtjänst» (round 47, js/core/support-pin.js): the six digits large, spaced and tabular, read out on the phone */
.support-pin-code { margin: 8px 0 0; font-family: var(--font-body); font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums; text-align: center; color: var(--sys-label); user-select: all; }
.support-pin-code[hidden], a.support-call-btn[hidden] { display: none; }
/* the notice before the hosted chat loads (round 47): who runs it, where, and «Öppna chatten» or the phone instead */
.support-chat-gate { gap: 14px; padding-block: 16px 20px; padding-inline: 18px; overflow-y: auto; }
.support-chat-gate[hidden], .support-chat-close[hidden], .support-chat iframe[hidden] { display: none; }
.support-chat-gate-text { font-size: 15px; line-height: 1.5; color: var(--sys-label); font-family: var(--font-body); text-align: start; }
.support-chat-gate-card { display: flex; flex-direction: column; gap: 12px; padding-block: 16px; padding-inline: 18px; border-radius: var(--radius-md, 16px);
  background: var(--sys-raised-2); border: 1px solid var(--sys-hairline); text-align: start; }
.support-chat-gate-card p { margin: 0; max-inline-size: 40ch; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--sys-label); text-wrap: pretty; }
.support-chat-gate-card .support-chat-gate-lead { font-size: 15.5px; font-weight: 700; color: var(--sys-label); }
.support-chat-gate-card .support-chat-gate-warn { padding-block: 10px; padding-inline: 12px 10px; border-radius: var(--radius-sm, 10px);
  background: var(--sys-film); border-inline-start: 3px solid var(--sys-accent); font-weight: 600; color: var(--sys-label); }
.support-chat-gate-card .support-chat-gate-consent { padding-top: 10px; border-top: 1px solid var(--sys-hairline); color: var(--sys-label-2); }
.support-chat-gate-link { font-size: 15px; font-weight: 600; font-family: var(--font-body); color: var(--sys-accent-ink); text-decoration: underline;
  text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.support-chat-gate-link:focus-visible { outline: 2px solid var(--sys-accent); outline-offset: 2px; border-radius: 6px; }
.support-chat-gate-actions { display: flex; flex-direction: column; gap: 10px; }
.support-chat-gate-actions .support-call-btn:not(.is-primary) { background: var(--sys-raised-2); border-color: var(--sys-edge); }
.support-chat-gate-actions .support-call-btn:not(.is-primary):hover:not(:disabled) { background: var(--sys-film-strong); }
/* «Kom ihåg på den här telefonen?» (round 47, js/core/storage-consent-sheet.js): the two choices side by side, the same
   size and weight, so saying no is as easy as saying yes; «Läs mer» under them */
.support-call-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.support-call-body > .support-chat-gate-link { align-self: center; }
/* «Ångra köpet (ångerrätt)» (launch list item 1, js/core/withdrawal.js): the support sheet with the form's rows, the name and
   the e-mail for the receipt as 52 px fields, the confirmation as a 44 px row to tick */
.withdraw-form[hidden], .support-call-body[hidden], .support-call-status[hidden] { display: none; }
.withdraw-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-size: 14px; color: var(--sys-label-2); }
.withdraw-field input { min-height: 52px; border-radius: 14px; padding: 0 14px; font-family: var(--font-body); font-size: 16px; color: var(--sys-label);
  background: var(--sys-film); border: 1px solid rgba(208, 188, 255, 0.22); }
.withdraw-field input:focus { outline: 2px solid #8b5cf6; outline-offset: 1px; }
.withdraw-field[hidden] { display: none; }
.withdraw-field textarea { border-radius: 14px; padding: 12px 14px; font-family: var(--font-body); font-size: 16px; line-height: 1.4; color: var(--sys-label);
  background: var(--sys-film); border: 1px solid rgba(208, 188, 255, 0.22); }
.withdraw-field textarea:focus { outline: 2px solid #8b5cf6; outline-offset: 1px; }
.withdraw-check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--sys-label); }
.withdraw-check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: #8b5cf6; }
.support-call-status.is-good { color: #34d399; font-weight: 700; }
/* the light look: emerald-400 on the white sheet is 1.9:1; the darker emerald the light look's green text uses (5.5:1) */
html[data-apple-theme="light"] .support-call-status.is-good { color: #047857; }
/* The shared block before she pays (round 49 item 7, js/core/consumer-block.js): who sells, what rights she has, the box to
   start inside the period; the way to ask about food. Colours from the tokens, so light and dark follow; logical sides, so
   right to left follows */
.consumer-block { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--sys-film);
  border: 1px solid rgba(208, 188, 255, 0.18); font-family: var(--font-body); }
.consumer-seller, .consumer-rights { display: flex; flex-direction: column; gap: 3px; }
.consumer-seller[hidden], .consumer-rights[hidden], .consumer-consent[hidden], .consumer-ask[hidden], .consumer-line[hidden] { display: none; }
.consumer-head { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--sys-label); overflow-wrap: anywhere; }
.consumer-line { font-size: 14px; line-height: 1.45; color: var(--sys-label-2); overflow-wrap: anywhere; }
.consumer-note { font-size: 13px; line-height: 1.45; color: var(--sys-label-3); }
.consumer-contact { display: flex; flex-wrap: wrap; column-gap: 14px; }
.consumer-block a { color: #a78bfa; text-decoration: underline; min-height: 28px; display: inline-flex; align-items: center; }
.consumer-block a[hidden] { display: none; }
.consumer-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14px; line-height: 1.45; color: var(--sys-label); cursor: pointer; }
.consumer-consent input { width: 22px; height: 22px; flex-shrink: 0; margin: 0; accent-color: #8b5cf6; }
.consumer-ask { display: flex; flex-direction: column; gap: 2px; padding-block: 4px; }
.consumer-ask-btn { min-height: 44px; text-align: start; font-family: var(--font-body); font-size: 14px; line-height: 1.4; font-weight: 600; color: #a78bfa; text-decoration: underline; }
.consumer-ask-btn:disabled { color: var(--sys-label-2); text-decoration: none; font-weight: 500; }
.consumer-ask-hours { font-family: var(--font-body); font-size: 13px; line-height: 1.4; color: var(--sys-label-2); }
.consumer-ask-hours[hidden] { display: none; }
/* «Godkänn partnervillkoren» (launch push, js/core/partner-terms-sheet.js): the required box and its words, a 44 px target */
.support-call-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; line-height: 1.4; color: var(--sys-label);
  font-family: var(--font-body); cursor: pointer; }
.support-call-check input { width: 22px; height: 22px; flex-shrink: 0; margin: 0; accent-color: #8b5cf6; }
/* «Rapportera» (round 47, owner-notes 100, js/core/content-report.js): the five reasons as the sheet's own buttons with the
   chosen one marked, the person's words under them, «Blockera» in the danger colour; the sheet scrolls on a short screen */
.report-sheet .support-chat-sheet { max-height: 92dvh; }
.report-sheet .support-call-body { overflow-y: auto; }
.report-reasons { display: flex; flex-direction: column; gap: 8px; }
.report-reasons[hidden], .report-text[hidden] { display: none; }
.support-call-btn.report-reason { min-height: 46px; padding: 0 16px; font-size: 15px; font-weight: 600; text-align: start; }
.support-call-btn.report-reason[aria-checked="true"] { border-color: #a78bfa; background: rgba(139, 92, 246, 0.24); }
.report-text { width: 100%; min-height: 84px; padding: 10px 14px; border-radius: 14px; font-family: var(--font-body); font-size: 16px; line-height: 1.4;
  color: var(--sys-label); background: var(--sys-film); border: 1px solid rgba(208, 188, 255, 0.22); resize: vertical; }
.report-text::placeholder { color: var(--sys-label-3); }
.report-text.is-line { min-height: 46px; resize: none; }
.report-tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--sys-label-2); }
.report-tick[hidden] { display: none; }
.report-tick input { width: 20px; height: 20px; flex: none; margin-block-start: 1px; accent-color: #a78bfa; }
/* «Rapportera» on a page (core/content-report.js): quiet, under what it reports, a whole finger's height */
.report-link { display: block; min-height: 44px; margin-inline: auto; padding: 8px 12px; font-size: 15px; color: var(--sys-label-3); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.report-link[hidden] { display: none; }
/* «Bokningsbekräftelse» (round 49, js/core/booking-confirmation.js): the stored document's own text and line breaks on the support sheet,
   which scrolls; each line finds its own direction, since a document may stay in Swedish in a right-to-left app */
.confirmation-sheet .support-chat-sheet { max-height: 92dvh; }
.confirmation-sheet .support-call-body { overflow-y: auto; }
.confirmation-text { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--sys-label); white-space: pre-wrap; overflow-wrap: anywhere;
  unicode-bidi: plaintext; text-align: start; }
.support-call-btn.is-danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); }
html[data-apple-theme="light"] .support-call-btn.is-danger { color: #b91c1c; }
html[data-apple-theme="light"] .support-call-btn.report-reason[aria-checked="true"] { border-color: #7c3aed; background: rgba(124, 58, 237, 0.12); }
@media (prefers-reduced-motion: reduce) { .support-chat-sheet { animation: none; } .support-chat-close, .support-call-btn { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .support-chat-sheet { background: var(--sys-raised); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* «Betala med Swish» (round 19, payments piece C, js/core/swish.js): the support sheet's frame with the number, the amount and
   the message as rows to read or type, and «Öppna Swish» as a link in the sheet's button style */
/* «Betalt» (round 49, js/core/paid-mark.js): the customer's line, the business's small block, and the Swish sheet's plain words */
.paid-mark { margin: 8px 0; padding: 10px 12px; border-radius: 12px; font-family: var(--font-body); font-size: 15px; line-height: 21px; font-weight: 600; color: var(--sys-label); background: var(--sys-fill-3, rgba(127, 127, 127, 0.14)); }
.paid-mark-block { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; font-family: var(--font-body); }
.paid-mark-words { margin: 0; font-size: 15px; line-height: 21px; color: var(--sys-label-2); }
.paid-mark-row { display: flex; flex-wrap: wrap; gap: 8px; }
.paid-mark-btn { flex: 1 1 auto; min-height: 44px; padding: 10px 14px; border-radius: 12px; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--sys-label); background: var(--sys-fill-3, rgba(127, 127, 127, 0.14)); border: 1px solid var(--sys-separator, rgba(127, 127, 127, 0.3)); touch-action: manipulation; }
.swish-pay-warn { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--sys-label); background: var(--sys-fill-3, rgba(127, 127, 127, 0.14)); }
.swish-pay-terms { margin: 0; font-size: 14px; line-height: 20px; color: var(--sys-label-2); }
.swish-pay-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 4px 0 6px; font-family: var(--font-body); }
.swish-pay-rows dt { font-size: 14px; line-height: 22px; color: var(--sys-label-2); }
.swish-pay-rows dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--sys-label); text-align: end; overflow-wrap: anywhere; user-select: all; }
/* the ARN line (round 49, CONSUMER-06+, js/core/arn-block.js): the server's fixed block under a firm's answer and at an outcome that refuses */
.arn-block { display: flex; flex-direction: column; gap: 6px; margin-block-start: 8px; padding: 10px 12px; border-radius: 12px; font-family: var(--font-body); background: var(--sys-fill-3, rgba(127, 127, 127, 0.14)); }
.arn-line { margin: 0; font-size: 15px; line-height: 21px; color: var(--sys-label); }
.arn-help { margin: 0; font-size: 14px; line-height: 20px; color: var(--sys-label-2); }
a.support-call-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; touch-action: manipulation; }
/* every control in the stack a 44 px target, whatever its screen drew (CF1's offline recenter was 36) */
#screen-outlet [data-part="map-tools"] > button { width: 44px; height: 44px; }

/* ==========================================================================
   The owner's round 11 (2026-10-24): one app-wide polish pass in the shared styles.
   ========================================================================== */
/* 4. The header, the Apple way: no black or solid bar. The header itself is clear; under it a soft scroll-edge fade keeps
   its words readable while the content behind stays visible; each icon-only control (back, menu, profile, chat …: a
   control whose one child is its icon, named by aria-label) is a 44 px round icon on the translucent material; and the
   header's status («Söker förare…», «Offline just nu», «På rast») is the pill the owner liked, B1's live capsule */
#screen-outlet [data-screen] header[class*="top-0"] {
  background: transparent !important; border-bottom-color: transparent !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; isolation: isolate;
}
#screen-outlet [data-screen] header[class*="top-0"]::before {
  content: ''; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--sys-base) 62%, transparent) 0%, color-mix(in srgb, var(--sys-base) 34%, transparent) 62%, color-mix(in srgb, var(--sys-base) 0%, transparent) 100%);
}
#screen-outlet [data-screen] header[class*="top-0"] :is(button, a)[data-action][aria-label]:has(> :is(.material-symbols-outlined, svg):only-child) {
  width: 44px !important; height: 44px !important; min-width: 44px; flex-shrink: 0; border-radius: 999px !important;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sys-raised) 62%, transparent) !important; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--sys-hairline) !important; box-shadow: inset 0 1px 0 var(--sys-film), 0 4px 16px var(--sys-shadow);
}
#screen-outlet [data-screen] header[class*="top-0"] :is(button, a)[data-action][aria-label]:has(> :is(.material-symbols-outlined, svg):only-child) > :is(.material-symbols-outlined, svg) {
  font-size: 22px; width: 22px; height: 22px;
}
/* (the one header's own line under the title is never this pill: css/chrome.css draws it as the salon's line, a status in
   it by its colour; CF7's and YF6's «● Godkänd förare» stood 30 px tall in a glass capsule under the title) */
#screen-outlet [data-screen] header[class*="top-0"] :is(div, p, span):has(> :is([data-bind="status_line"], [data-bind="state_word"], [data-bind="status_pill"])):not([data-chrome="subtitle"], :has(h1, h2, h3, [data-part="online-pill"], [data-purpose="online-pill"], [class*="rounded-full"][class*="px-"])),
#screen-outlet [data-screen] header[class*="top-0"] :is([data-part="online-pill"], [data-purpose="online-pill"]) {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--sys-glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.3); box-shadow: inset 0 1px 0 var(--sys-film), 0 4px 20px var(--sys-shadow);
}
@media (prefers-reduced-transparency: reduce) {
  #screen-outlet [data-screen] header[class*="top-0"]::before { background: var(--sys-glass-strong); }
}

/* 1. The buttons: the primary one (the action gradient) and the secondary one (the glass) each one background and one
   radius on every rider, driver and company screen; a round control (an icon, an avatar) keeps its circle */
#screen-outlet :is(button, a, [role="button"])[class*="from-[#8B5CF6]"][class*="to-[#7C3AED]"]:not([class*="rounded-full"]) {
  border-radius: 16px; background-image: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}
#screen-outlet :is(button, a, [role="button"]):is(.glass-btn, .glass-button):not([class*="rounded-full"]) { border-radius: 16px; }

/* 2. Fluid motion: map controls and banners fade in; a press lights up at once (and gives under the finger, motion.css);
   only opacity is animated here, never under reduced motion or «Lugnare rörelser» */
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-calm) #screen-outlet .sheet-track [data-sheet-float] { animation: round11-fade 260ms ease-out both; }
  html:not(.a11y-calm) .ride-return:not([hidden]) > .ride-return-pill { animation: round11-fade 240ms ease-out both; }
  html:not(.a11y-calm) .live-capsule-container:not([hidden]) > * { animation: round11-fade 240ms ease-out both; }
}
@keyframes round11-fade { from { opacity: 0; } }
html:not(.a11y-calm) #screen-outlet :is(button, a, [role="button"])[data-action]:not(:disabled, [aria-disabled="true"], [role="slider"]):active { filter: brightness(1.12); }

/* C2 (the price screen): its header stands in the page's flow above the map, so the page's own black stood behind it as a
   bar. The map now runs up under the header (as far as it is high, its foot and the sheet where they were), and the header
   floats over it on the same scroll-edge fade. A map block laid over the page already (absolute: C2.upphamtningsplats)
   starts at the top as it is, and fills the host (the Sheets rules above) */
#screen-outlet [data-screen^="C2"] header.relative { isolation: isolate; }
#screen-outlet [data-screen^="C2"] header.relative::before {
  content: ''; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--sys-base) 62%, transparent) 0%, color-mix(in srgb, var(--sys-base) 34%, transparent) 62%, color-mix(in srgb, var(--sys-base) 0%, transparent) 100%);
}
/* The map's block is pulled up under the header by the app's own mark (data-map-slot-host, js/core/sheet.js): the rule
   asked the DOM with :has() and the browser restyled the boxes above the slot on every write inside the screen */
#screen-outlet [data-screen^="C2"] header.relative ~ section:not(.absolute)[data-map-slot-host] { margin-top: -64px; height: 384px; }
/* The driver's ride (round 22: «headers that are still a black bar»): CF3's, CF4's and CF4.offline-under-korning's header
   stood in the page's flow above the live map, as C2's did, so the page's black stood behind it as a band (0-64 px on CF3,
   0-52 on CF4, 0-205 on the offline state, whose header carries its offline card). Their header is on the shared one now
   (top-0 in the templates: clear, the scroll-edge fade, the 44 px glass back button), and the map runs up under it: the map's
   block stays where it is in the flow (the sheet's host, the camera's strip) but no longer places what it holds, so the map
   itself fills the host from the screen's top, whatever the header's height. CF3's «Navigera» card, which that block placed
   12 px under the header, stands there in its flow instead; CF4's card is in the flow already, and stands over the fade that
   reaches 24 px under the header, as CF3's does. */
#screen-outlet [data-screen="CF3"] header[class*="top-0"] ~ [data-sheet-map],
#screen-outlet :is([data-screen="CF4"], [data-screen="CF4.offline-under-korning"]) header[class*="top-0"] ~ main[data-sheet-map] { position: static; }
#screen-outlet [data-screen="CF3"] header[class*="top-0"] ~ [data-sheet-map] > .animate-banner { position: relative; inset: auto; margin: 0.75rem 0.75rem 0; }
#screen-outlet :is([data-screen="CF4"], [data-screen="CF4.offline-under-korning"]) header[class*="top-0"] ~ main[data-sheet-map] > div:has(> [data-action="navigate"]) { z-index: 30; }
/* round 15: C2's line about the free cars («Ingen ledig bil just nu») is the header's status, so B1's capsule pill, as the
   shared header's status_line is; gone while the server says nothing about cars (the line hidden) and before the quote */
#screen-outlet [data-screen^="C2"] header [data-part="nearby-status"]:has(> [data-bind="nearby_text"]:not([hidden]):not(:empty)) {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--sys-glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.3); box-shadow: inset 0 1px 0 var(--sys-film), 0 4px 20px var(--sys-shadow);
}
#screen-outlet [data-screen^="C2"] header [data-part="nearby-status"]:not(:has(> [data-bind="nearby_text"]:not([hidden]):not(:empty))) { display: none; }
/* C2's option chips two to a line, each half the row (a lone one the whole line): at 360 px «Min musik» was cut to «Min mu…»
   between «Tyst resa» and «Trygghet», «Önskemål» stood alone under them, and «Trygghet» was 31 px beside the 48 px ones */
#screen-outlet [data-screen^="C2"] [data-section="ride-options"] > button { flex: 1 1 calc(50% - 3px); min-width: 0; min-height: 48px; }
/* C2.upphamtningsplats sets no font of its own: its points and notes read in the browser's fallback face, not the app's */
#screen-outlet [data-screen="C2.upphamtningsplats"] { font-family: var(--font-body); }

/* B4, the notifications centre (round 16): its words at least 14 px and its controls 44 px (the design drew 11-12 px labels
   and 30 px chips); an unread notice stands out (its violet edge, its title bold) and a read one recedes; the loading rows'
   bars; the counter line keeps its place while it has no words (loading, a load error) */
#screen-outlet [data-screen^="B4"] :is(.text-label-sm, .text-label-md, .text-body-sm) { font-size: 14px; line-height: 20px; }
#screen-outlet [data-screen^="B4"] :is(.filter-btn, [data-action="mark-all-read"], [data-action="track-live"], [data-action="notification-settings"]) { min-height: 44px; }
#screen-outlet [data-screen="B4"] [data-list="notifications"] > [data-item]:not([data-read]) { border-color: rgba(139, 92, 246, 0.38); }
#screen-outlet [data-screen="B4"] [data-list="notifications"] > [data-item]:not([data-read]) [data-bind="title"] { font-weight: 700; }
#screen-outlet [data-screen="B4"] [data-list="notifications"] > [data-item][data-read] [data-bind="title"] { font-weight: 500; color: var(--sys-label-2); }
#screen-outlet [data-screen="B4"] [data-list="notifications"] > [data-item][data-read] [data-bind="kind"] { color: var(--sys-label-3); }
#screen-outlet [data-screen="B4"] [data-section="loading"] [data-bar] { width: 34%; }
#screen-outlet [data-screen="B4"] [data-section="loading"] [data-bar="long"] { width: 78%; }
#screen-outlet [data-screen="B4"] [data-section="error"] p { text-align: center; }
#screen-outlet [data-screen="B4"] [data-part="counter-row"]:not(:has(> [data-bind="counter"]:not([hidden]):not(:empty))) { visibility: hidden; }

/* H1 «Mobil biltvätt» on a phone narrower than 375 px: the header's car icon gives its room to the title, which otherwise
   touches the «Vi kommer till dig» chip (task 11, owner-notes 31) */
@media (max-width: 374px) {
  [data-screen="H1"] header div[data-part="head-icon"] { display: none; }
}

/* CF4 and CF4.offline-under-korning on a phone under 380 px (round 44 item 6): the trip's three tiles are 95 px wide, and
   their p-2 with the labels' wide tracking set «HASTIGHET» (86 px) over its 77 px box and broke «12:34 / 9m» under its
   clock. 6 px a side and no wide tracking give both their line (80 of 81 px at 360). 390 keeps the design. */
@media (max-width: 379.98px) {
  #screen-outlet [data-screen="CF4"] [data-part="ride-stats"] > div,
  #screen-outlet [data-screen="CF4.offline-under-korning"] [data-part="ride-stats"] > div { padding-left: 6px; padding-right: 6px; }
  #screen-outlet [data-screen="CF4"] [data-part="ride-stats"] > div > .uppercase,
  #screen-outlet [data-screen="CF4.offline-under-korning"] [data-part="ride-stats"] > div > .uppercase { letter-spacing: 0; }
}
/* CF3 under 380 px (round 44 item 6): beside the SOS tile «Jag är framme» is 260 px wide at 360 and its pickup pill kept
   31 px for the street («Dr…»). The pill is not drawn there, as when the flow hides it for a locked code; «Hämtningsplats»
   on the route card above names the whole pickup. */
@media (max-width: 379.98px) {
  #screen-outlet [data-screen="CF3"] #arrived-btn > [data-part="pickup-pill"] { display: none; }
}
/* C5.offline under 380 px (round 44 item 6): with app.in_app_call and app.support_chat on, the greyed call tile
   (call-needs-connection) is 186 px wide at 360 beside SOS and «Ruttalternativ», and its px-4 and gap-3 left «Kräver
   anslutning» 106 of the 113 px it needs, so it broke onto two lines. 12 px a side and a 10 px gap beside the icon give it
   114. 390 keeps the design. */
@media (max-width: 379.98px) {
  #screen-outlet [data-screen="C5.offline"] [data-part="call-needs-connection"] { padding-left: 12px; padding-right: 12px; }
  #screen-outlet [data-screen="C5.offline"] [data-part="call-needs-connection"] > div:first-child { gap: 10px; }
}

/* round 16: a question that opens its answer in place (M4's FAQ) turns its chevron down while open, from its own aria-expanded */
#screen-outlet [data-screen] button[aria-expanded] > [data-part="chev"] { transition: transform 0.2s ease; }
#screen-outlet [data-screen] button[aria-expanded="true"] > [data-part="chev"] { transform: rotate(90deg); }

/* round 16, «Profil»: P7's switches keep their drawn 50 x 28 track, and the finger's target reaches 44 px around it */
#screen-outlet [data-screen="P7"] [role="switch"].toggle-track::after { content: ''; position: absolute; inset: -8px -4px; }
/* P6 «Radera konto» sets no font of its own: it read in the phone's fallback face, not the app's */
#screen-outlet [data-screen="P6"] { font-family: var(--font-body); }

/* ==========================================================================
   Round 16 (2026-10-24): sign-in and onboarding (A*). Their generated CSS drew 8.5–13.5 px words, 40 px controls and
   14 px fields. On a phone every word is 14 px at least (a drawing marked aria-hidden keeps its own sizes), a field's
   text is 16 px so iOS does not zoom the page, and every control is a 44 px target with its look unchanged (as Q6).
   ========================================================================== */
#screen-outlet [data-screen^="A"] :is(.text-xs, .text-label-sm, .text-label-md, .text-body-sm, [class~="text-[8.5px]"], [class~="text-[9px]"],
  [class~="text-[9.5px]"], [class~="text-[10px]"], [class~="text-[10.5px]"], [class~="text-[11px]"], [class~="text-[11.5px]"], [class~="text-[12px]"],
  [class~="text-[12.5px]"], [class~="text-[13px]"], [class~="text-[13.5px]"]):not([aria-hidden="true"] *) { font-size: 14px; }
#screen-outlet [data-screen^="A"] :is(.text-xs, .text-label-sm, .text-label-md, .text-body-sm):not([class*="leading-"]) { line-height: 1.35; }
#screen-outlet [data-screen^="A"] :is(input:not([type="checkbox"], [type="radio"]), textarea, select) { font-size: 16px; }
/* their headers stand in the page's flow (only A8's is sticky): nothing scrolls under them, so the shared fade would only
   draw a darker box on A6's and A2's aurora; the round controls keep the shared material */
#screen-outlet [data-screen^="A"] header[class*="top-0"]:not(.sticky, .fixed, .absolute)::before { content: none; }
/* (not the terms and privacy links inside a sentence: on A9 a 44 px box round them would cover the lines of the consent
   above and below, and a tap meant to tick the box would open the terms) */
#screen-outlet [data-screen^="A"] :is(a, button, label)[data-action]:not([data-action="terms"], [data-action="privacy"]):not(.fixed, .absolute, .sticky):not([data-holds-action]) { position: relative; }
#screen-outlet [data-screen^="A"] :is(a, button, label)[data-action]:not([data-action="terms"], [data-action="privacy"]):not([data-holds-action])::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-width: 44px; min-height: 44px; width: 100%; height: 100%;
}
/* A2's three promises wrap whole at 360 px («Fast pris» and «0% påslag» broke inside their chips) */
#screen-outlet [data-screen="A2"] [data-part="trust-chips"] { flex-wrap: wrap; gap: 8px; }
/* A9: «Skapa konto med e-post» looks dimmed until the terms are ticked (the design's second look), yet answers a tap: it
   shakes the terms box (the design's animate-shake, which its generated CSS lacks), never under reduced motion or «Lugnare
   rörelser» */
#screen-outlet [data-screen="A9"] #signupBtn[aria-disabled="true"] { opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-calm) #screen-outlet [data-screen="A9"] .animate-shake { animation: a9-shake 420ms ease-in-out; }
}
@keyframes a9-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* a case's conversation keeps its line breaks (round 34, «Anmäl ett problem»): the business's answer with an offer is
   «Erbjudande: N kr», a blank line, then its words (routes/visit-disputes.js reply), and a customer or staff's outcome note
   writes in paragraphs. I4.problem and F4.problem have the class from their design; the business's case cards, IF3's «Anmält
   problem» and FP1's «Anmälda problem», take it here, on the card only (their generated CSS is never rebuilt for it) */
:is([data-screen="IF3"] [data-part="case"], [data-screen="FP1"] [data-part="cases"]) .whitespace-pre-line { white-space: pre-line; }

/* the salon's calendar (BTY.4, BTY.10): EP2.vecka's hours are a list, each row its eight cells laid in the design's one grid;
   the two sheets fit the phone's visible height and scroll inside themselves (a canvas drawn 844 px high left «Blockera» below
   the fold on a short phone), and «Ny bokning»'s stylists wrap */
#screen-outlet [data-screen="EP2.vecka"] [data-list="week-hours"] > [data-item] { display: contents; }
#screen-outlet [data-screen="EP2.blockera"] [class~="h-[844px]"] { height: 100dvh !important; }
#screen-outlet [data-screen="EP2.blockera"] [class~="max-h-[770px]"] { max-height: 100% !important; }
#screen-outlet [data-screen="EP2.kassabokning"] [class~="max-h-[96vh]"] { overflow-y: auto; }
#screen-outlet [data-screen="EP2.kassabokning"] [data-list="desk-staff"] { flex-wrap: wrap; }
/* ==========================================================================
   Owner-notes 62 (2026-10-26): KS0's «Sök resa» holds up to three tiles on two columns («Flyg», «Hotell», «Flyg + hotell»),
   each hidden by data-requires while its search is off ([hidden]). A tile alone on its row (the last one shown, at an odd
   place among those shown: the third of three, or the one search that is on) takes the whole row. A browser without
   «of S» drops the rule and the tile keeps its column.
   ========================================================================== */
#screen-outlet [data-screen^="KS0"] [data-part="search"] .grid > :nth-child(odd of :not([hidden])):nth-last-child(1 of :not([hidden])) { grid-column: 1 / -1; }
/* ==========================================================================
   EP3.tv (sector-book salon-tv): the salon's wall screen is a 1920×1080 board (its design). The whole board is on show on any
   screen, centred and never scrolled, scaled in steps by the smaller of the screen's two sides (the last matching step wins),
   up to twice its size on a 4K screen that reports its own pixels.
   ========================================================================== */
#screen-outlet > [data-screen="EP3.tv"] { display: flex; align-items: center; justify-content: center; height: 100dvh; min-height: 0; overflow: hidden; background: var(--sys-base); }
#screen-outlet > [data-screen="EP3.tv"] > div { flex: none; }
#screen-outlet > [data-screen="EP3.tv"] [data-bind="est_wait"] { font-size: 1.5rem; white-space: nowrap; }
@media (min-width: 2880px) and (min-height: 1620px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 1.5; } }
@media (min-width: 3840px) and (min-height: 2160px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 2; } }
@media (max-width: 1919.98px), (max-height: 1079.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.9; } }
@media (max-width: 1727.98px), (max-height: 971.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.8; } }
@media (max-width: 1535.98px), (max-height: 863.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.7; } }
@media (max-width: 1343.98px), (max-height: 755.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.6; } }
@media (max-width: 1151.98px), (max-height: 647.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.5; } }
@media (max-width: 959.98px), (max-height: 539.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.4; } }
@media (max-width: 767.98px), (max-height: 431.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.3; } }
@media (max-width: 575.98px), (max-height: 323.98px) { #screen-outlet > [data-screen="EP3.tv"] > div { zoom: 0.2; } }

/* ==========================================================================
   Paper (Wave 10, contract C3): html[data-apple-theme="light"] (js/core/theme.js). The surfaces above read the staircase
   (css/tokens.css) and the designs' own colours turn in css/theme-light.css; what is left here is what the frame itself
   colours by name: a sheet's foot material on the screens that set their own, and the pale accents drawn for obsidian,
   darkened in their own hue so they read on paper. B1's sheet is css/apple-liquid-glass.css's.
   ========================================================================== */
html[data-apple-theme="light"] #screen-outlet :is([data-screen="C1"], [data-screen="C1.karta"], [data-screen="C8"], [data-screen="CF3"], [data-screen="CF3.restaurang"], [data-screen="CF4"], [data-screen="CF4.offline-under-korning"], [data-screen="CF4.till-kund"]) {
  --sheet-bg: var(--sys-raised);
}
html[data-apple-theme="light"] [data-screen="M7"] :is([data-action="mute"], [data-action="speaker"])[aria-pressed="true"] { color: var(--sys-accent-ink); }
html[data-apple-theme="light"] [data-screen="M7"] [data-action="mute"][aria-pressed="true"] + span { color: var(--sys-label); }
html[data-apple-theme="light"] [data-screen="M7"] [data-action="speaker"][aria-pressed="false"] { background-color: rgba(168, 85, 247, 0.12); color: var(--sys-accent-ink); }
html[data-apple-theme="light"] [data-screen="M7"] [data-action="speaker"][aria-pressed="false"] + span { color: var(--sys-label-2); }
html[data-apple-theme="light"] [data-screen="CP2"] [data-today="true"] { color: var(--sys-accent-ink) !important; }
html[data-apple-theme="light"] [data-part="saved"][data-tone="error"] [data-bind="saved_line"],
html[data-apple-theme="light"] [data-screen] [data-bind="break_note"][data-tone="error"] { color: #B91C1C !important; }
html[data-apple-theme="light"] #screen-outlet [data-screen="CF1"] button[data-action="rest"][data-tone="rest"] [data-bind="rest_line"] { color: #B45309; }
html[data-apple-theme="light"] :is(#screen-outlet, #overlay-outlet) a[data-row="vehicle"] > [data-part="vehicle-line"] { color: #047857; }
html[data-apple-theme="light"] .ride-return-chevron { color: var(--sys-accent-ink); }
html[data-apple-theme="light"] .testkit-status { color: #B45309; }

/* ==========================================================================
   The «Demo» mark (launch, owner-notes 100; js/core/demo-mark.js). A demo company, pin, offer or ad the showcase shows a
   real viewer carries the design system's «badge badge--live» pill with t('Demo') as its own last child: in a card's corner
   ([data-demo-badge="corner"]), after a page's title ("inline"), or over a map pin ("pin"). A real element, never a drawn
   ::after (an action's ::after is its hit area). It takes no tap (the card under it does), and on a photo the corner pill
   is the solid amber so it reads on any picture, light or dark. :where() keeps a card's own positioning first.
   ========================================================================== */
:where([data-demo="corner"], [data-demo="pin"]) { position: relative; }
[data-demo-badge] { pointer-events: none; white-space: nowrap; line-height: 1.2; }
[data-demo-badge="corner"] { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 6; background: rgba(245, 158, 11, 0.92); color: #1A1204; }
[data-demo-badge="inline"] { margin-inline-start: 8px; vertical-align: middle; font-size: 10px; }
/* the light look's --live (#B45309) on the pill's own amber film measures 4.45:1, under AA for its 10 px: the darker amber, 6.3:1 */
:is(html[data-apple-theme="light"], html[data-theme="light"]) .badge--live[data-demo-badge="inline"] { color: #92400E; }
[data-demo-badge="pin"] { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 6; padding: 1px 6px; font-size: 9px;
  background: rgba(245, 158, 11, 0.92); color: #1A1204; }

/* «Översatt automatiskt» on what a business wrote, and the business's «Översättningar» sheet (core/listing-i18n.js, core/listing-translations-sheet.js) */
.listing-tr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px;
  background: var(--sys-film); color: var(--sys-label-2); font-size: 15px; line-height: 1.3; }
.listing-tr[hidden] { display: none; }
.listing-tr-action { flex-shrink: 0; min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 700; color: var(--sys-label); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.listing-tr-original { font-size: 15px; line-height: 1.35; color: var(--sys-label-2); margin-top: 2px; unicode-bidi: plaintext; text-align: start; }
.listing-tr-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 6px 16px calc(18px + env(safe-area-inset-bottom)); }
.listing-tr-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-tr-chip { min-height: 44px; padding: 0 14px; border-radius: 22px; font-size: 15px; font-weight: 600; color: var(--sys-label-2); background: var(--sys-film); touch-action: manipulation; }
.listing-tr-chip.is-on { color: #fff; background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.listing-tr-note { font-size: 15px; color: var(--sys-label); }
.listing-tr-note[hidden] { display: none; }
.listing-tr-rows { display: flex; flex-direction: column; gap: 12px; }
.listing-tr-row { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--sys-film); }
.listing-tr-source { font-size: 15px; line-height: 1.35; color: var(--sys-label-2); unicode-bidi: plaintext; text-align: start; }
.listing-tr-input { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 12px; font-size: 16px; line-height: 1.4; color: var(--sys-label); background: transparent; border: 1px solid var(--sys-separator, rgba(128, 128, 128, 0.35)); resize: vertical; }
.listing-tr-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.listing-tr-tag { flex: 1; min-width: 0; font-size: 15px; color: var(--sys-label-2); }
.listing-tr-btn { min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--sys-label); background: var(--sys-film); touch-action: manipulation; }
.listing-tr-btn.is-primary { color: #fff; background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.listing-tr-btn:disabled { opacity: 0.6; }
.listing-tr-empty { font-size: 15px; color: var(--sys-label-2); padding: 12px 0; }

/* «Översättningar» on a business's own screen: the one full-width row that opens the translations sheet (core/listing-translations-sheet.js) */
.listing-tr-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 16px; border-radius: 14px;
  font-size: 15px; font-weight: 700; color: var(--sys-label); background: var(--sys-film); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.listing-tr-open .material-symbols-outlined { font-size: 20px; }
/* «Föreslå från foto» and «Hämta produktfakta» on a business's form, and the label that says it is a suggestion (core/listing-suggest.js) */
.listing-ai { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-ai[hidden] { display: none; }
.listing-ai-btn { min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--sys-label); background: var(--sys-film); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.listing-ai-btn:disabled { opacity: 0.6; }
.listing-ai-block { display: flex; flex-direction: column; gap: 8px; }
.listing-ai-block[hidden] { display: none; }
.listing-ai-label { padding: 8px 12px; border-radius: 12px; background: var(--sys-film); color: var(--sys-label); font-size: 15px; line-height: 1.35; }
.listing-ai-note { font-size: 15px; line-height: 1.35; color: var(--sys-label-2); }
.listing-ai-facts { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 18px; list-style: disc; font-size: 15px; line-height: 1.35; color: var(--sys-label-2); }
.listing-ai-sources { display: flex; flex-direction: column; }
.listing-ai-source { display: block; width: 100%; min-height: 44px; font-size: 15px; line-height: 1.3; text-align: start; text-decoration: underline; overflow-wrap: anywhere; color: var(--sys-label); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* «Uppgifterna kommer från förra gången.» + «Rensa» (core/last-details.js), and partner own-customer lookup (core/firm-customer-search.js) */
.sys-last-details-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; margin-bottom: 10px;
  border-radius: 12px; background: var(--sys-film); border: 1px solid var(--sys-separator, rgba(128, 128, 128, 0.22));
  color: var(--sys-label-2); font-size: 14px; line-height: 1.35; }
.sys-last-details-bar[hidden] { display: none; }
.sys-last-details-text { flex: 1; min-width: 0; text-align: start; }
.sys-last-details-clear { flex-shrink: 0; min-height: 44px; padding: 0 8px; border-radius: 10px; font-size: 14px; font-weight: 700;
  color: var(--sys-label); background: transparent; border: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sys-last-details-clear:hover { text-decoration: underline; }

.sys-firm-customer-search { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin-bottom: 12px;
  border-radius: 14px; background: var(--sys-film); border: 1px solid var(--sys-separator, rgba(128, 128, 128, 0.24)); }
.sys-firm-customer-search[hidden] { display: none; }
.sys-firm-customer-label { font-size: 13px; font-weight: 600; color: var(--sys-label-2); text-align: start; }
:is(#screen-outlet, #overlay-outlet) [data-screen] input.sys-firm-customer-input,
.sys-firm-customer-input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 16px; line-height: 1.35;
  color: var(--sys-label); background: transparent; border: 1px solid var(--sys-separator, rgba(128, 128, 128, 0.35)); }
.sys-firm-customer-status { font-size: 13px; line-height: 1.35; color: var(--sys-label-2); text-align: start; }
.sys-firm-customer-status[hidden] { display: none; }
.sys-firm-customer-list { display: flex; flex-direction: column; gap: 6px; }
.sys-firm-customer-list[hidden] { display: none; }
.sys-firm-customer-hit { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28); color: var(--sys-label); text-align: start; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sys-firm-customer-hit-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--sys-label); }
.sys-firm-customer-hit-meta { font-size: 13px; line-height: 1.3; color: var(--sys-label-2); }

/* ==========================================================================
   Split-pane list | detail base slots (WP-01, js/core/split-pane.js).
   Below 700 px the active pane's slot and scroller are display: contents (no box,
   no scroll trap, no containing block for fixed bars), while the inactive slot and
   the empty detail placeholder stay display: none. From 700 px upward, css/responsive.css
   turns #screen-outlet[data-pane="split"] into a 380 px | 1fr two-pane grid without
   remounting either screen on fold, unfold or rotation.
   ========================================================================== */
#screen-outlet > [data-split-slot],
#screen-outlet > [data-split-slot] > [data-split-scroll] {
  display: contents;
}
#screen-outlet[data-split-focus="list"] > [data-split-slot="detail"],
#screen-outlet[data-split-focus="detail"] > [data-split-slot="list"],
#screen-outlet [data-split-empty] {
  display: none;
}
#screen-outlet > [data-split-slot] > [data-split-scroll] > [data-screen] {
  display: block;
  width: 100%;
  min-height: 100dvh;
  max-width: 100% !important;
  margin-inline: auto;
}
#screen-outlet > [data-split-slot] > [data-split-scroll] > [data-screen] > :is(.max-w-sm, main.max-w-sm, .aurora-bg, .aurora-background, .aurora-glow):not(.fixed) {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto;
}
#screen-outlet > [data-split-slot] > [data-split-scroll] > [data-screen][data-chrome-screen],
#screen-outlet > [data-screen][data-chrome-screen] {
  overflow-x: clip !important;
}
@media (max-width: 559.98px) {
  #screen-outlet > [data-split-slot] > [data-split-scroll] > [data-screen] > :is(main, div).border-x {
    border-left-width: 0 !important;
    border-right-width: 0 !important;
  }
}

/* A language's flag (owner-notes 174, js/core/lang-flags.js): 20 × 14, rounded corners, beside the language's own name
   wherever a person picks one; the drawing carries its hairline edge. Empty until its flow fills it. */
[data-part="flag"] { display: inline-flex; flex: none; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; line-height: 0; vertical-align: -2px; }
[data-part="flag"]:empty { display: none; }
[data-part="flag"] > svg { display: block; width: 20px; height: 14px; }
/* in a button of words only (B2's and P2's «Språk», the «Översättningar» sheet's chips, the Jam guide's language), a space
   before the name */
:is(.b2-seg__btn, .sys-p2-seg__btn, .listing-tr-chip, [data-action="jam-guide-lang"]) > [data-part="flag"] { margin-inline-end: 8px; }

/* The pickers (2026-11-10, js/core/pick-sheet.js): the language picker (core/lang-picker.js) and the business switcher
   (core/partner-drawer.js) are one family on the frame's sheet (.support-chat): a search field, then one row per choice, its mark
   (a flag, a logo or an initial), its name and a line under it, the current one first, on a film and checked. Rows light up
   under the finger as B2's do. The search is 16 px so iOS never zooms the page into it. */
.pick-search { position: relative; display: block; margin-block: 12px 6px; margin-inline: 16px; }
.pick-search[hidden] { display: none; }
.pick-search > svg { position: absolute; inset-inline-start: 13px; top: 13px; width: 18px; height: 18px; color: var(--sys-label-2); pointer-events: none; }
.pick-input { box-sizing: border-box; width: 100%; min-height: 44px; padding-block: 10px; padding-inline: 40px 14px; border-radius: 12px;
  border: 1px solid var(--sys-hairline); background: var(--sys-film); color: var(--sys-label); font-family: var(--font-body); font-size: 16px;
  line-height: 22px; -webkit-appearance: none; appearance: none; }
.pick-input::placeholder { color: var(--sys-label-2); opacity: 1; }
.pick-input:focus-visible { outline: 2px solid var(--sys-accent); outline-offset: 1px; }
.pick-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px;
  padding-block: 4px 16px; padding-inline: 8px; }
/* every row keeps its height in the scrolling list (a row that shrank would hide the ones under it) */
.pick-list > * { flex-shrink: 0; }
.pick-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding-block: 8px; padding-inline: 12px;
  border: 0; border-radius: 14px; background: transparent; color: var(--sys-label); text-align: start; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease; }
.pick-row[hidden] { display: none; }
.pick-row:active, .pick-row[aria-busy="true"] { background: var(--sys-film-strong); }
.pick-row:focus-visible { outline: 2px solid var(--sys-accent); outline-offset: -2px; }
.pick-row[aria-current="true"] { margin-block-end: 6px; background: var(--sys-film); box-shadow: inset 0 0 0 1px var(--sys-hairline); }
.pick-row:disabled { cursor: default; }
/* the mark: a flag 28 × 20, or a business's logo or initial in a 36 px squircle */
.pick-mark { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; }
.pick-mark > [data-part="flag"] { width: 28px; height: 20px; border-radius: 4px; vertical-align: 0; }
.pick-mark > [data-part="flag"] > svg { width: 28px; height: 20px; }
.pick-mark > .pick-initial { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--sys-film-strong); box-shadow: inset 0 0 0 1px var(--sys-hairline); color: var(--sys-label);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1; }
.pick-mark > .pick-initial > img { position: absolute; inset: 0; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.pick-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
/* each name at the row's start (the mark's side), its words in their own direction: an Arabic name in a German list, a German
   one in an Arabic list */
.pick-name, .pick-line { align-self: flex-start; max-width: 100%; unicode-bidi: isolate; overflow-wrap: anywhere; }
.pick-name { font-family: var(--font-body); font-size: 17px; line-height: 23px; font-weight: 600; color: var(--sys-label); }
.pick-line { font-family: var(--font-body); font-size: 15px; line-height: 20px; color: var(--sys-label-2); }
.pick-row > .sys-pd-state { flex: none; }
.pick-check { flex: none; display: inline-flex; width: 24px; height: 24px; color: var(--sys-accent-ink); }
.pick-check > svg { width: 24px; height: 24px; }
.pick-note { margin: 0; padding-block: 28px; padding-inline: 16px; font-family: var(--font-body); font-size: 15px; text-align: center; color: var(--sys-label-2); }
.pick-note[hidden] { display: none; }
/* the business switcher: the other sectors' businesses folded under one row, and each sector's own heading once unfolded */
.pick-fold { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; margin-block-start: 8px;
  padding-block: 10px; padding-inline: 12px; border: 0; border-top: 1px solid var(--sys-hairline); background: transparent;
  color: var(--sys-label); font-family: var(--font-body); font-size: 16px; font-weight: 600; text-align: start; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pick-fold > svg { flex: none; width: 22px; height: 22px; color: var(--sys-label-2); transition: transform 200ms ease; }
.pick-fold[aria-expanded="true"] > svg { transform: rotate(180deg); }
.pick-fold:focus-visible { outline: 2px solid var(--sys-accent); outline-offset: -2px; border-radius: 12px; }
.pick-group { margin: 0; padding-block: 14px 4px; padding-inline: 12px; font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--sys-label-2); }
@media (prefers-reduced-motion: reduce) { .pick-row, .pick-fold > svg { transition: none; } }

/* Long words (owner-notes 181): the menus' three-way segments («Utseende»: Automatisk · Ljus · Mörk) are a third of the
   drawer each, and a long one-word label (Finnish «Automaattinen») ran out of its pill. The label may now break inside its
   pill, hyphenated where the browser knows the language; at 16 px a line two lines still fit the 38 px pill, so the short
   labels of every other language look exactly as before. */
[data-screen="B2"] .b2-seg .b2-seg__btn,
[data-partial="driver-drawer"][data-partial][data-partial] .p-drawer-segmented .p-drawer-seg-btn {
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 16px;
}

/* ==========================================================================
   Long words in every language (the owner, 2026-11-09: «texts overlap when the language changes … a long word»; owner-notes
   181). A long compound is hyphenated where the browser knows the language (<html lang>, js/core/i18n.js) and the word
   does not fit: only a word of 12 letters or more, 5 on each side of the hyphen, so the Swedish looks as before. A
   browser without that limit (Safari, so every iPhone) would hyphenate the last word of any line that wraps: there
   nothing is hyphenated by itself. A soft hyphen in a translation («Haupt&shy;untersuchung») breaks everywhere, and is
   how a long word that must fit a narrow box is given its place.
   No overflow-wrap here (round 3, 2026-11-10): break-word on every screen broke words that ran a pixel into their own
   empty padding, where nothing showed («Gransknin/g» on YP0, «Inchecknin/g» on K1, HP1's day names a letter a line in
   Swedish); a word may break only where a rule below says so, for one box.
   What a person types or copies (an address, a number, a mail) is never hyphenated: a hyphen there would be read as
   part of it.
   tests/flows/text-fit/ holds every screen to it in the long languages.
   ========================================================================== */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
}
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(input, textarea, code, kbd, samp, .tabular-nums,
  [dir="ltr"], [translate="no"], a[href^="mailto:"], a[href^="tel:"], [data-bind*="email"], [data-bind*="phone"],
  [data-bind*="url"], [data-bind*="link"], [data-bind*="address"], [data-bind*="plate"]) {
  -webkit-hyphens: manual;
  hyphens: manual;
}
@supports not (hyphenate-limit-chars: 12 5 5) {
  :is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] {
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}

/* P7 at 200 %: the column is 220 px. The statement link's one word («Tillgänglighetsredogörelse», 176 px) has 120 px beside
   its icon, and the preview's «FÖRHANDSVISNING» beside its 32-px icon pushed «Aa» out of the card: each wraps in its own
   box instead of being cut at the screen's or the card's edge (an iPhone hyphenates nothing, above). The preview's text
   column may then be narrower than its title's longest word («texten» at 390 px), so the title breaks in its box too
   rather than being drawn over «Aa» */
#screen-outlet [data-screen="P7"] [data-action="open-statement"] > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#screen-outlet [data-screen="P7"] :is(:has(> #previewCategory), :has(> div > #previewCategory)) { min-width: 0; }
#screen-outlet [data-screen="P7"] :has(> div > #previewCategory) > :first-child { flex-shrink: 0; }
#screen-outlet [data-screen="P7"] :is(#previewCategory, #previewTitle) { overflow-wrap: anywhere; }

/* A flex item that holds a truncating text (a footer's «Klippning · första lediga tid · idag») may shrink to its box, so the
   text's ellipsis shows instead of the row running out of the page (E3 in French at 360 px) */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(.flex, .inline-flex) > :has(> .truncate) {
  min-width: 0;
}

/* A small uppercase label in a row (a stat card's «DURCHSCHNITTSBEWERTUNG», «VOIMASSAOLOPÄIVÄT») gives way to its icon or
   value: it may shrink, and its long word wraps (hyphenated on the phone) inside the card instead of running out of it. A
   pill (rounded, a fixed height) keeps its one line */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(.flex, .inline-flex) > .uppercase:not([class*="rounded"]):has(+ :is(.material-symbols-outlined, svg)),
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(.flex, .inline-flex) > :is(.material-symbols-outlined, svg) + .uppercase:not([class*="rounded"]) {
  min-width: 0;
}

/* HP1's day cells are 20 px tall: a status word is one line with its ellipsis (Greek «Διαθέσιμο» wrapped onto the next
   row's cell); the cell's colour says it too */
#screen-outlet [data-screen^="HP1"] [data-list="cells"] > [data-item] {
  min-width: 0;
  overflow: hidden;
}
#screen-outlet [data-screen^="HP1"] [data-list="cells"] [data-bind="word"] {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The driver's drawer: the car under «Fordon» (plate · model) is one line with its ellipsis. Its line is a flex box, which
   draws no ellipsis of its own: the words' span does (it was cut mid-letter, in the right-to-left languages most) */
:is(#screen-outlet, #overlay-outlet) [data-part="vehicle-line"] > [data-bind="vehicle_status"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* E3's days: a day's cell is 6rem, and grows for a long word (French «Aujourd'hui», German «Donnerstag», Lithuanian
   «Ketvirtadienis») instead of letting it run out; the row scrolls sideways anyway */
#screen-outlet [data-screen^="E3"] [data-list="days"] > [data-item] {
  width: auto;
  min-width: 6rem;
}
#screen-outlet [data-screen^="E3"] [data-list="days"] [data-part="rel"] {
  white-space: nowrap;
}
/* C3's drawn licence plate (the driver's car, «Förare hittad»): its EU band held a «★» over the «S», both at the taxi's
   14 px type floor: 28 px of letters in the 18 px plate, both cut. The band keeps its «S» whole (the floor kept); and a
   plate reads left to right in every language */
#screen-outlet [data-screen^="C3"] :has(> [data-section="plate"]) {
  direction: ltr;
  flex-shrink: 0;
}
#screen-outlet [data-screen^="C3"] :has(+ [data-section="plate"]) > span:first-child:not(:last-child) { display: none; }
#screen-outlet [data-screen^="C3"] [data-section="plate"] { white-space: nowrap; }

/* E3's action bar: the summary gives way (its ellipsis), the duration beside it stays one line («45 min») */
#screen-outlet [data-screen^="E3"] [data-chrome="actionbar"] [data-bind="duration"] {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Round 2 of the text-fit check (2026-11-10): lines that ran off the phone, and rows that would not share
   ========================================================================== */
/* A header's title and its line give way however deep they sit: every box that holds them may shrink (M5's avatar row was
   617 px wide in a 360 px header, so the chrome's ellipsis never had a width to cut at) */
#screen-outlet [data-chrome="header"] :has(:is([data-chrome="title"], [data-chrome="subtitle"])) {
  min-width: 0;
}
/* the words of a line laid out as a row inside the subtitle (LP1's dot and register line) are cut with their own ellipsis */
#screen-outlet [data-chrome="header"] [data-chrome="subtitle"] :is(.flex, .inline-flex) > :not(.material-symbols-outlined, svg, [class*="rounded-full"]:empty) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* A truncating box laid out as a row draws no ellipsis of its own: its words do (GA1's «Att ansöka eller ansökt» beside its
   icon, CA2's «Göteborg · Ansökte …»); one that holds only words is a block, so it draws its own (IA1's chip, Y1's step
   line) */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(.flex, .inline-flex).truncate > :not(.material-symbols-outlined, svg, [class*="rounded-full"]:empty) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] .inline-flex.truncate:not(:has(> *)),
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] .sys-w15-bar-sub.sys-w15-bar-sub:not(:has(> *)) {
  display: inline-block;
  max-width: 100%;
}
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] .flex.truncate:not(:has(> *)) {
  display: block;
}
/* A text column beside an icon in a row (the templates' class-less <div> holding a label and its value, CF8's «Besiktning»)
   may shrink, so its long word wraps inside the card instead of running out over the next one */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(.flex, .inline-flex) > div:not([class]):not(:has(button, input, select, textarea, a, img, svg, [data-action])) {
  min-width: 0;
}
/* a small uppercase label kept to one line (YP8's and YP9's section names) ends with an ellipsis when its row is too short */
:is(#screen-outlet, #overlay-outlet, #drawer-outlet) [data-screen] :is(.flex, .inline-flex) > .uppercase.whitespace-nowrap:not([class*="rounded"]) {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* a value picked from a wheel (YF7's day, E3's time) is one line in its slot, with its ellipsis */
#screen-outlet [data-part="slot"] {
  min-width: 0;
  overflow: hidden;
}
#screen-outlet [data-part="slot"] > [data-bind="label"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The taxi admin's header (CA1, CA2, CA5, CA6): the frame's 3-slot grid (above) gives its middle the width it asks for and
   left the «Admin · Taxi» pill a side column narrower than itself, over the date (in Swedish too at 390 px). Here the
   sides take their own width first and the middle the rest, its title and date ending with an ellipsis (no CA header is
   one tests/flows/header-centre.mjs holds centred) */
#screen-outlet [data-screen^="CA"] header:has(> .rounded-full:last-child) {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  column-gap: 8px;
}
#screen-outlet [data-screen^="CA"] header:has(> .rounded-full:last-child) > :nth-child(2) {
  min-width: 0;
  max-width: 100%;
}
#screen-outlet [data-screen^="CA"] header:has(> .rounded-full:last-child) > :nth-child(2) :is(h1, p) {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#screen-outlet [data-screen^="CA"] header:has(> .rounded-full:last-child) > :last-child { white-space: nowrap; }
/* C14 (a shared ride's page) keeps its title centred: the title keeps to the room the brand leaves on each side (8rem),
   ending with an ellipsis («Κοινή διαδρομή» ran over «SeeYouSoon»; the Swedish fits as before) */
#screen-outlet [data-screen^="C14"] header:has(h1) > :nth-child(2) {
  min-width: 0;
  width: calc(100vw - 2rem - 16rem); /* a width: the chrome's layered rule holds its max-width at 100 % */
}
#screen-outlet [data-screen^="C14"] header:has(h1) > :nth-child(2) h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Two stats side by side, each a label over its value (YF7's «Kvar att köra idag» and «Rast senast om», CF9's «Längsta
   vila senaste 24 h»): they share their row. The first kept its whole width and squeezed the second to a word a line, over
   the first (Somali, French, Greek). Only a row of exactly these two columns, each with a bound value (YF7, CF9, F9, Y5):
   a page laid out as a column with justify-between (EP3, EP6, CF8, CP1, W4, Y4, YP3) would have grown its footer up the
   screen, and C6's price note would have left its edge. One :has() each, since :has() does not nest */
:is(#screen-outlet, #overlay-outlet) [data-screen] .flex.justify-between:not(.flex-col) > .flex-col:first-child:has(> [data-bind]):has(+ .flex-col:last-child > [data-bind]),
:is(#screen-outlet, #overlay-outlet) [data-screen] .flex.justify-between:not(.flex-col) > .flex-col:first-child:has(> [data-bind]) + .flex-col:last-child:has(> [data-bind]) {
  flex: 1 1 0;
  min-width: 0;
}
/* HP4's packages: the name gives way (it wraps) so the minutes beside it stay clear of the price */
#screen-outlet [data-screen^="HP4"] [data-list="packages"] [data-bind="name"] { min-width: 0; }

/* Q16: the five sectors' tiles are a fifth of the card each: a sector's word wraps inside its tile («Déménagement»,
   «Reinigung», «Κομμωτήριο»), and «Underhållsläge»'s button shares its row with the words beside it */
#screen-outlet [data-screen^="Q16"] .grid-cols-5 > div > span:not(.material-symbols-outlined) {
  min-width: 0;
  max-width: 100%;
  text-align: center;
}
#screen-outlet [data-screen^="Q16"] [data-part="maintenance"] > div > div:first-child { min-width: 0; }
#screen-outlet [data-screen^="Q16"] [data-part="maintenance"] [data-action="maintenance"] {
  flex-shrink: 1;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

/* Y9: the data processing agreement's link is a pill with a sentence in it: the pill grows to its lines */
#screen-outlet [data-screen^="Y9"] [data-action="open-dpa"] {
  height: auto;
  min-height: 2rem;
  max-width: 100%;
  padding-block: 6px;
  white-space: normal;
  text-align: center;
}

/* G2: the floors are a fifth of their row each: a floor's words take two lines in a button that grows to them */
#screen-outlet [data-screen^="G2"] [data-action="pick-floor"] {
  height: auto;
  min-height: 40px;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

/* C3's driver card: the arrival («ca 3 min», Somali «qiyaastii 3 daqiiqo») takes two lines in its box rather than pushing
   the box over the car; the car's model is one line and ends with an ellipsis when its row is short */
#screen-outlet [data-screen^="C3"] :has(> [data-bind="eta_mins"]) { max-width: 9rem; }
#screen-outlet [data-screen^="C3"] [data-bind="eta_mins"] { text-align: center; overflow-wrap: anywhere; }
#screen-outlet [data-screen^="C3"] [data-bind="vehicle_model"] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Q10's and YP0's four steps: a step's word keeps to its quarter («Unter&shy;nehmen» ran over «Dokumente»), breaking at its
   soft hyphen. Only here: on every centred item this undid the empty states' own max-w classes */
:is(#screen-outlet, #overlay-outlet) :is([data-screen^="Q10"], [data-screen^="YP0"]) .grid-cols-4 > .flex-col.items-center > span {
  max-width: 100%;
}
/* IF1's trades chip (uppercase, one line) ends with an ellipsis in its chip: the header's status chip keeps its size by the
   chrome's layered rule, so it is held to the line's width instead */
#screen-outlet [data-screen^="IF1"] [data-chrome="status"]:has([data-bind="trades_chip"]) { max-width: 50%; }
#screen-outlet [data-screen^="IF1"] [data-bind="trades_chip"] {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* HP6: the two kinds of car wash are half the row each: a kind's words take their lines in a button that grows to them */
#screen-outlet [data-screen^="HP6"] [data-action="pick-kind"] {
  height: auto;
  min-height: 2.5rem;
  padding-block: 6px;
  white-space: normal;
  text-align: center;
}
/* FP1: one tab for all and one per cleaner: the row scrolls sideways when they are more than it holds, as the app's other
   tab rows do, each tab keeping its words and its count */
#screen-outlet [data-screen^="FP1"] [data-list="tabs"] {
  overflow-x: auto;
  scrollbar-width: none;
}
#screen-outlet [data-screen^="FP1"] [data-list="tabs"] > [data-item] {
  flex: 1 0 auto;
  white-space: nowrap;
}

/* EP4: a service's «0 bokade v. 46» (one line, beside its flame) gives way to the service's name and ends with an ellipsis */
#screen-outlet [data-screen^="EP4"] :has(> [data-bind="booked_label"]) { min-width: 0; flex-shrink: 1; }
#screen-outlet [data-screen^="EP4"] [data-bind="booked_label"] { overflow: hidden; text-overflow: ellipsis; }

/* C2 while its prices come (C2.laddar-priser): the one-line «Beräknar rutter och priser…» under the title keeps to the
   header, with its ellipsis (Somali «Waa la xisaabinayaa waddooyinka iyo qiimayaasha…» ran out of it) */
#screen-outlet [data-screen="C2.laddar-priser"] header :has(.whitespace-nowrap) { min-width: 0; max-width: 100%; }
#screen-outlet [data-screen="C2.laddar-priser"] header .flex > .whitespace-nowrap {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Round 3: in a translation only (html:not(:lang(sv))). A Swedish word was measured against its box when the screen was
   drawn; a translated one was not. Where the text-fit check found a translated label out of its card or cut, that box,
   and only that one, lets its words break (a label) or ends its one line with an ellipsis. The Swedish never moves: the
   layout check (layout-impact.mjs) holds it.
   ========================================================================== */
html:not(:lang(sv)) #screen-outlet :is(
  [data-screen^="Q16"] .grid-cols-5 > div > span:not(.material-symbols-outlined),
  [data-screen^="IF1"] .uppercase.font-bold,
  [data-screen^="CA"] span.uppercase,
  [data-screen^="CP"] .uppercase.tracking-wider,
  [data-part="ride-stats"] .uppercase,
  [data-screen^="WP1"] .uppercase.font-bold,
  [data-bind="done_count"],
  [data-screen^="DP6"] :is([data-action="pick-kind"], label > span),
  [data-screen^="DP8"] [data-part="numbers"] span,
  [data-screen^="HP1"] [data-part="rating-tile"] .uppercase,
  [data-screen^="K1"] [data-action="focus-dates"] div.text-xs,
  [data-screen^="KP1"] [data-bind="types_line"],
  [data-list="perk_chips"] [data-bind="title"],
  [data-action="set-reminder-lead"] span,
  :is([data-screen^="Q10"], [data-screen^="YP0"]) .grid-cols-4 > .flex-col.items-center > span,
  [data-screen^="Q11"] :is(h3, p),
  [data-screen^="T11"] [data-bind="support_title"],
  [data-screen^="CP1"] h2,
  [data-screen^="E6"] [data-list="days"] [data-part="rel"],
  [data-screen^="EP4"] [data-part="wellness"] [data-part="status"],
  [data-screen^="K6"] [data-action="pick-type"] [data-part="chosen"],
  [data-screen^="DP4"] [data-part="report"] span.font-semibold,
  [data-screen^="C6"] [data-section="fixed-price"],
  [data-screen^="C7"] span.whitespace-nowrap,
  [data-screen^="CF4"] div.whitespace-nowrap.uppercase
) {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}
html:not(:lang(sv)) #screen-outlet [data-screen^="K1"] [data-action="focus-dates"] > .flex-1 { min-width: 0; }
html:not(:lang(sv)) #screen-outlet :is(
  [data-screen^="DP2"] :is([data-bind="w_kitchen"], [data-bind="kitchen_status"]),
  [data-screen^="EP2"] [data-action="new-booking"] span:not(.material-symbols-outlined),
  [data-screen^="FP1"] span.font-bold.tracking-wider,
  [data-part="support-card"] [data-bind="support_badge"],
  [data-screen^="FA1"] h1 span,
  [data-screen^="T11"] p.font-medium
) {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
/* the «Översättningar» row (EP4, HP4, IF5): its button's words may take two lines beside the label (German «Ansehen und
   korrigieren» ran over «Übersetzungen») */
html:not(:lang(sv)) #screen-outlet [data-part="translations-row"] [data-action="open-translations"] {
  flex-shrink: 1;
  min-width: 0;
  max-width: 55%;
  white-space: normal;
  text-align: center;
}
/* DP2's kitchen status (German «KÜCHE · Geöffnet»): its column gives way, so the words' ellipsis shows inside the card */
html:not(:lang(sv)) #screen-outlet [data-screen^="DP2"] .text-right.shrink-0 { flex-shrink: 1; min-width: 0; }
/* C7's receipt: the badge (Latvian «TAKSOMETRS») goes under «SeeYouSoon» when the two do not fit beside the date, never
   over it */
html:not(:lang(sv)) #screen-outlet [data-screen^="C7"] [data-part="receipt-brand"] { flex-wrap: wrap; row-gap: 2px; }
/* E2's waitlist: a long button (Russian «Следить за свободным временем») takes two lines and leaves the words beside it
   their room; it had squeezed them into a 44 px column */
html:not(:lang(sv)) #screen-outlet [data-screen="E2"] .sys-e2-waitlist-btn { flex-shrink: 1; min-width: 0; max-width: 45%; text-align: center; }
/* the offline home's pill: the time since ends with an ellipsis inside the pill, never out of it */
html:not(:lang(sv)) #screen-outlet :is([data-screen="B1"], [data-screen^="B1."]) .sys-b1-offline-since {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Round 3b: the boxes round 3's ellipsis could not reach, because their parent was wider than its room (an ellipsis needs a
   box that is narrower than its words) */
/* T4's «now» marker: centred under the dot while the word fits its 48 px column; from the column's edge, reading on
   under the line, when it does not (French «MAINTENANT» ran off the screen's left edge) */
html:not(:lang(sv)) #screen-outlet [data-screen^="T4"] .flex-col.items-center > [data-section="now"] { width: 100%; min-width: 0; }
html:not(:lang(sv)) #screen-outlet [data-screen^="T4"] .flex-col.items-center > [data-section="now"] > span.rounded { align-self: safe center; white-space: nowrap; }
/* IF4: a document's name gives way to its chip (German «Verifiziert» was pushed out of the card), and the compliance
   header's «100 % verifierat» goes under the title when the two do not fit (Swedish too at 360 px: «EFTERLEVNADSSTATUS»
   is one word) */
#screen-outlet [data-screen^="IF4"] [data-list="certs"] [data-item] > .justify-between > .flex,
#screen-outlet [data-screen^="IF4"] [data-list="certs"] [data-item] > .justify-between > .flex > div:last-child { min-width: 0; }
/* (and a document's name longer than its room breaks rather than run under the chip: a soft hyphen in its translation where
   it has one, de «Haftpflicht-versicherung») */
#screen-outlet [data-screen^="IF4"] [data-list="certs"] :is([data-bind="label"], [data-bind="kind"]) { min-width: 0; overflow-wrap: break-word; }
/* (in a translation, and on a phone under 380 px in Swedish, where it was cut; the title's block grows from nothing, so the
   row wraps only when its narrowest width does not fit. At 390 px the Swedish pill only ran into the card's padding) */
html:not(:lang(sv)) #screen-outlet [data-screen^="IF4"] .justify-between:has(> div > [data-bind="pct"]) { flex-wrap: wrap; gap: 8px; }
html:not(:lang(sv)) #screen-outlet [data-screen^="IF4"] .justify-between:has(> div > [data-bind="pct"]) > :first-child { flex: 1 1 0%; }
@media (max-width: 380px) {
  #screen-outlet [data-screen^="IF4"] .justify-between:has(> div > [data-bind="pct"]) { flex-wrap: wrap; gap: 8px; }
  #screen-outlet [data-screen^="IF4"] .justify-between:has(> div > [data-bind="pct"]) > :first-child { flex: 1 1 0%; }
}
/* WP2: the new bay's name field gives way to its button (an input keeps about 20 characters' width as a flex item, so
   German «Hinzufügen» was pushed out of the phone) */
#screen-outlet [data-screen^="WP2"] [data-purpose="add-slot-row"] > input { min-width: 0; }
/* DP2: the pause button goes under its line when the two do not fit (Somali «Hakii dhammaan kuwa ku jira liiska
   cuntada»), its words on two lines if they must */
html:not(:lang(sv)) #screen-outlet [data-screen^="DP2"] div:has(> [data-action="pause-items"]) { flex-wrap: wrap; row-gap: 8px; }
html:not(:lang(sv)) #screen-outlet [data-screen^="DP2"] [data-action="pause-items"] { flex-shrink: 1; min-width: 0; max-width: 100%; }
html:not(:lang(sv)) #screen-outlet [data-screen^="DP2"] [data-action="pause-items"] [data-bind="pause_label"] { min-width: 0; white-space: normal; text-align: start; }
/* Q17's header (Greek «Συνεργάτης», Icelandic «Samstarfsaðili»): the partner pill takes its own width and the title the
   rest, ending with an ellipsis; the 3-slot grid had left the pill a side narrower than itself, over the title */
html:not(:lang(sv)) #screen-outlet [data-screen^="Q17"] header:has(> .rounded-full:last-child) {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  column-gap: 8px;
}
/* E1's «Karta» (421bb6984): the map's box is drawn `h-72`, a class E1's generated CSS does not hold, so it had no height and only
   the map's count and its salon card showed under the chips (the test page, 2026-11-12: 358 x 108 px in all) */
#screen-outlet [data-screen^="E1"] [data-part="map-wrap"] > [data-map-credit] { height: 18rem; }
/* E1's hero card top badge row: keep clear of the favourite button at the inline end in both LTR and RTL */
#screen-outlet [data-screen="E1"] [data-part="hero"] > div.top-2\.5 { inset-inline: 0.625rem 3.25rem !important; }
/* D3's dish dialog: keep the grab handle pinned to the top centre on phones as well as tablets, and place the action footer in
   the flex column below the scroller so it never covers the note field or last option */
#screen-outlet [data-screen^="D3"] .sheet-track[data-dialog] > [data-sheet] > header:has(> [data-sheet-handle]) { padding-top: 28px; }
#screen-outlet [data-screen^="D3"] .sheet-track[data-dialog] > [data-sheet] > header > button[data-sheet-handle].absolute { position: absolute; }
#screen-outlet [data-screen^="D3"] [data-sheet="dialog"] > div.overflow-y-auto { flex: 1 1 auto; min-height: 0; padding-bottom: 1rem !important; }
#screen-outlet [data-screen^="D3"] [data-sheet="dialog"] > footer.absolute { position: relative !important; inset: auto !important; flex-shrink: 0; }
/* D6's hero banner without a photo: keep a dark ground under its white heading in daylight mode */
html[data-apple-theme="light"] #screen-outlet [data-screen="D6"] section.glass-card > div.relative.h-44 { background-color: #12151f; }
/* DP1's ready order avatar badge: keep the checkmark glyph inside the 1.5px surface tolerance of w-10 h-10 without overlapping the centred initials */
#screen-outlet [data-screen="DP1"] [data-list="ready"] div.w-10.h-10 > span.bg-emerald-500 {
  bottom: -3px;
  inset-inline-start: auto;
  inset-inline-end: -3px;
  font-size: 9px;
  line-height: 1;
}
/* Partner screens (DP, EP, FP, GP, CP, HP, JP, KP, LP, OP, WP, YP — excluding IF*): numbers, counts and sums use the screen's
   own humanist sans-serif with tabular numerals, never a coder's monospace font (owner feedback 2026-11-15) */
#screen-outlet > :is(
  [data-screen^="DP"], [data-screen^="EP"], [data-screen^="EF"],
  [data-screen^="FP"], [data-screen^="FF"], [data-screen^="GP"], [data-screen^="GF"],
  [data-screen^="CP"], [data-screen^="HP"], [data-screen^="HF"],
  [data-screen^="JP"], [data-screen^="JF"], [data-screen^="KP"], [data-screen^="KO"], [data-screen^="KF"],
  [data-screen^="LP"], [data-screen^="OP"], [data-screen^="WP"], [data-screen^="WF"], [data-screen^="YP"]
) :is(.font-mono, [data-bind="done_count"], [data-bind="sales_today"], [data-bind="total_sales"]) {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-variant-numeric: tabular-nums !important;
}
/* DP4 («Dagsrapport») and DP8 («Rädda maten»): inputs, selects and textareas use arbitrary bg-[#0D1017] / bg-surface-container/70
   not compiled in DP4.css / DP8.css, leaving white boxes under white text in dark mode; give them a dark surface ground in dark mode
   and a clean light surface in daylight mode */
#screen-outlet > :is([data-screen="DP4"], [data-screen="DP8"]) :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  background-color: #0D1017 !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
:root[data-theme="light"] #screen-outlet > :is([data-screen="DP4"], [data-screen="DP8"]) :is(input:not([type="checkbox"], [type="radio"]), select, textarea),
html[data-apple-theme="light"] #screen-outlet > :is([data-screen="DP4"], [data-screen="DP8"]) :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}
/* DP3 / DP4 header subtitle: when the «Granskad» badge ([data-part="reviewed"]) is hidden, hide the adjacent separator dot too */
#screen-outlet [data-part="reviewed"][hidden] + span {
  display: none !important;
}
/* Hide empty actionbar wrapper when all its direct action buttons are feature-gated [hidden] (e.g. DP3 walkin_queue) */
#screen-outlet [data-chrome="actionbar"]:not(:has(> :not([hidden]))) {
  display: none !important;
}

/* ---- WP-4 Crafts («Hantverk») management screens (IF1–IF6, IA1): phone, 150%/200% zoom, multi-language & RTL ---- */
#screen-outlet :is([data-screen^="IF"], [data-screen="IA1"]) .flex-wrap { flex-wrap: wrap; }
#screen-outlet [data-screen^="IF"] [data-field-error]:not([hidden]) {
  display: block;
  overflow-wrap: break-word;
}
/* IA1: no horizontal scroll from decorative glow; KPI cards grow vertically and stack at 200% zoom */
#screen-outlet [data-screen="IA1"] > main { overflow-x: hidden; }
#screen-outlet [data-screen="IA1"] [data-part="kpi-grid"] > div {
  min-width: 0;
  height: auto !important;
  min-height: 6.5rem;
}
html.a11y-text-5 #screen-outlet [data-screen="IA1"] [data-part="kpi-grid"] {
  grid-template-columns: minmax(0, 1fr) !important;
}
/* IF1 & IF1.inga-forfragningar: the KPI strip wraps cleanly at 150%/200% zoom and in long languages */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="IF1"] [data-part="if1-kpis"] {
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)) !important;
}
#screen-outlet [data-screen^="IF1"] [data-list="requests"] [data-item] > div:first-child,
#screen-outlet [data-screen^="IF1"] [data-list="jobs"] [data-item] > div:first-child {
  flex-wrap: wrap;
  gap: 8px;
}
/* IF2: inline hours input never stretches past its suffix; price-type toggle stacks at 200% zoom; Framkörningsavgift wraps */
#screen-outlet [data-screen="IF2"] [data-field="hours"] {
  flex: 0 0 auto !important;
  width: 4.25rem !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="IF2"] .glass-card > .flex.items-center.justify-between > .min-w-0.flex-1 {
  flex: 1 1 100% !important;
  min-width: 0;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="IF2"] .glass-card .text-sm.font-semibold {
  overflow-wrap: anywhere;
  min-width: 0;
}
html.a11y-text-5 #screen-outlet [data-screen="IF2"] [data-requires="app.crafts_offer_prices"] > div.grid.grid-cols-2 {
  grid-template-columns: minmax(0, 1fr) !important;
}
/* IF3: customer header row wraps; 3-column summary grids collapse at 150%/200% zoom */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="IF3"] .grid.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)) !important;
}
/* IF4: compliance status header wraps whenever needed; trade chips wrap text and collapse to 1 column at 200% zoom */
#screen-outlet [data-screen^="IF4"] .justify-between:has(> div > [data-bind="pct"]) {
  flex-wrap: wrap;
  gap: 8px;
}
#screen-outlet [data-screen^="IF4"] .justify-between:has(> div > [data-bind="pct"]) > :first-child {
  flex: 1 1 10rem;
  min-width: 0;
}
#screen-outlet [data-screen^="IF4"] .glass-card p.uppercase {
  overflow-wrap: anywhere;
  min-width: 0;
}
#screen-outlet [data-screen^="IF4"] [data-list="trades"] [data-action="toggle-trade"] {
  min-width: 0;
  height: auto !important;
  min-height: 3rem;
  padding-block: 0.5rem;
}
#screen-outlet [data-screen^="IF4"] [data-list="trades"] [data-action="toggle-trade"] [data-bind="label"] {
  white-space: normal !important;
  overflow-wrap: break-word;
  text-align: start;
}
html.a11y-text-5 #screen-outlet [data-screen^="IF4"] [data-list="trades"] {
  grid-template-columns: minmax(0, 1fr) !important;
}
/* IF5: translations row, Mini-CV photo row, seller-facts button, org number label, and 2-column price/CV grids wrap cleanly at 150%/200% zoom */
#screen-outlet [data-screen="IF5"] [data-part="translations-row"] {
  flex-wrap: wrap;
  gap: 8px;
}
#screen-outlet [data-screen="IF5"] .sys-cv-partner-photo-row {
  flex-wrap: wrap;
}
#screen-outlet [data-screen="IF5"] .pt-2.border-t > span.block,
#screen-outlet [data-screen="IF5"] [data-part="seller-facts"] > span:last-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
#screen-outlet [data-screen="IF5"] [data-part="seller-facts"] {
  max-width: 100%;
  white-space: normal;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="IF5"] :is([data-part="prices-top-grid"], [data-part="prices-cancel-grid"], .sys-cv-grid-2) {
  grid-template-columns: minmax(0, 1fr) !important;
}
/* IF6: day rows and their break («Rast») wrap at 150%/200% zoom; role radiogroup stacks at 200% zoom */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="IF6"] [data-list="days"] [data-item] > :is(div:first-child, [data-part="day-break"]) {
  flex-wrap: wrap;
  gap: 8px;
}
html.a11y-text-5 #screen-outlet [data-screen="IF6"] [data-part="invite-section"] [role="radiogroup"].grid-cols-2 {
  grid-template-columns: minmax(0, 1fr) !important;
}
@layer chrome {
  /* IF4 & IF5 header subtitle: allow status word («Hantverkare») to wrap or shrink inside subtitle at 150%/200% zoom */
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="IF"] [data-chrome="header"] [data-chrome="subtitle"]:has([data-chrome="status"]) {
    flex-wrap: wrap !important;
    white-space: normal !important;
    row-gap: 2px !important;
  }
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="IF"] [data-chrome="header"] [data-chrome="status"] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Live taxi ride share & playlist buttons (owner live-ride report 2026-11-15):
   Wrap music card header/paste rows, quick-actions bar («Dela resa», «Dela resans status»), C5 «Dela resan»,
   C9 «Dela», CF19 «Dela min resa», and share_receipt so button labels never collide in sv/ar or at 150%/200% zoom */
#screen-outlet [data-section="ride-music"] > div:has([data-bind="ride_music_title"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
#screen-outlet [data-section="ride-music"] :has(> [data-bind="ride_music_title"]) {
  flex: 1 1 140px;
  min-width: 0;
  overflow-wrap: break-word;
}
#screen-outlet [data-section="ride-music"] :has(> [data-action="share-playlist"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
#screen-outlet [data-section="ride-music"] :is(
  [data-action="join-jam"],
  [data-action="play-ride-music"],
  [data-action="share-playlist"],
  [data-action="save-ride-music"],
  [data-action="cancel-ride-music"],
  [data-action="remove-ride-music"]
) {
  height: auto !important;
  min-height: 44px !important;
  padding-block: 0.5rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
#screen-outlet [data-section="ride-music"] [data-part="music-paste"] [data-field="ride_music_url"] {
  width: 100%;
  min-height: 44px;
  border-radius: 0.5rem;
  background-color: #0d111a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}
html[data-theme="light"] #screen-outlet [data-section="ride-music"] [data-part="music-paste"] [data-field="ride_music_url"] {
  background-color: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}
#screen-outlet [data-section="ride-music"] [data-part="music-paste"] > div:has([data-action="save-ride-music"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
#screen-outlet [data-section="ride-music"] [data-part="music-paste"] [data-action="save-ride-music"] {
  flex: 1 1 140px;
  min-width: 0;
}
#screen-outlet [data-action="rider-coming"]:not([hidden]) {
  height: auto !important;
  min-height: 56px;
  padding: 0.5rem 0.75rem;
}
#screen-outlet [data-purpose="quick-actions-bar"] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
#screen-outlet [data-purpose="quick-actions-bar"] > button:not([hidden]) {
  flex: 1 1 56px;
  min-width: 56px;
  max-width: 100%;
}
#screen-outlet [data-purpose="quick-actions-bar"] > button > span:not([data-unread]) {
  display: block;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: break-word;
  text-align: center;
  line-height: 1.2;
}
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) div:has(> [data-bind="share_receipt"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  row-gap: 0.25rem;
}
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) [data-bind="share_receipt"]:not([hidden]) {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
}
#screen-outlet [data-screen^="C5"] section:has(> [data-action="share-live"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
#screen-outlet [data-screen^="C5"] [data-action="share-live"] {
  flex: 1 1 150px;
  min-width: 0;
  align-items: flex-start;
}
#screen-outlet [data-screen^="C5"] [data-action="share-live"] > div:last-child {
  min-width: 0;
  flex: 1 1 0%;
  overflow-wrap: break-word;
}
#screen-outlet [data-screen^="C5"] [data-action="stop-share"]:not([hidden]) {
  height: auto !important;
  min-height: 44px;
  padding-block: 0.5rem;
  white-space: normal;
}
#screen-outlet [data-screen^="C5"] :is([data-action="contact-driver"], #safetyButton, [data-action="route-support"]) {
  height: auto !important;
  min-height: 48px;
}
#screen-outlet [data-screen^="C9"] div:has(> [data-action="share-ride"]),
#screen-outlet [data-screen^="C9"] div:has(> [data-action="contact-support"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
#screen-outlet [data-screen^="C9"] div:has(> [data-action="share-ride"]) > div:first-child,
#screen-outlet [data-screen^="C9"] div:has(> [data-action="contact-support"]) > div:first-child {
  flex: 1 1 160px;
  min-width: 0;
}
#screen-outlet [data-screen^="C9"] div:has(> [data-action="share-ride"]) > div:first-child > div:last-child,
#screen-outlet [data-screen^="C9"] div:has(> [data-action="contact-support"]) > div:first-child > div:last-child {
  min-width: 0;
  flex: 1 1 0%;
  overflow-wrap: break-word;
}
#screen-outlet [data-screen^="C9"] [data-action="share-ride"] {
  height: auto !important;
  min-height: 44px;
  padding-block: 0.5rem;
  white-space: normal;
  text-align: center;
}
#screen-outlet [data-screen^="CF19"] :is([data-action="check-ok"], [data-action="check-help"], [data-action="alert-staff"], [data-requires="app.sos_silent"] > button) {
  height: auto !important;
  min-height: 48px;
  padding-block: 0.5rem;
  white-space: normal !important;
  text-align: center;
}
#screen-outlet [data-screen^="CF19"] :is([data-action="alert-staff"], [data-requires="app.sos_silent"] > button) > span:not(.material-symbols-outlined) {
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: break-word;
}

/* Step 3 — First-class live taxi ride layout across C3*–C7*, C9, C14*, CF19* (owner live-ride report 2026-11-15):
   1. When a kept block ([data-sheet-keep]) does not fit above the open stop on a short or zoomed screen, sheet.js omits
      data-keep on .sheet-track and the block scrolls in the sheet's flow instead of sticking over the rest of the sheet. */
#screen-outlet .sheet-track:not([data-keep]):not([data-flow]):not([data-dialog]) > [data-sheet] > [data-sheet-keep],
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet .sheet-track:not([data-flow]):not([data-dialog]) > [data-sheet] > [data-sheet-keep] {
  position: relative !important;
  top: auto !important;
}
@media (max-height: 540px) {
  #screen-outlet .sheet-track:not([data-flow]):not([data-dialog]) > [data-sheet] > [data-sheet-keep] {
    position: relative !important;
    top: auto !important;
  }
}

/* 2. C3* under large text (150 % / 200 %): keep the map gap tall enough for the 2-row header, hide the decorative center-pin
      overlay inside [data-sheet-gap] so it never collides with the header or gets clipped by overflow-hidden, and let
      [data-sheet-foot] scroll in .sheet-track's flow rather than sticking in the home-indicator band. */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="C3"]:not([data-screen="C3.offline"]) [data-sheet-gap] {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C3.offline"] [data-sheet-gap] {
  height: 240px !important;
  min-height: 240px !important;
  max-height: 240px !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="C3"] [data-sheet-gap] > div.pointer-events-none {
  display: none !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen^="C3"], [data-screen="C5.offline"]) [data-sheet-foot] {
  position: relative !important;
  bottom: auto !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C3.offline"] header ~ .absolute.top-\[52px\] {
  top: calc(96px + var(--safe-top, 0px)) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C3.offline"] header ~ .absolute.top-\[52px\] > div {
  max-width: 100%;
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C3.offline"] header ~ .absolute.top-\[52px\] span {
  white-space: normal !important;
  min-width: 0;
  overflow-wrap: break-word;
}

/* 3. C4* and C5* on short landscape screens and at 150 % / 200 % text size: cap peek and rest below the top bar and map
      credit, keep C5's header above .sheet-track, and hide redundant floating map summary cards when vertical room is tight */
#screen-outlet [data-screen="C5"] [data-sheet-map] {
  z-index: auto !important;
}
#screen-outlet [data-screen^="C5"] header[class*="top-0"] {
  z-index: 31 !important;
}
@media (max-height: 540px) {
  #screen-outlet :is([data-screen^="C4"], [data-screen^="C5"]) {
    --sheet-peek: min(110px, calc(100cqh - var(--safe-top, 0px) - var(--sheet-open, 64px) - 36px));
    --sheet-cap: min(36cqh, calc(100cqh - var(--safe-top, 0px) - var(--sheet-open, 64px) - 36px));
  }
  #screen-outlet :is([data-screen="C4.framme"], [data-screen="C4.framme-vantar"]) .absolute.top-\[86px\]:not([data-sheet] *),
  #screen-outlet [data-screen^="C5"] [data-section="arrival"],
  #screen-outlet [data-screen="C5.offline"] :is([data-purpose="car-model-and-battery"], .map-credit) {
    display: none !important;
  }
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen^="C4"], [data-screen^="C5"]) {
  --sheet-peek: min(140px, calc(100cqh - var(--safe-top, 0px) - var(--sheet-open, 64px) - 36px));
  --sheet-cap: min(44cqh, calc(100cqh - var(--safe-top, 0px) - var(--sheet-open, 64px) - 36px));
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="C4.framme"], [data-screen="C4.framme-vantar"]) .absolute.top-\[86px\]:not([data-sheet] *),
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="C5"] [data-section="arrival"],
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C5.offline"] :is([data-purpose="car-model-and-battery"], .map-credit) {
  display: none !important;
}
#screen-outlet :is([data-screen="C4.framme"], [data-screen="C4.framme-vantar"]) .absolute.top-\[86px\]:not([data-sheet] *) {
  top: calc(96px + max(0px, var(--safe-top, 0px) - 2.5rem)) !important;
}
#screen-outlet [data-screen="C5.offline"] {
  --sheet-open: 136px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C5.offline"] {
  --sheet-open: 180px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C5.offline"] :is([data-purpose="navigation-header"], [data-purpose="offline-notification-banner"]) {
  flex-wrap: wrap;
  gap: 6px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C5.offline"] [data-purpose="primary-dock-actions"] {
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C5.offline"] :is([data-action="call-driver"], [data-part="call-needs-connection"]) {
  flex: 1 1 100%;
  order: -1;
  height: auto !important;
  min-height: 52px;
  padding-block: 0.5rem;
  white-space: normal;
  min-width: 0;
}

/* 4. 3-slot headers on C3*, C4*, C5*, C6*: on tablets/landscape (>= 700px) let map headers use the full width when zoomed
      or on C4.foraren-avbokade; on narrow phones (< 700px) at 150 % / 200 %, wrap the middle status pill to row 2 */
#screen-outlet [data-screen="C4.foraren-avbokade"] header.justify-between {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  column-gap: 8px;
}
#screen-outlet [data-screen="C4.foraren-avbokade"] header.justify-between > :nth-child(2) {
  min-width: 0;
  max-width: 100%;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C4.foraren-avbokade"] header > :nth-child(2),
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C4.foraren-avbokade"] header > :nth-child(2) span {
  white-space: normal !important;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 700px) {
  html:root body:not(:has(#overlay-outlet > [data-overlay])) #screen-outlet > [data-screen="C4.foraren-avbokade"][data-pane="map"] header,
  html:is(.a11y-text-4, .a11y-text-5) body:not(:has(#overlay-outlet > [data-overlay])) #screen-outlet > :is([data-screen^="C4"], [data-screen^="C5"])[data-pane="map"] header {
    padding-inline: var(--pane-gap, 16px) !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    column-gap: 8px;
  }
}
@media (max-width: 699.98px) {
  html:root:is(.a11y-text-4, .a11y-text-5) body #screen-outlet [data-screen][data-screen]:is([data-screen^="C3"], [data-screen^="C4"], [data-screen^="C5"], [data-screen^="C6"], [data-screen^="D2"]) :is(header.justify-between, header > div.justify-between):has(> :nth-child(3):last-child) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) !important;
    align-items: center;
    row-gap: 6px;
    column-gap: 8px;
    height: auto !important;
  }
  html:root:is(.a11y-text-4, .a11y-text-5) body #screen-outlet [data-screen][data-screen]:is([data-screen^="C3"], [data-screen^="C4"], [data-screen^="C5"], [data-screen^="C6"], [data-screen^="D2"]) :is(header.justify-between, header > div.justify-between):has(> :nth-child(3):last-child) > :nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }
  html:root:is(.a11y-text-4, .a11y-text-5) body #screen-outlet [data-screen][data-screen]:is([data-screen^="C3"], [data-screen^="C4"], [data-screen^="C5"], [data-screen^="C6"], [data-screen^="D2"]) :is(header.justify-between, header > div.justify-between):has(> :nth-child(3):last-child) > :nth-child(2) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    max-width: 100%;
    min-width: 0;
  }
  html:root:is(.a11y-text-4, .a11y-text-5) body #screen-outlet [data-screen][data-screen]:is([data-screen^="C3"], [data-screen^="C4"], [data-screen^="C5"], [data-screen^="C6"], [data-screen^="D2"]) :is(header.justify-between, header > div.justify-between):has(> :nth-child(3):last-child) > :nth-child(3) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="C4"] {
    --sheet-open: calc(max(0.5rem, 3rem - var(--safe-top, 0px)) + 96px);
  }
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C5"] {
    --sheet-open: 108px;
  }
}

/* 5. C6 and C6.lagt-betyg feedback input contrast in dark and light themes */
#screen-outlet [data-screen^="C6"] input#feedback {
  background-color: #0D1017 !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
:root[data-theme="light"] #screen-outlet [data-screen^="C6"] input#feedback,
html[data-apple-theme="light"] #screen-outlet [data-screen^="C6"] input#feedback {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}

/* 6. Live ride card & text wrapping at 100 % / 150 % / 200 % across C3*, C4*, C7*, C9, C14.framme, CF19* */
#screen-outlet [data-screen="C3.bokad"] [data-sheet] .flex-1.min-w-0.flex.items-center.justify-between {
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
#screen-outlet [data-screen="C3.forare-hittad"] .car-ambient-1 .flex-col {
  gap: 2px;
}
#screen-outlet [data-screen="C3.forare-hittad"] .car-ambient-1 .leading-none {
  line-height: 1.2 !important;
}
#screen-outlet [data-screen="C3.forare-hittad"] div.flex.items-center.justify-between.gap-2:has([data-bind="eta_mins"]) {
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C3.forare-hittad"] [data-part="route-text"] .line-clamp-2 {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
}
#screen-outlet [data-screen="C3.inga-bilar"] [data-action="switch-tier"] {
  flex-wrap: wrap;
  gap: 0.5rem;
  height: auto !important;
}
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) [data-sheet] div.flex.items-start.justify-between:has([data-bind="fare"]) {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) [data-sheet] div.flex.items-start.justify-between:has([data-bind="fare"]) > .flex-1 {
  min-width: 0;
}
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) [data-purpose="driver-information"] > div:first-child {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet :is([data-screen="C4"], [data-screen="C4.forsenad"]) [data-purpose="driver-information"] :has(> [data-bind="ride_company"]) {
  min-width: 0;
  overflow-wrap: break-word;
}
#screen-outlet [data-screen="C4.forsenad"] [data-section="delay"] > div.flex {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet [data-screen="C4.foraren-avbokade"] [data-sheet] div.flex.items-start.justify-between.gap-3.mb-3,
#screen-outlet [data-screen="C4.foraren-avbokade"] [data-section="prev-driver"] {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet [data-screen="C4.foraren-avbokade"] [data-section="prev-driver"] > div {
  min-width: 0;
  overflow-wrap: break-word;
}
#screen-outlet :is([data-screen="C4.ratt-bil"], [data-screen="C4.ratt-bil-larm"]) :is(div[aria-label="Registreringsskylt"], div:has(> [data-bind="vehicle_plate"])) {
  max-width: 100%;
  height: auto !important;
  min-height: 56px;
  padding-block: 6px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="C4.ratt-bil"], [data-screen="C4.ratt-bil-larm"]) [data-bind="vehicle_plate"] {
  font-size: 20px !important;
  letter-spacing: 0.04em !important;
}
#screen-outlet :is([data-screen="C4.ratt-bil"], [data-screen="C4.ratt-bil-larm"]) [data-sheet] .flex.items-center.justify-between,
#screen-outlet :is([data-screen="C4.ratt-bil"], [data-screen="C4.ratt-bil-larm"]) [data-sheet] div:has(> [data-bind="driver_trips_line"]) {
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
#screen-outlet :is([data-screen="C4.ratt-bil"], [data-screen="C4.ratt-bil-larm"]) [data-sheet] .glass-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}
#screen-outlet :is([data-screen="C4.framme"], [data-screen="C4.framme-vantar"]) :is([data-action="chat-driver"], [data-action="safety"]) {
  height: auto !important;
  min-height: 48px;
  padding-block: 0.5rem;
  flex-wrap: wrap;
  white-space: normal;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="C4.framme"], [data-screen="C4.framme-vantar"]) [data-bind="pickup_address"] {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
#screen-outlet [data-screen="C7"] article div.flex.items-start.justify-between.border-b,
#screen-outlet [data-screen="C7"] [data-part="receipt-brand"],
#screen-outlet [data-screen="C7"] div.flex.justify-between.items-baseline:has(#price-ticker) {
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C7"] :is(:has(> [data-bind="vehicle_model"]), [data-bind="vehicle_model"], [data-bind="trip_summary"]) {
  white-space: normal !important;
  min-width: 0;
  overflow-wrap: break-word;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="C7.prisgaranti-skickad"] [data-chrome="actionbar"] {
  position: relative !important;
  bottom: auto !important;
}
#screen-outlet [data-screen^="C9"] [data-part="Position-card"] > div.flex,
#screen-outlet [data-screen^="C9"] [data-section="ride"] div.flex.items-center.justify-between.pb-3 {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet [data-screen^="C9"] div.flex.items-start.gap-2\.5 > div:has(> [data-bind="sos_details"]),
#screen-outlet [data-screen^="C9"] [data-section="ride"] div.flex.items-center.justify-between.pb-3 > div:first-child,
#screen-outlet [data-screen^="C9"] [data-section="ride"] div.flex.items-center.justify-between.pb-3 > div:first-child > div:last-child {
  flex: 1 1 0%;
  min-width: 0;
  overflow-wrap: anywhere;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="C9"] [data-section="ride"] div.grid.grid-cols-2 {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="C9"] :is([data-bind="position_line"], [data-bind="driver_sub"]) {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
#screen-outlet [data-screen^="C9"] :is([data-action="call-112"], [data-action="end-ride"]) {
  height: auto !important;
  min-height: 52px;
  padding-block: 0.5rem;
  white-space: normal;
}
#screen-outlet [data-screen="C14.framme"] .flex.items-center.justify-between {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet [data-screen^="CF19"] .flex.items-center.justify-between,
#screen-outlet [data-screen^="CF19"] .flex.items-start.justify-between {
  flex-wrap: wrap;
  gap: 0.5rem;
}
#screen-outlet [data-screen^="CF19"] :is([data-action="call-112"], [data-action="open-chat"], [data-action="back-to-ride"]) {
  height: auto !important;
  min-height: 48px;
  padding-block: 0.5rem;
  white-space: normal;
}
#screen-outlet [data-screen^="CF19"] .glass-card :is(p, span, div) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="CF19"] [data-bind="Position_address"] {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* 7. 150 % / 200 % text scaling (html.a11y-text-4, html.a11y-text-5) across Food (D2, D3, D5, D6, D8, DA1, DP1-DP8),
      Crafts (I1), Moving (G1, G2, G4), Profile (P1), Start (A9), and Home (B1, B2) */
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D2"] header.sys-d2-topbar:not(.is-scrolled) .sys-d2-scroll-title {
  display: none !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D2"] header.sys-d2-topbar {
  padding-inline: 8px !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D2"] header.sys-d2-topbar > div.flex.items-center.gap-2 {
  gap: 4px !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D2"] :is([data-list="menu"] [data-item], [data-part="allergens"], [data-part="consumer"] p.consumer-note, p.text-xs.text-slate-400) {
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
  height: auto !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D2"] [data-list="menu"] [data-item] {
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen^="D3"].min-h-screen,
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen^="D3"] [data-sheet-host="dialog"] {
  min-height: calc(100dvh / var(--a11y-vz, 1)) !important;
  height: calc(100dvh / var(--a11y-vz, 1)) !important;
  max-height: calc(100dvh / var(--a11y-vz, 1)) !important;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen^="D3"] [data-sheet="dialog"] {
  max-height: calc(100% - var(--safe-top, 0px) - 28px) !important;
  overflow-y: auto !important;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen^="D3"] [data-sheet="dialog"] > div.overflow-y-auto {
  overflow-y: visible !important;
  flex: none !important;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen^="D3"] [data-sheet="dialog"] > footer {
  padding-bottom: calc(var(--safe-bottom, 0px) + 16px) !important;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen^="D3"] footer button[data-action="add-to-cart"] {
  flex: 1 1 140px !important;
  min-width: 0;
  height: auto !important;
  min-height: 48px;
  padding-block: 8px;
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D5"] [data-purpose="restaurant-card"],
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D5"] [data-purpose="restaurant-card"] > div:last-child {
  flex-wrap: wrap;
  gap: 0.5rem;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D5"] [data-purpose="delivery-stepper"] > div.flex {
  flex-wrap: wrap;
  gap: 6px 4px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="D5"] .sheet-track [data-sheet-float] {
  bottom: calc(100% + 36px) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="D6"] [data-part="pick"] p:has(> [data-bind="bigger_party"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="D6"] [data-list="areas"] {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="D8"] [data-part="buy"] :is(label, span) {
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: break-word;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen] .sys-w15-steps-row {
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen] .sys-w15-steps {
  flex-shrink: 1 !important;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="G1"] [data-list="days"] [data-action="pick-day"] {
  width: auto !important;
  min-width: 72px;
  padding-inline: 8px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="G1"] .sys-mov-other-day {
  flex-wrap: wrap !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="G1"] .sys-mov-date-input {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
html.a11y-text-5 #screen-outlet [data-screen="G1"] :is(.sys-mov-days-grid, .sys-cond-summary-grid, .sys-mov-partners-grid) {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="G2"] :is(div:has(> [data-action="photo-scan"]), div.flex.justify-between.items-center:has(.sys-move-stepper)) {
  flex-wrap: wrap;
  gap: 6px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="G2"] div:has(> [data-action="photo-scan"]) > :first-child {
  flex: 1 1 0%;
  min-width: 0;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="G4"] :is([data-action="chat-company"], [data-action="open-support"]) {
  height: auto !important;
  min-height: 44px;
  padding-block: 6px;
  flex-wrap: wrap;
  white-space: normal;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="G4"] div.grid.grid-cols-2:has([data-action="chat-company"]) {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="G4"] [data-part="protocol"] :is(.flex.items-start.justify-between, .flex.items-center.gap-2\.5) {
  flex-wrap: wrap;
  gap: 6px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="G4"] [data-part="protocol"] :is(span, h4, div) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="P1"] .sys-p1-pet-grid {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="P1"] .sys-p1-pet-opt span {
  white-space: normal !important;
  overflow-wrap: break-word;
  min-width: 0;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="P1"] :is(.sys-p1-pnr-head, .sys-p1-consent) {
  flex-wrap: wrap;
  gap: 8px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="P1"] :is(.sys-p1-pnr-title, .sys-p1-consent__text, .sys-w15-row p) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
html.a11y-text-5 #screen-outlet [data-screen^="A9"] > .px-5 {
  padding-inline: 12px !important;
}
html.a11y-text-5 #screen-outlet [data-screen^="A9"] .w-64.h-64 {
  zoom: 0.72;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="B1"] :is(.sys-search-bar, [data-action="open-partner"]) {
  flex-wrap: wrap !important;
  height: auto !important;
  min-height: 52px;
  padding-block: 4px !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="B1"] [data-action="open-partner"] :is(.sys-b1-partner-text, .sys-b1-partner-title, .sys-b1-partner-sub) {
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: break-word;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen="B2"] .b2-wallet__head {
  flex-wrap: wrap;
  gap: 6px 8px;
}
html:is(.a11y-text-4, .a11y-text-5) :is(#screen-outlet, #overlay-outlet) [data-screen="B2"] .b2-wallet__brand {
  min-width: 0;
  overflow-wrap: break-word;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="I1"] [data-part="crafts-mode-nav"] {
  display: flex !important;
  flex-wrap: wrap !important;
  height: auto !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="I1"] [data-part="crafts-mode-nav"] .sys-cv-seg-btn {
  flex: 1 1 auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 38px;
  white-space: normal !important;
}
html.a11y-text-5 #screen-outlet [data-screen="I1"] [data-list="trades"] {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="I1"] [data-action="pick-trade"] :is(h4, p),
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="I1"] [data-part="tab-request"] p.font-bold {
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: break-word;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="I1"] :is(.sys-cv-header-row, .sys-cv-addr-head, [data-part="inline-qa-teaser"] > div, [data-part="tab-request"] .flex.items-center.justify-between, [data-part="tab-request"] .flex.items-center.gap-2) {
  flex-wrap: wrap;
  gap: 6px;
}

/* Food Partner & Admin (DA1, DP1-DP8) at 150 % / 200 % text scaling: collapse cramped 2-/3-col grids and wrap buttons/rows */
@media (max-width: 999.98px) {
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet > :is([data-screen="DA1"], [data-screen="DP1"], [data-screen="DP1.inga-ordrar"], [data-screen="DP2"], [data-screen="DP3"], [data-screen="DP4"], [data-screen="DP5"], [data-screen="DP6"], [data-screen^="DP7"], [data-screen="DP8"]) :is(main, div > main, main > div.relative.z-10, [data-list="menu"], [data-list="tables"], [data-part="report"] > div.grid, [data-part="numbers"]) {
    grid-template-columns: minmax(0, 1fr) !important;
    columns: 1 !important;
  }
  html:is(.a11y-text-4, .a11y-text-5) #screen-outlet > :is([data-screen="DA1"], [data-screen="DP1"], [data-screen="DP1.inga-ordrar"], [data-screen="DP2"], [data-screen="DP3"], [data-screen="DP4"], [data-screen="DP5"], [data-screen="DP6"], [data-screen^="DP7"], [data-screen="DP8"]) :is(main > *, div > main > *) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}
@media (min-width: 1000px) {
  html.a11y-text-5 #screen-outlet > :is([data-screen="DA1"], [data-screen="DP1"], [data-screen="DP1.inga-ordrar"], [data-screen="DP2"], [data-screen="DP3"], [data-screen="DP4"], [data-screen="DP5"], [data-screen="DP6"], [data-screen^="DP7"], [data-screen="DP8"]) :is(main, div > main, main > div.relative.z-10, [data-list="menu"], [data-list="tables"], [data-part="report"] > div.grid, [data-part="numbers"]) {
    grid-template-columns: minmax(0, 1fr) !important;
    columns: 1 !important;
  }
  html.a11y-text-5 #screen-outlet > :is([data-screen="DA1"], [data-screen="DP1"], [data-screen="DP1.inga-ordrar"], [data-screen="DP2"], [data-screen="DP3"], [data-screen="DP4"], [data-screen="DP5"], [data-screen="DP6"], [data-screen^="DP7"], [data-screen="DP8"]) :is(main > *, div > main > *) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="DA1"], [data-screen="DP1"], [data-screen="DP1.inga-ordrar"], [data-screen="DP2"], [data-screen="DP3"], [data-screen="DP4"], [data-screen="DP5"], [data-screen="DP6"], [data-screen^="DP7"], [data-screen="DP8"]) :is(.grid-cols-2, .grid-cols-3, .grid-cols-4) {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="DA1"], [data-screen^="DP"]) :is(.flex.items-center.justify-between, .flex.justify-between, [data-part="live-row"], [data-list="week"] [data-item] > div.flex, [data-list="options"] [data-item], [data-purpose="booking-settings-card"] .flex, [data-part="pickup"] > div.flex):not(.flex-col) {
  flex-wrap: wrap !important;
  gap: 6px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="DP2"] [data-list="menu"] article > div.flex {
  flex-direction: column !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="DP2"] [data-list="menu"] article :is(h2, p[data-bind="description"]) {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="DP4"] div[data-part="report"] > div.h-36 {
  height: auto !important;
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  gap: 12px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="DP4"] div[data-part="report"] > div.h-36 > :not(.inset-0) {
  position: relative !important;
  inset: auto !important;
  flex-wrap: wrap;
  gap: 8px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen="DP4"] div[data-part="report"] h2.text-2xl {
  margin-top: 4px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="DP7"] [data-list="tables"] .glass-tile {
  height: auto !important;
  min-height: 84px;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="DP1"] header[data-chrome="header"] div:has(> [data-bind="active_orders_label"]) {
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet [data-screen^="DP1"] header[data-chrome="header"] [data-bind="active_orders_label"] {
  white-space: normal !important;
  overflow-wrap: break-word;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="DA1"], [data-screen^="DP"]) :is(button, a, label.py-2.px-3):not([data-chrome="back"], [data-action="back"], [data-action="open-drawer"], [role="switch"]) {
  height: auto !important;
  min-height: 36px;
  white-space: normal !important;
  max-width: 100%;
  flex-wrap: wrap;
}
html:is(.a11y-text-4, .a11y-text-5) #screen-outlet :is([data-screen="DA1"], [data-screen^="DP"]) :is(h1, h2, h3, p, span, label, div):not(.material-symbols-outlined) {
  min-width: 0;
  overflow-wrap: break-word;
}
