/* Wik Desktop -- the Appearance page (pack H, CSS prefix .set-). port: res/layout/activity_service.xml -- the page 16dp sides, 8dp top,
   24dp bottom; WikCard padding 16dp (styles_wik.xml:16); the chip rows are core/kit.js (WrapLayout, 6dp gaps). */
.set-sublabel { color: var(--c-subtext); margin-bottom: 8px; }
.set-rule { height: 1px; background: var(--c-card-border); opacity: 0.4; margin: 14px 0; }
.set-inline-words { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-subtext); }

/* the sample post: the real post row (posts.js renderPost), inert -- its look is the row's own (K); not restyled here */
.set-sample { display: flex; flex-direction: column; min-width: 0; }
.set-iconsample { margin-top: 10px; display: flex; }
.set-iconsample-img { width: 100%; height: 100%; }

/* style rows (ServiceActivity.buildStyleRows): the name gives way, the samples keep their size at the row's end -- emoji and icon
   rows; the FONT rows stack the name over its sample (W1/70 DESKFONT, below) */
.set-stylerows { display: flex; flex-direction: column; min-width: 0; }
/* W1/77 A2-6 (W177A2_DESK): the lit row's fill (core/dialogs.js paintSelectedRow) is the row's own background, and it reaches the CARD's
   frame -- AND-FRAME ChoiceList.fullFrame: the emoji / icon lists take the card's side padding back (kit.card padH 16 x --tf) and every row
   carries it, so the names keep the width they had (r6 gate PNG: an 8 px inset inside the padding truncated them at -2); A2-5: the row's
   4 dp top / bottom and the card's sides ride --tf (buildStyleRows) */
.set-stylerow { display: flex; flex-direction: row; align-items: center; width: 100%; padding: calc(var(--tf, 1) * 4px) calc(var(--tf, 1) * 16px); background: none; border: 0;
  color: inherit; font: inherit; text-align: start; cursor: pointer; border-radius: 6px; min-width: 0; }
.set-stylerow:hover { background: var(--c-card2-fill); }
.set-stylerow:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 0; }
.set-stylename { flex: 1 1 0; min-width: 0; color: var(--c-subtext); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-stylerow.set-on .set-stylename { color: var(--c-text-accent); }   /* the painter's inline ink wins on the lit row */
.set-style-emoji, .set-style-icon { margin-inline: calc(var(--tf, 1) * -16px); }   /* W177A2_DESK A2-6: fullFrame -- the rows span the card */
.set-style-emoji > .set-stylerow, .set-style-icon > .set-stylerow { border-radius: 0; }   /* the card's own corners clip the wash */
.set-stylerow > .set-stylecheck { margin-inline-start: 4px; }   /* W177A2_DESK A2-6: the check's slot takes as little of the name as it can */
.set-stylename.set-fontname { flex: 0 0 auto; min-width: 80px; max-width: 45%; white-space: normal; overflow-wrap: anywhere; }
.set-fontsample { flex: 1 1 0; min-width: 0; margin-inline-start: 6px; color: var(--c-text); overflow-wrap: anywhere; }
.set-preview { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-inline-start: 2px; overflow: hidden; }
.set-preview > img { width: 100%; height: 100%; object-fit: contain; }
.set-preview-icon { color: var(--c-icon-tint); }

/* the frame colour box (HueStripView: 40dp strips, a marker) */
.set-framecolor { display: flex; flex-direction: column; min-width: 0; }
.set-caption { color: var(--c-subtext); padding: 8px 0; }
.set-strip { position: relative; height: 40px; border-radius: 8px; overflow: hidden; cursor: pointer; touch-action: none; flex: 0 0 auto; }
.set-strip:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: 2px; }
.set-strip-grad { position: absolute; inset: 0; }
.set-checker { background-color: #ffffff;
  background-image: linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%),
                    linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.set-strip-mark { position: absolute; top: 2px; bottom: 2px; width: 6px; margin-inline-start: -3px; border-radius: 3px;
  border: 2px solid #ffffff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); box-sizing: border-box; pointer-events: none; }
/* W1/72 SETUI item 2: the caption LINE of a strip -- the words take the rest, the lock glyph sits at the END edge in a 48 px hit box
   that does not grow the line (negative margins; b106 HitBox); c_subtext in BOTH states (lane A's correction); a locked strip's pointer
   is not taken (appearance.js strip) and it shows the default cursor */
.set-capline { display: flex; flex-direction: row; align-items: center; min-width: 0; }
.set-capline > .set-caption { flex: 1 1 auto; min-width: 0; }
.set-lock { flex: 0 0 auto; width: 48px; height: 48px; margin: -12px -12px -12px 0; display: inline-flex; align-items: center;
  justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--c-subtext); }
.set-lock:focus-visible { outline: 2px solid var(--c-accent-shown); outline-offset: -8px; border-radius: 8px; }
.set-lock > svg { width: 1em; height: 1em; }
.set-strip.set-strip-locked { cursor: default; touch-action: pan-y; }

.set-reset { align-self: flex-start; padding: 10px 0; background: none; border: 0; color: var(--c-subtext); font: inherit; cursor: pointer; }

/* the Display card */
.set-sync { margin-bottom: 12px; }
.set-syncnote { color: var(--c-subtext); margin-bottom: 12px; }
.set-syncnote[hidden] { display: none; }
.set-divider { height: 1px; background: var(--c-card-border); margin-bottom: 12px; }
.set-indicator-sample { margin-top: 10px; display: flex; }
.set-language { display: flex; flex-direction: column; }

/* W1/70 DESKFONT (operator: "let the name of font have also its own line, and the sample text be under the name"): the font
   list only -- each row stacks the name over its sample; emoji and icon rows keep their one line. Desktop-only divergence
   from Android's buildStyleRows, on his word. Both children flex 0 0 auto: a zero basis collapses in a column. */
.set-style-font .set-stylerow { flex-direction: column; align-items: flex-start; }
.set-style-font .set-stylename.set-fontname { flex: 0 0 auto; min-width: 0; max-width: 100%; width: 100%; }
.set-style-font .set-fontsample { flex: 0 0 auto; width: 100%; margin-inline-start: 0; margin-top: 2px; }
