/* Settings, four parts made calmer (18 November 2026). The owner judged four places of Settings on the dark theme:
   Briefing preferences was "demasiado overwhelming", the two status cards of Account "pueden estar mejor diseñados", the
   QR card "está desaprovechado" and the list of specialties was short ("¿no faltan especialidades aquí?").

   Loaded after the clean layer; tokens of the clean look only (--cl-*), so light (html.light) and dark follow by themselves.
   views/settings-pass.js draws what these rules dress:
   1. "What your briefing leads with": a summary read at a glance, and the choices behind Edit choices (one field to find or
      add, each group with what is chosen and its five most active others, Show all for the rest);
   2. "Your professional status": one card, two lines (verification, role), each with its state and its next step;
   3. "QR code & patient card": a live preview of the card on a soft table, two sizes, and what can be done with it;
   The fourth part, "Specialties", went to Doctorpedia One on 19 November 2026 with the rest of what the account holds.
   Chosen things are soft lilac, never ink slabs; the panel keeps one small ink pill (its save). Motion rises or pops on a
   spring; nothing turns and nothing follows the pointer, and all of it is still when less motion is asked for. */

html [data-viewpanel="settings"] {
  --sp-fill: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface));
  --sp-soft: color-mix(in srgb, var(--cl-lilac) 7%, var(--cl-surface));
  --sp-line: color-mix(in srgb, var(--cl-lilac) 42%, transparent);
  --sp-ink: color-mix(in srgb, var(--cl-lilac) 70%, var(--cl-ink));
}

/* ── shared pieces ─────────────────────────────────────────────────────────────────────────────────────────────────── */
html [data-viewpanel="settings"] .sp-sub { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] .sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-height: 0; padding: 0 16px 0 14px;
  border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink);
  font-family: var(--cl-sans); font-size: 14.5px; font-weight: 400; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), opacity .22s var(--cl-out), scale .12s var(--cl-out);
}
html [data-viewpanel="settings"] .sp-btn > i { font-size: 17px; color: var(--cl-ink-3); transition: color .22s var(--cl-out); }
html [data-viewpanel="settings"] .sp-btn:hover { border-color: var(--cl-line-3); background: var(--cl-hover); }
html [data-viewpanel="settings"] .sp-btn:hover > i { color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-btn:active { scale: .97; }
html [data-viewpanel="settings"] .sp-btn:focus-visible,
html [data-viewpanel="settings"] :is(.sp-more, .sp-why, .sp-addword, .sp-find__x, .sp-seg button, .sp-card__qr):focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }
html [data-viewpanel="settings"] .sp-btn--sm { height: 36px; padding: 0 14px 0 12px; gap: 6px; font-size: 14px; }
html [data-viewpanel="settings"] .sp-btn--sm > i { font-size: 15px; }
html [data-viewpanel="settings"] .sp-btn[hidden] { display: none; }
@media (pointer: coarse) { html [data-viewpanel="settings"] .sp-btn { height: 44px; } }
html [data-viewpanel="settings"] .sp-eyebrow { margin: 0 0 10px; font-size: 13.5px; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] mark.sp-hl { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--cl-lilac) 28%, transparent); color: inherit; }

/* the search field with its glass and its Clear, in the Settings field's own skin (.fld) */
html [data-viewpanel="settings"] .sp-find { position: relative; }
html [data-viewpanel="settings"] .sp-find > i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font-size: 18px; color: var(--cl-ink-4); pointer-events: none; }
html [data-viewpanel="settings"] .sp-find .fld { width: 100%; padding-left: 46px; padding-right: 16px; }
html [data-viewpanel="settings"] .sp-find:has(.sp-find__x:not([hidden])) .fld { padding-right: 46px; }
/* a search field keeps its hint while it has the focus (the app's other fields let theirs go): it opens focused */
html [data-viewpanel="settings"] .sp-find .fld::placeholder, html [data-viewpanel="settings"] .sp-find .fld:focus::placeholder { color: var(--cl-ink-4); opacity: 1; transform: none; }
html [data-viewpanel="settings"] .sp-find__x { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--cl-ink-3); transition: background-color .18s var(--cl-out), color .18s var(--cl-out); }
html [data-viewpanel="settings"] .sp-find__x:hover { background: var(--cl-hover); color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-find__x[hidden] { display: none; }

/* chosen chips in these two cards: soft lilac with its cross, never an ink slab */
html [data-viewpanel="settings"] .sp-brief .chiptog { gap: 8px; }
html [data-viewpanel="settings"] .sp-brief .chiptog.is-on { border-color: var(--sp-line); background: var(--sp-fill); color: var(--sp-ink); }
html [data-viewpanel="settings"] .sp-brief .chiptog.is-on:hover { background: color-mix(in srgb, var(--cl-lilac) 22%, var(--cl-surface)); }
html [data-viewpanel="settings"] .sp-brief .chiptog.is-on .chiptog-x { color: var(--sp-ink); }

@keyframes sp-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes sp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 1. What your briefing leads with ─────────────────────────────────────────────────────────────────────────────── */
html [data-viewpanel="settings"] .sp-brief:not(.is-ready) .sp-js { display: none !important; }
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-kw-raw { display: none !important; }
html [data-viewpanel="settings"] .sp-brief__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
html [data-viewpanel="settings"] .sp-brief__head > div { margin-top: 10px; }
html [data-viewpanel="settings"] .sp-brief [data-sp-brief-edit] { flex: none; }
html [data-viewpanel="settings"] .sp-brief.is-editing [data-sp-brief-edit] { opacity: 0; visibility: hidden; transition: opacity .2s var(--cl-out), visibility 0s linear .2s; }

/* the summary: three rows, the name of each on the left and what is chosen on the right */
html [data-viewpanel="settings"] .sp-sum { margin: 18px 0 0; border-top: 1px solid var(--cl-line); }
html [data-viewpanel="settings"] .sp-sum__row { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 6px 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--cl-line); }
html [data-viewpanel="settings"] .sp-sum__row:last-child { border-bottom: 0; padding-bottom: 0; }
html [data-viewpanel="settings"] .sp-sum dt { font-size: 14px; line-height: 30px; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] .sp-sum dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin: 0; }
html [data-viewpanel="settings"] .sp-tok { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--sp-fill); color: var(--sp-ink); font-size: 14px; white-space: nowrap; }
html [data-viewpanel="settings"] .sp-tok--new { animation: sp-pop .44s var(--cl-spring) both; }
html [data-viewpanel="settings"] .sp-tok--more { padding: 0 6px; background: transparent; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] .sp-none { font-size: 14.5px; line-height: 1.45; color: var(--cl-ink-4); }
/* Change, beside the specialty: the first screens, where the specialty and its conditions are chosen (views/onboard.js) */
html [data-viewpanel="settings"] .sp-sum__act { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-left: 4px; padding: 0 12px 0 10px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink-2); font-size: 14px; transition: border-color .16s var(--cl-out), color .16s var(--cl-out); }
html [data-viewpanel="settings"] .sp-sum__act:hover { border-color: var(--cl-line-3); color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-sum__act > i { font-size: 14px; color: var(--cl-ink-3); }
@media (pointer: coarse) { html [data-viewpanel="settings"] .sp-sum__act { position: relative; } html [data-viewpanel="settings"] .sp-sum__act::after { content: ''; position: absolute; inset: -7px 0; } }

/* the editor opens under the summary on a spring; closed, it is out of the way of the keyboard too (inert, from the script) */
html [data-viewpanel="settings"] .sp-editor { display: grid; grid-template-rows: 1fr; }
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-editor { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .52s var(--cl-spring), opacity .26s var(--cl-out); }
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-editor.is-open { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .52s var(--cl-spring), opacity .34s var(--cl-out) .06s; }
html [data-viewpanel="settings"] .sp-editor__in { min-height: 0; overflow: hidden; margin: 0 -6px; padding: 0 6px; }
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-editor__in > .sp-find { margin-top: 24px; }
html [data-viewpanel="settings"] .sp-addword {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 10px; padding: 0 14px;
  border: 1px dashed var(--sp-line); border-radius: 14px; background: var(--sp-soft); color: var(--cl-ink-2);
  font-size: 14.5px; text-align: left; animation: sp-rise .3s var(--cl-spring) both; transition: background-color .18s var(--cl-out);
}
html [data-viewpanel="settings"] .sp-addword:hover { background: var(--sp-fill); }
html [data-viewpanel="settings"] .sp-addword > i { font-size: 16px; color: var(--cl-lilac); }
html [data-viewpanel="settings"] .sp-addword__w { color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-addword[hidden] { display: none; }
html [data-viewpanel="settings"] .sp-group { margin-top: 24px; }
html [data-viewpanel="settings"] .sp-brief:not(.is-ready) .sp-group:first-of-type { margin-top: 18px; }
html [data-viewpanel="settings"] .sp-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 8px; }
html [data-viewpanel="settings"] .sp-group__head .lbl { margin: 0; }
html [data-viewpanel="settings"] .sp-more { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-right: -10px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; color: var(--cl-ink-3); transition: background-color .18s var(--cl-out), color .18s var(--cl-out); }
html [data-viewpanel="settings"] .sp-more:hover { background: var(--cl-hover); color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-more > i { font-size: 13px; }
html [data-viewpanel="settings"] .sp-more__n { color: var(--cl-ink-4); font-variant-numeric: tabular-nums; }
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-chips .chiptog.sp-extra { display: none; }
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-group.is-all .chiptog.sp-extra { display: inline-flex; animation: sp-rise .34s var(--cl-spring) both; }
html [data-viewpanel="settings"] .sp-brief.is-finding .sp-chips .chiptog:not(.sp-word) { display: none; }
html [data-viewpanel="settings"] .sp-brief.is-finding .sp-chips .chiptog.sp-hit { display: inline-flex; animation: none; }
html [data-viewpanel="settings"] .sp-brief.is-finding .sp-group.is-none,
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-group--own.is-empty { display: none; }
html [data-viewpanel="settings"] .sp-brief.is-finding .sp-more { visibility: hidden; }
/* once open and settled, nothing in it is cut at its edges (the shadow of a pill, a focus ring) */
html [data-viewpanel="settings"] .sp-brief.is-ready .sp-editor.is-open.is-settled .sp-editor__in { overflow: visible; }
/* on a phone: each row's name above what is chosen, and Edit choices under the summary, the one next step */
@media (max-width: 639px) {
  html [data-viewpanel="settings"] .sp-sum__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html [data-viewpanel="settings"] .sp-sum dt { line-height: 1.4; }
  html [data-viewpanel="settings"] .sp-brief.is-ready { display: flex; flex-direction: column; }
  html [data-viewpanel="settings"] .sp-brief.is-ready .sp-brief__head { display: contents; }
  html [data-viewpanel="settings"] .sp-brief.is-ready .sp-brief__head > div { order: 0; margin-top: 0; }
  html [data-viewpanel="settings"] .sp-brief.is-ready > .sp-sub { order: 1; }
  html [data-viewpanel="settings"] .sp-brief.is-ready > .sp-sum { order: 2; }
  html [data-viewpanel="settings"] .sp-brief.is-ready [data-sp-brief-edit] { order: 3; align-self: flex-start; margin-top: 16px; }
  html [data-viewpanel="settings"] .sp-brief.is-ready.is-editing [data-sp-brief-edit] { display: none; }
  html [data-viewpanel="settings"] .sp-brief.is-ready > .sp-editor { order: 4; }
}
html [data-viewpanel="settings"] .sp-editor__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; padding: 18px 0 2px; border-top: 1px solid var(--cl-line); }
html [data-viewpanel="settings"] .sp-brief:not(.is-ready) .sp-editor__acts { margin-top: 16px; padding-top: 0; border-top: 0; }

/* ── 2. Your professional status ──────────────────────────────────────────────────────────────────────────────────── */
html [data-viewpanel="settings"] .sp-status { padding: 22px 24px 6px; }
html [data-viewpanel="settings"] .sp-status__t { margin: 0 0 4px; font-size: 15.5px; color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--cl-line); }
html [data-viewpanel="settings"] .sp-status__t + .sp-line { border-top: 0; }
html [data-viewpanel="settings"] .sp-line__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--cl-surface-2); color: var(--cl-ink-3); font-size: 21px; transition: background-color .4s var(--cl-out), color .4s var(--cl-out); }
html [data-viewpanel="settings"] .sp-line__ic.is-ok { background: var(--sp-fill); color: var(--cl-lilac); }
html [data-viewpanel="settings"] .sp-line__ic.is-ok > i { animation: sp-pop .5s var(--cl-spring) both; }
html [data-viewpanel="settings"] .sp-line__k { display: flex; align-items: center; gap: 4px; font-size: 15.5px; line-height: 1.35; color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-line__hint { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] .sp-line__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
html [data-viewpanel="settings"] .sp-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cl-surface-2); color: var(--cl-ink-2); font-size: 13.5px; white-space: nowrap; transition: background-color .3s var(--cl-out), color .3s var(--cl-out); }
html [data-viewpanel="settings"] .sp-pill.is-ok { background: var(--sp-fill); color: var(--sp-ink); }
html [data-viewpanel="settings"] .sp-pill.is-none { border: 1px dashed var(--cl-line-3); background: transparent; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] .sp-why { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--cl-ink-4); font-size: 16px; transition: background-color .18s var(--cl-out), color .18s var(--cl-out); }
html [data-viewpanel="settings"] .sp-why:hover, html [data-viewpanel="settings"] .sp-why[aria-expanded="true"] { background: var(--cl-hover); color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-line__more { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .42s var(--cl-spring), opacity .24s var(--cl-out); }
html [data-viewpanel="settings"] .sp-line__more > p { min-height: 0; overflow: hidden; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-3); }
html [data-viewpanel="settings"] .sp-line__more.is-open { grid-template-rows: 1fr; opacity: 1; }
html [data-viewpanel="settings"] .sp-line__more.is-open > p { padding-top: 10px; }
html [data-viewpanel="settings"] .sp-when { color: var(--cl-ink-4); }
@media (max-width: 639px) {
  html [data-viewpanel="settings"] .sp-status { padding: 20px 18px 4px; }
  html [data-viewpanel="settings"] .sp-line { grid-template-columns: 40px minmax(0, 1fr); row-gap: 10px; column-gap: 12px; }
  html [data-viewpanel="settings"] .sp-line__ic { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
  html [data-viewpanel="settings"] .sp-line__end { grid-column: 2; justify-content: flex-start; }
}

/* A card of one row (19 November 2026): Export my data in Account, drawn as the account's rows are (an icon tile, its name and
   a line, its button on the right). Plan and billing, which this card held on 18 November, is a row of "Your Doctorpedia
   account" now (views/in-one.css). The role line's way to Doctorpedia One says its word first, the arrow after it. */
html [data-viewpanel="settings"] .sp-solo { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 20px 24px; }
html [data-viewpanel="settings"] .sp-solo .sp-line__k { margin: 0; }
html [data-viewpanel="settings"] .sp-go { text-decoration: none; }
@media (max-width: 639px) {
  html [data-viewpanel="settings"] .sp-solo { grid-template-columns: 40px minmax(0, 1fr); row-gap: 14px; column-gap: 12px; padding: 20px 18px; }
  html [data-viewpanel="settings"] .sp-solo .sp-line__ic { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
  html [data-viewpanel="settings"] .sp-solo__go { grid-column: 2; justify-self: start; }
}

/* ── 3. QR code & patient card ────────────────────────────────────────────────────────────────────────────────────── */
html [data-viewpanel="settings"] .sp-qr__body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
/* the card lies on a soft table: paper is white in both themes, as it will be printed */
html [data-viewpanel="settings"] .sp-qr__stage { display: grid; place-items: center; height: 392px; border-radius: 18px; background: var(--cl-surface-2); overflow: hidden; }
html .sp-card {
  container-type: inline-size; position: relative; flex: none; width: 226px; height: 339px; border-radius: 6px;
  background: #FFFFFF; color: #1A1A1A; --bsm-ink: #1A1A1A; --bsm-page: #FFFFFF;
  box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 2px 6px -2px rgba(0,0,0,.12), 0 22px 44px -20px rgba(0,0,0,.36);
  transition: width .6s var(--cl-spring), height .6s var(--cl-spring);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
html:not(.light) .sp-card { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 2px 6px -2px rgba(0,0,0,.5), 0 26px 50px -18px rgba(0,0,0,.8); }
html .sp-card--wallet { width: 301px; height: 172px; }
html .sp-card__in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9cqw 9cqw 8.5cqw; transition: opacity .17s var(--cl-out); }
html .sp-card.is-swapping .sp-card__in { opacity: 0; }
html .sp-card p { margin: 0; }
html .sp-card__brand { display: flex; align-items: center; gap: 2.6cqw; font-family: var(--cl-sans); font-size: 4.6cqw; line-height: 1; letter-spacing: -.005em; color: #1A1A1A; }
html .sp-card__mark { display: grid; flex: none; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 2cqw; background: #1A1A1A; color: #FFFFFF; font-size: 4.6cqw; }
html .sp-card__mark.has-bsm { border-radius: 0; background: none; }
html .sp-card__mark.has-bsm svg { width: 100%; height: 100%; }
html .sp-card__who { margin-top: 11cqw; }
html .sp-card__name { font-family: var(--cl-serif); font-size: 9.4cqw; line-height: 1.12; letter-spacing: -.012em; color: #1A1A1A; }
html .sp-card__name.is-empty { color: #ABABA8; }
html .sp-card__spec { margin-top: 2.8cqw !important; font-family: var(--cl-sans); font-size: 5.2cqw; line-height: 1.3; color: #474747; }
html .sp-card__place { margin-top: 1cqw !important; font-family: var(--cl-sans); font-size: 4.4cqw; line-height: 1.35; color: #6B6B6B; }
html .sp-card :is(.sp-card__spec, .sp-card__place):empty { display: none; }
html .sp-card__code { display: flex; flex-direction: column; align-items: flex-start; gap: 4.4cqw; margin-top: auto; }
html .sp-card__qr { display: block; width: 46cqw; height: 46cqw; min-height: 0 !important; padding: 0; border-radius: 0; background: #FFFFFF; cursor: zoom-in; }
html .sp-card__qr #setQrHolder, html .sp-card__qr > span { display: block; width: 100%; height: 100%; }
html .sp-card__qr svg { display: block; width: 100%; height: 100%; }
/* no link yet (a profile with no name): a quiet square where the code will be */
html .sp-card__qr > span:empty { border: 1px dashed #CFCFCC; border-radius: 1.6cqw; background: repeating-linear-gradient(45deg, transparent 0 2.2cqw, #F2F2F0 2.2cqw 2.6cqw); }
html .sp-card__cta { font-family: var(--cl-sans); font-size: 4.6cqw; line-height: 1.3; color: #1A1A1A; }
html .sp-card__url { margin-top: .9cqw !important; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: calc(var(--sp-fit, 1) * 3.4cqw); line-height: 1.3; white-space: nowrap; color: #6B6B6B; }
/* the wallet card: the words on the left, the code on the right */
html .sp-card--wallet .sp-card__in { display: grid; grid-template-columns: minmax(0, 1fr) 36cqw; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "brand qr" "who qr" "scan qr"; column-gap: 5cqw; padding: 6cqw; }
html .sp-card--wallet .sp-card__brand { grid-area: brand; gap: 1.8cqw; font-size: 3.1cqw; }
html .sp-card--wallet .sp-card__mark { width: 4.8cqw; height: 4.8cqw; border-radius: 1.3cqw; font-size: 3cqw; }
html .sp-card--wallet .sp-card__who { grid-area: who; align-self: start; margin-top: 4.2cqw; }
html .sp-card--wallet .sp-card__name { font-size: 5.6cqw; }
html .sp-card--wallet .sp-card__spec { margin-top: 1.4cqw !important; font-size: 3.4cqw; }
html .sp-card--wallet .sp-card__place { margin-top: .4cqw !important; font-size: 2.9cqw; }
html .sp-card--wallet .sp-card__code { display: contents; }
html .sp-card--wallet .sp-card__qr { grid-area: qr; align-self: center; width: 36cqw; height: 36cqw; }
html .sp-card--wallet .sp-card__scan { grid-area: scan; min-width: 0; }
html .sp-card--wallet .sp-card__cta { font-size: 3cqw; }
html .sp-card--wallet .sp-card__url { margin-top: .5cqw !important; font-size: calc(var(--sp-fit, 1) * 2.3cqw); }

/* what can be done with it: the size, then the card, then the code alone */
html [data-viewpanel="settings"] .sp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--cl-surface-2); }
html [data-viewpanel="settings"] .sp-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 9px 12px; border-radius: 12px; text-align: left; font-size: 14.5px; line-height: 1.25; color: var(--cl-ink-2); transition: background-color .25s var(--cl-out), color .25s var(--cl-out), box-shadow .25s var(--cl-out); }
html [data-viewpanel="settings"] .sp-seg button small { font-size: 12.5px; color: var(--cl-ink-4); font-variant-numeric: tabular-nums; }
html [data-viewpanel="settings"] .sp-seg button[aria-pressed="true"] { background: var(--cl-surface); color: var(--cl-ink); box-shadow: 0 0 0 1px var(--cl-line), var(--cl-shadow-1); }
html [data-viewpanel="settings"] .sp-seg button:not([aria-pressed="true"]):hover { background: var(--cl-hover); color: var(--cl-ink); }
html [data-viewpanel="settings"] .sp-qr__side > .sp-eyebrow ~ .sp-eyebrow { margin-top: 22px; }
html [data-viewpanel="settings"] .sp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
html [data-viewpanel="settings"] .sp-acts .sp-btn.qr-dl { min-height: 0; }
html [data-viewpanel="settings"] .sp-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--cl-ink-4); }
html [data-viewpanel="settings"] .sp-qr.is-nolink .sp-acts .sp-btn:not([data-sp-copy]) { opacity: .5; }
html [data-viewpanel="settings"] .sp-qr__stage { transition: height .6s var(--cl-spring); }
@media (max-width: 767px) {
  html [data-viewpanel="settings"] .sp-qr__body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  html [data-viewpanel="settings"] .sp-qr__stage { height: 360px; }
  /* the table is as tall as the card on it needs */
  html [data-viewpanel="settings"] .sp-qr.is-wallet .sp-qr__stage { height: 236px; }
  html [data-viewpanel="settings"] .sp-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html [data-viewpanel="settings"] .sp-acts .sp-btn { width: 100%; min-width: 0; padding: 0 12px; }
  html .sp-card--desk { width: 208px; height: 312px; }
  html .sp-card--wallet { width: 287px; height: 164px; }
}

/* printing the card: at its real size, with a fine line to cut along; the wallet card eight to a page */
@media print {
  html #printCard.sp-print { padding: .35in 0 0 !important; text-align: left !important; font-family: var(--cl-sans) !important; }
  html #printCard.sp-print .sp-print__sheet { display: flex; flex-wrap: wrap; justify-content: center; }
  html #printCard.sp-print .sp-print__sheet--wallet { width: 7in; margin: 0 auto; }
  html #printCard.sp-print .sp-card { box-shadow: none !important; border-radius: 0; transition: none; outline: .5pt dashed #9A9A97; outline-offset: 0; break-inside: avoid; }
  html #printCard.sp-print .sp-card--desk { width: 4in; height: 6in; }
  html #printCard.sp-print .sp-card--wallet { width: 3.5in; height: 2in; }
  html #printCard.sp-print .sp-card__qr { cursor: default; }
}

/* ── less motion: everything still ────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html [data-viewpanel="settings"] :is(.sp-editor, .sp-tok, .sp-addword, .sp-chips .chiptog, .sp-line__ic, .sp-line__ic > i, .sp-line__more, .sp-seg button, .sp-btn, [data-sp-brief-edit], .sp-qr__stage),
  html .sp-card, html .sp-card__in { transition: none !important; animation: none !important; }
}
html.a11y-reduce-motion [data-viewpanel="settings"] :is(.sp-editor, .sp-tok, .sp-addword, .sp-chips .chiptog, .sp-line__ic, .sp-line__ic > i, .sp-line__more, .sp-seg button, .sp-btn, [data-sp-brief-edit], .sp-qr__stage),
html.a11y-reduce-motion .sp-card, html.a11y-reduce-motion .sp-card__in { transition: none !important; animation: none !important; }

/* ── narrow phones (19 November 2026) ───────────────────────────────────────────────────────────────────────────────────
   Public profile: a field's longest choice (a board certification is a long name) no longer widens its column, and so the
   page, past the screen; the choice ends in an ellipsis inside the field (forms.css), its full name in the list it opens.
   Display and accessibility: Light, Dark and Auto share the width in one even row (the page tones stand in two, grey-pass.css). */
html [data-viewpanel="settings"] [data-setpanel] :is(.grid, .sf-times) > * { min-width: 0; }   /* .sf-times: the hours, "Hora de cierre" in Spanish */
@media (max-width: 639.98px) {
  html [data-viewpanel="settings"] #appearSeg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  html [data-viewpanel="settings"] #appearSeg > .seg { justify-content: center; text-align: center; }
}

/* ── the photo in "Your Doctorpedia account" (19 November 2026) ───────────────────────────────────────────────────────
   One sets it; Profile shows it in the tile of its row (views/settings-one.js): the face fills the tile, round, with a
   hairline so a light photo keeps its edge on a light card. */
html [data-in-one-host] .in-one__ic.bs-io-has-face { background: none; border-radius: 50%; overflow: hidden; }
html [data-in-one-host] .bs-io-face { display: block; width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px var(--cl-line, rgba(26, 26, 26, .08)); }
