/* Wik Desktop -- the Settings tab (pack H, CSS prefix .set-). The page scrolls inside the page-stack element (the core page element).
   port: activity_crossroads.xml pageSettings -> settingsContent: padding 16dp sides, 4dp top, 24dp bottom. The cards, rows, chips and
   dialogs are core's (kit.js / dialogs.js) and are NOT restyled here (CONTRACT_D2 §9.16). */
.set-page { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; background: var(--c-page-bg); }
.set-content { display: flex; flex-direction: column; padding: 4px 16px 24px 16px; min-width: 0; }
/* a dialog's column of rows (Linked wallets): the view handed to dialogs.alert */
.set-dialogcol { display: flex; flex-direction: column; padding: 8px 20px 4px 20px; max-height: 60vh; overflow-y: auto; }
.set-dialoglist { display: flex; flex-direction: column; }
/* R6 #6: a short wallet address is ONE token -- never split across two lines (the kit row's sub keeps its own wrapping) */
.set-nobreak { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }

/* W2b (W1/69) -- THE Settings host: ONE header (the switch bar) that never moves, and one box per sublist below it. A switch hides one
   box and shows the other (.set-off: display none -- b102 A CONTRACT "display none, not opacity"; settings.js keeps each box's scroll
   and puts it back in the same task) in one frame: no transition, no animation, no slide (his b102 (d) "simply switch the page").
   port: b102 A (Crossroads settingsHeader + one scroller per sublist), SettingsSwitch.bar */
.set-host { flex: 1 1 auto; min-height: 0; }
/* the bar under the start header, outside any scroller: 16 dp sides, 4 dp above, 8 dp below (b102 A CONTRACT) */
.set-head { flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; box-sizing: border-box;
  padding: 4px 16px 8px 16px; background: var(--c-page-bg); }
.set-bar { flex: 1 1 auto; min-width: 0; }
.set-host > .set-body { flex: 1 1 auto; min-height: 0; position: relative; padding: 0; }
.set-body > .set-sub { position: absolute; inset: 0; }
.set-body > .set-sub.set-off { display: none; }
/* the Appearance sublist's rows shown / hidden IN PLACE (the Auto rows, the secondary strip) -- their own display */
.set-secondbox { display: flex; flex-direction: column; min-width: 0; }
.set-secondbox[hidden], .set-autorows[hidden] { display: none; }

/* W2b -- the Wik-room icon 8 dp right of the start page's Wik logo, the logo's height, on EVERY tab (b102 A CONTRACT: "identical on
   every tab" -- a tab-dependent header would move); rooms.js renderHeader. b102 (b) "Add to the Wik logo also the Wik room icon". */
.set-wikroom { display: flex; flex: none; /* W177A2_DESK A2-1: the gap = core/header.js slot2 */ padding: 0; border: 0; background: none; cursor: pointer; }
.set-wikroom > * { width: 100%; height: 100%; }
.set-wikroom:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 2px; }

/* W2b -- "Your rooms" roll-in / roll-out (rooms.js; b102 B copies BadgeShelf.fold): the heading row (label + room count + chevron)
   is the fold's head; rolled in, the card is hidden in the same frame (kit.fold: no transition) */
.set-roomsfold { display: flex; flex-direction: row; align-items: center; min-height: 48px; margin-bottom: 0; }

.set-roomscount { margin-inline-start: 8px; color: var(--c-dim); font-weight: 700; }
.set-roomsfold:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 2px; }
.set-rolledin { display: none; }   /* the Your rooms card rolled in (later than base.css / rooms.css: this wins) */
/* the strip's marker rail (appearance.js strip): full width, moved by transform -- no layout change while dragging */
.set-strip-rail { position: absolute; inset: 0; pointer-events: none; }

/* W1/70 DSK2 -- the footer [Save] [Load saved] [Default]: ONE fixed row under BOTH sublists, outside every scroller (a child of the host
   frame after its body; the body keeps flex 1 and the footer its own height -- nothing moves when a sublist switches). Mirrors the head:
   16 dp sides, 8 dp above and below, the chips' gap (--wk-chip-gap, .wk-kit-wrap). Load while nothing is saved: dimmed, still tappable (a toast).
   port: Android activity_crossroads.xml settingsFooter (AND2, b104) / SettingsSwitch.bar metrics */
.set-foot { flex: 0 0 auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: calc(var(--tf, 1) * var(--wk-chip-gap)); box-sizing: border-box;
  padding: 8px 16px 8px 16px; background: var(--c-page-bg); border-top: 1px solid var(--c-card-border); }
.set-foot-btn { cursor: pointer; }
/* W1/72 SETUI item 6: the Save chip's disk -- before the words, inside the frame, the chip's text colour, the icon level's size, 6 px gap */
.set-foot-glyph { display: inline-flex; align-items: center; justify-content: center; margin-inline-end: 6px; position: relative; flex: 0 0 auto; }
.set-foot-glyph > svg { width: 1em; height: 1em; }
.set-foot-btn.set-foot-dim { opacity: 0.45; }
.set-foot-btn:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 2px; }

/* W1/107 Q26 (his "the slider of transparency settings, when moved, the menus are still full opaque" / "it works in rooms, but not in the
   settings itself"). Measured: --c-chrome-fill WAS applied (alpha at 30), but the settings head and foot painted --c-page-bg and the
   sublists ended at the bars, and the tab page began below the start header: nothing stood behind any bar (the W1/94 D1c cause again,
   room.css [data-under]). Now, on the settings TAB page only (consult: the other tab pages + the one-pane bottom row are ledgered): the page
   reaches the pane's top, the start header stands above it, the head and foot paint THE chrome fill and overlay the sublists, and each
   sublist runs from the pane's top to its bottom, its content padded by the start header + head above and the foot below (settings.js
   underBarsOf measures --set-head-h / --set-foot-h), so the first and last rows rest where they did and a row scrolled on passes under a
   see-through bar; scroll-padding keeps a focused row out from under them. At 100 the bars are opaque and the page is as before. */
.wk-pane-body:has(> .wk-page-tab > .set-host[data-under]) .rooms-header { position: relative; z-index: 3; }
.wk-page.wk-page-tab:has(> .set-host[data-under]) { top: 0; }
.wk-page-tab > .set-host[data-under] { position: relative; }
.wk-page-tab > .set-host[data-under] > .set-head { position: absolute; left: 0; right: 0; top: var(--start-head, 0px); z-index: 2; background: var(--c-chrome-fill); }
.wk-page-tab > .set-host[data-under] > .set-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--c-chrome-fill); }
.wk-page-tab > .set-host[data-under] > .set-body { position: absolute; inset: 0; }
.wk-page-tab > .set-host[data-under] > .set-body > .set-page {
  padding-top: calc(var(--start-head, 0px) + var(--set-head-h, 0px)); padding-bottom: var(--set-foot-h, 0px);
  scroll-padding-top: calc(var(--start-head, 0px) + var(--set-head-h, 0px)); scroll-padding-bottom: var(--set-foot-h, 0px); }

/* W1/111 D15 (PROF1): the Profile dialog's head -- the picture (56), the name (20, the dialog title's size), the plan + server tags */
.set-prof { padding-top: 0; }
.set-prof-head { display: flex; align-items: center; gap: 12px; padding: 0 0 2px 0; }
.set-prof-pic { flex: 0 0 auto; display: flex; }
.set-prof-headcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.set-prof-name { color: var(--c-text); font-weight: var(--w-name, 600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-prof-tags { display: flex; flex-wrap: wrap; gap: 6px; }
