/* Cài đặt's look: section headings over white cards of rows, label left, control right, iOS-style switches. */

.settings-page {
  padding-top: 24px;
}


/* The account's card (account-settings.js, pro/account-licence.js; owner, 2026-10-23, canvas "Wovia Cài đặt · Tài
   khoản", A): the initial, the address and the plan's chip over one line on the plan, then the plan's button and
   Đăng xuất on the right. ---------------------------------------------------------------------------------------- */

.acct-card {
  margin: 0 0 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.acct-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.acct-avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: var(--chip-shadow);
  color: var(--chip-text);
  font: 700 24px/1 var(--font-display);
}

.acct-avatar.is-signed-out {
  background: var(--pill-bg);
  box-shadow: none;
  color: var(--text-muted);
}

.acct-text {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.acct-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.acct-email {
  color: var(--text-strong);
  font: 700 18px/1.25 var(--font-display);
  overflow-wrap: anywhere;
}

/* One line on the plan; where it must break, no word is left alone on the next line (owner, 2026-10-22). */
.acct-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.4;
  text-wrap: pretty;
}

.acct-line[hidden],
.acct-line:empty {
  display: none;
}

/* The plan's chip, a link to the Pro page: the trial in a soft yellow, Pro in its yellow, the basic plan in grey. */
.acct-plan {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.acct-plan.is-trial {
  background: var(--pro-chip);
  box-shadow: inset 0 0 0 var(--edge-px) var(--pro-chip-edge);
  color: var(--pro-chip-text);
}

.acct-plan.is-pro {
  background: var(--pro-block);
  color: var(--pro-block-text);
}

.acct-plan.is-basic {
  background: var(--pill-bg);
  box-shadow: inset 0 0 0 var(--edge-px) var(--edge);
  color: var(--text-muted);
}

.acct-plan-slot:empty,
.acct-plan-action:empty {
  display: none;
}

/* The trial left, as a bar in Pro's yellow. */
.acct-meter {
  display: block;
  width: 150px;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--pill-bg);
  box-shadow: inset 0 0 0 var(--edge-px) var(--edge);
}

.acct-meter i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--pro-block);
}

.acct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.acct-plan-action {
  position: relative;
}

.acct-card .acct-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin-bottom: var(--lip-px);
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* "Nâng cấp lên Pro": a block in Pro's yellow, sinking onto its lip when pressed as the blue ones do (theme.css). */
.acct-card .acct-upgrade {
  border: 0;
  background: var(--pro-block);
  color: var(--pro-block-text);
  box-shadow: var(--pro-block-shadow);
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.acct-card .acct-upgrade:active {
  transform: translateY(var(--lip-px));
  box-shadow: none;
}

/* The menu of "Quản lý gói" (star-menu.js openItemMenu) under its button. */
.acct-plan-action .sm-menu {
  top: calc(100% + 2px);
  right: auto;
  left: 0;
  min-width: 290px;
  padding: 6px;
  border: var(--card-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow), var(--shadow);
}

.acct-plan-action .sm-menu-item {
  min-height: 42px;
  border-radius: 10px;
}

/* After Paddle's pages: a line that asks to refresh, under the card's row. */
.acct-refresh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--card-border);
  color: var(--text-muted);
  font-size: 14.5px;
}

.acct-refresh[hidden] {
  display: none;
}

.acct-refresh > span {
  flex: 1 1 240px;
}

.acct-card .acct-refresh-button {
  height: 36px;
  margin-bottom: var(--lip-px);
  padding: 0 14px;
  font-size: 14px;
}

.acct-card .server-status {
  margin: 12px 0 0;
}

/* Installing the website (app-install.js; the same design): a row after the account's card, the device in a tile, its
   title over a line or the browser's two steps, Install, and the × that hides it for good. ----------------------- */

.settings-page .app-install {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 32px;
  padding: 14px 14px 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.settings-page .app-install[hidden] {
  display: none;
}

.app-install-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip);
  box-shadow: var(--chip-shadow);
  color: var(--chip-text);
}

.app-install.is-installed .app-install-tile {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  box-shadow: inset 0 0 0 var(--edge-px) color-mix(in srgb, var(--success) 30%, transparent);
  color: var(--success);
}

.app-install-text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-install-title {
  color: var(--text-strong);
  font: 700 16px/1.3 var(--font-display);
  text-wrap: balance;
}

.app-install-line {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.app-install-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--text);
  font-size: 14px;
}

.app-install-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-install-step b {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wovia-blue);
  color: var(--on-accent);
  font: 700 12px/20px var(--font-display);
  text-align: center;
}

.app-install-key {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--edge-px) var(--edge);
  color: var(--accent-soft);
}

.settings-page .app-install-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-bottom: var(--lip-px);
  padding: 0 18px;
  font-size: 14.5px;
}

.app-install-hide {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.app-install-hide:hover {
  background: var(--hover);
  color: var(--text-strong);
}

/* "Tài khoản" at the page's end: Xóa tài khoản with what it removes, its button a white block in the danger's red. */
.settings-page > .acct-delete-section {
  max-width: calc(50% - 16px);
  margin-top: 28px;
}

.acct-delete-section[hidden] {
  display: none;
}

.acct-delete-row .set-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acct-delete-note {
  color: var(--text-muted);
  font-size: 13.5px;
  text-wrap: pretty;
}

.settings-page .acct-delete-button.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger-edge);
  white-space: nowrap;
}

/* Columns and sections ------------------------------------------------------------------------------------------ */

.set-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
}

.set-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.set-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0 0 8px 4px;
}

.set-head-icon {
  flex: none;
  color: var(--accent);
}

.set-title {
  margin: 0;
  color: var(--text-strong);
  font: 600 17px/1.3 var(--font-display);
}

.set-head .info-icon,
.set-label .info-icon,
.player-option-label .info-icon {
  margin-left: 4px;
  color: var(--text-muted);
}

.set-head .info-icon svg,
.set-label .info-icon svg,
.player-option-label .info-icon svg {
  width: 17px;
  height: 17px;
}

.set-label .info-icon,
.player-option-label .info-icon {
  vertical-align: -3px;
}

/* A label's last words with its ⓘ (settings-parts.js labelWithNote): one piece. */
.set-label-end {
  white-space: nowrap;
}

.set-head-action {
  margin-left: auto;
}

.set-head-action .btn-primary.small {
  padding: 0 14px;
}

.set-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

/* A slot the page fills again (the reading rows) adds no box of its own. */
.set-slot {
  display: contents;
}

/* Rows ---------------------------------------------------------------------------------------------------------- */

.set-row,
.settings-page .player-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 56px;
  margin: 0;
  padding: 10px 20px;
  border-top: 1px solid var(--line-soft);
}

.set-card > :first-child,
.set-card > .set-slot:first-child > :first-child,
.player-options > .player-option:first-child {
  border-top: 0;
}

.set-label,
.settings-page .player-option-label {
  display: block;
  flex: 1 1 120px;
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  text-wrap: pretty;
}

.set-control,
.settings-page .player-option-control {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

/* A wide row, and the two reading choices (each select as wide as its longest choice): the label over the control. */
.set-row.is-wide,
.set-reading-row {
  flex-direction: column;
  align-items: stretch;
}

:is(.set-row.is-wide, .set-reading-row) .set-control {
  justify-content: flex-start;
  margin-left: 0;
}

:is(.set-row.is-wide, .set-reading-row) .set-label {
  flex: none;
}

/* What the account cannot have yet, said under its row beside a lock (basic-settings.js scriptNote). */
.set-note {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: 6px;
  margin: -2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.set-row > .field-error {
  flex-basis: 100%;
  margin: -2px 0 0;
}

/* The controls in a row: a select and a monospaced text box as v3 fields (a grey 500 edge, 40 px in a dense row), a
   slider, the segmented looks. */
:is(.set-row, .settings-page .player-option) .select-wrap {
  width: auto;
  min-width: 160px;
  max-width: 380px;
}

:is(.set-row, .settings-page .player-option) .select-field {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-md);
  background: var(--field-bg);
  font: var(--type-body);
  text-overflow: ellipsis;
}

:is(.set-row, .settings-page .player-option) .select-field:hover {
  border-color: var(--hover-line);
}

:is(.set-row, .settings-page .player-option) .select-caret {
  right: 6px;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.set-row.is-wide .select-wrap {
  width: 100%;
  max-width: none;
}

.set-learning-row .combo {
  width: 300px;
  max-width: 100%;
}

/* A long choice shown whole (settings-parts.js fullSelect): its words on up to two lines in the field, the select
   over the box unseen, so a tap still opens the device's own list. */
.select-wrap.set-full {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  min-height: 40px;
  max-width: 380px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-md);
  background: var(--field-bg);
}

.select-wrap.set-full:hover {
  border-color: var(--hover-line);
}

.select-wrap.set-full:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.set-full-face {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.select-wrap.set-full .select-field.set-full-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* A small grey tag in a row (the account tab's "Chỉ tài khoản quản trị"). */

/* The account tab (login.js): the page's name, the card, the ways on, in a narrower column. */
.account-page {
  width: min(760px, 100% - 48px);
  padding-top: 24px;
}

.account-page .acct-card {
  margin-bottom: 24px;
}

/* The account's signed-in devices (devices-section.js): a tile, the name and its facts, Đăng xuất at the row's end. */
.account-page .dev-section {
  margin-bottom: 24px;
}

.set-row.dev-intro {
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.set-row.dev-row {
  flex-wrap: nowrap;
  gap: 14px;
  min-height: 64px;
}

.dev-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--chip);
  box-shadow: var(--chip-shadow);
  color: var(--chip-text);
}

/* While the list loads: rows in a device's shape, no motion. */
.dev-row.is-loading .dev-tile {
  background: var(--pill-bg);
  box-shadow: none;
}

.dev-bar {
  display: block;
  width: 60%;
  height: 12px;
  border-radius: 6px;
  background: var(--pill-bg);
}

.dev-bar.is-short {
  width: 40%;
}

.dev-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dev-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

/* "Thiết bị này": the current item, a yellow tag with dark words (design system v3). */
.dev-this {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--yellow-tag);
  box-shadow: inset 0 0 0 var(--edge-px) var(--yellow-tag-edge);
  color: var(--yellow-tag-text);
  font: 700 12px/1 var(--font-display);
  white-space: nowrap;
}

.dev-facts {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.35;
  text-wrap: pretty;
}

/* Each button at least 44px tall (design system v3's touch target). */
.account-page :is(.dev-out, .dev-retry).btn-outline {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

.set-row.dev-failure {
  flex-wrap: nowrap;
  gap: 14px;
}

.dev-failure-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.dev-code {
  color: var(--text-muted);
  font-size: 12px;
}

.set-row.dev-foot {
  flex-wrap: wrap;
  gap: 10px 16px;
}

.dev-kept {
  flex: 1 1 240px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}

.account-page .dev-others.btn-outline {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger-edge);
  white-space: nowrap;
}

/* The study language's box, filtered as one types (combobox.js), as the row's other fields. */
.set-learning-row .combo-input {
  height: 40px;
  font: var(--type-body);
}

.set-learning-row .combo-input:hover {
  border-color: var(--hover-line);
}

.set-row .text-field {
  min-height: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font: 400 13px/1.5 ui-monospace, Consolas, monospace;
}

.set-row .text-field[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px var(--danger);
}

.set-row .range-field {
  width: 240px;
  max-width: 100%;
}

.set-theme-row .ct-choice-row {
  flex-wrap: nowrap;
}

.set-theme-row .ct-choice {
  min-height: 32px;
  font-size: 14px;
}

/* Switches: the whole row its label, the switch at its end, drawn as iOS draws one. */
.set-switch-row {
  padding-top: 6px;
  padding-bottom: 6px;
}

.set-switch-row .switch {
  flex: 1 1 auto;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin: 0;
}

.set-switch-row .switch-track {
  margin: 0;
}

.settings-page .switch-track {
  width: 44px;
  height: 26px;
  margin: 0 12px 0 0;
  border-radius: 13px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.settings-page .switch-track::after {
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--switch-thumb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.settings-page .switch-input:checked + .switch-track {
  background: var(--accent);
}

.settings-page .switch-input:checked + .switch-track::after {
  background: var(--switch-thumb);
  transform: translateX(18px);
}

/* Links to another page (the admin's Pro preview and reports). */
.set-link-row {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.set-link-row:hover {
  background: var(--hover);
}

.set-link-icon,
.set-link-chevron {
  flex: none;
  color: var(--text-muted);
}

.set-link-chevron {
  margin-left: auto;
}

/* What a link row holds, beside its name in a quieter line (Hỗ trợ › Giúp đỡ). */
.set-link-note {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A phone has no room for the note whole: the row keeps its name alone rather than a cut line (owner, 2026-10-22). */
@media (max-width: 480px) {
  .set-link-note {
    display: none;
  }
}

/* Làm nổi bật từ vựng (highlight-section.js) ------------------------------------------------------------------- */

.set-level {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.set-level b {
  color: var(--text-strong);
  font-weight: 600;
}

.set-level-lang {
  color: var(--text-muted);
  font-size: 13px;
}

.set-level-row .btn-primary {
  flex: none;
}

.set-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 10px 12px 0 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* The preview line on the subtitles' dark ground, in both looks: the learner's colours are made for it. */
.set-preview-row {
  padding: 6px 20px 10px;
}

.set-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0;
  row-gap: 4px;
  margin: 0;
  padding: 8px 16px 10px;
  border-radius: 12px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 21px;
  line-height: 1.3;
  white-space: pre;
}

.set-preview ruby {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  margin: 0 3px;
}

.set-preview rt {
  display: block;
  color: color-mix(in srgb, var(--on-inverse) 65%, transparent);
  font-size: 12px;
  font-family: var(--font);
  line-height: 1.4;
}

.set-preview-word.is-outlined {
  padding: 0 2px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--set-preview-outline);
}

.set-colour-row {
  gap: 12px;
}

.set-colour-row .wcs-button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* A colour switch without a picker of its own (the outline): a sample of what it draws. */
.set-colour-sample {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--inverse);
  box-shadow: inset 0 0 0 2px var(--set-sample);
}

.highlight-colour .lr-wcs {
  padding: 0 20px;
}

.set-locked-row {
  color: var(--text-muted);
}

.set-locked-row .set-label {
  color: var(--text-muted);
}

.settings-debug-link {
  margin: 36px 0 0;
  text-align: center;
}

/* Narrow screens ------------------------------------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .set-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-page > .acct-delete-section {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .settings-page {
    padding-top: 8px;
  }


  .acct-card {
    padding: 14px 16px;
  }

  .acct-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .acct-email {
    font-size: 17px;
  }

  /* The initial beside the address and the plan; the plan's button and Đăng xuất under them across the card. */
  .acct-text {
    flex: 1 1 0;
  }

  .acct-actions {
    width: 100%;
  }

  .acct-actions > *,
  .acct-actions .acct-button {
    flex: 1 1 auto;
  }

  .acct-plan-action > .acct-button {
    width: 100%;
  }

  /* The install row: the tile, the title and the × on one line, then the line or the two steps and Install across the
     card, so no step is squeezed into a narrow column. */
  .settings-page .app-install {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px 12px;
    margin-bottom: 24px;
    padding: 12px 10px 12px 14px;
  }

  .app-install-tile {
    width: 40px;
    height: 40px;
  }

  .app-install-text {
    display: contents;
  }

  .app-install-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .app-install-hide {
    grid-column: 3;
    grid-row: 1;
  }

  .app-install-line,
  .app-install-steps,
  .settings-page .app-install-button {
    grid-column: 1 / -1;
  }

  .settings-page .app-install-button {
    justify-content: center;
  }

  .set-row,
  .settings-page .player-option {
    min-height: 50px;
    padding: 8px 14px 8px 16px;
  }

  .set-preview-row {
    padding: 6px 14px 8px 16px;
  }

  /* The label as wide as its words, the control in what is left: one line, the value at its end. */
  .set-row,
  .settings-page .player-option {
    flex-wrap: nowrap;
  }

  .set-row:has(> .set-note, > .field-error) {
    flex-wrap: wrap;
  }

  .set-row > .set-control,
  .settings-page .player-option-control {
    flex: 0 1 auto;
  }

  :is(.set-row, .settings-page .player-option) .select-field {
    field-sizing: content;
  }

  .set-label,
  .settings-page .player-option-label {
    font-size: 14px;
  }

  .set-switch-row .switch {
    gap: 12px;
  }

  /* the level's sentence on its own lines, its button under it */
  .set-level-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .set-level-row > :is(.set-label, .set-level) {
    flex: none;
  }

  /* Long words on both sides, and the study language's box: the label over the control. */
  .set-row.is-phone-stacked,
  .set-learning-row {
    flex-direction: column;
    align-items: stretch;
  }

  :is(.set-row.is-phone-stacked, .set-learning-row) > .set-label {
    flex: none;
  }

  .set-row.is-phone-stacked .range-field {
    width: 100%;
  }

  .set-theme-row .ct-choice {
    padding: 0 8px;
  }

  /* A choice reads as its value at the row's end, as iOS's settings do; the native list opens on a tap. */
  :is(.set-row, .settings-page .player-option) .select-wrap {
    min-width: 0;
    max-width: 100%;
  }

  :is(.set-row, .settings-page .player-option) .select-field {
    padding-right: 28px;
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    text-align: right;
    text-align-last: right;
  }

  /* The two reading choices and a wide choice keep their field, on a line under the label. */
  :is(.set-row.is-wide, .set-reading-row, .set-learning-row, .set-row.is-phone-stacked) > .set-control {
    flex: none;
    justify-content: flex-start;
    margin-left: 0;
  }

  :is(.set-reading-row, .set-row.is-wide, .set-row.is-phone-stacked) .select-wrap {
    max-width: 100%;
  }

  :is(.set-reading-row, .set-row.is-wide, .set-row.is-phone-stacked) .select-field {
    padding-right: 34px;
    border-color: var(--field-border);
    background: var(--field-bg);
    color: var(--text-strong);
    font-size: 14px;
    text-align: left;
    text-align-last: left;
  }

  .set-learning-row .combo {
    width: 100%;
  }

  .account-page {
    width: calc(100% - 32px);
    padding-top: 8px;
  }

  .set-row.dev-row {
    gap: 12px;
  }

  .account-page .dev-others.btn-outline {
    width: 100%;
  }

  /* the row's name whole on its line: its tag says no more than the row's being there does to an admin */

  .set-row.is-phone-stacked .select-wrap.set-full {
    width: 100%;
    max-width: none;
  }

  .select-wrap.set-full .set-full-face {
    font-size: 14px;
  }
}
