/* Réglages: screen styles (owned by the builder of this screen). Use tokens only.
   The same inset grouped list as Sources: rows on --surface, hairlines inset to the text. */

.rg-notice:not(:empty) { display: grid; gap: 8px; margin-bottom: var(--s3); }
.rg-sec { margin-top: 36px; }
.rg-body > .rg-sec:first-child { margin-top: 0; }
.rg-h { font-size: 17px; font-weight: 700; letter-spacing: -.005em; margin-bottom: 10px; }
.rg-help { font-size: var(--t-foot); color: var(--ink-2); margin-top: 10px; text-wrap: pretty; }
.rg-help[hidden] { display: none; }

/* the list and its rows */
.rg-list { border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.rg-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 54px; padding: 10px 16px; text-align: left; }
.rg-list > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--hair); }
.rg-list > .rg-link + .rg-link::before { left: 56px; }
.rg-row__label { min-width: 0; font-size: var(--t-body); font-weight: 560; }
.rg-row__sub { display: block; font-size: var(--t-foot); color: var(--ink-2); margin-top: 2px; font-weight: 440; }
button.rg-row { transition: background-color var(--d-smooth) var(--e-smooth); }
button.rg-row:active { background: var(--sunk); transition-duration: var(--d-press); }

/* a quiet action inside a list: ink words, on the text edge (iOS « Sign Out of All Other Sessions ») */
.rg-row--action { justify-content: flex-start; font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.rg-row--action[data-armed] { font-weight: 700; }
.rg-row--action[aria-busy="true"] { color: var(--ink-2); }

/* messages after a purchase */
.rg-seg { min-height: 44px; }
.rg-seg .seg__opt { min-height: 38px; }
.rg-list--th { margin-top: 12px; }
.rg-th { min-height: 56px; padding-block: 6px; transition: opacity var(--d-snappy) var(--e-snappy); }
.rg-th[data-off] { opacity: .45; }
.rg-th__box { position: relative; display: inline-flex; align-items: center; flex: none; }
.rg-th__input {
  width: 128px; height: 44px; padding: 0 50px 0 14px; border-radius: var(--r-s); border: 0;
  background: var(--chalk); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink);
  font: inherit; font-size: var(--t-body); font-weight: 640; text-align: right;
}
.rg-th__input:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); -webkit-text-fill-color: var(--ink); opacity: 1; }
.rg-th[data-invalid] .rg-th__input { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rg-th__unit { position: absolute; right: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); pointer-events: none; }
.rg-th__err { margin-top: 8px; }
.rg-list--th + .rg-th__err[hidden] + .rg-help { margin-top: 10px; }

/* budgets */
.rg-fig { font-weight: 700; white-space: nowrap; }
.rg-fig__unit { font-size: var(--t-foot); font-weight: 520; color: var(--ink-2); }

/* devices */
.rg-dev { justify-content: flex-start; }
.rg-dev .rg-row__label { flex: 1; min-width: 0; }
.rg-dev__ico { display: grid; place-items: center; flex: none; color: var(--ink-2); }
.rg-dev__ico .ico { width: 22px; height: 22px; }
.rg-dev__here { display: grid; place-items: center; color: var(--ink); }
.rg-dev__here .ico { width: 20px; height: 20px; stroke-width: 2.2; }

/* links */
.rg-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; min-height: 62px; }
.rg-link__ico { display: grid; place-items: center; color: var(--ink); }
.rg-link__ico .ico { width: 22px; height: 22px; }
.rg-link > .ico:last-child { width: 20px; height: 20px; color: var(--ink-2); }
.rg-sec--out { margin-top: 24px; }
.rg-logout { gap: 12px; }
.rg-logout .ico { width: 20px; height: 20px; }
/* two lines reserved: changing the mode never moves the sections below */
.rg-mode { line-height: 1.4; min-height: 2.8em; }
.rg-line { display: block; }
.rg-mode[data-waiting] { opacity: .45; }
