/* settings.css - the look of the Settings page (settings.js; SETTINGS_PAGE
   0001)
   ------------------------------------------------------------------------
   Every number here is the approved renders': Concept Art/settings.html
   (frames 1 to 7: .setlist, .sgroup, .shead, .spanel, .setrow, .h54,
   .between, .lead, .slabel, .sright, .sval, .numbox and .numbox.bad,
   .numunit, .cbox and .cbox.on, .pop, .poprow, .poplabel, .popsep,
   .popfoot, .poprefuse, .ptick, .refuse), wide_list_pages.html S1 to S4
   for a computer and a tablet on its side (.setlist.narrow, its .sbar and
   its .pop), overlays_and_end_states.html's Mastered switched off (.dlg,
   .dt, .dbtns.two, .dbtn.quiet, .dbtn.blue; its wide frame not drawn:
   330 px, centered, D2020 (4)) and the bean's .sbar and .sthumb (§1e);
   kit.html's caret 3 down (.kbox, .c3.down), the tick (.tick3) and the
   check box on and off (.cbox), and the icon set's flags at the accent
   picker's size. Every panel and pop-up is flat as its frame draws it
   (D1699): ⛔ no light on this page, no grain. Loaded from this origin,
   which the page's Content Security Policy allows (style-src 'self'): no
   inline style anywhere; a pop-over's and the bean's places, which
   settings.js computes, are set through the style object. Every number is
   before nav.js's scale s (the page's frame is scaled as a whole);
   .nv-wide on the page's screen is nav.js's wide layout.

   ⚠️ ONE GAP FROM THE DRAWING, ON PURPOSE: a number box's typed digits
   are 16 px, not the 15.5 drawn, so a phone never zooms the page to the
   box (My Cards' search, the same rule). */

/* ══ THE PAGE: nav's body (614 px on the phone drawn: 844 less 96 above, 80
   below, the 10 px last gap and the 44 px top bar). The list in it, 14 px
   in from each side, the groups 12 px apart and flush with its top, top-
   aligned: it never fills the phone (settings.html's third rule). ══ */
.se-page {
  position: absolute;
  inset: 0;
}
.se-scroll {
  position: absolute;
  inset: 0;
  padding: 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.se-scroll::-webkit-scrollbar {
  display: none;
}
.se-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.se-group {
  flex: none;
}

/* A group's name (.shead): 16 px, 8 px above its panel. Not a headline. */
.se-head {
  height: 16px;
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E7E99;
}

/* The panel (.spanel), flat (D1699). */
.se-panel {
  overflow: hidden;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background: #1D2739;
}

/* ⚠️ A ROW YOU TAP IS 54 px (D573). */
.se-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.se-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
  padding: 0 18px;
}
.se-row + .se-row {
  border-top: 1px solid #253045;
}
.se-between {
  justify-content: space-between;
}
.se-lead {
  justify-content: flex-start;
  column-gap: 14px;
}
.se-label {
  font-size: 15.5px;
  font-weight: 400;
  color: #AEBBD0;
}
.se-right {
  display: flex;
  align-items: center;
  column-gap: 8px;
}
.se-val {
  font-size: 15.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #EAF0FA;
}

/* kit.html §1: caret 3 pointing down, in settings.html's 18 x 22 box, at
   the Settings value's 9 px and #6E7E99 (D579). */
.se-kbox {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
}
.se-c3 {
  position: relative;
  top: -2px;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6E7E99;
  border-bottom: 2px solid #6E7E99;
  transform: rotate(45deg);
}

/* ⛔ THE NUMBER BOX (D574, D580): 52 x 30, an 8 px corner, a soft fill and
   NO outline; refused, its edge the app's red (frame 7, S4). */
.se-num {
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: #2A3850;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 30px;
  text-align: center;
  color: #EAF0FA;
  caret-color: #EAF0FA;
  -webkit-user-select: text;
  user-select: text;
}
.se-num.se-bad {
  box-shadow: 0 0 0 1.5px #ED6A76;
}
.se-unit {
  font-size: 15.5px;
  font-weight: 400;
  color: #8FA0B8;
}

/* The refusal (.refuse): under its group's panel, on the right, red. */
.se-refuse {
  flex: none;
  padding: 8px 18px 0;
  font-size: 13px;
  text-align: right;
  color: #ED6A76;
}

/* kit.html §2: the check box, off a 1.5 px #46536E edge, on filled blue
   with the tick in #0E1526. */
.se-cbox {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #46536E;
  border-radius: 6px;
}
.se-cbox.se-on {
  border-color: #4E9BF0;
  background: #4E9BF0;
  color: #0E1526;
}

/* kit.html §2: the tick, two 2 px strokes of caret 3's weight. */
.se-tick3 {
  position: relative;
  top: -1px;
  flex: none;
  width: 5px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ══ THE POP-OVER (D575, D581): 264 px, rows of 58, a 14 px corner, ground
   #22304A on #37476B, 6 px under its row (settings.js), its right edge 18
   px in from the panel's; no scrim, no dimming (D513). ══ */
.se-pop {
  position: absolute;
  right: 18px;
  z-index: 8;
  width: 264px;
  overflow: hidden;
  border: 1px solid #37476B;
  border-radius: 14px;
  background: #22304A;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .50);
}
.se-poprow {
  display: flex;
  align-items: center;
  column-gap: 13px;
  width: 100%;
  height: 58px;
  padding: 0 18px;
}
.se-poprow + .se-poprow {
  border-top: 1px solid #2F3E5C;
}
.se-poplabel {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: #EAF0FA;
}
/* The single-select tick (.ptick): the kit's tick, the drawing's blue. */
.se-ptick {
  margin-left: auto;
  color: #6FAEFF;
}
/* The icon set's flag at the accent picker's size (19 px x 1.42 by .95). */
.se-flag {
  display: block;
  flex: none;
  width: 26.98px;
  height: 18.05px;
  overflow: visible;
}
.se-popsep {
  height: 1px;
  background: #2F3E5C;
}
/* The helper and the refusal share one look (D577): ⛔ the refusal is not
   red. */
.se-popfoot,
.se-poprefuse {
  padding: 13px 18px 15px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 17px;
  color: #8697B2;
}

/* ══ THE QUESTION (overlays_and_end_states.html, Mastered switched off;
   §1c, D607): the scrim over the whole frame, the tab bar and the tiles
   included, the dialog in its middle, 330 px, two 54 px buttons side by
   side; flat (D1699). ══ */
.se-scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.se-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
}
/* The pop-up's title, the headlines' font (ART_FIX 0001; .dt). */
.se-dialog .se-dt {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}
.se-dbtns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
}
.se-dbtn {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #C8D3E4;
}
.se-dbtn.se-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}
.se-dbtn.se-quiet {
  background: transparent;
  color: #9BA7BC;
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the list's
   right edge, 10 px clear of its top and bottom; only where the page
   scrolls (D624). */
.se-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 4;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.se-bean-track.se-scrolls {
  visibility: visible;
}
.se-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* ══ WIDE (CONCEPT_ART §1g; wide_list_pages.html S1 to S4; D1270): one
   column at the phone's size, cinched to 75% of the content width (the
   width less the 24 px each side) and centered, so 864 px on a laptop and
   702 on a tablet; its pop-overs under their rows; the bean centered in
   the outer gutter. ══ */
.nv-wide .se-scroll {
  padding: 0 calc(24px + (100% - 48px) * .125);
}
.nv-wide .se-bean-track {
  right: calc(9px + (100% - 48px) * .125);
}
