@layer components {
  /* ——— A few choices side by side, one of them on ———
     Modes held as one group. Every segment is a quiet button — a link to a
     page, a button that posts, or a label round a real radio — so the chosen
     one wears the selected voice from buttons.css and from nowhere else.
     No frame since the design pass (owner, 2026-11-03): the wash on the
     chosen one says which, and their closeness says they belong together.
     A view a glyph says better than a word (list | grid, board | table) is
     still a mode, so it keeps a mode's corners (the canvas: "a view: glyphs,
     same shape"). The circle lends it only its square and the halo a
     finger gets. */
  .segmented {
    display: inline-flex;
    align-items: center;

    .btn--circle {
      --btn-radius: var(--border-radius);
    }
  }

  /* A row's own switch — a person's involvement, a folder's row: smaller
     glyphs, so the switch does not outweigh the row it belongs to. */
  .segmented--small {
    --btn-size: 1.5rem;
  }
}
