/* What belongs to the account is changed in Doctorpedia One (19 November 2026, the owner: "Everything about specialty,
   language, etc. should come from One. In Settings we can offer the option to change it, which redirects us to One").

   One component for every Doctorpedia app, carried byte for byte: views/in-one.js draws it, this file dresses it. A card
   titled "Your Doctorpedia account", one quiet line under the title, then one row per thing the account holds: an icon
   tile, the name of the thing and what it is now, and an outlined pill on the right that opens the right place of
   Doctorpedia One ("Change in One", with the arrow that says it leaves for another app). A card with no title is a
   single row in a card of its own.

   Tokens: the clean look's (--cl-*), each with the light value as its fallback, so an app without them still reads.
   Monochrome; the accent is the app's quiet one (--cl-lilac), used only for the focus ring. Every pill is 44 px to
   press. Nothing turns and nothing follows the pointer; with less motion asked for, nothing moves at all. */

.in-one {
  --io-ink: var(--cl-ink, #1A1A1A);
  --io-ink-2: var(--cl-ink-2, #2B2B2B);
  --io-ink-3: var(--cl-ink-3, #474747);
  --io-ink-4: var(--cl-ink-4, #505050);
  --io-surface: var(--cl-surface, #FFFFFF);
  --io-surface-2: var(--cl-surface-2, #F2F2F0);
  --io-line: var(--cl-line, rgba(26, 26, 26, .08));
  --io-line-2: var(--cl-line-2, rgba(26, 26, 26, .12));
  --io-line-3: var(--cl-line-3, rgba(26, 26, 26, .22));
  --io-hover: var(--cl-hover, rgba(26, 26, 26, .05));
  --io-accent: var(--cl-lilac, #6F6F6C);
  --io-out: var(--cl-out, cubic-bezier(.22, .61, .36, 1));
  display: block; margin: 0; padding: 22px 24px 6px;
  border: 1px solid var(--io-line); border-radius: 20px; background: var(--io-surface);
  color: var(--io-ink); font-family: var(--cl-sans, inherit); text-align: left;
}
.in-one--bare { padding-top: 6px; }
.in-one :where(h2, p, ul, li) { margin: 0; padding: 0; }
.in-one__t { font-size: 15.5px; font-weight: 400; line-height: 1.35; letter-spacing: 0; color: var(--io-ink); }
.in-one__note { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--io-ink-3); }
.in-one__head { padding-bottom: 6px; }

.in-one__rows { list-style: none; }
.in-one__row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--io-line);
}
.in-one__row:first-child { border-top: 0; }
.in-one__row[hidden] { display: none; }
.in-one__ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--io-surface-2); color: var(--io-ink-3); font-size: 21px;
}
.in-one__txt { min-width: 0; }
.in-one__k { font-size: 15.5px; line-height: 1.35; color: var(--io-ink); }
.in-one__v { margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--io-ink-2); overflow-wrap: anywhere; }
.in-one__v:empty { display: none; }
.in-one__v.is-empty { color: var(--io-ink-4); }
.in-one__hint { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--io-ink-3); }

/* the pill: outlined and quiet, its word first and the arrow after it; 40 px to see, 44 px to press */
.in-one__go {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-height: 0; padding: 0 14px 0 16px; border: 1px solid var(--io-line-2); border-radius: 999px;
  background: var(--io-surface); color: var(--io-ink); font-family: inherit; font-size: 14.5px; font-weight: 400; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: border-color .22s var(--io-out), background-color .22s var(--io-out), scale .12s var(--io-out);
}
.in-one__go::after { content: ""; position: absolute; inset: -3px -2px; }
.in-one__go > :is(i, svg) { flex: none; font-size: 16px; color: var(--io-ink-3); transition: color .22s var(--io-out); }
.in-one__go:hover { border-color: var(--io-line-3); background: var(--io-hover); color: var(--io-ink); text-decoration: none; }
.in-one__go:hover > :is(i, svg) { color: var(--io-ink); }
.in-one__go:active { scale: .97; }
.in-one__go:focus-visible { outline: 2px solid var(--io-accent); outline-offset: 2px; }
@media (pointer: coarse) { .in-one__go { height: 44px; } .in-one__go::after { inset: 0; } }

/* a phone: the pill goes under the words, at their left edge */
@media (max-width: 639.98px) {
  .in-one { padding: 20px 18px 4px; }
  .in-one--bare { padding-top: 4px; }
  .in-one__row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 12px; column-gap: 12px; }
  .in-one__ic { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
  .in-one__go { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .in-one__go, .in-one__go > :is(i, svg) { transition: none; }
  .in-one__go:active { scale: none; }
}
html.a11y-reduce-motion .in-one__go, html.a11y-reduce-motion .in-one__go > :is(i, svg) { transition: none; }
html.a11y-reduce-motion .in-one__go:active { scale: none; }
