/* PrepBuddy shared: Settings module (settings): 00 Settings home (the account card, grouped rows with live subtitles, the Blocked users sheet) and
   01 Appearance & language (the preview panel, the option discs for theme swatches / brightness / font / text size, the Language rows); the
   settings row = icon tile, a title that wraps, a hint, a chevron or a switch. Tokens only; every class is
   prefixed se- (one name, one meaning). The switch is theme.css .sw, the section heading cards.css .sec-h, the panel cards.css .card.
   Flutter: PreviewCard, OptionDisc (in a Row), SettingsRow (ListTile); nothing here is page-specific.
   The section (.se-sec, .se-hint), the option discs (.se-opt), the settings row (.se-row, .se-ic, .se-tx, .se-go, .se-tag) and the live and verified words moved to
   ../../shared/components.css on 2026-10-13, because the portal's Settings uses them; what stays here is the preview, the sheets and the learner-only pieces. */

/* The section, the option discs and the settings row (.se-sec to .se-go) are in ../../shared/components.css since 2026-10-13; the Beta tag stays here (only the language rows use it). */
.se-tag { display: inline-block; vertical-align: 1px; margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; background: color-mix(in srgb, var(--text-secondary) 14%, transparent); color: var(--text-secondary); }   /* Beta, as on the Language tile */

/* ---------- preview panel: sample content that shows the chosen theme, font and size at once (decorative: no live controls) ---------- */
.se-prev { display: flex; flex-direction: column; gap: 12px; }
.se-ph { display: flex; align-items: center; gap: 12px; }
.se-ph .se-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.se-ph b { font-size: calc(16px * var(--font-scale)); font-weight: 700; letter-spacing: -0.01em; } .se-ph span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.se-rew { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--reward-container); color: var(--reward-ink); font-size: calc(12px * var(--font-scale)); font-weight: 800; white-space: nowrap; flex-shrink: 0; } .se-rew .mi { font-size: 16px; }
.se-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 20%, transparent); overflow: hidden; } .se-bar i { display: block; height: 100%; width: 60%; border-radius: 999px; background: var(--primary-grad); }
.se-prev p { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; } .se-prev p b { color: var(--primary-text); font-weight: 600; }
.se-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- sheets: the Suggest a fix form (theme.css field recipe), the footer with Cancel and Send ---------- */


.se-foot { display: flex; gap: 8px; margin-top: 16px; } .se-foot .btn { flex: 1; }
.se-sp { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; }   /* a sheet's lead paragraph */


/* ---------- 00 Settings home: the account card (avatar instead of the icon tile, three lines), person rows in the Blocked users sheet, danger rows ---------- */
.se-acct { min-height: 72px; gap: 16px; }
.se-acct .pb-avatar, .se-person .pb-avatar { flex-shrink: 0; }
.se-acct .se-tx b { font-size: calc(16px * var(--font-scale)); font-weight: 700; }
.se-person { min-height: 60px; }
.se-row.danger .se-tx b { color: var(--error-text); }

/* ---------- 03 Signed-in devices: two subtitle lines, the live dot, ended rows (grey tile), the row a notification points at, loading and empty ---------- */
.se-dev .se-tx b { overflow-wrap: anywhere; }
.se-flash { background: color-mix(in srgb, var(--primary) 8%, transparent); transition: background-color 300ms ease; }
.se-tx .se-skl { display: block; width: 60%; height: 12px; margin-top: 4px; border-radius: 8px; }
.se-skr { height: 56px; margin: 4px 0; border-radius: 12px; }
.se-none { margin: 8px 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.se-sec .empty { padding: 12px 0 4px; } .se-sec .empty h2 { font-size: calc(15px * var(--font-scale)); }   /* an error inside a panel: the section keeps its heading */

/* ---------- 08 Account details: Verified / Not verified in a subtitle, a sheet's other route (a text button) and Remove (.cta.danger), the date
   of birth above its wheel, rows and discs that wait for a connection ---------- */
.se-alt { margin-top: 4px; }
.se-rm { display: flex; width: max-content; margin: 16px auto 0; }   /* the captioned danger call to action, centred under the field */
.se-dobv { margin: 0 0 12px; font-size: calc(20px * var(--font-scale)); font-weight: 700; text-align: center; }

/* ---------- 07 About: the identity panel (the mark, the wordmark, the version with a copy button), the Updates row's spinner and required ink,
   What's new, the licences list (initial tiles, the verbatim text), the imprint; the Update required gate is the lock screen's cover ---------- */
.se-about { display: flex; align-items: center; gap: 16px; }
.se-about .pb-logo { width: 64px; height: 64px; }
.se-tx .se-word { font-size: calc(20px * var(--font-scale)); font-weight: 800; letter-spacing: -0.01em; } .se-tx .se-word span { color: var(--primary-text); }
.se-tx .se-ver { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.se-upd .spinner { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; margin-inline-end: 12px; color: var(--primary-text); }
.se-upd.req .se-tx span { color: var(--error-text); }
.se-news { margin: 4px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: calc(15px * var(--font-scale)); line-height: 1.5; }
.se-lic { margin: 4px 0 0; max-height: 50vh; overflow: auto; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--text-secondary) 8%, transparent); white-space: pre-wrap; font: calc(12px * var(--font-scale)) / 1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-primary); }
.se-imprint { margin: 24px 0 0; text-align: center; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.se-lock .se-gate-go { margin-top: 24px; min-width: 200px; }

/* ---------- 06 Legal: the Grievance Officer's contact as key-value rows (payments.css .py-kv) under the officer's row ---------- */
.se-kvs { margin-top: 8px; box-shadow: inset 0 1px 0 var(--border); }

/* ---------- 04 Delete account: the danger button at the end of the facts (not pinned), the too-many-tries line in the code sheet ---------- */
.se-end { margin-top: 24px; } .se-end .btn { width: 100%; } .se-end .se-hint { text-align: center; }
.se-many { margin: 8px 0 0; font-size: calc(13px * var(--font-scale)); font-weight: 600; line-height: 1.5; color: var(--error-text); }

/* ---------- 02 App lock: the phone's prompt as the prototype draws it (local_auth; Android shows it as a bottom sheet), then the lock screen ---------- */
.se-os { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.se-os h2 { margin: 0; }
.se-os p { margin: 0 0 16px; font-size: calc(14px * var(--font-scale)); line-height: 1.5; }
.se-os .tbtn { width: 64px; height: 64px; } .se-os .tbtn .mi { font-size: 32px; }
.se-os-tip { margin-top: 4px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.se-os-foot { align-self: stretch; display: flex; justify-content: space-between; margin-top: 12px; }
/* the lock screen: the whole window in bg, above the app and below the sheets (40/41), so its Sign out confirm and the prompt open over it;
   the content in a centred 400 dp column that scrolls in phone landscape, Sign out in the bottom safe area */
.se-lock { position: fixed; inset: 0; z-index: 38; display: flex; flex-direction: column; align-items: center; overflow: auto; box-sizing: border-box; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); color: var(--text-primary); transition: opacity 150ms ease; }
.se-lock.gone { opacity: 0; }
.se-lock-col { flex: 1; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.se-lock .pb-logo { width: 72px; height: 72px; margin-bottom: 12px; }
.se-lock h1 { margin: 0; font-size: calc(24px * var(--font-scale)); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.se-lock-col p { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.se-lock .cta { margin-top: 24px; }
.se-lock-col .se-lock-err { min-height: 3em; margin-top: 8px; font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--error-text); }
.se-lock-out { flex-shrink: 0; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .se-lock { transition: none; } }
