/* Wik Desktop core -- base.css (owner B). The ONLY file with global element selectors (CONTRACT_D1 §8.9); every class here is .wk-.
   Colours are var(--c-*) set by core/tokens.js applyTheme (from colors.xml / values-night); sizes var(--t-*) / var(--chip) set by
   core/size.js applySizes (SizeTokens, 1 sp = 1 dp = 1 CSS px); the face var(--font) by core/fonts.js applyFont.
   The fallbacks below are the DARK palette (the default mode), so a page whose script failed still reads. */
:root {
  --c-bg: #0C0B14; --c-text: #F0EEF8; --c-subtext: #9993B8; --c-page-bg: #0C0B14; --c-card-fill: #1A1828; --c-card2-fill: #201E32;
  --c-card-border: #2E2B45; --c-accent-shown: #7C4FE0; --c-text-accent: #9875E6; --c-chrome-fill: #0C0B14; --c-icon-tint: #D0CCE0;
  --t-read: 13.7px; --t-main: 13.7px; --t-sub: 13.7px; --t-title: 21.6px; --chip: 48px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; --w-base: 400; --w-name: 700; --w-message: 400;
  --rail-inset: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: var(--c-page-bg); color: var(--c-text);
  font-family: var(--font); font-weight: var(--w-base); font-size: var(--t-read); line-height: 1.25;
  -webkit-font-smoothing: antialiased; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
a { color: inherit; }
::selection { background: var(--c-accent-shown); color: var(--c-on-accent-shown, #fff); }
/* the desktop's own scrollbar: thin, in the border token (an extra; Android draws a fading bar) */
* { scrollbar-width: thin; scrollbar-color: var(--c-card-border) transparent; }
:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 1px; }

/* ── the shell (app.js): rail | left pane | right pane from 900 px; one pane below ─────────────────────────────────────── */
.wk-app { position: fixed; inset: 0; display: flex; flex-direction: row; background: var(--c-page-bg); }
.wk-app[hidden], .wk-full[hidden] { display: none; }
.wk-full { position: fixed; inset: 0; overflow: auto; background: var(--c-page-bg); }
/* W1/93 USERSROW (his "the side pannel with 4 icons has larger top padding than the block where Wik logo is", "use unified paddings"): two
   panes, the tab rail stands on THE chrome grid -- its first tab --head-lead from the top (the headers' slots: core/header.js HEADER_SLOTS, R2), --row-gap
   at both sides (a row's start inset), tab to tab --row-vgap (row to row, size.js rowVGapPx): tab i sits level with the header / row i.
   Was --rail-inset 3 px around every tab (6 px to the first, 6 px between): kept for the one-pane bottom row (CapsuleDrawable navTab) */
.wk-rail {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--row-vgap);
  /* R2: the first tab at the headers' lead (core/header.js HEADER_SLOTS padTop --head-lead), level with their slots */
  padding: var(--head-lead) 0 var(--row-gap) var(--row-gap);   /* W1/96 DI (his "the very left pannel with 4 icons [has] too large right padding - too large gap"): no end padding -- the gap to the pane is the pane header's own start pad (+ the hairline), equal to the rail's start pad at every size */
  position: relative; z-index: 1;   /* W1/96 DI: a lit tab's outward ring (core/chip.js, gap / 2) paints over the hairline, never under the pane */ background: var(--c-chrome-fill); border-inline-end: 1px solid var(--c-divider-hair, var(--c-card-border));
}
.wk-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wk-pane[hidden] { display: none; }
/* W1/96 DI (his "At +2 make sure the settings block shows all icons at top and the settings gear icon is not cropped"): the pane is never
   narrower than its header's slots -- 2 pads + the wordmark (chip x 440 / 288) + 4 chip squares (Wik room, me, wallet, gear) + 4 grid gaps
   + the hairline (core/header.js HEADER_SLOTS, rooms.js renderHeader) -- so at +2 / +3 every slot shows and the gear is whole */
/* W1/116 PHEAD: that floor is --head-fit, written by core/size.js startRowFullPx (the start row's own arithmetic, one copy) */
.wk-pane-left { flex: 0 0 max(var(--left-pane, 400px), var(--head-fit, 400px)); border-inline-end: 1px solid var(--c-divider-hair, var(--c-card-border)); }
.wk-pane-right { flex: 1 1 auto; }
.wk-pane-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.wk-pane-body > * { flex: 1 1 auto; min-height: 0; }
.wk-app[data-layout="one"] { flex-direction: column; }
.wk-app[data-layout="one"] .wk-pane-left { flex: 1 1 auto; border: 0; }
.wk-app[data-layout="one"] .wk-rail {
  order: 9; flex-direction: row; justify-content: space-around; padding: var(--rail-inset) 0; border: 0; gap: 0;
  border-top: 1px solid var(--c-divider-hair, var(--c-card-border));
}
.wk-app[data-layout="one"][data-room="open"] .wk-rail,
.wk-app[data-layout="one"][data-room="open"] .wk-pane-left { display: none; }
.wk-app[data-layout="one"]:not([data-room="open"]) .wk-pane-right { display: none; }


/* a nav tab (CrossroadsActivity.dressBottomNav + CapsuleDrawable navTab): an enclosure the chip's size, the frame corner */
.wk-tab { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--c-subtext); }   /* W1/93: the rail's padding + gap place it */
.wk-app[data-layout="one"] .wk-tab { margin: var(--rail-inset); }   /* the bottom row: NAV_TAB_INSET_DP 3 (CapsuleDrawable.kt:292) */
.wk-tab.wk-on { color: var(--c-active-ink, var(--c-lit, var(--c-accent-shown))); }   /* W1/73 BTNFILL: tintBottomNav activeInk(accent()); W1/74 FILLRAW: lit */
.wk-tab[aria-disabled="true"] { cursor: default; }
.wk-tab[aria-disabled="true"] .wk-icon { opacity: 0.55; }

/* ── shapes and chips ─────────────────────────────────────────────────────────────────────────────────────────────────── */
/* W1/106 ICONPASTE item 3 -- THE app button (core/kit.js dressButton / button): the Wik capsule is its shape layer, so the box itself
   draws no frame and no CSS corner; these are its colours by kind and state, read by the shape's paths. One place for every screen. */
.wk-btn { border: 0; border-radius: 0; background: none; box-shadow: none; --wk-btn-fill: none; --wk-btn-stroke: none; }
.wk-btn-primary { --wk-btn-fill: var(--c-accent); color: var(--c-on-accent); }
.wk-btn-primary:hover { --wk-btn-fill: color-mix(in srgb, var(--c-accent) 92%, var(--c-on-accent)); }
.wk-btn-secondary { --wk-btn-fill: var(--c-card-fill); --wk-btn-stroke: var(--c-card-border); color: var(--c-text); }   /* = kit.pill unlit (Android WikViews.pill / AccountButtons.secondary: c_card plate, c_border line, c_text words) */
.wk-btn-secondary:hover { --wk-btn-fill: color-mix(in srgb, var(--c-card-fill) 92%, var(--c-text)); }
.wk-btn-danger { --wk-btn-fill: var(--c-card-fill); --wk-btn-stroke: var(--c-red); color: var(--c-red-on-card, var(--c-red)); }   /* the same plate; the words = the TEXT-role red on the card (tokens.js red-on-card), the line = the GRAPHIC red */
.wk-btn-danger:hover { --wk-btn-fill: color-mix(in srgb, var(--c-card-fill) 92%, var(--c-red)); }
.wk-btn:disabled, .wk-btn.off { opacity: 0.38; cursor: default; }
.wk-kit-choice:disabled, .wk-kit-choice[aria-disabled="true"] { opacity: 0.38; cursor: default; }   /* W1/109 JS-C: a chip row that cannot act (the biometric lock without a verifier): the .wk-btn dim */
.wk-btn:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 2px; }
.wk-shaped { position: relative; }
.wk-shaped > :not(.wk-shape) { position: relative; }
.wk-shape { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.wk-chip {
  display: inline-flex; flex: 0 0 auto; align-items: center; vertical-align: middle; padding: 0; white-space: nowrap; isolation: isolate;
}
.wk-chip-square { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; overflow: hidden; }
.wk-chip-square[hidden], .wk-chip-label[hidden] { display: none; }
.wk-chip-square > .wk-identity, .wk-chip-square > img, .wk-chip-square > svg { width: 100%; height: 100%; }
.wk-chip-glyph { line-height: 1; font-weight: 400; }
.wk-chip-label { max-width: 24em; overflow: hidden; text-overflow: ellipsis; font-weight: var(--w-base);   /* R3 L1: buildIconChip (MainActivity.kt:2155) sets no bold -- ROLE_PLAIN, the base weight */ }
.wk-shaped > .wk-chip-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.wk-shaped > .wk-chip-sel { position: absolute; pointer-events: none; z-index: 2; }   /* W177A2_DESK A2-8: the selection, OUTSIDE the chip */
.wk-chip-sel[hidden] { display: none; }
.wk-chip-overlay > .wk-chip-count, .wk-chip-overlay > .wk-chip-hash, .wk-chip-overlay > .wk-chip-lock { position: absolute; }
.wk-shaped > .wk-chip-overlay > .wk-chip-count[hidden] { display: none; }
.wk-chip-count { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: var(--c-badge); color: #FFFFFF; font-weight: 700; line-height: 1;
}
.wk-chip-hash { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; line-height: 1; }
.wk-chip-lock { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-subtext); color: var(--c-page-bg); }
/* W1/78 W178_DESK: a locked room's list-row face wears the same disc (chip.js withLockMark) */
.wk-lock-face { position: relative; isolation: isolate; display: inline-flex; flex: 0 0 auto; }   /* the disc stacks INSIDE the face only (no z-index: gate E1 r1 showed a z-index:1 disc bleeding through a covering list) */

.wk-identity { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
.wk-identity-img { width: 100%; height: 100%; object-fit: cover; }
.wk-identity-text { line-height: 1; }
.wk-identity-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── icons, emoji, links ──────────────────────────────────────────────────────────────────────────────────────────────── */
.wk-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: middle; }
.wk-icon-mask { background-color: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
/* W1/96 DI fix1 (his "these buttons are glued to the line"): a pack glyph (stroke on a 24 grid, ink ~1..23) fills its box closer than the
   Material vector it replaced (ink ~3..21), so the post's action row stood ~1-1.5 px nearer the band line; the pack glyph sits at 88 % of
   the button, centred -- its ink keeps at least the Material air above and below (gate R1-GAP, levels 0 / +2 / +3) */
.post-act .post-glyph > .wk-icon-mask { width: 88%; height: 88%; }
.wk-emoji { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; }
.wk-link { text-decoration: underline; cursor: pointer; user-select: text; }
.wk-link-none { text-decoration: none; }

/* ── dialogs (bg_dialog.xml, styles_dialog.xml) ──────────────────────────────────────────────────────────────────────── */
.wk-overlays { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.wk-overlays > * { pointer-events: auto; }
.wk-dialog-scrim { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); }
.wk-dialog {
  width: min(calc(100vw - 32px), 360px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--c-dialog-bg-top), var(--c-dialog-bg));
  border: 1.5px solid var(--c-logo-frame); border-radius: var(--popup-corner); box-shadow: 0 0 0 3px var(--c-logo-glow); color: var(--c-text);
  user-select: text;
}
.wk-dialog:focus { outline: none; }
/* W1/115: the plate carries the painted stroke and glow ring (above the panel, only in its transparent border and outside it); the panel is clipped */
.wk-dialog-plate { display: flex; }
.wk-dialog-plate > .wk-shape { z-index: 1; }
.wk-dialog-plate.wk-shaped > .wk-dialog { border-color: transparent; box-shadow: none; }
.wk-dialog-title { padding: 22px 24px 8px 24px; font-weight: 500; color: var(--c-text); }
.wk-dialog-message { padding: 8px 24px 8px 24px; color: var(--c-subtext); white-space: pre-wrap; }
.wk-dialog-list { overflow: auto; padding: 4px 0; }
/* W1/77 A2-5 (W177A2_DESK): the text-bound frames below ride THE text-frame scale --tf (core/size.js frameScale, AND-FRAME's funnel):
   ChoiceList.newRow and actionRow (touch minimums, UP-ONLY: 48 / 48 / 59.4 and 52 / 52 / 64.4), wrapInput, the capsule word buttons
   (drawn scaled; below the default level a slop keeps their b114 hit rect -- contract §10 "Hit areas") */
.wk-dialog-item { display: block; width: 100%; min-height: max(48px, calc(var(--tf, 1) * 48px)); padding: calc(var(--tf, 1) * 12px) calc(var(--tf, 1) * 24px); color: var(--c-text); text-align: start; }
.wk-dialog-item:hover, .wk-dialog-item:focus-visible { background: rgba(255, 255, 255, 0.06); }
.wk-dialog-item:disabled { color: var(--c-dim); }
.wk-dialog-add { color: var(--c-text-accent, var(--c-text)); }   /* W1/77 A11 (W177A_DESK): a picker's "Add topic" row */
/* W1/108 Q32: THE record list (admin.js recordSheet = AND2 SecureList: Active users + Phone logs) -- one record per row, a bold head,
   dim detail lines, a 12 dp gap and a divider; the trailing action shows on coarse pointers only (a mouse right-clicks) */
.wk-records { display: flex; flex-direction: column; }
.wk-record { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 12px 4px; color: var(--c-text); text-align: start; border-bottom: 1px solid var(--c-divider, rgba(127, 127, 127, 0.25)); }
.wk-record:last-child { border-bottom: 0; }
.wk-record:hover, .wk-record:focus-visible { background: rgba(255, 255, 255, 0.06); }
.wk-record:disabled { cursor: default; background: none; }
.wk-record-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wk-record-head { font-weight: 600; white-space: pre-line; }
.wk-record-line { color: var(--c-subtext); white-space: pre-line; }
.wk-record-more { display: none; flex: 0 0 auto; align-self: center; color: var(--c-text-accent, var(--c-text)); padding: 4px 8px; }
@media (pointer: coarse) { .wk-record-more { display: inline-block; } }
.wk-dialog-input-wrap { padding: calc(var(--tf, 1) * 8px) calc(var(--tf, 1) * 20px) 0 calc(var(--tf, 1) * 20px); }
.wk-dialog-input { width: 100%; padding: calc(var(--tf, 1) * 8px) calc(var(--tf, 1) * 4px); background: transparent; border: 0; border-bottom: 2px solid var(--c-brand-ink); outline: none; color: var(--c-text); }
.wk-dialog-input.wk-multiline { resize: none; line-height: 1.3; font-family: inherit; overflow-y: auto; }
.wk-dialog-input::placeholder { color: var(--c-dim); }
.wk-dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 16px 12px 16px; }
.wk-dialog-button { min-width: 64px; min-height: 48px; padding: 0 12px; color: var(--c-brand-ink); text-transform: uppercase; font-weight: 500; letter-spacing: 0.04em; border-radius: var(--control-corner); --wk-btn-fill: none; }
.wk-dialog-button:hover, .wk-dialog-button:focus-visible { background: rgba(255, 255, 255, 0.06); --wk-btn-fill: rgba(255, 255, 255, 0.06); }
.wk-dialog-button.wk-shaped, .wk-dialog-button.wk-shaped:hover, .wk-dialog-button.wk-shaped:focus-visible { background: none; }
.wk-dialog-button:disabled { color: var(--c-dim); }
.wk-dialog-buttons.wk-sentence .wk-dialog-button { text-transform: none; letter-spacing: 0; }
.wk-dialog-button.wk-danger { color: var(--c-red); }
.wk-dialog-buttons.wk-centred { justify-content: center; }
.wk-dialog-buttons .wk-neutral { margin-inline-end: auto; }   /* r2: alert()'s neutral button at the start */

.wk-toast {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); max-width: min(calc(100vw - 48px), 420px);
  padding: 10px 16px; border-radius: var(--frame-corner); --wk-toast-fill: rgba(40, 40, 44, 0.94); background: var(--wk-toast-fill); color: #FFFFFF; text-align: center;
  pointer-events: none; white-space: pre-wrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.wk-toast.wk-shaped { background: none; }   /* W1/115: the capsule paints it; the CSS corner stays only for the blur shadow */
.wk-identity-glyph { display: inline-block; width: 1em; height: 1em; vertical-align: middle; }

/* ── bottom sheet (BottomSheetDialog: the frame interior tint, 16dp top corners, the handle) ─────────────────────────── */
.wk-sheet-scrim { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.32); }
.wk-sheet {
  width: min(100vw, 640px); max-height: calc(100vh - 24px); overflow: auto; background: var(--c-card-fill); color: var(--c-text);
  border-radius: var(--popup-corner) var(--popup-corner) 0 0; padding: 0 0 8px 0;
}
.wk-sheet-handle { width: 32px; height: 4px; margin: 10px auto 6px auto; border-radius: var(--frame-corner); background: var(--c-muted); }

/* ── the emoji picker (fragment_emoji_picker.xml) ───────────────────────────────────────────────────────────────────────── */
.wk-emoji-picker { display: flex; flex-direction: column; }
/* R3 C4: fragment_emoji_picker.xml:22-36 -- margins 8/8/8/4, padding 10dp, background bg_dialog (the logo panel), hint c_subtext */
.wk-emoji-search { flex: 1 1 auto; min-width: 0; padding: 10px; border: 1.5px solid var(--c-logo-frame); border-radius: var(--frame-corner);
  background: linear-gradient(180deg, var(--c-dialog-bg-top), var(--c-dialog-bg)); box-shadow: 0 0 0 3px var(--c-logo-glow); color: var(--c-text); outline: none; }
.wk-emoji-search::placeholder { color: var(--c-subtext); }
.wk-emoji-searchplate { display: flex; margin: 8px 8px 4px 8px; }
.wk-emoji-searchplate > .wk-shape { z-index: 1; }
.wk-emoji-searchplate.wk-shaped > .wk-emoji-search { border-color: transparent; box-shadow: none; }
.wk-emoji-recent[hidden], .wk-emoji-tabs[hidden], .wk-emoji-divider[hidden] { display: none; }
.wk-emoji-divider { height: 1px; background: var(--c-card-border); }
/* R3 L4: categoryTabScroll is 48dp with scrollbars="none" */
.wk-emoji-tabs { display: flex; height: 48px; overflow-x: auto; scrollbar-width: none; background: var(--c-page-bg); }
.wk-emoji-tabs::-webkit-scrollbar { display: none; }
.wk-emoji-tab { flex: 0 0 auto; height: 48px; margin-inline-end: 4px; display: flex; align-items: center; justify-content: center;
  font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif; opacity: 0.6; }
.wk-emoji-tab.wk-on { opacity: 1; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.wk-emoji-body { overflow-y: auto; padding: 0 6px; }
.wk-emoji-grid { display: grid; }
.wk-emoji-cell { display: flex; align-items: center; justify-content: center; border-radius: var(--control-corner); --wk-btn-fill: none; }
.wk-emoji-cell:hover, .wk-emoji-cell:focus-visible { background: var(--c-card2-fill); --wk-btn-fill: var(--c-card2-fill); }
.wk-emoji-cell.wk-shaped, .wk-emoji-cell.wk-shaped:hover, .wk-emoji-cell.wk-shaped:focus-visible { background: none; }
.wk-emoji-cell .wk-emoji { width: 75%; height: 75%; }
.wk-emoji-text { font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* ── D2: the page stack (app.js: a page over the left pane's tab, the phone's showPage / RoomPageFrame) ─────────────────────── */
.wk-page { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; overflow: auto; background: var(--c-page-bg); }
.wk-page[hidden] { display: none; }
.wk-tab[hidden] { display: none; }

/* ── D2: the shared UI kit (core/kit.js) -- each block names its Android template there ─────────────────────────────────────── */
.wk-kit-head { display: flex; flex-direction: row; align-items: center; padding: 4px 8px 4px 0; }
/* W1/116 PHEAD (his "I believe the size of header is broken across the app"): the close box, its X and the picture follow Icon size through
   THE page-head token (core/size.js pageHeadBoxPx / pageHeadPx -> --ph-*); the fallback is the default level's px (44 / 24 / 56) */
.wk-kit-back { flex: 0 0 auto; width: var(--ph-close-box, 44px); height: var(--ph-close-box, 44px); display: flex; align-items: center; justify-content: center; color: var(--c-subtext); }
.wk-kit-back .wk-icon { width: var(--ph-glyph, 24px); height: var(--ph-glyph, 24px); }
.wk-kit-headpic { flex: 0 0 auto; width: var(--ph-pic, 56px); height: var(--ph-pic, 56px); margin-inline-start: 4px; margin-inline-end: 12px; }
.wk-kit-headcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wk-kit-headtitle { color: var(--c-text); font-weight: var(--w-name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-kit-headsub { color: var(--c-dim); }
.wk-kit-cardlabel { margin-bottom: 6px; color: var(--c-dim); font-weight: 700; letter-spacing: 0.12em; }
.wk-kit-card { display: flex; flex-direction: column; background: var(--c-card-fill); border-radius: var(--card-corner); overflow: hidden; }   /* r2: THE WikCard (styles_wik.xml:8) -- no border; W1/115: clipped by kit.card, this radius is the fallback */
.wk-kit-row { display: flex; flex-direction: row; align-items: center; min-height: max(52px, calc(var(--tf, 1) * 52px)); padding: calc(var(--tf, 1) * 8px) 0; width: 100%; text-align: start; }
.wk-kit-rowcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* W1/108 Q33: THE shop item card (kit.shopCard; AND2 ShopItemCard) -- graphic + bold title, the description the whole width, then ONE
   line price (start) | button (end); when they do not fit the button wraps under, end-aligned (a wrap, never a shrink); RTL mirrors */
.wk-shop-card { align-items: stretch; }
.wk-shop-top { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; }
.wk-shop-top .wk-kit-rowtitle { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.wk-shop-art { flex: 0 0 40px; width: 40px; height: 40px; color: var(--c-text-accent, var(--c-accent)); }
.wk-shop-desc { margin-top: 6px; overflow-wrap: anywhere; }
.wk-shop-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; }
.wk-shop-foot .lk-shop-price { margin-top: 0; flex: 0 1 auto; min-width: 0; }
.wk-shop-btn .wk-kit-rowtrail { flex: none; padding: 0; color: inherit; font-weight: inherit; }   /* the action word, dressed as THE app button's words */
.wk-shop-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 96px; padding: 6px 16px; margin-inline-start: auto; }
.wk-kit-rowtitle { color: var(--c-text); overflow-wrap: anywhere; }   /* r3: a long wallet address WRAPS (J) */
.wk-kit-rowsub { color: var(--c-dim); overflow: hidden; text-overflow: ellipsis; }
.wk-kit-rowtrail { flex: 0 0 auto; padding: 0 4px 0 12px; font-weight: 700; color: var(--c-text-accent); }
.wk-kit-chevron { flex: 0 0 auto; width: 20px; height: 20px; color: var(--c-dim); display: flex; }
.wk-kit-chevron .wk-icon { width: 20px; height: 20px; }
.wk-kit-divider { height: 1px; background: var(--c-card-border); opacity: 0.5; }
.wk-kit-note { color: var(--c-subtext); padding: 8px 0; }
.wk-kit-pill { display: inline-flex; align-items: center; padding: calc(var(--tf, 1) * 7px) calc(var(--tf, 1) * 14px); margin-inline-end: 8px; white-space: nowrap; flex: 0 0 auto; }
:root { --wk-chip-gap: 10px; }   /* W1/114 (his "buttons are glued together"): THE gap between two chips and two lines of them, scaled by --tf at each reader */
.wk-kit-wrap { display: flex; flex-wrap: wrap; gap: calc(var(--tf, 1) * var(--wk-chip-gap)); }
.wk-kit-wrap > .wk-kit-pill { margin-inline-end: 4px; }   /* W1/114: a pill's own 8 px end margin + the gap stays the 14 px it was at --tf 1 */
/* W1/126 DESK-CHIPS (coordinator ruling; RULE 7.9 / 7.12; Android SettingsSwitch.chip = a TextView in a WrapLayout): THE choice chip sits at its
   words' own width on one line and moves WHOLE to the next line of its wrap row; only a chip whose words alone are wider than the whole row
   takes the row (max-width) and breaks BETWEEN its words -- never inside one (overflow-wrap stays normal). Was nowrap: such a chip ran past its row. */
.wk-kit-choice { display: inline-flex; align-items: center; justify-content: center; min-height: max(36px, calc(var(--tf, 1) * 36px)); max-width: 100%; white-space: normal; text-align: center; flex: 0 0 auto; overflow-wrap: break-word; hyphens: manual; }
/* W1/126 DESK-SWITCH (coordinator ruling on DESK-CHIPS open 1; Android TextView, targetSdk 36: hyphenation NONE, StaticLayout breaks INSIDE a
   word only when that word alone is wider than the line): the last resort. overflow-wrap:break-word (never `anywhere`) leaves every
   min-content size as it was, so a word that fits is never broken; the words' box may shrink to the chip (min-width 0) so such a word
   breaks where the line ends instead of spilling past its chip. A hyphen stays a break opportunity, as in Android's ICU line breaker. */
.wk-kit-choice > .wk-kit-words { min-width: 0; max-width: 100%; }
.wk-kit-labelled { display: flex; flex-direction: column; margin-top: 10px; }
.wk-kit-labelledwords { color: var(--c-subtext); margin-bottom: 8px; }
/* W1/99 D201 (his words, desktop 200: "the buttons are still too close to the line"): a labelled choice row followed by a card divider
   (actionRow draws the divider before the next row) keeps the row's own 8dp below its chips -- actionRow's vertical padding, scaled by the
   text level like it. Desktop adaptation, no Android anchor: Android's labelledRow (AppearanceContent.kt:356) never sits above a divider */
.wk-kit-labelled + .wk-kit-divider { margin-top: calc(var(--tf, 1) * 8px); }
.wk-kit-person { display: flex; flex-direction: row; align-items: center; padding: 6px 0; cursor: pointer; }
.wk-kit-personpic { margin-inline-end: 12px; }
.wk-kit-personname { flex: 1 1 auto; min-width: 0; margin-inline-end: 8px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-kit-foldhead { display: flex; align-items: center; min-height: 48px; cursor: pointer; }
/* W1/77 A2-5 (W177A2_DESK; contract §10 "Hit areas": a text button whose drawn frame scales below its b114 size keeps its b114 hit rect --
   Android's TouchDelegate / HitBox): the pill and the choice chip get back, as an invisible hit slop, exactly the padding the frame lost
   below the default level (min(0, (--tf - 1) x pad)); at and above the default the slop is 0 (scale-up only). The text's own size is the
   A2-4 curve, not a frame, and is not given back. */
.wk-kit-pill::after, .wk-kit-choice::after { content: ''; position: absolute; pointer-events: auto; }
.wk-kit-pill::after { inset: min(0px, calc((var(--tf, 1) - 1) * 7px)) min(0px, calc((var(--tf, 1) - 1) * 14px)); }
.wk-kit-choice::after { inset: min(0px, calc((var(--tf, 1) - 1) * 6px)) min(0px, calc((var(--tf, 1) - 1) * var(--wk-padh, 12px))); }
.wk-kit-foldchevron { width: 20px; height: 20px; margin-inline-start: 8px; color: var(--c-dim); display: flex; transition: transform 120ms; }
.wk-kit-foldchevron .wk-icon { width: 20px; height: 20px; }
.wk-kit-bar { height: 4px; border-radius: var(--frame-corner); background: var(--c-card-border); overflow: hidden; }
.wk-kit-barfill { height: 100%; }
.wk-kit-jumplist { position: relative; display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.wk-kit-jumpscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-anchor: none; }
.wk-kit-jumppill { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 8px 16px; border-radius: var(--frame-corner);
  background: var(--c-card2-fill); color: var(--c-text); border: 1px solid var(--c-accent-shown); }
.wk-kit-jumppill[hidden] { display: none; }
.wk-kit-jumppill.wk-shaped { background: none; border-width: 0; padding: 9px 17px; }   /* W1/115: the capsule paints fill and stroke; border's 1 px moved to the padding */
/* W1/69 d4 (A-DA-130): a newest-first list (wall, person page) -- the pill at the TOP, where its newest post is (b72 "a Jump to now pill at
   the top of the Wik page / Bookmarks / hashtag rooms / a person's page") */
.wk-kit-jumppill.wk-kit-jumppill-top { top: 12px; bottom: auto; }

/* ── D2: dialog additions (core/dialogs.js chooseMany, closeTitle) ──────────────────────────────────────────────────────── */
.wk-dialog-check { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.wk-dialog-check input { width: 18px; height: 18px; accent-color: var(--c-accent-shown); }
.wk-dialog-closetitle { display: flex; align-items: center; padding: 8px 4px 0 20px; }
.wk-dialog-closetitle-text { flex: 1 1 auto; min-width: 0; color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* W1/116 PHEAD: the house X (Settings, dialogs.closeTitle) -- box pageHeadBoxPx(48), glyph pageHeadPx(18) (size.js PAGE_X_GLYPH_PX, the named
   deviation from Android's 24) */
.wk-dialog-x { flex: 0 0 auto; width: var(--ph-x-box, 48px); height: var(--ph-x-box, 48px); color: var(--c-subtext); font-size: var(--ph-x-glyph, 18px); display: flex; align-items: center; justify-content: center; }


/* r2 additions: dialogs.view's content; two-line list items (J: Android's kind / whitelist / users rows break lines) */
.wk-dialog-view { overflow: auto; padding: 4px 20px 8px 20px; min-height: 0; }
.wk-dialog-item { white-space: pre-line; }
.wk-kit-listitem { display: flex; flex-direction: column; width: 100%; min-height: 48px; padding: 8px 24px; text-align: start; justify-content: center; }
.wk-kit-listtitle { color: var(--c-text); }
.wk-kit-listsub { color: var(--c-subtext); white-space: pre-line; }
.wk-kit-iconbtn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; }
.wk-kit-iconbtn .wk-kit-iconbtn-glyph { width: 100%; height: 100%; display: block; }
.wk-kit-words { pointer-events: none; }
/* r2: a tab page sits BELOW the start page's header (Android keeps renderWalletChip's header above every tab page) */
.wk-page.wk-page-tab { top: var(--start-head, 0px); }
/* W1/108 Q27 (scheduled "tab pages follow chrome_opacity"; C05 census rows Explore / People / Your rooms; port: Android padPagesUnderChrome,
   CrossroadsActivity.kt:2328-2392 -- "the pages are put BEHIND them ... each page padded by the bars' MEASURED heights"). Once rooms.js has
   measured the start header through core/underbars.js (data-under-head on the pane), a tab page reaches the pane's top and pads its own
   scroll by the header (the first row rests where it did; a focused row is kept out from under it), and My Rooms' own list does the same,
   so a row scrolled on passes UNDER the see-through header. The Settings tab page keeps its own rule (settings.css, W1/107 Q26: its head /
   foot stand inside it). The header stands above the pages while no FRAME page (Room page, user page, gear: their own head) is shown. */
.wk-pane-body[data-under-head] > .wk-page.wk-page-tab:not(:has(> .set-host)) { top: 0; }
/* the scroller is padded, not the page: a page that scrolls itself (.wk-page) or the start-page frame's scroller (.st-page > .st-scroll:
   Explore, People -- roomsactions.css), whichever the page is built on */
.wk-pane-body[data-under-head] > .wk-page.wk-page-tab:not(:has(> .set-host)):not(:has(.st-scroll)) { padding-top: var(--start-head, 0px); scroll-padding-top: var(--start-head, 0px); }
.wk-pane-body[data-under-head] > .wk-page.wk-page-tab .st-page > .st-scroll { padding-top: var(--start-head, 0px); scroll-padding-top: var(--start-head, 0px); }
.wk-pane-body[data-under-head]:not(:has(> .wk-page:not(.wk-page-tab):not([hidden]))) .rooms-header { position: relative; z-index: 3; }
.wk-pane-body[data-under-head] .rooms-root { position: relative; }
.wk-pane-body[data-under-head] .rooms-root > .rooms-page { position: absolute; inset: 0; padding-top: calc(4px + var(--start-head, 0px)); scroll-padding-top: var(--start-head, 0px); }
/* W1/108 Q27 (scheduled "bottom tab bar follows chrome_opacity"): one pane, the tab rail is the phone's bottom bar (app.js measures it:
   data-under-rail + --under-rail on #wk-app). The left pane runs on UNDER it (a negative end margin of the bar's measured height), the bar
   stands above (z 4, THE chrome fill, no shadow: one surface the slider reaches), and every scroller of the pane pads its end by it. */
.wk-app[data-layout="one"][data-under-rail] .wk-pane-left { margin-bottom: calc(-1 * var(--under-rail, 0px)); }
.wk-app[data-layout="one"][data-under-rail] .wk-rail { z-index: 4; }
.wk-app[data-layout="one"][data-under-rail] .wk-pane-left .wk-page:not(:has(.st-scroll)) { padding-bottom: var(--under-rail, 0px); scroll-padding-bottom: var(--under-rail, 0px); }
.wk-app[data-layout="one"][data-under-rail] .wk-pane-left .st-page > .st-scroll { padding-bottom: var(--under-rail, 0px); scroll-padding-bottom: var(--under-rail, 0px); }
.wk-app[data-layout="one"][data-under-rail] .wk-pane-left .rooms-page { padding-bottom: calc(24px + var(--under-rail, 0px)); scroll-padding-bottom: var(--under-rail, 0px); }
/* r2: a hashtag face (core identity.js hashtagFace) */
.wk-hashface { position: relative; display: inline-block; flex: 0 0 auto; }
.wk-hashtile { position: relative; display: block; }
.wk-hashtile > .wk-hashword { position: absolute; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 700; line-height: 1; z-index: 1; }
.wk-hashface > .wk-hashmark { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-weight: 700; line-height: 1; z-index: 2; }
/* r3: a two-line list-dialog item (dialogs.choose {label, sub}); kit rows' titles wrap a long wallet address */
.wk-dialog-itemsub { display: block; color: var(--c-subtext); overflow-wrap: anywhere; }
.wk-dialog-item { overflow-wrap: anywhere; }
/* r3 (K's FOR THE ASSEMBLY 7): the Motion effects setting holds the core's motion still too (root data-wk-motion="still") */
:root[data-wk-motion="still"] .wk-kit-foldchevron { transition: none; }
/* r3: an emoji whose picture is still decoding is a box of its size (icons.emojiImg); the picture fills it once decoded */
.wk-emoji-box { position: relative; }
.wk-emoji-box > .wk-emoji-boxed { width: 100%; height: 100%; display: block; }
/* r4: the splitter between the panes (app.js wireSplitter) -- a 6 px grip over the left pane's hairline; two panes only */
.wk-split { flex: 0 0 6px; margin-inline-start: -3px; margin-inline-end: -3px; cursor: col-resize; z-index: 3; position: relative; background: transparent; }
.wk-split:hover, .wk-split:focus-visible { background: var(--c-divider-strong, var(--c-card-border)); }
.wk-app[data-layout="one"] .wk-split { display: none; }
/* W1/70 DLY: two panes and nothing belongs in the left pane (app.js leftWanted) -- it is set aside WHOLE: out of the row (the room
   screen takes the window), kept laid out at its own width so its list keeps its scroll and nothing reflows when it comes back
   (app.js makes it inert meanwhile); the splitter goes with it */
.wk-app[data-layout="two"][data-left="off"] .wk-pane-left { position: absolute; left: -100000px; top: 0; bottom: 0;
  width: var(--left-pane, 400px); visibility: hidden; }
.wk-app[data-layout="two"][data-left="off"] .wk-split { display: none; }
/* r4 (R6 #2): THE page head sits at one position on every page -- the head at the page edge, a fixed height; the body has the gutter */
.wk-kit-head { min-height: 64px; box-sizing: border-box; flex-shrink: 0; }   /* r7 (FINAL2): the head never shrinks in a column page */
.wk-kit-pageframe { display: flex; flex-direction: column; min-height: 0; }
.wk-kit-pagebody { padding: 0 16px 24px 16px; display: flex; flex-direction: column; min-height: 0; }
/* W1/126 Q18 (his survey answer "Widen content too", relay R2; relay R4 = HDR-AND-F2): EVERY page of the stack (app.js .wk-page) --
   the start tab pages (Explore / People .st-content, Settings .set-content + .set-head + .set-foot, Shop .soc-pagebody) AND the pages shown
   over them (room settings, the room page, create = .wk-kit-pagebody; hashtag, app page, wall = .soc-pagebody; a user page's head block
   .soc-userhead, its note .soc-note and its rows at the page edge .soc-wall-inset, which pad their own 3 dp end) -- reaches THE edge pad of the start header and
   the room lists (--row-gap; core/header.js GRID). Was 16 px. Opening a page from a tab no longer moves the content 16 -> gap -> 16.
   Your rooms (.rooms-page) is rooms.css's. The page heads (.wk-kit-head) keep their own place (r4 R6 #2). */
.wk-page .st-content, .wk-page .set-content, .wk-page .set-head, .wk-page .set-foot, .wk-page .soc-pagebody, .wk-page .wk-kit-pagebody, .wk-page .soc-userhead, .wk-page .soc-note {
  padding-inline-start: var(--row-gap); padding-inline-end: var(--row-gap); }
.wk-page .soc-wall-rows.soc-wall-inset { padding-inline-start: var(--row-gap); padding-inline-end: max(0px, calc(var(--row-gap) - 3px)); }
.wk-kit-iconrow { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; }

/* W175B BIDI r4 (W1/75): user text takes its FIRST-STRONG paragraph direction, as Android's TextView (TEXT_DIRECTION_FIRST_STRONG) --
   toast bodies, chip labels (room / user / folder names), list row titles and second lines (kit). A Latin line in the ar layout keeps its period on the right. */
.wk-toast { unicode-bidi: plaintext; }   /* bodies / centred: the paragraph's own leading edge (Android ALIGN_NORMAL) */
/* W175B BIDI r5: a LABEL keeps its place -- its text takes its own direction, its alignment the parent's (Android: the row lays the TextView out) */
.wk-chip-label, .wk-kit-rowtitle, .wk-kit-rowsub { unicode-bidi: plaintext; }
/* W175B BIDI r5b: match-parent did not hold under plaintext (measured); the page direction pins it */
.wk-chip-label:dir(ltr), .wk-kit-rowtitle:dir(ltr), .wk-kit-rowsub:dir(ltr) { text-align: left; }
.wk-chip-label:dir(rtl), .wk-kit-rowtitle:dir(rtl), .wk-kit-rowsub:dir(rtl) { text-align: right; }

/* ── W1/102 R100 round 6 (operator: "Web should have the rotation fixed too, for iOS users") -- the web client is the PHONE's mirror (Android
   canonical). Gate: html[data-wk-web] (set by the web adapter, never by the desktop app) AND a coarse pointer (a phone / tablet browser; a
   desktop browser stays the desktop copy). The desktop app's own layout is unchanged: it never sets data-wk-web.
   (M) port: MessageAdapter.fitPost + PostSide.gravity (AND-M) -- the turned screen: MY posts at the END edge (right; RTL left), the others'
       at the START; widths untouched (the row keeps its 640 / size caps, posts.css).
       W1/107 Q2 (his words: "my posts should be aligned to right side of the text block"; contract §3 "on ALL clients incl. the desktop app
       and wide windows"): the gate is GONE -- every orientation, every pointer, the desktop app too (port: PostSide MINE_END_IN_PORTRAIT =
       true). flex-end is LOGICAL: RTL puts my posts at the left; the tail follows (tokens.js tailRightFor, Q3).
   (L) port: WikFullScreen.mediaBands / ZoomImageView.fit (AND-T item L) -- the full-screen picture viewer FITS the screen, aspect kept (scaled
       up as fit() does, not only down), in every shape; its bar keeps clear of the notch / home indicator (env(safe-area-*), 0 elsewhere). */
.post-row.post-mine { align-items: flex-end; }
@media (pointer: coarse) {
  html[data-wk-web] .room-zoom-img { width: 100%; height: 100%; object-fit: contain; }
  html[data-wk-web] .room-zoom-bar { margin: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
}

/* W1/111 D15 (PROF1): kit.factRow / kit.tag -- the fact line (label start, value end, ONE line) and the muted capsule word */
.wk-kit-fact { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: calc(var(--tf, 1) * 10px); row-gap: 2px; width: 100%; min-height: max(36px, calc(var(--tf, 1) * 36px));
  padding: calc(var(--tf, 1) * 6px) 0; text-align: start; color: var(--c-text); }
button.wk-kit-fact { cursor: pointer; }
button.wk-kit-fact:hover .wk-kit-factcopy, button.wk-kit-fact:focus-visible .wk-kit-factcopy { color: var(--c-text-accent, var(--c-text)); }
.wk-kit-factlabel { flex: 1 1 auto; min-width: 0; color: var(--c-dim); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.wk-kit-factvalue { flex: 0 1 auto; min-width: 0; color: var(--c-text); text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.wk-kit-factend { flex: 0 1 auto; min-width: 0; max-width: 100%; margin-inline-start: auto; display: flex; align-items: center; gap: calc(var(--tf, 1) * 8px); }
.wk-kit-factcopy { flex: 0 0 auto; display: flex; width: 20px; height: 20px; color: var(--c-dim); }
.wk-kit-factcopy svg, .wk-kit-factcopy .wk-icon, .wk-kit-factcopy img { width: 20px; height: 20px; }
.wk-kit-tag { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; padding: calc(var(--tf, 1) * 2px) calc(var(--tf, 1) * 9px);
  color: var(--c-subtext); white-space: nowrap; line-height: 1.35; }
.wk-kit-tag > .wk-kit-words { position: relative; }
.wk-kit-tag-go { color: var(--c-green, var(--c-subtext)); }
/* the dialog's stacked button column (alert({stacked})): full width, the app buttons (kit.dressButton's capsule), Close plain under them */
.wk-dialog-buttons.wk-stacked { flex-direction: column; align-items: stretch; gap: calc(var(--tf, 1) * 8px); padding: 8px 20px 10px 20px; }
.wk-dialog-buttons.wk-stacked .wk-btn { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: max(44px, calc(var(--tf, 1) * 44px)); padding: 0 16px; font-weight: 600; }
.wk-dialog-buttons.wk-stacked .wk-dialog-button { min-height: 40px; text-transform: none; letter-spacing: 0; align-self: center; }
.wk-dialog-buttons.wk-stacked .wk-neutral { margin-inline-end: 0; }
/* W1/126 DESK-LAYOUT D2 (dialogs.js fitButtons, RULE 7.12): THE button row of every dialog, decided by measure. wk-measure = the row at
   its natural widths (no wrap, no shrink), read and dropped in one pass; wk-stack = they did not fit side by side: one per line at the
   END, each at its own width (android ButtonBarLayout stacked; dialogs.js puts positive first in the DOM) */
.wk-dialog-buttons.wk-measure { flex-wrap: nowrap; }
.wk-dialog-buttons.wk-measure > * { flex: 0 0 auto; white-space: nowrap; max-width: none; }
.wk-dialog-buttons.wk-stack { flex-direction: column; align-items: flex-end; }
.wk-dialog-buttons.wk-stack > .wk-dialog-button { flex: 0 0 auto; max-width: 100%; text-align: end; overflow-wrap: break-word; }
.wk-dialog-buttons.wk-stack .wk-neutral { margin-inline-end: 0; }
/* W1/126 DESK-LAYOUT D1 (dialogs.js segmentRow): THE segmented switch of a dialog -- side by side, each segment its words' width plus
   an equal share of the spare, while all fit unwrapped; else one segment per line. A word never breaks inside a segment while it fits.
   W1/126 DESK-SWITCH (Android SegmentRow.kt, AND-SWITCH-F2): the segments are the kit's choice chips (capsules, kit.js choiceChip), their
   words CENTRED; the gap is 8 px RAW (SegmentRow(this, 8 dp): 8 dp = 8 CSS px, not x text factor; was var(--row-gap, 4px), a 4 px fallback);
   stacked, each takes the full width (MATCH_PARENT) and a word alone wider than the line breaks as Android's last resort (break-word). */
.wk-dialog-segments { display: flex; gap: 8px; }
.wk-dialog-segments > .wk-dialog-seg { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; white-space: nowrap; overflow-wrap: normal; hyphens: manual; text-align: center; justify-content: center; }
.wk-dialog-segments.wk-measure > .wk-dialog-seg { flex: 0 0 auto; }
/* the kit chip's hit slop (A2-5, ::after above) gives back side padding a frame LOST below the default level; a segment's padding is raw and
   its height has the 48 px touch floor, so it lost nothing: no slop -- the 8 px gap between two segments takes no press (measured: at -2
   the slop reached 3-4 px into the gap) */
.wk-dialog-segments > .wk-dialog-seg::after { inset: 0; }
.wk-dialog-segments.wk-stack { flex-direction: column; }
.wk-dialog-segments.wk-stack > .wk-dialog-seg { flex: 0 0 auto; max-width: 100%; white-space: normal; overflow-wrap: break-word; }

/* ── W1/117 R16 (his words: "volume of embedds touch area is too small - the circle too small and it is very hard to touch and move it"):
   THE range slider of the app (screens/voiceplay.js dressRange: the anthem's two, the voice roll-up, the film roll-up). A 28 px thumb in
   the slider's ink (--wk-range-ink, default the accent), a 4 px track whose played part is --pct (dressRange's one sync), a touch band of
   at least 44 px across the track on a coarse pointer (28 px on a mouse), touch-action pan-y (a standing slider pan-x: R2, REVWEB3 N1) so a drag ALONG the track is the slider's and a scroll across it stays the page's. The
   thumb stays the platform's CIRCLE (Android's SeekBar thumb is the platform round thumb, tinted -- popup_voice_volume.xml / VolumeControl);
   the direction follows the page's dir (RTL fills from the right); .wk-range-v stands (value up: the film's roll-up). ── */
.wk-range {
  --wk-thumb: 28px; --wk-range-band: 28px; --wk-range-ink: var(--c-accent-shown); --wk-range-angle: 90deg;
  --wk-range-rest: color-mix(in srgb, var(--wk-range-ink) 32%, transparent);
  -webkit-appearance: none; appearance: none; background: transparent; margin: 0; padding: 0; cursor: pointer; touch-action: pan-y;
  height: var(--wk-range-band); min-height: var(--wk-range-band);
}
:root[dir="rtl"] .wk-range { --wk-range-angle: 270deg; }
@media (pointer: coarse) { .wk-range { --wk-range-band: 44px; } }
.wk-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(var(--wk-range-angle), var(--wk-range-ink) var(--pct, 0%), var(--wk-range-rest) var(--pct, 0%));
}
.wk-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: var(--wk-thumb); height: var(--wk-thumb); margin-top: calc(2px - var(--wk-thumb) / 2);
  border: 0; border-radius: 50%; background: var(--wk-range-ink); box-shadow: 0 0 0 1.5px var(--wk-range-rest), 0 1px 3px rgba(0, 0, 0, .35);
}
.wk-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--wk-range-rest); }
.wk-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--wk-range-ink); }
.wk-range::-moz-range-thumb { width: var(--wk-thumb); height: var(--wk-thumb); border: 0; border-radius: 50%; background: var(--wk-range-ink); }
.wk-range:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 2px; }
/* the standing slider (writing-mode vertical-lr + direction rtl: the value grows UP): the band is its WIDTH, the track a 4 px column */
.wk-range.wk-range-v, :root[dir="rtl"] .wk-range.wk-range-v { --wk-range-angle: 0deg; }
.wk-range.wk-range-v { touch-action: pan-x; height: 100%; min-height: 0; width: max(var(--wk-range-band), 100%); }
.wk-range.wk-range-v::-webkit-slider-runnable-track { width: 4px; height: 100%; margin: 0 auto; }
.wk-range.wk-range-v::-webkit-slider-thumb { margin-top: 0; margin-left: calc(2px - var(--wk-thumb) / 2); }
