/*
 * vy-controls.css: the V6 interactive recipes (spec 060, slice S02). Buttons, fields, choices,
 * tabs, menus, nav rows, links, kbd and the avatar (S03). Linked after vy-base.css and before every
 * surface sheet.
 *
 * One rule per look. Each selector list starts with the canonical .vy-* class; the existing
 * classes that must look the same follow under an "app" (or later "admin", "public") comment,
 * and their old declarations for the same properties are gone from the legacy sheets (R3).
 * Sizes, radius and weight are the knobs in tokens.css (--btn-*, --field-*, --nav-row-*).
 *
 * Owner edits: «кнопки» -> the button rules below, «поля» -> the field rules, values -> tokens.css.
 * "Default buttons should be outlined": move the :where(button…) line into the outline list.
 *
 * Public pages (<body class="vy-site">, S12a) join a recipe as ":where(.vy-site) .x" under a
 * "public" comment, which keeps V6's own specificity. The app's element adopters (the bare
 * button, button[type="submit"]) stop at .vy-site: V6 has its own button reset there, and the
 * quiet 40px floor or the oxblood submit would repaint the landing's text buttons and composer.
 *
 * Rules (05 §1.4 and §7.1): R1 canonical names are .vy-*; R4 bare elements join only through
 * :where() and only with properties their legacy element rule already set; R9 recipes are paint
 * only (no position, inset, z-index, overflow, transform; the
 * tooltip .vy-tip is the one layer, a single node of user-tooltip.js in body);
 * C7 no fill or stroke on a descendant svg (the Google mark keeps its colours); icons are masks (icons.css).
 */

/* ======================= Buttons ======================= */

/* Shape, size and type: every button look starts here. The quiet look (surface and a soft ring)
   is the default, so a bare <button> renders quiet (D10). */
:where(button:not(.vy-site *)),
.vy-btn,
.vy-btn-primary,
.vy-btn-quiet,
.vy-btn-ghost,
.vy-btn-danger,
.vy-btn-icon,
.vy-btn-on-dark,
/* app */
.button,
.auth-submit,
:where(button, a).ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: auto;
  min-height: var(--btn-h);
  border: 1px solid var(--ring-2);
  border-radius: var(--btn-radius);
  padding: 0 var(--btn-pad-x-sm);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--btn-font);
  font-weight: var(--btn-weight);
  letter-spacing: 0;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

/* Hover and press in /app (D41 §3). Fill and border change in one frame, text and icon colour in --dur-fast, nothing moves
   and no shadow comes. The transition lives on :hover, so colour runs only under the pointer: a row that loses the current
   mark or a theme flip takes one frame. A press is a colour layer in the control's own text colour, so it reads on the CTA,
   a ghost, a chip and a row in both themes, phones included; it stands over every hover rule, hence !important. An inline
   text button (.text-link) draws its underline from the same background layers and grows it with a transition, so a press
   would swell the layer over --dur and a release would flash a solid block of the text colour: it keeps its underline.
   Public pages keep V6. */
:where(a:hover, button:hover, summary:hover):not(:where(.vy-site *)) {
  transition: color var(--dur-fast) var(--ease);
}

body:not(.vy-site) {
  -webkit-tap-highlight-color: transparent;
}

:where(button, summary, [role="button"], [role="menuitem"], [role="tab"], .button, .ghost, .vy-btn, .vy-btn-primary, .vy-btn-quiet, .vy-btn-ghost, .vy-btn-danger,
  .vy-nav-row, .vy-menu-item, .chat-menu-item, .account-menu-item, .chat-link, .sidebar-action, .settings-nav a, .auth-submit, .plan-cta,
  .sp-chip):not(:where(.vy-site *, .drawer-backdrop, .text-link, :disabled, [aria-disabled="true"])):active {
  background-image: linear-gradient(color-mix(in srgb, currentColor 12%, transparent) 0 0) !important;
  background-size: 100% 100% !important;
}

/* Long Ukrainian labels wrap inside the pill instead of overflowing at 390 px (critic C6).
   V6's nowrap stays on the public alias only. */
.vy-btn,
.vy-btn-primary,
.vy-btn-quiet,
.vy-btn-ghost,
.vy-btn-danger,
.vy-btn-on-dark,
/* app */
.button,
:where(button, a).ghost {
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}

/* The two call-to-action looks take the wider pad. */
.vy-btn,
.vy-btn-primary,
.vy-btn-danger,
.vy-btn-on-dark,
/* app */
.button,
button[type="submit"]:not(:where(.vy-site *)),
.working-copy-foot [data-working-export],
.canvas-summary-offer [data-canvas-summary-generate] {
  padding-inline: var(--btn-pad-x);
}

/* Quiet hover: a wash, a firmer ring, no lift. */
.vy-btn-quiet:hover,
:where(button:not(.vy-site *)):hover {
  border-color: var(--ring-3);
  background: var(--hover-wash);
}

/* Primary: the oxblood pill (V6 .btn-accent). In dark theme --cta inverts to cream. */
.vy-btn-primary,
/* app */
.auth-submit,
.button,
button[type="submit"]:not(:where(.vy-site *)),
.working-copy-foot [data-working-export],
/* app: the canvas summary offer (S07) */
.canvas-summary-offer [data-canvas-summary-generate] {
  border-color: var(--cta-line);
  background: var(--cta);
  color: var(--cta-contrast);
  box-shadow: var(--shadow-cta);
}

.vy-btn-primary:hover,
/* app */
.auth-submit:hover,
.button:hover,
button[type="submit"]:not(:where(.vy-site *)):hover,
.working-copy-foot [data-working-export]:hover,
.canvas-summary-offer [data-canvas-summary-generate]:hover {
  border-color: var(--cta-line-hover);
  background: var(--cta-hover);
  color: var(--cta-contrast);
}

/* Outline: the ink-outline pill (V6 .btn); every explicit secondary. */
.vy-btn,
/* app */
.button.secondary,
.button.subtle,
button.subtle {
  border-color: var(--btn-outline-line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.vy-btn:hover,
/* app */
.button.secondary:hover,
.button.subtle:hover,
button.subtle:hover {
  border-color: var(--btn-outline-line);
  background: var(--press-wash);
  color: var(--ink);
}

/* Ghost: toolbars and quiet actions (V6 nav link look). */
.vy-btn-ghost,
.vy-btn-icon,
/* app */
:where(button, a).ghost,
.drawer-toggle,
.topbar-new,
.topbar-incognito,
.canvas-toggle,
.topbar-share,
.sidebar-collapse,
.icon-btn,
.sidebar-mini,
.auth-pass-toggle,
.composer-plus,
.composer-params,
.composer-mic,
/* app: the shared overlay's close (S09), the settings «назад» (D37) */
.app-overlay-close,
.settings-back {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.vy-btn-ghost:hover,
.vy-btn-icon:hover,
/* app */
:where(button, a).ghost:hover,
.drawer-toggle:hover,
.topbar-new:hover,
.topbar-incognito:hover,
.canvas-toggle:hover,
.topbar-share:hover,
.sidebar-collapse:hover,
.icon-btn:hover,
.sidebar-mini:hover,
.auth-pass-toggle:hover,
.composer-plus:is(:hover, [aria-expanded="true"]),
.composer-params:is(:hover, [aria-expanded="true"]),
.composer-mic:hover,
.app-overlay-close:hover,
.settings-back:hover {
  background: var(--hover-wash);
  color: var(--ink);
}

/* Danger: destructive confirmations. */
.vy-btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--on-status);
}

.vy-btn-danger:hover {
  border-color: var(--danger-strong);
  background: var(--danger-strong);
}

/* On an always-dark band (V6 .btn-white). */
.vy-btn-on-dark {
  border-color: var(--dark-heading);
  background: var(--dark-heading);
  color: var(--dark);
}

.vy-btn-on-dark:hover {
  border-color: var(--pic-plate-accent);
  background: var(--pic-plate-accent);
}

/* Icon only: a round target the height of a button. */
.vy-btn-icon {
  width: var(--btn-h);
  padding: 0;
}

.vy-btn-sm {
  min-height: var(--btn-h-sm);
  padding-inline: var(--btn-pad-x-sm);
}

.vy-btn-lg,
/* app: the full-width buttons of the sign-in card */
.auth-google,
.auth-submit {
  min-height: var(--btn-h-lg);
  padding-inline: var(--btn-pad-x-lg);
  font-size: var(--text-base);
}

.vy-btn-icon.vy-btn-sm {
  width: var(--btn-h-sm);
  padding: 0;
}

/* Pressed toggles read as selected: accent tint, accent text. */
.vy-btn[aria-pressed="true"],
.vy-btn-quiet[aria-pressed="true"],
.vy-btn-ghost[aria-pressed="true"],
.vy-btn-icon[aria-pressed="true"],
/* app */
.button.secondary[aria-pressed="true"],
/* app: the canvas toggle (S07), a chosen tool in any toolbar */
.canvas-toggle[aria-pressed="true"],
.vy-toolbar button[aria-pressed="true"],
/* the chosen tool waits in the panel: its «⋯» says so (a pressed member of a group is a setting, not a tool) */
.vy-toolbar:has(> .vy-toolbar-panel > [aria-pressed="true"]) > .vy-toolbar-more {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* Busy: the control stays in place and says it is working. */
.vy-btn[aria-busy="true"],
.vy-btn-primary[aria-busy="true"],
.vy-btn-quiet[aria-busy="true"],
.vy-btn-ghost[aria-busy="true"],
.vy-btn-danger[aria-busy="true"],
/* app */
.button[aria-busy="true"],
.button.is-loading {
  cursor: progress;
  opacity: 0.72;
}

/* Disabled: half strength, no hover change. */
.vy-btn:disabled,
.vy-btn-primary:disabled,
.vy-btn-quiet:disabled,
.vy-btn-ghost:disabled,
.vy-btn-danger:disabled,
.vy-btn-icon:disabled,
.vy-btn[aria-disabled="true"],
.vy-btn-primary[aria-disabled="true"],
/* app */
button[disabled],
.button[disabled],
.button[aria-disabled="true"],
/* app: the composer's send while the field is empty (D32) */
.composer-send[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

/* The dimmed send does not wake on hover: the primary hover above outranks the recipe, so it keeps its resting colours. */
.composer-send[aria-disabled="true"]:hover {
  border-color: var(--cta-line);
  background: var(--cta);
}

/* ======================= Links ======================= */

.vy-link,
.vy-prose a,
.vy-legal a,
.vy-src-row a,
/* public: prose links, including the /what article and honest-card links V6 left unstyled (01 §7.4) */
:where(.vy-site) .sec-head .lead a,
:where(.vy-site) .faq details p a,
:where(.vy-site) .tiers-note a,
:where(.vy-site) .art p a,
:where(.vy-site) .art li a,
:where(.vy-site) .honest .card .ex a,
/* app */
.auth-link,
.auth-forgot {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.vy-link:hover,
.vy-prose a:hover,
.vy-legal a:hover,
.vy-src-row a:hover,
/* public */
:where(.vy-site) .sec-head .lead a:hover,
:where(.vy-site) .faq details p a:hover,
:where(.vy-site) .tiers-note a:hover,
:where(.vy-site) .art p a:hover,
:where(.vy-site) .art li a:hover,
:where(.vy-site) .honest .card .ex a:hover,
/* app */
.auth-link:hover,
.auth-forgot:hover {
  color: var(--link-strong);
}

/* ======================= Fields ======================= */

/* The element floor keeps the legacy scope (every input, so checkboxes keep their box) and sets
   no min-height: classed inputs that never set a height must not grow (critic C2). The edge is
   --field-ring, the 3:1 non-text floor. */
:where(textarea, input, select),
.vy-input,
.vy-select,
.vy-textarea {
  width: 100%;
  border: 1px solid var(--field-ring);
  border-radius: var(--field-radius);
  background: var(--panel);
  color: var(--ink);
  padding: 10px 11px;
}

:where(textarea),
.vy-textarea {
  min-height: 142px;
  resize: vertical;
}

.vy-input,
.vy-select,
/* app */
.auth-input {
  min-height: var(--field-h);
  padding: 0 14px;
}

.vy-textarea {
  min-height: 96px;
  padding: 10px 14px;
}

/* Firefox dims placeholders to 0.54 by default (critic H5). */
:where(input, textarea)::placeholder,
.vy-input::placeholder,
.vy-textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

:where(input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"]),
.vy-input[aria-invalid="true"],
.vy-select[aria-invalid="true"],
.vy-textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

:where(input:disabled, select:disabled, textarea:disabled),
.vy-input:disabled,
.vy-select:disabled,
.vy-textarea:disabled {
  background: var(--panel-sunken);
  color: var(--muted);
}

/* Native choices follow the one accent. */
:where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--accent);
}

.vy-field {
  display: grid;
  gap: 6px;
}

.vy-label,
/* app */
.auth-kicker,
/* app: the team modals' field captions (S09) */
.team-modal-groups legend {
  color: var(--ink);
  font-size: var(--text-ui);
  font-weight: var(--weight-strong);
}

.vy-hint,
.vy-field-error,
/* app */
.auth-field-error {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.vy-hint {
  color: var(--muted);
}

.vy-field-error,
/* app */
.auth-field-error {
  color: var(--danger);
  font-weight: var(--weight-strong);
}

/* ======================= Tabs (text with a thin underline, D23) ======================= */

.vy-tabs,
/* public: the /pricing audience switch, its state held by hidden radios (S13) */
:where(.vy-site) .ld-aud,
/* app */
.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--ring);
}

.vy-tabs [role="tab"],
:where(.vy-site) .ld-aud-opt,
/* app */
.policy-tabs [role="tab"] {
  min-height: var(--nav-row-h);
  margin-bottom: -1px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-ui);
}

.vy-tabs [role="tab"]:hover,
:where(.vy-site) .ld-aud-opt:hover,
/* app */
.policy-tabs [role="tab"]:hover {
  background: transparent;
  color: var(--ink);
}

.vy-tabs [role="tab"][aria-selected="true"],
#ld-aud-self:checked ~ .ld-aud [for="ld-aud-self"],
#ld-aud-biz:checked ~ .ld-aud [for="ld-aud-biz"],
/* app */
.policy-tabs [role="tab"][aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

/* ======================= Theme segments and the switch (D37) ======================= */

/* Two icon segments: one frame, as the theme itself (D41). --btn-h-sm is 34 px under a mouse and 44 px under a finger. */
.theme-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-sm);
  box-shadow: var(--edge);
}

.theme-toggle button {
  width: var(--btn-h-sm);
  min-height: var(--btn-h-sm);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--muted);
}

.theme-toggle button:hover,
.theme-toggle button[aria-pressed="true"] {
  color: var(--ink);
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--panel-sunken);
}

/* The native checkbox as a switch, its state in one frame (D41). The track is 32 x 20 on the right of its box, the box is the target:
   40 x 24 under a mouse, 44 x 44 under a finger. A state the server has not told yet is not drawn: unknown is not off, and :disabled is only ever that. */
input.vy-switch {
  appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  box-shadow: none;
  cursor: pointer;
  transition: none;
}

input.vy-switch::before,
input.vy-switch::after {
  content: "";
  position: absolute;
  border-radius: 10px;
}

input.vy-switch::before {
  top: calc(50% - 10px);
  right: 0;
  width: 32px;
  height: 20px;
  background: var(--muted);
}

input.vy-switch::after {
  top: calc(50% - 8px);
  right: 14px;
  width: 16px;
  height: 16px;
  background: var(--paper);
}

input.vy-switch:checked::before {
  background: var(--accent);
}

input.vy-switch:checked::after {
  right: 2px;
}

input.vy-switch:disabled {
  visibility: hidden;
}

@media (pointer: coarse) {
  input.vy-switch {
    width: 44px;
    height: 44px;
  }
}

/* Forced colours drop backgrounds, and the track and the thumb are nothing else: the state would vanish with them. */
@media (forced-colors: active) {
  input.vy-switch::before {
    forced-color-adjust: none;
    outline: 1px solid ButtonText;
    background: Canvas;
  }

  input.vy-switch::after {
    forced-color-adjust: none;
    background: ButtonText;
  }

  input.vy-switch:checked::before {
    background: Highlight;
  }

  input.vy-switch:checked::after {
    background: HighlightText;
  }
}

/* ======================= Menus and popovers (V6 burger menu) ======================= */

.vy-menu,
/* app */
.chat-menu-pop,
.account-menu {
  display: grid;
  gap: 2px;
  min-width: 200px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: var(--shadow-3), var(--edge);
}

.vy-menu-item,
/* app */
.chat-menu-item,
.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: var(--nav-row-h);
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-ui);
  text-align: left;
  text-decoration: none;
}

.vy-menu-item:hover,
/* app */
.chat-menu-item:hover,
.account-menu-item:hover {
  background: var(--hover-wash);
}

.vy-menu-sep,
/* app */
.account-menu-sep {
  height: 1px;
  margin: 4px 6px;
  border: 0;
  background: var(--ring);
}

/* ======================= Toolbar (F-TOOLBAR, vy-toolbar.js; D34, D41) ======================= */

/* One row, at most 48 px (--toolbar-h): a control is --btn-h-sm, 44 px under a finger. The height is fixed and contain keeps the unwrapped
   content from widening the column, so moving a control changes neither side of the box the observer watches (a change
   would raise «ResizeObserver loop») and nothing under the row jumps. */
.vy-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  height: var(--toolbar-h);
  min-width: 0;
  padding-inline: 4px;
  contain: inline-size;
}
.vy-toolbar > * { flex: none; }
/* A field has its own width, not the form's 100 %, and the height of a button. */
.vy-toolbar > :is(select, input) { width: auto; min-height: var(--btn-h-sm); padding-block: 0; }
.vy-toolbar-more + [data-toolbar-pin] { margin-inline-start: auto; }
/* A divider drawn in the gap: it costs the row no width, and it leaves with its item. */
.vy-toolbar > [data-toolbar-sep]:not(:first-child) { position: relative; }
.vy-toolbar > [data-toolbar-sep]:not(:first-child)::before {
  content: "";
  position: absolute;
  inset-block: 20%;
  inset-inline-start: -3px;
  width: 1px;
  background: var(--line);
}

/* The «⋯» panel: a menu in the top layer; vy-toolbar.js writes its place, and user-answer-actions.js for the menus of an answer's row. One frame both ways (D41). */
.vy-toolbar-panel {
  position: fixed;
  inset: var(--toolbar-y, 8px) auto auto var(--toolbar-x, 8px);
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  margin: 0;
  overflow-y: auto;
  border: 0;
  outline: 0; /* the panel takes focus only to hold it; its controls show their own ring */
  color: var(--ink);
}
/* Outranks the small icon button: in the panel a control is a row, and an icon-only one spells its name. */
.vy-toolbar .vy-toolbar-panel > :is(button, a, select, input) { width: 100%; }
.vy-toolbar .vy-toolbar-panel > :is(button, a) { justify-content: flex-start; gap: 10px; padding-inline: 12px; }
.vy-toolbar-panel > button[aria-label]::after { content: attr(aria-label); }

/* A layer may read the window at a step of the scale (D34): below 560 px the panel is a bottom sheet (D41). */
@media (max-width: 559px) {
  .vy-toolbar-panel {
    --toolbar-sheet: 1; /* vy-toolbar.js reads it: the press that dismisses the sheet goes no further */
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 70dvh;
    box-sizing: border-box;
    padding-block-end: max(var(--space-3), env(safe-area-inset-bottom, 0px));
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    transition: transform var(--dur-slow) var(--ease), overlay var(--dur-slow) allow-discrete, display var(--dur-slow) allow-discrete;
  }
  .vy-toolbar-panel[hidden] { transform: translateY(100%); pointer-events: none; }
  .vy-toolbar-panel::backdrop {
    background: var(--overlay);
    transition: opacity var(--dur-slow) var(--ease), overlay var(--dur-slow) allow-discrete, display var(--dur-slow) allow-discrete;
  }
  .vy-toolbar-panel[hidden]::backdrop { opacity: 0; pointer-events: none; }
  @starting-style {
    .vy-toolbar-panel:not([hidden]) { transform: translateY(100%); }
    .vy-toolbar-panel:not([hidden])::backdrop { opacity: 0; }
  }
}

/* ======================= Nav rows (sidebar, account nav) ======================= */

/* A chat row carries its own hover wash (workspace-sidebar.css), so .chat-link joins the shape and
   the active look only. */
.vy-nav-row,
/* app */
.sidebar-action,
.chat-link,
.sidebar-project-head,
/* app: the settings sections (S08, D37) */
.settings-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--nav-row-h);
  padding: 0 12px;
  border-radius: var(--nav-row-radius);
  color: var(--text);
  font-size: var(--text-ui);
  text-decoration: none;
}

.vy-nav-row:hover,
/* app */
.sidebar-action:hover,
.sidebar-project-head:hover,
.settings-nav a:hover {
  background: var(--hover-wash);
  color: var(--ink);
}

/* Active: a raised pill with a hairline, so it reads on the sunken sidebar and on paper, in both themes. */
.vy-nav-row[aria-current="page"],
.vy-nav-row[aria-current="true"],
/* app */
.sidebar-action:not(.sidebar-action-primary).active,
.chat-link.active,
.settings-nav a[aria-current="page"] {
  background: var(--raised);
  box-shadow: var(--edge);
  color: var(--ink);
  font-weight: var(--weight-strong);
}

.vy-nav-row-dense {
  min-height: var(--nav-row-h-dense);
}

/* Rows fill their container, so their ring sits inside them (critic C14). */
.vy-nav-row:focus-visible,
.vy-menu-item:focus-visible {
  outline-offset: calc(-1 * var(--focus-width) - 1px);
}

/* ======================= Keyboard hint (D35: quiet keys in a row) ======================= */

/* The keys of a row named by its own words (D35, user-keymap.js): muted at its right edge on hover and on keyboard focus,
   in one frame. The box stays while they are hidden, so nothing moves. No finger sees them. */
.vy-row-keys { display: none; }

@media (hover: hover) {
  .vy-row-keys {
    display: flex;
    flex: none;
    gap: 3px;
    margin-inline-start: auto;
    color: var(--muted);
    visibility: hidden;
  }

  :hover > .vy-row-keys,
  :focus-visible > .vy-row-keys { visibility: visible; }

  /* The words stay on one line and the row keeps its width: at a 232 px sidebar the keys take a few px of its padding. */
  :has(> .vy-row-keys) { min-width: 0; white-space: nowrap; }
}

/* ======================= Avatar (initials on the accent tint) ======================= */

.vy-avatar,
/* app */
.account-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: var(--weight-strong) var(--text-sm)/1 var(--font-sans);
}
