:root {
  --bg: #ffffff;
  --ink: #0e1a1b;
  --muted: #5b6a6c;
  --line: #dfe5e5;
  --field: #ffffff;
  --teal: #0a9396;
  --teal-2: #0dbfae;
  --button: #0e1a1b;
  --button-ink: #ffffff;
  --error: #b42318;
  /* The workspace: panels, the selected section, WhatsApp's green. */
  --soft: #f4f7f7;
  --panel: #fbfcfc;
  --line-2: #eef2f2;
  --tint: #e3f6f4;
  --tint-ink: #07676a;
  --wa: #1fa855;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1112;
    --ink: #eef3f3;
    --muted: #9aaaac;
    --line: #263335;
    --field: #111a1b;
    --teal: #14b8b0;
    --teal-2: #3fd9c9;
    --button: #eef3f3;
    --button-ink: #0b1112;
    --error: #f97066;
    --soft: #152022;
    --panel: #0e1617;
    --line-2: #1a2628;
    --tint: #123235;
    --tint-ink: #5fd6cb;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1112; --ink: #eef3f3; --muted: #9aaaac; --line: #263335; --field: #111a1b;
  --teal: #14b8b0; --teal-2: #3fd9c9; --button: #eef3f3; --button-ink: #0b1112; --error: #f97066;
  --soft: #152022; --panel: #0e1617; --line-2: #1a2628; --tint: #123235; --tint-ink: #5fd6cb;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 24px; }
.center { max-width: 460px; margin: 8vh auto 0; }

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 600;
}
.center h1 { font-size: clamp(28px, 5vw, 36px); margin-bottom: 8px; }
.lead { font-size: 20px; font-weight: 500; margin: 0 0 18px; }
p { margin: 0 0 16px; color: var(--ink); }
.muted { color: var(--muted); }
.accent {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--teal-2) 35%, transparent) 62%);
  padding: 0 2px;
}

.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 16px 24px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 56px;
}
.button[disabled] { opacity: 0.6; cursor: default; }
.button.full { width: 100%; }
.button svg { width: 22px; height: 22px; flex: none; }

.qr { display: none; text-align: center; font-size: 13px; color: var(--muted); }
.qr img { width: 132px; height: 132px; display: block; margin: 0 auto 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
@media (hover: hover) and (min-width: 760px) { .qr { display: block; } }

form { display: grid; gap: 12px; margin-top: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 54px;
}
input:focus { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 1px; border-color: var(--teal); }
.who { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.error { color: var(--error); font-size: 15px; min-height: 1.4em; margin: 0; }
.done-mark {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal-2) 20%, transparent);
  color: var(--teal);
  margin-bottom: 20px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 24px;
  font-size: 14px;
  color: var(--muted);
}

[hidden] { display: none !important; }

@media (max-width: 480px) {
  main { padding: 16px; }
  .top { padding: 16px; }
  .row { grid-template-columns: 1fr; }
  .cta .button { width: 100%; }
}

/* Legal pages */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-inline-start: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc .summary { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 8px; }
.doc .summary p:last-child { margin-bottom: 0; }
footer a { color: inherit; }

/* Sign-in, joining and the vault */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.session { max-width: 460px; margin: 0 auto; text-align: center; font-size: 14px; color: var(--muted); }
.session bdi { color: var(--ink); }
.link {
  background: none; border: 0; padding: 10px 2px; margin: 0;
  font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.session .link { font-size: 14px; color: var(--muted); padding: 8px 2px; }
.actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin: 8px 0 0; font-size: 15px; }
.notice { border-inline-start: 3px solid var(--teal); padding: 2px 12px; margin: 0 0 8px; }
.status { color: var(--muted); font-size: 15px; margin: 0; }
.status:empty { display: none; }
.loading { margin-top: 8px; }
.fine { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.small { font-size: 15px; }
.more { text-align: center; margin: 16px 0 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--teal); margin: 0 0 6px; }
.reason { border-inline-start: 3px solid var(--line); padding: 2px 12px; color: var(--muted); }
/* What saving from Mawdoo3's link also approves, right above "Approve and save" */
.approves { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
/* Continue with WhatsApp, on a computer: the message to send from their phone, and where to */
.desk { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.desk p { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.desk bdi.nowrap { color: var(--ink); }
.desk .wa-text {
  color: var(--ink); font-weight: 500; margin: 0; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; user-select: all;
}

.stack { display: grid; gap: 12px; margin-top: 24px; }
.stack.fields { gap: 18px; }
label { display: block; font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.opt { color: var(--muted); font-weight: 400; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.field-error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.field-error:empty, .confirm .error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.row.keep { grid-template-columns: 1fr 1fr; }

select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 54px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 1px; border-color: var(--teal); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; }
.select::after, .caret {
  content: ""; width: 7px; height: 7px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.select::after { position: absolute; inset-inline-end: 18px; top: calc(50% - 6px); }

/* The phone: calling code and number, one field, always left to right. */
.phone {
  display: flex; align-items: stretch; min-height: 54px;
  background: var(--field); border: 1px solid var(--line); border-radius: 10px;
}
.phone:focus-within { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 1px; border-color: var(--teal); }
.phone input { border: 0; background: transparent; min-width: 0; flex: 1; padding-left: 14px; }
.phone input:focus { outline: none; }
.cc { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; border-right: 1px solid var(--line); }
.cc .caret { display: inline-block; margin-top: -4px; }
.cc.off .cc-code, .cc.off .caret { opacity: 0.35; }
.cc select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }

input.code {
  font-size: 28px; font-weight: 500; letter-spacing: 0.4em; text-align: center;
  font-variant-numeric: tabular-nums; padding-left: calc(16px + 0.4em);
}
input.cvv { max-width: 180px; font-size: 22px; letter-spacing: 0.3em; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--teal); }

/* Masked fields and their Show button. */
.secret { position: relative; }
.secret input { padding-right: 84px; }
.secret textarea { padding-inline-end: 84px; }
textarea.masked { -webkit-text-security: disc; }
.reveal {
  position: absolute; top: 7px; inset-inline-end: 7px; height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.reveal:hover, .reveal:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--line) 60%, transparent); }

.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.danger { background: var(--error); color: var(--button-ink); }
.button.small { min-height: 42px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.done-mark.quiet { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }

/* The vault */
.wide { max-width: 640px; margin: 4vh auto 0; }
h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 36px 0 12px; }
.items { display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.kind { flex: none; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.item .sub { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.small-label { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.4;
  padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--teal-2) 16%, transparent);
}
.chip svg { color: var(--teal); flex: none; }
.meta { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.meta + .meta { margin-top: 2px; }
.item-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.meta.always-on { color: var(--teal); font-weight: 500; }
.confirm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.confirm p { font-size: 15px; margin: 0 0 12px; }
.confirm .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm .error { margin-top: 10px; }
.v { font-weight: 600; }
.empty { color: var(--muted); font-size: 15px; border: 1px dashed var(--line); border-radius: 14px; padding: 18px; margin: 0; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
.activity p { margin: 0; font-size: 15px; }
.activity .detail { color: var(--muted); font-size: 14px; margin-top: 2px; }
.activity time { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* A payment waiting for approval */
.pay { border: 1px solid var(--line); border-radius: 14px; margin: 24px 0 4px; }
.pay .amount { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.pay .amount span { display: block; font-size: 14px; color: var(--muted); }
.pay .amount strong { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.pay dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; padding: 14px 18px 16px; font-size: 15px; }
.pay dt { color: var(--muted); }
.pay dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.pay .card-hint { display: block; color: var(--muted); font-weight: 400; }
/* Any other use, asked in one question that names the site and the item */
h1.ask { overflow-wrap: anywhere; }
.phone:has([aria-invalid="true"]) { border-color: var(--error); }
.nowrap { white-space: nowrap; }

/* "Always allow": its disclaimer, over the approval page */
dialog.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
dialog.modal::backdrop { background: rgba(6, 12, 13, 0.6); }
.modal h2 { margin: 0 0 12px; }
.modal p { font-size: 16px; margin: 0 0 12px; overflow-wrap: anywhere; }
.modal .this { color: var(--muted); font-size: 15px; }
.modal-buttons { display: flex; gap: 10px; margin-top: 20px; }
.modal-buttons .button { flex: 1; min-width: 0; }
@media (max-width: 480px) { dialog.modal { padding: 20px; } }

/* The brand's ".chat", in teal; the Arabic brand is the word alone. */
.tld { color: var(--teal); font-weight: 500; }
[dir="rtl"] .tld { display: none; }

/* The workspace frame (shell.js): a top bar with a menu on phones, a sidebar
   on computers. Pages inside it: Home, Vault, Files, Preferences. */
.framed { display: block; }
.frame { display: flex; min-height: 100vh; }
.frame-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.framed .top { height: 64px; padding: 0; padding-inline: 16px 10px; border-bottom: 1px solid var(--line-2); }
.framed .brand img { width: 32px; height: 32px; border-radius: 9px; }
.framed main { max-width: none; padding: 0; }
.framed #signin { padding: 0 16px; }
.signed-in footer { display: none; }
.menu-button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.menu-button:hover, .menu-button:focus-visible { background: var(--soft); }
.grow { flex-grow: 1; }

.nav { display: grid; gap: 2px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; text-align: start; cursor: pointer;
}
.nav a:hover, .nav button:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--tint-ink); font-weight: 600; }
.nav svg { flex: none; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--tint-ink); font-size: 18px; font-weight: 600;
}
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 600; overflow-wrap: anywhere; }
.person-phone { font-size: 14px; color: var(--muted); text-align: start; }
.legal { font-size: 13px; color: var(--muted); margin: 14px 12px 0; }
.legal a { color: inherit; }

/* The menu: a sheet from the end side (the right in English, the left in Arabic). */
dialog.sheet {
  margin: 0; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0;
  width: min(318px, 86vw); max-width: none; height: 100%; max-height: none;
  padding: 0; border: 0; background: var(--bg); color: var(--ink);
  box-shadow: -24px 0 64px rgba(6, 12, 13, 0.22);
}
[dir="rtl"] dialog.sheet { box-shadow: 24px 0 64px rgba(6, 12, 13, 0.22); }
dialog.sheet::backdrop { background: rgba(6, 12, 13, 0.45); }
.sheet-inner { display: flex; flex-direction: column; min-height: 100%; padding: 10px 12px 20px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-inline-start: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sheet-inner > .person { padding: 14px 8px 18px; border-bottom: 1px solid var(--line-2); }
.sheet-inner > .nav:first-of-type { padding: 12px 0; }
.sheet-inner > .grow + .nav { padding-top: 12px; border-top: 1px solid var(--line-2); }

/* The sidebar, on computers. */
.side { display: none; }
.side .brand { min-height: 44px; padding: 0 8px; }
.side .brand img { width: 34px; height: 34px; border-radius: 10px; }
.side > .nav { margin-top: 28px; }
.side .nav a, .side .nav button { min-height: 44px; gap: 10px; padding: 0 10px; border-radius: 10px; font-size: 15px; }
.side-foot { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.side-foot .person { padding: 4px 8px 12px; gap: 10px; }
.side-foot .avatar { width: 36px; height: 36px; font-size: 15px; }
.side-foot .person-name { font-size: 14px; }
.side-foot .person-phone { font-size: 13px; }
.side-foot .legal { margin: 10px 10px 0; font-size: 12.5px; }
@media (min-width: 960px) {
  .signed-in .side {
    display: flex; flex-direction: column; width: 264px; flex: none; padding: 20px 16px 24px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--panel); border-inline-end: 1px solid var(--line-2);
  }
  .signed-in .top { display: none; }
}

/* A section's page inside the frame. */
.page { max-width: 720px; margin: 0 auto; padding: 28px 20px 48px; display: grid; gap: 36px; }
.framed .wide { max-width: 720px; margin: 0 auto; padding: 28px 20px 48px; }
.framed h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
.page-head { display: grid; gap: 6px; justify-items: start; }
.page-head h1 { margin: 0; }
.page-head p { margin: 0; font-size: 15px; color: var(--muted); }
@media (min-width: 960px) {
  .page, .framed .wide { max-width: 900px; margin: 0; padding: 56px 72px 64px; }
  .page { gap: 44px; }
  .framed h1 { font-size: 34px; }
  .page-head p { font-size: 16px; }
}
.section { display: grid; gap: 14px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 960px) {
  .section-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .section-head h2 { font-size: 20px; }
}
.card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 14px; }
.card p { margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1;
}
.button.medium { min-height: 48px; padding: 0 18px; font-size: 15px; border-radius: 12px; gap: 8px; }
.button.medium svg, .button.small svg { width: 18px; height: 18px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.buttons .grow { flex: 1 1 auto; }
.ink { color: var(--ink); }

/* Home: how to reach Mawdoo3. */
.channel-card { display: flex; align-items: center; gap: 24px; }
.channel-main { flex: 1; min-width: 0; display: grid; gap: 14px; }
.channel { display: flex; align-items: center; gap: 12px; }
.tile { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.tile.wa { background: var(--wa); }
.channel-text { display: flex; flex-direction: column; min-width: 0; }
.channel-name { font-size: 16px; font-weight: 600; }
.channel-id { font-size: 15px; text-align: start; }
.fine-line { font-size: 14px; color: var(--muted); }
.channel-card .qr { flex: none; }
.channel-card .qr img { width: 112px; height: 112px; padding: 8px; }
@media (min-width: 960px) { .channel-card { padding: 20px 24px; } }

/* Preferences: one row per topic; on computers the title sits beside it. */
.pref { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pref:last-child { border-bottom: 0; padding-bottom: 0; }
.pref-head h2 { margin: 0; font-size: 18px; }
.pref-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pref-body { display: grid; gap: 16px; align-content: start; min-width: 0; }
.pref-body .stack { margin-top: 0; }
@media (min-width: 960px) { .pref { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-bottom: 36px; } }
.save-row { display: flex; align-items: center; gap: 14px; }
.saved-note { font-size: 14px; font-weight: 500; color: var(--teal); }
.notice-card { background: var(--soft); border-color: var(--soft); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); max-width: 360px; }
.segmented button {
  min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.segmented button[aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(6, 12, 13, 0.12); }
.pref-body .select { max-width: 420px; }
.tz-device { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.toggle-row, .limit-row, .signout-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.toggle-row { justify-content: flex-start; }
.toggle-text { display: flex; flex-direction: column; min-width: 0; }
.toggle-name { font-size: 16px; font-weight: 500; }
.toggle-text .hint { margin: 0; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border: 0; border-radius: 999px; background: var(--line); padding: 0; cursor: pointer; }
.switch[aria-checked="true"] { background: var(--teal); }
.switch::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(6, 12, 13, 0.25); transition: inset-inline-start 0.15s;
}
.switch[aria-checked="true"]::after { inset-inline-start: 23px; }
.quiet-window { display: flex; flex-wrap: wrap; gap: 12px; }
.quiet-window label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.quiet-window select { min-height: 44px; padding-block: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 2px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--soft); }
.stepper output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; }
.kv { display: grid; gap: 2px; }
.kv .hint { margin: 0; }
.kv-value { font-size: 16px; font-weight: 500; text-align: start; }
.danger-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--error) 35%, var(--line)); border-radius: 16px;
}

/* The landing page's way in, next to the language. */
.top-end { display: flex; align-items: center; gap: 8px; }
.signin-link { font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.signin-link:hover, .signin-link:focus-visible { background: var(--soft); }
.button.then { margin-top: 10px; }

