/* ---------------------------------------------------------------------------
   Nihongo Yatsura
   Paper, sumi ink, genkō-yōshi green rules, vermilion hanko. Phone first.
   The tokens (colour, type, space, shape, breakpoints) are in tokens.css.
   --------------------------------------------------------------------------- */
@import './tokens.css';

/* Zen Kaku Gothic New and Shippori Mincho have no ā ē ī ō ū (rōmaji); these tiny
   files add them, built from each font's own letters (tools/fonts/add_macrons.py).
   The unicode-range keeps the browser from fetching them on pages without one. */
@font-face { font-family: 'Zen Kaku Gothic New Macron'; font-weight: 400; font-display: swap; src: url('/fonts/zenkaku-macron-400.woff2') format('woff2'); unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+014C-014D, U+016A-016B; }
@font-face { font-family: 'Zen Kaku Gothic New Macron'; font-weight: 500; font-display: swap; src: url('/fonts/zenkaku-macron-500.woff2') format('woff2'); unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+014C-014D, U+016A-016B; }
@font-face { font-family: 'Zen Kaku Gothic New Macron'; font-weight: 700; font-display: swap; src: url('/fonts/zenkaku-macron-700.woff2') format('woff2'); unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+014C-014D, U+016A-016B; }
@font-face { font-family: 'Shippori Mincho Macron'; font-weight: 400; font-display: swap; src: url('/fonts/shippori-macron-400.woff2') format('woff2'); unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+014C-014D, U+016A-016B; }
@font-face { font-family: 'Shippori Mincho Macron'; font-weight: 600; font-display: swap; src: url('/fonts/shippori-macron-600.woff2') format('woff2'); unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+014C-014D, U+016A-016B; }

/* ----- base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1rem;
}
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: var(--ai);
}

.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.875rem;
}
.ja {
  font-family: var(--font-pen);
}
/* Japanese broken between BudouX's phrases, where the browser has no word-break:
   auto-phrase (lib/jaPhrases.js): a line ends only at a <wbr>; a phrase longer
   than the line still breaks rather than overflow */
.ja-phr {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ----- the field row: a label over its control (the labelled control itself is UiField) ---- */

.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* ----- question markup (produced by renderJa) --------------------------------- */

.blank {
  display: inline-block;
  width: 3.2em;
  height: 1.15em;
  margin: 0 0.1em;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  vertical-align: -0.2em;
  background: var(--paper);
}
ruby {
  /* a reading wider than its kanji is centred over them, the kanji kept together
     (the default, space-around, spread 練習 apart under れんしゅう); a SHOWN reading's
     box is still as wide as the wider of the two, so a neighbour is pushed, not covered
     (a hidden one takes no width at all: see rt[hidden] below) */
  ruby-align: center;
  /* a word is never broken across two lines (勉 | 強会) */
  white-space: nowrap;
}
ruby rt {
  font-size: 0.5em;
  font-family: var(--font-ui);
  color: var(--ink-2);
  letter-spacing: 0;
  /* Safari: WebKit ignores ruby-align there and, while the rt's text-align is the initial one, justifies a
     reading shorter than its kanji across them and past them (場面 under "ば  め  ん", wider than the word, on
     Guilherme's iPad in the call's reading; fix/call-stage-2026-10-17). Any other text-align keeps it whole and
     centred; Chrome and Firefox lay the rt out by ruby-align and do not mind */
  text-align: center;
}
/* Furigana in the flow of the page (fix/furigana-flow). A word is <span class="ru"> (see
   server/lib/furigana.js rubyHtml): its text stays in the normal flow, and every reading
   <rt> is positioned absolutely above it, outside the box. A reading adds no height to
   its line and no width to its word, so titles, tags and rows of text line up whether a
   reading is shown, hidden or revealed. Native <ruby> (the reader's body, the editor,
   the e-mail, the few hand-written words) keeps the rules above and below. */
:root {
  --rt-size: 0.5em;
  --rt-lift: 0.1em;
  --lh-ruby: 1.9;
  --rt-room: 0.6em;
}
.ru {
  position: relative;
  /* a word never breaks across two lines (勉 | 強会) */
  white-space: nowrap;
}
.ru .rb {
  position: relative;
}
/* The readings are positioned against .ru / .rb, so those must be real boxes. As plain inlines WebKit
   gave the containing block no size inside a grid item (the 四字熟語 label on the home: the reading
   of the label came out under its start, left of it; hotfix fix/furigana-hotfix-yoji), so left:50% and
   bottom:100% landed on a zero-size box. An inline-block is the same in the flow (the word never
   breaks inside anyway, and its height is the line's own) and a box in every engine. */
.ru,
.ru .rb {
  display: inline-block;
  vertical-align: baseline;
  /* An inline-block's box is its line-height tall, not its font's content area as an inline's was, so a
     reading at bottom:100% climbed with the line (+0.36em in the quiz's 2.2 lines) and sank in tight ones
     (into the glyph in tags and headers). line-height:1 makes the box the same in every context (and never
     taller than the line around it); the rt's bottom adds back the half of the content area (~1.48em in
     Zen Kaku / Noto Sans JP / Shippori) the box no longer covers: the reading sits where it sat as an inline. */
  line-height: 1;
  /* inherited into the inline-block's own first line: a paragraph's 1em indent (honyaku, yomu) would indent
     every word inside itself, twice with the .rb */
  text-indent: 0;
  /* an ancestor's underline / line-through does not reach an atomic inline */
  text-decoration: inherit;
}
.ru .rt {
  display: block;
  position: absolute;
  left: 50%;
  /* 0.48em here is 0.24em of the word (rt-size 0.5): see .ru above */
  bottom: calc(100% + 0.48em - var(--rt-lift));
  transform: translateX(-50%);
  font-size: var(--rt-size);
  line-height: 1;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0;
  white-space: nowrap;
  /* WebKit note kept (fix/call-stage-2026-10-17): never the initial text-align */
  text-align: center;
  pointer-events: none;
  -webkit-user-select: none; /* Safari still needs the prefix (no autoprefixer here) */
  user-select: none;
  animation: qt-fade 180ms ease-out both;
  transition:
    opacity var(--dur-2, 200ms) var(--ease-out, ease-out),
    visibility var(--dur-2, 200ms) var(--ease-out, ease-out);
}
/* an author display beats the UA / presentational [hidden] */
.ru .rt[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  animation: none;
}
.ru.is-open > .rt[hidden] {
  visibility: visible;
  opacity: 1;
}
/* a part word revealed shows only the whole reading */
.ru.is-open .rb > .rt {
  visibility: hidden;
  opacity: 0;
}
@media (hover: hover) {
  .ru[data-fg]:hover > .rt[hidden] {
    visibility: visible;
    opacity: 1;
  }
  .ru[data-fg='part']:hover .rb > .rt {
    visibility: hidden;
    opacity: 0;
  }
}
.ru[data-fg='none'],
.ru[data-fg='part'] {
  cursor: help;
}
/* running text: the gap between the lines holds the readings */
:where(:where(p, li, dd, td, blockquote, figcaption, .ja-lines).ja:has(.rt, rt)) {
  line-height: var(--lh-ruby);
}
:where(p, span, li, dd, label).small:has(.rt, rt),
.app__d:has(.rt, rt),
.app__s:has(.rt, rt) {
  line-height: var(--lh-ruby);
}
/* a clipping box (ellipsis, scroller) grows upward by the readings' room without moving its text */
.rt-room {
  padding-block-start: var(--rt-room);
  margin-block-start: calc(-1 * var(--rt-room));
}
u {
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.05em;
}
/* a glossary term (<g>, lib/gloss.js): a dotted line in the vocabulary colour, as
   the reading club marks a word that opens a card, never the book's solid
   underline (renderJa leaves a term inside <u> plain); a tap opens Glossary.vue */
.gl {
  cursor: help;
  text-decoration: underline dotted var(--sec-vocab);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
  border-radius: 2px;
  touch-action: manipulation;
}
.gl:hover,
.gl:focus-visible,
.gl.is-open {
  background: var(--paper-2);
  outline: none;
}
.gl:focus-visible {
  box-shadow: 0 0 0 2px var(--sec-vocab);
}
/* a numbered underline from a reading handout (<u n="1">): the label sits
   low before the underlined words, as the handouts print it */
u[data-n] {
  position: relative;
  margin-left: 0.7em;
}
u[data-n]::before {
  content: attr(data-n);
  position: absolute;
  right: 100%;
  bottom: -0.3em;
  padding-right: 0.1em;
  font-family: var(--font-ui);
  font-size: 0.6em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ----- sections ------------------------------------------------------------- */

.section {
  margin-top: 2rem;
}
.section > h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 0.75rem;
}
.section > h2 .ja {
  font-weight: 400;
  color: var(--ink-2);
  margin-left: 0.5rem;
  font-size: 0.9em;
}

/* ----- motion ----------------------------------------------------------------- */

/* The app's motion vocabulary, ink and stamps: short and crisp, never bouncy.
   Components reference these by name (global keyframes are not rewritten by
   scoped styles). Rules of thumb: anything on the path of answering a question
   ends within 250 ms; a staggered list is done within ~1 s; every animation
   must be a pure decoration of a final state that reads fine on its own. */
@keyframes qt-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes qt-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes qt-ink {
  /* a line written left to right */
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes qt-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes qt-grow {
  /* a bar growing from the left; set transform-origin: left on the element */
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes qt-mark {
  /* a red-pen ○ or ✗ landing on the page */
  0% {
    opacity: 0;
    transform: scale(1.9) rotate(-10deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes qt-fill {
  /* a manuscript square being inked; set --c to the square's colour */
  from {
    background-color: transparent;
    border-color: var(--rule);
    transform: scale(0.5);
  }
  to {
    background-color: var(--c);
    border-color: var(--c);
    transform: none;
  }
}
@keyframes qt-pulse {
  /* an "online" dot breathing: a ring that spreads and fades (UiDot's ring, on its ::after). Only transform and
     opacity (perf, 2026-11-22: the box-shadow it animated repainted the whole page every frame, forever); the ring
     starts at the dot's 3px halo (scale 7/4 of the 8px dot) and fades out 9px past its edge (13/4) */
  0% {
    opacity: 1;
    transform: scale(1.75);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3.25);
  }
}
@keyframes qt-stamp {
  /* the hanko pressed onto the paper: arrives large and tilted, lands, settles.
     The one stamp: Hanko, the onboarding's 優, the 苦手 pins (--stamp-to: 0deg untilts) */
  0% {
    opacity: 0;
    transform: rotate(-7deg) scale(1.8);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(var(--stamp-to, -7deg)) scale(1);
  }
}
@keyframes qt-dialog {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* the kit's leaving moves (UiDialog, UiPopover: components/ui/motion.js leave) */
@keyframes ui-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes ui-sheet-out {
  to {
    transform: translateY(24px);
    opacity: 0;
  }
}
@keyframes ui-rise-in {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
}
/* Lists and grids entering (docs/design/components.md § Motion · lists): the first items rise
   in one after another, 30 ms apart, the 8th and on together at 240 ms; past the 16th nothing
   animates (a 2000-tile grid is there at once). Short, never holding a tap: the items are live
   from the first frame. Content that replaces a skeleton fades in (.ui-reveal). Reduced motion:
   the tokens are zero, nothing moves. */
.ui-stagger > :nth-child(-n + 16) {
  animation: ui-rise-in var(--dur-2) var(--ease-out) both;
  animation-delay: 240ms;
}
.ui-stagger > :nth-child(1) { animation-delay: 0ms; }
.ui-stagger > :nth-child(2) { animation-delay: 30ms; }
.ui-stagger > :nth-child(3) { animation-delay: 60ms; }
.ui-stagger > :nth-child(4) { animation-delay: 90ms; }
.ui-stagger > :nth-child(5) { animation-delay: 120ms; }
.ui-stagger > :nth-child(6) { animation-delay: 150ms; }
.ui-stagger > :nth-child(7) { animation-delay: 180ms; }
.ui-stagger > :nth-child(8) { animation-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  .ui-stagger > * {
    animation: none;
  }
}
.ui-reveal {
  animation: ui-fade-in var(--dur-2) var(--ease-out) both;
}
@keyframes ui-fade-in {
  from {
    opacity: 0;
  }
}
@keyframes qt-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* the theme switch cross-fades the page rather than snapping */
body {
  transition:
    background-color 200ms ease,
    color 200ms ease;
}
/* furigana appearing when the toggle turns it on (rt is re-rendered) */
ruby rt {
  animation: qt-fade 180ms ease-out both;
}
/* NATIVE ruby only (the reader's body, in both directions; the .ru spans above need none of this). The
   reader's body is the one place left that needs the reserve below; the other native rubies (editor,
   what's-new demos, e-mail) only show readings. A reading the furigana mode hides (<rt hidden>) keeps the line's height, never its
   width. It is laid out, invisible (display:none took the line's height away, so a
   reveal made the line grow and everything below jump), but its negative side margins
   make it narrower than its kanji, so the word lays out exactly as plain text: never
   padded or spread apart (勉強会 under べんきょうかい). Revealed, it is centred over its
   kanji and may overhang the neighbours, which do not move. It fades in on a tap
   (useRubyTap.js adds .is-open) or, where the pointer hovers, while the mouse is over
   the word. visibility:hidden also keeps it out of screen readers, as `hidden` did.
   1.5em a side (of the reading's size) leaves room for a reading up to three kana wider
   than its kanji (志 こころざし); a word whose readings are all hidden carries one whole
   reading (server/lib/furigana.js rubyHtml), centred over the whole word. */
ruby rt[hidden] {
  /* Safari cannot parse display: ruby-text and drops it (so before this the reading never
     showed there, not even on a tap); revert gives the rt back its own ruby-text there
     (WebKit maps `hidden` as a presentational hint, which revert skips) */
  display: revert;
  display: ruby-text;
  visibility: hidden;
  opacity: 0;
  animation: none;
  margin-inline: -1.5em;
}
/* WebKit (no display: ruby-text) does not centre the reading's box between its margins:
   it shifts the reading by the start margin. Only the end margin there, which keeps the
   reading centred over its kanji. */
@supports not (display: ruby-text) {
  ruby rt[hidden] {
    margin-inline: 0 -3em;
  }
}
/* visibility is in the transition too, so hiding fades out before it turns hidden */
ruby rt {
  transition:
    opacity var(--dur-2, 200ms) var(--ease-out, ease-out),
    visibility var(--dur-2, 200ms) var(--ease-out, ease-out);
}
ruby.is-open rt[hidden] {
  visibility: visible;
  opacity: 1;
}
@media (hover: hover) {
  ruby[data-fg]:hover rt[hidden] {
    visibility: visible;
    opacity: 1;
  }
}
ruby[data-fg='none'],
ruby[data-fg='part'] {
  cursor: help;
}
/* Reduced motion: no durations, and no delays either, or a delayed animation
   with `both` would leave its element hidden for the delay. Everything lands
   in its final state at once. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  *::backdrop {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ----- icons (lib/icons.js) ----------------------------------------------------- */

svg.lucide {
  flex: none;
  stroke-width: 1.75;
  vertical-align: -0.15em;
}

/* ----- backgrounds (Settings > Background; see useBackground.js) ---------------
   Text stays on calm, solid surfaces and the material goes where text is not:
   behind the header (青海波) or in the rules and one spot colour (教科書).
   Each option is one body class and changes only tokens and a few rules under
   that class, so switching live never leaks. Private tokens (--bgo-*) sit on
   :root, light and dark, so the settings swatches can draw every option. */

/* 教科書 kyōkasho: two-colour print. No texture at all - whiter paper, and the
   plain look's genkō green gives way to one spot blue, the way a textbook is
   printed in black plus one ink. The only band is the colour bleed at the top
   of the page; the question block becomes the book's example box, ruled
   double in the spot colour; the primary button is the spot colour too. */
/* its palette (tokens) is in tokens.css; the rules that use it follow */
body.bg-kyokasho {
  background: var(--paper);
}
/* the colour bleed at the top of the page lives on the shell */
body.bg-kyokasho .shell {
  background: linear-gradient(var(--bgo-tb-spot), var(--bgo-tb-spot)) top / 100% 0.6rem no-repeat var(--paper);
}
body.bg-kyokasho .section > h2 {
  border-bottom: 2px solid var(--bgo-tb-spot);
}
body.bg-kyokasho .question {
  background-image: none;
  border-top: 3px double var(--bgo-tb-spot);
  border-bottom: 3px double var(--bgo-tb-spot);
}
body.bg-kyokasho .btn--primary {
  background: var(--bgo-tb-spot);
  border-color: var(--bgo-tb-spot);
  color: var(--paper);
}
/* 青海波 seigaiha: the band is on the AppShell (.shell--waves, kit.css below),
   not on the body, so a dialog's scroll lock never repaints it. */

/* ----- the settings swatches: each option in miniature ------------------------ */
.bp__swatch--plain {
  background: var(--paper);
}
.bp__swatch--kyokasho {
  background:
    linear-gradient(var(--bgo-tb-spot), var(--bgo-tb-spot)) top / 100% 9% no-repeat,
    linear-gradient(var(--bgo-tb-spot), var(--bgo-tb-spot)) 15% 55% / 70% 2px no-repeat,
    var(--paper);
}
.bp__swatch--seigaiha {
  background:
    linear-gradient(to bottom, transparent 25%, var(--paper) 80%),
    var(--bgo-wave) 0 0 / 40px 20px repeat;
}

/* ----- reading preferences (Settings; see useFont.js) ------------------------- */

/* ===== AppShell, AppHeader, AppFooter (copied from the UI kit's kit.css) ====== */
/* The shell owns the width and the band, so the page background never changes
   under a dialog (scroll lock stays on the shell, not body). */
.shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
/* the band fades out below the header wherever the header starts (the safe area and --sa-edge push it down) */
.shell--waves { --band-top: calc(var(--sa-top, env(safe-area-inset-top, 0px)) + var(--sa-edge, 0px)); background-image: linear-gradient(to bottom, transparent calc(0.5rem + var(--band-top)), var(--paper) calc(7rem + var(--band-top))), var(--bgo-wave); background-size: auto, 40px 20px; background-repeat: no-repeat, repeat; }
.shell { --shell-w: var(--w-text); } /* AppShell's width prop: text (the door, public pages) | desktop | wide | room */
/* tela inteira (ui/tela-inteira, 2026-10-24, Guilherme): every page of the group uses the viewport's whole width at
   every breakpoint, minus the gutters. The width is spent on COLUMNS (UiLayout, UiTiles, UiColumns, UiStats), never on
   longer lines: running text keeps --w-text. `desktop` and `wide` stay as names (a page's kind), no longer as a cap */
.shell--desktop, .shell--wide { --shell-w: 100%; }
/* the 勉強会's room (/ao-vivo, LiveRoom.vue, WIDE §3): the whole width of the screen from 60rem (its own grid of
   rail · stage · side column keeps the stage's measure), and no footer: the room fills the window down to its
   controls' bar, fixed at the foot */
.shell--room { --shell-w: 100%; }
.shell--room > .ft__wrap, .shell--room > .hem { display: none; }
.shell--room .shell__main { padding-bottom: var(--sa-bottom, env(safe-area-inset-bottom, 0px)); }
/* the safe area (K1): an installed iPhone's Dynamic Island on top, its sides when it lies down. The --sa-*
   overrides (and --sa-bottom, the home indicator) are a simulated device (the screenshots' html.sim-safe in e2e/shoot.mjs, the /ui gallery's
   sample); a browser leaves them unset and env() answers. Written where used (not as a token on :root), so
   an override on any ancestor reaches them.
   --sticky-top: where a sticky column stops under the top edge (the header scrolls away; the inset stays) */
:root { --sticky-top: calc(var(--s-4) + var(--sa-top, env(safe-area-inset-top, 0px)) + var(--sa-edge, 0px)); }
/* --sa-edge: the room an installed iPhone/iPad (iOS 26+) needs under its status bar. The bar stays opaque
   (status-bar-style "default", index.html: the page does not draw under the clock, env(safe-area-inset-top)
   is 0), but iOS lays a fade of the bar's colour over the first ~40 pt of the page; without this room it
   sat over the header's glyphs (Guilherme's iPhone 14 Pro, 2026-10-17). Only there: an installed app
   (display-mode: standalone) on WebKit for iOS (-webkit-touch-callout), standing up or on an iPad (an
   iPhone lying down hides its status bar, so min-height keeps it out). Android's installed app has an
   opaque system bar with no fade and never matches -webkit-touch-callout. html.sim-safe sets it by hand. */
@media (display-mode: standalone) and (min-height: 31rem) {
  @supports (-webkit-touch-callout: none) { :root { --sa-edge: 1.5rem; } }
}
.shell__main { flex: 1; width: 100%; margin: 0 auto; padding: 0 max(var(--gutter), var(--sa-right, env(safe-area-inset-right, 0px))) calc(var(--s-6) + var(--sa-bottom, env(safe-area-inset-bottom, 0px))) max(var(--gutter), var(--sa-left, env(safe-area-inset-left, 0px))); max-width: calc(var(--shell-w) + 2 * var(--gutter)); }
.shell__main > * { min-width: 0; }
/* the しりとり dock (features/dock/, yatsura-home-widgets W-7, D9 a): from 1536 px a column on the right, 24rem (28 from
   2560, a 2.75rem rail folded). ChainDock sets the class on <html>; the page (header, main, footer) gives up that width
   and every UiLayout changes tier by its @container. Fixed things over the page (意見, the call's bar, the 勉強会's
   banner) add --dock-w to their right edge */
:root { --dock-w: 0px; }
@media (min-width: 96rem) {
  html.dock-open { --dock-w: 24rem; }
  html.dock-rail { --dock-w: 2.75rem; }
}
@media (min-width: 160rem) { html.dock-open { --dock-w: 28rem; } }
html.dock-open .shell, html.dock-rail .shell { margin-right: var(--dock-w); }
.pane { container-type: inline-size; min-width: 0; }
/* ===== ui-cols: a panel tab's columns (docs/design/components.md § Painéis) ===
   by the content's own width (@container ui-main: UiLayout's __main), never the window's: a tab names its
   columns and the panel decides how many fit. --2 two from 40rem · --3 two from 40rem, three from 64rem ·
   --fill as many 20rem cards as fit · --list a long list of compact rows (two from 40rem, three from 72rem) ·
   --split a list and its detail (2 : 3 from 56rem).
   __all takes the whole row. Outside a panel (no ui-main) everything stays one column. */
.ui-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; min-width: 0; }
.ui-cols > * { min-width: 0; }
.ui-cols--list { gap: var(--s-2) var(--s-3); }
.ui-cols--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
@container ui-main (min-width: 40rem) { .ui-cols--2, .ui-cols--3, .ui-cols--list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container ui-main (min-width: 56rem) { .ui-cols--split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
@container ui-main (min-width: 64rem) { .ui-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container ui-main (min-width: 72rem) { .ui-cols--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ui-cols > .ui-cols__all { grid-column: 1 / -1; }

/* ===== AppHeader (.hdr; never .bar) ====================================== */
/* a layer of its own (--z-head), over the page: a page's stacking context that bleeds above its top (the 歌's
   album-colour wash, isolation: isolate, 2rem up) painted over the lower half of the header, its glyphs cut in
   two (Guilherme's iPhone, 18/10). Above the page's bars (--z-bar), below sheets and dialogs; the person's
   menu (.pop) lives inside it, so it stays over the page as before */
.hdr { width: 100%; position: relative; z-index: var(--z-head); }
.hdr__in { display: flex; align-items: center; gap: var(--s-2); min-height: calc(var(--h-bar) + var(--sa-top, env(safe-area-inset-top, 0px)) + var(--sa-edge, 0px)); margin: 0 auto; padding: calc(var(--s-1) + var(--sa-top, env(safe-area-inset-top, 0px)) + var(--sa-edge, 0px)) max(var(--gutter), calc(var(--sa-right, env(safe-area-inset-right, 0px)) + var(--s-2))) var(--s-1) max(var(--gutter), calc(var(--sa-left, env(safe-area-inset-left, 0px)) + var(--s-2))); max-width: calc(var(--shell-w) + 2 * var(--gutter)); }
/* (the sides: + the optical pull of the brand, the ‹ and the tools, up to -s-2, so lying down not even their boxes reach into the notch's side) */
.hdr--rule .hdr__in { border-bottom: var(--bw-hair) solid var(--line); }
.hdr__brand { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-pen); font-weight: 600; font-size: var(--t-4); color: var(--ink); text-decoration: none; min-height: var(--h-ctl); padding: 0 var(--s-1); margin-left: calc(-1 * var(--s-1)); border-radius: var(--r-2); }
.hdr__brand .seal { width: var(--seal-bar); height: var(--seal-bar); }
.hdr__brand:hover { background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
/* qualified with .btn: the kit's .btn rules load after this file (UiButton's chunk), so at equal
   specificity they would win and give the text back link a full button box */
.btn.hdr__back { color: var(--ink-2); margin-left: calc(-1 * var(--s-2)); }
.btn.hdr__back--text { gap: 0.15rem; padding: 0 var(--s-2) 0 0.15rem; font-weight: 600; white-space: nowrap; border-color: transparent; }
.btn.hdr__back--text:not(:disabled):hover { border-color: transparent; background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
.hdr__title { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; font-size: var(--t-4); font-weight: 700; line-height: 1.3; }
.hdr__title .jl { margin-left: 0; white-space: nowrap; flex: none; }
/* 320 px: the page's name before its Japanese tag (the tag is decoration; the name is how you know where you are) */
@media (max-width: 359px) { .hdr__title { font-size: var(--t-3); } .hdr__title .jl { display: none; } }
.hdr__title .sub { font-weight: 400; color: var(--ink-2); font-size: var(--t-2); white-space: nowrap; }
.hdr__spacer { flex: 1; }
.hdr__nav { display: none; gap: var(--s-1); font-size: var(--t-2); }
.hdr__nav a { color: var(--ink-2); text-decoration: none; padding: 0.5rem 0.6rem; border-radius: var(--r-2); }
.hdr__nav a[aria-current] { color: var(--ink); font-weight: 600; }
.hdr__nav a:hover { background: var(--paper-2); color: var(--ink); }
@media (min-width: 45rem) { .hdr__nav { display: flex; } }
.hdr__tools { display: flex; align-items: center; gap: var(--s-1); margin-right: calc(-1 * var(--s-2)); }
/* on the band, every glyph sits on a wash of paper */
.shell--waves .hdr .btn--icon, .shell--waves .hdr .me { background: color-mix(in srgb, var(--paper) 85%, transparent); }
.me { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; min-height: var(--h-ctl); padding: 0.2rem 0.5rem 0.2rem 0.3rem; border: 0; border-radius: var(--r-2); background: none; cursor: pointer; text-align: left; }
.me:hover { background: var(--paper-2); }
.me__names { display: grid; min-width: 0; line-height: 1.15; }
.me__names strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.me__real { display: none; color: var(--ink-2); font-size: var(--t-1); }
.me__names { display: none; }
.me { padding: 0.2rem; }
@media (min-width: 45rem) { .me__real { display: block; } .me__names { display: grid; } .me { padding: 0.2rem 0.5rem 0.2rem 0.3rem; } }
/* the mini-profile of the person in the header: a panel under the button; a sheet from the bottom on a phone */
.mep { position: relative; display: inline-flex; }
.pop { display: grid; align-content: start; position: fixed; z-index: var(--z-sheet); left: 0; right: 0; bottom: 0; max-height: 85dvh; overflow: auto; gap: var(--s-4); padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); border: var(--bw) solid var(--ink); border-bottom: 0; border-radius: var(--r-3) var(--r-3) 0 0; background: var(--paper); color: var(--ink); animation: qt-dialog var(--dur) var(--ease-out) both; }
.pop:focus { outline: none; }
.pop__scrim { position: fixed; inset: 0; z-index: calc(var(--z-sheet) - 1); background: color-mix(in srgb, var(--ink) 30%, transparent); }
.pop__close { position: absolute; top: var(--s-2); right: var(--s-2); display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: var(--r-2); background: transparent; color: var(--ink); font-size: var(--t-3); cursor: pointer; touch-action: manipulation; }
.pop__close:hover { background: var(--line); }
.pop__who { padding-right: 2.5rem; display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.pop__names { display: grid; gap: 0.1rem; min-width: 0; line-height: 1.25; }
.pop__names strong { font-size: var(--t-4); overflow-wrap: anywhere; }
.pop__roles { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.2rem; font-size: var(--t-1); color: var(--shu-ink); font-weight: 600; }
.pop__block { display: grid; gap: var(--s-2); min-width: 0; }
.pop__h { margin: 0; font-size: var(--t-1); font-weight: 600; letter-spacing: var(--track-title); text-transform: uppercase; color: var(--ink-2); }
.pop__h .ja { text-transform: none; letter-spacing: 0; }
/* Equipe 運営: one row per panel (seal · name + what is there · ›), a real link (shell study S1) */
.pop__staff { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: var(--h-ctl); padding: 0.4rem var(--s-2); margin: 0 calc(-1 * var(--s-2)); border-radius: var(--r-2); color: inherit; text-decoration: none; }
.pop__staff:hover { background: var(--paper-2); }
.pop__staff:hover strong { color: var(--shu-ink); }
.pop__staff:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pop__st { display: grid; gap: 0.1rem; min-width: 0; line-height: 1.25; }
.pop__st strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; }
.pop__sn { font-size: var(--t-1); color: var(--ink-2); overflow-wrap: anywhere; }
.pop__chev { color: var(--ink-2); }
/* the accounts: two cells side by side (marca · nome · estado), one column only below a 22rem sheet */
.pop__accts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.pop__acct { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'mark name' 'mark state'; align-items: center; column-gap: 0.6rem; row-gap: 0.1rem; min-width: 0; padding: 0.5rem 0.65rem; border: var(--bw-hair) solid var(--line); border-radius: var(--r-2); background: var(--paper); }
.pop__acct--off { position: relative; border-style: dashed; }
.pop__acct--off:hover { background: var(--paper-2); }
/* the whole cell is the link's tap target (44 px and more) */
.pop__acct--off .pop__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pop__mark { grid-area: mark; width: 1.25rem; height: 1.25rem; }
.pop__pname { grid-area: name; font-weight: 700; font-size: var(--t-2); line-height: 1.2; }
.pop__on { grid-area: state; display: inline-flex; align-items: center; gap: 0.35em; font-size: var(--t-1); color: var(--good); }
.pop__link { grid-area: state; justify-self: start; color: var(--ai); font-size: var(--t-1); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 22rem) { .pop__accts { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 45rem) {
  .pop { position: absolute; left: auto; right: 0; bottom: auto; top: calc(100% + var(--s-1)); width: 22rem; max-height: none; border: var(--bw) solid var(--ink); border-radius: var(--r-3); padding: var(--s-4); }
  .pop__scrim { display: none; }
}
/* the quiz bar: day label + clock in the title slot */
.hdr__clock { font-size: var(--t-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ===== AppFooter (.ft) ======================================================
   One footer, decided by Guilherme (8 out 2026, "C++1"): under a 1.5 px ink rule, the group's
   colophon (seal 24 px + 日本語やつら + tagline) and, from 36rem of container, the links stacked
   over the signature line on the right; the 青海波 hem below, full width. On the phone, four
   centred lines: seal + name · tagline · links · signature. Links: Sobre · Privacidade · Termos
   (+ the language link on the public pages). The signature: © year · feito por GVM Tecnologia
   (link) + the rubrica at 1.9em, never under 20 px, in --ink. Tagline without article. */
.ft { margin-top: var(--s-7); border-top: var(--bw) solid var(--ink); padding-top: var(--s-4); display: grid; gap: 0.5rem; justify-items: center; text-align: center; font-size: var(--t-2); color: var(--ink-2); line-height: 1.5; }
.ft a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 0.5rem 0.3rem; white-space: nowrap; }
.ft .sep { color: var(--ink-2); user-select: none; }
.ft .links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.ft .who { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.55rem; }
.ft .who .seal { width: 24px; height: 24px; flex: none; }
.ft .who .name { font-weight: 600; color: var(--ink); font-size: var(--t-3); line-height: 1.2; }
.ft .who .tag { flex-basis: 100%; font-size: var(--t-1); }
.ft .end { font-size: var(--t-1); }
/* the app's signature line with the version beside it (AppFooter; the server's pages, frame.js, keep the bare .end.endorse) */
.ft .ft__end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.35rem; }
/* the version beside the signature (UiButton link, sm): muted ink, the footer's small size; a tap opens the Novidades */
.ft .ft__ver { color: var(--ink-2); font-size: var(--t-1); font-variant-numeric: tabular-nums; padding-inline: 0.3rem; }
.ft .ft__ver:hover { color: var(--ink); }
.endorse { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.endorse b { color: var(--ink); font-weight: 600; }
.endorse b a { color: var(--ink); text-decoration: none; padding: 0; }
.endorse .rubrica { height: 1.9em; min-height: 20px; width: auto; color: var(--ink); flex: none; }
.hem { height: 4rem; flex: none; background-color: var(--paper); background-image: linear-gradient(to bottom, var(--paper) 0.25rem, transparent 3.75rem), var(--bgo-wave); background-size: auto, 40px 20px; background-repeat: no-repeat, repeat; }
@container (min-width: 36rem) {
  .ft { grid-template-columns: minmax(0, 1fr) auto; align-items: center; text-align: left; justify-items: start; gap: 0 var(--s-4); }
  .ft .who { grid-row: 1 / 3; display: grid; grid-template-columns: auto auto; gap: 0 0.55rem; text-align: left; }
  .ft .who .seal { grid-column: 1; grid-row: 1 / 3; }
  .ft .who .name { grid-column: 2; grid-row: 1; }
  .ft .who .tag { grid-column: 2; grid-row: 2; }
  .ft .links { justify-self: end; margin-right: -0.3rem; flex-wrap: nowrap; }
  .ft .end { justify-self: end; }
  .ft .ft__end { justify-content: flex-end; margin-right: -0.3rem; }
}
.ft__wrap { width: 100%; margin: 0 auto; padding: 0 var(--gutter); container-type: inline-size; max-width: calc(var(--shell-w) + 2 * var(--gutter)); }

/* ----- shared bits from the kit ------------------------------------------------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jl { font-family: var(--font-pen); font-weight: 400; font-size: 0.85em; color: var(--ink-2); margin-left: 0.5em; letter-spacing: 0; }
.seal { width: 2.5rem; height: 2.5rem; flex: none; }
.hdr .btn--icon { color: var(--ink-2); }
/* 設 beside 昼/夜: one glyph button, the same size and ink (ThemeToggle) */
.btn.hdr__glyph { font-size: 1rem; }
.hdr__glyph .ja { line-height: 1; }

a.me { color: inherit; text-decoration: none; }
.hdr__title .hdr__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== kit components, once ==================================================
   Every page and module shares these (they used to be copied into the home,
   the admin and the quiz layouts). Page grids stay in each layout file. */
.stack { display: grid; gap: var(--s-4); align-content: start; }
.stack--tight { gap: var(--s-2); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }
fieldset.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-2); }
fieldset.group > legend { padding: 0; margin-bottom: var(--s-2); }
.lab { font-size: var(--t-2); color: var(--ink-2); }

/* a choice card: a radio with a title and a note (suffixes, fonts, marks, the merge) */
.choices { display: grid; gap: var(--s-2); }
.choice { display: grid; gap: 0.15rem; align-content: start; padding: 0.75rem 0.9rem; border: var(--bw) solid var(--line-2); border-radius: var(--r-2); background: var(--paper); cursor: pointer; min-width: 0; }
.choice:hover { background: var(--paper-2); }
.choice.on, .choice:has(input:checked) { border-color: var(--shu); box-shadow: inset 0 0 0 1px var(--shu); }
.choice:has(.sr:focus-visible), .choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice__t { font-weight: 600; }
.choice .small { color: var(--ink-2); }
fieldset:disabled .choice { opacity: 0.5; cursor: default; }
@container (min-width: 36rem) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* cards: .card has the sumi border, .panel the hairline */
.card { border: var(--bw) solid var(--ink); border-radius: var(--r-2); background: var(--paper); padding: var(--s-4); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.card > h3 { font-size: var(--t-4); display: flex; align-items: baseline; gap: 0.25rem 0.5rem; }
.panel { border: var(--bw-hair) solid var(--line); border-radius: var(--r-2); background: var(--paper); padding: var(--s-4); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.panel > h2, .panel > h3, .panel > h4 { font-size: var(--t-4); }

.status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--t-2); }
.status--ok { color: var(--good); }
.status--warn { color: var(--warn); }
/* a module's seal on a genkō square (the home's cards, the admin tabs) */
.mseal { display: grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.6rem; color: var(--shu); border: var(--bw) solid var(--rule); border-radius: var(--r-1); font-family: var(--font-pen); font-weight: 600; background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px), linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px); background-size: 50% 50%; background-position: center; flex: none; }
/* the small seal: a row inside a panel (the person card's Equipe, the home's Hoje) */
.mseal--sm { width: 2rem; height: 2rem; font-size: 1.1rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--s-2); }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: grid; gap: 0.1rem; padding: var(--s-3) var(--s-4); border: var(--bw-hair) solid var(--line); border-radius: var(--r-2); background: var(--paper); }
.stat b { font-size: var(--t-6); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: var(--t-2); color: var(--ink-2); font-weight: 400; }
.stat span { font-size: var(--t-1); color: var(--ink-2); }

/* relative: an absolute child (a .sr label in a header) is held and clipped here;
   otherwise it escapes the scroll and widens the whole page on a phone */
.table-wrap { position: relative; overflow-x: auto; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-2); }
.table th, .table td { text-align: left; vertical-align: middle; padding: 0.6rem 0.6rem; border-bottom: var(--bw-hair) solid var(--line); }
.table th { font-size: var(--t-1); font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; white-space: nowrap; }
.table thead th { border-bottom: var(--bw) solid var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-me td { font-weight: 700; color: var(--shu-ink); }
.table tr.below td { color: var(--ink-2); }
.table tr[aria-selected='true'] td { background: var(--paper-2); }
.table td .actions { display: flex; gap: var(--s-1); justify-content: flex-end; }

.dot--good { background: var(--good); }

/* ---------------------------------------------------------------------------
   Answers (docs/design/components.md § Motion · answers): the kit's ○ and ✗.
   A right mark stamps in (a little small, a little past its size, then still),
   a wrong one says a short "no" sideways. On the mark only, never the whole
   card, and only decorating a final state that reads on its own. --dur-3, so
   under reduced motion they simply are there.
   --------------------------------------------------------------------------- */
.ui-mark-right,
.ui-mark-wrong {
  display: inline-block;
}
.ui-mark-right {
  animation: ui-mark-right var(--dur-3) var(--ease-pop) both;
}
.ui-mark-wrong {
  animation: ui-mark-wrong var(--dur-3) var(--ease-out) both;
}
/* something found (a word in the Torto, a chip appearing): it pops in */
.ui-found {
  animation: ui-mark-right var(--dur-2) var(--ease-pop) both;
}
@keyframes ui-mark-right {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    transform: none;
  }
}
@keyframes ui-mark-wrong {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateX(-3px);
  }
  45% {
    transform: translateX(3px);
  }
  70% {
    transform: translateX(-2px);
  }
  85% {
    transform: translateX(1px);
  }
}
/* a wrong group of things shakes sideways (a few small oscillations, --dur-4), a right one lifts and settles
   (--dur-3): set the class, or `animation: ui-shake var(--dur-4) var(--ease-out) both`. Finite; the durations
   are zero under reduced motion, so the elements simply stay (and a state colour says the result). */
.ui-shake {
  animation: ui-shake var(--dur-4) var(--ease-out) both;
}
.ui-lift {
  animation: ui-lift var(--dur-3) var(--ease-pop) both;
}
@keyframes ui-shake {
  0%,
  100% {
    transform: none;
  }
  15% {
    transform: translateX(-5px);
  }
  35% {
    transform: translateX(5px);
  }
  55% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(3px);
  }
  90% {
    transform: translateX(-1px);
  }
}
@keyframes ui-lift {
  0% {
    transform: none;
  }
  45% {
    transform: translateY(-4px) scale(1.06);
  }
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ui-shake,
  .ui-lift,
  .ui-mark-right,
  .ui-mark-wrong,
  .ui-found {
    animation: none;
  }
}

/* ----- the people of a grid together (tokens.css --who-N): a person's colour, set once on any element ------- */
.who-1 { --who: var(--who-1); --who-tint: var(--who-1-tint); }
.who-2 { --who: var(--who-2); --who-tint: var(--who-2-tint); }
.who-3 { --who: var(--who-3); --who-tint: var(--who-3-tint); }
.who-4 { --who: var(--who-4); --who-tint: var(--who-4-tint); }
.who-5 { --who: var(--who-5); --who-tint: var(--who-5-tint); }
.who-6 { --who: var(--who-6); --who-tint: var(--who-6-tint); }
/* the initial in a round badge: the person's tint, their colour on it (never the colour alone) */
.who-ini {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--who-d, 1.4rem);
  height: var(--who-d, 1.4rem);
  border-radius: 50%;
  background: var(--who-tint, var(--paper-3));
  color: var(--who, var(--ink));
  font-family: var(--font-ui);
  font-size: calc(var(--who-d, 1.4rem) * 0.5);
  font-weight: 700;
  line-height: 1;
}
