: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;
}
/* Light unless the visitor picks dark (theme.js sets data-theme before the page draws). */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: 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; }
/* The country picker (signin.js): a button with the flag and code, and under it a search box over
   every country; the ones a code can't reach yet are greyed out as not supported. */
.phone-wrap { position: relative; }
.cc {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px;
  border: 0; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px;
  background: transparent; color: var(--ink); font: inherit; cursor: pointer;
}
.cc:focus-visible { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: -2px; }
.cc .caret { display: inline-block; margin-top: -4px; transition: transform 0.15s; }
.cc[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 4px; }
.flag { display: inline-block; flex: none; width: 26px; font-size: 21px; line-height: 1; text-align: center; }
.flag.letters { font-size: 10.5px; font-weight: 700; line-height: 18px; letter-spacing: 0.02em; border-radius: 3px; background: var(--soft); color: var(--muted); }
.cc-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(6, 12, 13, 0.16); overflow: hidden;
}
.cc-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cc-glass { width: 18px; height: 18px; flex: none; }
.phone-wrap input.cc-search-input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0; border: 0; border-radius: 0; background: transparent;
  font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.phone-wrap input.cc-search-input:focus { outline: none; }
.cc-list { position: relative; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px 0; list-style: none; }
.cc-option { display: flex; align-items: center; gap: 14px; padding: 11px 18px; font-size: 16px; line-height: 1.3; cursor: pointer; }
.cc-option .cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-option .cc-dial { flex: none; font-size: 15px; color: var(--muted); unicode-bidi: isolate; }
.cc-option.active { background: var(--soft); }
.cc-option[aria-selected="true"] .cc-name { font-weight: 600; }
.cc-option[aria-disabled="true"] { cursor: default; color: var(--muted); }
.cc-option[aria-disabled="true"] .flag { opacity: 0.45; }
.cc-option[aria-disabled="true"] .cc-dial { font-size: 13px; }
.cc-group { padding: 14px 18px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

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; }


/* ---- The website (mawdoo3.chat): a letter that looks back ------------------------------ */
:root { --paper: #dcefe8; --paper-ink: #0e1a1b; --paper-muted: #426260; --eye: #f8f6f0; --pupil: #0e1a1b; }
:root[data-theme="dark"] { --paper: #091415; --paper-ink: #eef3f3; --paper-muted: #8fa8a8; }
.lp-body { background: var(--paper); color: var(--paper-ink); overflow-x: hidden; --ink: var(--paper-ink); --muted: var(--paper-muted); --line: color-mix(in srgb, var(--paper-ink) 14%, transparent); }
.lp-top { display: flex; justify-content: flex-end; padding: 20px 28px 0; }
.lp-tools { display: flex; align-items: center; gap: 4px; }
.lp-link {
  background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
@media (max-width: 380px) { .lp-link { padding: 8px 8px; } .lp-tools { gap: 0; } }
.lp-link:hover, .lp-link:focus-visible, .lp-icon:hover, .lp-icon:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lp-icon {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; padding: 0;
}
.lp-icon svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* The stage keeps its left and right whatever the language: the letter comes in from the left edge. */
.lp-stage {
  flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; direction: ltr;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  column-gap: clamp(8px, 2.5vw, 48px); padding: 1vh 0 5vh;
}
.lp-creature { min-width: 0; }
.lp-creature svg { display: block; width: 100%; height: auto; overflow: visible; }
.lp-creature .body { filter: drop-shadow(0 18px 28px rgba(2, 88, 92, 0.18)); }
.lp-creature .sclera { fill: var(--eye); }
.lp-creature .iris { fill: var(--pupil); transform-box: fill-box; transform-origin: center; transition: transform 0.22s ease; }
.lp-creature .glint { fill: #fff; opacity: 0.92; }
.lp-creature svg.keen .iris { transform: scale(1.2); }
.lp-creature .lid { transform: translateY(var(--lid, 0px)); transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.3, 1); }

.lp-copy { min-width: 0; padding: 0 max(24px, 4vw) 0 0; max-width: 37rem; }
html[dir="rtl"] .lp-copy { direction: rtl; }
.lp-copy h1 {
  font-family: "Instrument Serif", "IBM Plex Sans Arabic", Georgia, serif; font-weight: 400;
  font-size: clamp(50px, 6.4vw, 96px); line-height: 0.98; letter-spacing: -0.028em; margin: 0 0 0.34em;
}
[lang="ar"] .lp-copy h1 { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 600; font-size: clamp(42px, 5.4vw, 80px); line-height: 1.25; letter-spacing: 0; }
.lp-copy p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.52; margin: 0 0 1em; max-width: 29em; color: var(--ink); }
[lang="ar"] .lp-copy p { line-height: 1.85; }
.lp-go {
  display: inline-flex; align-items: center; gap: 14px; margin: 0.55em 0 1.3em; padding: 0 28px; min-height: 62px;
  border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: 18px; font-weight: 600; transform: rotate(-1.4deg); transition: transform 0.2s ease;
}
.lp-go:hover, .lp-go:focus-visible { transform: rotate(0deg) translateY(-2px); }
.lp-go:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.lp-go .arrow { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; }
.lp-go:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .lp-go:hover .arrow { transform: scaleX(-1) translateX(4px); }
.lp-copy .lp-ps { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 28px; padding: 14px 20px 26px; text-align: start; font-size: 13px; line-height: 1.75; color: var(--muted); }
.lp-foot p { margin: 0; color: inherit; }
.lp-foot a { color: inherit; text-decoration: none; }
.lp-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lp-foot bdi { unicode-bidi: isolate; }

@media (max-width: 860px) {
  .lp-top { padding: 14px 14px 0; }
  .lp-stage { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 0 0 4vh; }
  .lp-creature svg { width: 88%; }
  .lp-copy { padding: 0 20px; max-width: 34rem; margin: 0 auto; width: 100%; }
  .lp-copy h1 { font-size: clamp(44px, 12.5vw, 64px); margin-top: 0.1em; }
  [lang="ar"] .lp-copy h1 { font-size: clamp(38px, 10.5vw, 54px); }
  .lp-copy p { font-size: 17px; }
  .lp-go { display: flex; justify-content: space-between; transform: none; }
  .lp-go:hover, .lp-go:focus-visible { transform: none; }
}

/* The letter creeps in from off the page, tail first, and wakes; the words follow it up. */
@keyframes lp-creep { from { transform: translateX(-42%); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes lp-wake { from { transform: translateY(98px); } to { transform: translateY(0); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lp-creature svg { animation: lp-creep 1.5s cubic-bezier(0.16, 0.84, 0.24, 1) 0.1s backwards; }
.lp-creature .lid { animation: lp-wake 0.7s cubic-bezier(0.3, 0.7, 0.3, 1) 1.55s backwards; }
.lp-copy > * { animation: lp-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.lp-copy > :nth-child(1) { animation-delay: 0.55s; }
.lp-copy > :nth-child(2) { animation-delay: 0.7s; }
.lp-copy > :nth-child(3) { animation-delay: 0.85s; }
.lp-copy > :nth-child(4) { animation-delay: 1s; }
.lp-copy > :nth-child(5) { animation-delay: 1.15s; }
@media (prefers-reduced-motion: reduce) {
  .lp-creature svg, .lp-creature .lid, .lp-copy > * { animation: none; }
  .lp-creature .lid, .lp-creature .iris, .lp-go, .lp-go .arrow { transition: none; }
}

/* ---- The app's front door (app.mawdoo3.chat/login/): signing in and joining ------------ */
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 32px 0; }
.auth-mark { display: inline-flex; color: var(--teal); text-decoration: none; border-radius: 10px; }
.auth-mark svg { width: 52px; height: auto; display: block; overflow: visible; }
.meem { fill: none; stroke: url(#meem-ink); stroke-width: 23; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .auth-top { padding: 18px 16px 0; } }
.auth-body { background: var(--bg); }
.auth { flex: 1; width: 100%; max-width: 452px; margin: 0 auto; padding: 10vh 20px 56px; }
.auth h1 {
  font-family: "Instrument Serif", "IBM Plex Sans Arabic", Georgia, serif; font-weight: 400;
  font-size: clamp(38px, 8vw, 48px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 12px;
}
[lang="ar"] .auth h1 { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 600; font-size: clamp(30px, 6.5vw, 38px); line-height: 1.3; letter-spacing: 0; }
.auth h1 + .muted, .auth .lede { font-size: 17px; color: var(--muted); margin: 0; }
.auth .stack { margin-top: 32px; gap: 14px; }
.auth form { margin-top: 32px; gap: 14px; }
.auth .phone, .auth input:not(.otp-input):not(.cc-search-input), .auth select { min-height: 60px; border-radius: 10px; }
.auth label { font-size: 14px; color: var(--muted); font-weight: 500; }
.auth .button.full { min-height: 60px; border-radius: 12px; font-size: 17px; }
.auth .button .arrow { width: 18px; height: 18px; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.auth .error:empty { display: none; }
.consent { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 2px 0 10px; }
/* Cloudflare's bot check (signin.js): it takes no room until Turnstile shows its box for a tap. */
.human-check:not(.asking) { position: absolute; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cc-flag { font-size: 20px; line-height: 1; }
.auth .actions { display: block; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.auth .actions .link { padding: 4px 0; color: var(--muted); font-size: 15px; }
.auth .actions .link:not([disabled]) { color: var(--ink); }
.auth .hint-line { margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.auth .hint-line + .actions { margin-top: 4px; }
.auth .who-line { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth .who-line .link { font-size: 14px; color: var(--muted); padding: 4px; }
.auth .who-line bdi { color: var(--muted); }

/* Six boxes for the code, over one real field (so pasting and the phone's code suggestion still work). */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp-cell {
  height: 66px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px;
  background: var(--field); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.otp-cell.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.otp-cell.on:empty::after { content: ""; width: 1.5px; height: 28px; background: var(--ink); animation: otp-blink 1s steps(1) infinite; }
@keyframes otp-blink { 50% { opacity: 0; } }
.otp-input {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0;
  border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent;
  font-size: 16px; letter-spacing: 0; opacity: 1; cursor: text;
}
.otp-input::selection { background: transparent; }
.otp-input:focus { outline: none; }
.otp:has([aria-invalid="true"]) .otp-cell { border-color: var(--error); }
@media (max-width: 380px) { .otp { gap: 7px; } .otp-cell { height: 58px; font-size: 23px; } }

/* The last step: how to reach Mawdoo3 on WhatsApp. */
.finish { text-align: center; }
.finish h1 { margin-bottom: 10px; }
.finish .lede { max-width: 30em; margin: 0 auto; }
.finish-qr {
  width: 232px; margin: 36px auto 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.finish-qr img { display: block; width: 100%; height: auto; }
.finish-caption { margin: 22px 0 12px; font-size: 16px; color: var(--muted); }
.number-pill {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  min-height: 60px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--field); color: var(--ink); font: inherit; font-size: 18px; font-weight: 500; cursor: pointer;
}
.number-pill:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.number-pill svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.finish .button.full { margin-top: 32px; }
.finish .button.wa { background: var(--wa); color: #fff; }
.finish-note { margin: 22px auto 0; max-width: 30em; font-size: 15px; color: var(--muted); }
.finish-more { margin: 26px 0 0; font-size: 15px; }
.finish-more a { color: var(--ink); text-underline-offset: 3px; }
.copied { font-size: 14px; color: var(--teal); min-height: 1.4em; margin: 8px 0 0; }

.auth-foot { display: flex; justify-content: center; gap: 20px; padding: 20px 20px 26px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: inherit; text-decoration: none; }
.auth-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .auth { padding-top: 7vh; } }

/* ---- The vault page (docs/plans/workspace.md §4): a section per kind, a card drawn as one ---- */
.vault-page { display: grid; gap: 32px; }
.vault-page .page-head { margin-bottom: -8px; }
.vault-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; } }
.vsec { display: grid; gap: 12px; align-content: start; min-width: 0; }
.vsec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vsec-head h2 { margin: 0; font-size: 19px; }
.vsec-head .add { min-height: 40px; padding: 0 12px; gap: 6px; font-size: 14px; }
.vsec-head .add svg { width: 16px; height: 16px; }
.vault-page .items { gap: 12px; }
.vault-page .item { display: grid; gap: 12px; padding: 16px; border-radius: 16px; min-width: 0; }
.vault-page .empty { border-radius: 16px; padding: 16px; font-size: 14px; line-height: 1.5; }
.item-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile-icon {
  width: 40px; height: 40px; flex: none; border-radius: 11px; border: 1px solid var(--line-2); background: #fff;
  display: grid; place-items: center; overflow: hidden; color: var(--muted);
}
.tile-icon.plain { background: var(--soft); border-color: var(--soft); }
.tile-icon img { width: 22px; height: 22px; object-fit: contain; }
.tile-letter { font-size: 17px; font-weight: 700; color: #0e1a1b; }
.item-name { min-width: 0; display: grid; gap: 1px; }
.vault-page .item h3 { font-size: 16px; line-height: 1.35; }
.vault-page .item .sub { font-size: 14px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.vault-page .chips { gap: 6px; }
.rule-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
}
.rule-row:hover { background: color-mix(in srgb, var(--soft) 70%, var(--line)); }
.rule-row:focus-visible { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 2px; }
.rule-row svg { flex: none; color: var(--muted); }
.rule-row.on { background: var(--tint); color: var(--tint-ink); }
.rule-row.on svg { color: currentColor; }
.rule-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rule-name { font-size: 14px; font-weight: 500; }
.rule-row.on .rule-name { font-weight: 600; }
.rule-sub { font-size: 13px; line-height: 1.4; }
.rule-change { flex: none; font-size: 14px; font-weight: 600; color: var(--tint-ink); }
.vault-page .item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.vault-page .item-foot .meta { margin: 0; font-size: 13px; }
.text-danger {
  flex: none; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--error); cursor: pointer;
}
.text-danger:hover, .text-danger:focus-visible { background: color-mix(in srgb, var(--error) 9%, transparent); }
.vault-page .confirm { margin-top: 0; }

/* A card, drawn at a bank card's proportions from what the vault keeps in the clear. */
.card-face {
  position: relative; width: min(360px, 100%); aspect-ratio: 1.586; border-radius: 18px; overflow: hidden;
  background: #0f2e2d; color: #fff; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 24px rgba(6, 12, 13, 0.18);
}
.card-face::before, .card-face::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.card-face::before { width: 260px; height: 260px; top: -120px; right: -70px; background: rgba(255, 255, 255, 0.06); }
.card-face::after { width: 190px; height: 190px; bottom: -95px; left: -50px; background: rgba(13, 191, 174, 0.16); }
.card-face > * { position: relative; }
.cf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cf-label { min-width: 0; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-brand { flex: none; font-size: 22px; font-weight: 700; font-style: italic; letter-spacing: 0.02em; line-height: 1; }
.cf-chip { width: 40px; height: 30px; border-radius: 6px; background: #d9c58c; }
.cf-number { font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 18px; letter-spacing: 0.12em; white-space: nowrap; }
.cf-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 36px; }
.cf-col { display: grid; gap: 2px; min-width: 0; }
.cf-col.end { text-align: right; flex: none; }
.cf-small { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.64); }
.cf-name { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-exp { font-size: 14px; font-weight: 600; }
@media (max-width: 360px) { .card-face { padding: 14px 16px; } .cf-number { font-size: 16px; } }

/* The vault page's dialogs: Add, who decides, and Always allow's note. A sheet from the bottom on a phone. */
dialog.panel { width: min(520px, calc(100vw - 32px)); padding: 24px; }
dialog.panel h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
dialog.panel:not([role="alertdialog"]) h2 { margin-inline-end: 44px; }
dialog.panel > .muted { margin: 0; }
dialog.panel form { margin-top: 20px; }
dialog.panel .dialog-x { position: absolute; top: 14px; inset-inline-end: 14px; }
dialog.panel .modal-buttons { margin-top: 8px; }
dialog.panel .modal-buttons .grow2 { flex: 2; }
@media (max-width: 600px) {
  dialog.panel {
    width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; padding: 22px 20px 24px;
    border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 48px rgba(6, 12, 13, 0.2);
  }
  dialog.panel[role="alertdialog"] { margin: auto; width: calc(100vw - 32px); border-radius: 20px; }
}
.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  font-size: inherit; font-weight: 400; cursor: pointer;
}
.choice:has(input:checked) { border: 2px solid var(--teal); padding: 13px; background: color-mix(in srgb, var(--teal) 6%, transparent); }
.choice:has(input:disabled) { cursor: default; }
.choice:has(input:disabled) .choice-name { color: var(--muted); }
.choice input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--teal); }
.choice-text { display: grid; gap: 2px; min-width: 0; }
.choice-name { font-size: 16px; font-weight: 600; }
.choice-sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.rule-hint { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.45; }
.rule-hint svg { flex: none; color: var(--muted); margin-top: 1px; }

/* The activity, with each site's icon. */
.vault-page .activity li { display: flex; align-items: flex-start; gap: 12px; }
.ev-icon {
  width: 28px; height: 28px; flex: none; margin-top: 1px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff;
  display: grid; place-items: center; overflow: hidden; color: var(--muted);
}
.ev-icon.plain { background: var(--soft); border-color: var(--soft); }
.ev-icon img { width: 16px; height: 16px; object-fit: contain; }
.ev-icon .tile-letter { font-size: 13px; }
.ev-text { min-width: 0; }
dialog.panel .error:empty { display: none; }

/* ---- Deleting an account (docs/plans/workspace.md §7): what goes, what stays, and the goodbye ---- */
.button.danger-outline { background: transparent; color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 45%, var(--line)); }
.button.danger-outline:hover { background: color-mix(in srgb, var(--error) 8%, transparent); }
.back-link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 40px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }
.del-list, .stay-list, .progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.del-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.del-list svg { flex: none; margin-top: 3px; color: var(--error); }
.del-note { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--error) 8%, transparent); font-size: 15px; line-height: 1.5; }
.del-note strong { font-weight: 600; }
.stay-list { gap: 8px; }
.stay-list li { position: relative; padding-inline-start: 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.stay-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.66em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stay-list a { color: inherit; text-underline-offset: 3px; }
.goodbye .lede + .lede { margin-top: 10px; }
.goodbye .button.full { margin-top: 32px; }
.progress-list { margin-top: 32px; gap: 14px; }
.progress-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); }
.progress-list li.done, .progress-list li[aria-current="step"] { color: var(--ink); }
.progress-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); box-sizing: border-box; }
.progress-list li.done .progress-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.progress-list li[aria-current="step"] .progress-dot { border-color: var(--teal); border-top-color: transparent; animation: m3-spin 0.9s linear infinite; }
@keyframes m3-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress-list li[aria-current="step"] .progress-dot { animation: none; border-top-color: var(--teal); } }
dialog.modal .error:empty { display: none; }
