:root {
  /* The brand (2026-10-18): the logo's indigo, #2C3592, with white; the token names stay from the teal era. */
  --bg: #ffffff;
  --ink: #121433;
  --muted: #5b5f7e;
  --line: #e1e3ef;
  --field: #ffffff;
  --teal: #2c3592;
  --teal-2: #4a52c4;
  /* The logo's indigo: accents (an underline, a marker, a focus ring) and, being dark enough, text too. */
  --brand: #2c3592;
  /* The logo itself (the splash): indigo on light, white on dark, as the logo files are. */
  --logo: #2c3592;
  --button: #2c3592;
  --button-ink: #ffffff;
  --error: #b42318;
  /* The workspace: panels, the selected section, WhatsApp's green. */
  --soft: #f5f6fb;
  --panel: #fafbfe;
  --line-2: #eef0f7;
  --tint: #eceefb;
  --tint-ink: #2c3592;
  --wa: #1fa855;
  /* Skeletons while a section loads: a soft block, and the gentle sweep across it. */
  --sk: var(--line-2);
  --sk-hi: var(--soft);
}
/* 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: #0b0d22; --ink: #eceefb; --muted: #a3a7c7; --line: #272b52; --field: #11143a;
  --teal: #a3a9f8; --teal-2: #bec2fb; --brand: #a3a9f8; --logo: #ffffff; --button: #a3a9f8; --button-ink: #0b0d22; --error: #f97066;
  --soft: #161a3d; --panel: #0f1230; --line-2: #1c2047; --tint: #1e2458; --tint-ink: #bec2fb;
  --sk: var(--soft); --sk-hi: var(--line-2);
}
/* A page that doesn't load theme.js (the file page, /f/) has no data-theme: it follows the phone,
   with the same dark colours (a test keeps the two blocks the same). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0d22; --ink: #eceefb; --muted: #a3a7c7; --line: #272b52; --field: #11143a;
    --teal: #a3a9f8; --teal-2: #bec2fb; --brand: #a3a9f8; --logo: #ffffff; --button: #a3a9f8; --button-ink: #0b0d22; --error: #f97066;
    --soft: #161a3d; --panel: #0f1230; --line-2: #1c2047; --tint: #1e2458; --tint-ink: #bec2fb;
    --sk: var(--soft); --sk-hi: var(--line-2);
  }
}

* { 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; }
/* The logo: the Arabic wordmark (indigo), its white twin in dark mode (theme.js's choice, or the phone's on a page without it).
   No symbol anywhere (the owner's call, 2026-10-18): a phone shows the wordmark too. */
.brand .logo { display: block; height: 28px; width: auto; }
.brand .logo-dark, .brand .logo-mark { display: none; }
.brand .logo-mark { display: none !important; }
:root[data-theme="dark"] .brand .logo:not(.logo-dark) { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand .logo:not(.logo-dark) { display: none; }
  :root:not([data-theme]) .brand .logo-dark { display: block; }
}
.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; }


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: 760px; padding-top: 32px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(32px, 4.6vw, 44px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16px; line-height: 1.75; }
.doc ul { padding-inline-start: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--brand); }
.doc a { text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc .summary { background: var(--tint); border-radius: 16px; padding: 20px 24px; margin: 0 0 8px; }
.doc .summary p:last-child { margin-bottom: 0; }
/* What's new */
.doc .entry { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.doc .entry h2 { margin: 4px 0 8px; }
.doc .entry time { color: var(--muted); font-size: 14px; }
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; }
/* The iMessage page: the number and words to send by hand, under the button. */
.after-button { margin-top: 22px; line-height: 1.6; }
.after-button code { font-size: 14px; word-break: break-word; }
.more { text-align: center; margin: 16px 0 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--tint-ink); 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;
}
/* iPhone Safari sizes a date box by its own text and let it run past the field it sits in; this keeps it the width and height of the others. */
input[type="date"] { display: block; min-width: 0; -webkit-appearance: none; appearance: none; }
/* A date is digits, left to right in either language, and iPhone Safari centres it unless told. */
input[type="date"]::-webkit-date-and-time-value { text-align: start; }
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); }
/* On the vault's pages (vault, fill, approve): the browser's grey placeholder is 3.9:1 on the dark field; ours is the muted text colour, as the hints are. */
[data-page="vault"] ::placeholder, [data-page="fill"] ::placeholder, [data-page="approve"] ::placeholder { color: var(--muted); opacity: 1; }
/* A box that writes either way (dir="auto") reads left to right while it's empty; in Arabic its placeholder belongs on the right, with the label. */
[dir="rtl"] input[dir="auto"]:placeholder-shown { text-align: right; }
/* On the vault's pages: a box marked for removal reads as off. */
[data-page="vault"] input:disabled, [data-page="vault"] select:disabled, [data-page="vault"] textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.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(8, 9, 30, 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:not(:disabled):hover, .reveal:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--line) 60%, transparent); }
.reveal:disabled { opacity: 0.5; cursor: not-allowed; }

.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; overflow-wrap: anywhere; }   /* B110: a long file name wraps, as the vault's does */
.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(8, 9, 30, 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 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 .logo { height: 24px; }
.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(8, 9, 30, 0.22);
}
[dir="rtl"] dialog.sheet { box-shadow: 24px 0 64px rgba(8, 9, 30, 0.22); }
dialog.sheet::backdrop { background: rgba(8, 9, 30, 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 .logo { height: 24px; }
.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) {
  /* The sidebar's panel and its rule run the frame's whole height, behind the sidebar that stays in view. */
  .signed-in .frame { background: linear-gradient(to right, var(--panel) 263px, var(--line-2) 263px 264px, transparent 264px) no-repeat; }
  [dir="rtl"] .signed-in .frame { background: linear-gradient(to left, var(--panel) 263px, var(--line-2) 263px 264px, transparent 264px) no-repeat; }
  .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) {
  /* On a computer, the column sits in the middle of the space beside the sidebar, at its own width (the owner, 2026-10-12:
     "this page is shifted on the left and seems cut off"); its text stays at the start, and Arabic mirrors it. */
  .page, .framed .wide { max-width: 900px; margin: 0 auto; 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's Change of Mawdoo3's email: the name before the @, then the domain, in one field (always left to right) */
.addr-field { display: flex; align-items: center; direction: ltr; background: var(--field); border: 1px solid var(--line); border-radius: 10px; }
.addr-field:focus-within { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 1px; border-color: var(--teal); }
.addr-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding-inline-end: 4px; }
.addr-field input:focus { outline: none; }
.addr-domain { flex: none; padding-inline-end: 16px; color: var(--muted); white-space: nowrap; }
.name-state.ok { color: var(--tint-ink); }
.name-state.bad { color: var(--error); }
/* A choice of two (the language in Preferences, a file's sharing): one pressed, as a tab. */
.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(8, 9, 30, 0.12); }

/* 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): the logo, one line, and the way in --------------------- */
.lp-body { overflow-x: hidden; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 32px 0; }
.lp-top .brand .logo { height: 28px; }
.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; }
.lp-signin { border: 1px solid var(--line); }

.lp-main { flex: 1; display: grid; place-items: center; max-width: none; padding: 6vh 24px 8vh; }
.lp-hero { width: 100%; max-width: 62rem; text-align: center; }
.lp-hero h1 { font-weight: 700; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 0.42em; text-wrap: balance; }
.lp-hero h1 span { display: block; }
.lp-accent { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 0.08em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
[lang="ar"] .lp-hero h1 { font-weight: 600; letter-spacing: 0; line-height: 1.4; font-size: clamp(36px, 5.6vw, 64px); }
.lp-lede { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.6; color: var(--muted); max-width: 31em; margin: 0 auto 2.1em; }
[lang="ar"] .lp-lede { line-height: 1.9; }
.lp-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 36px;
  border-radius: 999px; background: var(--button); color: var(--button-ink); text-decoration: none;
  font-size: 18px; font-weight: 600; box-shadow: 0 12px 28px -14px rgba(18, 20, 51, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-go:hover, .lp-go:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(18, 20, 51, 0.6); }
.lp-go:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.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 .arrow { transform: scaleX(-1); }
[dir="rtl"] .lp-go:hover .arrow { transform: scaleX(-1) translateX(4px); }
.lp-or { margin: 2.4em 0 0.9em; font-size: 14px; color: var(--muted); }
.lp-channels { display: flex; justify-content: center; gap: 12px; }
.lp-channel {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 9.5rem; min-height: 52px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink);
  font-size: 16px; font-weight: 500; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease;
}
.lp-channel:hover, .lp-channel:focus-visible { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); transform: translateY(-1px); }
.lp-channel:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.lp-channel img { width: 24px; height: 24px; flex: none; }
.lp-soon { display: inline-flex; align-items: center; gap: 10px; margin: 2em 0 0; font-size: 14px; color: var(--muted); }
.lp-stores { display: inline-flex; gap: 6px; }
.lp-stores img { width: 18px; height: 18px; filter: grayscale(1); opacity: 0.7; }

.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: 640px) {
  .lp-top { padding: 16px 16px 0; }
  .lp-main { place-items: start center; padding: 9vh 20px 6vh; }
  .lp-go { display: flex; width: 100%; }
  .lp-channels { gap: 10px; }
  .lp-channel { flex: 1; min-width: 0; padding: 0 12px; }
  .lp-soon { display: flex; justify-content: center; flex-wrap: wrap; text-align: center; }
  .lp-foot { padding: 14px 16px 22px; }
}
/* A phone keeps the wordmark in the header, a little smaller (no symbol, 2026-10-18). */
@media (max-width: 480px) {
  body:not(.framed) .top .brand .logo, .auth-top .brand .logo, .lp-top .brand .logo { height: 24px; }
}

/* The opening, on every page's full load: the logo draws itself while the page loads, then makes way (splash.js builds it
   first thing in <body>, and ends it once the page has loaded, never before its first pass). It sits above every layer of
   the page (the top bar, the sidebar, menus), never blocks a tap, and goes by itself after 2.6 s whatever happens. */
.splash {
  position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; background: var(--bg); pointer-events: none;
  animation: splash-out 0.35s ease 2.6s forwards;
}
.splash.gone { animation: splash-leave 0.35s ease forwards; }
.splash-logo { width: min(240px, 58vw); height: auto; overflow: visible; }
.splash-line {
  fill: none; stroke: var(--logo); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transform-box: fill-box; transform-origin: center; /* it pops with the fill, so the two never part */
  animation: splash-draw 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards, splash-fade 0.25s ease 0.85s forwards,
    splash-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s;
}
.splash-mark {
  fill: var(--logo); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: splash-show 0.3s ease 0.7s forwards, splash-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.75s;
}
.splash-word { fill: var(--logo); }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-fade { to { opacity: 0; } }
@keyframes splash-show { to { opacity: 1; } }
@keyframes splash-pop { 45% { transform: scale(1.1); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes splash-leave { to { opacity: 0; visibility: hidden; } }

/* The words rise in, one after another, as the opening makes way. */
@keyframes lp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lp-hero > * { animation: lp-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s backwards; }
.lp-hero > :nth-child(2) { animation-delay: 1.28s; }
.lp-hero > :nth-child(3) { animation-delay: 1.36s; }
.lp-hero > :nth-child(4) { animation-delay: 1.44s; }
.lp-hero > :nth-child(5) { animation-delay: 1.48s; }
.lp-hero > :nth-child(6) { animation-delay: 1.52s; }
@media (prefers-reduced-motion: reduce) {
  .lp-hero > * { animation: none; }
  .splash { display: none; }
  .lp-go, .lp-go .arrow, .lp-channel { 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; }
@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-weight: 600; font-size: clamp(32px, 7vw, 40px); line-height: 1.12; letter-spacing: -0.025em; 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); }
/* Joining from Telegram: whose Telegram it is, in the line and the question, and the one that joins with them. */
.auth .lede bdi { color: var(--ink); font-weight: 500; }
.auth .who-line.tg-line { margin: 18px 0 0; text-align: start; font-size: 15px; color: var(--ink); }
.auth .who-line.tg-line .link { font-size: 15px; color: var(--muted); padding: 4px; }
.auth .who-line .link { font-size: 14px; color: var(--muted); padding: 4px; }
.auth .who-line bdi { color: var(--muted); }
.auth .who-line.tg-line bdi { color: var(--ink); font-weight: 500; }

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

/* The new way in (login.js, JOIN_V2): the number a WhatsApp link proves, shown and locked; a code shown on the page in
   test mode (signin.js), marked as such; the steps of getting ready (the goodbye page's list); the chat's QR code. */
.auth input.locked { background: var(--soft); color: var(--ink); }
.test-code { margin: 16px 0 0; padding: 12px 16px; border: 1px dashed var(--teal); border-radius: 12px; background: var(--tint); }
.test-code p { margin: 0; font-size: 15px; color: var(--tint-ink); }
.test-code bdi { font-size: 19px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); font-variant-numeric: tabular-nums; }
.v2 .hint { margin: 8px 0 0; }
.v2 .notice { margin: 20px 0 0; }
.v2 .progress-dot svg { width: 15px; height: 15px; stroke-width: 2.6; }
.v2 .finish-note { margin: 22px 0 0; }
.ready-qr { margin-top: 4px; text-align: center; }
.ready-qr .finish-qr { margin-top: 28px; }
.finish-qr svg { display: block; width: 100%; height: auto; }

.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; }
/* The owner's simpler vault: full-width sections and expandable rows. */
.vault-simple { gap: 36px; }
.vault-simple .page-head { margin-bottom: 0; }
.vault-simple > .status:empty { display: none; }
.vault-simple > .status:not(:empty) { margin: 0; }
@media (min-width: 960px) { .vault-simple { gap: 44px; } }
.vault-section { min-width: 0; }
.vault-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vault-add { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; cursor: pointer; list-style: none; }
.vault-add::-webkit-details-marker { display: none; }
.vault-add:hover { background: var(--soft); }
.vault-add svg { width: 20px; height: 20px; }
/* A section's + shares its rows' end edge: the button reaches past it by the room around its glyph. */
.vault-section-head > .vault-add, .vault-section-head > .personal-add-menu { margin-inline-end: -15.5px; }
.vault-section-head > .sk-icon { margin-inline-end: 0; }
.vault-empty { color: var(--muted); font-size: 15px; margin: 0; padding: 18px 0 0; }
.vault-row { border-bottom: 1px solid var(--line-2); }
.vault-row:last-child { border-bottom: none; }
.vault-row-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; border-radius: 8px; }
.vault-row-summary::-webkit-details-marker { display: none; }
.vault-row-summary:hover { background: var(--soft); }
.vault-simple .item-name h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.vault-simple .item-name .sub { margin: 3px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.vault-row-permission { color: var(--muted); font-size: 13px; flex: none; max-width: 35%; text-align: end; }
.vault-row-controls { padding: 0 0 16px; }
.vault-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vault-row-actions .link { min-height: 44px; padding: 8px 12px; font-size: 15px; font-weight: 600; }
.vault-row-actions .text-danger { margin-inline-start: auto; }
.personal-add-menu { position: relative; }
.personal-add-options { position: absolute; inset-inline-end: 0; top: 48px; z-index: 2; min-width: 210px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: 0 6px 16px #0000000d; overflow: hidden; }
.personal-add-options button { display: block; width: 100%; text-align: start; border: 0; padding: 16px; font: inherit; font-size: 14px; background: transparent; color: var(--ink); cursor: pointer; }
.personal-add-options button + button { border-top: 1px solid var(--line-2); }
.personal-add-options button:hover { background: var(--soft); }
.vault-history { border-top: 1px solid var(--line); padding-top: 20px; }
.vault-history > summary { cursor: pointer; font-size: 16px; color: var(--muted); margin-bottom: 20px; }
.remove-field { align-items: center; min-height: 32px; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) {
  .vault-row-summary { align-items: flex-start; gap: 12px; }
  .vault-row-permission { max-width: 100px; }
}
.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: #121433; }
.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(8, 9, 30, 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(44, 53, 146, 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(8, 9, 30, 0.2);
  }
  @supports (height: 100dvh) { dialog.panel { max-height: 92dvh; } }
  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 selected save action is also the permission; changing it never submits. */
.save-permission { display: grid; gap: 12px; min-width: 0; }
.save-permission-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.save-split { display: flex; gap: 6px; min-width: 0; }
.save-split > .button { flex: 1; min-width: 0; white-space: normal; }
.save-options { flex: none; position: relative; }
.save-options .save-toggle { display: flex; align-items: center; justify-content: center; width: 52px; height: 100%; min-height: 52px; padding: 0; cursor: pointer; list-style: none; }
.save-toggle::-webkit-details-marker { display: none; }
.save-options[open] .caret { transform: rotate(225deg); }
.save-options fieldset { position: absolute; z-index: 5; inset-inline-end: 0; bottom: calc(100% + 8px); width: 220px; max-width: 75vw; padding: 8px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--field); box-shadow: 0 8px 28px #0002; }
.save-options label { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0; cursor: pointer; }
.save-options input[type="radio"] { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; accent-color: var(--teal); }
.save-card-actions { display: grid; gap: 10px; }
.request-website { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.request-website > span { color: var(--muted); font-size: 13px; }
.request-website a { overflow-wrap: anywhere; justify-self: start; }

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

/* ---- Shared by Your circle's rows and the workspace's (Home, Preferences): a tile, a note, and a ⋯ menu ---- */
.app-mark {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--soft); border: 1px solid var(--line-2); color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1;
}
.app-note:empty { display: none; }
.app-note:focus { outline: none; }
.app-note.bad { border-color: var(--error); }
.app-note a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.app-note a svg { display: inline-block; vertical-align: -2px; margin-inline-start: 3px; }
[dir="rtl"] .app-note a svg { transform: scaleX(-1); }
.more-wrap { position: relative; display: flex; flex: none; margin-inline-start: auto; }
/* The sign-in page's ".more" link has a top margin; the ⋯ button shares its class name, not its place. */
.menu-button.more { margin: 0; }
.more-menu {
  position: absolute; top: calc(100% + 4px); inset-inline-end: 0; z-index: 30; min-width: 13rem; padding: 6px;
  display: grid; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(8, 9, 30, 0.16);
}
.menu-item {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-align: start; white-space: nowrap; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--soft); outline: none; }
.menu-item.danger { color: var(--error); }
.account-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.needs { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--error); }
.needs svg { flex: none; }
/* Telegram's own button, in its frame: it takes the room it asks for. */
.tg-login { min-height: 40px; max-width: 100%; overflow: hidden; }
.tg-login iframe { max-width: 100%; }
/* The sign-in page's other way in: Telegram's button, under the number. */
.tg-section { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.tg-section .or-line { margin: 0; font-size: 15px; color: var(--muted); }
.tg-section .error:empty { display: none; }

/* ---- Our sign-in link (/connect/<code>): a moment on the way to the app's sign-in, or why the link can't be used ---- */
.going { display: flex; align-items: center; gap: 10px; }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--teal); animation: m3-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.connect-buttons { display: grid; gap: 10px; margin-top: 28px; }

/* ---- Your circle (/people/, docs/roadmap/assistant-network-build.md): their link, requests, their people, the blocked,
   and the pause; a card per person ---- */
.page .app-note { margin: 0; padding: 2px 12px; border-inline-start: 3px solid var(--teal); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
/* A note about something that went wrong keeps its red bar. */
.page .app-note.bad { border-color: var(--error); }
.circle-list { display: grid; gap: 12px; }
.circle-row { gap: 12px; }
.circle-row-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.circle-row-top > .button { flex: none; margin-inline-start: auto; }
.circle-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.avatar.small { width: 40px; height: 40px; font-size: 16px; }
.circle-who-text { display: flex; flex-direction: column; min-width: 0; }
.circle-name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.circle-sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; text-align: start; }
/* A name, or a link, reads in its own direction (it's isolated), but lines up with the page's: a name in Latin letters
   sits by its badge in Arabic, as the number under it does, and an Arabic name does in English; a link sits by its icon. */
[dir="ltr"] .circle-name, [dir="ltr"] .circle-link-url, [dir="ltr"] .invite-url { text-align: left; }
[dir="rtl"] .circle-name, [dir="rtl"] .circle-link-url, [dir="rtl"] .invite-url { text-align: right; }
.circle-sub:empty { display: none; }
.circle-flag { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--error); }
.circle-flag svg { flex: none; margin-top: 2px; }
.circle-choose { display: grid; gap: 12px; }
.circle-ask { font-size: 16px; font-weight: 600; }
.circle-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badge.paused { background: var(--tint); color: var(--tint-ink); }
.circle-can { font-size: 15px; line-height: 1.5; }
.circle-foot { margin: 0; }
.circle-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; }
.circle-link .app-mark { flex: none; }
.circle-link-url { flex: 1 1 140px; min-width: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; text-align: start; }
.circle-link.off .circle-link-url { color: var(--muted); text-decoration: line-through; }
.circle-link-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.circle-link-actions .more, .circle-row-top .more { margin: 0; }
.circle-blocked { border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.circle-blocked > summary {
  display: flex; align-items: center; gap: 8px; min-height: 52px; cursor: pointer; font-size: 17px; font-weight: 600; list-style: none;
}
.circle-blocked > summary::-webkit-details-marker { display: none; }
.circle-blocked > summary::after {
  content: ""; width: 7px; height: 7px; margin-inline-start: auto; margin-top: -4px; transform: rotate(45deg); transition: transform 0.15s;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
}
.circle-blocked[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.circle-blocked[open] { padding-bottom: 16px; }
.circle-blocked > .hint { margin: 0 0 12px; }
.blocked-row { padding: 10px 0; border-top: 1px solid var(--line-2); }
.circle-conn.paused { background: var(--soft); border-color: var(--soft); }

/* ---- Someone's personal link (/c/<token>) and a pick-a-time link (/t/<token>): one static page each ---- */
.circle-page .lede, .pick-page .lede { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.circle-page .choices { margin-top: 12px; }
.circle-page .hint { margin: 12px 0 0; }
.pick-page { max-width: 520px; }
.pick-page h1 { overflow-wrap: anywhere; }
.pick-zone { margin: -8px 0 16px; }
[dir="rtl"] .pick-zone[dir="ltr"] { text-align: right; }
.pick-where { margin: 0 0 16px; font-weight: 500; overflow-wrap: anywhere; }
.pick-notice { margin: 0 0 14px; }
.pick-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.pick-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0 0 8px; }
.pick-day, .pick-time {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pick-day:hover, .pick-time:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.pick-day[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: var(--tint-ink); font-weight: 600; }
.pick-time[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: var(--button-ink); font-weight: 600; }
.pick-page .stack.fields { margin-top: 20px; }
.pick-page textarea { min-height: 96px; }
.pick-page .fine { margin: 0; }
.pick-page .error:empty { display: none; }
.pick-page ::placeholder { color: var(--muted); opacity: 1; }
.pick-ticks { margin: 0 0 18px; padding-inline-start: 22px; }
.pick-ticks li { margin-bottom: 4px; }
.pick-ics { margin-top: 20px; }
.get-yours { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.get-yours p { margin: 0; }

/* ---- The workspace's Home and Preferences (the redesign of 2026-10-12; the owner: "the design is perfect") ------------
   Rows, not cards: a section is its title, one quiet line and a rule, then rows split by hairlines. A way in or an app is
   a 36 px tile, its name and one line, and its action; what's theirs (an account, a number, a handle, a phone) is an
   indented soft row with a dot and a ⋯ menu. Teal is for accents (the dot, a switch, a note's bar); teal words are
   --tint-ink. Phones stack what computers set side by side, below 600 px. */
.ws-page {
  width: 100%; max-width: calc(46rem + 32px); margin: 0 auto; padding: 24px 16px 40px;
  display: flex; flex-direction: column; gap: 40px;
}
@media (min-width: 600px) {
  .ws-page {
    max-width: calc(46rem + 2 * clamp(16px, 5.6vw, 72px)); gap: 48px;
    padding: clamp(24px, 4.4vw, 56px) clamp(16px, 5.6vw, 72px) 64px;
  }
}
.ws-page p { margin: 0; }
.ws-page .hint { margin: 0; }
.ws-page .error { margin: 0; min-height: 0; font-size: 14px; }
.ws-page .error:empty, .ws-page .field-error:empty, .ws-page .status:empty { display: none; }
.ws-page .button.small { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.ws-page .button.secondary { background: var(--bg); }
:root[data-theme="dark"] .ws-page .button.secondary { background: transparent; }
.ws-page .button[disabled] { opacity: 0.45; cursor: not-allowed; }
.ws-page .buttons { gap: 8px; }
.ws-page .link { font-size: 14px; }
.ws-page input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 10px; }
.ws-page .select select { min-height: 44px; padding-block: 0; padding-inline: 12px 40px; font-size: 15px; border-radius: 10px; }
.ws-page .select::after { inset-inline-end: 16px; }
.ws-page .saved-note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--tint-ink); }
.ws-page .saved-note:empty { display: none; }

/* The greeting, or the page's name, and its one line. */
.ws-hello { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ws-hello h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.ws-hello p { font-size: 15px; color: var(--muted); }
@media (min-width: 600px) { .ws-hello h1 { font-size: 34px; } .ws-hello p { font-size: 16px; } }
[dir="rtl"] .ws-hello h1 { line-height: 1.35; letter-spacing: 0; }

/* A section: its title, one line, a rule; then its rows. */
.ws-section { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 16px; }
.ws-section:focus { outline: none; }
.ws-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ws-head h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.ws-head p { font-size: 14px; color: var(--muted); }
[dir="rtl"] .ws-head h2 { line-height: 1.35; letter-spacing: 0; }
.ws-body { display: flex; flex-direction: column; min-width: 0; }
.ws-body > :not(:last-child):not(.device-panel):not(.sr-only), .ws-list > :not(:last-child) { border-bottom: 1px solid var(--line-2); }
.ws-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.ws-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.ws-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ws-row-name { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; text-align: start; }
.ws-quiet { padding: 12px 0; font-size: 15px; color: var(--muted); }
.ws-failed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; }
.ws-notice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 14px; background: var(--soft); }
.ws-notice-card:empty { display: none; }
.ws-page .ws-after { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ws-after a { color: var(--tint-ink); font-weight: 600; text-underline-offset: 3px; }
.ws-after a:hover { color: var(--ink); }

/* The tile beside a name: a soft square with a mark, or an app's logo on white (in the dark theme too). */
.ws-tile { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--soft); color: var(--tint-ink); display: grid; place-items: center; }
.ws-tile img { display: block; width: 20px; height: 20px; }
.ws-tile.logo { background: #fff; border: 1px solid var(--line); }
:root[data-theme="dark"] .ws-tile.logo { border-color: #fff; }
.ws-tile.letter { border: 1px solid var(--line-2); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; }

/* An action as an icon (Copy, a QR code, Open), and one as words in teal (Change, Sign out, Privacy policy). */
.icon-button {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; text-decoration: none;
}
a.icon-button { color: var(--ink); }
.icon-button:hover, .icon-button:focus-visible { background: var(--soft); color: var(--ink); }
.icon-button.done { color: var(--tint-ink); }
[dir="rtl"] .icon-button.flips svg { transform: scaleX(-1); }
.ws-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--tint-ink); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.ws-link:hover, .ws-link:focus-visible { background: var(--soft); }
.ws-link.plain { color: var(--ink); }
.ws-link.danger { color: var(--error); }
.ws-link[disabled] { color: var(--muted); cursor: default; }
.ws-badge { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }

/* Home's "Reach Mawdoo3": a row each for its WhatsApp, Telegram and email. On a phone the value sits under the name, with
   Copy and Open at the end; on a computer the name has its column, Copy follows the value, and the QR button shows. */
.reach-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; column-gap: 12px; align-items: center; padding: 12px 0;
  grid-template-areas: "tile name copy end" "tile value copy end" "notes notes notes notes";
}
.reach-row > .ws-tile { grid-area: tile; }
.reach-name { grid-area: name; font-size: 15px; font-weight: 600; }
.reach-value { grid-area: value; justify-self: start; max-width: 100%; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.reach-copy { grid-area: copy; }
.reach-end { grid-area: end; display: flex; align-items: center; }
.reach-notes { grid-area: notes; display: grid; gap: 2px; padding-top: 6px; padding-inline-start: 48px; }
.reach-note { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.reach-note.ink { color: var(--ink); }
.reach-qr { display: none; }
@media (hover: hover) and (min-width: 760px) { .reach-qr { display: inline-grid; } }
@media (min-width: 600px) {
  .reach-row {
    grid-template-columns: 48px calc(8rem + 16px) minmax(0, max-content) 48px 1fr auto; column-gap: 0;
    grid-template-areas: "tile name value copy . end" "notes notes notes notes notes notes";
  }
  .reach-name { font-weight: 500; }
  .reach-value { font-size: 15px; }
  .reach-copy { justify-self: end; }
}
.qr-modal { text-align: center; }
.qr-modal h2 { margin-inline-end: 0 !important; padding-inline: 44px; }
.qr-picture { display: grid; place-items: center; margin: 16px 0 12px; }
.qr-picture img, .qr-picture svg { display: block; width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr-modal .hint { margin: 0; font-size: 14px; }

/* Home's "Connected apps": an app per row (its logo, name and line, and Connect or Add account), its accounts under it. */
.app-row { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; min-width: 0; }
.app-row.is-target { margin-inline: -12px; padding-inline: 12px; border-radius: 12px; background: color-mix(in srgb, var(--tint) 55%, transparent); }
.app-row-head { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "mark name action" "mark covers action"; column-gap: 12px; align-items: center; }
.app-row-head > .ws-tile { grid-area: mark; }
.app-row-name { grid-area: name; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.app-row-covers { grid-area: covers; font-size: 14px; color: var(--muted); }
.app-row-head > .button { grid-area: action; }
@media (max-width: 599px) {
  .app-row-head { grid-template-areas: "mark name action" "mark covers covers"; }
  .app-row-head > .ws-tile { align-self: start; margin-top: 4px; }
}
.ws-page .app-note { margin: 0; padding: 2px 12px; border-inline-start: 3px solid var(--teal); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.app-row > .app-note, .app-row > .ws-subs { margin-inline-start: 48px; }
@media (max-width: 599px) { .app-row > .app-note, .app-row > .ws-subs { margin-inline-start: 0; } }

/* What's theirs: soft rows with a dot (teal when it works, red when it doesn't, grey when it's quiet) and a ⋯ menu. */
.ws-subs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-sub { display: flex; flex-direction: column; min-width: 0; border-radius: 12px; background: var(--soft); }
.ws-sub-top { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; padding-inline-start: 16px; }
.ws-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--brand); }
.ws-sub.stopped .ws-dot, .ws-sub.blocked .ws-dot { background: var(--error); }
.ws-sub.off .ws-dot, .ws-sub.idle .ws-dot { background: var(--muted); }
.account-who { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.account-name { max-width: 100%; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; text-align: start; }
.covers { flex: none; display: flex; align-items: center; gap: 10px; color: var(--muted); }
@media (max-width: 359px) { .covers { display: none; } }
.ws-sub .more-wrap { margin-inline-start: auto; }
.ws-sub .menu-button.more { border-radius: 10px; color: var(--muted); }
.ws-sub .menu-button.more:hover, .ws-sub .menu-button.more:focus-visible, .ws-sub .menu-button.more[aria-expanded="true"] { background: var(--line); color: var(--ink); }
.ws-sub > .account-state { padding: 0 12px 12px; padding-inline-start: 36px; }
.ws-sub > .account-state .hint { font-size: 13px; }
.ws-sub > .hint { padding: 0 12px 12px; padding-inline-start: 36px; font-size: 13px; }
.ws-sub > .confirm { margin: 0 12px 12px; margin-inline-start: 36px; padding-top: 12px; }
.ws-sub-name { flex: 0 1 9rem; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.ws-sub-name.wa-status { flex: 1 1 auto; font-weight: 500; padding-block: 10px; padding-inline-end: 12px; }
.ws-sub-state { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--muted); }
.ws-sub-top > .needs { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.ws-sub-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding-block: 8px; }
.ws-sub-top > .button { margin-inline-end: 4px; }
.ws-page .confirm p { font-size: 14px; margin: 0 0 10px; overflow-wrap: anywhere; }

/* Preferences' Chat apps: a block per app (a grid: its tile, name and line, its action), with what's theirs indented
   under the name on a computer. WhatsApp's Add a number sits in the head on a computer, under the numbers on a phone. */
.chat-app {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 12px; align-items: center;
  padding: 12px 0; min-width: 0;
}
.chat-app > .ws-tile { grid-column: 1; grid-row: 1; }
.ca-text { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; }
.ca-name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.ca-line { font-size: 14px; color: var(--muted); }
.ca-action { grid-column: 3; grid-row: 1; }
.chat-app > .ca-wide { grid-column: 2 / -1; min-width: 0; }
.ca-limit { font-size: 13px; }
.ca-foot { display: contents; }
.ca-foot > .ca-add { grid-column: 3; grid-row: 1; }
.ca-foot > .change-number { grid-column: 2 / -1; }
@media (max-width: 599px) {
  .chat-app > .ca-wide { grid-column: 1 / -1; }
  .ca-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 8px; }
  .ca-foot > .ca-add { margin-inline-end: 4px; }
}
.line-who { flex: 0 1 9rem; }
@media (max-width: 599px) { .line-who { flex-basis: 7.5rem; } }
.line-number { flex: 0 1 auto; min-width: 0; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.line-number-above { padding: 12px 12px 0; padding-inline-start: 16px; font-size: 13px; color: var(--muted); }
.ws-sub > .rename-form { margin: 0; padding: 12px; padding-inline-start: 16px; display: grid; gap: 8px; }
.rename-form label { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.change-number > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none;
  color: var(--tint-ink); font-size: 14px; font-weight: 600;
}
.change-number > summary::-webkit-details-marker { display: none; }
.change-number > summary svg { flex: none; transition: transform 0.15s; }
.change-number[open] > summary svg { transform: rotate(180deg); }
.change-number > .hint { padding-bottom: 4px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .change-number > summary svg { transition: none; } }
/* What's under a block for a moment: connecting (its words, Open, the wait), the one waiting for Confirm, Disconnect's
   question, a phone of the Mawdoo3 app asking to connect. */
.ws-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--soft); min-width: 0; }
.ws-panel > * { max-width: 100%; }
.ws-panel p { overflow-wrap: anywhere; font-size: 15px; }
.ws-panel .hint, .ws-panel .status { font-size: 14px; }
.ws-panel .wa-text {
  align-self: stretch; color: var(--ink); font-weight: 500; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); overflow-wrap: anywhere; user-select: all; text-align: start;
}
.ws-panel .actions { margin: 0; }
.ws-panel .confirm { margin: 0; padding: 0; border: 0; }
.ws-panel .ws-notice { font-size: 15px; }
.ws-panel .ws-notice:focus { outline: none; }
.device-panel { margin-top: 12px; }
.line-qr { display: grid; justify-items: start; gap: 8px; }
.line-qr svg { display: block; width: 148px; height: 148px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.device-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.device-name .muted { font-weight: 400; }
.device-row .ws-sub-text .hint { font-size: 13px; }

/* Preferences' rows: the label in its column on a computer (above, small, on a phone), the control, and one quiet line. */
.pf-row { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 24px; row-gap: 8px; padding: 12px 0; min-width: 0; }
.pf-label { flex: 0 0 10rem; margin: 0; padding-top: 11px; font-size: 15px; font-weight: 500; color: var(--ink); }
.pf-body { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pf-body > .select, .pf-body > .app-note, .pf-body > .pf-pair { align-self: stretch; }
.pf-hint { font-size: 13px; color: var(--muted); }
.pf-select { width: 100%; max-width: 18rem; }
.pf-select.hour { width: 7rem; }
.pf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-field label { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.pf-field .field-error { margin: 0; }
.pf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-name { align-items: flex-end; }
.pf-name > .pf-label { padding: 0 0 11px; }
.pf-name > .pf-body { flex-basis: 18rem; }
.pf-name > .save-row { flex: none; display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; }
.pf-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.quiet-window { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.quiet-at { display: flex; align-items: center; gap: 8px; }
.quiet-at label { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.ws-page .segmented { max-width: 18rem; width: 100%; }
.ws-page .segmented button { font-size: 14px; }
.tz-device { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13px; color: var(--muted); }
.pf-end { align-items: center; justify-content: space-between; }
.pf-end > .pf-note { flex: 1 1 20rem; }
.pf-end > .save-row { flex: none; display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; }
.pf-form { margin: 0; display: grid; gap: 8px; width: 100%; }
.pf-form .buttons { align-items: center; }
.pf-email { align-items: flex-start; }
.ws-switch { flex: none; width: 56px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ws-switch-track { position: relative; display: block; width: 52px; height: 32px; border-radius: 999px; background: var(--line); transition: background 0.15s; }
.ws-switch[aria-checked="true"] .ws-switch-track { background: var(--teal); }
.ws-switch-knob {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(8, 9, 30, 0.25); transition: inset-inline-start 0.15s;
}
.ws-switch[aria-checked="true"] .ws-switch-knob { inset-inline-start: 23px; }
.ws-switch:focus-visible { outline: none; }
.ws-switch:focus-visible .ws-switch-track { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ws-switch-track, .ws-switch-knob { transition: none; } }
.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; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.stepper button:hover, .stepper button:focus-visible { background: var(--soft); }
.stepper output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* The rows of a value and its action (Sign-in, Privacy, your email addresses). */
.pf-kv { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 4px; padding: 12px 0; min-width: 0; }
.pf-kv > .pf-label { padding-top: 0; }
.pf-value { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pf-value > .app-note { align-self: stretch; margin-top: 6px; }
.pf-text { font-size: 15px; overflow-wrap: anywhere; text-align: start; }
.pf-text.strong { font-weight: 500; }
.pf-action { flex: none; display: flex; align-items: center; }
.pf-mine-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; margin-inline-start: 48px; }
form.pf-mine-add { display: grid; align-items: stretch; }
.ws-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.ws-danger-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 599px) {
  .pf-row { flex-direction: column; align-items: stretch; }
  /* Stacked, a flex basis would be a height: each part is as tall as it is. */
  .pf-row > *, .pf-row > .pf-body, .pf-row > .pf-note, .pf-row > .save-row, .pf-row > .pf-label { flex: none; }
  .pf-label { flex: none; padding-top: 0; font-size: 13px; color: var(--muted); }
  .pf-select, .ws-page .segmented { max-width: none; }
  .pf-name > .pf-label { display: none; }
  .pf-name > .save-row { flex-direction: row; justify-content: flex-start; }
  .pf-end > .save-row { flex-direction: row; justify-content: flex-start; }
  /* A switch or a stepper: its name and line at the start, the control at the end, the hours under them. */
  .pf-row.pf-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: center; }
  .pf-toggle > .pf-body, .pf-toggle .pf-inline { display: contents; }
  .pf-toggle > .pf-label { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 500; color: var(--ink); }
  .pf-toggle .pf-hint { grid-column: 1; grid-row: 2; }
  .pf-toggle .ws-switch, .pf-toggle .stepper { grid-column: 2; grid-row: 1 / 3; }
  .pf-toggle .quiet-window { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; }
  .pf-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; }
  .pf-kv > .pf-label { grid-column: 1; font-size: 15px; font-weight: 500; }
  .pf-kv > .pf-value { grid-column: 1; }
  .pf-kv .pf-text { font-size: 14px; }
  .pf-kv > .pf-action { grid-column: 2; grid-row: 1 / 3; }
  .pf-mine-add { margin-inline-start: 0; flex-direction: column; align-items: flex-start; }
  .ws-link { padding: 0 8px; }
  .ws-danger > .ws-link { margin-inline-start: -8px; }
}

/* ---- Skeletons, while a section loads (the owner, 2026-10-12: "a skeleton load instead of a rotating bar") ----------
   Blocks in the shapes and heights of the rows that come, hidden from screen readers (the busy region says "Loading…"
   to them), in the theme's soft tone, with a gentle sweep only for someone who allows motion. */
.sk { display: block; flex: none; border-radius: 6px; background: var(--sk); }
@media (prefers-reduced-motion: no-preference) {
  .sk {
    background: linear-gradient(90deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) 0 0 / 300% 100%;
    animation: sk-sweep 1.6s ease-in-out infinite;
  }
  [dir="rtl"] .sk { animation-direction: reverse; }
}
@keyframes sk-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.sk-lines { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 12px; }
.sk-line + .sk-line { height: 10px; }
.sk-w20 { width: 20%; min-width: 64px; }
.sk-w30 { width: 30%; min-width: 80px; }
.sk-w40 { width: 40%; min-width: 96px; }
.sk-w55 { width: 55%; min-width: 120px; }
.sk-w60 { width: 60%; min-width: 128px; }
.sk-w70 { width: 70%; min-width: 140px; }
.sk-tile { width: 36px; height: 36px; border-radius: 10px; }
/* The person in the menu and the sidebar while the session is checked (shell.js): the badge's size, round. */
.sk-avatar { width: 44px; height: 44px; border-radius: 50%; }
.side-foot .sk-avatar { width: 36px; height: 36px; }
.sk-icon { width: 24px; height: 24px; margin: 10px; }
.sk-button { width: 96px; height: 44px; border-radius: 10px; }
.sk-field { flex: 1 1 10rem; max-width: 18rem; height: 44px; border-radius: 10px; }
.sk-link { width: 64px; height: 16px; margin: 14px 12px; }
.sk-subrow { height: 44px; border-radius: 12px; }
.sk-panel { height: 172px; border-radius: 12px; }
.sk-title { width: 40%; max-width: 240px; height: 30px; border-radius: 10px; margin: 2px 0; }
.sk-sub { height: 12px; margin: 5px 0; }
@media (min-width: 600px) { .ws-hello .sk-title { height: 36px; } .ws-hello .sk-sub { height: 14px; } }
.ws-hello .sk-sub { width: 60%; max-width: 420px; }
.ws-head .sk-sub { max-width: 380px; margin: 4px 0 5px; }
.sk-row.pf-row > .sk-lines { flex: 0 0 10rem; }
.sk-row.pf-name-shape > .sk-lines { flex: 0 0 10rem; }
.chat-app.sk-block > .sk-lines { grid-column: 2; grid-row: 1; }
@media (max-width: 599px) {
  /* As the rows they stand for are on a phone: the label's line, then the field under it (a name's two side by side,
     its Save under them), never stacked and centred as the rows' own column would put them. */
  .sk-row.pf-row, .sk-row.pf-mine-add { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sk-row.pf-row > .sk-lines { flex: 0 0 100%; }
  .sk-row.pf-row > .sk-field { flex: 0 0 100%; max-width: none; }
  .sk-row.pf-name-shape > .sk-field { flex: 1 1 calc(50% - 6px); }
}
/* Files, Vault and Your circle: their shapes sit inside their rows' own elements (a card's heading, the line under it, a
   row's tile), so each shape is as tall as the row that takes its place. A line of text is a short bar in its line. */
.sk.sk-text { display: inline-block; vertical-align: middle; height: 0.75em; max-width: 100%; }
.sk-kind { width: 72px; height: 26px; border-radius: 999px; }
.sk-btn-sm { width: 76px; height: 42px; border-radius: 10px; }
.sk-btn-sm.sk-copy { width: 98px; }
.sk-btn-sm.sk-pause { width: 96px; }
.sk-mark { width: 44px; height: 44px; border-radius: 12px; }
.sk-tile40 { width: 40px; height: 40px; border-radius: 11px; }
.sk-badge { width: 72px; height: 25px; border-radius: 999px; }
.sk.sk-perm { width: 104px; min-width: 0; }
.circle-who > .sk-avatar { width: 40px; height: 40px; }
/* The lines take the room their text would. */
.sk-shape .item-head > h3, .sk-shape .item-top, .sk-shape .item-name, .sk-shape .circle-who-text { flex: 1 1 auto; }
.sk-shape .vault-row-summary { cursor: default; }
.sk-shape .vault-row-summary:hover { background: none; }

/* ---- The assistant network v2 and invitations (docs/roadmap/assistant-network-v2/build.md §7) ----------------------
   The link pages' shapes until their script draws (never a spinner); Your circle's Waiting, a person's row that opens
   their page, the one-request page, a person's page and a plan's page; Invite a friend, Home's card for it, an invite
   link's page and the join page's line for one. The site's own tokens and rows; nothing new in colour. */
.link-shapes { display: grid; gap: 14px; }
.link-shapes .sk-title { width: 72%; max-width: 360px; height: 36px; margin: 4px 0 6px; }
.sk-button-full { width: 100%; height: 56px; border-radius: 12px; margin-top: 14px; }
.sk-btn-sm.sk-withdraw { width: 116px; }
.invite-page .lede { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.invite-page h1, .circle-page h1 { overflow-wrap: anywhere; }
.circle-page .hint { margin: 16px 0 0; }

/* Your circle: a person's row opens their page; a request they sent; what's open, counted. */
a.circle-who.open { color: inherit; text-decoration: none; border-radius: 12px; margin: -6px; padding: 6px; min-height: 52px; }
a.circle-who.open:hover { background: var(--soft); }
a.circle-who.open:focus-visible { outline: 2px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 0; }
.circle-who .chevron { flex: none; display: grid; place-items: center; color: var(--muted); margin-inline-start: auto; }
[dir="rtl"] .chevron.flips svg { transform: scaleX(-1); }
.avatar.sent { color: var(--tint-ink); }
.badge.open { background: var(--soft); color: var(--ink); }
.circle-chose { margin: -4px 0 0; }
.circle-invite { margin: 0; }
.circle-invite a { color: var(--tint-ink); font-weight: 600; text-underline-offset: 3px; }

/* The one-request page (/people/?r=…). */
.request-page { display: grid; gap: 18px; max-width: 560px; }
.request-page h1 { margin: 0; overflow-wrap: anywhere; }
.request-page h1:focus { outline: none; }
.request-page .lede { margin: 0; font-size: 17px; color: var(--muted); }
.request-page .lede bdi { color: var(--ink); font-weight: 500; }
.request-who { gap: 12px; }
.request-who .circle-sub { line-height: 1.45; }
.request-number { margin: 0; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: start; }
.request-line { margin: 0; font-size: 16px; line-height: 1.55; }
.request-buttons, .request-after { display: grid; gap: 10px; }
.request-buttons .button, .request-after .button { width: 100%; }
@media (min-width: 600px) {
  .request-buttons, .request-after { display: flex; flex-wrap: wrap; }
  .request-buttons .button, .request-after .button { width: auto; min-width: 140px; }
}
.request-page .app-note:empty { display: none; }
.request-page .hint { margin: 0; }

/* A person's page (/people/person/) and a plan's (/people/plan/). */
.page > .back-link + .page-head { margin-top: -20px; }
.person-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.person-head .circle-who { gap: 14px; }
.person-head h1 { margin: 0; overflow-wrap: anywhere; text-align: start; }
.person-head .circle-sub { font-size: 16px; }
.person-head .sk.sk-text { height: 1.4em; }
.person-relation { margin: 0; font-size: 16px; font-weight: 500; }
.person-relation.muted { font-weight: 400; color: var(--muted); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.rule-text { font-size: 15px; overflow-wrap: anywhere; text-align: start; }
.rule-until { font-size: 13px; color: var(--muted); }
.threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thread-row { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.thread-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.thread-what { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.badge.you, .badge.agreed { background: var(--tint); color: var(--tint-ink); }
.thread-when { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.receipts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.receipts li { position: relative; padding-inline-start: 12px; }
.receipts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.person-actions { gap: 12px; }
.person-actions .app-note:empty { display: none; }
.person-actions .confirm { margin: 0; }
.person-actions .hint { margin: 0; }
.plan-when, .plan-where { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.plan-options { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 15px; }
.plan-members, .plan-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plan-members > li:not(:last-child), .plan-steps > li:not(:last-child) { border-bottom: 1px solid var(--line-2); }
.plan-member { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.plan-member-text { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.plan-rsvp { flex: none; font-size: 14px; color: var(--muted); }
.plan-member.rsvp-works .plan-rsvp { color: var(--tint-ink); font-weight: 600; }
.plan-steps > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; }

/* Invite a friend (/invite/). */
.invite-count { gap: 6px; }
.invite-used { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.invite-count .hint { margin: 0; }
.invite-count.used-up { background: var(--soft); border-color: var(--soft); }
.invite-list { display: grid; gap: 12px; }
.invite-link { gap: 12px; }
.invite-label { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; text-align: start; }
.invite-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; }
.invite-url { flex: 1 1 140px; min-width: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; text-align: start; }
.invite-link.off .invite-url { color: var(--muted); text-decoration: line-through; }
.invite-copy { flex: none; margin-inline-start: auto; gap: 6px; }
.invite-link-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.invite-joined { font-size: 14px; color: var(--muted); }
.invite-link .app-note:empty { display: none; }
.invite-link .confirm { margin-top: 0; }
.invite-new { margin: 0; display: grid; gap: 8px; }
.invite-new label { margin: 0; }
.invite-new input { max-width: 26rem; }
.invite-new .hint { margin: 0; }
.invite-new .field-error { margin: 0; }
.invite-new .buttons { margin-top: 4px; }
.invite-new ::placeholder { color: var(--muted); opacity: 1; }
.invite-new input:disabled { opacity: 0.55; cursor: not-allowed; }

/* Home's card for it. */
.ws-invite { display: flex; padding: 14px 0 0; }

/* The join page's line for an invite link: above the number step. */
.auth .invite-line { margin: 0 0 22px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; line-height: 1.5; }
.auth .invite-line.ok { background: var(--tint); color: var(--tint-ink); font-weight: 600; }

/* A plan's guest on /t/: the plan's title and how many are going, above the step. */
.pick-plan { margin: 0 0 10px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pick-plan-title { color: var(--ink); font-weight: 600; }
